/* Polices hébergées sur le site (aucun appel à Google : pas de transfert d'adresse IP des visiteurs) */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cinzel-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }

:root {
    --navy: #1c2541;
    --navy-soft: #2e3a5c;
    --gold: #b08d57;
    --gold-soft: #e9dcc7;
    --blush: #f4e8e4;
    --cream: #fbf8f4;
    --mauve: #8a5a6b;
    --ink: #2a2f3d;
    --muted: #6a6f7d;
    --line: #e7dfd6;
    --serif: "Cormorant Garamond", Georgia, serif;
    --logo: "Cinzel", Georgia, serif;
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  .todo { background: #fff3a6; color: #5a4a00; padding: 0 4px; border-radius: 3px; }

  /* En-tête */
  header { position: sticky; top: 0; z-index: 20; background: rgba(251,248,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
  /* Logo dessiné (net à toutes les tailles), organisé comme le logo officiel :
     soleil centré, « SOLARYS » dessous, « RECRUTEMENT » en petites capitales espacées. Hauteur ≈ 56 px */
  .brand { flex-direction: column; justify-content: center; gap: 0; text-align: center; line-height: 1; }
  .brand svg { width: 36px; height: 20px; margin-bottom: 3px; }
  .brand b { font-family: var(--logo); font-weight: 500; font-size: 21px; letter-spacing: .12em; padding-left: .12em; color: var(--navy); }
  .brand small { font-size: 8px; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--navy); margin-top: 4px; }
  nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
  nav a { text-decoration: none; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
  nav a:hover { color: var(--gold); }
  .tools { display: flex; align-items: center; gap: 12px; }
  .lang { border: 1px solid var(--navy); background: none; color: var(--navy); font: 500 12px var(--sans); letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
  .lang:hover { background: var(--navy); color: var(--cream); }
  .burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
  .burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

  /* Hero */
  /* Le haut de page reste sur fond crème : l'image s'y fond sans bord net */
  .hero { position: relative; overflow: hidden; padding: 104px 0 112px; background: var(--cream); }
  /* Ordinateur : le texte sort du conteneur centré et part près du bord gauche */
  .hero .wrap { max-width: none; padding-left: clamp(24px, 5vw, 140px); }
  /* Le texte s'arrête au bord de la photo (qui commence à 45 % de l'écran) : un titre trop long passe à la ligne au lieu de chevaucher l'image */
  .hero-text { position: relative; z-index: 1; max-width: min(660px, calc(45vw - clamp(24px, 5vw, 140px))); }
  .hero h1 em { display: block; }
  /* Paragraphes : s'arrêtent avant le début de l'image (45 % de la largeur), pour rester sur le crème */
  .hero-text .hero-sub, .hero-text .lead, .hero-text .sectors-line { max-width: min(34em, calc(45vw - clamp(24px, 5vw, 140px) - 32px)); }
  .hero-sub { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--navy); line-height: 1.3; margin: 16px 0 0; }
  .eyebrow { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0; }
  h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
  h1 em { font-style: italic; color: var(--mauve); font-weight: 500; }
  .lead { font-size: 1.12rem; color: var(--muted); margin: 18px 0 32px; max-width: 34em; }
  .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
  .btn { display: inline-block; text-decoration: none; font: 500 14px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 15px 26px; border-radius: 2px; border: 1px solid var(--navy); transition: .2s; cursor: pointer; }
  .btn-main { background: var(--navy); color: var(--cream); }
  .btn-main:hover { background: var(--navy-soft); }
  .btn-ghost { background: transparent; color: var(--navy); }
  .btn-ghost:hover { background: var(--navy); color: var(--cream); }
  /* Grande image : moitié droite, jusqu'au bord de l'écran.
     Seul le masque crée le fondu (aucun voile par-dessus). Deux dégradés combinés (« intersect ») :
     bord gauche progressif (transparent 0 %, mi-opaque 3,5 %, opaque 7 %) ET bord bas (opaque jusqu'à 93 %). */
  .hero-visual { position: absolute; top: 0; right: 0; bottom: 0; width: 55vw; }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 3.5%, #000 7%), linear-gradient(to bottom, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 3.5%, #000 7%), linear-gradient(to bottom, #000 93%, transparent 100%);
    mask-composite: intersect; }
  .sectors-line { margin-top: 26px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }

  /* Sections */
  section { padding: 96px 0; }
  .head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
  .head h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
  .head p { color: var(--muted); margin: 14px 0 0; }
  .rule { width: 56px; height: 1px; background: var(--gold); margin: 18px auto 0; }

  /* Spécialités */
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .tile { background: #fff; border: 1px solid var(--line); padding: 28px 24px; transition: .2s; }
  .tile:hover { border-color: var(--gold); transform: translateY(-2px); }
  .tile .ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
  .tile h3 { font-size: 1.45rem; margin-bottom: 6px; }
  .tile p { margin: 0; font-size: .95rem; color: var(--muted); }
  .roles { margin-top: 40px; text-align: center; }
  .roles p { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .chip { border: 1px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 999px; font-size: .92rem; }

  /* Pourquoi */
  .why { background: var(--navy); color: #e8e4dc; }
  .why .head h2 { color: #fff; }
  .why .head p { color: #c7c3bb; }
  .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .why-item { border-top: 1px solid rgba(176,141,87,.6); padding-top: 22px; }
  .why-item .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
  .why-item h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 8px; }
  .why-item p { margin: 0; color: #c7c3bb; font-size: .98rem; }

  /* Méthode */
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
  .step { padding: 0 14px; text-align: center; position: relative; }
  .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--gold); background: var(--cream); font-family: var(--serif); font-size: 1.5rem; color: var(--navy); position: relative; z-index: 1; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 50%; width: 100%; height: 1px; background: var(--gold-soft); }
  .step h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .step p { margin: 0; font-size: .93rem; color: var(--muted); }
  .head .sub { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--mauve); margin-top: 10px; }
  .fee { margin: 56px auto 0; max-width: 680px; text-align: center; background: #fff; border: 1px solid var(--line); padding: 28px 32px; }
  .fee h3 { font-size: 1.5rem; margin-bottom: 8px; }
  .fee p { margin: 0; color: var(--muted); font-size: .98rem; }

  /* Marion */
  .about { background: var(--blush); }
  .about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: center; }
  .portrait { position: relative; isolation: isolate; }
  .portrait { max-width: 360px; }
  .portrait img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
  .portrait::after { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--gold); z-index: -1; }
  .about blockquote { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; color: var(--navy); margin: 18px 0 24px; padding-left: 20px; border-left: 2px solid var(--gold); }
  .timeline { list-style: none; padding: 0; margin: 26px 0 0; }
  .timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(28,37,65,.1); }
  .timeline .yr { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
  .timeline b { font-weight: 500; color: var(--navy); }
  .timeline span.where { display: block; font-size: .92rem; color: var(--muted); }

  /* Candidats */
  .cand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Accompagnement */
  .coach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .coach-intro p { color: var(--muted); }
  .coach-intro .note { font-size: .95rem; margin-top: 22px; }
  .themes { display: grid; gap: 14px; }
  .theme { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
  .theme .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--mauve); display: grid; place-items: center; }
  .theme .ico svg { width: 22px; height: 22px; }
  .theme h3 { font-size: 1.3rem; margin-bottom: 4px; }
  .theme p { margin: 0; font-size: .95rem; color: var(--muted); }
  .insta { margin-top: 56px; text-align: center; }
  .insta-head { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--navy); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
  .insta-head svg { width: 20px; height: 20px; color: var(--mauve); }
  .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 0 auto 24px; }
  /* Cartes Instagram : le visuel du post remplit la carte (simple image + lien, aucun script Instagram) */
  .post-item { margin: 0; }
  .post { display: block; aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--blush); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
  .post:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(28,37,65,.45); }
  .post img { width: 100%; height: 100%; object-fit: cover; }
  /* Bandeau « Voir sur Instagram » : léger dégradé sombre derrière pour rester lisible */
  .post small { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 8px 10px; background: linear-gradient(to top, rgba(20,27,48,.72) 0%, rgba(20,27,48,.35) 55%, transparent 100%); font: 500 11px var(--sans); letter-spacing: .1em; text-align: center; }
  .post-item figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.35; color: var(--muted); text-align: center; }
  @media (max-width: 900px) {
    .coach-grid { grid-template-columns: 1fr; gap: 32px; }
    .posts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .post small { padding: 24px 4px 7px; font-size: 9.5px; letter-spacing: .05em; }
    .post-item figcaption { font-size: .75rem; margin-top: 6px; }
  }
  .card { background: #fff; border: 1px solid var(--line); padding: 36px 32px; }
  .card h3 { font-size: 1.7rem; margin-bottom: 10px; }
  .card p { color: var(--muted); }
  .card ul { padding-left: 18px; color: var(--muted); }
  .card .btn { margin-top: 10px; }

  /* Contact */
  .contact { background: var(--navy); color: #e8e4dc; }
  .contact .head h2 { color: #fff; }
  .contact .head p { color: #c7c3bb; }
  .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .coords a { text-decoration: none; }
  .coord { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .coord svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
  .coord small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a9a59d; }
  /* Encart « Écrire à Marion » (en attendant le branchement du formulaire de contact) */
  .write-box { background: var(--cream); color: var(--ink); padding: 36px 32px; }
  .write-box h3 { font-size: 1.9rem; margin-bottom: 12px; }
  .write-box .wb-note { color: var(--muted); font-size: 15px; }
  .wb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
  @media (max-width: 600px) { .write-box { padding: 28px 22px; } .wb-actions .btn { width: 100%; text-align: center; } }
  /* Page 404 */
  .notfound { text-align: center; min-height: calc(100vh - 172px); } /* 172 px ≈ en-tête + pied de page : le pied de page reste en bas de l'écran */
  .notfound p { color: var(--muted); max-width: 560px; margin: 16px auto 30px; }
  .notfound .ctas { justify-content: center; }
  form { background: var(--cream); color: var(--ink); padding: 32px; }
  .tabs { display: flex; gap: 0; margin-bottom: 22px; border: 1px solid var(--navy); }
  .tabs button { flex: 1; background: none; border: 0; padding: 11px; font: 500 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
  .tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  label { display: block; font-size: 13px; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
  input, textarea, select { width: 100%; margin-top: 5px; font: 400 16px var(--sans); padding: 11px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; }
  input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
  textarea { min-height: 110px; resize: vertical; }
  .rgpd { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; }
  .err { color: #a3433a; font-size: 13px; min-height: 1.2em; }
  /* !important : un élément masqué reste masqué même s'il a aussi une classe qui l'affiche (ex. la case vivier, .check) */
  .hidden { display: none !important; }

  footer { background: #141b30; color: #9c988f; font-size: 14px; padding: 36px 0; }
  .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
  .foot a { color: #d8d3c9; text-decoration: none; }
  .foot a.todo { color: #5a4a00; }
  .socials { display: flex; gap: 14px; }
  .socials svg { width: 20px; height: 20px; }

  /* Offres */
  .jobs { background: var(--blush); }
  /* Barre de filtres : recherche, Secteur, Lieu, Contrat, Réinitialiser */
  .job-filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); padding: 18px 20px; }
  .job-filters[hidden] { display: none; }
  .job-filters label { margin: 0; }
  .job-filters select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b08d57' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
  .job-filters select:focus { outline: 2px solid var(--gold); border-color: transparent; }
  .jf-reset { padding: 12px 18px; }
  .jf-reset:disabled { opacity: .45; cursor: default; }
  .jf-reset:disabled:hover { background: transparent; color: var(--navy); }
  .job-count { margin: 22px 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

  /* Cartes compactes en grille : 3 colonnes, 2 sur tablette, 1 sur téléphone */
  .job-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .job-list > .empty { grid-column: 1 / -1; }
  .empty .btn { margin-top: 14px; }
  .empty p { margin: 0; }
  .job-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); padding: 22px 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .job-card:hover, .job-card:focus-within { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(28,37,65,.35); }
  .job-card h3 { font-size: 1.4rem; line-height: 1.2; }
  .job-link { color: var(--navy); text-decoration: none; }
  .job-link:focus { outline: none; }
  /* Toute la carte est cliquable : le lien du titre s'étend sur toute sa surface */
  .job-link::after { content: ""; position: absolute; inset: 0; }
  .job-card:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
  .job-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .badge-new { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 3px 10px; border-radius: 999px; margin-right: 10px; vertical-align: 1px; }
  .job-badges .badge-new { margin-right: 0; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
  .tags span { font-size: 13px; border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; color: var(--navy); background: var(--cream); }
  .job-date { font-size: 13px; color: var(--muted); margin: auto 0 0; }
  .job-more { text-align: center; margin-top: 28px; }

  /* Fenêtre de détail d'une offre (même style que la fenêtre de candidature) */
  .job-detail .job-date { margin: 0 0 18px; }
  .job-detail .jd-resume { color: var(--ink); }
  .job-detail h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 22px 0 6px; }
  .job-detail ul { margin: 0; padding-left: 18px; color: var(--muted); }
  .job-detail li { margin-bottom: 4px; }
  .jd-actions { margin-top: 28px; }

  @media (max-width: 1000px) {
    .job-filters { grid-template-columns: repeat(3, 1fr); }
    .jf-search { grid-column: 1 / -1; }
    .jf-reset { grid-column: 1 / -1; justify-self: start; }
    .job-list { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .job-filters { grid-template-columns: 1fr 1fr; padding: 16px; }
    .job-filters label:nth-of-type(2) { grid-column: 1 / -1; }
    .jf-reset { justify-self: stretch; }
    .job-list { grid-template-columns: 1fr; }
  }
  .jobs-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 28px auto 0; max-width: 640px; }

  /* Fenêtre de candidature (formulaire Tally intégré dans la page) */
  .modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,27,48,.55); display: grid; place-items: center; padding: 16px; }
  .modal[hidden] { display: none; }
  .modal-box { background: var(--cream); width: 100%; max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 32px; }
  .modal-box h3 { font-size: 1.7rem; margin-bottom: 4px; }
  .modal-box .for { color: var(--gold); font-size: 14px; letter-spacing: .06em; margin: 0 0 8px; }
  /* Le bouton × reste visible en haut quand on fait défiler le formulaire */
  .close { position: sticky; top: 0; float: right; z-index: 1; width: 40px; height: 40px; margin: -20px -20px 0 0; background: var(--cream); border: 0; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--navy); cursor: pointer; }
  .close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  /* Marges négatives : compensent la marge intérieure de Tally pour aligner les champs sur le titre */
  .tally-wrap { clear: both; min-height: 200px; margin: 0 -8px; }
  .tally-wrap iframe { display: block; width: 100%; border: 0; }
  @media (max-width: 600px) {
    .modal { padding: 8px; }
    .modal-box { height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; padding: 24px 18px; }
    .close { margin: -14px -8px 0 0; }
  }

  .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
  .check input { width: auto; margin-top: 3px; }

  nav a.current { color: var(--gold); }
  .empty { text-align: center; background: #fff; border: 1px solid var(--line); padding: 32px; color: var(--muted); }


  /* Bouton flottant mobile */
  .float { display: none; }

  @media (max-width: 900px) {
    nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
    nav.open { display: block; }
    nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
    nav a { display: block; padding: 12px 0; }
    .burger { display: block; }
    /* Téléphone : photo portrait en pleine largeur au-dessus du texte, fondue vers le bas */
    .hero { padding: 0 0 56px; }
    .hero-visual { position: static; display: block; width: 100%; }
    .hero-visual img { height: auto; max-height: 64vh; aspect-ratio: 1122/1402;
      -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); -webkit-mask-composite: source-over;
      mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-composite: add; }
    .hero .wrap { padding-left: 24px; }
    .hero-text { max-width: none; margin-top: -16px; }
    .hero h1 em { display: inline; }
    .hero-text .hero-sub, .hero-text .lead, .hero-text .sectors-line { max-width: none; }
    .about-grid, .contact-grid, .cand-grid { grid-template-columns: 1fr; gap: 36px; }
    .portrait { max-width: 300px; margin: 16px auto 0; }
    .why-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 26px; }
    .step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; text-align: left; padding: 0; }
    .step::before { margin: 0; }
    .step:not(:last-child)::after { top: 52px; left: 26px; width: 1px; height: calc(100% - 26px); }
    section { padding: 68px 0; }
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .timeline li { grid-template-columns: 1fr; gap: 2px; }
    .float { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 30; gap: 10px; }
    .float a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--cream); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
    .float svg { width: 22px; height: 22px; }
    /* Mobile : même logo, ≈ 44 px de haut */
    .brand svg { width: 28px; height: 16px; margin-bottom: 2px; }
    .brand b { font-size: 17px; }
    .brand small { font-size: 6.5px; margin-top: 2px; }
  }

  /* Première section d'une sous-page : marge sous l'en-tête */
  .page-first { padding-top: 64px; }


  /* Mentions RGPD sous les formulaires */
  .rgpd a { color: inherit; text-decoration: underline; }
  .check.optional span { color: var(--muted); }
  .foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }

  /* Pages légales */
  .legal { max-width: 820px; margin: 0 auto; }
  .legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
  .legal .updated { color: var(--muted); font-size: .95rem; margin: 0 0 32px; }
  .legal h2 { font-size: 1.6rem; margin: 40px 0 12px; }
  .legal p, .legal li { color: var(--ink); }
  .legal table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: .95rem; background: #fff; }
  .legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
  .legal th { background: var(--blush); font-weight: 500; color: var(--navy); }
  @media (max-width: 700px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border-top: 0; } .legal tr { border-top: 1px solid var(--line); margin-bottom: 10px; } }
