/* =========================================================================
   Teralvio Technologies · marketing site stylesheet
   Page templates follow the reference site chosen by the founder (solulan.com):
   dark home hero with a curtain section, 2x2 service cards, split heroes,
   alternating photo/text rows, dark "why us" band, FAQ accordion, CTA band,
   rounded dark footer. Colours, type, logo and copy are Teralvio's own. See DESIGN.md.
   ========================================================================= */

/* ---------- Fonts (self-hosted Outfit, SIL OFL: same family as the logo) ---------- */
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --marine: #06142B;          /* dark sections, footer, home hero */
  --marine-2: #0C2147;        /* lighter dark (diagonal shape) */
  --titre: #0A2041;           /* headings (logo navy) */
  --texte: #566175;           /* body text, 6.2:1 on white */
  --accent: #1659F2;          /* buttons, eyebrows, icons (logo blue, a shade deeper), 5.6:1 on white */
  --accent-fonce: #0E46CC;
  --accent-texte: #0F48C9;    /* small coloured text and links, 7.3:1 */
  --logo: #075AF9;            /* the logo's own blue */
  --ciel: #7FA8FF;            /* accents on dark backgrounds only, 7.6:1 on --marine */
  --pale: #F3F7FE;            /* pale sections and cards */
  --blanc: #FFFFFF;
  --bordure: rgba(22, 89, 242, .28);
  --bordure-neutre: #DCE4F1;
  --champ: #77839A;           /* input borders, 3.7:1 */
  --sur-sombre: #F3F6FC;
  --sur-sombre-2: #B4C0D8;
  --ombre-douce: 0 2px 11px rgba(22, 89, 242, .16);
  --erreur: #B42318; --erreur-fond: #FDECEA;
  --info: #6B4B00; --info-fond: #FFF5DD;
  --ok: #0B5A4C; --ok-fond: #E3F4EF;
  --sur-accent: #E4ECFF;       /* text on the blue contact band */
  --sur-accent-2: #FFFFFF;
  --nuit: #0F2A57;             /* buttons and pills on dark backgrounds */

  --f: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-affiche: clamp(2.9rem, 1.7rem + 4.4vw, 5.125rem);
  --t-h1: clamp(2.35rem, 1.35rem + 3.5vw, 4.5rem);
  --t-h2: clamp(2.1rem, 1.4rem + 2.7vw, 3.875rem);
  --t-h3: clamp(1.35rem, 1.1rem + .9vw, 1.875rem);
  --t-carte: clamp(1.4rem, 1.15rem + .85vw, 1.9rem);
  --t-chapo: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  --t-corps: 1.25rem;
  --t-surtitre: 1rem;

  --largeur: 1360px;
  --gouttiere: clamp(20px, 3.5vw, 40px);
  --section: clamp(3.5rem, 1.2rem + 8vw, 9.375rem);
  --ecart-2col: clamp(2rem, 1rem + 5vw, 6.75rem);
  --ecart-cartes: clamp(1.25rem, .8rem + 1.6vw, 2.8rem);

  --r-bouton: 7px;
  --r-carte: 9px;
  --r-photo: clamp(15px, .6rem + 1.6vw, 35px);
  --r-section: 30px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --d: .4s;
  --entree: 0s;               /* delay before entrance animations (set while the logo screen is shown) */

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--blanc); color: var(--texte); font-family: var(--f); font-size: var(--t-corps); line-height: 1.62; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--titre); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.15; letter-spacing: -.012em; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.01em; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-texte); text-underline-offset: .2em; }
a:hover { color: var(--titre); }
strong { color: var(--titre); font-weight: 600; }
:focus-visible { outline: 2px solid var(--titre); outline-offset: 3px; }
.sombre :focus-visible, .heros-accueil :focus-visible, .heros-sombre :focus-visible, .pied :focus-visible, .bandeau-appel :focus-visible, .barre :focus-visible, .entete--sombre :focus-visible { outline-color: var(--ciel); }
.entete--sombre .sous :focus-visible { outline-color: var(--titre); }
.bandeau-appel :focus-visible { outline-color: var(--blanc); }
::selection { background: rgba(22, 89, 242, .2); }

.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; }
.evitement { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--marine); color: var(--sur-sombre); padding: 12px 16px; border-radius: var(--r-bouton); }
.evitement:focus { top: 12px; color: var(--sur-sombre); }

.wrap { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px)); padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.section--pale { background: var(--pale); }
.section--degrade { background: linear-gradient(var(--pale), var(--blanc)); }

.surtitre { display: block; font-size: var(--t-surtitre); line-height: 1.6; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-texte); }
.sombre .surtitre, .heros-sombre .surtitre { color: var(--ciel); }
.chapo { font-size: var(--t-chapo); line-height: 1.45; }
.tete { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.tete.centre { justify-items: center; text-align: center; margin-inline: auto; }
.tete p { max-width: 62ch; font-size: clamp(1.25rem, 1.1rem + .4vw, 1.4375rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 30px; border-radius: var(--r-bouton); border: 1px solid transparent;
  font: 500 1.125rem/1.4 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--d) var(--ease), background-color var(--d) ease, color var(--d) ease, box-shadow var(--d) ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: var(--blanc); }
.btn--accent:hover { background: var(--accent-fonce); color: var(--blanc); }
.btn--marine { background: var(--marine); color: var(--blanc); }
.btn--marine:hover { color: var(--blanc); box-shadow: 0 7px 25px -10px rgba(0, 0, 0, .4); }
/* Main button on dark backgrounds: brand blue */
.btn--ciel { background: var(--accent); color: var(--blanc); }
.btn--ciel:hover { background: #2C6BFF; color: var(--blanc); }
.btn--nuit { background: var(--nuit); color: var(--blanc); }
.btn--nuit:hover { color: var(--blanc); background: #163772; }
.btn--contour { border-color: rgba(255, 255, 255, .7); color: var(--blanc); }
.btn--contour:hover { color: var(--blanc); background: rgba(255, 255, 255, .12); }
.btn .symbole { width: 21px; height: auto; flex: none; fill: currentColor; overflow: visible; }
/* "Commençons": the three blocks of the logo spread apart and snap back (3 times, then on hover) */
@media (prefers-reduced-motion: no-preference) {
  .btn--lance .symbole path { transform-box: view-box; animation: blocs 2.6s var(--ease-in-out) calc(var(--entree) + .4s) infinite; }
  .btn--lance:hover .symbole path, .btn--lance:focus-visible .symbole path { animation-duration: 1.3s; }
}
.symbole__g { --dx: -11px; --dy: -7px; --r: -14deg; }
.symbole__d { --dx: 11px; --dy: -7px; --r: 14deg; }
.symbole__t { --dx: 0px; --dy: 12px; --r: 0deg; }
.btn--lance .symbole { width: 24px; }
.btn--lance .symbole__g, .btn--lance .symbole__d { transform-origin: 48px 14px; }
@keyframes blocs { 0%, 30%, 100% { transform: none; } 45% { transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.6)) rotate(var(--r)); } 60% { transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.6)) rotate(var(--r)); } 75% { transform: none; } }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-4px); } }
.btn:active { transform: scale(.98); }

.btn-fleche { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 8px; background: var(--blanc); box-shadow: 0 2px 11px rgba(22, 89, 242, .16); font-weight: 700; font-size: 1.125rem; line-height: 1.6; color: var(--titre); text-decoration: none; transition: color var(--d) ease; }
.btn-fleche svg { width: 20px; height: 20px; color: var(--accent); transition: transform .5s var(--ease); }
.btn-fleche:hover { color: var(--accent-texte); }
.btn-fleche:hover svg { transform: translateX(7px); }
.lien-souligne { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }
.lien-souligne svg { width: 20px; height: 20px; color: var(--ciel); transition: transform .5s var(--ease); }
.lien-souligne:hover { color: inherit; }
.lien-souligne:hover svg { transform: translateX(7px); }

/* Check list (circled check icons) */
.coches { display: grid; gap: 12px; }
.coches li { position: relative; padding-left: 40px; line-height: 1.55; }
.coches li::before { content: ""; position: absolute; left: 0; top: .12em; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231659F2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.2'/%3E%3Cpath d='M7.6 12.3l3 3 5.8-6.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.coches li strong { font-weight: 600; }
.coches--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 640px) { .coches--2col { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Info bar (actualites.json): announcements, service notices ---------- */
.infos { position: relative; z-index: 52; background: var(--accent); color: var(--blanc); font-size: 1.0625rem; line-height: 1.45; view-transition-name: infos; }
.infos--alerte { background: #FFE08A; color: #2E2200; }
.infos__in { display: flex; align-items: center; gap: 12px; min-height: 54px; padding-block: 7px; }
.infos__liste { flex: 1; min-width: 0; display: grid; }
.infos__message { display: flex; align-items: flex-start; justify-content: center; gap: 12px; text-align: center; }
.js .infos__message { grid-area: 1 / 1; transition: opacity .45s ease, visibility .45s; }  /* stacked: the bar keeps the height of its longest message */
.js .infos__message:not(.est-actif) { visibility: hidden; opacity: 0; }
.infos__icone { display: inline-flex; padding-top: 2px; }
.infos__icone svg { width: 22px; height: 22px; flex: none; }
.infos p { font-weight: 500; }
.infos a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; margin-left: .35em; white-space: nowrap; }
.infos a:hover { color: inherit; text-decoration-thickness: 2.5px; }
.infos__commandes { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.infos__bouton { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--d) ease; }
.infos__bouton:hover { background: rgba(255, 255, 255, .18); }
.infos--alerte .infos__bouton:hover { background: rgba(46, 34, 0, .1); }
.infos__bouton svg { width: 20px; height: 20px; }
.infos [data-infos-pause] svg + svg, .infos.est-en-pause [data-infos-pause] svg:first-child { display: none; }
.infos.est-en-pause [data-infos-pause] svg + svg { display: block; }
.infos :focus-visible { outline-color: currentColor; outline-offset: 2px; }
.infos:not([hidden]) ~ main .heros-accueil { min-height: min(calc(100svh - 188px), 820px); }
@media (max-width: 700px) {
  .infos { font-size: 1rem; }
  .infos__message { justify-content: flex-start; text-align: left; }
  .infos a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .js .infos__message { transition: none; } }
::view-transition-old(infos), ::view-transition-new(infos) { animation: none; }

/* ---------- Utility bar + header ---------- */
.barre { background: var(--marine); color: var(--sur-sombre); font-size: 1rem; position: relative; z-index: 51; view-transition-name: barre; }
.barre__in { display: flex; justify-content: flex-end; align-items: center; gap: 30px; min-height: 56px; }
.barre a { color: var(--sur-sombre); font-weight: 500; text-decoration: none; transition: color var(--d) ease, background-color var(--d) ease; }
.barre a:hover { color: var(--ciel); }
.barre .barre__tel { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--r-bouton); background: var(--nuit); font-weight: 600; letter-spacing: .01em; }
.barre .barre__tel:hover { background: var(--accent); color: var(--blanc); }
.barre__tel svg { width: 16px; height: 16px; }
@media (max-width: 1199px) { .barre { display: none; } }

.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--blanc); border-bottom: 1px solid rgba(10, 32, 65, .1); transition: box-shadow .5s ease; view-transition-name: entete; }
.entete.entete--defile { box-shadow: 0 5px 20px -15px rgba(0, 0, 0, .3); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--blanc); }
.entete__in { display: flex; align-items: center; gap: 40px; min-height: 92px; }
.marque { flex: none; display: block; }
.marque img { height: 52px; width: auto; }
.marque__sombre { display: none !important; }
.entete--sombre { background: var(--marine); border-bottom-color: rgba(243, 246, 252, .1); }
.entete--sombre .marque__clair { display: none !important; }
.entete--sombre .marque__sombre { display: block !important; }

.menu { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.menu > li { position: relative; display: flex; align-items: center; }
.menu__lien { display: inline-flex; align-items: center; padding: 10px 0; color: var(--titre); font-weight: 500; font-size: 1.1875rem; text-decoration: none; white-space: nowrap; transition: color var(--d) ease; }
.menu__lien:hover, .menu__lien[aria-current="page"], .menu > li.actif > .menu__lien { color: var(--accent-texte); }
.menu__lien[aria-current="page"], .menu > li.actif > .menu__lien { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu__bouton { display: inline-grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: none; color: var(--titre); cursor: pointer; }
.menu__bouton svg { width: 16px; height: 16px; transition: transform var(--d) var(--ease); }
.menu__bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.entete--sombre .menu__lien, .entete--sombre .menu__bouton { color: var(--sur-sombre); font-weight: 400; }
.entete--sombre .menu__lien:hover, .entete--sombre .menu > li.actif > .menu__lien { color: var(--ciel); }

.sous {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 320px; z-index: 5;
  background: var(--blanc); border-radius: var(--r-carte); box-shadow: 0 2px 4px rgba(6, 20, 43, .08), 0 18px 40px -12px rgba(6, 20, 43, .28);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, transform .4s var(--ease), visibility .3s;
}
.sous::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.menu > li.ouvert > .sous { opacity: 1; visibility: visible; transform: none; }
.sous a { display: block; padding: 15px 22px; color: var(--titre); font-weight: 500; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--pale); transition: background-color var(--d) ease, color var(--d) ease; }
.sous li:first-child a { border-radius: var(--r-carte) var(--r-carte) 0 0; }
.sous li:last-child a { border-radius: 0 0 var(--r-carte) var(--r-carte); border-bottom: 0; }
.sous a:hover { background: var(--pale); color: var(--accent-texte); }

.entete__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.entete__actions .btn { white-space: normal; text-align: center; }  /* wraps instead of overflowing with user text spacing (WCAG 1.4.12) */
.burger { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: var(--r-bouton); background: none; color: var(--titre); font: 500 .9375rem var(--f); cursor: pointer; }
.entete--sombre .burger { color: var(--sur-sombre); }
.burger__traits { position: relative; width: 18px; height: 12px; }
.burger__traits span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease), opacity .2s; }
.burger__traits span:nth-child(1) { top: 0; } .burger__traits span:nth-child(2) { top: 5px; } .burger__traits span:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger__traits span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__traits span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__traits span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav__extra { display: none; }

@media (max-width: 1319px) {
  .entete__in { min-height: 72px; gap: 12px; }
  .marque img { height: 42px; }
  .burger { display: inline-flex; }
  .entete__actions .btn { display: none; }
  .nav {
    position: fixed; top: var(--haut-nav, 68px); right: 0; bottom: 0; width: 100%; z-index: 49;
    background: var(--pale); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px max(var(--gouttiere), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gouttiere), env(safe-area-inset-left, 0px));
    transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease-in-out), visibility .5s;
    display: flex; flex-direction: column;
  }
  .nav.ouvert { transform: none; visibility: visible; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--bordure-neutre); }
  .menu__lien, .entete--sombre .menu__lien { flex: 1; padding: 14px 0; font-size: 1.1875rem; font-weight: 400; color: var(--titre); }
  .menu__bouton, .entete--sombre .menu__bouton { width: 48px; height: 52px; color: var(--titre); }
  .sous { position: static; min-width: 0; flex-basis: 100%; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: none; padding-bottom: 10px; }
  .menu > li.ouvert > .sous { display: block; }
  .sous a { padding: 10px 0 10px 16px; font-weight: 400; border: 0; background: none; }
  .nav__extra { display: grid; gap: 2px; margin-top: 20px; }
  .nav__extra a:not(.btn) { padding: 8px 0; color: var(--titre); text-decoration: none; }
  .nav__extra .btn { margin-top: 18px; width: 100%; }
  .nav__extra .nav__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
  .nav__extra .nav__tel svg { width: 18px; height: 18px; color: var(--accent); }
  .entete--sombre .nav :focus-visible { outline-color: var(--titre); }
}

/* ---------- Home hero (dark, stays in place while the next section slides over it) ---------- */
.heros-accueil { position: sticky; top: 0; z-index: 0; min-height: min(calc(100svh - 134px), 820px); display: grid; align-items: center; background: var(--marine); color: var(--sur-sombre-2); overflow: hidden; }
.heros-accueil::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, var(--marine-2) 0 40%, transparent 40.05%); }
.heros-accueil__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--ecart-2col); align-items: center; padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(5rem, 3rem + 5vw, 7.5rem); }
.heros-accueil__texte { display: grid; gap: 26px; justify-items: start; }
.heros-accueil h1 { font-size: var(--t-affiche); line-height: 1.02; letter-spacing: -.02em; color: var(--blanc); }
.heros-accueil p { max-width: 46ch; color: var(--sur-sombre-2); }
.heros-accueil__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 8px; color: var(--blanc); }
.heros-accueil__photo { position: relative; }
.heros-accueil__photo img { width: 100%; aspect-ratio: 1 / 1; max-height: 720px; object-fit: cover; border-radius: var(--r-photo); }
@media (max-width: 900px) {
  .heros-accueil { position: relative; min-height: 0; }
  .heros-accueil__in { grid-template-columns: minmax(0, 1fr); }
}

/* Section that slides over the home hero */
.rideau { position: relative; z-index: 2; margin-top: calc(-1 * var(--r-section)); border-radius: var(--r-section) var(--r-section) 0 0; background: var(--blanc); }
.rideau > #services { background: #F7FBFF; border-radius: var(--r-section) var(--r-section) 0 0; }
.par-dessus { position: relative; z-index: 2; }

/* ---------- Service cards ---------- */
.cartes { display: grid; gap: var(--ecart-cartes); }
.cartes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; justify-items: start; padding: clamp(24px, 1rem + 1.5vw, 40px); background: #F7FBFF; border: 1px solid #ADCEFC; border-radius: var(--r-carte); transition: transform var(--d) var(--ease); }
@media (hover: hover) and (pointer: fine) { .carte:hover { transform: translateY(-10px); } }
.carte h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; letter-spacing: 0; margin-top: 8px; }
.carte p { font-size: var(--t-corps); line-height: 1.6; }
.carte__pied { padding-top: 12px; }
.tuile { width: 80px; height: 80px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--blanc); }
.tuile svg { width: 34px; height: 34px; }
@media (max-width: 1023px) { .cartes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cartes--2, .cartes--3 { grid-template-columns: minmax(0, 1fr); } .tuile { width: 56px; height: 56px; } .tuile svg { width: 28px; height: 28px; } }
.section--pale .carte { background: var(--blanc); }
@media (max-width: 1023px) { .cartes--facons { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; } }

/* ---------- Our work: cards with a large image on top ---------- */
.realisations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ecart-cartes); max-width: 1120px; margin-inline: auto; align-items: start; }
.realisation { scroll-margin-top: 130px; }
.realisation { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--blanc); border: 1px solid #ADCEFC; border-radius: var(--r-carte); transition: transform var(--d) var(--ease); }
@media (hover: hover) and (pointer: fine) { .realisation:hover { transform: translateY(-10px); } }
.realisation > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.realisation__corps { display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(22px, 1rem + 1.5vw, 36px); }
.realisation h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; }
.realisation p { font-size: var(--t-corps); line-height: 1.6; }
.realisation__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 6px; }
.lien-externe { font-weight: 600; font-size: 1.125rem; }
@media (max-width: 800px) { .realisations { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Our work: product capture in the hero, case study ---------- */
.heros-capture { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
.heros-capture__texte { display: grid; gap: 24px; justify-items: start; max-width: 900px; }
.capture-produit { margin: 0; display: grid; gap: 14px; }
.capture-produit img { width: 100%; height: auto; border-radius: var(--r-carte); border: 1px solid var(--bordure-neutre); box-shadow: 0 30px 60px -40px rgba(6, 20, 43, .35); }
.capture-produit figcaption { font-size: 1rem; line-height: 1.5; color: var(--texte); }
.etude { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ecart-cartes); max-width: 1120px; margin-inline: auto; }
.etude__bloc { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 1rem + 1.5vw, 40px); background: var(--pale); border-radius: var(--r-carte); }
.etude__bloc h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; }
.etude__bloc p, .etude__bloc li { font-size: var(--t-corps); line-height: 1.6; }
.etude__bloc--verif { grid-column: 1 / -1; background: var(--blanc); border: 1px solid #ADCEFC; }
.etude__bloc--verif .coches { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 800px) { .etude, .etude__bloc--verif .coches { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Two columns: text + photo ---------- */
.duo { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--ecart-2col); align-items: center; }
.duo--inverse, .rangee:nth-child(even) { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.duo__texte { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.duo__photo { min-width: 0; }
.duo__photo img { width: 100%; aspect-ratio: 1 / 1; max-height: 660px; object-fit: cover; border-radius: var(--r-photo); }
.duo--inverse .duo__photo { order: -1; }
/* Screenshots keep their top-left corner (title and logo) in view */
.duo__photo img.capture, .realisation > img { object-position: left top; }
@media (max-width: 900px) { .duo, .duo--inverse, .rangee:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .duo--inverse .duo__photo { order: 0; } .duo__photo img, .heros-accueil__photo img, .badge > img { aspect-ratio: 4 / 3; } .rangee .duo__photo img { min-height: 0; } }

.pastilles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; padding-block: 6px; }
.pastilles li { display: grid; gap: 10px; justify-items: start; font-size: 1.125rem; font-weight: 600; color: var(--titre); line-height: 1.3; }
.pastilles span { width: 52px; height: 52px; border-radius: var(--r-carte); background: var(--pale); border: 1px solid var(--bordure); display: grid; place-items: center; color: var(--accent); }
.pastilles svg { width: 26px; height: 26px; }
@media (max-width: 520px) { .pastilles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pastilles--engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.pastilles--engagements li { grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; font-size: 1.125rem; }
@media (max-width: 520px) { .pastilles--engagements { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dark sections and waves ---------- */
.vague { display: block; width: 100%; height: clamp(24px, 4.5vw, 65px); color: var(--marine); margin-bottom: -1px; position: relative; z-index: 2; }
.vague--bas { transform: scaleY(-1); margin: -1px 0 0; }
.sombre { background: var(--marine); color: var(--sur-sombre-2); }
.sombre h2, .sombre h3 { color: var(--blanc); }
.sombre a:not(.btn) { color: var(--ciel); }
.sombre .chapo { color: var(--sur-sombre); }

.raisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4.5rem) var(--ecart-2col); }
.raisons li { display: grid; gap: 14px; align-content: start; }
.raisons li::before { content: ""; width: 35px; height: 35px; border-radius: 50%; background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306142B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 20px no-repeat; }
.raisons h3 { font-size: var(--t-carte); font-weight: 600; }
.raisons p { color: var(--sur-sombre-2); }
@media (max-width: 1023px) { .raisons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .raisons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ (accordion) ---------- */
.faq-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.faq-tete > div { display: grid; gap: 14px; max-width: 760px; }
.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid rgba(22, 89, 242, .16); border-radius: var(--r-bouton); background: #F7FAFF; transition: background-color var(--d) ease; }
.faq details[open] { background: var(--blanc); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 1rem + 1.6vw, 42px) clamp(20px, 1rem + 2.4vw, 56px); cursor: pointer; font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 600; line-height: 1.3; color: var(--titre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 28px; height: 28px; flex: none; color: var(--accent); stroke-width: 1.5; transition: transform .45s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover svg { transform: translateY(6px); } }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }
.faq .reponse { padding: 0 clamp(20px, 1rem + 2vw, 50px) clamp(20px, 1rem + 1vw, 32px); max-width: 80ch; }
.faq .reponse p + p { margin-top: 12px; }

/* ---------- Contact band (on every page but the contact page) ---------- */
.bandeau-appel { position: relative; overflow: hidden; background: var(--accent); color: var(--sur-accent); }
.bandeau-appel::before, .bandeau-appel::after { content: ""; position: absolute; aspect-ratio: 96 / 91; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 91'%3E%3Cpath fill='white' d='M7 0H44.1A0.6 0.6 0 0 1 44.7 0.6V22.4A5.2 5.2 0 0 1 39.5 27.6H7A7 7 0 0 1 0 20.6V7A7 7 0 0 1 7 0ZM51.2 0H89A7 7 0 0 1 96 7V20.6A7 7 0 0 1 89 27.6H55.8A5.2 5.2 0 0 1 50.6 22.4V0.6A0.6 0.6 0 0 1 51.2 0ZM38.4 32.1H56.6A8.7 8.7 0 0 1 65.3 40.8V83A7.7 7.7 0 0 1 57.6 90.7H37.4A7.7 7.7 0 0 1 29.7 83V40.8A8.7 8.7 0 0 1 38.4 32.1Z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .07; pointer-events: none; }
.bandeau-appel::before { width: min(62vw, 760px); right: -7%; bottom: -34%; }
.bandeau-appel::after { width: min(34vw, 400px); left: -4%; top: -16%; opacity: .05; }
.bandeau-appel__in { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: clamp(4.5rem, 2rem + 8vw, 10rem) clamp(5.5rem, 3rem + 8vw, 11rem); }
.bandeau-appel h2 { color: var(--blanc); max-width: 21ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.12; }
.bandeau-appel p { max-width: 56ch; color: var(--blanc); }
.bandeau-appel .surtitre { color: var(--sur-accent-2); font-weight: 500; margin-top: -4px; }
.bandeau-appel__pastille { display: grid; place-items: center; width: clamp(92px, 7vw, 116px); aspect-ratio: 1; border-radius: 50%; background: var(--blanc); box-shadow: 0 18px 40px -18px rgba(6, 20, 43, .5); }
.bandeau-appel__pastille .symbole { width: 50%; fill: var(--logo); overflow: visible; }
.bandeau-appel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .bandeau-appel__in.est-visible .bandeau-appel__pastille .symbole path { animation: assemble .9s var(--ease) .25s both; transform-box: view-box; }
}

/* ---------- Careers / recruiting block ---------- */
.emplois { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--ecart-2col); align-items: center; }
.mosaique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mosaique img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: var(--r-carte); }
.mosaique img:nth-child(2) { margin-top: 18%; }
.mosaique img:nth-child(3) { margin-top: -18%; }
.emplois__texte { display: grid; gap: 22px; justify-items: start; }
.emplois__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .emplois { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split hero (service pages) ---------- */
.heros-page { position: relative; background: var(--blanc); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--section); }
.heros-page__intertitre { font-weight: 600; color: var(--titre); padding-top: 10px; }
.heros-page .duo__texte { gap: 24px; }
.heros-page h1 { font-size: clamp(2.35rem, 1.35rem + 3.2vw, 4.25rem); }
.heros-page .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.heros-page .duo__photo img { aspect-ratio: 3 / 2; max-height: none; }
@media (max-width: 900px) { .heros-page .duo { grid-template-columns: minmax(0, 1fr); } .heros-page .duo__photo img { aspect-ratio: 4 / 3; } }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; }
.fil a { color: var(--texte); text-decoration: none; }
.fil a:hover { color: var(--titre); text-decoration: underline; }
.fil li + li::before { content: "/"; margin-right: 8px; color: var(--champ); }

/* Photos run to the screen edge on their side (rounded on the inner side only), wider than the text column */
main { overflow-x: clip; }
:root { --debord: calc(var(--gouttiere) + max(0px, (100vw - var(--largeur) - 2 * var(--gouttiere)) / 2)); }
@media (min-width: 901px) {
  .heros-page .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .heros-page .duo__photo, .rangee:nth-child(odd) > .duo__photo, .section > .wrap.duo:not(.duo--inverse) > .duo__photo, .sombre > .wrap.duo:not(.duo--inverse) > .duo__photo { margin-right: calc(-1 * var(--debord)); }
  .rangee:nth-child(even) > .duo__photo, .duo--inverse > .duo__photo { margin-left: calc(-1 * var(--debord)); }
  .heros-page .duo__photo img, .rangee:nth-child(odd) > .duo__photo img, .section > .wrap.duo:not(.duo--inverse) > .duo__photo img, .sombre > .wrap.duo:not(.duo--inverse) > .duo__photo img { border-radius: var(--r-photo) 0 0 var(--r-photo); }
  .rangee:nth-child(even) > .duo__photo img, .duo--inverse > .duo__photo img { border-radius: 0 var(--r-photo) var(--r-photo) 0; }
  .heros-page .duo__photo img { aspect-ratio: 4 / 3; }
  /* Home hero: same treatment, the photo runs to the right edge of the screen */
  .heros-accueil__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .heros-accueil__photo { margin-right: calc(-1 * var(--debord)); }
  .heros-accueil__photo img { aspect-ratio: 4 / 3.2; max-height: 680px; border-radius: var(--r-photo) 0 0 var(--r-photo); }
  /* About: the "who we are" card runs to the right edge, its photo fills the card's right half */
  .chevauche > .wrap > .chevauche__carte { margin-right: calc(-1 * var(--debord)); padding: 0; overflow: hidden; align-items: stretch; border-radius: var(--r-photo) 0 0 var(--r-photo); }
  .chevauche__carte > .duo__texte { padding: clamp(32px, 1rem + 3vw, 64px) 0 clamp(32px, 1rem + 3vw, 64px) clamp(32px, 1rem + 3vw, 64px); align-content: center; }
  .chevauche__carte > .badge > img { height: 100%; min-height: 420px; max-height: 600px; aspect-ratio: auto; border-radius: 0; }
  /* About and other pages: a photo placed first in the careers block runs to the left edge */
  .section > .wrap.emplois > .duo__photo:first-child { margin-left: calc(-1 * var(--debord)); }
  .section > .wrap.emplois > .duo__photo:first-child img { border-radius: 0 var(--r-photo) var(--r-photo) 0; }
  .revele-pret .rangee > [data-photo], .revele-pret .duo > [data-photo] { clip-path: inset(10% 10% 10% 10%); }
  .revele-pret .rangee > [data-photo].est-visible, .revele-pret .duo > [data-photo].est-visible { clip-path: inset(0 0 0 0); }
}

/* Decorative motifs: pale discs and thin blue outlines behind photos (hidden on small screens) */
.section--degrade, .heros-page, .section--pale { overflow-x: clip; }
.rangee, .heros-page .duo { position: relative; isolation: isolate; }
.rangee::before, .heros-page .duo::before, .rangee::after, .heros-page .duo::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.rangee::before { width: clamp(220px, 27vw, 420px); aspect-ratio: 1; border-radius: 50%; background: #E3ECFD; right: -12%; bottom: -16%; }
.heros-page .duo::before { width: clamp(260px, 30vw, 470px); aspect-ratio: 1; border-radius: 24%; background: #EEF3FD; transform: rotate(45deg); right: 14%; top: clamp(200px, 22vw, 340px); }
.rangee::after { width: clamp(240px, 26vw, 400px); aspect-ratio: 1.45; border: 2px solid rgba(22, 89, 242, .45); border-radius: 70px; right: -15%; top: -10%; transform: rotate(-8deg); }
.heros-page .duo::after { width: clamp(240px, 24vw, 380px); aspect-ratio: 1; border: 1.5px solid rgba(22, 89, 242, .7); border-radius: 26%; transform: rotate(45deg); right: -20%; top: clamp(260px, 26vw, 400px); }
.heros-page::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: clamp(200px, 22vw, 340px); aspect-ratio: 1; border-radius: 50%; background: #F1F5FE; right: 9%; bottom: 4%; }
.heros-page > .wrap { position: relative; z-index: 1; }
.rangee:nth-child(even)::before { right: auto; left: -12%; }
.rangee:nth-child(even)::after { right: auto; left: -15%; transform: rotate(8deg); }
.heros-accueil::after { content: ""; position: absolute; right: -6%; bottom: -14%; width: clamp(260px, 30vw, 460px); aspect-ratio: 1.45; border: 1.5px solid rgba(127, 168, 255, .35); border-radius: 80px; transform: rotate(-10deg); pointer-events: none; }
@media (max-width: 900px) { .rangee::before, .rangee::after, .heros-page .duo::before, .heros-page .duo::after, .heros-page::after, .heros-accueil::after { display: none; } }

/* Alternating photo/text rows */
.rangees { display: grid; gap: var(--section); }
.rangee { scroll-margin-top: 0; align-items: stretch; }
/* Row photos fill the full height of the row, whatever the length of the text */
.rangee .duo__photo img { height: 100%; min-height: clamp(300px, 40vw, 600px); }
.rangee .duo__texte { align-content: center; }
.rangee h2 { font-size: var(--t-h2); }
.rangee:nth-child(even) .duo__photo { order: -1; }
@media (max-width: 900px) { .rangee:nth-child(even) .duo__photo { order: 0; } }

/* ---------- Dark centered hero (about, recruiting) ---------- */
.heros-sombre { position: relative; overflow: hidden; background: var(--marine); color: var(--sur-sombre-2); text-align: center; padding-block: clamp(4rem, 2rem + 6vw, 8.5rem) clamp(7rem, 4rem + 8vw, 12rem); }
.heros-sombre::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, var(--marine-2) 0 36%, transparent 36.05%); }
.heros-sombre__in { position: relative; display: grid; justify-items: center; gap: 24px; }
.heros-sombre h1 { color: var(--blanc); max-width: 20ch; }
.heros-sombre p { max-width: 60ch; }
.chevauche { position: relative; z-index: 1; margin-top: clamp(-8rem, -4rem - 4vw, -4rem); }
.chevauche__carte { background: var(--blanc); border-radius: var(--r-photo); box-shadow: 0 30px 60px -30px rgba(6, 20, 43, .35); padding: clamp(24px, 1rem + 3vw, 64px); }

/* Process steps */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ecart-cartes); counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; gap: 12px; align-content: start; }
.etapes li::before { content: counter(etape); width: 56px; height: 56px; border-radius: var(--r-carte); background: var(--accent); color: var(--blanc); display: grid; place-items: center; font-size: 1.25rem; font-weight: 600; }
.etapes h3 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.625rem); }
.etapes--icones li::before { content: none; }
.etapes__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-carte); background: var(--accent); color: var(--blanc); }
.etapes__icone svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .etapes { grid-template-columns: minmax(0, 1fr); } }

/* About: photo with a name card */
.badge { position: relative; }
.badge > img { width: 100%; aspect-ratio: 1 / 1; max-height: 600px; object-fit: cover; border-radius: var(--r-photo); }
.badge__carte { position: absolute; left: clamp(-32px, -2vw, -12px); bottom: clamp(-32px, -2vw, -20px); display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--ombre-douce); }
.badge__carte img { width: 54px; height: auto; }
.badge__carte strong { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.badge__carte span { font-size: .9375rem; }
@media (max-width: 600px) { .badge__carte { position: static; margin-top: 14px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--ecart-2col); align-items: start; }
.contact__texte { display: grid; gap: 22px; justify-items: start; }
.suite { display: grid; gap: 14px; counter-reset: suite; }
.suite li { counter-increment: suite; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.suite li::before { content: counter(suite); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--blanc); display: grid; place-items: center; font-size: .875rem; font-weight: 600; }
.suite[hidden], .formulaire .champ[hidden] { display: none; }  /* contact form: project vs application wording */
.coord { display: grid; gap: 4px; }
.coord a { font-weight: 600; font-size: 1.125rem; }
.contact__carte { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-carte); padding: clamp(22px, 1rem + 2.5vw, 50px); box-shadow: 0 30px 60px -40px rgba(6, 20, 43, .3); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.formulaire__aide { grid-column: 1 / -1; font-size: 1.0625rem; }
.champ { display: grid; gap: 8px; align-content: start; }
.champ--large { grid-column: 1 / -1; }
.champ label, .sujets legend { font-weight: 600; font-size: 1.125rem; color: var(--titre); padding: 0; }
.facultatif { font-weight: 400; color: var(--texte); }
.champ input, .champ textarea { width: 100%; min-height: 56px; padding: 13px 15px; font: inherit; font-size: 1.125rem; color: var(--titre); background: var(--blanc); border: 1px solid var(--champ); border-radius: var(--r-bouton); transition: border-color var(--d) ease; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.aide { font-size: 1.0625rem; }
.erreur { min-height: 1.25rem; font-size: .8125rem; line-height: 1.25rem; color: var(--erreur); }
.sujets { grid-column: 1 / -1; border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.sujets legend { margin-bottom: 10px; }
.sujets__choix { display: flex; flex-wrap: wrap; gap: 8px; }
.sujets__choix label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; font-size: 1.0625rem; border: 1px solid var(--bordure); border-radius: var(--r-bouton); background: var(--pale); color: var(--titre); cursor: pointer; transition: background-color var(--d) ease, color var(--d) ease, border-color var(--d) ease; }
.sujets__choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sujets__choix label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--blanc); }
.sujets__choix label:has(input:focus-visible) { outline: 2px solid var(--titre); outline-offset: 2px; }
@media (forced-colors: active) { .sujets__choix label:has(input:checked) { outline: 3px solid CanvasText; outline-offset: 2px; } }
.consentement { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 1.0625rem; }
.consentement input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.formulaire__pied { grid-column: 1 / -1; }
.formulaire__pied .btn { min-height: 52px; }
.message-envoi { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r-bouton); font-size: .9375rem; }
.message-envoi--ok { background: var(--ok-fond); color: var(--ok); }
.message-envoi--info { background: var(--info-fond); color: var(--info); }
.message-envoi--erreur { background: var(--erreur-fond); color: var(--erreur); }
@media (max-width: 640px) { .formulaire { grid-template-columns: minmax(0, 1fr); } .formulaire__pied .btn { width: 100%; } }

/* ---------- News page ---------- */
.contact--suivre { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.contact--suivre .contact__texte p { font-size: var(--t-chapo); line-height: 1.5; }
.contact--suivre .contact__texte p + p { font-size: var(--t-corps); }
.suivre { display: grid; gap: 18px; justify-items: start; }
.suivre__icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #0A66C2; color: var(--blanc); }
.suivre__icone svg { width: 34px; height: 34px; }
.suivre h2 { font-size: var(--t-carte); line-height: 1.2; }
.suivre p { font-size: var(--t-corps); line-height: 1.6; }
.actualites { display: grid; gap: var(--ecart-cartes); max-width: 980px; margin-inline: auto; }
.actualite { display: grid; gap: 18px; justify-items: start; background: var(--blanc); border: 1px solid #ADCEFC; border-radius: var(--r-carte); padding: clamp(24px, 1rem + 2.2vw, 52px); scroll-margin-top: 130px; }
.actualite--avis { border-color: #E9C46A; box-shadow: inset 6px 0 0 #E0A800; }
.actualite__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.actualite__meta time { font-size: var(--t-surtitre); color: var(--texte); }
.actualite h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.6rem); line-height: 1.15; }
.actualite p { font-size: var(--t-corps); line-height: 1.65; max-width: 70ch; }
.actualite__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 8px; }
.actualites__vide { max-width: 40ch; margin-inline: auto; text-align: center; font-size: var(--t-corps); }
@media (max-width: 900px) { .contact--suivre { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page not found (404) ---------- */
.introuvable { display: grid; gap: 26px; justify-items: start; max-width: 820px; padding-block: clamp(1rem, .5rem + 2vw, 3rem); }
.introuvable p { font-size: var(--t-chapo); line-height: 1.5; }
.introuvable p[lang] { font-size: var(--t-corps); }
.introuvable__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.introuvable__liens { display: flex; flex-wrap: wrap; gap: 12px; }
.introuvable__liens a { display: inline-block; padding: 10px 18px; border: 1px solid var(--bordure); border-radius: var(--r-bouton); background: var(--pale); color: var(--titre); font-weight: 500; text-decoration: none; transition: background-color var(--d) ease, color var(--d) ease; }
.introuvable__liens a:hover { background: var(--accent); color: var(--blanc); }

/* ---------- Long text ---------- */
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.6rem; margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.a-completer { background: var(--info-fond); color: var(--info); padding: 1px 6px; border-radius: 4px; }
.credits { display: grid; gap: 0; border-top: 1px solid var(--bordure-neutre); }
.credits li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bordure-neutre); font-size: 1rem; }
.credits img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* ---------- Footer (rounded, overlaps the section above) ---------- */
.pied { position: relative; z-index: 3; margin-top: calc(-1 * var(--r-section)); border-radius: var(--r-section) var(--r-section) 0 0; background: var(--marine); color: var(--sur-sombre-2); }
.pied a:not(.btn) { color: var(--sur-sombre); text-decoration: none; transition: color var(--d) ease; }
.pied a:not(.btn):hover { color: var(--ciel); }
.pied__haut { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--ecart-2col); align-items: start; padding-block: clamp(4rem, 2rem + 6vw, 9.375rem) clamp(3rem, 2rem + 4vw, 6.5rem); }
.pied__logo { display: inline-block; }
.pied__logo img { height: 60px; width: auto; }
.pied__services { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-bottom: 26px; border-bottom: 1px solid rgba(127, 168, 255, .25); }
.pied__services a { font-size: 1.25rem; font-weight: 500; color: var(--blanc) !important; }
.pied__services a:hover { color: var(--ciel) !important; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: 24px; }
.pied__liens a { font-size: 1.125rem; color: var(--sur-sombre-2) !important; }
.pied__liens a:hover { color: var(--ciel) !important; }
.pied__milieu { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--ecart-2col); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.pied h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 400; color: var(--blanc); margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); letter-spacing: -.01em; }
.pied__coord { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 22px clamp(2rem, 1rem + 4vw, 6rem); margin: 0; }
.pied__coord dt { font-weight: 600; color: var(--blanc); }
.pied__coord dd { margin: 4px 0 0; }
.pied .pied__coord a { color: var(--ciel); font-weight: 500; }
.pied .pied__coord a:hover { color: var(--blanc); }
.pied__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pied__reseaux { display: flex; gap: 12px; margin-top: 28px; }
.pied__reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nuit); }
.pied__reseaux a:hover { background: var(--accent); color: var(--blanc) !important; }
.pied__reseaux svg { width: 19px; height: 19px; }
.pied__bas { display: grid; gap: 10px; padding-block: 26px calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(127, 168, 255, .22); font-size: 1rem; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.pied__bas a { color: var(--sur-sombre-2) !important; }
.pied__bas a:hover { color: var(--ciel) !important; }
@media (max-width: 960px) { .pied__haut, .pied__milieu { grid-template-columns: minmax(0, 1fr); } .pied__services { gap: 12px 28px; } }
@media (max-width: 520px) { .pied__coord { grid-template-columns: minmax(0, 1fr); } .pied__actions .btn { flex: 1 1 100%; } }
/* Keep the last lines clear of the floating "Let's talk" button */
.js .pied__bas { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- "Let's talk" launcher and guided panel (no AI: it routes visitors to the right page) ---------- */
.discussion { display: none; }
.js .discussion { display: block; position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 44; }
[data-page="contact.html"] .discussion { display: none; }
.discussion__bouton { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 22px 6px 6px; border: 0; border-radius: 999px; background: var(--accent); color: var(--blanc); font: 500 1rem var(--f); cursor: pointer; box-shadow: 0 14px 34px -12px rgba(6, 20, 43, .55); transition: transform var(--d) var(--ease), background-color var(--d) ease; }
.discussion__bouton:hover { background: var(--accent-fonce); }
@media (hover: hover) and (pointer: fine) { .discussion__bouton:hover { transform: translateY(-3px); } }
.discussion__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blanc); flex: none; }
.discussion__avatar .symbole { width: 22px; fill: var(--logo); }
.discussion.ouvert { z-index: 55; }
.discussion__bouton:focus-visible { outline: 3px solid var(--blanc); outline-offset: 0; box-shadow: 0 0 0 6px var(--titre); }
.discussion__tete :focus-visible { outline-color: var(--ciel); }
.discussion__panneau {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(410px, calc(100vw - 40px)); height: min(620px, calc(100dvh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--blanc); border-radius: 16px; box-shadow: 0 2px 6px rgba(6, 20, 43, .08), 0 30px 60px -20px rgba(6, 20, 43, .45);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .25s ease, transform .4s var(--ease), visibility .25s;
}
.discussion.ouvert .discussion__panneau { opacity: 1; visibility: visible; transform: none; }
.discussion__tete { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--marine); color: var(--sur-sombre-2); }
.discussion__tete h2 { font-size: 1.0625rem; font-weight: 600; color: var(--blanc); letter-spacing: 0; }
.discussion__tete p { font-size: .8125rem; }
.discussion__tete > div { min-width: 0; }
.discussion__effacer { margin-left: auto; }
.discussion__effacer, .discussion__fermer { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--nuit); color: var(--blanc); cursor: pointer; }
.discussion__effacer[hidden] { display: none; }
.discussion__effacer[hidden] + .discussion__fermer { margin-left: auto; }
.discussion__effacer svg, .discussion__fermer svg { width: 18px; height: 18px; }
.discussion__fil { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 18px; scroll-behavior: smooth; }
.discussion__bulle { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.discussion__bulle p + p, .discussion__bulle p + ul, .discussion__bulle ul + p { margin-top: 8px; }
.discussion__bulle ul { list-style: disc; padding-left: 1.15em; display: grid; gap: 4px; }
.discussion__bulle--assistant { align-self: flex-start; border-top-left-radius: 4px; background: var(--pale); color: var(--titre); }
.discussion__bulle--assistant a { color: var(--accent-texte); font-weight: 500; }
.discussion__bulle--visiteur { align-self: flex-end; border-top-right-radius: 4px; background: var(--accent); color: var(--blanc); white-space: pre-wrap; }
.discussion__bulle--erreur { background: var(--info-fond); color: var(--info); }
.discussion__bulle--erreur a { color: var(--info); text-decoration: underline; }
.discussion__points { display: inline-flex; gap: 5px; padding: 6px 2px; }
.discussion__points i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .discussion__points i { animation: points 1.2s ease-in-out infinite; }
  .discussion__points i:nth-child(2) { animation-delay: .15s; }
  .discussion__points i:nth-child(3) { animation-delay: .3s; }
}
@keyframes points { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.discussion__suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.discussion__suggestions[hidden] { display: none; }
.discussion__suggestions button { padding: 9px 13px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--accent-texte); font: 500 .875rem/1.3 var(--f); text-align: left; cursor: pointer; transition: background-color var(--d) ease, border-color var(--d) ease; }
.discussion__suggestions button:hover { background: var(--pale); border-color: var(--accent); }
.discussion__formulaire { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 8px; border: 1px solid var(--champ); border-radius: 12px; background: var(--blanc); }
.discussion__formulaire:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 89, 242, .18); }
.discussion__formulaire textarea { flex: 1; min-height: 40px; max-height: 140px; padding: 8px 6px; border: 0; resize: none; font: 400 1rem/1.4 var(--f); color: var(--titre); background: none; }
.discussion__formulaire textarea:focus { outline: none; }
.discussion__formulaire textarea::placeholder { color: #6B7588; }
.discussion__envoyer { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--accent); color: var(--blanc); cursor: pointer; }
.discussion__envoyer:hover { background: var(--accent-fonce); }
.discussion__envoyer:disabled { background: #8FA3C9; cursor: progress; }
.discussion__envoyer svg { width: 20px; height: 20px; }
.discussion__avis { flex: none; padding: 10px 18px 14px; font-size: .75rem; line-height: 1.45; color: var(--texte); }
.discussion__avis a { color: var(--accent-texte); }
@media (max-height: 480px) { .discussion__panneau { position: fixed; inset: 8px 8px 84px; width: auto; height: auto; } }
@media (max-width: 600px) and (min-height: 481px) { .discussion__panneau { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(600px, calc(100dvh - 170px)); } }
@media (max-width: 600px) {
  .discussion__bouton { padding: 6px; min-height: 0; }
  .discussion__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .discussion__avatar { width: 44px; height: 44px; }
}

/* ---------- Chat: teaser bubble, unread dot, consent request ---------- */
.discussion__bouton { position: relative; }
.discussion__pastille { position: absolute; top: 4px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--accent); }
.discussion--vue .discussion__pastille { display: none; }
.discussion__teaser { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(310px, calc(100vw - 40px)); }
.discussion__teaser[hidden] { display: none; }
.discussion.ouvert .discussion__teaser { display: none; }
.discussion__teaser-texte { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--blanc); color: var(--titre); font: 400 1rem/1.45 var(--f); text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(6, 20, 43, .08), 0 18px 40px -18px rgba(6, 20, 43, .45); }
.discussion__teaser-fermer { position: absolute; right: 0; top: -46px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--bordure-neutre); border-radius: 50%; background: var(--blanc); color: var(--titre); cursor: pointer; }
.discussion__teaser-fermer svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) { .discussion__teaser:not([hidden]) { animation: monte .5s var(--ease) both; } }
.discussion__accord-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.discussion__accord-actions .btn { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
.discussion__lien { padding: 4px 0; border: 0; background: none; color: var(--accent-texte); font: 500 .9375rem var(--f); text-decoration: underline; cursor: pointer; }

/* ---------- Privacy consent: banner, preferences dialog, round button ---------- */
.btn--leger { background: var(--pale); color: var(--titre); border-color: var(--bordure); }
.btn--leger:hover { background: #E6EEFD; color: var(--titre); }
.consentement-bouton { position: fixed; left: max(20px, env(safe-area-inset-left, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 44; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--nuit); color: var(--blanc); cursor: pointer; box-shadow: 0 10px 26px -10px rgba(6, 20, 43, .6); transition: background-color var(--d) ease, transform var(--d) var(--ease); }
.consentement-bouton:hover { background: var(--accent); }
.consentement-bouton svg { width: 26px; height: 26px; }
.consentement-bouton:focus-visible { outline: 3px solid var(--blanc); outline-offset: 0; box-shadow: 0 0 0 6px var(--titre); }
.consentement-banniere { position: fixed; left: max(20px, env(safe-area-inset-left, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 57; width: min(540px, calc(100vw - 40px)); display: grid; gap: 12px; padding: 24px 26px; background: var(--blanc); border-radius: 16px; box-shadow: 0 2px 6px rgba(6, 20, 43, .08), 0 30px 60px -20px rgba(6, 20, 43, .5); font-size: 1rem; line-height: 1.5; }
.consentement-banniere[hidden] { display: none; }
.consentement-banniere h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: 0; }
.consentement-banniere__actions, .consentement-panneau__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.consentement-banniere .btn, .consentement-panneau .btn { min-height: 46px; padding: 10px 18px; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) { .consentement-banniere:not([hidden]) { animation: monte .6s var(--ease) both calc(var(--entree) + .2s); } }
@media (max-width: 600px) { .consentement-banniere { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px; } .consentement-banniere .btn { flex: 1 1 auto; } }
.btn--contour-accent { background: var(--blanc); border: 1.5px solid var(--accent); color: var(--accent-texte); }
.btn--contour-accent:hover { background: var(--pale); color: var(--accent-texte); }
/* Preferences dialog, laid out like the reference site's consent tool */
.consentement-panneau { width: min(845px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 40px)); padding: 0; border: 0; border-radius: 8px; color: var(--texte); box-shadow: 0 30px 70px -20px rgba(6, 20, 43, .6); }
.consentement-panneau[open] { display: flex; flex-direction: column; }
.consentement-panneau::backdrop { background: rgba(6, 20, 43, .55); }
.consentement-panneau__tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--bordure-neutre); }
.consentement-panneau__tete h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.consentement-panneau__fermer { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--texte); cursor: pointer; }
.consentement-panneau__fermer:hover { background: var(--pale); color: var(--titre); }
.consentement-panneau__fermer svg { width: 20px; height: 20px; }
.consentement-panneau__corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 8px; font-size: 1rem; line-height: 1.6; }
.consentement-panneau__corps > p + p { margin-top: 12px; }
.consentement-lien { margin: 6px 0 14px; padding: 0; border: 0; background: none; color: var(--accent-texte); font: 500 1rem var(--f); text-decoration: underline; cursor: pointer; }
.consentement-categorie { padding: 18px 0; border-top: 1px solid var(--bordure-neutre); }
.consentement-categorie__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consentement-categorie__deplier { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; color: var(--titre); font: 600 1.1875rem var(--f); cursor: pointer; text-align: left; }
.consentement-categorie__deplier svg { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.consentement-categorie__deplier[aria-expanded="true"] svg { transform: none; }
.consentement-categorie > p { margin-top: 8px; padding-left: 30px; }
.consentement-toujours { font-weight: 600; font-size: .9375rem; color: #0B7A35; }
.consentement-details { margin: 14px 0 4px 30px; padding: 4px 18px; border: 1px solid var(--bordure-neutre); border-radius: 8px; background: #F6F8FB; font-size: .9375rem; }
.consentement-tableau { margin: 0; }
.consentement-tableau > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; }
.consentement-tableau > div + div { border-top: 1px solid var(--bordure-neutre); }
.consentement-tableau dt { color: var(--titre); overflow-wrap: anywhere; }
.consentement-tableau dd { margin: 0; }
.consentement-vide { padding: 12px 0; }
.interrupteur { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #B8C2D3; cursor: pointer; transition: background-color .25s ease; }
.interrupteur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blanc); box-shadow: 0 1px 3px rgba(6, 20, 43, .3); transition: transform .25s var(--ease); }
.interrupteur:checked { background: var(--accent); }
.interrupteur:checked::after { transform: translateX(20px); }
.interrupteur:focus-visible { outline: 2px solid var(--titre); outline-offset: 3px; }
@media (forced-colors: active) { .interrupteur { border: 2px solid ButtonText; } .interrupteur:checked { background: Highlight; } }
.consentement-panneau__pied { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 28px 22px; border-top: 1px solid var(--bordure-neutre); }
.consentement-panneau__pied .btn { min-height: 48px; padding: 10px 14px; font-size: 1rem; white-space: normal; }
@media (max-width: 600px) { .consentement-panneau__pied { grid-template-columns: minmax(0, 1fr); } .consentement-tableau > div { grid-template-columns: minmax(0, 1fr); } .consentement-panneau__tete, .consentement-panneau__corps, .consentement-panneau__pied { padding-inline: 18px; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .revele-pret [data-revele] > * { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
  .revele-pret [data-revele].est-visible > *, .revele-pret [data-revele]:focus-within > * { opacity: 1; transform: none; }
  .revele-pret [data-photo] { clip-path: inset(10% 10% 10% 10% round var(--r-photo)); transition: clip-path 1.1s var(--ease); }
  .revele-pret [data-photo].est-visible { clip-path: inset(0 0 0 0 round var(--r-photo)); }
  .js .heros-accueil__texte > * { animation: monte .8s var(--ease) both var(--entree); }
  .js .heros-accueil__texte > *:nth-child(2) { animation-delay: calc(var(--entree) + .08s); }
  .js .heros-accueil__texte > *:nth-child(3) { animation-delay: calc(var(--entree) + .16s); }
  .js .heros-accueil__photo { animation: apparait 1.1s var(--ease) both calc(var(--entree) + .1s); }
}
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }
@keyframes apparait { from { opacity: 0; transform: scale(.97); } }

/* ---------- Logo screen ----------
   Shown at the top of every page under the header: the three blocks of the logo
   assemble, then the panel lifts. Pure CSS, so it leaves even if JavaScript fails.
   With View Transitions, the new page (screen included) rises over the old one. */
.chargement { display: none; }
@media (prefers-reduced-motion: no-preference) {
  :root { --entree: .85s; }
  .chargement { position: fixed; inset: 0; z-index: 48; display: grid; place-items: center; background: var(--pale); animation: chargement-sortie .85s var(--ease-in-out) .7s both; }
  .chargement .symbole { width: clamp(64px, 6vw, 84px); fill: var(--logo); overflow: visible; }
  .chargement .symbole path { transform-box: view-box; animation: assemble .6s var(--ease) both; }
  .chargement .symbole__d { animation-delay: .08s; }
  .chargement .symbole__t { animation-delay: .16s; }
}
@keyframes chargement-sortie { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes assemble { from { opacity: 0; transform: translate(calc(var(--dx) * 2), calc(var(--dy) * 2)); } }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-sortie .6s var(--ease) both; }
::view-transition-new(root) { animation: page-entree .6s var(--ease) both; }
::view-transition-old(entete), ::view-transition-new(entete), ::view-transition-old(barre), ::view-transition-new(barre) { animation: none; }
@keyframes page-sortie { to { opacity: .4; transform: translateY(-40px); } }
@keyframes page-entree { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
}
