/* =====================================================
   Page d'accueil
   ===================================================== */
/* Conteneur des sections de la home */
.hp {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 48px) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 7vw, 96px);
}
.hp > section:first-child { margin-top: clamp(32px, 5vw, 56px); }

/* Boutons brutalistes réutilisables ------------------- */
.btn-outline,
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--body);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 26px;
    border: 3px solid var(--ink);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--ink);
    color: var(--paper);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
    outline: none;
}

.btn-solid {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 6px 6px 0 var(--red);
}
.btn-solid:hover,
.btn-solid:focus-visible {
    background: var(--red);
    color: var(--paper);
    border-color: var(--ink);
    transform: translate(3px, 3px);
    box-shadow: -3px -3px 0 var(--ink) inset, 0 0 0 0 var(--red);
    outline: none;
}

/* En-tête de section numérotée (02, 03 …) ------------- */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--ink);
}
.section-head__num {
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 64px);
    line-height: 0.8;
    color: var(--red);
}
.section-head__title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 4.5vw, 46px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ink);
}
/* =====================================================
   A. HÉRO — la preuve massive
   ===================================================== */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    border: 3px solid var(--ink);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 10px 10px 0 var(--ink);
}
.hero__visual {
    border: 3px solid var(--ink);
    background: var(--yellow);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 14px;
}
.hero__figure { margin: 0; }
.hero__amount {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(52px, 10vw, 124px);
    line-height: 0.86;
    letter-spacing: 0.005em;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}
.hero__label {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--yellow);
    padding: 4px 10px;
}
.hero__sub {
    margin: 22px 0 0;
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--ink-soft);
}
.hero__sub strong { color: var(--ink); font-weight: 700; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--ink); }
    .hero__visual { max-width: 320px; }
}

/* =====================================================
   B. BLOC URGENCE (conditionnel)
   ===================================================== */
.urgency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px);
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
}
.urgency__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--body);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
}
.urgency__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--red);
    animation: urgency-pulse 1.4s ease-in-out infinite;
}
@keyframes urgency-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}
.urgency__heading {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 4.4vw, 48px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}
.urgency__cause {
    display: inline-block;
    margin-top: 6px;
    background: var(--yellow);
    color: var(--ink);
    padding: 2px 12px;
    box-shadow: 6px 6px 0 var(--ink);
}
.urgency__cta {
    flex-shrink: 0;
    font-family: var(--body);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--red);
    padding: 18px 30px;
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.urgency__cta:hover,
.urgency__cta:focus-visible {
    background: var(--red-deep);
    color: var(--paper);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
    outline: none;
}

@media (max-width: 700px) {
    .urgency__cta { width: 100%; }
}

/* =====================================================
   C. TEASING CARTE DE PROXIMITÉ
   ===================================================== */
.map-teaser {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    border: 3px solid var(--ink);
    padding: clamp(28px, 4vw, 52px);
}
.map-teaser__title {
    margin: 0 0 28px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}
.map-teaser__count {
    display: inline-block;
    margin-top: 8px;
    background: var(--yellow);
    color: var(--ink);
    padding: 2px 10px;
}
.map-teaser__map {
    display: block;
    border: 3px solid var(--ink);
    background: var(--surface);
    box-shadow: 8px 8px 0 var(--ink);
    padding: 18px;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.map-teaser__map:hover,
.map-teaser__map:focus-visible {
    transform: translate(3px, 3px);
    box-shadow: 5px 5px 0 var(--ink);
    outline: none;
}
.map-teaser__svg { width: 100%; height: auto; display: block; }
.map-teaser__shape {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linejoin: round;
    opacity: 0.35;
}
.map-teaser__dot {
    fill: var(--red);
    animation: map-pop 1.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 110ms);
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes map-pop {
    0%, 70%, 100% { opacity: 0.85; transform: scale(1); }
    35% { opacity: 1; transform: scale(1.35); }
}

@media (max-width: 760px) {
    .map-teaser { grid-template-columns: 1fr; }
    .map-teaser__map { max-width: 360px; margin: 0 auto; }
}

/* =====================================================
   D. FIL D'ACTUALITÉS DES CAISSES
   ===================================================== */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.news-card:has(.news-card__link:hover),
.news-card:has(.news-card__link:focus-visible) {
    transform: translate(3px, 3px);
    box-shadow: 4px 4px 0 var(--ink);
}
.news-card__media {
    aspect-ratio: 16 / 10;
    border-bottom: 3px solid var(--ink);
    position: relative;
    background:
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 8px, transparent 8px 16px),
        linear-gradient(150deg, #3a3a3a 0%, #1a1a1a 60%, #2c2c2c 100%);
    filter: grayscale(1) contrast(1.1);
}
.news-card__media[data-rank="2"] { background: linear-gradient(150deg, #4a4a4a, #161616); }
.news-card__media[data-rank="3"] { background: linear-gradient(150deg, #2e2e2e, #0e0e0e); }
.news-card__media-tag {
    position: absolute;
    left: 12px; bottom: 12px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--red);
    padding: 3px 8px;
}
.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    flex: 1;
}
.news-card__meta {
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.news-card__title {
    margin: 0;
    font-family: var(--body);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ink);
}
.news-card__link { color: var(--ink); text-decoration: none; }
.news-card__link::after { content: ""; position: absolute; inset: 0; }
.news-card__link:focus-visible { outline: none; }
.news-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--body);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 3px solid var(--ink);
    padding-bottom: 2px;
}
.news__footer {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

@media (max-width: 820px) {
    .news__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* =====================================================
   E. TEASING TRANSPARENCE
   ===================================================== */
.transparency__panel {
    border: 4px solid var(--ink);
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 36px);
}
.transparency__metrics {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 40px;
    align-items: end;
}
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__value {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.85;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.metric__label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.metric--highlight { align-items: flex-end; text-align: right; }
.metric--highlight .metric__value {
    background: var(--yellow);
    color: var(--ink);
    padding: 6px 14px;
}
.transparency__rule {
    margin: 0;
    padding: 22px 0;
    border-top: 2px dashed var(--ink);
    border-bottom: 2px dashed var(--ink);
    text-align: center;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.55;
    color: var(--ink-soft);
}
.transparency__rule strong { color: var(--ink); font-weight: 700; }
.transparency__panel .btn-solid { align-self: center; }

@media (max-width: 620px) {
    .transparency__metrics { grid-template-columns: 1fr; }
    .metric--highlight { align-items: flex-start; text-align: left; }
}

/* =====================================================
   PRÉ-FOOTER — NEWSLETTER
   ===================================================== */
.newsletter {
    border: 3px solid var(--ink);
    padding: clamp(32px, 5vw, 64px);
}
.newsletter__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter__title {
    margin: 0 0 28px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}
.newsletter__field {
    display: flex;
    justify-content: center;
}
.newsletter__input {
    flex: 1;
    min-width: 0;
    font-family: var(--body);
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-right: none;
    padding: 14px 16px;
    outline: none;
    transition: border-width 120ms ease, border-color 120ms ease;
}
.newsletter__input:focus {
    border-width: 4px;
    padding: 12px 14px;
}
.newsletter__input--error,
.newsletter__input--error:focus {
    border-color: var(--red);
    box-shadow: none;
}
.newsletter__submit {
    flex-shrink: 0;
    font-family: var(--body);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--red);
    border: 2px solid var(--red);
    padding: 14px 26px;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}
.newsletter__submit:hover,
.newsletter__submit:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    outline: none;
}
.newsletter__error {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    text-align: left;
}
.newsletter__success {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
}
.newsletter__success .hl { background: var(--yellow); padding: 0 8px; }

@media (max-width: 520px) {
    .newsletter__field { flex-direction: column; }
    .newsletter__input { border-right: 2px solid var(--ink); border-bottom: none; }
    .newsletter__input:focus { border-right-width: 4px; }
    .newsletter__submit { width: 100%; }
}
/* =====================================================
   Reveal au chargement de la home
   ===================================================== */
/* Reveal au chargement de la home */
.hero,
.urgency,
.map-teaser,
.news,
.transparency { animation: rise 700ms both ease-out; }
.urgency { animation-delay: 80ms; }
.map-teaser { animation-delay: 120ms; }
.news { animation-delay: 160ms; }
.transparency { animation-delay: 200ms; }
