/* ==========================================================================
   Hugo Delaroque : ambiance C « Nuit et lumière », en noir et blanc (refonte 2026)
   Fond nuit #0C0D10, texte #F2F4F8, texte secondaire #9AA0AE, texte foncé
   #0E1726 sur le ciel clair. Le bleu ne reste que dans le D du logo (#2F6BFF).
   Boutons rectangulaires aux coins de 8 px, en couleur unie. Aplats seulement :
   aucun halo, aucune lueur, aucun dégradé, aucun verre dépoli.
   Contrastes : texte sur la nuit 17,9:1, texte secondaire 7,6:1,
   texte noir sur le bouton blanc cassé 17,9:1, bouton noir sur le ciel 15:1 et plus.
   Chaque page a en plus sa propre feuille (accueil.css, tarifs.css…).
   Icônes du bouton « M'appeler » : Phosphor Icons, licence MIT.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --nuit: #0c0d10;
  --clair: #f2f4f8;
  --gris: #9aa0ae;
  --doux: rgb(242 244 248 / .84);
  --encre: #0e1726;
  --ligne: rgb(242 244 248 / .12);
  --bouton: #f2f4f8;
  --bouton-survol: #d9dde5;
  --sur-bouton: #0c0d10;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Marge avec le bord, plus large sur les grands écrans (retour de visiteurs, V9) */
  --gouttiere: clamp(32px, 6vw, 112px);
  --r: 8px;
  --doux-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 860px) { :root { --gouttiere: 20px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--nuit); overflow-x: clip; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--clair); background: var(--nuit);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a, button, input, label, select, summary, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(242 244 248 / .85); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--clair); outline-offset: 3px; border-radius: 4px; }
/* Sur le ciel clair, le contour du clavier passe en foncé comme le menu et le bouton fixe */
.site-header.sur-ciel :focus-visible, .cta-fixe.sur-ciel:focus-visible, [data-ciel] :focus-visible { outline-color: var(--encre); }
main { position: relative; z-index: 4; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: var(--r);
  background: var(--bouton); color: var(--sur-bouton); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }

/* --------------------------------------------------------------------------
   Boutons : « Créer mon site » en blanc cassé, « M'appeler » en cadre fin
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--r); background: var(--bouton); color: var(--sur-bouton);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .4s, scale .15s var(--doux-ease);
}
.btn:hover { background: var(--bouton-survol); }
.btn:active { scale: .97; }

.btn-appel {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px 0 18px;
  border: 1px solid rgb(242 244 248 / .3); border-radius: var(--r); background: rgb(22 26 34 / .72); color: var(--clair);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, border-color .25s;
}
.btn-appel .icone { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-appel .icone--fleche { width: 15px; height: 15px; opacity: .6; transition: transform .25s, opacity .25s; }
.btn-appel:hover { background: rgb(84 92 108 / .92); border-color: rgb(242 244 248 / .7); }
.btn-appel:hover .icone--fleche { transform: translateX(3px); opacity: 1; }
.btn-appel--menu { min-height: 40px; padding: 0 12px 0 14px; gap: 9px; font-size: 14px; }
.btn-appel--menu .icone { width: 16px; height: 16px; }
.btn-appel--menu .icone--fleche { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Menu : jamais de fond. Il se cache vers le haut quand on descend,
   et revient dès qu'on remonte (site.js). Texte foncé sur le ciel clair.
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gouttiere); padding-top: max(22px, env(safe-area-inset-top));
  font-size: 14px; font-weight: 500; color: var(--clair);
  transition: color .4s, transform .5s var(--doux-ease);
}
.site-header.is-cache { transform: translateY(-100%); }
.site-header.sur-ciel { color: var(--encre); }
.site-header__marque { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-header__marque .mark { width: 22px; height: auto; }
.site-header__nav { margin-left: auto; }
.site-header__liens { display: flex; align-items: center; gap: 24px; }
.site-header__liens a { display: inline-block; padding-block: 6px; text-decoration: none; opacity: .82; transition: opacity .2s; }
.site-header__liens a:hover, .site-header__liens a[aria-current="page"] { opacity: 1; }
.site-header__liens a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-bouton {
  display: none; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid rgb(242 244 248 / .3); border-radius: var(--r); background: rgb(22 26 34 / .72); color: var(--clair);
  font-size: 14px; font-weight: 600; text-decoration: none;
}

/* Menu du téléphone, plein écran. Sans JavaScript, le lien « Menu » l'ouvre par l'ancre #menu. */
.menu-plein { display: none; position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--nuit); }
.menu-plein.is-open, .menu-plein:target { display: block; }
.menu-plein__nav { min-height: 100%; display: flex; flex-direction: column; gap: 40px; padding: 96px var(--gouttiere) calc(32px + env(safe-area-inset-bottom)); }
.menu-plein__liens { display: grid; gap: 6px; }
.menu-plein__liens a { display: inline-block; padding-block: 4px; font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.menu-plein__liens a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.menu-plein__bas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: auto; }
.menu-plein__langue { width: 100%; font-weight: 600; }
.menu-plein__langue a { display: inline-block; padding: 8px 0; text-decoration: none; }
.menu-plein__fermer { position: absolute; top: max(22px, env(safe-area-inset-top)); right: var(--gouttiere); padding: 9px 14px; border: 1px solid rgb(242 244 248 / .3); border-radius: var(--r); font-size: 14px; font-weight: 600; text-decoration: none; }
body.menu-ouvert { overflow: hidden; }
/* html a overflow-x: clip, donc le blocage de body n'arrête pas la page derrière le menu : on le pose aussi sur html
   (règle à part, un navigateur sans :has garde au moins celle de body) */
html:has(body.menu-ouvert) { overflow: hidden; }

@media (max-width: 860px) {
  .site-header { padding-block: 16px; gap: 10px; }
  .site-header__nav { display: none; }
  .site-header .btn-appel--menu { margin-left: auto; }
  .menu-bouton { display: inline-flex; }
}
/* Petit téléphone : le nom ne tient plus à côté de « M'appeler » et « Menu ». Le logo reste,
   le lien garde son nom pour les lecteurs d'écran (aria-label). */
@media (max-width: 430px) {
  .site-header__marque span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Trait de progression, tout en haut : il reste visible quand le menu se cache
   -------------------------------------------------------------------------- */
.progression {
  position: fixed; inset: 0 0 auto 0; z-index: 31; height: 2px; background: var(--clair);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; transition: background-color .4s;
}
.progression.sur-ciel { background: var(--encre); }

/* --------------------------------------------------------------------------
   Bouton fixe « Créer mon site », en bas au centre (toutes les pages sauf Contact).
   Il s'efface dans la fin de page, qui a ses propres boutons, devant le pied de page et sur les maquettes (site.js).
   -------------------------------------------------------------------------- */
.cta-fixe {
  position: fixed; z-index: 30; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 0;
  transition: opacity .3s, visibility .3s, background-color .4s, color .4s, scale .15s var(--doux-ease);
}
.cta-fixe.is-cache { opacity: 0; visibility: hidden; }
.cta-fixe.sur-ciel { background: var(--encre); color: var(--clair); }

/* --------------------------------------------------------------------------
   Fin de chaque page, sur le jet d'eau de Genève (vidéo voilée à 50 %).
   Couches dans <main> : décors fixes de la page (ciel, coucher de soleil, 3D) de 1 à 2,
   Genève à 3, contenu des sections à 4 et plus.
   -------------------------------------------------------------------------- */
.fin { position: relative; min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 96px var(--gouttiere); text-align: center; }
.fin__decor { position: fixed; inset: 0; z-index: 3; opacity: 0; pointer-events: none; transition: opacity 1s; background: var(--nuit); }
.fin__decor video { width: 100%; height: 100%; object-fit: cover; }
.fin__decor::after { content: ""; position: absolute; inset: 0; background: rgb(12 13 16 / .5); }
.fin.is-geneve .fin__decor { opacity: 1; }
.fin > :not(.fin__decor) { position: relative; z-index: 5; }
.fin h2 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; letter-spacing: -.045em; }
.fin p { font-size: 18px; opacity: .9; }
.fin__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; align-items: center; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Pied de page sobre, sur la nuit, sur deux lignes
   -------------------------------------------------------------------------- */
.pied { position: relative; z-index: 4; background: var(--nuit); border-top: 1px solid var(--ligne); color: var(--gris); font-size: 14px; padding: 28px var(--gouttiere) calc(24px + env(safe-area-inset-bottom)); }
.pied a, .pied .link-button { display: inline-block; padding-block: 4px; color: inherit; text-decoration: none; transition: color .2s; }
.pied a:hover, .pied .link-button:hover { color: var(--clair); }
.pied__liens li[hidden] { display: none; }
.pied__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; max-width: 1280px; margin: 0 auto; }
.pied .pied__marque { display: inline-flex; align-items: center; gap: 10px; color: var(--clair); font-weight: 600; font-size: 15px; }
.pied__marque .mark { width: 20px; height: auto; }
.pied__nav { margin-left: auto; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pied__copyright { max-width: 1280px; margin: 14px auto 0; font-size: 13px; }
@media (max-width: 860px) { .pied__nav { width: 100%; margin-left: 0; } }

/* Sélecteur FR | EN du pied de page */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.lang-switch__current { color: var(--clair); padding: 4px 2px; }
.lang-switch__sep { color: var(--gris); }

/* --------------------------------------------------------------------------
   Pages légales, merci, erreur et page introuvable : sur la nuit, sans animation
   -------------------------------------------------------------------------- */
.page-simple { max-width: 760px; margin: 0 auto; padding: 140px var(--gouttiere) 96px; }
.page-simple h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 24px; }
.page-simple .chapo { font-size: 19px; color: var(--doux); margin-bottom: 32px; }
.page-simple .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.page-simple .muted { color: var(--doux); }
.page-simple .link { font-weight: 600; text-underline-offset: .25em; }
.prose h2 { font-size: 1.375rem; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose p, .prose ul { color: var(--doux); margin-bottom: 16px; }
.prose ul { padding-left: 1.25rem; }
.prose a { text-underline-offset: .2em; }
.prose__updated { font-size: 15px; color: var(--gris); }

/* --------------------------------------------------------------------------
   Questions fréquentes (Tarifs) : ouverture en douceur dans site.js
   -------------------------------------------------------------------------- */
.faq__item { border-top: 1px solid var(--ligne); }
.faq__item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__answer { overflow: hidden; color: var(--doux); padding-bottom: 18px; }

/* --------------------------------------------------------------------------
   Bandeau mesure d'audience : compact, ne cache pas les boutons principaux
   -------------------------------------------------------------------------- */
.cookie { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); pointer-events: none; display: flex; }
.cookie__card { pointer-events: auto; width: 100%; max-width: 34rem; padding: 16px 20px; border: 1px solid var(--ligne); border-radius: 12px; background: #16181d; max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain; }
.cookie__title { font-size: 1rem; letter-spacing: -.01em; margin-bottom: 4px; }
.cookie__text { font-size: 14px; color: var(--doux); line-height: 1.5; }
.cookie__text a { display: inline-block; padding-block: 4px; text-underline-offset: .15em; }
.cookie__prefs { margin-top: 12px; border-top: 1px solid var(--ligne); }
.cookie__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.cookie__label { display: block; font-weight: 600; font-size: 15px; }
.cookie__desc { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; color: var(--gris); }
.cookie__always { font-size: 14px; color: var(--gris); white-space: nowrap; }
.cookie__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cookie__actions .btn { min-height: 44px; padding: 0 8px; font-size: 15px; background: transparent; color: var(--clair); border: 1px solid rgb(242 244 248 / .3); }
.cookie__actions .btn:hover { background: rgb(242 244 248 / .08); }
@media (min-width: 768px) { .cookie { left: 16px; bottom: 16px; right: auto; } }
.switch { appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #2a2e37; box-shadow: inset 0 0 0 1px var(--ligne); position: relative; cursor: pointer; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gris); transition: transform .25s var(--doux-ease); }
.switch:checked { background: var(--clair); }
.switch:checked::after { transform: translateX(18px); background: var(--nuit); }

/* --------------------------------------------------------------------------
   Transitions entre les pages (navigateurs compatibles, sans JavaScript)
   -------------------------------------------------------------------------- */
/* Pour tout le monde (choix de Marco, V8), sauf la version calme */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s cubic-bezier(.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: .38s var(--doux-ease) both vt-in; }
html:not(.anime)::view-transition-old(root), html:not(.anime)::view-transition-new(root) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* --------------------------------------------------------------------------
   Moins de mouvement demandé : rien ne glisse, tout est là d'un coup
   -------------------------------------------------------------------------- */
html:not(.anime) .site-header { transition: color .4s; }
html:not(.anime) .fin__decor { transition: none; }
