/* LEIMDI — feuille de style. Aucune dépendance.

   Direction : « la feuille de route ».
   Le site est imprimé comme une carte marine et un dossier de chargement :
   papier, encre et un seul rouge, celui de la route.
   - la carte marine : papier, graticule fin, cadre gradué à bandes alternées
     (l'échelle des latitudes), règle graduée sous l'en-tête ;
   - le dossier de chargement : manifeste à colonnes, formulaire en cases,
     photos en bichromie encre / papier (filtre #bichromie) ;
   - la bulle du logo (le repère : un cercle et sa pointe) pour les photos,
     les pastilles et les boutons ;
   - la route maritime en pointillé rouge : soulignement des liens, du titre
     de l'accueil, et le seul moment animé (la carte de l'accueil) ;
   - la porte d'un conteneur, en rouge, pour le bandeau d'appel.
   Couleurs : celles du groupe (palette de HAZI DISTRIBUTION), aucune autre
   teinte. Polices : Sora (titres, du 300 au 600) et Figtree (texte).
   Les noms sec--abysse et sec--ecume datent de la première palette :
   section encre, fond papier. */

/* ------------------------------------------------------------- polices */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-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;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/figtree-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;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette du groupe : celle de HAZI DISTRIBUTION, commune aux six sites */
  --rouge: #C70C0F;          /* la route : boutons, liens, pointillés, Moroni */
  --rouge-fonce: #A1090C;    /* survol des boutons rouges, erreurs, mentions « à fournir » */
  --rouge-vif: #E31419;      /* focus sur fond sombre — jamais en petit texte */
  --rouge-pale: rgba(199, 12, 15, .08);   /* fond teinté de rouge (transparence) */
  --encre: #141413;          /* titres, traits du cadre, section sombre, pied de page */
  --graphite: #2B2B29;       /* texte courant */
  --muted: #5E5E5B;          /* texte secondaire sur fond clair */
  --indice: #666563;         /* textes indicatifs des champs (5,9:1 sur blanc) */
  --gris: #878785;           /* traits seulement : bordures de champs, liaisons, graduations */
  --gris-clair: #C9C8C5;     /* filets sur papier ; texte sur fond sombre */
  --clair: #C9C8C5;          /* texte courant sur fond sombre */
  --filet: #DEDCD8;          /* filets sur blanc */
  --filet-clair: rgba(255, 255, 255, .18);
  --fond-2: #F5F4F2;         /* le papier */
  --fond-3: #EBE9E6;         /* le papier soutenu, les terres de la carte */
  /* anciens noms, gardés pour les schémas */
  --lagon: #878785;
  --lagon-pale: #EBE9E6;
  --lagon-clair: #C9C8C5;

  --titre: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1232px;
  --gut: clamp(1rem, 4vw, 2.25rem);
  /* gouttières gauche / droite : jamais sous l'encoche d'un iPhone tenu à
     l'horizontale (viewport-fit=cover : les fonds vont jusqu'aux bords, le
     contenu reste dans la zone sûre) */
  --gut-g: max(var(--gut), env(safe-area-inset-left));
  --gut-d: max(var(--gut), env(safe-area-inset-right));
  --hdr: 76px;
  /* la forme de repère du logo : un cercle dont la pointe est en bas à gauche */
  --repere: 999px 999px 999px 0;
  --repere-miroir: 999px 999px 0 999px;
  /* le pointillé de la route (des points ronds, comme sur la carte) */
  --points: radial-gradient(circle at 1.5px 1.5px, var(--rouge) 1.35px, transparent 1.7px);
  --points-gris: radial-gradient(circle at 1.5px 1.5px, var(--gris) 1.35px, transparent 1.7px);
}

/* --------------------------------------------------------------- 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); }
body {
  margin: 0; background: #fff; color: var(--graphite);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;   /* une adresse e-mail ou un mot très long ne fait jamais déborder la page */
}
/* Menu ouvert : la page derrière ne défile plus. overflow ne suffit pas sur les
   anciens iOS : main.js fige aussi le corps de page à sa position (position:
   fixed) et la rend à la fermeture. Seul <html> est en overflow: hidden : sur
   <body>, il ferait de lui la référence de l'en-tête collant, qui partirait
   avec la page. */
html.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--encre); font-family: var(--titre); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut-d) 0 var(--gut-g); }
.skip { position: absolute; left: -999px; top: .75rem; z-index: 300; padding: .7rem 1rem; background: var(--encre); color: #fff; font-weight: 700; }
.skip:focus { left: max(.75rem, env(safe-area-inset-left)); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 2px; }
.sec--abysse :focus-visible, .ftr :focus-visible { outline-color: var(--rouge-vif); }
.appel :focus-visible { outline-color: #fff; }
.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; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* les éléments du navigateur, aux couleurs du groupe */
html { scrollbar-color: var(--gris) var(--fond-2); accent-color: var(--rouge); caret-color: var(--rouge); }
/* Au doigt : la surbrillance du toucher est
   un voile rouge du groupe (blanc sur les fonds sombres et rouges) au lieu du
   bleu d'Android ; touch-action: manipulation supprime l'attente du double
   toucher sur les commandes, sans empêcher le zoom à deux doigts. */
html { -webkit-tap-highlight-color: rgba(199, 12, 15, .14); }
.sec--abysse, .appel, .ftr { -webkit-tap-highlight-color: rgba(255, 255, 255, .2); }
a, button, input, select, textarea, summary, label { touch-action: manipulation; }
::selection { background: var(--rouge); color: #fff; }
::placeholder { color: var(--indice); opacity: 1; }

/* les photos : bichromie encre / papier (filtre SVG #bichromie, dans chaque page) */
.photo { filter: url("#bichromie"); }

/* la pastille : pictogramme blanc sur encre, dans la forme de repère du logo */
.pastille { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--repere); background: var(--encre); color: #fff; }
.pastille svg { width: 26px; height: 26px; }

/* la forme de repère, pour les photos */
.repere { border-radius: var(--repere); overflow: hidden; }
.repere--miroir { border-radius: var(--repere-miroir); }
.repere img { width: 100%; height: 100%; object-fit: cover; }

/* la route maritime, en pointillé rouge, qui contourne une photo */
.route { pointer-events: none; color: var(--rouge); }
.route path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 8; }

/* ------------------------------------------------------------- boutons */
/* Le bouton est une étiquette de repère : arrondi, sauf le coin de la pointe. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.1rem; padding: .85rem 1.45rem .85rem 1.3rem; border: 0; border-radius: var(--repere);
  background: var(--rouge); color: #fff;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--rouge-fonce); } .btn:hover svg { transform: translateX(3px); } }
.btn:active { background: var(--rouge-fonce); }
.btn--encre:active { background: var(--graphite); }
.btn--blanc:active { background: var(--fond-2); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--encre { background: var(--encre); }
@media (hover: hover) { .btn--encre:hover { background: var(--graphite); } }
.btn--blanc { background: #fff; color: var(--encre); }
@media (hover: hover) { .btn--blanc:hover { background: var(--fond-2); } }
/* le lien : souligné par la route (points rouges), flèche */
.lnk {
  display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .4rem;
  font-weight: 700; color: var(--encre); text-decoration: none;
  background: var(--points) 0 100% / 7px 3px repeat-x;
}
.lnk svg { width: 17px; height: 17px; color: var(--rouge); transition: transform .3s var(--ease); }
/* zones tactiles de 44 px sans changer le dessin : la zone cliquable déborde du lien */
.lnk, .hdr__logo, .fil-ariane a { position: relative; }
.lnk::after, .hdr__logo::after { content: ""; position: absolute; inset: -6px -4px; }
.fil-ariane a::after { content: ""; position: absolute; inset: -12px -6px; }
@media (hover: hover) { .lnk:hover { color: var(--rouge); } .lnk:hover svg { transform: translateX(4px); } }
.sec--abysse .lnk { color: #fff; }
.suite { margin-top: 2.4rem; }

/* ------------------------------------------------------------- en-tête */
/* Sur papier, posé sur une règle graduée (traits tous les 8 px, repères tous les 48 px). */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--fond-2); transition: box-shadow .3s; }
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--encre), var(--encre)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 48px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--gris) 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat;
}
.hdr.is-solid { box-shadow: 0 14px 28px -26px rgba(20, 20, 19, .6); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--hdr); padding-bottom: 6px; }
.hdr__logo { display: inline-flex; align-items: center; text-decoration: none; }
.hdr__logo img { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a {
  display: inline-block; padding: .45rem 0 .55rem; font-weight: 600; font-size: .97rem; color: var(--encre); text-decoration: none;
  background: var(--points-gris) 0 100% / 7px 3px repeat-x; background-size: 0 3px; transition: background-size .35s var(--ease);
}
@media (hover: hover) { .nav__list a:hover { background-size: 7px 3px; } }
.nav__list a[aria-current="page"] { background-image: var(--points); background-size: 7px 3px; }
/* La langue : deux codes, la langue en cours marquée d'un repère rouge
   (« vous êtes ici », comme Moroni sur la carte). */
.nav__lang { display: flex; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.nav__lang a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2rem; min-height: 2rem; padding: 0 .3rem; color: var(--muted); text-decoration: none; }
@media (hover: hover) { .nav__lang a:hover { color: var(--encre); } }
.nav__lang a[aria-current="true"] { color: var(--encre); }
.nav__lang a[aria-current="true"]::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: var(--repere); background: var(--rouge); }
.nav__cta { min-height: 2.75rem; padding: .6rem 1.15rem .6rem 1.05rem; font-size: .93rem; }
/* Grande tablette tenue à l'horizontale (iPad de 1 180 à 1 366 px : le menu
   complet s'affiche, mais au doigt) : liens du menu et de la langue à 44 px,
   au lieu de 42 et 32 px. Sans effet à la souris. */
@media (pointer: coarse) and (min-width: 1041px) {
  .nav__list a { padding-block: .55rem .6rem; }
  .nav__lang a { min-width: 2.75rem; min-height: 2.75rem; }
}
/* le bouton du menu : une bulle encre, comme le logo */
.burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: var(--repere); background: var(--encre); cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }
@media (max-width: 1040px) {
  :root { --hdr: 68px; }
  .hdr__logo img { height: 38px; }
  .burger { display: block; }
  .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.8rem; padding: 1rem var(--gut-d) calc(2.5rem + env(safe-area-inset-bottom)) var(--gut-g); overflow-y: auto;
    overscroll-behavior: contain;   /* le défilement du menu ne se transmet pas à la page */
    /* le menu ouvert est une feuille de carte : papier et graticule fin, comme l'en-tête des pages */
    background-color: var(--fond-2);
    background-image:
      linear-gradient(rgba(20, 20, 19, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(20, 20, 19, .07) 1px, transparent 1px);
    background-size: 100% 128px, 128px 100%;
    background-position: 0 40px, calc(50% + 64px) 0;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 1rem 0; font-family: var(--titre); font-size: 1.85rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.15; border-bottom: 1px solid var(--gris-clair); background: none; }
  .nav__list a[aria-current="page"] { color: var(--rouge); background: none; }
  .nav__lang { align-self: flex-start; font-size: 1rem; }
  .nav__lang a { min-width: 2.75rem; min-height: 2.75rem; }   /* zone tactile de 44 px */
  .nav__cta { align-self: flex-start; min-height: 3.1rem; padding: .85rem 1.45rem .85rem 1.3rem; font-size: 1rem; }
  /* Sans JavaScript, pas de menu à ouvrir : les liens restent affichés sous le logo. */
  html:not(.js) .hdr { position: relative; }
  html:not(.js) .hdr__in { flex-wrap: wrap; height: auto; padding-block: .8rem 1.2rem; gap: .8rem 1.5rem; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .nav { position: static; height: auto; opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: 0; border: 0; overflow: visible; background: none; }
  html:not(.js) .nav__list { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; }
  html:not(.js) .nav__list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; font: 600 1rem var(--font); letter-spacing: 0; border: 0; }
  html:not(.js) .nav__cta { min-height: 2.75rem; padding: .6rem 1.05rem; font-size: .92rem; }
}
/* Téléphone à l'horizontale : l'en-tête descend à 56 px (au lieu de 68, soit
   14 % de l'écran au lieu de 17 %) et le menu se resserre sur deux colonnes,
   pour tenir sans défiler sous la barre du navigateur. */
@media (max-width: 1040px) and (max-height: 500px) {
  :root { --hdr: 56px; }
  .hdr__logo img { height: 32px; }
  .burger { width: 44px; height: 44px; }
  .burger span:first-child { top: 18px; }
  .burger span:last-child { top: 25px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 21.5px; }
  .js .nav { gap: 1rem; padding-top: .4rem; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .js .nav__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .js .nav__list a { padding: .6rem 0; font-size: 1.45rem; }
}

/* ------------------------------------------------------------ sections */
.sec { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sec--ecume { background: var(--fond-2); }
.sec--abysse { background: var(--encre); color: var(--clair); }
.sec--abysse h2, .sec--abysse h3 { color: #fff; }
.tete { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.tete h2, .duo__texte h2, .engagements h2, .expert h2 { margin: 0 0 1.2rem; font-size: clamp(2.1rem, 4.3vw, 3.45rem); line-height: 1.04; letter-spacing: -.04em; }
.tete p { max-width: 40rem; font-size: 1.12rem; color: var(--muted); }
.sec--abysse .tete p { color: var(--clair); }

/* -------------------------------------------- héros : la feuille de carte */
.hero { background: var(--fond-2); padding: clamp(1.25rem, 2.6vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero__feuille { position: relative; container-type: inline-size; }
/* Le titre est imprimé dans la mer ouverte de la carte (format large) : sa
   taille suit la largeur de la feuille, pour tomber toujours au même endroit. */
.hero__titre {
  position: absolute; z-index: 1; left: 4.4cqw; top: 4.1cqw; width: 51cqw; margin: 0;
  font-size: 4.35cqw; font-weight: 300; line-height: 1.04; letter-spacing: -.04em; color: var(--encre);
  text-wrap: wrap;
}
.hero__titre em {
  font-style: normal; font-weight: 600; letter-spacing: -.04em; white-space: nowrap;
  padding-bottom: .12em; background: var(--points) 0 100% / 9px 3px repeat-x;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__carte--compact { display: none; }
/* Feuille de 888 à 1060 px (écrans de 960 à ~1130 px) : le dessin est réduit
   aux trois quarts, et les petits libellés tomberaient sous 10 px. On les
   grossit un peu (unités du schéma ; !important l'emporte sur la taille écrite
   dans le SVG) : degrés, nord et provenance de 13 à 15, légende de 15 à 16,5,
   ports de 16 à 17. Les cadres et les liserés blancs les contiennent encore. */
@container (max-width: 1060px) {
  .hero__carte--large .dg-deg, .hero__carte--large .dg-nord, .hero__carte--large .dg-tag { font-size: 15px !important; }
  .hero__carte--large .dg-leg { font-size: 16.5px !important; }
  .hero__carte--large .dg-port { font-size: 17px !important; }
}
/* Feuille de 888 à 980 px (écrans de 960 à ~1 050 px, tablette à l'horizontale) :
   un cran de plus pour que degrés, nord et provenance restent à 12 px au moins. */
@container (max-width: 980px) {
  .hero__carte--large .dg-deg, .hero__carte--large .dg-nord, .hero__carte--large .dg-tag { font-size: 16.5px !important; }
}
.hero__note { display: grid; grid-template-columns: minmax(0, 38rem) auto; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-top: clamp(1.4rem, 2.6vw, 2rem); }
.hero__lead { font-size: clamp(1.06rem, 1.3vw, 1.16rem); color: var(--graphite); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
/* Sous 960 px : le titre, puis la carte compacte (à fond perdu sur téléphone),
   puis le chapeau et les actions. */
@media (max-width: 959px) {
  .hero__titre { position: static; width: auto; margin: .6rem 0 1.6rem; font-size: clamp(2.15rem, 8vw, 3.6rem); line-height: 1.05; }
  .hero__carte--large { display: none; }
  .hero__carte--compact { display: block; max-width: 620px; }
  .hero__note { grid-template-columns: 1fr; margin-top: 1.6rem; }
}
@media (max-width: 620px) { .hero__carte--compact { margin-left: calc(-1 * var(--gut-g)); margin-right: calc(-1 * var(--gut-d)); } }
/* Tablette (720–959 px) : la carte compacte à droite, sur toute sa colonne ; à
   gauche, comme la légende d'une carte, le titre puis le chapeau et les actions. */
@media (min-width: 720px) and (max-width: 959px) {
  .hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: auto 1fr; column-gap: clamp(1.75rem, 3.6vw, 2.75rem); }
  .hero__feuille { display: contents; }
  .hero__titre { grid-column: 1; grid-row: 1; margin: .4rem 0 0; font-size: clamp(2.1rem, 4.5vw, 2.7rem); line-height: 1.06; }
  .hero__carte--compact { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
  .hero__note { grid-column: 1; grid-row: 2; align-self: end; margin-top: 1.75rem; }
}

/* ------------------------------------------------- les deux métiers */
/* Deux planches décalées : le négoce en grand, les infrastructures plus bas. */
.metiers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.metier { display: block; color: inherit; text-decoration: none; }
.metier:nth-child(2) { margin-top: clamp(4rem, 13vw, 10rem); }
.metier__photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--repere); }
.metier:nth-child(2) .metier__photo { aspect-ratio: 5 / 4; border-radius: var(--repere-miroir); }
.metier__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .metier:hover .metier__photo img { transform: scale(1.035); } }
.metier__corps { display: grid; gap: .8rem; padding-top: 1.6rem; max-width: 34rem; }
.metier h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -.035em; transition: color .25s; }
@media (hover: hover) { .metier:hover h3 { color: var(--rouge); } }
.metier__plus {
  justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; padding-bottom: .4rem;
  font-weight: 700; color: var(--encre); background: var(--points) 0 100% / 7px 3px repeat-x;
}
.metier__plus svg { width: 18px; height: 18px; color: var(--rouge); transition: transform .3s var(--ease); }
@media (hover: hover) { .metier:hover .metier__plus svg { transform: translateX(4px); } }
@media (max-width: 820px) {
  .metiers { grid-template-columns: 1fr; gap: 3rem; }
  .metier:nth-child(2) { margin-top: 0; }
  .metier:nth-child(2) .metier__photo { aspect-ratio: 16 / 10; }
}

/* ------------------------------ les six familles : le manifeste (accueil) */
.manifeste { border-top: 2px solid var(--encre); }
.manifeste__tete, .famille { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1.25fr) 1.5rem; gap: 1.6rem; align-items: center; }
.manifeste__tete { padding: .75rem 0; border-bottom: 1px solid var(--encre); font: 700 .78rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.famille { padding: 1.05rem 0; border-bottom: 1px solid var(--gris-clair); color: inherit; text-decoration: none; transition: background-color .25s; }
.famille__t { display: contents; }
.famille .pastille { width: 46px; height: 46px; }
.famille .pastille svg { width: 22px; height: 22px; }
.famille h3 { font-size: clamp(1.2rem, 1.8vw, 1.42rem); font-weight: 500; transition: color .25s; }
.famille p { color: var(--muted); }
.famille > svg { width: 20px; height: 20px; color: var(--rouge); transition: transform .3s var(--ease); }
@media (hover: hover) { .famille:hover h3 { color: var(--rouge); } .famille:hover > svg { transform: translateX(4px); } }
@media (max-width: 760px) {
  .manifeste__tete { display: none; }
  .famille { grid-template-columns: 46px minmax(0, 1fr) 1.2rem; gap: 1rem; align-items: start; }
  .famille__t { display: block; }
  .famille p { margin-top: .2rem; font-size: 1rem; line-height: 1.5; }
  .famille > svg { margin-top: .8rem; }
}
@media (max-width: 420px) {
  .famille { grid-template-columns: 40px minmax(0, 1fr) 1.1rem; gap: .85rem; }
  .famille .pastille { width: 40px; height: 40px; }
  .famille .pastille svg { width: 20px; height: 20px; }
  .famille > svg { margin-top: .55rem; }
}

/* ---------------------------------------- texte + visuel, côte à côte */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.duo--haut { align-items: start; }
.duo__texte > p { max-width: 34rem; font-size: 1.1rem; }
.duo__texte > p + p { margin-top: 1rem; }
.duo__texte .lnk, .duo__texte .btn { margin-top: 2rem; }
.duo__visuel { max-width: 560px; width: 100%; justify-self: center; }
.puces { display: grid; gap: .7rem; margin-top: 1.8rem; }
.puces li { display: grid; grid-template-columns: 1.6rem 1fr; align-items: baseline; font-weight: 600; color: var(--encre); }
.puces li::before { content: ""; width: 11px; height: 11px; border-radius: var(--repere); background: var(--rouge); }
.sec--abysse .puces li { color: #fff; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* photo en forme de repère, avec la route qui la contourne */
.cadre { position: relative; width: min(100%, 460px); justify-self: center; }
.cadre .repere { aspect-ratio: 1 / 1; }
.cadre .route { position: absolute; inset: -9% -9% -9% -9%; width: 118%; height: 118%; }
/* sur téléphone, la photo se resserre un peu pour que la route qui la contourne
   ne sorte pas de l'écran (elle était coupée de 8 à 16 px sur le bord gauche) */
@media (max-width: 520px) { .cadre { width: min(100% - 2.4rem, 460px); } }

/* ---------------------------------------------- engagements (accueil) */
.engagements { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.engagements h2 { margin: 0; }
.engagements p { max-width: 40rem; font: 300 clamp(1.25rem, 2vw, 1.6rem)/1.45 var(--titre); letter-spacing: -.02em; color: var(--encre); }
@media (max-width: 860px) { .engagements { grid-template-columns: 1fr; } }

/* ------------------------------------- les services (Infrastructures) */
.services { border-top: 2px solid var(--encre); }
.service { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.3rem 0; border-bottom: 1px solid var(--filet); }
.service .pastille { width: 46px; height: 46px; }
.service .pastille svg { width: 22px; height: 22px; }
.service h3 { margin: .15rem 0 .3rem; font-size: 1.18rem; }
.service p { font-size: 1rem; color: var(--muted); }

/* ------------------------------------------------- le groupe, en liste */
.soeurs { max-width: 58rem; border-top: 2px solid var(--encre); }
.soeur { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .6rem 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--gris-clair); color: inherit; text-decoration: none; }
.soeur__logo { width: 48px; height: 48px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); object-fit: contain; }
.soeur h3 { font-size: 1.1rem; transition: color .25s; }
.soeur p { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.soeur__b { display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; font-weight: 700; color: var(--rouge); }
.soeur__b svg { width: 15px; height: 15px; }
@media (hover: hover) { a.soeur:hover h3 { color: var(--rouge); } }
@media (max-width: 600px) { .soeur { grid-template-columns: 48px 1fr; } .soeur__b { grid-column: 2; } }

/* ---------------------------------- bandeau d'appel : la porte du conteneur */
/* Tôle ondulée trapézoïdale (arêtes nettes : face ombrée, face avant, face
   éclairée, creux), longeron en haut et en bas, deux barres de fermeture à
   droite. Le texte est blanc sur le rouge #C70C0F (5,9:1 ; 5,6:1 sur la face
   éclairée, la plus claire). */
.appel { position: relative; overflow: hidden; padding: clamp(4.5rem, 8.5vw, 7rem) 0; background: var(--rouge); color: #fff; }
.appel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(20, 20, 19, .3), rgba(20, 20, 19, .3)) top / 100% 14px no-repeat,
    linear-gradient(rgba(20, 20, 19, .3), rgba(20, 20, 19, .3)) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg,
      rgba(20, 20, 19, .2) 0 5px, rgba(20, 20, 19, 0) 5px 19px, rgba(255, 255, 255, .07) 19px 24px, rgba(20, 20, 19, .08) 24px 38px);
}
.appel::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: rgba(255, 255, 255, .14); pointer-events: none; }
.appel__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; align-items: stretch; }
.appel h2 { max-width: 15ch; color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.02; }
.appel p { margin-top: 1.2rem; max-width: 34rem; font-size: 1.12rem; }
.appel__act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2.2rem; }
.appel__mail { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; overflow-wrap: anywhere; }
@media (hover: hover) { .appel__mail:hover { text-decoration-thickness: 3px; } }
.appel__porte { position: relative; margin-block: calc(14px - clamp(4.5rem, 8.5vw, 7rem)); }
.appel__porte span {
  position: absolute; top: 0; bottom: 0; width: 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(20, 20, 19, .45), rgba(255, 255, 255, .22) 45%, rgba(20, 20, 19, .4));
}
.appel__porte span:first-child { left: 30%; }
.appel__porte span:last-child { left: 72%; }
/* les ferrures des barres, aux deux tiers de la hauteur */
.appel__porte span::before, .appel__porte span::after {
  content: ""; position: absolute; left: -7px; width: 26px; height: 18px; border-radius: 3px;
  background: linear-gradient(rgba(20, 20, 19, .42), rgba(20, 20, 19, .28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.appel__porte span::before { top: 22%; }
.appel__porte span::after { top: 66%; }
@media (max-width: 820px) { .appel__in { grid-template-columns: 1fr; } .appel__porte { display: none; } }

/* --------------------------------------------------------- pied de page */
/* Le bord supérieur reprend l'échelle du cadre de la carte. */
.ftr { position: relative; background: var(--encre); color: var(--clair); font-size: .95rem; }
.ftr::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--fond-2) 0 36px, var(--encre) 36px 72px); border-bottom: 1px solid var(--fond-2); }
.ftr a { color: #fff; text-decoration: none; }
@media (hover: hover) { .ftr a:hover { color: var(--gris-clair); } }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.ftr__brand img { width: 163px; height: auto; }
.ftr__brand p { max-width: 22rem; margin: 1.4rem 0 1.6rem; font: 300 1.4rem/1.3 var(--titre); color: #fff; letter-spacing: -.035em; }
.ftr h2 { margin-bottom: 1.1rem; font: 700 .76rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gris-clair); }
.ftr ul { display: grid; gap: .2rem; }
/* zones tactiles : 28 px à la souris, 44 px au doigt */
.ftr li > a { display: inline-flex; align-items: center; min-height: 1.75rem; }
@media (max-width: 760px), (pointer: coarse) { .ftr li > a { min-height: 2.75rem; } .ftr ul { gap: 0; } }
.ftr address { font-style: normal; }
.ftr .btn { color: #fff; }
@media (hover: hover) { .ftr .btn:hover { color: #fff; } }
.ftr__groupe { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; padding-block: 1.5rem; border-top: 1px solid var(--filet-clair); }
.ftr__groupe-t { font: 700 .76rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gris-clair); }
.ftr__groupe ul { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.ftr__groupe-lien { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; 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.3rem calc(1.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--filet-clair); font-size: .85rem; }
.ftr__bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.ftr__bottom p { align-self: center; }
@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 1fr; gap: 2rem 1.2rem; padding-top: 3.5rem; }
  .ftr__brand, .ftr__top > div:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------- en-tête des pages : un coin de carte */
/* Papier, graticule fin, cadre gradué en pied. */
.phero {
  position: relative; overflow: hidden; padding: clamp(2.6rem, 5.5vw, 4.4rem) 0 clamp(3.4rem, 6.5vw, 5.2rem);
  background-color: var(--fond-2);
  background-image:
    linear-gradient(rgba(20, 20, 19, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 19, .07) 1px, transparent 1px);
  background-size: 100% 128px, 128px 100%;
  background-position: 0 40px, calc(50% + 64px) 0;
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--encre) 0 36px, #fff 36px 72px);
  border-top: 1px solid var(--encre);
}
.phero > .wrap { position: relative; }
.fil-ariane { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.fil-ariane a { color: var(--encre); text-decoration: none; background: var(--points-gris) 0 100% / 7px 3px repeat-x; padding-bottom: 3px; }
@media (hover: hover) { .fil-ariane a:hover { background-image: var(--points); } }
.fil-ariane li + li::before { content: "/"; margin-right: .5rem; color: var(--gris); }
.phero h1 { max-width: 17ch; margin: 0 0 1.3rem; font-size: clamp(2.5rem, 5.3vw, 4.35rem); font-weight: 300; line-height: 1.03; letter-spacing: -.04em; }
.phero .lead { max-width: 40rem; font-size: clamp(1.06rem, 1.4vw, 1.17rem); color: var(--graphite); }
.phero__grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.phero__photo { position: relative; margin: 0; width: min(100%, 380px); justify-self: end; }
.phero__photo .repere { aspect-ratio: 1 / 1; }
.phero__photo .route { position: absolute; inset: -8%; width: 116%; height: 116%; }
@media (max-width: 900px) {
  .phero__grille { grid-template-columns: 1fr; }
  .phero__photo { justify-self: start; width: min(78%, 300px); margin-left: 6%; }
  .phero__photo--large { display: none; }   /* Contact : le formulaire d'abord */
}

/* ---------------------------------------- page Produits / Infrastructures */
.sommaire {
  position: sticky; top: calc(var(--hdr) + .8rem); z-index: 5; display: flex; gap: .2rem; width: fit-content; max-width: 100%;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding: .3rem; overflow-x: auto; scrollbar-width: none;
  background: #fff; border: 1px solid var(--encre); box-shadow: 0 14px 30px -26px rgba(20, 20, 19, .6);
}
.sommaire::-webkit-scrollbar { display: none; }
/* au bout du sommaire, le glissement du doigt ne se transmet pas à la page
   (sur certains navigateurs Android, il pouvait déclencher « page précédente ») */
.sommaire { overscroll-behavior-x: contain; }
@media (max-height: 500px) { .sommaire { position: static; } }   /* en-tête + sommaire collants mangeraient un tiers de l'écran */
.sommaire a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--repere); font-weight: 600; font-size: .93rem; color: var(--encre); text-decoration: none; transition: background-color .25s, color .25s; }
@media (hover: hover) { .sommaire a:hover { background: var(--fond-2); } }
.sommaire a.is-active { background: var(--encre); color: #fff; }
.svcd { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--gris-clair); scroll-margin-top: calc(var(--hdr) + 5rem); }
.svcd:first-child { border-top: 0; padding-top: 0; }
.svcd--inverse .svcd__visuel { order: -1; }
.svcd h2 { margin: 1.2rem 0 .8rem; font-size: clamp(1.95rem, 3.5vw, 2.8rem); letter-spacing: -.04em; }
.svcd__lead { max-width: 38rem; font-size: 1.12rem; }
.svcd .coches { margin-top: 1.6rem; }
/* famille sans photo : texte à gauche, contenu à droite, sans faux visuel */
.svcd--texte { grid-template-areas: "texte liste" "lien liste"; align-items: start; row-gap: 0; padding-block: clamp(2rem, 4vw, 3rem); }
.svcd--texte .svcd__texte { grid-area: texte; }
.svcd--texte .coches { grid-area: liste; align-self: center; margin-top: 0; padding: .4rem 0 .4rem clamp(1.2rem, 3vw, 2.2rem); border-left: 1px solid var(--encre); }
.svcd--texte .lnk { grid-area: lien; justify-self: start; }
/* le contenu de chaque famille : des lignes de manifeste */
.coches { display: grid; }
.coches li { display: grid; grid-template-columns: 1.6rem 1fr; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--filet); font-weight: 600; color: var(--encre); }
.coches li:first-child { border-top: 1px solid var(--filet); }
.coches li::before { content: ""; width: 10px; height: 10px; border-radius: var(--repere); background: var(--rouge); }
.svcd .lnk { margin-top: 1.8rem; }
.svcd__visuel { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.svcd__visuel.repere { aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
  .svcd { grid-template-columns: 1fr; }
  .svcd--inverse .svcd__visuel { order: 0; }
  .svcd__visuel.repere { aspect-ratio: 16 / 11; max-width: none; }
  .svcd--texte { grid-template-areas: "texte" "liste" "lien"; row-gap: 1.6rem; }
  .svcd--texte .coches { padding: 0; border-left: 0; }
  .svcd--texte .lnk { margin-top: 0; }
}

/* ------------------------------------------- du quai au conteneur (accueil) */
/* Section encre : le texte à gauche, la planche de photos à droite. */
.terrain-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.terrain-grille .tete { position: sticky; top: calc(var(--hdr) + 2rem); margin-bottom: 0; }
.terrain { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
.terrain__photo { margin: 0; }
.terrain__photo:first-child { grid-row: span 2; }
.terrain__photo .repere { aspect-ratio: 1 / 1; }
.terrain__photo:first-child .repere { aspect-ratio: 3 / 4; }
.terrain__photo figcaption { display: flex; align-items: flex-start; gap: .6rem; margin-top: .9rem; line-height: 1.35; font: 700 .8rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--clair); }
.terrain__photo figcaption::before { content: ""; flex: none; width: 24px; height: 3px; margin-top: .45em; background: var(--points) 0 0 / 7px 3px repeat-x; }
@media (max-width: 860px) {
  .terrain-grille { grid-template-columns: 1fr; }
  .terrain-grille .tete { position: static; margin-bottom: 1rem; }
}
@media (max-width: 520px) {
  .terrain { grid-template-columns: 1fr 1fr; }
  .terrain__photo:first-child { grid-row: auto; grid-column: 1 / -1; }
  .terrain__photo:first-child .repere { aspect-ratio: 4 / 5; }
}

/* l'expert et sa citation (l'ancien bloc « Pourquoi nous choisir » y est fondu) */
.expert { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.expert__portrait { margin: 0; width: min(100%, 320px); justify-self: center; }
.expert__portrait .repere { aspect-ratio: 4 / 5; }
.expert__p { max-width: 38rem; font-size: 1.1rem; }
.citation { margin: 2rem 0 0; padding: 1.6rem 0 0; border-top: 2px solid var(--encre); }
.citation p { font: 300 clamp(1.25rem, 2.1vw, 1.6rem)/1.42 var(--titre); letter-spacing: -.025em; color: var(--encre); }
.citation footer { display: flex; flex-direction: column; margin-top: 1.2rem; }
.citation footer strong { font: 600 1.05rem var(--titre); color: var(--encre); }
.citation footer span { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .expert { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ FAQ */
.faq-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-grille .tete { position: sticky; top: calc(var(--hdr) + 2rem); }
.faq details { border-bottom: 1px solid var(--gris-clair); }
.faq details:first-child { border-top: 2px solid var(--encre); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font: 500 1.14rem/1.35 var(--titre); letter-spacing: -.02em; color: var(--encre); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--repere); background: var(--fond-3); font: 700 1.2rem/1 var(--font); color: var(--encre); transition: background-color .3s, color .3s; }
.faq details[open] summary::after { content: "−"; background: var(--rouge); color: #fff; }
.faq details p { padding: 0 0 1.3rem; max-width: 44rem; color: var(--muted); }
@media (max-width: 860px) { .faq-grille { grid-template-columns: 1fr; } .faq-grille .tete { position: static; } }

/* -------------------------------------------------------- page Contact */
/* Le formulaire est un document de chargement : des cases à filets, chaque
   case porte son intitulé ; la case active s'encadre de rouge. */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.form { position: relative; background: #fff; border: 1px solid var(--encre); border-top-width: 3px; }
.form > h2 { padding: 1.4rem 1.2rem 0; font-size: 1.8rem; letter-spacing: -.04em; }
.form__oblig { margin: .35rem 0 1.2rem; padding: 0 1.2rem; font-size: .85rem; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--encre); }
.champ { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .75rem 1.2rem .8rem; border-bottom: 1px solid var(--gris); border-right: 1px solid var(--gris); transition: box-shadow .2s; }
.champ:nth-child(2n), .champ--plein { border-right: 0; }
.champ--plein { grid-column: 1 / -1; }
.champ label { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 2.75rem; padding: .3rem 0; border: 0; border-radius: 0; background: transparent;
  font: 500 1.05rem var(--font); color: var(--encre);
}
.champ select { appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer; background: 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.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; }
.champ:focus-within { box-shadow: inset 0 0 0 2px var(--rouge); }
.champ textarea { min-height: 140px; resize: vertical; }
/* erreurs de saisie, sous le champ concerné */
.champ:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--rouge-fonce); background: var(--rouge-pale); }
.champ:focus-within:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 4px var(--rouge-fonce); }
.champ__err { display: flex; gap: .4rem; font-size: .88rem; font-weight: 600; line-height: 1.4; color: var(--rouge-fonce); }
.champ__err::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; margin-top: .05rem; border-radius: 50%; background: var(--rouge-fonce); color: #fff; font-size: .75rem; }
.form__act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.4rem 1.2rem 1.5rem; }
.form__note, .form__repli { max-width: 26rem; font-size: .9rem; color: var(--muted); }
.form__repli { flex-basis: 100%; max-width: none; font-size: 1rem; color: var(--graphite); }
.form__note a, .form__repli a, .form__erreur a { color: var(--rouge); font-weight: 600; }
.form__erreur { margin: 0 1.2rem 1.2rem; padding: .9rem 1rem; background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 600; }
.form__erreur a { color: var(--rouge-fonce); }
.form__erreur[hidden] { display: none; }
.form__ok { display: none; padding: 1.6rem 1.2rem; }
.form__ok:focus { outline: none; }
.form__ok h3 { font-size: 1.5rem; }
.form__ok p { margin-top: .4rem; }
.form.is-sent .form__grid, .form.is-sent .form__act, .form.is-sent > h2, .form.is-sent .form__oblig, .form.is-sent .form__erreur { display: none; }
.form.is-sent .form__ok { display: block; }
.miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* les coordonnées : une liste simple, séparée par des filets */
.infos { display: grid; border-top: 2px solid var(--encre); }
.info { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--filet); }
.info > span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--repere); background: var(--encre); color: #fff; }
.info > span svg { width: 20px; height: 20px; }
.info h2, .info h3 { margin-bottom: .2rem; font: 600 .92rem var(--font); letter-spacing: 0; color: var(--muted); }
.info p, .info address { font: 500 1.08rem/1.4 var(--titre); font-style: normal; letter-spacing: -.01em; color: var(--encre); overflow-wrap: anywhere; }
.info a { position: relative; color: var(--encre); text-decoration: none; background: var(--points) 0 100% / 7px 3px repeat-x; padding-bottom: 4px; }
/* zone tactile de 44 px sans changer le dessin */
.info a::after { content: ""; position: absolute; inset: -9px -4px; }
@media (hover: hover) { .info a:hover { color: var(--rouge); } }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .champ { border-right: 0; padding-inline: 1rem; }
  .form > h2, .form__oblig, .form__act { padding-inline: 1rem; }
}

/* ----------------------------------------------------- pages légales */
.legal { max-width: 48rem; }
.legal h2 { margin: 2.6rem 0 .8rem; font-size: 1.65rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-bottom: .8rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--rouge); }
.a-fournir { padding: .05rem .45rem; background: var(--rouge-pale); color: var(--rouge-fonce); font-weight: 700; }
.maj { margin-top: 3rem; font-size: .85rem; color: var(--muted); }

/* ------------------------------------- page merci : l'accusé de réception */
/* L'en-tête est un coin de carte (.phero : papier, graticule, cadre gradué en
   pied). À droite, l'accusé de réception, en cases à filets comme le
   formulaire (un document de chargement), avec le trajet de la demande :
   envoyée (point encre), arrivée (le repère rouge et son anneau, comme Moroni
   sur la carte), puis notre proposition, à venir (route grise, repère vide). */
.recu__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.recu .hero__cta { margin-top: 2.2rem; }
.bordereau { background: #fff; border: 1px solid var(--encre); border-top-width: 3px; }
.bordereau__t { padding: .95rem 1.2rem; border-bottom: 1px solid var(--encre); font: 700 .8rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.trajet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.5rem .4rem 1.3rem; border-bottom: 1px solid var(--encre); }
.trajet li { position: relative; display: grid; justify-items: center; align-content: start; gap: .7rem; padding: 0 .4rem; text-align: center; }
/* la route d'une escale à la suivante : rouge (parcourue), puis grise (à venir) */
.trajet li + li::before {
  content: ""; position: absolute; top: 10.5px; left: calc(-50% + 1.25rem); right: calc(50% + 1.25rem); height: 3px;
  background: var(--points) 0 0 / 7px 3px repeat-x;
}
.trajet .trajet__avenir::before { background-image: var(--points-gris); }
.trajet__marque { display: grid; place-items: center; width: 24px; height: 24px; }
.trajet__marque::before { content: ""; width: 12px; height: 12px; border-radius: var(--repere); background: var(--encre); }
.trajet__ici .trajet__marque::before { width: 18px; height: 18px; background: var(--rouge); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--rouge); }
.trajet__avenir .trajet__marque::before { background: #fff; box-shadow: inset 0 0 0 2px var(--gris); }
.trajet__nom { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--encre); }
.trajet__avenir .trajet__nom { color: var(--muted); }
.bordereau__cases { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.case { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1.2rem .9rem; border-bottom: 1px solid var(--gris); }
.case:nth-child(odd):not(.case--plein) { border-right: 1px solid var(--gris); }
.case--plein { grid-column: 1 / -1; }
.case:last-child { border-bottom: 0; }
.case dt { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.case dd { margin: 0; font-weight: 500; font-size: 1.05rem; line-height: 1.5; color: var(--encre); }
.case a { color: var(--rouge); font-weight: 600; overflow-wrap: anywhere; }
/* l'adresse e-mail passe à la ligne entière plutôt que coupée à son trait d'union */
.case a[href^="mailto:"] { display: inline-block; }
.sec--court { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.recu__coord { margin: 0 0 1.6rem; font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -.04em; }
/* Les coordonnées sur deux colonnes, puis sur une ligne à partir de 1 200 px :
   chaque colonne garde au moins la largeur de son contenu (e-mail et adresse
   jamais coupés ; il leur faut environ 1 090 px en tout). */
.infos--ligne { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (min-width: 1200px) { .infos--ligne { grid-template-columns: repeat(4, minmax(max-content, 1fr)); } }
@media (max-width: 900px) { .recu__grille { grid-template-columns: 1fr; } .bordereau { max-width: 36rem; } }
@media (max-width: 560px) {
  .infos--ligne { grid-template-columns: 1fr; }
  .bordereau__t, .case { padding-inline: 1rem; }
  .bordereau__cases { grid-template-columns: 1fr; }
  .case:nth-child(odd):not(.case--plein) { border-right: 0; }
}

/* ---------------------------------------------- 404 : le module commun */
/* La page 404 est le module commun aux sites du groupe (feuille et script
   dans /assets/p404/, chargés après cette feuille ; couleurs du groupe par
   défaut). Ici, ses polices : Sora pour les titres, Figtree pour le texte. */
.p404 { --p404-police-titre: var(--titre); --p404-police-texte: var(--font); }

/* ----------------------------------------------------------- schémas */
.diagramme { margin: 0; }
.diagramme svg { width: 100%; height: auto; }

/* ------------------------------------------------------------ animations */
/* Le contenu est visible par défaut, avec ou sans JavaScript. Le seul moment
   animé est la route tracée jusqu'à Moroni sur la carte de l'accueil. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
