/* ==========================================================
   ACROPOLE SÉCURITÉ — Feuille de style principale
   Palette : noir profond / argent (reprise du logo)
   Titres : Cinzel (capitales romaines, proche du logo)
   Texte  : Lato (typographie du document client)
   ========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --line: #2a2a2f;
  --line-soft: #1c1c20;

  --text: #d6d7da;
  --muted: #9b9ca2;
  --heading: #f3f3f4;
  --silver: #c9cacf;
  --silver-dark: #8f9197;

  --font-title: "Cinzel", "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--silver); text-decoration-color: rgba(201, 202, 207, .4); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: .03em; }
h4 { font-family: var(--font-body); font-size: 1rem; letter-spacing: .02em; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { color: var(--heading); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--silver); color: var(--bg); padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

/* ---------- Petits éléments typographiques ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.lead { font-size: 1.15rem; color: var(--heading); font-weight: 400; }
.muted { color: var(--muted); }
.motto {
  font-family: var(--font-title);
  letter-spacing: .32em; text-transform: uppercase;
  font-size: .8rem; color: var(--silver-dark);
}

.divider {
  display: flex; align-items: center; gap: 14px; color: var(--silver-dark);
  margin: 28px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #ececee 0%, #b9bbc0 100%);
  color: #0a0a0b;
  border-color: #d9dadd;
}
.btn-primary:hover { background: #fff; color: #0a0a0b; }
.btn-outline { border-color: rgba(201, 202, 207, .55); color: var(--heading); background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
}
/* Fond flouté sur un calque séparé : un backdrop-filter posé directement sur
   l'en-tête en ferait le cadre de référence du menu mobile (position: fixed),
   qui se retrouverait alors limité à la hauteur de l'en-tête, donc invisible. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand img { width: 54px; height: auto; }
/* « SÉCURITÉ » centré sous « ACROPOLE ».
   Le letter-spacing ajoute un espace après la dernière lettre :
   la marge négative équivalente le neutralise pour un centrage optique exact. */
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; letter-spacing: .1em; margin-right: -.1em; }
.brand-sub { font-family: var(--font-title); font-size: .62rem; letter-spacing: .5em; margin-right: -.5em; color: var(--silver-dark); margin-top: 5px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--heading); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--silver);
}
.main-nav .btn { margin-left: 12px; padding: 11px 18px; color: #0a0a0b; }
.main-nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; padding: 0; cursor: pointer; color: var(--heading);
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 24px var(--gutter);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
    overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 18px 4px; font-size: .95rem; border-bottom: 1px solid var(--line-soft); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav .btn { display: flex; margin: 24px 0 0; padding: 16px; border-bottom: 0; }
  .nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(255, 255, 255, .05), transparent 70%),
    var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: .5em; }
.hero p { max-width: 580px; }
.hero .motto-line { font-weight: 700; color: var(--heading); margin: 26px 0 34px; }
.hero-logo { position: relative; width: 100%; max-width: 500px; margin-left: auto; }
/* Le fond du logo (#040404) est plus sombre que la page : "lighten" le fait disparaître */
.hero-logo img, .brand img, .footer-brand img { mix-blend-mode: lighten; }
.hero-logo img { width: 100%; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 240px; margin: 0 auto; }
}

/* ---------- Bandeau d'en-tête des pages internes ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 50% 90% at 90% 0%, rgba(255, 255, 255, .05), transparent 70%),
    var(--bg);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 310px;
  background: url("../img/logo-embleme.jpg") center / contain no-repeat;
  opacity: .12;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  pointer-events: none;
}
.page-hero h1 { max-width: 820px; position: relative; z-index: 1; }
.page-hero p { max-width: 680px; position: relative; z-index: 1; }

.breadcrumb { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--heading); }

/* ---------- Bande de chiffres / atouts ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-alt); }
.stat { padding: 30px 24px; border-right: 1px solid var(--line-soft); text-align: center; }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-title); font-size: 1.7rem; color: var(--heading); line-height: 1.1; }
.stat-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Grilles & cartes ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--silver-dark); transform: translateY(-3px); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--font-title); font-size: .95rem; color: var(--silver-dark); letter-spacing: .1em; margin-bottom: 14px; display: block; }
.card-link { display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }

/* Trois piliers : Protéger / Sécuriser / Assister */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pillar { padding: 44px 34px; border-right: 1px solid var(--line); text-align: center; }
.pillar:last-child { border-right: 0; }
.pillar-icon { width: 46px; height: 46px; margin: 0 auto 20px; color: var(--silver); }
.pillar h3 { font-size: 1.4rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* Bloc image + texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Photo centrée dans un cadre argent fin, à égale distance sur les quatre côtés */
.portrait { position: relative; width: calc(100% - 28px); max-width: 440px; margin: 14px auto; }
/* Le fichier reste identique à l'original (1506 × 1626) : le visage y est centré sur x = 743,
   l'affichage masque donc les 20 px de droite pour le placer au milieu du cadre. */
.portrait img {
  width: 100%; aspect-ratio: 1486 / 1626; object-fit: cover; object-position: left center;
  border-radius: var(--radius);
  outline: 1px solid var(--silver-dark); outline-offset: 13px;
}
.portrait figcaption { margin-top: 36px; text-align: center; }
.portrait figcaption strong { display: block; font-family: var(--font-title); font-size: 1.15rem; letter-spacing: .06em; }
.portrait figcaption span { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

/* Liste à puces stylisée */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 7px; height: 7px; border: 1px solid var(--silver); transform: rotate(45deg);
}
.checklist.cols { columns: 2; column-gap: 40px; }
.checklist.cols li { break-inside: avoid; }
@media (max-width: 640px) { .checklist.cols { columns: 1; } }

/* ---------- Prestations (page détaillée) ---------- */

.service-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-index a {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 20px; background: var(--bg);
  text-decoration: none; color: var(--text); font-size: .95rem;
  transition: background .2s;
}
.service-index a:hover { background: var(--surface); color: #fff; }
.service-index b { font-family: var(--font-title); color: var(--silver-dark); font-weight: 600; min-width: 26px; }
@media (max-width: 1020px) { .service-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-index { grid-template-columns: 1fr; } }

.service {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 48px 0; border-bottom: 1px solid var(--line-soft);
}
.service:last-child { border-bottom: 0; }
.service-num { font-family: var(--font-title); font-size: 3rem; line-height: 1; color: var(--line); -webkit-text-stroke: 1px var(--silver-dark); color: transparent; }
.service h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.service .note {
  font-size: .92rem; color: var(--muted);
  border-left: 2px solid var(--silver-dark); padding: 10px 0 10px 18px; margin-top: 8px;
}
@media (max-width: 640px) { .service { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; } .service-num { font-size: 2.2rem; } }

/* ---------- Méthode (étapes) ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 22px 8px 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; background: var(--bg-alt); border: 1px solid var(--silver); transform: rotate(45deg);
}
.step-num { font-family: var(--font-title); color: var(--silver-dark); font-size: .9rem; letter-spacing: .1em; }
.step h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--muted); }
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .step { padding: 0 0 26px 30px; }
  .step::before { top: 8px; left: -5px; }
}

/* ---------- Bandeau d'appel à l'action ---------- */

.cta-band {
  text-align: center;
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(255, 255, 255, .06), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}
.cta-band p { max-width: 620px; margin: 0 auto 32px; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Offres d'emploi ---------- */

.job {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
}
.job + .job { margin-top: 16px; }
.job h3 { font-size: 1.3rem; margin-bottom: .35em; }
.job p { color: var(--text); margin-bottom: .6em; }
.job p:last-of-type { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
}
.tag.open { border-color: rgba(126, 196, 150, .45); color: #9bd4ae; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; padding: 26px 22px; } }

.howto { counter-reset: how; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.howto li {
  counter-increment: how;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.howto li::before {
  content: counter(how, decimal-leading-zero);
  font-family: var(--font-title); font-size: 1.6rem; color: var(--silver);
  line-height: 1;
}
.howto h3 { font-size: 1.1rem; margin-bottom: .4em; }
.howto p:last-child, .howto ul:last-child { margin-bottom: 0; }

.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-table th, .doc-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.doc-table td:first-child { color: var(--heading); font-weight: 700; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.badge-req { background: var(--silver); color: #0a0a0b; }
.badge-opt { border: 1px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap .doc-table tr:last-child td { border-bottom: 0; }

.mail-template {
  background: #0d0d0f; border: 1px dashed var(--silver-dark); border-radius: var(--radius);
  padding: 24px 26px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88rem;
  white-space: pre-wrap; color: var(--text); line-height: 1.65; margin: 0 0 16px;
  overflow-x: auto;
}

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 28px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 8px; margin: 0; background: var(--surface); }
.form legend { font-family: var(--font-title); color: var(--heading); font-size: 1.05rem; letter-spacing: .06em; padding: 0 10px; margin-left: -10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--heading); margin-bottom: 8px; }
.field .req { color: var(--silver-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg); color: var(--heading);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; font: inherit; font-size: 1rem;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--silver); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9rem; color: var(--muted); background: var(--bg); cursor: pointer; transition: all .2s;
}
.choice input:checked + span { border-color: var(--silver); color: var(--heading); background: var(--surface-2); }
.choice input:focus-visible + span { outline: 2px solid var(--silver); outline-offset: 2px; }

.form-note { font-size: .85rem; color: var(--muted); font-style: italic; }
.form-status { display: none; padding: 14px 18px; border: 1px solid var(--silver-dark); border-radius: var(--radius); background: var(--surface); font-size: .95rem; }
.form-status.show { display: block; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
/* Bloc collant uniquement en deux colonnes et sur un écran assez haut pour le contenir entièrement */
@media (min-width: 961px) and (min-height: 960px) {
  .contact-card { position: sticky; top: calc(var(--header-h) + 24px); }
}
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .k { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.contact-item .v { color: var(--heading); font-size: 1.05rem; text-decoration: none; }
.contact-item a.v:hover { text-decoration: underline; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--surface); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- Pages juridiques ---------- */

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.legal-toc p { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0 0 24px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--heading); }
.legal h2 { font-size: 1.6rem; padding-top: 12px; margin-top: 56px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-body); font-size: 1.02rem; letter-spacing: .02em; font-weight: 700; margin-top: 28px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .4em; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

.draft-note {
  border: 1px dashed #c9a14a; color: #e6cf98; background: rgba(201, 161, 74, .07);
  padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 32px;
}

/* ---------- Pied de page ---------- */

.site-footer { background: #070708; border-top: 1px solid var(--line-soft); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; text-align: center; line-height: 1; }
.footer-brand img { width: 120px; margin-bottom: 16px; }
.footer-brand .brand-name { font-size: 1.35rem; color: var(--heading); }
.footer-brand .brand-sub { font-size: .66rem; margin-top: 7px; }
.footer-brand .motto { margin-top: 16px; font-size: .62rem; letter-spacing: .28em; margin-right: -.28em; line-height: 1.4; }
.site-footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-credit { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.flag-ch { flex: none; border-radius: 2px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animation d'ouverture (première visite) ---------- */

/* Écran noir dès le premier affichage, en attendant le script.
   Sécurité : il disparaît seul après 6 s si le script ne se charge pas. */
html.intro body::before {
  content: ""; position: fixed; inset: 0; z-index: 998; background: var(--bg);
  animation: intro-failsafe 0s linear 6s forwards;
}
@keyframes intro-failsafe { to { visibility: hidden; } }

.intro-splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  /* Même noir que le site (et légèrement plus clair que le fond du logo) :
     le logo s'y fond sans cadre et la transition vers la page est continue. */
  background: var(--bg); cursor: pointer;
}
.intro-glow {
  position: absolute; width: min(90vw, 680px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 227, 233, .16) 0%, rgba(225, 227, 233, .05) 38%, transparent 68%);
  opacity: 0;
}
/* "lighten" fond le fond du logo dans le noir ; le reflet ("overlay")
   n'éclaire que les parties argentées et laisse le noir intact. */
.intro-logo {
  position: relative; width: min(64vw, 340px);
  mix-blend-mode: lighten;
  opacity: 0;
}
.intro-logo img { width: 100%; }
.intro-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat;
  mix-blend-mode: overlay;
}

.intro-splash.play .intro-logo  { animation: intro-logo-in 1.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro-splash.play .intro-glow  { animation: intro-glow 2.6s ease-out forwards; }
.intro-splash.play .intro-shine { animation: intro-shine 1.2s ease-in-out .85s forwards; }
.intro-splash.leave             { animation: intro-out .8s ease .05s forwards; }
.intro-splash.leave .intro-logo { animation: intro-logo-out .8s ease forwards; }

@keyframes intro-logo-in {
  from { opacity: 0; transform: scale(.93); filter: blur(10px); }
  to   { opacity: 1; transform: none;       filter: blur(0); }
}
@keyframes intro-glow {
  0%   { opacity: 0; transform: scale(.7); }
  60%  { opacity: 1; transform: scale(1); }
  100% { opacity: .75; transform: scale(1.04); }
}
@keyframes intro-shine { to { background-position: -50% 0; } }
@keyframes intro-logo-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: scale(1.06); filter: blur(3px); }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* Animations réduites (réglage du système) : simple fondu, sans mouvement ni reflet */
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .intro-splash.play .intro-logo  { animation: intro-fade .8s ease forwards; }
  .intro-splash.play .intro-glow  { animation: intro-fade 1.2s ease forwards; }
  .intro-shine { display: none; }
  .intro-splash.leave .intro-logo { animation: none; opacity: 1; }
}

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }
