/* =========================================================================
   ETS BERARD — Feuille de style principale
   Charte : bleu marine #002060 + couleurs de marque (magenta, jaune, vert, bleu)
   Aucune dépendance externe. Mobile-first, responsive PC / tablette / smartphone.
   ========================================================================= */

/* ---------- 0. Polices auto-hébergées (Inter + Poppins) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

/* ---------- 1. Variables de charte graphique ---------- */
:root {
  /* Couleur principale (identique aux documents commerciaux) */
  --navy: #002060;
  --navy-700: #06174a;
  --navy-600: #1b2a5e;
  --navy-050: #eef1f8;

  /* Couleurs de marque (flèches du logo) — une par pôle */
  --info: #29abe2;   /* Informatique  → bleu   */
  --bureau: #e6007e; /* Bureautique   → magenta */
  --fourni: #8cc63f; /* Fournitures   → vert   */
  --accent: #ffc20e; /* Jaune — mise en avant / CTA secondaire */

  /* Neutres (basculent en mode sombre — voir plus bas) */
  color-scheme: light dark;
  --ink: #16223c;
  --muted: #566079;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --white: #ffffff;
  --surface: #ffffff;               /* fond des cartes, champs, en-tête */
  --heading: var(--navy);           /* titres + texte accent sur surfaces claires */
  --link: var(--navy);              /* liens de contenu */
  --header-bg: rgba(255, 255, 255, .96);

  /* Système */
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 32, 96, .08);
  --shadow: 0 10px 30px rgba(0, 32, 96, .10);
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Typographie moderne : Inter (texte) + Poppins (titres), avec repli système */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- 2. Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

/* Accessibilité : focus clavier bien visible */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* Lien d'évitement pour lecteurs d'écran / clavier */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Utilitaires de mise en page ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--info); margin-bottom: .6rem;
}
/* Motif de marque : les 4 chevrons colorés du logo, devant chaque intitulé */
.eyebrow::before {
  content: ""; display: inline-block; width: 30px; height: 14px;
  margin-right: .55rem; vertical-align: -2px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20' fill='none' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3 10 10 3 17' stroke='%23e6007e'/><path d='M13 3 20 10 13 17' stroke='%23ffc20e'/><path d='M23 3 30 10 23 17' stroke='%238cc63f'/><path d='M33 3 40 10 33 17' stroke='%2329abe2'/></svg>") no-repeat center / contain;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  font-size: 1rem; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: #ffcf3d; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: var(--surface); color: var(--heading); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
/* Bouton Assistance (téléchargement TeamViewer) — bleu de la marque */
.btn--support { background: var(--info); color: #fff; padding: .7rem 1.15rem; }
.btn--support:hover { background: #1f97cb; }
.btn--support::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13a8 8 0 0116 0v4a3 3 0 01-3 3h-1v-6h3M4 13v4a3 3 0 003 3h1v-6H4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13a8 8 0 0116 0v4a3 3 0 01-3 3h-1v-6h3M4 13v4a3 3 0 003 3h1v-6H4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ---------- 5. En-tête / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 32, 96, .05);
}
.nav { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.nav__brand { display: flex; align-items: center; margin-right: auto; }
.nav__brand img { height: 80px; width: auto; transition: transform .18s ease; }
.nav__brand:hover img { transform: scale(1.03); }
/* Logo : version à texte clair en mode sombre (système auto OU forçage manuel) */
.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
}
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  padding: .55rem .85rem; border-radius: 8px; font-weight: 600; color: var(--ink);
  font-size: .98rem;
}
.nav__links a:hover { background: var(--navy-050); text-decoration: none; }
/* Onglet actif : fin trait de la couleur du pôle dessous
   (repère de navigation + touche de marque discrète) */
.nav__links a[aria-current="page"]:not(.btn) { color: var(--heading); }
.nav__links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 1px; height: 3px;
  border-radius: 3px; background: var(--navy);
}
.nav__links a[href="informatique.html"][aria-current="page"]::after { background: var(--info); }
.nav__links a[href="bureautique.html"][aria-current="page"]::after { background: var(--bureau); }
.nav__links a[href="fournitures.html"][aria-current="page"]::after { background: var(--fourni); }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative;
  transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* Fond marine + un unique halo bleu discret en haut à droite */
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(41,171,226,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy) 55%, var(--navy-600));
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero__badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__art {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(4px);
}
.hero__art ul { list-style: none; padding: 0; margin: 0; }
.hero__art li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero__art li:last-child { border-bottom: 0; }
.hero__art .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .55rem; flex: none; }

/* ---------- 7. Cartes pôles ---------- */
.pole-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: .2s ease;
  display: flex; flex-direction: column;
}
.pole-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pole-card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1rem; color: #fff;
}
.pole-card h3 { margin-bottom: .4rem; }
.pole-card p { color: var(--muted); flex: 1; }
.pole-card__link { font-weight: 700; margin-top: .6rem; display: inline-flex; gap: .4rem; align-items: center; }
.pole-card__link::after { content: "→"; transition: .2s; }
.pole-card:hover .pole-card__link::after { transform: translateX(4px); }
/* Bandeau de couleur par pôle */
.t-info   { --tone: var(--info); }
.t-bureau { --tone: var(--bureau); }
.t-fourni { --tone: var(--fourni); }
.pole-card { border-top: 4px solid var(--tone, var(--navy)); }
.pole-card__icon { background: var(--tone, var(--navy)); }

/* ---------- 8. Triptyque Vente / Installation / Maintenance ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tri__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.tri__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-050); color: var(--heading); font-weight: 800; margin-bottom: .8rem;
}
.tri__item h3 { font-size: 1.15rem; }
.tri__item ul { color: var(--muted); }

/* ---------- 9. Bandeau sous-page (fil d'ariane + titre) ---------- */
.pagehead { color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.pagehead h1 { color: #fff; margin-bottom: .3rem; }
.pagehead p { color: rgba(255,255,255,.9); max-width: 55ch; }
.pagehead--info   { background: linear-gradient(135deg, var(--navy-700), var(--info)); }
.pagehead--bureau { background: linear-gradient(135deg, var(--navy-700), var(--bureau)); }
.pagehead--fourni { background: linear-gradient(135deg, var(--navy-700), var(--fourni)); }
.pagehead--navy   { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .8rem; }
.crumbs a { color: #fff; text-decoration: underline; }
/* Pictogramme (badge) du pôle, dans le bandeau de la page */
.pagehead__badge {
  width: 76px; height: 76px; border-radius: 18px; margin-bottom: 1.1rem;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.pagehead__badge svg { width: 40px; height: 40px; }

/* ---------- 10. Blocs de contenu génériques ---------- */
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.feature-list li::before {
  content: "✓"; color: var(--fourni); font-weight: 800; flex: none;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(140,198,63,.15);
  display: grid; place-items: center; font-size: .85rem; margin-top: .15rem;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}

/* Bandeau statistiques / gammes */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: var(--navy-050); color: var(--heading); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .95rem; }

/* ---------- 11. CTA bandeau ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.9); margin: .4rem 0 0; }

/* ---------- 11b. Marques distribuées ---------- */
.brands {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(.8rem, 2vw, 1.2rem);
}
/* Tuile blanche uniforme : rend homogène des logos de formats très variés */
.brands__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  min-height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); transition: border-color .2s ease;
}
.brands__item:hover { border-color: #d3dcec; }
/* Logo : ajusté dans la tuile, en couleur en permanence, léger zoom au survol */
.brands__item img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  transition: transform .2s ease;
}
.brands__item:hover img { transform: scale(1.05); }
/* Repli élégant si un logo n'est pas (encore) fourni : le nom de la marque */
.brands__name { font-weight: 800; letter-spacing: .01em; color: var(--navy); font-size: 1.05rem; text-align: center; }

/* ---------- 11c. Zone d'intervention ---------- */
.zone-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .7rem; }
.zone-card__head h3 { margin: 0; }
.zone-card__ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--navy);
}
.zone-card__ico svg { width: 24px; height: 24px; }
.zone-note { text-align: center; color: var(--muted); margin-top: 2rem; }
.zone-note strong { color: var(--heading); }

/* ---------- 11d. À propos : frise chronologique + chiffres clés ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.9rem 2.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--tl, var(--info));
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line);
}
.timeline li::after {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -4px; width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--tl, var(--info)); font-size: .95rem; }
.timeline li h3 { margin: .15rem 0 .35rem; }
.timeline li p { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-item .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy-050);
  color: var(--heading); display: grid; place-items: center; flex: none;
}
.info-item h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.info-item p { margin: 0; color: var(--muted); }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--heading); }
.form-field .req { color: var(--bureau); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--surface); transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--navy); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-error { color: #c0143c; font-size: .88rem; margin-top: .3rem; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #c0143c; }
.form-field.invalid .form-error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); }
/* Question de l'épreuve anti-robot */
.captcha-question {
  margin: 0 0 .45rem; font-weight: 600; color: var(--heading);
  background: var(--navy-050); border-radius: 8px; padding: .55rem .8rem;
  display: inline-block; font-size: .95rem;
}
.form-status { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; display: none; }
.form-status--ok { background: rgba(140,198,63,.15); color: #3d6b0e; display: block; }
.form-status--err { background: rgba(192,20,60,.1); color: #c0143c; display: block; }
/* Champ pot-de-miel anti-spam : masqué à l'écran et aux lecteurs d'écran */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; }
.consent input { width: auto; margin-top: .35rem; }

/* ---------- 13. Pied de page ---------- */
.footer { background: var(--navy-700); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; margin-top: 0; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
/* Logo pied de page : vrai logo couleur posé sur une plaque blanche
   → conserve les couleurs de la marque sur le fond bleu marine */
.footer__logo {
  height: 72px; width: auto; margin-bottom: 1.2rem;
  background: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; font-size: .88rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
}

/* ---------- 13b. Icônes SVG · apparition au défilement · retour en haut ---------- */
/* Icônes vectorielles des coordonnées (remplacent les emojis) */
.info-item .ico svg.i { width: 24px; height: 24px; }
.footer li svg.i { width: 16px; height: 16px; vertical-align: -3px; margin-right: .45rem; opacity: .9; }

/* Apparition douce des blocs à l'entrée dans l'écran */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Bouton « retour en haut » (injecté en JS, visible au défilement) */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .18s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-600); }
.to-top svg { width: 22px; height: 22px; }

/* Bandeau cookies (injecté en JS) */
.cookie-banner {
  position: fixed; left: clamp(1rem, 3vw, 1.5rem); right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem); z-index: 200; margin-inline: auto; max-width: 760px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem;
}
.cookie-banner__text { margin: 0; font-size: .93rem; color: var(--ink); flex: 1 1 320px; }
.cookie-banner__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-banner .btn { padding: .6rem 1.25rem; }
/* On masque le bouton « retour en haut » tant que le bandeau est affiché */
.cookie-open .to-top { display: none; }
@media (max-width: 540px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* Aperçu de la carte avant consentement (page Contact) */
.map-consent__prompt { text-align: center; padding: 1.5rem; }
.map-consent__prompt p { color: var(--muted); margin: 0 0 1rem; }

/* Cartes « pilotes / téléchargements » (page Bureautique) */
.driver-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-top: 4px solid var(--bureau);
  transition: transform .2s ease, box-shadow .2s ease;
}
.driver-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.driver-card p { color: var(--muted); flex: 1; }
.driver-card__cta { font-weight: 700; color: var(--bureau); margin-top: .6rem; }
.driver-card__cta::after { content: " ↗"; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .tri { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Menu burger dès 900px : la barre contient logo + 4 liens + Assistance + Contact */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .8rem; gap: .2rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 1rem; }
  .nav__cta, .nav__assist { margin: .4rem 0 0; }
  .btn--support { justify-content: center; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2, .tri { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. Préférence de mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  /* Le contenu reste toujours visible si les animations sont désactivées */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 16. Mode sombre : automatique (système) + bascule manuelle ---------- */
/* Le jeu de variables sombres s'applique dans deux cas :
   1) thème « auto » + système en sombre  → :root:not([data-theme="light"]) (dans le media)
   2) thème forcé « sombre »               → :root[data-theme="dark"]
   Le forçage « clair » (data-theme="light") neutralise le media → reste en clair. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #dce6f5; --muted: #9aa8c4; --line: #26386a; --bg: #05143a; --bg-soft: #081a44;
    --surface: #0c2150; --navy-050: #16305f; --heading: #eef3fb; --link: #8cc0ef;
    --header-bg: rgba(5, 20, 58, .92);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4); --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  }
  :root:not([data-theme="light"]) .form-status--ok { background: rgba(140, 198, 63, .18); color: #b7e08a; }
  :root:not([data-theme="light"]) .form-status--err { background: rgba(192, 20, 60, .18); color: #f6a2af; }
  :root:not([data-theme="light"]) .form-error { color: #f6a2af; }
}
:root[data-theme="dark"] {
  --ink: #dce6f5; --muted: #9aa8c4; --line: #26386a; --bg: #05143a; --bg-soft: #081a44;
  --surface: #0c2150; --navy-050: #16305f; --heading: #eef3fb; --link: #8cc0ef;
  --header-bg: rgba(5, 20, 58, .92);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4); --shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .form-status--ok { background: rgba(140, 198, 63, .18); color: #b7e08a; }
:root[data-theme="dark"] .form-status--err { background: rgba(192, 20, 60, .18); color: #f6a2af; }
:root[data-theme="dark"] .form-error { color: #f6a2af; }

/* Bouton bascule de thème (dans l'en-tête) */
.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--heading); cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { border-color: var(--navy); }
.theme-toggle svg { width: 20px; height: 20px; }
