/* Accueil — maquette R1 v2 « Continuité du hero » (claude.ai/design, Page Accueil - R1 v2).
   Sections entre le hero et le footer, hors bloc paiement. Tout est préfixé hm- et rangé sous .hh-home :
   styles.css exclut .hh-home de ses couleurs forcées en sombre, le thème passe uniquement par les variables ci-dessous.
   Les variables --hh-* (surface, encre, tuiles) viennent de hh-header.css, comme pour le hero. */

.hh-home {
    --hm-bg: #ffffff;          /* fond de page sous le dégradé */
    --hm-alt: #F8F9FA;         /* section remerciements */
    --hm-card: #f3f4f6;        /* cartes posées sur --hm-bg */
    --hm-card-line: #e5e7eb;
    --hm-text: #4b5563;
    --hm-soft: #6b7280;
    --hm-line: #e5e7eb;
    --hm-accent-bg: #0A2342;   /* carte mise en avant : navy en clair, blanche en sombre (inverse de la surface, comme le bouton du header) */
    --hm-accent-ink: #ffffff;
    --hm-accent-text: #c7d0de;
    --hm-accent-big: #ff4800;
    --hm-link: #e03f00;
    --hm-dash: #c5cad3;
    --hm-soon: #b45309;
    --hm-logo-bg: #ffffff;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--hh-ink);
    -webkit-font-smoothing: antialiased;
}
html.dark .hh-home, html[data-theme="dark"] .hh-home {
    --hm-bg: #111827;
    --hm-alt: #1f2937;
    --hm-card: #1f2937;
    --hm-card-line: #374151;
    --hm-text: #cbd5e1;
    --hm-soft: #9ca3af;
    --hm-line: #374151;
    --hm-accent-bg: #ffffff;
    --hm-accent-ink: #0A2342;
    --hm-accent-text: #4b5563;
    --hm-accent-big: #ff4800;
    --hm-link: #ff7a45;
    --hm-dash: rgba(255, 255, 255, .22);
    --hm-soon: #fcd34d;
    --hm-logo-bg: #f3f4f6;
}

.hh-home h2, .hh-home h3, .hh-home p { margin: 0; color: inherit; }
.hh-home h2, .hh-home h3 { text-wrap: balance; }
.hh-home p { text-wrap: pretty; }
.hh-home a { color: var(--hm-link); text-decoration: none; }
.hh-home a:hover { color: #ff4800; text-decoration: none; }
.hh-home a:focus-visible { outline: 2px solid #ff4800; outline-offset: 3px; }
.hh-home ul { margin: 0; padding: 0; list-style: none; }
.hh-home img { display: block; max-width: 100%; }

.hm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hm-sec { padding: 64px 0; background: var(--hm-bg); color: var(--hh-ink); }
.hm-lb { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ff4800; margin-bottom: 14px; }
.hm-h2 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.06; }
.hm-sub { color: var(--hm-text); font-size: 17px; line-height: 1.6; max-width: 580px; margin-top: 16px; }
.hm-fh { font-weight: 900; letter-spacing: -.06em; line-height: .95; font-size: clamp(36px, 7vw, 96px); text-wrap: balance; }
.hm-fh span { color: #ff4800; }
.hm-ck { display: grid; gap: 10px; }
.hm-ck li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.hm-ck li::before { content: "✓"; color: #ff4800; font-weight: 700; }
.hm-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 6px; font: 600 15px 'Poppins', system-ui, sans-serif; cursor: pointer; transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s; text-align: center; }
.hm-btn:hover { transform: translateY(-2px); opacity: .92; }
.hh-home .hm-btn-o, .hh-home .hm-btn-o:hover { background: #ff4800; color: #fff; }
.hh-home .hm-btn-g, .hh-home .hm-btn-g:hover { background: transparent; color: var(--hh-ink); box-shadow: inset 0 0 0 1.5px currentColor; }

/* 1. Suite du hero : citation, trois engagements, offres */
.hm-flow { background: var(--hh-surface); color: var(--hh-ink); padding-top: 24px; transition: background-color .4s ease, color .4s ease; }
.hm-intro { padding: 24px 0 36px; max-width: 1100px; }
.hm-qt { font-weight: 800; font-size: clamp(28px, 4.6vw, 64px); letter-spacing: -.045em; line-height: 1.08; max-width: 1100px; text-wrap: balance; }
.hm-qt em { font-style: normal; color: #ff4800; }
.hm-by { margin-top: 18px; font-size: 14px; color: var(--hh-muted); }

.hm-chs { display: grid; gap: 10px; }
.hm-ch { background: var(--hh-tile); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 220px; transition: transform .3s; }
.hm-ch:hover { transform: translateY(-3px); }
.hm-ch .hm-n { font-size: 13px; opacity: .7; }
.hm-ch .hm-big { font-weight: 900; font-size: min(56px, calc((100vw - 84px) / 5.4)); letter-spacing: -.06em; line-height: 1; margin-top: auto; padding-top: 28px; white-space: nowrap; }
/* Les trois valeurs ont la même taille, calculée sur la largeur de carte pour que « Apprendre » (≈ 5,2 em) tienne.
   Pas de container-type ici : son confinement de mise en page désactiverait le subgrid. */
.hm-ch p { color: var(--hh-muted); line-height: 1.6; font-size: 15px; }
.hm-ch-n { background: var(--hm-accent-bg); color: var(--hm-accent-ink); }
.hm-ch-n p { color: var(--hm-accent-text); }
.hm-ch-n .hm-big { color: var(--hm-accent-big); }

.hm-svcw { padding: 72px 0 0; }
.hm-svh { margin-bottom: 28px; }
.hm-sv { display: grid; gap: 10px; }
.hh-home .hm-s { border-radius: 20px; background: var(--hh-tile); color: var(--hh-ink); padding: 22px; display: flex; flex-direction: column; gap: 10px; border: 1px solid transparent; transition: transform .3s, border-color .3s; }
.hh-home a.hm-s:hover { transform: translateY(-4px); color: var(--hh-ink); border-color: #ff4800; }
.hm-s .hm-k { font-size: 13px; opacity: .7; }
.hm-s h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hm-s p { font-size: 14px; color: var(--hh-muted); line-height: 1.55; }
.hm-s .hm-ck li { font-size: 13px; color: var(--hh-muted); }
.hm-s .hm-pr { font-weight: 900; font-size: 40px; letter-spacing: -.05em; margin-top: auto; padding-top: 16px; }
.hm-s .hm-pr small { font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .6; }
.hh-home .hm-s-n, .hh-home a.hm-s-n:hover { background: var(--hm-accent-bg); color: var(--hm-accent-ink); }
.hm-s-n p, .hm-s-n .hm-ck li { color: var(--hm-accent-text); }
.hm-s-n .hm-ck li::before { color: var(--hm-accent-big); }
.hh-home .hm-s-off { background: transparent; border: 1.5px dashed var(--hm-dash); }

.hm-fade { height: 120px; background: linear-gradient(180deg, var(--hh-surface), var(--hm-bg)); }

/* 2. Ressources */
.hm-lrn > div { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--hm-line); }
.hm-lrn > div:last-child { border-bottom: 1px solid var(--hm-line); }
.hm-lrn h3 { font-size: 20px; font-weight: 700; }
.hm-lrn p { color: var(--hm-text); font-size: 14px; line-height: 1.55; }
.hm-mk { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hm-mk-o { color: #ff4800; }
.hm-mk-y { color: var(--hm-soon); }
.hm-lnc { font-size: 14px; color: var(--hm-soft); padding: 20px 0; border-top: 1px solid var(--hm-line); margin-top: 40px; }
.hm-lnc a { font-weight: 600; }

/* 3. Équipe */
.hm-tm { display: grid; gap: 10px; }
.hm-tm > div { background: var(--hm-card); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.hm-tm .hm-r { font-size: 13px; color: var(--hm-link); font-weight: 600; }
.hm-tm h3 { font-weight: 900; font-size: 40px; letter-spacing: -.05em; line-height: 1; }
.hm-tm p { color: var(--hm-text); font-size: 15px; line-height: 1.65; margin-top: 6px; }
.hm-ln { display: flex; gap: 16px; font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 12px; }

/* 4. Tarifs étudiants (navy dans les deux thèmes) */
.hm-sec.hm-stu { background: linear-gradient(90deg, #0A2342, #1D3557); color: #fff; overflow: hidden; }
.hm-stu .hm-in { display: grid; gap: 32px; }
.hm-stu .hm-pct { font-size: clamp(80px, 11vw, 150px); font-weight: 800; letter-spacing: -.07em; line-height: .85; color: #ff4800; }
.hm-stu .hm-sub { color: #c7d0de; }
.hm-doc { display: grid; gap: 10px; margin: 20px 0 28px; }
.hm-doc li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(127, 147, 179, .35); }
.hm-doc svg { width: 22px; height: 22px; flex: none; color: #ff4800; }

/* 5. Presse (tuiles claires dans les deux thèmes : logos sombres) */
.hm-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-logos > div { height: 120px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--hm-logo-bg); border: 1px solid var(--hm-card-line); }
.hm-logos img { max-height: 76px; max-width: 100%; object-fit: contain; }

/* 6. Remerciements, carrousel infini */
.hm-sec.hm-thanks { background: var(--hm-alt); overflow: hidden; }
.hm-thx { font-size: 96px; font-weight: 900; letter-spacing: -.07em; line-height: .85; }
.hm-thx i { color: #ff4800; font-style: normal; }
.hm-mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hm-mq-t { display: flex; gap: 14px; width: max-content; animation: hm-mqs 45s linear infinite; }
.hm-mq-d { display: flex; gap: 14px; }
.hm-mq:hover .hm-mq-t, .hm-mq:focus-within .hm-mq-t { animation-play-state: paused; }
@keyframes hm-mqs { to { transform: translateX(calc(-50% - 7px)); } }
.hh-home .hm-mc { flex: none; width: 260px; background: var(--hm-bg); border: 1px solid var(--hm-card-line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--hh-ink); transition: border-color .3s; }
.hh-home .hm-mc:hover { color: var(--hh-ink); border-color: #ff4800; }
.hm-mc .hm-lg { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
/* Logos sponsors. .hm-lg-pill : logos sombres, posés sur une pastille claire en mode sombre.
   EtherLinx est un logo blanc : pastille navy en clair, rien en sombre. Nouvelle-Aquitaine : jamais de fond. */
.hm-mc .hm-lg img { max-height: 84px; max-width: 200px; object-fit: contain; }
html.dark .hm-mc .hm-lg-pill img, html[data-theme="dark"] .hm-mc .hm-lg-pill img { background: #f3f4f6; border-radius: 8px; padding: 6px 10px; }
.hm-mc .hm-lg-white img { background: #0A2342; border-radius: 8px; padding: 10px 14px; }
html.dark .hm-mc .hm-lg-white img, html[data-theme="dark"] .hm-mc .hm-lg-white img { background: none; padding: 0; }
.hm-mc h3 { font-size: 16px; font-weight: 700; }
.hm-mc p { font-size: 13px; color: var(--hm-soft); line-height: 1.5; }

/* 7. Appel final */
.hm-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hm-final .hm-ck { grid-template-columns: 1fr 1fr; text-align: left; gap: 10px 28px; }

@media (min-width: 900px) {
    .hm-wrap { padding: 0 56px; }
    .hm-sec { padding: 112px 0; }
    .hm-h2 { font-size: 56px; }
    .hm-intro { padding: 64px 0 56px; }
    /* Grille partagée (subgrid) : libellé / valeur / texte sur les mêmes lignes dans les trois cartes,
       les valeurs restent alignées quelle que soit la longueur des textes */
    .hm-chs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; }
    .hm-ch { padding: 32px; min-height: 340px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
    /* carte = (largeur utile - 2 gouttières) / 3 - 64 px de padding ; largeur utile = min(100vw, 1240px) - 112px */
    .hm-ch .hm-big { font-size: min(88px, calc(((min(100vw, 1240px) - 132px) / 3 - 64px) / 5.4)); align-self: end; }
    .hm-svcw { padding: 120px 0 0; }
    .hm-svh { margin-bottom: 44px; }
    .hm-sv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .hh-home .hm-s { padding: 28px; min-height: 380px; }
    .hm-s .hm-pr { font-size: 52px; }
    .hh-home .hm-s-off { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 32px; }
    .hm-s-off p { max-width: 520px; }
    .hm-fade { height: 160px; }
    .hm-lrn > div { grid-template-columns: 240px 1fr 1.2fr 120px; align-items: center; gap: 32px; padding: 28px 0; }
    .hm-lrn .hm-mk:last-child { justify-self: end; }
    .hm-tm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .hm-tm > div { padding: 32px; min-height: 320px; }
    .hm-tm h3 { font-size: clamp(36px, 3.8vw, 56px); }
    .hm-stu .hm-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
    .hm-logos { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .hm-logos > div { height: 190px; padding: 28px; }
    .hm-logos img { max-height: 120px; }
    .hm-thx { font-size: 200px; }
    .hh-home .hm-mc { width: 320px; padding: 28px; }
    .hm-mc .hm-lg { height: 130px; }
    .hm-mc .hm-lg img { max-height: 110px; max-width: 250px; }
    .hm-final .hm-ck { grid-template-columns: repeat(4, auto); }
}
@media (prefers-reduced-motion: reduce) {
    .hm-mq-t { animation: none; }
    .hm-mq { overflow-x: auto; }
    .hm-ch, .hh-home .hm-s, .hm-btn { transition: none; }
}
