/* ══════════════════════════════════════════════════════════════════
   H12 HOLDING — h12.fr
   Système de design : papier, encre, bronze. Éditorial, sobre, rapide.
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Surfaces */
    --paper:      #f7f4ec;   /* fond de page */
    --paper-alt:  #efe9db;   /* fond de section alterné */
    --surface:    #fffdf9;   /* cartes, champs, éléments élevés */

    /* Texte */
    --ink:        #17150f;   /* texte principal */
    --ink-soft:   #4c473c;   /* texte secondaire */
    --muted:      #8a8274;   /* libellés, texte tertiaire */

    /* Traits */
    --line:       rgba(23, 21, 15, .14);
    --line-soft:  rgba(23, 21, 15, .08);

    /* Accent — bronze discret */
    --accent:      #7a5a2c;
    --accent-soft: rgba(122, 90, 44, .10);
    --accent-line: rgba(122, 90, 44, .35);

    /* États */
    --success:     #2f6b46;
    --success-bg:  rgba(47, 107, 70, .08);
    --success-line:rgba(47, 107, 70, .3);
    --error:       #a23b32;
    --error-bg:    rgba(162, 59, 50, .08);
    --error-line:  rgba(162, 59, 50, .3);

    --radius: 3px;
    --serif: 'Fraunces', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    /* Le site reste volontairement clair : c'est le parti pris (papier / encre).
       On ajuste seulement le contraste des traits pour rester lisible si le
       navigateur force un thème sombre autour d'un fond clair. */
    :root { --line: rgba(23, 21, 15, .22); }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--surface); }

/* ── Polices auto-hébergées (Fraunces, usage titres uniquement) ─── */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/fraunces-500.b68cbd51aa9d.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fraunces-600.798432d9a37d.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/fraunces-500italic.99d75bcc0266.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
/* Instance à petit corps optique (opsz 9) : contrairement au 144pt utilisé
   pour les titres, le fût du H reste plein et ne disparaît pas en filet
   à la taille du logo (sinon "H12" se lit "III2"). Réservée au logotype. */
@font-face {
    font-family: 'Fraunces Logo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fraunces-logo-600.8cee268a4ab7.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ── Layout de base ──────────────────────────────────────────────── */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 6%;
    padding-right: 6%;
}
section { padding: 5.5rem 6%; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 6%;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    transition: padding .2s ease, box-shadow .2s ease;
}
.navbar.scrolled {
    padding: .8rem 6%;
    box-shadow: 0 1px 0 var(--line);
}
.navbar-brand {
    display: flex; align-items: baseline; gap: .5rem;
    font-family: 'Fraunces Logo', var(--serif); font-weight: 600;
    font-size: 1.5rem; letter-spacing: -0.01em;
    color: var(--ink);
}
.navbar-brand .tag {
    font-family: var(--sans); font-weight: 600;
    font-size: .62rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a:not(.nav-rdv) {
    font-size: .84rem; font-weight: 500; color: var(--ink-soft);
    letter-spacing: .01em;
    padding-bottom: .2rem;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-links a:not(.nav-rdv):hover { color: var(--ink); border-color: var(--accent-line); }
.nav-links .nav-rdv {
    padding: .55rem 1.25rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: .82rem; font-weight: 600;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.nav-links .nav-rdv:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 30px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
    display: block; width: 100%; height: 1.5px;
    background: var(--ink); transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Boutons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .95rem 2rem;
    font-size: .92rem; font-weight: 600;
    border-radius: var(--radius);
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ink); color: var(--paper);
    border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-ghost {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.text-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .9rem; font-weight: 600; color: var(--accent);
    border-bottom: 1px solid var(--accent-line);
    padding-bottom: .1rem;
    transition: border-color .2s, gap .2s;
}
.text-link:hover { gap: .65rem; border-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    padding: clamp(7.5rem, 14vw, 10rem) 6% 5rem;
    max-width: 900px;
}
.eyebrow {
    display: flex; align-items: center; gap: .7rem;
    font-size: .74rem; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: .16em;
    margin-bottom: 1.4rem;
}
.eyebrow::before {
    content: ''; display: block; width: 28px; height: 1px;
    background: var(--accent-line);
}
.hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1.7rem;
}
.hero h1 em {
    font-style: italic; font-weight: 500; color: var(--accent);
}
.hero-sub {
    max-width: 46ch;
    font-size: 1.18rem; color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 2.6rem;
}

/* ── En-têtes de section ─────────────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: .9rem;
}
.section-desc { color: var(--ink-soft); font-size: 1.02rem; max-width: 52ch; }

#participations { background: var(--paper-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ── Participations (table des filiales) ────────────────────────── */
.holdings-list { border-top: 1px solid var(--line); }
.holding-row {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: baseline;
    gap: 1.6rem 2rem;
    padding: 2.1rem 0;
    border-bottom: 1px solid var(--line);
    transition: background .2s;
}
.holding-index {
    font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: 1.15rem; color: var(--muted);
}
.holding-main h3 {
    font-family: 'Fraunces Logo', var(--serif); font-weight: 600;
    font-size: 1.5rem; letter-spacing: -0.01em;
    color: var(--ink);
    display: inline;
}
.holding-sector {
    display: inline-block;
    margin-left: .7rem;
    font-size: .68rem; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: .1em;
    vertical-align: middle;
}
.holding-desc { color: var(--ink-soft); font-size: .98rem; margin-top: .5rem; max-width: 52ch; }
.holding-soon {
    color: var(--muted); font-size: .8rem; font-style: italic;
    margin-top: .5rem;
}
.holding-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .86rem; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: .15rem;
    align-self: center;
    transition: border-color .2s, color .2s, gap .2s;
    white-space: nowrap;
}
.holding-link:hover { color: var(--accent); border-color: var(--accent-line); gap: .6rem; }
.holding-link svg { width: 14px; height: 14px; }

/* ── Le Groupe ───────────────────────────────────────────────────── */
#groupe { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
#groupe .section-head { margin-bottom: 1.6rem; }
.groupe-text p { color: var(--ink-soft); font-size: 1.03rem; max-width: 48ch; }

.facts { border-top: 1px solid var(--line); }
.fact {
    display: flex; justify-content: space-between; gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}
.fact dt { color: var(--muted); font-weight: 600; }
.fact dd { color: var(--ink); text-align: right; font-weight: 500; }

/* ── Contact / CTA ───────────────────────────────────────────────── */
#contact { background: var(--paper-alt); border-top: 1px solid var(--line-soft); text-align: center; }
#contact .section-head { margin: 0 auto 2.2rem; text-align: center; }
#contact .eyebrow { justify-content: center; }
#contact .eyebrow::before { display: none; }
#contact .section-desc { margin: 0 auto; }
.contact-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap;
    margin-top: 2.4rem;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    padding: 3.5rem 6% 3rem;
    border-top: 1px solid var(--line);
}
.footer-top {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: 1rem 2.5rem;
    margin-bottom: 1.8rem;
}
.footer-brand {
    font-family: 'Fraunces Logo', var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink);
    display: flex; align-items: baseline; gap: .5rem;
}
.footer-brand .tag {
    font-family: var(--sans); font-weight: 600; font-size: .6rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.footer-links a { font-size: .85rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-legal {
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-soft);
    color: var(--muted); font-size: .8rem; line-height: 1.7;
}
.footer-legal a { color: var(--muted); border-bottom: 1px solid var(--line); }
.footer-legal a:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-meta {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem;
    margin-top: 1.2rem;
    font-size: .78rem; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-toggle span, .navbar, .btn, .btn svg, .holding-link { transition: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
    #groupe { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper);
        padding: 1.5rem 6% 2rem;
        gap: 1.1rem;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open .nav-rdv { margin-top: .4rem; }
    .nav-toggle { display: flex; }

    section { padding: 4rem 6%; }
    .hero { padding-top: 7rem; padding-bottom: 3.5rem; }

    .holding-row {
        grid-template-columns: 1fr;
        gap: .4rem;
        padding: 1.8rem 0;
    }
    .holding-index { order: -1; }
    .holding-link { justify-self: start; margin-top: .8rem; }

    .fact { flex-direction: column; gap: .2rem; }
    .fact dd { text-align: left; }

    .contact-actions { flex-direction: column; gap: 1.2rem; }

    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-meta { flex-direction: column; }
}
