/* Orle Edge : le site en pleine largeur (site.html). Les composants viennent de site.css ; ici seulement la mise en page de la page. */
/* Même base que le document de DA (site-da.css), sur laquelle les composants sont dessinés */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--o-fond); }
body { min-height: 100vh; color: var(--o-texte); font: 400 15px/1.6 var(--o-texte-f); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4 { margin: 0; font-family: var(--o-titre); font-stretch: var(--o-titre-largeur); font-weight: var(--o-titre-graisse); letter-spacing: -.015em; }
p { margin: 0; }
code { font-family: var(--o-mono); font-size: 13px; }
/* Gouttière : 32 px, puis le contenu se cale sur 1240 px, comme le corps du méga-menu */
.o-plein { --g: max(32px, calc((100cqw - 1240px) / 2)); --gh: max(24px, calc((100cqw - 1440px) / 2)); }
/* --gh : l'en-tête et le méga-menu s'étendent sur 1440 px, plus large que le contenu (1240 px) (Kenzo, 03/12) */

/* En-tête fixe : son propre .o-site, pour que le menu, la feuille et le panneau de langue restent collés dessous */
.o-haut { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: none; }
.o-haut .o-entete { padding-inline: var(--gh); }
/* Méga-menu : le corps reste sur 1240 px (site.css) ; la barre du bas se cale sur la même gouttière */
/* Méga-menu accordé à l'en-tête : le texte des liens tombe sous le logo, l'aperçu finit sous le bouton principal */
.o-haut .o-mega-corps { max-width: none; padding-inline: max(0px, calc(var(--gh) - 20px)); }
.o-haut .o-mega-apercu { margin-right: min(20px, var(--gh)); }
.o-haut .o-mega-pied { padding-inline: calc(var(--gh) - 12px); }
.o-haut .o-feuille { bottom: auto; height: calc(100dvh - 64px); }

/* Contenu */
.o-corps { padding-top: 64px; min-height: 100vh; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.o-corps .o-hero { padding-inline: var(--g); padding-top: 72px; }
.o-corps .o-orli, .o-corps .o-preuve, .o-corps .o-depart, .o-corps .o-faq, .o-corps .o-journal, .o-corps .o-final { padding-inline: var(--g); }
.o-corps .o-defile-tete, .o-corps .o-defile-puces { padding-inline: var(--g); }
.o-corps .o-defile-piste { padding-inline: var(--g); scroll-padding: 0 var(--g); }
.o-corps .o-defile-barre, .o-corps .o-offre { margin-inline: var(--g); }
.o-pied { margin-top: 96px; padding-bottom: 14px !important; padding: 28px var(--g) 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--o-filet); font-size: 13px; color: var(--o-texte-3); }
.o-pied .o-logo { font-size: 18px; }
.o-note-maquette { margin: 0 var(--g); padding: 0 0 40px; font-size: 12px; line-height: 1.5; color: var(--o-texte-3); }
.o-note-maquette b { color: var(--o-texte-2); font-weight: 500; }

@container (max-width: 900px) {
  .o-haut .o-entete { padding-inline: 16px; }
  .o-corps .o-hero { padding: 40px 16px 48px; }
  .o-corps .o-orli, .o-corps .o-preuve { padding-inline: 16px; }
  .o-corps .o-defile-tete, .o-corps .o-defile-puces { padding-inline: 16px; }
  .o-corps .o-defile-piste { padding-inline: 16px; scroll-padding: 0 16px; }
  .o-corps .o-defile-barre, .o-corps .o-offre { margin-inline: 16px; }
  .o-pied { padding-inline: 16px; flex-direction: column; align-items: flex-start; }
  .o-note-maquette { margin: 0 16px; }
}

/* Discussion en direct : un .o-site fixe en bas à droite, transparent aux clics hors de ses deux éléments */
.o-chat-site { position: fixed; right: 0; bottom: 0; z-index: 110; width: min(440px, 100vw); height: min(680px, 100dvh); background: none; pointer-events: none; }
.o-chat-site > * { pointer-events: auto; }
@media (max-width: 440px) { .o-chat-site { height: 100dvh; } }
/* Feuille du menu ouverte : le bouton de discussion s’efface, il couvrirait « Commencer gratuitement » */
body:has(.o-haut .o-feuille:not([hidden])) .o-chat-lance { opacity: 0; pointer-events: none; }

/* Téléphone : le bouton de discussion s'efface pendant que le résultat du test est ouvert (il couvrirait « Protéger ce site ») */


/* Un seul bouton blanc à l'écran : tant que le bouton principal du corps est visible (.o-principal-visible,
   posé par site-page.js), celui de l'en-tête prend l'aspect secondaire. */
.o-haut.o-principal-visible .o-entete-d .o-btn--principal { color: var(--o-texte); background: var(--o-ctrl); box-shadow: var(--o-ombre-1); }
.o-haut.o-principal-visible .o-entete-d .o-btn--principal:hover { background: var(--o-ctrl-survol); }
