/* =========================================================================
   Technologies-Plus — feuille de style unique.
   Écrite à la main : aucun framework, aucune dépendance.
   Sommaire :
     01. Reset            06. En-tete & navigation   11. Etapes
     02. Jetons (tokens)  07. Heros                  12. Realisations
     03. Typographie      08. Bandeau de confiance   13. FAQ
     04. Mise en page     09. Enjeux                 14. Formulaire & CTA
     05. Boutons          10. Cartes services        15. Pied de page
                                                     16. Reactivite / a11y
   ========================================================================= */

/* 01. Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
/* Les liens d'ancrage ne doivent pas cacher leur cible sous l'en-tete collant.
   --header-h est tenu a jour par assets/js/main.js. */
:target { scroll-margin-top: calc(var(--header-h, 4.5rem) + 1.5rem); }

/* 02. Jetons ------------------------------------------------------------ */
:root {
  /* Marque — reprise fidele du logo ST+ */
  --blue-900: #05243D;
  --blue-800: #08324F;
  --blue-700: #0B5A91;
  --blue-600: #0E76BC;
  --blue-500: #2A93D8;
  --blue-100: #D6E9F7;
  --blue-50:  #EEF6FC;

  --orange-700: #C4451A;
  --orange-600: #DF4F1E;
  --orange-500: #F1592A;   /* orange du logo : traits, puces, numeros */
  /* Orange des boutons pleins. Assombri par rapport au #F1592A du logo pour
     que le libelle blanc atteigne le rapport de contraste 4,5:1 exige par le
     niveau AA (le logo lui-meme passait a 3,39:1, illisible pour une partie
     des utilisateurs). */
  --orange-cta:       #CA4B23;
  --orange-cta-hover: #B23F1B;
  --orange-100: #FCE0D6;
  --orange-50:  #FFF3EE;

  /* Neutres */
  --ink:       #0D1926;
  --ink-2:     #3A4A5A;
  --ink-3:     #647484;  /* assombri pour passer AA sur fond blanc et sur --surface-2 */
  --line:      #E2E9F0;
  --line-2:    #EFF3F7;
  --surface:   #FFFFFF;
  --surface-2: #F5F9FC;
  --surface-3: #ECF2F8;

  /* Typographie */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   clamp(1.3rem, 1.1rem + 0.7vw, 1.55rem);
  --fs-h3:   clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  --fs-h2:   clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem);
  --fs-h1:   clamp(2.1rem, 1.5rem + 3.1vw, 3.75rem);

  /* Espacement */
  --gutter:   clamp(1.15rem, 4vw, 2rem);
  --section:  clamp(3.75rem, 7vw, 6.5rem);
  --max:      1180px;
  --max-text: 68ch;

  /* Habillage */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --ring: 0 0 0 3px rgba(14,118,188,.28);
  --sh-1: 0 1px 2px rgba(13,25,38,.05), 0 2px 8px rgba(13,25,38,.04);
  --sh-2: 0 4px 12px rgba(13,25,38,.07), 0 12px 28px rgba(13,25,38,.07);
  --sh-3: 0 18px 48px rgba(5,36,61,.16);
}

/* 03. Typographie ------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.033em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); letter-spacing: -.015em; }
p  { max-width: var(--max-text); }
strong { color: var(--ink); font-weight: 650; }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; flex: none;
  background: var(--orange-500); border-radius: 2px;
}
.eyebrow--light { color: var(--blue-100); }

.prose a, .link {
  color: var(--blue-700); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:hover, .link:hover { color: var(--orange-700); }

/* Listes a puces cochees */
.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.85rem; font-size: var(--fs-sm); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background-color: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E76BC' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center; background-size: .72rem; background-repeat: no-repeat;
}
.ticks--light li { color: rgba(255,255,255,.82); }
.ticks--light li::before {
  background-color: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* 04. Mise en page ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt  { background: var(--surface-2); }
.section--dark {
  background-color: var(--blue-900);
  background-image:
    radial-gradient(900px 420px at 88% -8%, rgba(14,118,188,.38), transparent 62%),
    radial-gradient(620px 340px at 4% 108%, rgba(241,89,42,.20), transparent 60%);
  color: rgba(255,255,255,.78);
}
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.80); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head > p { margin-top: .9rem; }
.section-head--center > p { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--media-first > :first-child { order: 2; }
}

/* 05. Boutons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.6rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
}
.btn { position: relative; isolation: isolate; overflow: hidden; max-width: 100%; }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; width: 1.05em; height: 1.05em; transition: transform .28s cubic-bezier(.2,.8,.3,1); }
/* La fleche avance a l'approche du curseur : le geste suggere le clic. */
.btn:hover svg:last-child { transform: translateX(.28rem); }

/* Un libelle long ne doit jamais elargir le document : sous 34rem le texte
   passe a la ligne au lieu de deborder horizontalement. */
@media (max-width: 34rem) {
  .btn { white-space: normal; text-align: center; }
}

.btn--primary {
  background: var(--orange-cta); color: #fff;
  box-shadow: 0 1px 2px rgba(150,52,20,.3), 0 6px 18px rgba(202,75,35,.26);
}
.btn--primary:hover {
  background: var(--orange-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(150,52,20,.3), 0 14px 32px rgba(202,75,35,.38);
}
.btn--primary:active { transform: translateY(0); }

/* Balayage lumineux au survol : un seul passage, jamais en boucle. */
.btn--sheen::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .62s cubic-bezier(.3,.7,.3,1);
}
.btn--sheen:hover::before { transform: translateX(120%); }

.btn--dark { background: var(--blue-800); color: #fff; }
.btn--dark:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(5,36,61,.28); }

.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover {
  border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,25,38,.08);
}

.btn--onDark {
  border-color: rgba(255,255,255,.3); color: #fff;
  background: rgba(255,255,255,.07); backdrop-filter: blur(6px);
}
.btn--onDark:hover {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.62);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.08rem 1.9rem; font-size: var(--fs-base); }
.btn--xl { padding: 1.18rem 2.15rem; font-size: var(--fs-base); border-radius: 8px; }
.btn--block { width: 100%; }

/* Halo lent sur l'appel a l'action principal du heros, pour attirer l'oeil
   sans clignoter. Desactive si l'utilisateur limite les animations. */
@keyframes halo {
  0%, 100% { box-shadow: 0 2px 4px rgba(150,52,20,.3), 0 10px 26px rgba(202,75,35,.3), 0 0 0 0 rgba(241,89,42,.42); }
  50%      { box-shadow: 0 2px 4px rgba(150,52,20,.3), 0 10px 26px rgba(202,75,35,.3), 0 0 0 .85rem rgba(241,89,42,0); }
}
.btn--halo { animation: halo 3.4s ease-out 2.6s infinite; }
.btn--halo:hover { animation-play-state: paused; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem;
  margin-top: 1.1rem; font-size: var(--fs-xs); color: var(--ink-3);
}
.btn-note span { display: inline-flex; align-items: center; gap: .4rem; }
.btn-note span::before {
  content: ""; width: .3rem; height: .3rem; border-radius: 50%;
  background: var(--orange-500); flex: none;
}
.section--dark .btn-note, .hero .btn-note { color: rgba(255,255,255,.62); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--orange-500); outline-offset: 2px; border-radius: 4px;
}

/* 06. En-tete & navigation ---------------------------------------------- */
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); font-size: var(--fs-sm); text-decoration: none;
  transition: top .18s;
}
.skip:focus { top: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background-color .25s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(13,25,38,.07); }
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 5.25rem;
  transition: min-height .28s cubic-bezier(.4,0,.2,1);
}
/* L'en-tete se compacte au defilement : plus de place pour le contenu,
   et le mouvement signale discretement que la page a defile. */
.site-header.is-stuck .wrap { min-height: 4.25rem; }

/* Barre de progression de lecture, epaisseur 2 px, pilotee en JS. */
.site-header__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
  transition: transform .1s linear;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { height: 2.6rem; width: auto; transition: height .28s cubic-bezier(.4,0,.2,1); }
.site-header.is-stuck .brand img { height: 2.2rem; }

/* Appel direct dans l'en-tete : remplace l'ancienne barre utilitaire,
   plus visible et immediatement actionnable. */
.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: 1.5rem; }
.header-tel { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.header-tel__ic {
  display: grid; place-items: center; width: 2.35rem; height: 2.35rem; flex: none;
  border-radius: 50%; background: var(--blue-50); color: var(--blue-600);
  transition: background-color .2s, color .2s, transform .2s;
}
.header-tel__ic svg { width: 1.1rem; height: 1.1rem; }
.header-tel:hover .header-tel__ic { background: var(--blue-600); color: #fff; transform: scale(1.06); }
.header-tel__txt { display: grid; line-height: 1.25; }
.header-tel__txt small { font-size: .72rem; color: var(--ink-3); }
.header-tel__txt b { font-size: var(--fs-sm); color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 82rem) { .header-tel__txt { display: none; } }

.nav { display: flex; align-items: center; gap: .15rem; }
/* Rappel telephonique reserve au menu deroulant mobile. */
.nav .nav__tel { display: none; }
.nav .nav__tel svg { width: 1.05rem; height: 1.05rem; flex: none; }
/* :not(.btn) — sans cela, .nav a (specificite superieure) ecrasait la couleur
   et la graisse du bouton "Devis gratuit" place dans le menu deroulant. */
.nav a:not(.btn):not(.nav__tel) {
  position: relative; display: block; padding: .6rem .85rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav a:not(.btn):not(.nav__tel):hover { color: var(--blue-700); }
.nav a:not(.btn):not(.nav__tel)[aria-current="page"] { color: var(--ink); font-weight: 650; }
/* Le trait se deploie depuis le centre au survol et reste affiche sur la
   page courante : un seul element, deux etats. */
.nav a:not(.btn):not(.nav__tel)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem;
  height: 2px; border-radius: 2px; background: var(--orange-500);
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .26s cubic-bezier(.2,.8,.3,1);
}
.nav a:not(.btn):not(.nav__tel):hover::after { transform: scaleX(1); }
.nav a:not(.btn):not(.nav__tel)[aria-current="page"]::after { transform: scaleX(1); }

.burger {
  display: none; width: 2.9rem; height: 2.9rem; margin-right: -.5rem;
  border-radius: var(--r-sm); color: var(--ink);
}
.burger__box { display: block; position: relative; width: 1.35rem; height: 1rem; margin-inline: auto; }
.burger__box span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .2s;
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: calc(50% - 1px); }
.burger__box span:nth-child(3) { bottom: 0; }
/* Les trois barres se replient en croix — pas de permutation d'icones.
   La boite mesure 1rem (16 px) et les barres 2 px : le centre est donc a
   7 px de chaque barre extreme. Valeur explicite plutot qu'un calc() sur
   pourcentage, qui rendait l'intention illisible. */
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 74.99rem) {
  .burger { display: block; }
  .header-actions { display: none; }
  .site-header .wrap, .site-header.is-stuck .wrap { min-height: 4.5rem; }
  .brand img, .site-header.is-stuck .brand img { height: 2.4rem; }

  /* Rappel du numero dans le menu deroulant, ou l'en-tete ne peut pas l'afficher. */
  .nav .nav__tel {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    margin-top: 1.1rem; padding: .85rem 1rem; border-radius: var(--r-sm);
    background: var(--blue-50); color: var(--blue-700);
    font-weight: 650; font-size: var(--fs-sm); text-decoration: none;
  }

  /* Le menu est positionne en absolu par rapport a l'en-tete collant, et non
     en "fixed" : le backdrop-filter de l'en-tete fait de lui le referentiel
     des enfants fixes, ce qui decalait le menu de la hauteur de la barre de
     contact. On masque par visibility plutot que par un translate calcule
     sur la hauteur du menu, qui laissait depasser le dernier bouton. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    max-height: 72dvh; overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a:not(.btn):not(.nav__tel) { padding: .9rem 1rem; font-size: var(--fs-base); border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav a:not(.btn):not(.nav__tel)::after { display: none; }
  .nav a:not(.btn):not(.nav__tel)[aria-current="page"] { color: var(--blue-700); }
  .nav .btn { margin-top: .75rem; }

  /* Les entrees apparaissent en cascade a l'ouverture du menu. */
  .nav.is-open a { animation: navIn .32s cubic-bezier(.2,.8,.3,1) backwards; }
  .nav.is-open a:nth-child(1) { animation-delay: .04s; }
  .nav.is-open a:nth-child(2) { animation-delay: .08s; }
  .nav.is-open a:nth-child(3) { animation-delay: .12s; }
  .nav.is-open a:nth-child(4) { animation-delay: .16s; }
  .nav.is-open a:nth-child(5) { animation-delay: .20s; }
  .nav.is-open a:nth-child(6) { animation-delay: .24s; }
  .nav.is-open a:nth-child(7) { animation-delay: .28s; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-.5rem); } }

/* 07. Heros ------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--blue-900); color: rgba(255,255,255,.8);
}

/* --- Arriere-plan : photo en lent travelling + voile + trame ------------ */
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%;
  transform: scale(1.12); transform-origin: 70% 40%;
  animation: heroPan 26s ease-out forwards;
}
@keyframes heroPan { to { transform: scale(1); } }

.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(101deg, rgba(4,30,51,.97) 0%, rgba(4,30,51,.92) 38%, rgba(5,36,61,.58) 70%, rgba(5,36,61,.42) 100%),
    radial-gradient(820px 460px at 84% 4%, rgba(14,118,188,.44), transparent 66%);
}
/* Deuxieme voile anime : une lueur qui respire, tres lentement. */
.hero__veil::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 400px at 18% 92%, rgba(241,89,42,.24), transparent 62%);
  animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .45; transform: translate3d(0,0,0) scale(1); }
  to   { opacity: .95; transform: translate3d(3%,-4%,0) scale(1.15); }
}

/* Trame technique discrete, en reference au metier reseau. */
.hero__grid {
  position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(760px 520px at 76% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 520px at 76% 30%, #000 0%, transparent 78%);
  animation: heroGridDrift 30s linear infinite;
}
@keyframes heroGridDrift { to { background-position: 58px 58px, 58px 58px; } }

.hero .wrap { padding-block: clamp(3.75rem, 8vw, 7rem); position: relative; }
.hero__inner { max-width: 46rem; }

/* --- Sur-titre : filet qui se trace ------------------------------------ */
.hero__kicker {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero__kicker::before {
  content: ""; width: 3.25rem; height: 2px; flex: none; border-radius: 2px;
  background: var(--orange-500);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: kickerRule .9s cubic-bezier(.2,.8,.3,1) .15s forwards;
}
@keyframes kickerRule { to { transform: scaleX(1); } }

/* --- Titre : revelation ligne par ligne sous masque -------------------- */
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #86C8F2; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp .95s cubic-bezier(.16,.84,.28,1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .22s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .34s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .46s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* --- Entree en fondu des blocs suivants -------------------------------- */
.hero__lead, .hero__cta, .hero__facts, .hero__scroll {
  opacity: 0; transform: translateY(1.1rem);
  animation: heroFade .8s cubic-bezier(.2,.8,.3,1) forwards;
}
.hero__lead   { animation-delay: .62s; }
.hero__cta    { animation-delay: .76s; }
.hero__facts  { animation-delay: .90s; }
.hero__scroll { animation-delay: 1.15s; }
@keyframes heroFade { to { opacity: 1; transform: none; } }

.hero__lead {
  margin-top: 1.4rem; max-width: 41rem;
  font-size: var(--fs-lg); line-height: 1.6; color: rgba(255,255,255,.84);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-top: 2.25rem; }

/* --- Trois preuves chiffrees, sous les boutons ------------------------- */
.hero__facts {
  display: grid; gap: 1px; margin-top: 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r);
  overflow: hidden; max-width: 42rem;
  backdrop-filter: blur(8px);
}
.hero__facts li { background: rgba(5,36,61,.42); padding: 1.05rem 1.25rem; }
.hero__facts b {
  display: block; font-size: var(--fs-xl); font-weight: 700; color: #fff;
  letter-spacing: -.02em; line-height: 1.1;
}
/* > span : sinon la regle atteindrait aussi le compteur imbrique dans le <b>
   et ecraserait sa taille. */
.hero__facts li > span { display: block; margin-top: .3rem; font-size: var(--fs-xs); color: rgba(255,255,255,.66); }

/* --- Invitation a defiler ---------------------------------------------- */
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.75rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll i {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
}
.hero__scroll svg { width: .95rem; height: .95rem; animation: scrollNudge 2.1s ease-in-out infinite; }
@keyframes scrollNudge {
  0%, 100% { transform: translateY(-.14rem); opacity: .55; }
  50%      { transform: translateY(.18rem);  opacity: 1; }
}
@media (max-width: 61.99rem) { .hero__scroll { display: none; } }

/* Bandeau de titre des pages interieures */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--blue-900);
  background-image: radial-gradient(760px 380px at 85% -20%, rgba(14,118,188,.45), transparent 62%);
  color: rgba(255,255,255,.78);
}
.pagehead .wrap { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.pagehead h1 { color: #fff; max-width: 34ch; }
.pagehead p { margin-top: 1rem; color: rgba(255,255,255,.78); font-size: var(--fs-lg); max-width: 56ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: var(--fs-xs); margin-bottom: 1.1rem; color: rgba(255,255,255,.55); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }
.crumbs [aria-current] { color: var(--blue-100); }

/* 08. Bandeau de confiance --------------------------------------------- */
.trust { background: var(--blue-800); border-top: 1px solid rgba(255,255,255,.08); }
.trust ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1px; background: rgba(255,255,255,.09);
  list-style: none; padding: 0;
}
/* Le retrait horizontal reprend la gouttiere du conteneur : le premier
   libelle se cale exactement sur les titres du reste de la page. */
.trust li {
  background: var(--blue-800); padding: 1.3rem var(--gutter);
  display: flex; gap: .85rem; align-items: flex-start;
}
.trust svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--orange-500); margin-top: .15rem; }
.trust b { display: block; color: #fff; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; }
.trust span { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.58); margin-top: .2rem; }

/* Chiffres cles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: clamp(1rem,2.5vw,2rem); }
.stat__n {
  display: block; font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem); font-weight: 700;
  line-height: 1; letter-spacing: -.04em; color: var(--blue-600);
}
.section--dark .stat__n { color: var(--blue-100); }
.stat__l { display: block; margin-top: .6rem; font-size: var(--fs-sm); }

/* 09. Enjeux (probleme -> solution) ------------------------------------ */
.pains { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 48rem) { .pains { grid-template-columns: 1fr 1fr; } }
.pain { background: var(--surface); padding: clamp(1.35rem, 2.6vw, 1.9rem); }
.pain h3 { font-size: var(--fs-lg); display: flex; gap: .7rem; align-items: baseline; }
.pain h3::before {
  content: ""; width: 1.4rem; height: 1.4rem; flex: none; border-radius: var(--r-sm);
  background-color: var(--orange-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF4F1E' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 8v4.5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E");
  background-position: center; background-size: 1.1rem; background-repeat: no-repeat;
  transform: translateY(.1rem);
}
.pain p { margin-top: .6rem; font-size: var(--fs-sm); }

/* 10. Cartes services --------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card--link:hover { border-color: var(--blue-500); box-shadow: var(--sh-2); transform: translateY(-3px); }
.card__icon {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1.1rem;
  border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-600);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: var(--fs-lg); }
.card > p { margin-top: .6rem; font-size: var(--fs-sm); }
.card .ticks { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.card__gain {
  margin-top: auto; padding-top: 1.1rem;
  font-size: var(--fs-xs); font-weight: 650; color: var(--blue-700);
}
.card__gain::before { content: "\2192\00a0"; color: var(--orange-500); }

/* Offres de maintenance */
.tiers { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
@media (min-width: 56rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex; flex-direction: column; height: 100%; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.tier--featured { border-color: var(--blue-600); box-shadow: var(--sh-3); z-index: 1; }
.tier__flag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--blue-600); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: var(--fs-xl); }
.tier__freq { margin-top: .35rem; font-size: var(--fs-sm); color: var(--blue-700); font-weight: 600; }
.tier__for { margin-top: .9rem; font-size: var(--fs-sm); padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-2); }
.tier .ticks { margin-top: 1.25rem; margin-bottom: 1.75rem; }
.tier .btn { margin-top: auto; }  /* les trois boutons s alignent en bas */

/* 11. Etapes ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--orange-500); color: #fff;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0;
}
.step::after {
  content: ""; position: absolute; top: 1.25rem; left: 3.1rem; right: -1rem;
  height: 1px; background: var(--line);
}
.section--dark .step::after { background: rgba(255,255,255,.16); }
.step:last-child::after { display: none; }
@media (max-width: 51.99rem) {
  .step::after { display: none; }
  .step { padding-top: 0; padding-left: 3.4rem; }
  .step::before { top: -.15rem; }
}
.step h3 { font-size: var(--fs-lg); }
.step p { margin-top: .5rem; font-size: var(--fs-sm); }
.step__meta { display: block; margin-top: .7rem; font-size: var(--fs-xs); font-weight: 650; color: var(--blue-700); }
.section--dark .step__meta { color: var(--blue-100); }

/* 12. Realisations ------------------------------------------------------ */
.projects { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 46rem) { .projects { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); } }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.project:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--blue-100); }
.project__media { position: relative; aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project:hover .project__media img { transform: scale(1.04); }
.project__chip {
  position: absolute; top: .8rem; left: .8rem;
  background: rgba(5,36,61,.88); color: #fff;
  font-size: var(--fs-xs); font-weight: 650; padding: .3rem .7rem; border-radius: var(--r-sm);
}
.project__body { padding: clamp(1.25rem, 2.4vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: var(--fs-lg); }
.project__client { margin-top: .45rem; font-size: var(--fs-sm); color: var(--blue-700); font-weight: 600; }
.project__body p { margin-top: .75rem; font-size: var(--fs-sm); }
.project .ticks { margin-top: 1rem; }
.project__foot {
  margin-top: auto; padding-top: 1.1rem;
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-xs); color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.project .ticks + .project__foot { margin-top: 1.25rem; }

/* 13. FAQ --------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem; cursor: pointer;
  padding: 1.15rem 0; font-size: var(--fs-lg); font-weight: 650; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 1.3rem; height: 1.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E76BC' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-position: center; background-size: contain; background-repeat: no-repeat;
  transition: transform .22s; transform: translateY(.25rem);
}
.faq details[open] summary::after { transform: translateY(.25rem) rotate(135deg); }
.faq summary:hover { color: var(--blue-700); }
.faq .answer { padding-bottom: 1.35rem; font-size: var(--fs-sm); }
.faq .answer p + p { margin-top: .8rem; }

/* 14. Formulaire & CTA -------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--ink-2);
}
.cta-card h3 { font-size: var(--fs-xl); }
.cta-card > p { font-size: var(--fs-sm); margin-top: .5rem; }

.form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.req { color: var(--orange-700); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .form-row { grid-template-columns: 1fr 1fr; } }

.input, .select, .textarea {
  width: 100%; padding: .78rem .9rem; font-size: var(--fs-sm);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9AA8B5; }
.input:hover, .select:hover, .textarea:hover { border-color: #C9D5E0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: var(--ring);
}
.textarea { min-height: 7rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A7A8A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--orange-600); background: var(--orange-50);
}
.field__error { font-size: var(--fs-xs); color: var(--orange-700); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-3); }
.consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blue-600); flex: none; }

.alert { padding: 1rem 1.15rem; border-radius: var(--r-sm); font-size: var(--fs-sm); border: 1px solid; }
.alert--ok  { background: #EDFBF3; border-color: #A8E5C4; color: #14603B; }
.alert--err { background: var(--orange-50); border-color: var(--orange-100); color: var(--orange-700); }
.alert b { display: block; margin-bottom: .2rem; color: inherit; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; list-style: disc; }

/* Bloc coordonnees */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__ic {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: var(--r-sm); background: rgba(255,255,255,.1); color: #fff;
}
.contact-item__ic svg { width: 1.25rem; height: 1.25rem; }
.contact-item dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--blue-100); }
.contact-item dd { margin: .3rem 0 0; font-size: var(--fs-base); }
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { text-decoration: underline; }
.contact-item dd span { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.55); margin-top: .15rem; }
.section--alt .contact-item__ic, .cta-card .contact-item__ic { background: var(--blue-50); color: var(--blue-600); }
.section--alt .contact-item dt, .cta-card .contact-item dt { color: var(--ink-3); }
.section--alt .contact-item dd span, .cta-card .contact-item dd span { color: var(--ink-3); }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-3); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* 15. Pied de page ------------------------------------------------------ */
.site-footer {
  background: var(--blue-900); color: rgba(255,255,255,.62); font-size: var(--fs-sm);
  border-top: 1px solid rgba(255,255,255,.09);
}
.site-footer .wrap { padding-block: clamp(2.75rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.site-footer h2 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .11em;
  color: #fff; margin-bottom: 1.1rem; font-weight: 700;
}
.site-footer .flogo { height: 2.75rem; width: auto; background: #fff; padding: .4rem .6rem; border-radius: var(--r-sm); }
.site-footer p { font-size: var(--fs-sm); margin-top: 1rem; max-width: 34ch; }
.fnav { display: grid; gap: .65rem; }
.fnav a { text-decoration: none; }
.fnav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: .55rem; margin-top: 1.4rem; }
.social a {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); color: #fff;
  transition: background-color .15s, border-color .15s;
}
.social a:hover { background: var(--blue-600); border-color: var(--blue-600); }
.social svg { width: 1.05rem; height: 1.05rem; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: rgba(255,255,255,.45); }
.footer-bar .wrap {
  padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; align-items: center;
}
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { color: #fff; text-decoration: underline; }

/* Barre d'action mobile */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(13,25,38,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; font-size: var(--fs-sm); font-weight: 650; text-decoration: none;
  background: var(--surface); color: var(--ink);
}
.action-bar a.is-primary { background: var(--orange-cta); color: #fff; }
.action-bar svg { width: 1.1rem; height: 1.1rem; flex: none; }
@media (max-width: 47.99rem) {
  .action-bar { display: flex; }
  body { padding-bottom: 3.6rem; }
}

/* 16. Divers / a11y ---------------------------------------------------- */
.media-frame { position: relative; isolation: isolate; }
.media-frame img { border-radius: var(--r-lg); box-shadow: var(--sh-2); width: 100%; }
.media-frame::before {
  content: ""; position: absolute; right: -1.25rem; bottom: -1.25rem;
  width: 62%; height: 62%; border-radius: var(--r-lg); z-index: -1;
  background: linear-gradient(135deg, var(--blue-100), var(--orange-100));
}
/* Sur petit ecran l'image occupe toute la largeur : le decalage decoratif
   depasserait la gouttiere et creerait un defilement horizontal de 2 px. */
@media (max-width: 34rem) {
  .media-frame::before { display: none; }
}
.media-badge {
  position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem;
  background: rgba(255,255,255,.96);
  border-radius: var(--r-sm); padding: .85rem 1rem; box-shadow: var(--sh-1);
  font-size: var(--fs-xs); color: var(--ink-2);
}
.media-badge b { display: block; color: var(--ink); font-size: var(--fs-sm); }

/* --- Systeme d'apparition au defilement --------------------------------
   [data-reveal] choisit la direction, --d le retard (pose par le script
   sur les enfants d'un [data-stagger]). Seules opacity et transform sont
   animees : pas de recalcul de mise en page, donc pas de saccade. */
[data-reveal], .reveal {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.2,.8,.3,1), transform .75s cubic-bezier(.2,.8,.3,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"],    .reveal { transform: translateY(1.6rem); }
[data-reveal="left"]           { transform: translateX(-1.9rem); }
[data-reveal="right"]          { transform: translateX(1.9rem); }
[data-reveal="scale"]          { transform: scale(.955); }
[data-reveal="blur"]           { transform: translateY(1rem); filter: blur(6px); }
[data-reveal].is-in, .reveal.is-in {
  opacity: 1; transform: none; filter: none; will-change: auto;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .action-bar, .site-footer, .cta-band, .map, .skip { display: none !important; }
  body { color: #000; font-size: 11pt; padding-bottom: 0; }
  .section { padding-block: 1rem; }
  .hero::after, .hero__bg { display: none; }
  .hero, .pagehead { background: #fff; color: #000; }
  .hero h1, .pagehead h1 { color: #000; }
}

/* Le bouton de devis du menu deroulant ne doit pas doubler celui de l en-tete */
@media (min-width: 75rem) { .nav > .btn { display: none; } }

/* =========================================================================
   17. Bande defilante, ruban d'appel a l'action, micro-animations
   ========================================================================= */

/* --- Bande defilante ---------------------------------------------------
   Enumere les competences techniques en continu, juste sous le heros.
   Le contenu est duplique par le script pour que la boucle soit invisible. */
.ticker {
  position: relative; overflow: hidden;
  background: var(--blue-800);
  border-block: 1px solid rgba(255,255,255,.09);
  padding-block: .95rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tickerRun 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group li {
  display: flex; align-items: center; gap: 1.6rem;
  padding-inline: .8rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  color: rgba(255,255,255,.72); white-space: nowrap;
}
.ticker__group li::after {
  content: ""; width: .32rem; height: .32rem; flex: none;
  transform: rotate(45deg); background: var(--orange-500);
}
@keyframes tickerRun { to { transform: translate3d(-50%, 0, 0); } }

/* --- Ruban d'appel a l'action intermediaire ---------------------------- */
.ribbon {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  background-color: var(--blue-800);
  background-image:
    radial-gradient(640px 320px at 88% -30%, rgba(14,118,188,.55), transparent 66%),
    radial-gradient(420px 260px at 6% 130%, rgba(241,89,42,.3), transparent 62%);
  color: rgba(255,255,255,.82);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  display: grid; gap: 1.75rem; align-items: center;
}
@media (min-width: 52rem) { .ribbon { grid-template-columns: 1fr auto; gap: 2.5rem; } }
.ribbon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(520px 260px at 82% 50%, #000, transparent 76%);
          mask-image: radial-gradient(520px 260px at 82% 50%, #000, transparent 76%);
}
.ribbon h2 { color: #fff; font-size: var(--fs-h3); }
.ribbon p { margin-top: .7rem; font-size: var(--fs-sm); color: rgba(255,255,255,.76); max-width: 52ch; }
.ribbon .btn-row { flex-wrap: nowrap; }
@media (max-width: 34rem) { .ribbon .btn-row { flex-wrap: wrap; } .ribbon .btn { width: 100%; } }

/* --- Micro-animations des cartes de service ---------------------------- */
.card__icon { transition: background-color .28s, color .28s, transform .35s cubic-bezier(.2,.8,.3,1); }
.card--link:hover .card__icon { background: var(--blue-600); color: #fff; transform: translateY(-2px) rotate(-4deg); }
.card__gain { transition: transform .28s cubic-bezier(.2,.8,.3,1); }
.card--link:hover .card__gain { transform: translateX(.2rem); }
/* Liseré qui se remplit sur le bord superieur au survol. */
.card--link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .42s cubic-bezier(.2,.8,.3,1);
}
.card--link:hover::after { transform: scaleX(1); }

/* --- Formule mise en avant : contour anime -----------------------------
   Le contour est un degrade conique place SOUS la carte (::before), qu'un
   aplat blanc (::after) recouvre en laissant deborder 2 px. La carte doit
   donc etre transparente, sinon son fond masquerait le degrade. Pas
   d'overflow:hidden ici : il rognerait l'etiquette qui chevauche le bord. */
.tier--featured {
  position: relative; isolation: isolate;
  background: transparent; border-color: transparent;
}
.tier--featured::before {
  content: ""; position: absolute; inset: -2px; z-index: -2;
  border-radius: calc(var(--r-lg) + 2px);
  background: conic-gradient(from var(--angle, 0deg),
    var(--blue-600), var(--orange-500) 25%, var(--blue-600) 50%,
    var(--blue-500) 75%, var(--blue-600));
  animation: tierSpin 8s linear infinite;
}
.tier--featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--r-lg); background: var(--surface);
}
/* @property rend l'angle interpolable ; la ou il n'est pas gere, le
   contour reste affiche en degrade fixe. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tierSpin { to { --angle: 360deg; } }
/* L'etiquette doit passer au-dessus du contour. */
.tier__flag { z-index: 2; }

/* --- Etapes : le trait se dessine a l'arrivee -------------------------- */
.step::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2,.8,.3,1) var(--d, 0ms); }
.steps.is-in .step::after { transform: scaleX(1); }
.step::before { transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.step:hover::before { transform: scale(1.12); }

/* --- Cartes projet : la legende monte au survol ------------------------ */
.project__chip { transition: transform .3s cubic-bezier(.2,.8,.3,1), background-color .3s; }
.project:hover .project__chip { transform: translateY(-2px); background: var(--orange-cta); }

/* --- Enjeux : accent lateral au survol --------------------------------- */
.pain { position: relative; transition: background-color .25s; }
.pain::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange-500); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .38s cubic-bezier(.2,.8,.3,1);
}
.pain:hover::after { transform: scaleY(1); }
.pain:hover { background: var(--surface-2); }

/* --- Compteurs --------------------------------------------------------- */
.counter { font-variant-numeric: tabular-nums; }

/* --- FAQ : ouverture fluide -------------------------------------------- */
/* <details> n'anime pas sa hauteur ; la grille a 0fr -> 1fr le permet. */
.faq .answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.3,.8,.3,1); }
.faq details[open] .answer-wrap { grid-template-rows: 1fr; }
.faq .answer { overflow: hidden; }

/* --- Respect de la preference "animations reduites" --------------------
   Tout ce qui bouge de lui-meme est arrete ; rien n'est masque. */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__veil::after, .hero__grid,
  .hero h1 .line > span, .hero__lead, .hero__cta, .hero__facts, .hero__scroll,
  .hero__kicker::before, .ticker__track, .tier--featured::before,
  .hero__scroll svg, .btn--halo, .nav.is-open a {
    animation: none !important;
  }
  .hero h1 .line > span { transform: none; }
  .hero__lead, .hero__cta, .hero__facts, .hero__scroll { opacity: 1; transform: none; }
  .hero__kicker::before { transform: scaleX(1); }
  .hero__bg img { transform: scale(1); }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .step::after, .card--link::after, .pain::after { transition: none; }
  .steps.is-in .step::after { transform: scaleX(1); }
}

/* Les intitules du menu ne doivent pas se couper en deux lignes. */
.nav a:not(.btn):not(.nav__tel) { white-space: nowrap; }

/* --- Heros sur telephone -----------------------------------------------
   Le decoupage en trois lignes est pense pour les grandes largeurs. En
   dessous, chaque ligne se recasserait a son tour et produirait un pave
   irregulier : on laisse donc le titre couler naturellement et on remplace
   la revelation ligne par ligne par une simple montee d'ensemble. */
@media (max-width: 47.99rem) {
  :root { --fs-h1: clamp(1.95rem, 1.4rem + 3vw, 3.75rem); }

  .hero h1 .line { display: inline; overflow: visible; padding-bottom: 0; }
  .hero h1 .line > span { display: inline; transform: none; animation: none; }
  .hero h1 {
    opacity: 0; transform: translateY(1rem);
    animation: heroFade .85s cubic-bezier(.2,.8,.3,1) .22s forwards;
  }

  .hero__kicker { letter-spacing: .12em; }
  .hero__kicker::before { width: 2.25rem; }
}
/* Le pays n'apporte rien sur un ecran etroit : l'adresse complete figure
   dans le pied de page et sur la page contact. */
@media (max-width: 30rem) {
  .hero__kicker .is-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none !important; opacity: 1; transform: none; }
}
