/*
 * Rubix Telecom — feuille de style du site.
 *
 *  1. Polices
 *  2. Jetons
 *  3. Base
 *  4. Outils (conteneur, sections, titres, surtitres, filigranes)
 *  5. Composants (pictogrammes, boutons, photo, duo, accordéon)
 *  6. En-tête et navigation
 *  7. Pied de page
 *  8. Accueil (héros, atouts, services, internet d’entreprise, équipe, partenaires)
 *  9. Mouvement (fondu entre les pages, vocabulaire data-anime, vie ambiante, ouverture du héros, garde-fou)
 * 10. Impression
 */

/* ==========================================================================
   1. Polices
   ========================================================================== */

/* Ubuntu : 300 pour les très grands titres, 400 pour les titres, 500 pour les intertitres et les chiffres.
   Les jeux « latin-ext » sont déclarés avant les jeux « latin » : à plage commune, le dernier déclaré l’emporte. */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-300-normal.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: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-400-normal.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: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-500-normal.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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.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: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-italic.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;
}

/* ==========================================================================
   2. Jetons
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --marque: #98BD18;
  --marque-vif: #A9CE2B;
  --marque-soutenu: #74950F;        /* vert soutenu : pastilles et traits sur fond clair */
  --marque-texte: #5A7805;          /* vert assombri : petits textes sur fond clair (5,1:1 sur blanc, 4,5:1 sur l’aplat pâle) */
  --marque-surtitre: #5F7F06;       /* vert plus franc des surtitres et des accroches, sur fond blanc (4,6:1) */
  --marque-pale: #EFF5DA;           /* aplat très clair : plaques des pictogrammes, fonds de photo */
  --nuit: #091F2C;
  --nuit-profond: #061722;

  /* Neutres */
  --blanc: #fff;
  --gris-clair: #F9F9F9;
  --mur: #FDFDFD;                   /* blanc du mur de la photo du héros */
  --filet: #E3E8EC;
  --filet-sombre: rgba(255, 255, 255, .13);
  --texte: #333;
  --texte-doux: #4D5E6B;            /* gris-bleu profond du texte courant (6,7:1 sur blanc) */
  --texte-discret: #5F7080;         /* numérotation, légendes (5:1 sur blanc) */
  --gris-bleu: #77899C;
  --texte-sur-sombre: #C9D4DB;

  /* Typographie */
  --police-titre: "Ubuntu", "Trebuchet MS", "Segoe UI", sans-serif;
  --police-texte: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --corps-h1: clamp(2.125rem, min(5.6vw, 9.6vh), 4.875rem);
  --corps-h2: clamp(1.875rem, 1.2rem + 2.5vw, 3.25rem);
  --corps-h3: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem);
  --corps-texte: clamp(1rem, .96rem + .18vw, 1.0625rem);
  --corps-petit: .9375rem;
  --corps-mini: .8125rem;
  --approche-titre: -.028em;
  --approche-capitales: .2em;

  /* Mesures */
  --conteneur: 75rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --espace-section: clamp(4.5rem, 2.5rem + 8vw, 10rem);
  --entete-h: 4rem;
  --rayon: 14px;
  --rayon-petit: 8px;
  --rayon-bouton: 4px;
  --trait: 1.5px;                   /* épaisseur des pictogrammes */

  /* Ombres : larges, douces, en plusieurs couches */
  --ombre-douce: 0 1px 1px rgba(9, 31, 44, .03), 0 10px 24px -14px rgba(9, 31, 44, .1), 0 30px 60px -36px rgba(9, 31, 44, .14);
  --ombre-portee: 0 2px 4px rgba(9, 31, 44, .03), 0 18px 36px -18px rgba(9, 31, 44, .16), 0 54px 90px -42px rgba(9, 31, 44, .26);
  --ombre-photo: 0 2px 6px rgba(9, 31, 44, .04), 0 24px 44px -28px rgba(9, 31, 44, .18), 0 56px 90px -60px rgba(9, 31, 44, .2);

  /* Mouvement */
  --courbe: cubic-bezier(.22, 1, .36, 1);          /* entrées et réponses : départ vif, longue arrivée */
  --courbe-douce: cubic-bezier(.45, 0, .15, 1);    /* masques, tracés, allers-retours */
  --duree: .8s;                                    /* entrée d’un bloc */
  --duree-masque: .9s;                             /* image révélée par un masque */
  --duree-trace: 1s;                               /* tracé qui se dessine */
  --duree-survol: .22s;                            /* réponse immédiate : couleur, élévation */
  --duree-glisse: .45s;                            /* ce qui glisse ou s’étire en réponse */
  --pas: 70ms;                                     /* décalage entre deux éléments d’une cascade */
  --pas-ligne: 90ms;                               /* décalage entre deux lignes d’un titre */
  --entete-recul: .5rem;                           /* hauteur que perd l’en-tête en se condensant */
  --focus: var(--nuit);

  /* Le trait fin terminé par une pastille annulaire (motif du logo), seul ou centré */
  --trait-pastille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='9' fill='none' stroke='%2398BD18'%3E%3Cpath d='M0 4.5h38.5'/%3E%3Ccircle cx='43' cy='4.5' r='3.25' stroke-width='1.5'/%3E%3C/svg%3E");
  --trait-pastille-centre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='9' fill='none' stroke='%2398BD18'%3E%3Cpath d='M0 4.5h38.5M49.5 4.5H88'/%3E%3Ccircle cx='44' cy='4.5' r='3.25' stroke-width='1.5'/%3E%3C/svg%3E");
}

@media (min-width: 75em) {
  :root { --entete-h: 5.25rem; --entete-recul: 1rem; }
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete-h) + 1rem);
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte-doux);
  font-family: var(--police-texte);
  font-size: var(--corps-texte);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--nuit);
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: var(--approche-titre);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
strong { color: var(--nuit); font-weight: 600; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

::selection { background: var(--marque); color: var(--nuit); }

.visuellement-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .85rem 1.25rem;
  background: var(--marque);
  color: var(--nuit);
  font-size: var(--corps-petit);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rayon-bouton);
  transform: translateY(-200%);
}
.evitement:focus { transform: none; }
/* Le contenu ne reçoit le focus que par un lien qui y mène : pas de contour autour de la page entière */
main:focus { outline: none; }

.sur-sombre {
  --focus: var(--blanc);
  color: var(--texte-sur-sombre);
}
.sur-sombre h1, .sur-sombre h2, .sur-sombre h3, .sur-sombre strong { color: var(--blanc); }

/* ==========================================================================
   4. Outils
   ========================================================================== */

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--conteneur));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--espace-section);
  overflow-x: clip;
}
.section--grise { background: var(--gris-clair); }

/* --- Tête de section ; centrée, elle se place sous un trait à pastille --- */

.section__tete { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__tete p { margin-bottom: .5em; }
.section__tete p:last-child { margin-bottom: 0; }
.section__tete .titre { margin-bottom: 1.75rem; }

.section__tete--centre {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}
.section__tete--centre p {
  max-width: 46rem;
  margin-inline: auto;
}
.section__tete--centre::before {
  content: "";
  display: block;
  width: 5.5rem;
  height: 9px;
  margin: 0 auto 2rem;
  background: var(--trait-pastille-centre) 50% / contain no-repeat;
}

.titre {
  font-size: var(--corps-h2);
  line-height: 1.08;
}
.titre__suite { display: block; }

.accent { color: var(--marque); }

/* --- Surtitre : petites capitales très espacées, derrière un fin trait terminé par une pastille annulaire --- */

.surtitre {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: var(--marque-surtitre);
  font-family: var(--police-texte);
  font-size: var(--corps-mini);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
  text-wrap: balance;
}
.surtitre::before {
  content: "";
  flex: none;
  width: 3rem;
  height: 9px;
  margin-top: calc(.8em - 4.5px);
  background: var(--trait-pastille) 0 50% / contain no-repeat;
}
.sur-sombre .surtitre { color: var(--marque); }
/* Sur un fond teinté, le surtitre reprend le vert assombri des petits textes */
.section--grise, .encadre, .sommaire { --marque-surtitre: var(--marque-texte); }

.chapeau {
  color: var(--nuit);
  font-family: var(--police-titre);
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -.01em;
}

/* --- Filigrane : le pictogramme de la marque au contour (symbole « marque » de pictos.svg) --- */

.motif {
  width: auto;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Impulsions le long des pistes du pictogramme (partiel « impulsions ») : invisibles au repos, animées en section 9.
   Chaque lueur est un court trait que l’on déplace ; son pivot est sa queue (coordonnées du pictogramme). */
.impulsions path, .impulsions circle {
  stroke: var(--marque-vif);
  stroke-dasharray: none;
  opacity: 0;
}
.impulsions path {
  stroke-width: var(--impulsion, 3);
  stroke-linecap: round;
}
.impulsions circle {
  fill: rgba(169, 206, 43, .14);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.impulsions__piste--centre path { transform-origin: 254.5px 2px; }
.impulsions__piste--gauche path { transform-origin: 154.7px 249.5px; }
.impulsions__piste--droite path { transform-origin: 354.3px 249.5px; }

/* --- Grain léger des fonds sombres --- */

.internet::before, .partenaires::before, .pied::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/grain.svg");
  opacity: .5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ==========================================================================
   5. Composants
   ========================================================================== */

/* --- Pictogrammes (symboles de /assets/img/pictos.svg) : trait fin, d’épaisseur constante à l’écran --- */

.picto {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--trait);
  stroke-linecap: round;
  stroke-linejoin: round;
  --trace: 130px;                   /* plus long que le plus long trait d’un pictogramme : sert à le dessiner */
}

/* --- Boutons : rectangles pleins, petites capitales espacées, fond qui glisse et flèche fine --- */

.bouton {
  --bouton-fond: var(--marque);
  --bouton-texte: var(--nuit);
  --bouton-bord: transparent;
  --bouton-survol-fond: var(--nuit);
  --bouton-survol-texte: var(--blanc);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  min-height: 3.5rem;
  padding: .75rem 1.5rem .75rem 1.875rem;
  overflow: hidden;
  background: var(--bouton-fond);
  color: var(--bouton-texte);
  border: 0;
  border-radius: var(--rayon-bouton);
  box-shadow: inset 0 0 0 1px var(--bouton-bord);
  font-family: var(--police-texte);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--duree-survol), transform var(--duree-survol) var(--courbe);
}
.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bouton-survol-fond);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--duree-glisse) var(--courbe);
}
.bouton:hover, .bouton:focus-visible { color: var(--bouton-survol-texte); }
.bouton:hover::before, .bouton:focus-visible::before {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.bouton .picto { width: 1.375rem; height: 1.375rem; stroke-width: 1.25px; }
.bouton__fleche { transition: transform var(--duree-glisse) var(--courbe); }
.bouton:hover .bouton__fleche, .bouton:focus-visible .bouton__fleche { transform: translateX(.4rem); }
.bouton:active { transform: scale(.98); }

.bouton--nuit {
  --bouton-fond: var(--nuit);
  --bouton-texte: var(--blanc);
  --bouton-survol-fond: var(--marque);
  --bouton-survol-texte: var(--nuit);
}
/* Variante au contour fin */
.bouton--contour {
  --bouton-fond: transparent;
  --bouton-texte: var(--nuit);
  --bouton-bord: rgba(9, 31, 44, .3);
}
.sur-sombre .bouton {
  --bouton-survol-fond: var(--blanc);
  --bouton-survol-texte: var(--nuit);
}
.sur-sombre .bouton--contour {
  --bouton-texte: var(--blanc);
  --bouton-bord: rgba(255, 255, 255, .4);
}

/* --- Photo : image arrondie posée sur son ombre, qui déborde d’un aplat clair ;
       le pictogramme de la marque, au trait, peut dépasser d’un angle (svg.photo__motif, facultatif) --- */

.photo {
  --debord: clamp(.75rem, 3vw, 2rem);
  position: relative;
  isolation: isolate;
  max-width: 36rem;
}
.photo::before {
  content: "";
  position: absolute;
  z-index: -2;
  background: var(--marque-pale);
  border-radius: var(--rayon);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-photo);
}
.photo__cadre {
  overflow: hidden;
  border-radius: var(--rayon);
}
.photo__image {
  width: 100%;
  transition: scale var(--duree-masque) var(--courbe);
}
.photo:hover .photo__image { scale: 1.035; }
.photo__motif {
  position: absolute;
  z-index: -1;
  height: clamp(8.5rem, 16vw, 13rem);
  color: var(--marque);
  stroke-width: 4;
  translate: 0 calc(var(--p, 0) * 1.25rem);
}
.photo--bas-gauche::before { inset: 24% 34% calc(-1 * var(--debord)) calc(-1 * var(--debord)); }
.photo--bas-droite::before { inset: 24% calc(-1 * var(--debord)) calc(-1 * var(--debord)) 34%; }
.photo--haut-gauche::before { inset: calc(-1 * var(--debord)) 34% 24% calc(-1 * var(--debord)); }
.photo--bas-gauche .photo__motif { left: calc(-2.4 * var(--debord)); bottom: calc(-2.9 * var(--debord)); }
.photo--bas-droite .photo__motif { right: calc(-2.4 * var(--debord)); bottom: calc(-2.9 * var(--debord)); }
.photo--haut-gauche .photo__motif { left: calc(-2.4 * var(--debord)); top: calc(-2.9 * var(--debord)); }
.section--grise .photo::before { background: #E9F0CF; }

/* --- Duo : une photo et un texte côte à côte --- */

.duo {
  display: grid;
  gap: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 8vw, 7.5rem);
  align-items: center;
}
.duo__texte { max-width: 40rem; }
.duo__texte .titre { margin-bottom: 1.75rem; }
.duo__texte .chapeau { margin-bottom: 1.5rem; }
.duo__texte .bouton { margin-top: 1.5rem; }

@media (min-width: 62em) {
  .duo { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .duo--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .duo--inverse .photo { order: 2; justify-self: end; }
  .duo--haut { align-items: start; }
  .duo--haut .photo { position: sticky; top: calc(var(--entete-h) + 3.5rem); }
}

/* --- Accordéon (balises details/summary ; la hauteur est animée par le script) --- */

.accordeon { display: grid; gap: .75rem; }
.accordeon__element {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: border-color var(--duree-survol);
}
.accordeon__element[open]:not(.se-ferme) { border-color: transparent; box-shadow: 0 0 0 1px var(--marque), var(--ombre-douce); }
.accordeon__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  color: var(--nuit);
  font-family: var(--police-titre);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}
.accordeon__question::-webkit-details-marker { display: none; }
.accordeon__question:focus-visible { outline-offset: -4px; border-radius: var(--rayon); }
.accordeon__question::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  margin-top: -.25rem;
  border: solid var(--marque-texte);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform var(--duree-glisse) var(--courbe);
}
.accordeon__element[open]:not(.se-ferme) > .accordeon__question::after { margin-top: .25rem; transform: rotate(225deg); }
.accordeon__reponse { padding: 0 1.75rem 1.6rem; }
.accordeon__reponse > :last-child { margin-bottom: 0; }

/* ==========================================================================
   6. En-tête et navigation
   ========================================================================== */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--blanc);
  --focus: var(--blanc);
}
/* Le verre : bleu nuit translucide, flou d’arrière-plan discret, filet d’un pixel.
   Il est porté par un pseudo-élément pour ne pas enfermer le menu plein écran (position fixe). */
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(9, 31, 44, .93);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
/* L’ombre de l’en-tête condensé, sur son propre calque : seule son opacité varie */
.entete::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  box-shadow: 0 12px 28px -20px rgba(6, 23, 34, .5);
  opacity: 0;
}
/* En se condensant, l’en-tête ne change pas de hauteur : le verre et son ombre remontent, le contenu se recentre */
.entete::before, .entete::after, .entete__progression, .entete__logo, .entete__bascule {
  transition: translate var(--duree-glisse) var(--courbe), scale var(--duree-glisse) var(--courbe), opacity var(--duree-glisse) var(--courbe);
}
.entete.est-condensee::before, .entete.est-condensee::after, .entete.est-condensee .entete__progression { translate: 0 calc(-1 * var(--entete-recul)); }
.entete.est-condensee::after { opacity: 1; }
.entete.est-condensee .entete__logo, .entete.est-condensee .entete__bascule, .entete.est-condensee .entete__appel { translate: 0 calc(var(--entete-recul) / -2); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .entete::before {
    background: rgba(6, 23, 34, .9);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
  }
}
.menu-ouvert .entete::before { background: rgba(6, 23, 34, .93); }

/* Repère de progression : un filet vert au bas de l’en-tête, étiré par le script à mesure qu’on descend dans la page */
.entete__progression {
  position: absolute;
  inset: auto 0 -1px;
  display: none;
  height: 2px;
  background: var(--marque);
  transform-origin: 0 50%;
  scale: var(--progression, 0) 1;
  pointer-events: none;
}
.js .entete__progression { display: block; }
.menu-ouvert .entete__progression { opacity: 0; }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2 * var(--gouttiere), 90rem);
  height: var(--entete-h);
  margin-inline: auto;
}

.entete__logo {
  flex: none;
  display: block;
  color: var(--blanc);
  border-radius: 4px;
}
.entete__logo .logo {
  width: auto;
  height: 2.125rem;
}
/* Au survol, un signal parcourt les trois pistes du logo */
.entete__logo .logo__picto path { transition: opacity var(--duree-survol); }

.entete__liste { display: flex; }
.entete__lien {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duree-survol);
}
/* Filet qui s’étire sous le lien */
.entete__lien::after {
  content: "";
  position: absolute;
  inset: auto 0 .1rem;
  height: 1px;
  background: var(--marque);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--duree-glisse) var(--courbe);
}
.entete__lien:hover, .entete__lien[aria-expanded="true"] { color: var(--blanc); }
.entete__lien[aria-current="page"] { color: var(--marque-vif); }
.entete__lien:hover::after, .entete__lien[aria-current="page"]::after, .entete__lien[aria-expanded="true"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.entete__chevron {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.5px;
  transition: transform var(--duree-glisse) var(--courbe);
}
.entete__lien[aria-expanded="true"] .entete__chevron { transform: rotate(180deg); }

.entete__telephone {
  gap: .7rem;
  min-height: 2.75rem;
  padding: .5rem 1.35rem .5rem 1.1rem;
  font-family: var(--police-titre);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .07em;
  --bouton-survol-fond: var(--blanc);
  --bouton-survol-texte: var(--nuit);
}
.entete__telephone .picto { width: 1.125rem; height: 1.125rem; stroke-width: 1.4px; }

/* Navigation repliée : l’appel reste à portée de pouce dans la barre, réduit à son pictogramme */
.entete__appel {
  flex: none;
  width: 2.75rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0;
  --bouton-survol-fond: var(--blanc);
  --bouton-survol-texte: var(--nuit);
  transition: color var(--duree-survol), transform var(--duree-survol) var(--courbe), translate var(--duree-glisse) var(--courbe);
}
.entete__appel .picto { width: 1.25rem; height: 1.25rem; stroke-width: 1.4px; }

.sous-menu__lien {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.sous-menu__lien .picto {
  width: 1.375rem;
  height: 1.375rem;
  stroke-width: 1.25px;
  --picto-accent: var(--marque);
}

/* --- Navigation repliée (mobile et tablette) --- */

@media (max-width: 74.99em) {
  /* Sans script : les liens restent accessibles dans une bande défilante sous la barre */
  .entete__bascule { display: none; }
  .entete__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 var(--gouttiere) .6rem;
    overflow-x: auto;
    white-space: nowrap;
  }
  .entete__liste { gap: 1.5rem; }
  .entete__lien--bouton { display: none; }
  .sous-menu__liste { display: flex; gap: 1.5rem; }
  .sous-menu__lien { padding: .5rem 0; color: var(--blanc); font-size: .9375rem; }
  .sous-menu__lien .picto { display: none; }
  .entete__telephone { display: none; }

  /* Avec script : bouton à trois traits et menu plein écran */
  .js .entete__appel { margin-right: -.75rem; }
  .js .entete__bascule {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -.4rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }
  .entete__bascule-traits {
    position: relative;
    display: block;
    width: 1.625rem;
    height: .875rem;
  }
  .entete__bascule-traits span {
    position: absolute;
    right: 0;
    height: 1.5px;
    background: var(--blanc);
    border-radius: 2px;
    transition: translate var(--duree-glisse) var(--courbe), rotate var(--duree-glisse) var(--courbe), scale var(--duree-glisse) var(--courbe), opacity var(--duree-survol);
  }
  .entete__bascule-traits span:nth-child(1) { top: 0; width: 100%; }
  .entete__bascule-traits span:nth-child(2) { top: calc(50% - .75px); width: 100%; background: var(--marque); transform-origin: 100% 50%; scale: .62 1; }
  .entete__bascule-traits span:nth-child(3) { top: calc(100% - 1.5px); width: 100%; }
  /* Le trait vert s’allonge au survol ; à l’ouverture, les deux traits blancs se croisent */
  .entete__bascule:hover .entete__bascule-traits span:nth-child(2) { scale: 1 1; }
  .entete__bascule[aria-expanded="true"] .entete__bascule-traits span:nth-child(1) { translate: 0 calc(.4375rem - .75px); rotate: 45deg; }
  .entete__bascule[aria-expanded="true"] .entete__bascule-traits span:nth-child(2) { opacity: 0; scale: 0 1; }
  .entete__bascule[aria-expanded="true"] .entete__bascule-traits span:nth-child(3) { translate: 0 calc(-.4375rem + .75px); rotate: -45deg; }

  .js .entete__nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--entete-h) + 1.25rem) var(--gouttiere) max(1.5rem, env(safe-area-inset-bottom));
    overflow: hidden auto;
    overscroll-behavior: contain;
    white-space: normal;
    background:
      radial-gradient(34rem 26rem at 100% 0, rgba(152, 189, 24, .12), transparent 70%),
      linear-gradient(180deg, #0B2535, var(--nuit-profond));
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s var(--courbe-douce), visibility 0s .4s;
  }
  /* Le menu descend de l’en-tête comme un rideau */
  .menu-ouvert .entete__nav {
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path .6s var(--courbe-douce), visibility 0s;
  }
  .js .entete__liste {
    flex-direction: column;
    gap: 0;
    width: min(100%, 34rem);
    margin-inline: auto;
  }
  .js .entete__element { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .js .entete__lien {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: .85rem 0;
    color: var(--blanc);
    font-family: var(--police-titre);
    font-size: clamp(1.4375rem, 1.2rem + 1.6vw, 1.875rem);
    font-weight: 400;
    letter-spacing: -.02em;
    text-align: left;
  }
  .js .entete__lien[aria-current="page"] { color: var(--marque-vif); }
  .js .entete__lien::after { display: none; }
  .js .entete__chevron { width: 1.5rem; height: 1.5rem; color: var(--marque); }

  .js .sous-menu {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
  }
  .js [aria-expanded="true"] + .sous-menu {
    grid-template-rows: 1fr;
    visibility: visible;
  }
  .js .sous-menu__liste {
    display: grid;
    gap: 0 1.5rem;
    min-height: 0;
    overflow: hidden;
  }
  .js .sous-menu__liste li:last-child { padding-bottom: 1.1rem; }
  @media (min-width: 30em) {
    .js .sous-menu__liste { grid-template-columns: 1fr 1fr; }
    .js .sous-menu__liste li:nth-last-child(2) { padding-bottom: 1.1rem; }
  }
  .js .sous-menu__lien {
    gap: .8rem;
    padding: .5rem 0;
    color: var(--texte-sur-sombre);
    font-size: 1rem;
    transition: color var(--duree-survol);
  }
  .js .sous-menu__lien .picto { display: block; width: 1.25rem; height: 1.25rem; }
  .js .sous-menu__lien:hover, .js .sous-menu__lien[aria-current="page"] { color: var(--marque-vif); }

  .js .entete__telephone {
    display: inline-flex;
    width: min(100%, 34rem);
    min-height: 3.5rem;
    margin: auto auto 0;
    font-size: 1.125rem;
  }

  /* Les entrées du menu arrivent l’une après l’autre derrière le rideau ; les solutions se posent à leur tour */
  @media (prefers-reduced-motion: no-preference) {
    .js .entete__element, .js .entete__telephone {
      opacity: 0;
      transform: translateY(1.25rem);
      transition: opacity var(--duree-survol), transform var(--duree-survol);
    }
    .menu-ouvert .entete__element, .menu-ouvert .entete__telephone {
      opacity: 1;
      transform: none;
      transition: opacity var(--duree) var(--courbe) var(--retard, 0s), transform var(--duree) var(--courbe) var(--retard, 0s);
    }
    .menu-ouvert .entete__element:nth-child(1) { --retard: .12s; }
    .menu-ouvert .entete__element:nth-child(2) { --retard: .17s; }
    .menu-ouvert .entete__element:nth-child(3) { --retard: .22s; }
    .menu-ouvert .entete__element:nth-child(4) { --retard: .27s; }
    .menu-ouvert .entete__element:nth-child(5) { --retard: .32s; }
    .menu-ouvert .entete__element:nth-child(6) { --retard: .37s; }
    .menu-ouvert .entete__telephone { --retard: .44s; }

    @keyframes menu-solution { from { opacity: 0; transform: translateX(-.75rem); } }
    .js [aria-expanded="true"] + .sous-menu li { animation: menu-solution .5s var(--courbe) calc(.3s + var(--i, 0) * 40ms) backwards; }
    .js .sous-menu li:nth-child(2) { --i: 1; }
    .js .sous-menu li:nth-child(3) { --i: 2; }
    .js .sous-menu li:nth-child(4) { --i: 3; }
    .js .sous-menu li:nth-child(5) { --i: 4; }
    .js .sous-menu li:nth-child(6) { --i: 5; }
  }

  html.menu-ouvert { overflow: hidden; }
}

/* --- Navigation déployée (grand écran) --- */

@media (min-width: 75em) {
  .entete__bascule, .entete__appel { display: none; }
  .entete__logo .logo { height: 2.625rem; }
  .entete__logo { transform-origin: 0 50%; }
  .entete.est-condensee .entete__logo { scale: .857; }
  .entete__nav { transition: translate var(--duree-glisse) var(--courbe); }
  .entete.est-condensee .entete__nav { translate: 0 calc(var(--entete-recul) / -2); }

  .entete__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .entete__liste {
    align-items: center;
    gap: clamp(1.5rem, 2.6vw, 2.5rem);
    margin-inline: auto;
  }
  .entete__element { position: relative; }

  .sous-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 18.5rem;
    padding-top: 1.25rem;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, .6rem);
    transition: opacity var(--duree-survol), transform var(--duree-glisse) var(--courbe), visibility 0s var(--duree-glisse);
  }
  .entete__element--sous-menu:hover > .sous-menu,
  html:not(.js) .entete__element--sous-menu:focus-within > .sous-menu,
  .entete__lien[aria-expanded="true"] + .sous-menu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    transition: opacity var(--duree-survol), transform var(--duree-glisse) var(--courbe), visibility 0s;
  }
  /* Les lignes du sous-menu se posent l’une après l’autre */
  .sous-menu li {
    opacity: 0;
    transform: translateY(.4rem);
    transition: opacity var(--duree-survol), transform var(--duree-survol);
  }
  .entete__element--sous-menu:hover > .sous-menu li,
  html:not(.js) .entete__element--sous-menu:focus-within > .sous-menu li,
  .entete__lien[aria-expanded="true"] + .sous-menu li {
    opacity: 1;
    transform: none;
    transition: opacity var(--duree-glisse) var(--courbe) calc(var(--i, 0) * 35ms), transform var(--duree-glisse) var(--courbe) calc(var(--i, 0) * 35ms);
  }
  .sous-menu li:nth-child(2) { --i: 1; }
  .sous-menu li:nth-child(3) { --i: 2; }
  .sous-menu li:nth-child(4) { --i: 3; }
  .sous-menu li:nth-child(5) { --i: 4; }
  .sous-menu li:nth-child(6) { --i: 5; }
  .sous-menu__liste {
    padding: .5rem;
    background: var(--blanc);
    border-radius: var(--rayon);
    box-shadow: 0 0 0 1px rgba(9, 31, 44, .06), var(--ombre-portee);
    --focus: var(--nuit);
  }
  .sous-menu__lien {
    position: relative;
    padding: .7rem 2.5rem .7rem .9rem;
    color: var(--nuit);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    border-radius: var(--rayon-petit);
    transition: background-color var(--duree-survol);
  }
  .sous-menu__lien .picto { --picto-accent: var(--marque-soutenu); }
  /* Pastille annulaire du logo, qui se pose au bout de la ligne survolée */
  .sous-menu__lien::after {
    content: "";
    position: absolute;
    top: calc(50% - .25rem);
    right: 1rem;
    width: .5rem;
    height: .5rem;
    border: 1.5px solid var(--marque-soutenu);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-.5rem);
    transition: opacity var(--duree-survol), transform var(--duree-glisse) var(--courbe);
  }
  .sous-menu__lien:hover, .sous-menu__lien[aria-current="page"] { background: var(--marque-pale); }
  .sous-menu__lien:hover::after, .sous-menu__lien[aria-current="page"]::after { opacity: 1; transform: none; }
}

/* ==========================================================================
   7. Pied de page
   ========================================================================== */

.pied {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 0 0, rgba(28, 66, 87, .5), transparent 70%),
    linear-gradient(180deg, #0A2231 0%, var(--nuit) 35%, var(--nuit-profond) 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--texte-sur-sombre);
  font-size: var(--corps-petit);
  --focus: var(--blanc);
}
.pied::before { z-index: -1; }
/* Les pistes du logo, en filigrane */
.pied__motif {
  position: absolute;
  z-index: -1;
  right: max(-3rem, (100vw - 104rem) / 2);
  bottom: -7rem;
  height: clamp(20rem, 38vw, 32rem);
  color: rgba(255, 255, 255, .055);
  stroke-width: 1.6;
}

.pied__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2rem;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
.pied__marque, .pied__contact { grid-column: 1 / -1; }
.pied__logo {
  display: inline-block;
  color: var(--blanc);
  border-radius: 4px;
}
.pied__logo .logo { width: auto; height: 3.25rem; }
.pied__signature { max-width: 19rem; margin: 1.75rem 0 0; }

.pied__titre {
  margin-bottom: 1.5rem;
  color: var(--marque);
  font-family: var(--police-texte);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
}

.pied__liens { display: grid; gap: .15rem; }
/* Liens : un souligné vert se tire de gauche à droite, et repart par la droite */
.pied__liens a, .pied__coordonnees a, .pied__bas a:not(.pied__haut), .pied__bas [data-consentement], .pied__telephone {
  position: relative;
  text-decoration: none;
  transition: color var(--duree-survol);
}
.pied__liens a::after, .pied__coordonnees a::after, .pied__bas a:not(.pied__haut)::after, .pied__bas [data-consentement]::after, .pied__telephone::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--marque);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--duree-glisse) var(--courbe);
}
.pied__liens a { display: inline-block; padding: .3rem 0; }
.pied__liens a:hover, .pied__coordonnees a:hover, .pied__bas a:not(.pied__haut):hover, .pied__bas [data-consentement]:hover, .pied__telephone:hover, .pied__liens a[aria-current="page"] { color: var(--blanc); }
.pied__liens a:hover::after, .pied__coordonnees a:hover::after, .pied__bas a:not(.pied__haut):hover::after, .pied__bas [data-consentement]:hover::after, .pied__telephone:hover::after, .pied__liens a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* Le numéro, en grand et en léger */
.pied__telephone {
  display: inline-block;
  margin: -.35rem 0 1.5rem;
  padding-bottom: .2rem;
  color: var(--blanc);
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.5rem + .9vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.pied__coordonnees { display: grid; gap: .8rem; }
.pied__coordonnees li { display: flex; align-items: flex-start; gap: .85rem; }
.pied__coordonnees span span { white-space: nowrap; }
.pied__coordonnees .picto {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  color: var(--marque);
  stroke-width: 1.25px;
}

.pied__bas { font-size: .875rem; }
.pied__bas-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--filet-sombre);
}
.pied__bas p { margin: 0; }
.pied__bas p:first-child { margin-right: auto; }
/* Retour en haut : un anneau fin, la flèche pointe vers le haut */
.pied__haut {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--blanc);
  transition: border-color var(--duree-survol), background-color var(--duree-survol), color var(--duree-survol);
}
.pied__haut .picto {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.25px;
  rotate: -90deg;
  transition: translate var(--duree-glisse) var(--courbe);
}
.pied__haut:hover { background: var(--marque); border-color: var(--marque); color: var(--nuit); }
.pied__haut:hover .picto { translate: 0 -.2rem; }

@media (min-width: 40em) {
  .pied__grille { grid-template-columns: 1fr 1fr 1.6fr; }
  .pied__contact { grid-column: auto; }
}
@media (min-width: 62em) {
  .pied__grille { grid-template-columns: 1.25fr .7fr .9fr 1.3fr; gap: clamp(2.5rem, 4.5vw, 4rem); }
  .pied__marque { grid-column: auto; }
}

/* ==========================================================================
   8. Accueil
   ========================================================================== */

/* --- Héros : la scène du bureau (tasse Rubix, LUCIE à l’écran) --- */

.heros {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--entete-h) + clamp(2.5rem, 8vw, 4rem));
  background: var(--mur);
  overflow: hidden;
}
.heros__contenu { position: relative; z-index: 1; }
.heros__surtitre {
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
  font-size: .875rem;
  font-weight: 700;
}
.heros__titre {
  margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem);
  font-size: var(--corps-h1);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.035em;
}
/* « LUCIE » : vert soutenu, pour atteindre 3:1 sur le mur clair du héros (grand titre) ; le vert vif n'y fait que 2,1:1 */
.heros__titre .accent { color: var(--marque-soutenu); font-weight: 500; letter-spacing: -.02em; }
.heros__texte {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
}

/* Écran étroit : la scène vient sous le texte, recadrée sur la tasse et l’ordinateur */
.heros__scene {
  position: relative;
  order: 2;
  aspect-ratio: 3 / 2;
  max-height: 34rem;
  width: 100%;
  margin-top: clamp(.5rem, 2vw, 1.5rem);
  overflow: hidden;
}
/* La lumière : le mur s’assombrit à peine vers les bords, le regard va vers l’écran.
   Un simple voile, sans mode de fusion : l’écran de LUCIE s’anime dessous, rien ne doit être recomposé avec lui. */
.heros__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 70% 46%, rgba(9, 31, 44, 0) 42%, rgba(9, 31, 44, .1) 100%),
    linear-gradient(180deg, rgba(9, 31, 44, .05), rgba(9, 31, 44, 0) 24%);
  pointer-events: none;
}
/* Le plan garde les proportions de la photo : la démonstration de LUCIE (pages/ecran-lucie.css) s’y superpose,
   dans le même repère */
.heros__plan {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 196%;
  aspect-ratio: 2100 / 945;
  translate: 0 calc(var(--p, 0) * -2.5rem);
}
.heros__image {
  width: 100%;
  max-width: none;
  height: 100%;
}
@media (min-width: 36em) {
  .heros__ligne { display: block; }
}

/* Grand écran : la scène occupe tout le héros, le texte se pose sur le mur blanc */
@media (min-width: 62em) {
  .heros {
    justify-content: center;
    min-height: clamp(35rem, min(84vh, 56vw), 62rem);
    padding-top: calc(var(--entete-h) + clamp(2rem, 5vh, 3.5rem));
    padding-bottom: clamp(6.5rem, 8vw, 8rem);
  }
  .heros__scene {
    position: absolute;
    inset: 0;
    order: 0;
    aspect-ratio: auto;
    max-height: none;
    margin: 0;
  }
  /* Plus ample que l’écran, ancrée en bas à droite ; le haut et la gauche se fondent dans le mur.
     Elle glisse au défilement (--p) et suit à peine le pointeur (--px, --py). */
  .heros__plan {
    right: -.75rem;
    bottom: -.5rem;
    width: clamp(62rem, 112vw, 137.5rem);
    translate: calc(var(--px, 0) * -.75rem) calc(var(--p, 0) * -4.5rem + var(--py, 0) * -.5rem);
  }
  .heros__image {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%), linear-gradient(90deg, transparent, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent, #000 20%), linear-gradient(90deg, transparent, #000 12%);
    mask-composite: intersect;
  }
}

/* --- Les quatre atouts : bande verte arrondie, à cheval sur le bas du héros --- */

.atouts-cadre {
  position: relative;
  z-index: 2;
  margin-top: -1.75rem;
}
.atouts {
  display: grid;
  background: linear-gradient(112deg, #A5CA26 0%, var(--marque) 38%, #8FB413 100%);
  border-radius: var(--rayon);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 1px 2px rgba(57, 76, 0, .12),
    0 18px 34px -20px rgba(69, 92, 0, .36),
    0 44px 70px -48px rgba(9, 31, 44, .2);
  color: var(--nuit);
}
.atouts__element {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem 1.5rem 1.6rem;
}
/* Filets entre les atouts */
.atouts__element + .atouts__element::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem auto;
  height: 1px;
  background: rgba(9, 31, 44, .16);
}
.atouts__coche {
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  margin-top: .1rem;
  fill: none;
  stroke: var(--blanc);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* L’onde du voyant : invisible au repos, elle ne paraît qu’avec le mouvement */
.atouts__coche { overflow: visible; }
.atouts__onde {
  stroke-width: .8;
  stroke-dasharray: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.atouts__titre {
  margin: .15rem 0 .4rem;
  color: var(--nuit);
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.atouts__texte {
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

@media (min-width: 36em) {
  .atouts { grid-template-columns: 1fr 1fr; }
  .atouts__element { padding: 1.75rem 1.75rem 1.9rem; }
  .atouts__element:nth-child(2)::before { content: none; }
  .atouts__element:nth-child(even)::after {
    content: "";
    position: absolute;
    inset: 1.75rem auto 1.75rem 0;
    width: 1px;
    background: rgba(9, 31, 44, .16);
  }
}
@media (min-width: 62em) {
  .atouts-cadre { margin-top: -4rem; }
}
@media (min-width: 75em) {
  .atouts { grid-template-columns: repeat(4, 1fr); }
  .atouts__element { padding: 2.25rem 1.6rem 2.4rem 1.75rem; }
  .atouts__element:first-child { padding-left: 2.25rem; }
  .atouts__element + .atouts__element::before { inset: 2rem auto 2rem 0; width: 1px; height: auto; }
  .atouts__element:nth-child(2)::before { content: ""; }
  .atouts__element:nth-child(even)::after { content: none; }
}

/* --- Nos services : sept tuiles à pictogramme --- */

.services { padding-top: clamp(5rem, 3rem + 7vw, 9rem); }

.tuiles {
  --ecart: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ecart);
  counter-reset: tuile;
}
/* Au survol, la tuile se soulève ; son ombre portée est un calque dont seule l’opacité varie */
.tuiles__element {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  display: flex;
  transition: translate var(--duree-glisse) var(--courbe);
}
.tuiles__element::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-portee);
  opacity: 0;
  transition: opacity var(--duree-glisse) var(--courbe);
}
.tuiles__element:hover, .tuiles__element:focus-within { translate: 0 -6px; }
.tuiles__element:hover::after, .tuiles__element:focus-within::after { opacity: 1; }

.tuile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-content: start;
  width: 100%;
  padding: 1.35rem 1.35rem 1.45rem;
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  text-decoration: none;
  counter-increment: tuile;
  transition: border-color var(--duree-survol);
}
/* Filet vert qui s’étire au survol */
.tuile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--marque);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--duree-glisse) var(--courbe);
}
.tuile:hover, .tuile:focus-visible { border-color: transparent; }
.tuile:hover::after, .tuile:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Le pictogramme au trait, sur une plaque ronde très claire cerclée d’un anneau fin ;
   au survol, le vert de la marque la gagne depuis son centre et un halo l’entoure */
.tuile__picto {
  position: relative;
  isolation: isolate;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--marque-pale);
  border-radius: 50%;
  color: var(--nuit);
  --picto-accent: var(--marque-soutenu);
  --trace: 130px;
  box-shadow: inset 0 0 0 1px rgba(152, 189, 24, .6);
}
.tuile__picto::before, .tuile__picto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  transition: transform var(--duree-glisse) var(--courbe), opacity var(--duree-glisse) var(--courbe);
}
.tuile__picto::before {
  background: var(--marque);
  transform: scale(0);
}
.tuile__picto::after {
  box-shadow: 0 0 0 .4rem rgba(152, 189, 24, .16);
  opacity: 0;
  transform: scale(.86);
}
.tuile__picto .picto { width: 1.875rem; height: 1.875rem; }
.tuile:hover .tuile__picto, .tuile:focus-visible .tuile__picto { --picto-accent: var(--nuit); }
.tuile:hover .tuile__picto::before, .tuile:focus-visible .tuile__picto::before { transform: none; }
.tuile:hover .tuile__picto::after, .tuile:focus-visible .tuile__picto::after { opacity: 1; transform: none; }

.tuile__titre {
  align-self: end;
  padding-right: 2rem;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.tuile__texte {
  margin: .35rem 0 0;
  font-size: var(--corps-petit);
  line-height: 1.55;
}
.tuile__fleche {
  position: absolute;
  top: 1.4rem;
  right: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gris-bleu);
  stroke-width: 1.25px;
  transition: transform var(--duree-glisse) var(--courbe), color var(--duree-survol);
}
.tuile:hover .tuile__fleche, .tuile:focus-visible .tuile__fleche {
  color: var(--marque-texte);
  transform: translateX(.3rem);
}

@media (min-width: 36em) {
  .tuiles__element { flex-basis: calc((100% - var(--ecart)) / 2); }
  .tuile {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem 1.75rem;
  }
  /* Numérotation fine, en haut à droite */
  .tuile::before {
    content: counter(tuile, decimal-leading-zero);
    position: absolute;
    top: 2rem;
    right: 1.75rem;
    color: var(--texte-discret);
    font-family: var(--police-titre);
    font-size: var(--corps-mini);
    line-height: 1;
    letter-spacing: .14em;
  }
  .tuile__picto { width: 4rem; height: 4rem; margin-bottom: 2.25rem; }
  .tuile__picto .picto { width: 2.125rem; height: 2.125rem; }
  .tuile__titre { align-self: auto; padding-right: 0; font-size: 1.3125rem; }
  .tuile__texte { margin-top: .6rem; margin-bottom: 1.75rem; }
  .tuile__fleche {
    position: static;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: auto;
  }
}
@media (min-width: 62em) {
  .tuiles__element { flex-basis: calc((100% - 3 * var(--ecart)) / 4); }
}

/* --- Internet d’entreprise : bleu nuit profond, bords en biais adoucis ; une lueur verte, très diffuse,
       derrière le grand pictogramme, et la profondeur d’un halo bleu en bas à gauche --- */

.internet {
  --biais-haut: clamp(1rem, 2.4vw, 2.25rem);
  --biais-bas: clamp(1.25rem, 3.2vw, 3rem);
  isolation: isolate;
  padding-block: calc(var(--espace-section) + var(--biais-haut)) calc(var(--espace-section) + var(--biais-bas));
  background:
    radial-gradient(44rem 30rem at calc(100% - max(var(--gouttiere), (100vw - var(--conteneur)) / 2) - 9rem) 15rem, rgba(152, 189, 24, .07), transparent 68%),
    radial-gradient(56rem 40rem at -8% 108%, rgba(34, 82, 108, .5), transparent 66%),
    linear-gradient(180deg, #0B2636 0%, var(--nuit) 46%, var(--nuit-profond) 100%);
  clip-path: polygon(0 var(--biais-haut), 74% 0, 100% var(--biais-haut), 100% calc(100% - var(--biais-bas)), 26% 100%, 0 calc(100% - var(--biais-bas)));
}
.internet::before { z-index: -1; }
/* Un second halo vert, très diffus, qui ne paraît qu’avec le mouvement : il respire lentement */
.internet::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  z-index: -1;
  width: min(100%, 72rem);
  height: 38rem;
  background: radial-gradient(58% 78% at 86% 0, rgba(152, 189, 24, .06), transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.internet .conteneur { position: relative; }

/* La tête se cale à gauche ; à droite, le pictogramme de la marque, en grand et au trait
   (écran étroit : en petit, au-dessus du titre) */
.internet__tete { max-width: 39rem; padding-top: 2.5rem; }
.internet__tete p { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.internet__motif {
  position: absolute;
  z-index: -1;
  top: calc(var(--biais-haut) + 1.5rem);
  right: var(--gouttiere);
  height: 4.25rem;
  color: rgba(255, 255, 255, .2);
  --motif-accent: rgba(152, 189, 24, .85);
  --impulsion: 8;
  stroke-width: 5;
}
@media (min-width: 62em) {
  .internet__motif {
    top: calc(var(--biais-haut) + 3rem);
    right: max(var(--gouttiere), (100vw - var(--conteneur)) / 2 + 1.5rem);
    height: clamp(14rem, 22vw, 21rem);
    --impulsion: 3;
    stroke-width: 2;
  }
  .internet__tete { padding-top: 0; }
}

/* Trois volets sous un filet ; numérotation fine, pictogramme au trait */
.volets {
  display: grid;
  gap: 3rem;
  counter-reset: volet;
}
.volet {
  position: relative;
  padding-top: calc(2.25rem + 1px);
  font-size: var(--corps-petit);
  line-height: 1.75;
  counter-increment: volet;
}
/* Le filet du haut : un élément à part, pour pouvoir se tirer à l’apparition */
.volet__filet {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--filet-sombre);
}
/* Il se colore au survol */
.volet::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--marque);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--duree-glisse) var(--courbe);
}
.volet:hover::after { transform: scaleX(1); }
.volet::before {
  content: counter(volet, decimal-leading-zero);
  position: absolute;
  top: 2.4rem;
  right: 0;
  color: var(--gris-bleu);
  font-family: var(--police-titre);
  font-size: var(--corps-mini);
  line-height: 1;
  letter-spacing: .14em;
}
.volet > :not(.volet__filet) { max-width: 42rem; }
.volet > :last-child { margin-bottom: 0; }
.volet__picto {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.75rem;
  color: var(--blanc);
  --picto-accent: var(--marque);
  --trace: 150px;
}
.volet__picto .picto { width: 100%; height: 100%; --trace: 150px; }
.sur-sombre .volet__titre {
  margin-bottom: 1.25rem;
  color: var(--marque);
  font-size: var(--corps-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}

@media (min-width: 62em) {
  .volets { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); }
}

/* --- Mobilité : l’aplat s’élargit sous la photo --- */

.mobilite .photo::before { inset: 38% calc(-1 * var(--debord)) calc(-1.5 * var(--debord)) 16%; }

/* --- Équipe --- */

.equipe { padding-bottom: calc(var(--espace-section) + 2rem); }
/* L’aplat monte plus haut que la photo et la longe, en bande étroite */
.equipe .photo::before { inset: calc(-1.75 * var(--debord)) 56% 14% calc(-1 * var(--debord)); }
/* L’accroche : une affirmation dans le vert de la marque, sous le titre */
.equipe__accroche {
  max-width: 30rem;
  color: var(--marque-surtitre);
  font-weight: 500;
  line-height: 1.35;
}

/* --- Rejoignez notre réseau de partenaires : la conseillère dépasse du bandeau, devant une pastille de la marque --- */

.partenaires {
  position: relative;
  isolation: isolate;
  background: var(--nuit);
  overflow-x: clip;
}
.partenaires__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.partenaires__fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partenaires__fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56rem 30rem at 100% 0, rgba(152, 189, 24, .07), transparent 66%),
    linear-gradient(100deg, rgba(9, 31, 44, .86) 0%, rgba(9, 31, 44, .55) 100%);
}
.partenaires::before { z-index: -1; }
.partenaires__grille {
  position: relative;
  display: grid;
}
.partenaires__texte { padding-top: clamp(4rem, 9vw, 6rem); }
.partenaires__titre { margin-bottom: 1.75rem; }
.partenaires__titre .accent { font-weight: 500; }
.partenaires__texte .bouton { margin-top: 1.5rem; }
.partenaires__portrait {
  position: relative;
  order: 2;
  justify-self: center;
  width: min(17rem, 70%);
  margin-top: 3.5rem;
  /* seul le bas est rogné : la conseillère peut glisser sans déborder sur le pied de page */
  clip-path: inset(-12rem -8rem 0 -8rem);
}
/* La forme de marque : une grande pastille cerclée de deux anneaux fins, comme celles du logo —
   le vert au bord, un filet clair plus loin ; entre les deux, un voile à peine visible */
.partenaires__forme {
  position: absolute;
  top: 13%;
  left: 50%;
  z-index: -1;
  width: 116%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle at 32% 22%, #23506A 0%, #163A4D 46%, #0E2A39 100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(152, 189, 24, .7),
    0 0 0 2.75rem rgba(255, 255, 255, .03);
}
.partenaires__forme::before {
  content: "";
  position: absolute;
  inset: -2.75rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}
/* une petite pastille annulaire posée sur l’anneau vert : elle en fait lentement le tour */
.partenaires__satellite {
  position: absolute;
  inset: 0;
}
.partenaires__satellite::before {
  content: "";
  position: absolute;
  top: 14.64%;
  left: 85.36%;
  width: .9rem;
  height: .9rem;
  translate: -50% -50%;
  background: var(--nuit);
  border: 2px solid var(--marque);
  border-radius: 50%;
}
/* une onde fine quitte l’anneau vert et s’éteint en rejoignant l’anneau extérieur (visible avec le mouvement seulement) */
.partenaires__forme::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(152, 189, 24, .7);
  border-radius: 50%;
  opacity: 0;
}
.partenaires__conseillere {
  position: relative;
  width: 100%;
  translate: 0 calc(max(var(--p, 0), 0) * 2.5rem);
}

@media (min-width: 62em) {
  .partenaires__grille {
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
  }
  .partenaires__texte { max-width: 38rem; padding-block: clamp(5rem, 7vw, 6.5rem); }
  .partenaires__portrait {
    order: 0;
    align-self: end;
    width: 100%;
    margin-top: -5.5rem;
  }
}

/* ==========================================================================
   9. Mouvement
   Rien n’est masqué sans la classe .js, à l’impression, ni quand l’utilisateur demande moins d’animations ;
   si le script du site ne démarre pas, amorce.js retire la classe .js et tout reparaît.
   On n’anime que transform (translate, scale, rotate), opacity et clip-path ; les tracés jouent sur stroke-dashoffset.
   ========================================================================== */

/* --- 9.1 Fondu enchaîné d’une page à l’autre (transitions de vue entre documents, là où le navigateur les gère) ---
       La barre de l’en-tête et le logo, nommés, restent en place pendant que la page change.
       Le nom est porté par la barre, non par l’en-tête : un élément nommé isole ce qu’il contient de la page,
       et le verre de l’en-tête ne flouterait plus ce qui défile derrière lui. */

@view-transition { navigation: auto; }
.entete__barre { view-transition-name: entete; }
.entete__logo { view-transition-name: logo; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .4s;
  animation-timing-function: var(--courbe-douce);
}

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* --- 9.2 Images clés communes --- */

  @keyframes pose {
    from { opacity: 0; transform: translateY(1.25rem); }
  }
  @keyframes fondu {
    from { opacity: 0; }
  }
  /* Une ligne monte derrière un masque dont le bord inférieur ne bouge pas */
  @keyframes leve-ligne {
    from { clip-path: inset(0 -.2em 110% -.2em); transform: translateY(110%); }
    to { clip-path: inset(-.25em -.2em -.3em -.2em); transform: none; }
  }
  @keyframes masque-gauche {
    from { clip-path: inset(0 100% 0 0 round var(--masque-rayon, 0px)); }
    to { clip-path: inset(0 0 0 0 round var(--masque-rayon, 0px)); }
  }
  @keyframes masque-droite {
    from { clip-path: inset(0 0 0 100% round var(--masque-rayon, 0px)); }
    to { clip-path: inset(0 0 0 0 round var(--masque-rayon, 0px)); }
  }
  @keyframes masque-haut {
    from { clip-path: inset(0 0 100% 0 round var(--masque-rayon, 0px)); }
    to { clip-path: inset(0 0 0 0 round var(--masque-rayon, 0px)); }
  }
  @keyframes masque-bas {
    from { clip-path: inset(100% 0 0 0 round var(--masque-rayon, 0px)); }
    to { clip-path: inset(0 0 0 0 round var(--masque-rayon, 0px)); }
  }
  @keyframes masque-centre {
    from { clip-path: inset(0 50%); }
    to { clip-path: inset(0 0); }
  }
  @keyframes dezoom {
    from { transform: scale(1.14); }
  }
  @keyframes filet {
    from { transform: scaleX(0); }
  }
  /* « trace » dessine à l’apparition, « retrace » redessine au survol : deux noms, pour que l’un ne relance pas l’autre */
  @keyframes trace {
    from { stroke-dasharray: var(--trace, 1); stroke-dashoffset: var(--trace, 1); }
    to { stroke-dasharray: var(--trace, 1); stroke-dashoffset: 0; }
  }
  @keyframes retrace {
    from { stroke-dasharray: var(--trace, 1); stroke-dashoffset: var(--trace, 1); }
    to { stroke-dasharray: var(--trace, 1); stroke-dashoffset: 0; }
  }

  /* --- 9.3 Vocabulaire data-anime : l’élément attend, puis joue son entrée quand le script lui donne la classe est-vu ---
         Les entrées sont des animations sans effet après leur fin : elles ne laissent ni transformation ni masque,
         et ne gênent pas les transitions de survol. */

  /* Retard d’un élément : son data-delai (variable « delai », posée par le script) et son rang dans une cascade (variable « i ») */
  .js [data-anime], .js [data-anime="cascade"] > * { --retard: calc(var(--delai, 0ms) + var(--i, 0) * var(--pas)); }
  .js [data-anime="cascade"] > * { --i: 0; }
  .js [data-anime="cascade"] > :nth-child(2) { --i: 1; }
  .js [data-anime="cascade"] > :nth-child(3) { --i: 2; }
  .js [data-anime="cascade"] > :nth-child(4) { --i: 3; }
  .js [data-anime="cascade"] > :nth-child(5) { --i: 4; }
  .js [data-anime="cascade"] > :nth-child(6) { --i: 5; }
  .js [data-anime="cascade"] > :nth-child(7) { --i: 6; }
  .js [data-anime="cascade"] > :nth-child(8) { --i: 7; }
  .js [data-anime="cascade"] > :nth-child(9) { --i: 8; }
  .js [data-anime="cascade"] > :nth-child(10) { --i: 9; }
  .js [data-anime="cascade"] > :nth-child(11) { --i: 10; }
  .js [data-anime="cascade"] > :nth-child(n + 12) { --i: 11; }

  /* pose : le bloc monte de quelques pixels en se dévoilant ; cascade : ses enfants se posent l’un après l’autre */
  .js [data-anime="pose"]:not(.est-vu),
  .js [data-anime="cascade"]:not(.est-vu) > :not([data-anime]),
  .js [data-anime="lignes"]:not(.est-vu) { opacity: 0; }
  .js [data-anime="pose"].est-vu,
  .js [data-anime="cascade"].est-vu > :not([data-anime]) { animation: pose var(--duree) var(--courbe) var(--retard) backwards; }

  /* lignes : le script enveloppe chaque mot (.mot) et numérote sa ligne (variable « l ») ; les lignes montent l’une après l’autre */
  .js [data-anime="lignes"] .mot {
    display: inline-block;
    animation: leve-ligne .9s var(--courbe) calc(var(--retard) + var(--l, 0) * var(--pas-ligne)) backwards;
  }

  /* masque : l’élément s’ouvre depuis un bord (data-sens : gauche par défaut, droite, haut, bas), son image recule légèrement */
  .js [data-anime="masque"][data-sens="droite"] { --masque: masque-droite; }
  .js [data-anime="masque"][data-sens="haut"] { --masque: masque-haut; }
  .js [data-anime="masque"][data-sens="bas"] { --masque: masque-bas; }
  .js [data-anime="masque"]:not(.photo):not(.est-vu) { clip-path: inset(0 100% 0 0); }
  .js [data-anime="masque"]:not(.photo).est-vu { animation: var(--masque, masque-gauche) var(--duree-masque) var(--courbe-douce) var(--retard) backwards; }

  /* zoom : l’image recule dans son cadre (qui doit rogner ce qui dépasse) */
  .js [data-anime="zoom"]:not(.est-vu) img { transform: scale(1.14); }
  .js [data-anime="masque"].est-vu img,
  .js [data-anime="zoom"].est-vu img { animation: dezoom 1.4s var(--courbe) var(--retard) backwards; }

  /* filet : le trait se tire depuis la gauche (data-sens : centre, droite) */
  .js [data-anime="filet"] { transform-origin: 0 50%; }
  .js [data-anime="filet"][data-sens="centre"] { transform-origin: 50% 50%; }
  .js [data-anime="filet"][data-sens="droite"] { transform-origin: 100% 50%; }
  .js [data-anime="filet"]:not(.est-vu) { transform: scaleX(0); }
  .js [data-anime="filet"].est-vu { animation: filet var(--duree) var(--courbe-douce) var(--retard) backwards; }

  /* trace : le tracé SVG se dessine (pictogrammes ; motifs et coches, dont les tracés ont pathLength="1") */
  .js [data-anime="trace"]:not(.est-vu) { stroke-dasharray: var(--trace, 1); stroke-dashoffset: var(--trace, 1); }
  .js [data-anime="trace"].est-vu { animation: trace var(--duree-trace) var(--courbe-douce) var(--retard) backwards; }

  /* compte : le script fait compter le nombre ; la largeur finale est réservée pour que rien ne bouge autour */
  .js [data-anime="compte"] { display: inline-block; white-space: nowrap; }

  /* --- 9.4 Vie ambiante : les boucles ne tournent que dans un bloc [data-vie] présent à l’écran, onglet visible
         (classe est-actif, posée par le script) --- */

  .js [data-vie]:not(.est-actif),
  .js [data-vie]:not(.est-actif)::before,
  .js [data-vie]:not(.est-actif)::after,
  .js [data-vie]:not(.est-actif) *,
  .js [data-vie]:not(.est-actif) *::before,
  .js [data-vie]:not(.est-actif) *::after { animation-play-state: paused !important; }

  /* Les éléments que le défilement ou le pointeur déplacent ont leur propre calque */
  .js [data-parallaxe] { will-change: translate; }

  /* --- 9.5 Ouverture du héros : surtitre, titre ligne à ligne, texte, bouton, scène — moins d’une seconde et demie.
         Elle part dès le premier affichage, sans attendre le script du site (la classe .js est posée dans l’en-tête du document). --- */

  /* Départ à 1 % d'opacité : invisible à l'œil, mais l'image du héros compte comme affichée dès la première image */
  @keyframes arrivee-scene {
    from { opacity: .01; transform: scale(1.05); }
  }

  .js .heros__surtitre, .js .heros__titre, .js .heros__texte, .js .heros__bouton { animation: pose .7s var(--courbe) backwards; }
  .js .heros__surtitre::before { animation: masque-gauche .8s var(--courbe-douce) .1s backwards; }
  .js .heros__titre { animation-delay: .08s; }
  .js .heros__texte { animation-delay: .38s; }
  .js .heros__bouton { animation-delay: .48s; }
  .js .heros__scene { animation: arrivee-scene 1.3s var(--courbe) .05s backwards; transform-origin: 78% 70%; }

  @media (min-width: 36em) {
    .js .heros__titre { animation: none; }
    .js .heros__ligne { animation: leve-ligne .9s var(--courbe) backwards; }
    .js .heros__ligne:nth-child(1) { animation-delay: .08s; }
    .js .heros__ligne:nth-child(2) { animation-delay: .17s; }
    .js .heros__ligne:nth-child(3) { animation-delay: .26s; }
  }

  /* --- 9.6 Chorégraphie des blocs --- */

  /* Surtitres : le fin trait se tire jusqu’à sa pastille ; têtes centrées : il s’ouvre depuis sa pastille */
  .js .est-vu .surtitre::before,
  .js .surtitre.est-vu::before { animation: masque-gauche .8s var(--courbe-douce) calc(var(--retard, 0ms) + .12s) backwards; }
  .js .section__tete--centre[data-anime]:not(.est-vu)::before { clip-path: inset(0 50%); }
  .js .section__tete--centre[data-anime].est-vu::before { animation: masque-centre .9s var(--courbe-douce) var(--delai, 0ms) backwards; }

  /* Atouts : la bande s’ouvre depuis son centre, ses quatre éléments se posent, les coches se tracent.
     Sur grand écran elle fait partie de l’ouverture : elle attend que le titre soit lancé. */
  @keyframes deploiement {
    from { clip-path: inset(-3rem 50% -7rem 50%); }
    to { clip-path: inset(-3rem -4rem -7rem -4rem); }
  }
  @media (min-width: 62em) {
    .js .atouts[data-anime] { --delai: .3s; }
  }
  .js .atouts[data-anime]:not(.est-vu) { clip-path: inset(-3rem 50% -7rem 50%); }
  .js .atouts[data-anime]:not(.est-vu) .atouts__coche { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .atouts[data-anime].est-vu { animation: deploiement .8s var(--courbe-douce) var(--delai, 0ms) backwards; }
  .js .atouts[data-anime].est-vu > * { animation-duration: .7s; animation-delay: calc(var(--retard) + .2s); }
  .js .atouts[data-anime].est-vu .atouts__coche circle + circle { animation: trace .6s var(--courbe-douce) calc(var(--retard) + .3s) backwards; }
  .js .atouts[data-anime].est-vu .atouts__coche path { animation: trace .35s var(--courbe-douce) calc(var(--retard) + .65s) backwards; }

  /* Voyants : à tour de rôle, chaque coche émet une onde fine ; au survol d’un atout, sa coche se retrace */
  @keyframes voyant {
    0% { opacity: 0; transform: none; }
    3% { opacity: .8; }
    20%, 100% { opacity: 0; transform: scale(1.75); }
  }
  .js .atouts__onde { animation: voyant 7.2s var(--courbe) 2.6s infinite; }
  .js .atouts__element:nth-child(2) .atouts__onde { animation-delay: 4.4s; }
  .js .atouts__element:nth-child(3) .atouts__onde { animation-delay: 6.2s; }
  .js .atouts__element:nth-child(4) .atouts__onde { animation-delay: 8s; }
  .atouts__element:hover .atouts__coche { animation: retrace .6s var(--courbe-douce); }

  /* Tuiles et volets : le pictogramme se dessine pendant que le bloc se pose, et finit avec lui ; il se redessine au survol */
  .js .tuiles .picto[data-anime] { --duree-trace: .65s; }
  .js .volets .picto[data-anime] { --duree-trace: .8s; }
  .js .tuiles .picto[data-anime].est-vu { animation-delay: calc(var(--retard) + .1s); }
  .js .volets .picto[data-anime].est-vu { animation-delay: calc(var(--retard) + .2s); }
  .tuile:hover .tuile__picto, .tuile:focus-visible .tuile__picto { animation: retrace .7s var(--courbe-douce); }
  .volet:hover .volet__picto { animation: retrace .8s var(--courbe-douce); }

  /* Voyants des services : à tour de rôle, l’anneau d’une plaque émet une onde fine (liste [data-vie]) ;
     l’onde est un calque posé sur la plaque, absent sans mouvement */
  @keyframes voyant-tuile {
    0% { opacity: 0; transform: none; }
    3% { opacity: .75; }
    17%, 100% { opacity: 0; transform: scale(1.42); }
  }
  .js .tuiles[data-vie] .tuiles__element::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(1.35rem + 1px);
    left: calc(1.35rem + 1px);
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--marque);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: voyant-tuile 9.8s var(--courbe) calc(3.2s + var(--i, 0) * 1.4s) infinite;
  }
  .js .tuiles[data-vie] .tuiles__element:hover::before { animation: none; }
  @media (min-width: 36em) {
    .js .tuiles[data-vie] .tuiles__element::before {
      top: calc(2rem + 1px);
      left: calc(1.75rem + 1px);
      width: 4rem;
      height: 4rem;
    }
  }

  /* Logo de l’en-tête : au survol, un signal parcourt les trois pistes */
  @keyframes signal {
    40% { opacity: .35; }
  }
  .entete__logo:hover .logo__picto path { animation: signal .6s var(--courbe-douce); }
  .entete__logo:hover .logo__picto path:nth-child(2) { animation-delay: .09s; }
  .entete__logo:hover .logo__picto path:nth-child(3) { animation-delay: .18s; }

  /* Internet d’entreprise : le grand pictogramme se trace, puis des impulsions vertes descendent ses pistes
     jusqu’aux pastilles, qui s’allument ; le halo respire */
  .js .internet__motif, .js .pied__motif { --duree-trace: 1.6s; }
  .js .volets .volet__filet.est-vu { animation-duration: 1s; }

  /* La lueur descend la piste du centre ; sur les côtés, elle suit le coude puis l’oblique */
  @keyframes impulsion-centre {
    0% { opacity: 0; transform: none; }
    1.5% { opacity: 1; }
    13% { opacity: 1; }
    15%, 100% { opacity: 0; transform: translateY(385px); }
  }
  @keyframes impulsion-gauche {
    0% { opacity: 0; transform: none; }
    1.5% { opacity: 1; }
    2.2% { transform: translateY(47.9px); }
    5.2% { transform: translateY(111.9px) rotate(21.74deg); }
    10.5% { opacity: 1; }
    12%, 100% { opacity: 0; transform: translate(-54.9px, 249.5px) rotate(21.74deg); }
  }
  @keyframes impulsion-droite {
    0% { opacity: 0; transform: none; }
    1.5% { opacity: 1; }
    2.2% { transform: translateY(47.9px); }
    5.2% { transform: translateY(111.9px) rotate(-21.74deg); }
    10.5% { opacity: 1; }
    12%, 100% { opacity: 0; transform: translate(54.9px, 249.5px) rotate(-21.74deg); }
  }
  /* À l’arrivée de la lueur (variable « arrivee »), la pastille s’allume et s’élargit en s’éteignant */
  @keyframes impulsion-pastille {
    0%, 13% { opacity: 0; transform: none; }
    15% { opacity: 1; transform: none; animation-timing-function: var(--courbe); }
    32%, 100% { opacity: 0; transform: scale(1.45); }
  }
  @keyframes respiration {
    from { opacity: .2; }
    to { opacity: 1; }
  }
  .js .impulsions path { animation: 9s linear var(--depart) infinite; }
  .js .impulsions circle { animation: impulsion-pastille 9s linear calc(var(--depart) - var(--avance, 0s)) infinite; }
  .js .impulsions__piste--centre { --depart: 2.4s; }
  .js .impulsions__piste--gauche { --depart: 3.6s; --avance: .27s; }
  .js .impulsions__piste--droite { --depart: 4.4s; --avance: .27s; }
  .js .impulsions__piste--centre path { animation-name: impulsion-centre; }
  .js .impulsions__piste--gauche path { animation-name: impulsion-gauche; }
  .js .impulsions__piste--droite path { animation-name: impulsion-droite; }
  .js .internet::after { animation: respiration 6s var(--courbe-douce) infinite alternate; }

  /* Photos : le cadre s’ouvre et l’image recule, puis l’aplat, l’ombre et le pictogramme la rejoignent ;
     le pictogramme flotte ensuite, à peine ; l’image glisse dans son cadre au défilement */
  @keyframes flottement {
    to { transform: translateY(-.5rem); }
  }
  .js .photo[data-anime]:not(.est-vu) .photo__cadre { clip-path: inset(0 100% 0 0); }
  .js .photo[data-anime]:not(.est-vu)::before,
  .js .photo[data-anime]:not(.est-vu)::after { opacity: 0; }
  .js .photo[data-anime]:not(.est-vu) .photo__motif { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .photo[data-anime].est-vu .photo__cadre {
    --masque-rayon: var(--rayon);
    animation: var(--masque, masque-gauche) var(--duree-masque) var(--courbe-douce) var(--retard) backwards;
  }
  .js .photo[data-anime].est-vu::before { animation: pose .9s var(--courbe) calc(var(--retard) + .45s) backwards; }
  .js .photo[data-anime].est-vu::after { animation: fondu .9s var(--courbe) calc(var(--retard) + .45s) backwards; }
  .js .photo[data-anime].est-vu .photo__motif {
    animation:
      trace 1.4s var(--courbe-douce) calc(var(--retard) + .5s) backwards,
      flottement 7s var(--courbe-douce) 2s infinite alternate;
  }
  .js .photo__image[data-parallaxe] {
    scale: 1.07;
    translate: 0 calc(var(--p, 0) * -3%);
  }
  .js .photo:hover .photo__image[data-parallaxe] { scale: 1.1; }

  /* Partenaires : la pastille éclot, la conseillère monte ; puis la petite pastille fait lentement le tour de l’anneau,
     d’où part de temps à autre une onde fine */
  @keyframes eclosion {
    from { opacity: 0; transform: scale(.84); }
  }
  @keyframes orbite {
    to { transform: rotate(1turn); }
  }
  @keyframes onde-forme {
    0% { opacity: 0; transform: none; }
    6% { opacity: .6; }
    55%, 100% { opacity: 0; transform: scale(1.19); }
  }
  .js .partenaires__portrait.est-vu > .partenaires__forme { animation: eclosion 1s var(--courbe) var(--retard) backwards; }
  .js .partenaires__portrait.est-vu > .partenaires__conseillere { animation-duration: .9s; }
  .js .partenaires__satellite { animation: orbite 96s linear infinite; }
  .js .partenaires__forme::after { animation: onde-forme 8s var(--courbe) 2.5s infinite; }

  /* --- 9.7 Garde-fou : le script du site est arrivé après que la page est retombée sur sa version sans script
         (voir amorce.js). Le visiteur la lit déjà : les comportements reviennent, plus aucune entrée ne se joue. --- */

  .sans-entrees *, .sans-entrees *::before, .sans-entrees *::after { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .heros__plan, .photo__motif, .partenaires__conseillere { translate: none; }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   10. Impression
   ========================================================================== */

@media print {
  .entete, .evitement, .heros__scene, .partenaires__fond, .partenaires__forme, .motif, .pied__haut { display: none; }
  .internet::before, .internet::after, .partenaires::before, .pied::before, .photo::before, .photo::after { content: none; }
  .heros { padding-top: 0; min-height: 0; }
  .internet { clip-path: none; }
  .internet, .partenaires, .pied { background: none; color: var(--texte); }
  .sur-sombre h2, .sur-sombre h3, .sur-sombre strong, .pied__telephone { color: var(--nuit); }
}

/* LUCIE et ULIS : deux entrées du menu, rapprochées et reliées par un « + » décoratif (15/11/2026) */
.entete__element--ulis { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 75em) {
  .entete__element--ulis { margin-left: calc(.5rem - clamp(1.5rem, 2.6vw, 2.5rem)); }
}
.entete__element--ulis::before { content: "+"; position: relative; top: -.06em; color: var(--marque); font-family: var(--police-titre); font-weight: 500; line-height: 1; }
.js .entete__element--lucie { border-bottom: 0; }
.js .entete__element--ulis .entete__lien { width: auto; }
@media (max-width: 74.99em) {
  .js .entete__element--ulis { margin-left: 0; margin-top: -.6rem; }
  .js .entete__element--ulis::before { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.625rem); }
}
