/* ==========================================================================
   LEIMDI SOLUTION — feuille de style unique.

   Direction (reprise esthétique du 30/10/2026) : « le verbatim ».
   Le site se lit comme une conversation transcrite.
   - Deux voix dans une seule police, Manrope : la marque parle en grasse (800),
     les gens en légère (200-300). C'est le contraste du logo lui-même
     (« LEIMDI » fin, « SOLUTION » plein).
   - Le fil rouge du casque du logo devient le fil de la conversation : il relie
     les répliques de l'accueil, le sommaire des services, les étapes de la méthode.
   - Le coin de bulle (un angle vif en bas à gauche) sur les boutons, les photos,
     les champs et le formulaire.
   - Fond papier pour les en-têtes, blanc pour le texte, encre pour le Portugal et
     le pied de page, un seul aplat rouge : le bandeau d'appel.
   Couleurs : uniquement la palette du groupe (celle de HAZI DISTRIBUTION) et ses
   transparences. Photos en bichromie encre / papier (filtre SVG #bichromie).
   Mouvement : un seul moment animé, le verbatim de l'accueil (main.js §3).
   Tout le reste est visible d'emblée, sans attendre ni le défilement ni le script.
   ========================================================================== */

/* Manrope (licence OFL), hébergée sur le site : aucun appel à Google Fonts.
   Les fichiers contiennent tout l'axe de graisse, de 200 à 800. */
/* L'ordre compte : les deux plages se recouvrent (œ, ı) et c'est la dernière déclarée qui sert.
   latin-ext d'abord, latin ensuite : le « œ » de « cœur » ne fait plus charger latin-ext (15 Ko)
   sur les pages en français (optimisation mobile du 30/10/2026). */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette du groupe (celle de HAZI DISTRIBUTION), et rien d'autre */
  --rouge: #C70C0F;        /* l'accent : le fil, les boutons, les liens, l'aplat du bandeau d'appel */
  --rouge-f: #A1090C;      /* survol des boutons rouges, messages d'erreur */
  --rouge-v: #E31419;      /* accent graphique sur fond encre, jamais en petit texte */
  --rouge-voile: rgba(199, 12, 15, .08);   /* halo de focus, champs « à fournir » */
  --rouge-toucher: rgba(199, 12, 15, .14); /* flash du toucher sur téléphone (-webkit-tap-highlight-color) */
  --encre: #141413;        /* titres, répliques, section Portugal, pied de page */
  --graphite: #2B2B29;     /* texte courant */
  --gris-t: #5E5E5B;       /* texte secondaire sur fond clair (5,9:1 sur papier) */
  --gris-c: #666563;       /* textes indicatifs des champs */
  --gris: #878785;         /* traits et bordures de champ ; en texte, seulement sur encre */
  --gris-l: #C9C8C5;       /* texte secondaire sur encre */
  --filet: #DEDCD8;        /* filets sur fond clair */
  --filet-nuit: rgba(255, 255, 255, .16);
  --papier: #F5F4F2;       /* en-têtes, sections teintées */
  --papier-2: #EBE9E6;
  --blanc: #FFFFFF;

  /* Le coin de bulle : arrondi partout, sauf en bas à gauche */
  --bulle: 22px 22px 22px 5px;
  --bulle-s: 12px 12px 12px 3px;
  --bulle-l: 30px 30px 30px 6px;

  --ease: cubic-bezier(.16, 1, .3, 1);   /* décélération franche, sans rebond */
  --wrap: 1200px;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --hdr: 80px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------- socle */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 1.5rem);
  scrollbar-color: var(--gris) var(--papier); accent-color: var(--rouge);
  -webkit-tap-highlight-color: var(--rouge-toucher);   /* le flash du toucher, aux couleurs du groupe */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;   /* filet de sécurité : un mot ou une adresse trop longs passent à la ligne au lieu de déborder */
}
/* menu mobile ouvert : la page derrière ne défile plus. Le verrou est sur body seul : il passe au
   viewport (ce qui tient sur iOS depuis Safari 16). Posé aussi sur html, il ferait de body un conteneur
   de défilement, et l'en-tête collant (donc le menu) remonterait hors de l'écran. */
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, h4 { margin: 0; color: var(--encre); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
/* Au doigt : pas d'attente du double-toucher sur les commandes (le zoom à deux doigts reste possible). */
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Les surfaces du navigateur, aux couleurs du groupe */
::selection { background: var(--rouge); color: var(--blanc); }
input, textarea, select { caret-color: var(--rouge); }
::placeholder { color: var(--gris-c); opacity: 1; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: -999px; top: .75rem; z-index: 100; padding: .7rem 1rem; border-radius: var(--bulle-s); background: var(--blanc); color: var(--encre); font-weight: 700; }
.skip:focus { left: .75rem; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }
.nuit :focus-visible, .ftr :focus-visible { outline-color: var(--rouge-v); }
.appel :focus-visible { outline-color: var(--blanc); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* la seconde voix d'un titre : la même encre, en graisse légère */
.hl { font-weight: 200; letter-spacing: -.035em; }

/* ------------------------------------------------------------- boutons */
/* Le bouton a la forme d'une bulle de conversation : un angle vif en bas à gauche. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .9rem 1.5rem;
  border: 0; border-radius: var(--bulle);
  font: 700 1rem/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
/* Survols : seulement avec une souris. Au doigt, un :hover reste collé après le toucher
   (optimisation mobile du 30/10/2026) ; le retour du toucher passe par :active. */
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }
.btn--primary { background: var(--rouge); color: var(--blanc); }
@media (hover: hover) { .btn--primary:hover { background: var(--rouge-f); } }
.btn--primary:active { background: var(--rouge-f); }
.btn--light { background: var(--blanc); color: var(--encre); }
@media (hover: hover) { .btn--light:hover { background: var(--encre); color: var(--blanc); } }
.btn--light:active { background: var(--papier-2); color: var(--encre); }
/* l'action secondaire : un lien souligné du fil rouge, pas un deuxième bouton */
.btn--fil {
  min-height: 3.25rem; padding: .9rem .1rem; border-radius: 0; background: none; color: var(--encre);
  text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: .45em;
}
@media (hover: hover) { .btn--fil:hover { color: var(--rouge); } }
.btn--fil:active { color: var(--rouge); }

.lnk { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 800; font-size: .98rem; color: var(--rouge); text-decoration: none; }
.lnk svg { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .lnk:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
  .lnk:hover svg { transform: translateX(4px); }
}

/* ------------------------------------------------------------- en-tête */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hdr.is-solid { border-bottom-color: var(--filet); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--hdr); }
/* le logo mène à l'accueil : 44 px de zone tactile, même quand l'image descend à 40 px sur mobile */
.hdr__logo { flex: none; display: flex; align-items: center; min-height: 44px; }
.hdr__logo img { width: auto; height: 50px; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 2rem; }
/* la page en cours : un nœud rouge, comme celui qui parle sur le fil */
.nav__list a { position: relative; display: inline-block; padding: .45rem 0; font-size: .96rem; font-weight: 600; color: var(--encre); text-decoration: none; }
.nav__list a::before {
  content: ""; position: absolute; left: 50%; bottom: -.25rem; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--rouge); transform: scale(0); transition: transform .3s var(--ease);
}
.nav__list a[aria-current="page"]::before { transform: scale(1); }
@media (hover: hover) { .nav__list a:hover::before { transform: scale(1); } }
.nav__list a[aria-current="page"] { font-weight: 800; }
/* FR / EN : deux mots, pas une pastille */
.nav__lang { display: flex; align-items: center; }
.nav__lang a { padding: .4rem .35rem; font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--gris-t); text-decoration: none; }
.nav__lang a + a::before { content: "/"; margin-right: .7rem; color: var(--gris); font-weight: 400; }
.nav__lang a[aria-current="true"] { color: var(--encre); font-weight: 800; }
@media (hover: hover) { .nav__lang a:hover { color: var(--rouge); } }
.nav__cta { min-height: 2.9rem; padding: .7rem 1.2rem; font-size: .94rem; }

.burger { display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: var(--bulle-s); background: var(--encre); cursor: pointer; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--blanc); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  :root { --hdr: 68px; }
  .hdr__logo img { height: 40px; }
  /* FR / EN : des cibles de 44 px au doigt */
  .nav__lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .5rem; font-size: .9rem; }
  .nav__lang a + a::before { display: none; }
  /* Menu repliable : seulement quand le script tourne. */
  .js .burger { display: block; }
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr));
    flex-direction: column; align-items: stretch; gap: 1.75rem;
    padding: 1rem var(--gut) 2.5rem; overflow-y: auto; overscroll-behavior: contain;
    background: var(--papier); border-top: 1px solid var(--filet);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), visibility 0s; }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__list a { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; border-bottom: 1px solid var(--filet); }
  .js .nav__list a::before { position: static; flex: none; width: 10px; height: 10px; margin: 0; transform: scale(1); background: var(--filet); }
  .js .nav__list a[aria-current="page"]::before { background: var(--rouge); }
  .js .nav__lang { align-self: flex-start; gap: .25rem; }
  .js .nav__lang a[aria-current="true"] { border-radius: var(--bulle-s); background: var(--encre); color: var(--blanc); }
  .js .nav__cta { min-height: 3.4rem; font-size: 1.05rem; }
  /* Sans script : les liens restent affichés sous le logo, et l'en-tête ne colle plus. */
  html:not(.js) .hdr { position: relative; }
  html:not(.js) .hdr__in { flex-wrap: wrap; height: auto; padding-block: .75rem; }
  html:not(.js) .nav, html:not(.js) .nav__list { flex-wrap: wrap; gap: .5rem 1.25rem; }
}

/* ------------------------------------------------------------ sections */
.sec { padding: clamp(4rem, 8vw, 6.75rem) 0; }
.sec--papier { --fond: var(--papier); background: var(--papier); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sec__head h2 { font-size: clamp(2.05rem, 4.3vw, 3.35rem); letter-spacing: -.036em; line-height: 1.04; }
.sec__head p { margin-top: 1.15rem; font-size: 1.12rem; line-height: 1.6; color: var(--gris-t); }
.sec__foot { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- héros */
.hero { padding: clamp(2.25rem, 5.5vw, 4.25rem) 0 clamp(4rem, 8vw, 6.5rem); background: var(--papier); }
/* l'accroche, à deux voix, en pleine largeur */
.hero__h { font-size: clamp(2.6rem, 6.8vw, 5.6rem); line-height: .98; letter-spacing: -.04em; }
.hero__h .hl { display: block; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
  grid-template-areas: "txt verbatim" "trust verbatim";
  column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
}
.hero__txt { grid-area: txt; padding-top: .35rem; }
.hero__in > .verbatim { grid-area: verbatim; }
.hero__lead { max-width: 30rem; font-size: clamp(1.1rem, 1.45vw, 1.26rem); line-height: 1.55; color: var(--graphite); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2rem; }
.hero__trust { grid-area: trust; display: grid; gap: .65rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--filet); }
.hero__trust li { display: flex; align-items: center; gap: .65rem; font-size: .93rem; font-weight: 600; color: var(--encre); }
.hero__trust svg { flex: none; width: 19px; height: 19px; color: var(--rouge); }

/* ------------------------------------------------- le verbatim (accueil)
   Qui parle dans la marge, la réplique en face ; le fil rouge part du symbole du
   logo et relie les répliques. Le moment animé du site (main.js §3) : le fil
   avance (--p) et les répliques arrivent. Elles gardent leur place même cachées :
   le bloc ne change jamais de taille. */
.verbatim {
  --gout: 64px;     /* la gouttière du fil */
  --axe: 22px;      /* l'axe du fil, depuis le bord gauche */
  position: relative; padding-left: var(--gout);
}
.verbatim__trait {
  position: absolute; left: calc(var(--axe) - 1px); top: 50px; bottom: 34px; width: 2px;
  background: var(--rouge); transform-origin: top; transform: scaleY(var(--p, 1));
}
.verbatim.is-anime .verbatim__trait { transition: transform .9s var(--ease); }
.verbatim__tete { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.75rem calc(-1 * var(--gout)); }
.verbatim__av { flex: none; width: 44px; height: 44px; }
.verbatim__av img { width: 44px; height: 44px; }
.verbatim__qui { margin-left: calc(var(--gout) - 44px - .9rem); line-height: 1.3; }
.verbatim__qui strong { display: block; font-size: .98rem; font-weight: 800; color: var(--encre); }
.verbatim__st { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--gris-t); }
/* « en ligne » : un point encre cerclé (le rouge se lisait « hors ligne ») */
.verbatim__st i { width: 8px; height: 8px; border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 2px var(--papier), 0 0 0 3px var(--gris-l); }
/* le canal : une simple mention, sans contour (une bulle cerclée se lirait comme un bouton) */
.verbatim__canal { margin-left: auto; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-t); }

.verbatim__fil { display: grid; gap: 1.35rem; }
.replique { position: relative; display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
.replique__qui { font-size: .8rem; font-weight: 800; letter-spacing: .01em; line-height: 1.35; color: var(--gris-t); }
.replique--out .replique__qui { color: var(--rouge); }
.replique--suite { margin-top: -.6rem; }
.replique--suite .msg { grid-column: 2; }
/* le nœud de chaque interlocuteur, sur le fil (centre à 12 px du haut : main.js s'y règle) */
.replique::before {
  content: ""; position: absolute; top: 6px; left: calc(var(--axe) - var(--gout) - 6px);
  width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
  background: var(--papier); border: 2px solid var(--encre); box-shadow: 0 0 0 4px var(--papier);
}
.replique--out::before { background: var(--rouge); border-color: var(--rouge); }
.replique--suite::before { display: none; }
.msg { max-width: 31rem; font-size: clamp(1.1rem, 1.42vw, 1.3rem); line-height: 1.42; letter-spacing: -.012em; color: var(--encre); }
.replique--in .msg { font-weight: 300; }
.replique--out .msg { font-weight: 500; }
/* les guillemets du dialogue : « » en français, “ ” en anglais */
.msg::before { content: "«\00a0"; color: var(--rouge); font-weight: 500; }
.msg::after { content: "\00a0»"; color: var(--rouge); font-weight: 500; }
:lang(en) .msg::before { content: "“"; }
:lang(en) .msg::after { content: "”"; }

/* « en train d'écrire » : posé par le script à l'endroit de la réplique qui arrive */
.typing { display: none; position: absolute; gap: 5px; padding: .7rem 0; }
.typing.is-on { display: flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.verbatim.is-anime .replique { visibility: hidden; }
.verbatim.is-anime .replique.is-on { visibility: visible; animation: replique .6s var(--ease) both; }
.verbatim.is-anime .replique.is-direct { animation: none; }

/* les repères posés sur le fil : la demande résolue, puis l'appel suivant */
.verbatim__mq {
  position: absolute; top: 50%; left: calc(var(--axe) - var(--gout) - 15px); width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 5px var(--papier);
}
.verbatim__mq svg { width: 16px; height: 16px; }
.verbatim__fin { position: relative; display: flex; align-items: center; min-height: 30px; margin-top: 2rem; font-size: .95rem; font-weight: 800; color: var(--encre); }
.verbatim__fin .verbatim__mq { background: var(--rouge); color: var(--blanc); }
.verbatim.is-anime .verbatim__fin { opacity: 0; }
.verbatim.is-anime .verbatim__fin.is-on { opacity: 1; transition: opacity .6s; }

.verbatim__appel {
  position: relative; display: flex; align-items: center; gap: 1rem; min-height: 68px; max-width: 27rem; margin-top: 1.4rem;
  padding: .8rem 1.2rem; border-radius: var(--bulle); background: var(--encre); color: var(--blanc);
}
.verbatim__appel .verbatim__mq { background: var(--papier); color: var(--encre); border: 2px solid var(--encre); }
.verbatim__appel p { line-height: 1.3; }
.verbatim__appel strong { display: block; font-size: .9rem; }
.verbatim__appel p span { font-size: .78rem; color: var(--gris-l); }
/* l'onde de l'appel : figée, elle ne bouge que pendant la conversation */
.onde { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; }
.onde i { width: 3px; height: 100%; border-radius: 2px; background: var(--gris-l); transform: scaleY(.45); transform-origin: center; }
.onde i:nth-child(2n) { transform: scaleY(.8); animation-delay: -.3s; }
.onde i:nth-child(3n) { transform: scaleY(.3); animation-delay: -.6s; }
.onde i:nth-child(4n) { transform: scaleY(1); animation-delay: -.85s; }
.onde i:nth-child(5n) { transform: scaleY(.6); animation-delay: -.15s; }
.verbatim.is-live .onde i { animation-name: onde; animation-duration: 1.15s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }

@media (max-width: 960px) {
  /* sur une colonne, le verbatim vient juste après l'action ; les garanties ensuite */
  .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "txt" "verbatim" "trust"; }
  .hero__in > .verbatim { margin-top: 3rem; }
  .hero__lead { max-width: 36rem; }
  .verbatim { max-width: 40rem; }
}
@media (max-width: 640px) {
  .verbatim { --gout: 42px; --axe: 15px; }
  .verbatim__trait { top: 38px; }
  .verbatim__av, .verbatim__av img { width: 30px; height: 30px; }
  .verbatim__qui { margin-left: calc(var(--gout) - 30px - .9rem); }
  .verbatim__canal { display: none; }
  .replique { grid-template-columns: minmax(0, 1fr); row-gap: .3rem; }
  .replique--suite { margin-top: -.5rem; }
  .replique--suite .msg { grid-column: 1; }
  .replique::before { top: 3px; }
  .verbatim__appel { padding: .75rem 1rem; gap: .75rem; }
  .onde { gap: 2px; }
  .onde i:nth-child(n+11) { display: none; }
}

/* ---------------------------------------------- l'offre (accueil) */
/* Un sommaire de magazine : le titre tient la colonne de gauche, les six titres à droite. */
.offre__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.offre__tete { position: sticky; top: calc(var(--hdr) + 2.5rem); }
.offre__tete .sec__head { margin-bottom: 1.5rem; }
.offre { border-bottom: 1px solid var(--filet); }
.offre li { border-top: 1px solid var(--filet); }
.offre__l { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; padding: 1.4rem 0 1.45rem; text-decoration: none; }
.offre h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.032em; transition: color .25s; }
.offre p { max-width: 44ch; margin-top: .55rem; font-size: 1rem; color: var(--gris-t); }
.offre__l > svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; color: var(--rouge); transition: transform .35s var(--ease); }
@media (hover: hover) {
  .offre__l:hover h3 { color: var(--rouge); }
  .offre__l:hover > svg { transform: translateX(5px); }
}
.offre__l:active h3 { color: var(--rouge); }
@media (max-width: 900px) {
  .offre__grille { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .offre__tete { position: static; }
}

/* -------------------------------------------------------------- méthode */
/* Les quatre étapes sur le fil : la numérotation porte l'ordre. */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.etape { position: relative; }
.etape:not(:last-child)::after {
  content: ""; position: absolute; top: 25px; left: 52px; width: calc(100% + 2rem - 52px); height: 2px; background: var(--rouge);
}
.etape__n {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; border: 2px solid var(--rouge); border-radius: 50%;
  background: var(--fond, var(--blanc)); color: var(--encre); font-size: 1.1rem; font-weight: 800;
}
.etape h3 { margin: 1.4rem 0 .55rem; font-size: 1.25rem; }
.etape p { max-width: 17rem; font-size: 1rem; color: var(--gris-t); }
@media (max-width: 900px) {
  /* le fil passe à la verticale */
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .etape { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 1.25rem; }
  .etape__n { grid-row: span 2; }
  .etape h3 { margin: .7rem 0 .4rem; }
  .etape p { max-width: 34rem; }
  .etape:not(:last-child)::after { top: 52px; left: 25px; width: 2px; height: calc(100% - 52px + 2.25rem); }
}

/* ------------------------------------------------------------ Portugal */
.nuit { position: relative; overflow: hidden; background: var(--encre); color: var(--gris-l); }
.nuit h2, .nuit h3 { color: var(--blanc); }
.pt__h { max-width: 15ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
/* le texte suit le titre sans attendre le milieu de la carte (centré, il laissait un vide de 170 px) */
.pt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.pt__txt > p:first-child { font-size: 1.15rem; line-height: 1.6; }
.pt__list { display: grid; gap: .95rem; margin: 1.75rem 0 2rem; }
.pt__list li { display: flex; align-items: flex-start; gap: .8rem; font-weight: 600; color: var(--papier); }
.pt__list svg { flex: none; width: 22px; height: 22px; margin-top: .12rem; color: var(--rouge-v); }
.pt__txt > .pt__note { padding-top: 1.35rem; border-top: 1px solid var(--filet-nuit); font-size: 1rem; color: var(--gris-l); }

/* la carte Porto -> Paris, Bruxelles, Luxembourg, Genève : fixe */
.carte { position: relative; margin: 0; }
.carte__cadre { position: relative; aspect-ratio: 800 / 741; container: carte / inline-size; }
.carte__cadre img, .carte__sur { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte__cadre img { -webkit-mask-image: radial-gradient(closest-side at 50% 50%, var(--encre) 72%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 50%, var(--encre) 72%, transparent 100%); }
.carte__sur { overflow: visible; }
/* le Portugal, redessiné hors du masque : entier et plein, au lieu de s'effacer vers l'encre */
.pays-pt { fill: var(--rouge-v); stroke: var(--encre); stroke-width: 1.1; stroke-linejoin: round; }
.arc { fill: none; stroke: var(--gris-l); stroke-width: 2.2; stroke-linecap: round; }
.ville__pt { fill: var(--blanc); stroke: var(--gris-l); stroke-width: 3; }
.carte__sur text { font: 800 17px var(--font); fill: var(--blanc); paint-order: stroke; stroke: var(--encre); stroke-width: 5px; stroke-linejoin: round; letter-spacing: -.01em; }
.porto__pt { fill: var(--rouge-v); stroke: var(--blanc); stroke-width: 3; }
.carte__sur .porto text { font-size: 20px; }
.carte__leg { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; justify-content: center; }
.puce { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--filet-nuit); border-radius: var(--bulle-s); font-size: .86rem; font-weight: 700; color: var(--blanc); }
.puce svg { width: 16px; height: 16px; color: var(--rouge-v); }
/* Les libellés sont en unités de la carte (800 de large) : plus la carte est étroite, plus il les faut
   grands pour rester lisibles. Paliers réglés sur la largeur de la carte elle-même (requêtes de conteneur) :
   jamais moins de 12,5 px à l'écran, de 320 px de large (téléphone) à la tablette et au portable. */
@container carte (max-width: 640px) { .carte__sur text { font-size: 20px; stroke-width: 5.5px; } .carte__sur .porto text { font-size: 22px; } }
@container carte (max-width: 520px) { .carte__sur text { font-size: 25px; stroke-width: 6.5px; } .carte__sur .porto text { font-size: 27px; } }
@container carte (max-width: 420px) { .carte__sur text { font-size: 30px; stroke-width: 7px; } .carte__sur .porto text { font-size: 32px; } }
@container carte (max-width: 340px) { .carte__sur text { font-size: 35px; stroke-width: 8px; } .carte__sur .porto text { font-size: 36px; } }
@media (max-width: 960px) {
  .pt { grid-template-columns: minmax(0, 1fr); }
  .carte { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Porto en deux photos, en bichromie, décalées comme sur une double page */
.pt__galerie { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pt__galerie figure { margin: 0; }
.pt__galerie figure + figure { margin-top: clamp(2rem, 5vw, 4rem); }
.pt__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--bulle-l); background: var(--graphite); }
.pt__galerie figure + figure .pt__photo { aspect-ratio: 1 / 1; }
.pt__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: url(#bichromie); }
.pt__galerie figcaption { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--gris-l); }
.pt__galerie figcaption::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: var(--rouge-v); }
@media (max-width: 700px) {
  .pt__galerie { grid-template-columns: minmax(0, 1fr); }
  .pt__galerie figure + figure { margin-top: 0; }
  .pt__galerie figure + figure .pt__photo { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------- bandeau d'appel */
/* Le seul aplat rouge du site : c'est le moment où l'on décroche. */
.appel { --appel-marge: clamp(4.5rem, 9vw, 7.5rem); position: relative; overflow: hidden; padding: var(--appel-marge) 0; background: var(--rouge); color: var(--blanc); }
.fil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fil path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
/* les deux câbles courent dans la marge du bas : ils ne croisent jamais le texte ni les boutons */
.appel .fil--appel { top: auto; height: var(--appel-marge); }
.appel .fil path { stroke: var(--blanc); opacity: .28; vector-effect: non-scaling-stroke; }
.appel .fil path + path { opacity: .16; }
.appel__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 4rem; align-items: end; }
.appel h2 { max-width: 15ch; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; color: var(--blanc); }
.appel p { max-width: 36rem; margin-top: 1.25rem; font-size: 1.18rem; color: var(--blanc); }
.appel__act { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.appel__act .btn { margin-bottom: .6rem; }
.appel__mail { display: inline-block; padding-block: .6rem; font-weight: 700; color: var(--blanc); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-decoration-thickness: 1px; text-underline-offset: .3em; }
@media (hover: hover) { .appel__mail:hover { text-decoration-color: var(--blanc); text-decoration-thickness: 2px; } }
@media (max-width: 820px) { .appel__in { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------- pied de page */
.ftr { background: var(--encre); color: var(--gris-l); font-size: .95rem; }
.ftr a { color: var(--papier-2); text-decoration: none; }
@media (hover: hover) { .ftr a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; } }
.ftr .btn--light { color: var(--encre); text-decoration: none; }
@media (hover: hover) { .ftr .btn--light:hover { background: var(--rouge); color: var(--blanc); text-decoration: none; } }
.ftr .btn--light:active { background: var(--rouge); color: var(--blanc); }
.ftr__top { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.ftr__brand img { width: 186px; height: auto; }
.ftr__brand p { max-width: 20rem; margin: 1.25rem 0 1.6rem; font-size: 1.05rem; font-weight: 300; line-height: 1.5; color: var(--papier); }
.ftr h2 { margin-bottom: 1rem; font-size: .95rem; letter-spacing: -.01em; color: var(--blanc); }
.ftr address { font-style: normal; }
/* Liens du pied : la zone cliquable déborde du texte (34 px de haut) sans changer l'espacement. */
.ftr__top ul { display: grid; gap: 0; }
.ftr__top li { padding-block: .3rem; }
.ftr__top li > a, .ftr__groupe li > a, .ftr__groupe-lien, .ftr__bottom a { display: inline-block; padding-block: .3rem; margin-block: -.3rem; }
.ftr__groupe { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; padding-block: 1.6rem; border-top: 1px solid var(--filet-nuit); }
.ftr__groupe-t { font-size: .9rem; font-weight: 800; color: var(--blanc); }
.ftr__groupe ul { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; }
.ftr__groupe .off { color: var(--gris); }
.ftr__groupe .off small { margin-left: .35rem; font-size: .78rem; }
.ftr__groupe-lien { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.ftr__groupe-lien svg { width: 15px; height: 15px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.4rem 1.6rem; border-top: 1px solid var(--filet-nuit); font-size: .85rem; }
.ftr__bottom ul { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
@media (max-width: 980px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__groupe-lien { margin-left: 0; } }
@media (max-width: 560px) {
  .ftr__top { grid-template-columns: 1fr; gap: 2rem; padding-top: 3.5rem; }
  /* les sociétés du groupe en colonne, comme les autres listes du pied (en ligne, elles se groupaient deux par deux au hasard) */
  .ftr__groupe ul { flex-direction: column; align-items: flex-start; }
}
/* Au doigt (sous 1000 px, comme FR / EN, et sur tout écran tactile : iPad couché, 1024 px et plus) : chaque lien
   du pied fait 44 px de haut, sans que les zones se chevauchent. */
@media (max-width: 1000px), (pointer: coarse) {
  .ftr__top li { padding-block: 0; }
  .ftr__top li:not(:has(> a)) { padding-block: .55rem; }
  .ftr__top li > a, .ftr__groupe li > a, .ftr__groupe-lien, .ftr__bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; margin-block: 0; }
  .ftr__groupe ul, .ftr__bottom ul { row-gap: 0; }
}

/* ------------------------------------------------- en-tête des pages */
.phero {
  position: relative; overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.75rem);
  background: var(--papier);
}
/* pages sans photo (légales, merci) : l'anneau et son câble, dans la moitié droite */
.phero .fil--page { left: auto; right: 0; width: 50%; }
/* le même trait plein que l'anneau des photos : à 60 %, le rouge virait au rose */
.phero .fil circle, .phero .fil path { fill: none; stroke: var(--rouge); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) { .phero .fil--page { display: none; } }
.phero .wrap { position: relative; z-index: 1; }
.fil-ariane { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-bottom: 2rem; font-size: .86rem; color: var(--gris-t); }
/* « Accueil » : 44 px de zone tactile ; la marge négative garde l'espacement d'avant */
.fil-ariane a { display: inline-block; padding: .7rem .4rem; margin: -.5rem -.4rem; color: var(--gris-t); text-decoration: none; }
@media (hover: hover) { .fil-ariane a:hover { color: var(--rouge); text-decoration: underline; } }
.fil-ariane li + li::before { content: "/"; margin-right: .4rem; color: var(--gris); }
.phero h1 { max-width: 16ch; margin: 0 0 1.35rem; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -.04em; }
.phero .lead { max-width: 38rem; font-size: clamp(1.12rem, 1.55vw, 1.3rem); line-height: 1.55; color: var(--graphite); }
.phero__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
/* la photo : un portrait en bichromie, en forme de bulle ; l'anneau du casque entoure son angle vif */
.phero__visuel { position: relative; }
.phero__photo { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--bulle-l); background: var(--papier-2); }
.phero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: url(#bichromie); }
.phero__photo--conseillere img { object-position: 62% 50%; }
.phero__photo--services img { object-position: 47% 50%; }
.phero__photo--equipe img { object-position: 28% 50%; }
.boucle { position: absolute; left: -64px; bottom: -86px; width: 420px; height: 150px; overflow: visible; }
.boucle circle, .boucle path { fill: none; stroke: var(--rouge); stroke-width: 2.5; stroke-linecap: round; }
.boucle rect { fill: var(--rouge); }
@media (max-width: 900px) {
  .phero__grille { grid-template-columns: minmax(0, 1fr); }
  .phero__visuel { max-width: 34rem; margin-bottom: 3rem; }
  .phero__photo { aspect-ratio: 16 / 10; }
  /* l'anneau reste autour de l'angle vif, mais entier dans la gouttière (à -46 px, le bord de l'écran le coupait) */
  .boucle { left: -24px; bottom: -66px; width: 300px; height: 107px; }
}

/* ---------------------------------------------------- page Services */
/* les canaux : une liste de mots, pas des pastilles qui auraient l'air de boutons */
.canaux { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--filet); }
.canaux__t { font-size: .95rem; font-weight: 700; color: var(--gris-t); }
.canaux ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.canaux li { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 700; color: var(--encre); }
.canaux svg { width: 18px; height: 18px; color: var(--rouge); }

.cat { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
/* le sommaire, sur le fil : le service en cours de lecture porte le nœud rouge */
.cat__nav { position: sticky; top: calc(var(--hdr) + 2rem); display: grid; border-left: 1px solid var(--gris-l); }
.cat__nav a { position: relative; display: block; padding: .6rem 0 .6rem 1.35rem; font-size: .93rem; font-weight: 600; line-height: 1.35; color: var(--gris-t); text-decoration: none; transition: color .25s; }
.cat__nav a::before {
  content: ""; position: absolute; left: -6.5px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--rouge); box-shadow: 0 0 0 4px var(--blanc); transform: scale(0); transition: transform .3s var(--ease);
}
@media (hover: hover) { .cat__nav a:not(.is-active):hover { color: var(--rouge); } }
.cat__nav a.is-active { color: var(--encre); font-weight: 800; }
.cat__nav a.is-active::before { transform: scale(1); }
.svcd { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: start; gap: 0 1.5rem; padding: 3rem 0; border-top: 1px solid var(--filet); scroll-margin-top: calc(var(--hdr) + 1.5rem); }
.svcd:first-child { padding-top: 0; border-top: 0; }
.ic { display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--rouge); }
.ic svg { width: 34px; height: 34px; }
.svcd h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.036em; line-height: 1.05; }
.svcd__lead { max-width: 36rem; margin: .85rem 0 1.6rem; font-size: clamp(1.15rem, 1.6vw, 1.32rem); font-weight: 300; line-height: 1.5; color: var(--encre); }
.coches { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.75rem; }
.coches li { display: flex; align-items: flex-start; gap: .65rem; font-size: 1rem; font-weight: 600; color: var(--encre); }
.coches svg { flex: none; width: 19px; height: 19px; margin-top: .15rem; color: var(--rouge); }
.svcd .lnk { margin-top: 1.5rem; }
/* Sous 920 px : le sommaire devient une rangée de pastilles qui défile, collée sous l'en-tête. */
@media (max-width: 920px) {
  .cat { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .cat__nav {
    top: var(--hdr); z-index: 5; display: flex; gap: .5rem; border-left: 0;
    margin: 0 calc(-1 * var(--gut)); padding: .7rem var(--gut);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    background: var(--blanc); border-bottom: 1px solid var(--filet);
  }
  .cat__nav::-webkit-scrollbar { display: none; }
  .cat__nav a { flex: none; display: flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--filet); border-radius: var(--bulle-s); white-space: nowrap; scroll-snap-align: start; scroll-margin-inline: var(--gut); }
  .cat__nav a::before { display: none; }
  .cat__nav a.is-active { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
  /* l'écart sous l'en-tête vient déjà de scroll-padding-top (html) : ici, seulement la hauteur de la rangée de
     pastilles. Les deux s'additionnent : avec « en-tête + 5,5rem », le titre arrivait 220 px sous les pastilles
     (contre-vérification du 30/10/2026 ; en paysage, plus de la moitié de l'écran). */
  .svcd { scroll-margin-top: 4.25rem; }
}
@media (max-width: 600px) { .svcd { grid-template-columns: minmax(0, 1fr); gap: .75rem; } .coches { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ FAQ */
/* Un entretien : le titre tient la colonne de gauche, questions et réponses à droite. */
.faq__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__grille .sec__head { position: sticky; top: calc(var(--hdr) + 2.5rem); margin-bottom: 0; }
.faq { border-bottom: 1px solid var(--filet); }
.faq details { border-top: 1px solid var(--filet); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.5rem; padding: 1.25rem 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.35; color: var(--encre); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { color: var(--rouge); } }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rouge-voile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C70C0F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40rem; padding: 0 3.5rem 1.5rem 0; font-size: 1.12rem; font-weight: 300; line-height: 1.55; color: var(--encre); }
@media (max-width: 900px) {
  .faq__grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq__grille .sec__head { position: static; margin-bottom: 2rem; }
}
@media (max-width: 560px) { .faq details p { padding-right: 0; } }

/* ------------------------------------------------------- page À propos */
/* la mission, citée comme une parole : grand guillemet rouge, voix légère */
.mission { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.mission__q { font-size: clamp(1.6rem, 3.1vw, 2.55rem); font-weight: 300; line-height: 1.24; letter-spacing: -.025em; }
.guillemet { display: block; height: .55em; margin-bottom: .35em; font-size: 3.4em; font-weight: 800; line-height: .9; letter-spacing: 0; color: var(--rouge); }
/* “ se dessine à hauteur des capitales, « à hauteur d'x : on le descend pour garder le même écart avec la citation */
:lang(en) .guillemet { transform: translateY(.38em); }
.mission__txt { padding-top: 1.4rem; border-top: 2px solid var(--rouge); font-size: 1.1rem; }
@media (max-width: 900px) { .mission { grid-template-columns: minmax(0, 1fr); } }

/* les valeurs : un titre, puis une liste de définitions */
.valeurs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.valeurs h2 { font-size: clamp(2.05rem, 4.3vw, 3.35rem); letter-spacing: -.036em; line-height: 1.04; }
.valeurs dl { margin: 0; border-bottom: 1px solid var(--filet); }
.valeurs dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .35rem 2rem; padding: 1.45rem 0; border-top: 1px solid var(--filet); }
.valeurs dt { font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; color: var(--encre); }
.valeurs dd { margin: 0; padding-top: .15rem; font-size: 1.05rem; color: var(--graphite); }
@media (max-width: 900px) { .valeurs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .valeurs dl > div { grid-template-columns: minmax(0, 1fr); } }

/* les sociétés du groupe : une liste, logo, nom, métier, lien */
.soeurs { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--filet); }
.soeurs li { border-top: 1px solid var(--filet); }
.soeur { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.15rem 0; text-decoration: none; }
.soeur__logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; padding: 8px; border: 1px solid var(--filet); border-radius: var(--bulle-s); background: var(--blanc); }
.soeur__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.soeur__id { flex: 1; min-width: 0; }
.soeur h3 { font-size: 1.02rem; letter-spacing: -.01em; transition: color .25s; }
.soeur__s { display: block; margin-top: .2rem; font-size: .88rem; color: var(--gris-t); }
.soeur__b { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 800; color: var(--rouge); }
.soeur__b svg { width: 14px; height: 14px; }
@media (hover: hover) { a.soeur:hover h3 { color: var(--rouge); } }
.soeur--off .soeur__b { color: var(--gris-t); font-weight: 700; }
@media (max-width: 860px) { .soeurs { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .soeur { flex-wrap: wrap; row-gap: .5rem; }
  .soeur__id { flex-basis: calc(100% - 52px - 1rem); }
  .soeur__b { margin-left: calc(52px + 1rem); }
}

/* -------------------------------------------------------- page Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.form { position: relative; padding: clamp(1.5rem, 3.5vw, 2.75rem); border: 1px solid var(--filet); border-radius: var(--bulle-l); background: var(--blanc); }
.form h2 { font-size: 1.65rem; }
.form__oblig { margin: .35rem 0 1.5rem; font-size: .86rem; color: var(--gris-t); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.champ { display: flex; flex-direction: column; gap: .45rem; }
.champ--plein { grid-column: 1 / -1; }
.champ label { font-size: .9rem; font-weight: 700; color: var(--encre); }
/* les champs aussi ont le coin de bulle */
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 3.1rem; padding: .85rem 1rem; border: 1.5px solid var(--gris); border-radius: var(--bulle-s);
  background: var(--blanc); font: 500 1rem var(--font); color: var(--encre);
  transition: border-color .2s, box-shadow .2s;
}
.champ select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px var(--rouge-voile); }
.champ textarea { min-height: 150px; resize: vertical; }
/* Saisie automatique (nom, e-mail, téléphone, entreprise : très courante au téléphone) : le navigateur peint le
   champ en bleu ou en jaune pâle, hors palette. Une ombre intérieure blanche le recouvre ; le halo de focus reste. */
.champ input:-webkit-autofill { -webkit-text-fill-color: var(--encre); box-shadow: inset 0 0 0 100px var(--blanc); }
.champ input:-webkit-autofill:focus { box-shadow: inset 0 0 0 100px var(--blanc), 0 0 0 4px var(--rouge-voile); }
/* erreurs en ligne (main.js §5) */
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.champ__err { font-size: .86rem; font-weight: 700; line-height: 1.4; color: var(--rouge-f); }
.form__act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.form__act .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.form__note { max-width: 26rem; font-size: .9rem; color: var(--gris-t); }
.form__note a { color: var(--rouge); }
.form__direct { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); font-size: .93rem; color: var(--gris-t); }
.form__direct a, .form__echec a { font-weight: 700; color: var(--rouge); }
/* liens pris dans une phrase : la marge intérieure d'un élément en ligne agrandit la zone de toucher sans toucher à l'interligne */
.form__note a, .form__direct a, .form__echec a, .legal a { padding-block: .4em; }
.form__echec { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--rouge); border-radius: var(--bulle-s); background: var(--rouge-voile); font-size: .93rem; color: var(--encre); }
.form__echec a { color: var(--rouge-f); }
.form__ok { display: none; padding: 1rem 0; }
.form__ok:focus { outline: none; }
.form__ok h3 { font-size: 1.45rem; }
.form__ok p { margin-top: .5rem; color: var(--gris-t); }
.form.is-sent .form__grid, .form.is-sent .form__act, .form.is-sent > h2, .form.is-sent .form__oblig,
.form.is-sent .form__echec, .form.is-sent .form__direct { display: none; }
.form.is-sent .form__ok { display: block; }
.miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* coordonnées : une liste, sans cartes */
.infos { display: grid; border-top: 2px solid var(--encre); }
.info { display: flex; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--filet); }
.info > svg { flex: none; width: 24px; height: 24px; margin-top: .15rem; color: var(--rouge); }
.info h2, .info h3 { margin-bottom: .3rem; font-size: .86rem; font-weight: 700; letter-spacing: 0; color: var(--gris-t); }
.info p, .info address { font-style: normal; font-size: 1.08rem; font-weight: 700; color: var(--encre); }
.info a { color: var(--encre); text-decoration: none; }
/* e-mail et téléphone : 44 px de zone tactile, sans changer l'espacement */
.info p > a { display: inline-block; padding-block: .65rem; margin-block: -.65rem; }
@media (hover: hover) { .info a:hover { color: var(--rouge); text-decoration: underline; } }
.info .lnk { margin-top: .35rem; font-size: .88rem; color: var(--rouge); }
@media (max-width: 920px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------- pages légales */
.legal { max-width: 38rem; }   /* environ 72 signes par ligne (46rem en donnait 85 à 100) */
.legal h2 { margin: 2.75rem 0 .8rem; font-size: 1.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-bottom: .8rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li::marker { color: var(--rouge); }
.legal a { color: var(--rouge); }
/* coupé en fin de ligne, chaque morceau garde son fond et ses marges (sinon « à » restait seul, collé au bord) */
.a-fournir { padding: .05rem .4rem; border-radius: 5px; background: var(--rouge-voile); color: var(--rouge-f); font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.maj { margin-top: 3rem; font-size: .88rem; color: var(--gris-t); }

/* ----------------------------------------------------------- page merci */
/* Affichée après l'envoi du formulaire sans JavaScript (pages merci du 02/11/2026). La fin de la conversation,
   comme celle du verbatim de l'accueil (mêmes repères, .verbatim__mq) : le fil rouge relie la demande reçue (repère
   rouge coché) à la réponse qui suit (repère encre cerclé). Fixe : le seul moment animé du site reste le verbatim. */
.suivi { --gout: 48px; --axe: 15px; position: relative; display: grid; gap: 2.5rem; max-width: 34rem; margin-top: 1.75rem; padding-left: var(--gout); }
.suivi::before { content: ""; position: absolute; left: calc(var(--axe) - 1px); top: 15px; bottom: 15px; width: 2px; background: var(--rouge); }
.suivi__pas { position: relative; display: flex; align-items: center; min-height: 30px; font-size: clamp(1.08rem, 1.45vw, 1.25rem); font-weight: 800; line-height: 1.35; letter-spacing: -.012em; color: var(--encre); }
.suivi__pas--fait .verbatim__mq { background: var(--rouge); color: var(--blanc); }
.suivi__pas:not(.suivi__pas--fait) .verbatim__mq { background: var(--papier); color: var(--encre); border: 2px solid var(--encre); }
.merci .hero__cta { margin-top: 2.75rem; }
/* « Une précision à ajouter ? » : le titre tient la colonne de gauche, les coordonnées (comme sur Contact) à droite */
.precision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.precision .sec__head { margin-bottom: 0; }
@media (max-width: 900px) { .precision { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ------------------------------------------------ page 404 commune du groupe */
/* Module partagé par les sites du groupe (assets/p404/, copié par le générateur depuis sa source commune) : seule la
   police est réglée ici ; couleurs du module (celles du groupe) inchangées. */
.p404 { --p404-police-titre: var(--font); --p404-police-texte: var(--font); }

/* -------------------------------------------- téléphone court, en portrait */
/* iPhone SE (375 × 667, environ 550 px utiles avec les barres de Safari), petits Android (360 × 640) : le menu
   faisait 526 px de haut et le bouton « Demander un devis » passait sous le bord ; liens un peu resserrés
   (54 px de haut au lieu de 79), le menu tient sans défiler, jusqu'au 320 × 460 d'un iPhone SE de 1re génération. */
@media (max-width: 1000px) and (max-height: 720px) and (orientation: portrait) {
  .js .nav { gap: 1.25rem; padding-block: .5rem 1.5rem; }
  .js .nav__list a { padding: .8rem 0; font-size: 1.45rem; line-height: 1.2; }
}

/* --------------------------------------------------- téléphone en paysage */
/* L'écran ne fait que 320 à 430 px de haut : l'en-tête collant (68 px, 18 % de l'écran) passe à
   56 px, le menu tient sans défiler, la rangée de pastilles des services ne colle plus (avec
   l'en-tête, elle mangeait un tiers de l'écran), et l'accroche de l'accueil laisse voir le chapeau. */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  :root { --hdr: 56px; }
  /* menu : liens resserrés, FR / EN et le bouton sur une même ligne, le tout sans défiler */
  .js .nav { flex-flow: row wrap; align-content: flex-start; gap: 1rem 1.25rem; padding-block: .5rem 1.25rem; }
  /* les quatre liens sur deux colonnes : le menu tient sans défiler même sur un iPhone SE couché (667 × 325 utiles,
     barres de Safari comprises) ou un 844 × 390 dont Safari garde ~340 px ; sur une colonne, il fallait défiler */
  .js .nav__list { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .js .nav__list a { padding: .55rem 0; font-size: 1.3rem; }
  .js .nav__lang { align-self: center; }
  .js .nav__cta { flex: 1; min-height: 3rem; }
  .hero { padding-top: 1.5rem; }
  .hero__h { font-size: 3rem; }
  .phero h1 { font-size: 2.75rem; }
  .cat__nav { position: static; }
  .svcd { scroll-margin-top: 0; }   /* rangée non collante : l'écart de html (scroll-padding-top) suffit */
}

/* ------------------------------------------------- tablette couchée, au doigt */
/* Plus de 1000 px de large mais un écran tactile (iPad couché, 1024 à 1366 px) : la mise en page d'ordinateur,
   avec des cibles de 44 px (liens de l'en-tête à 40 px, FR / EN à 34, sommaire des services à 39). */
@media (min-width: 1001px) and (pointer: coarse) {
  .nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .nav__lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 0; }
  .cat__nav a { padding-block: .8rem; }
}

/* ------------------------------------------------------------ animations */
/* Toutes au service du verbatim de l'accueil. */
@keyframes replique { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes onde { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

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