/* LOUNES DIGITAL : feuille de style du site. Thème clair unique, CSS natif, sans framework.
 *
 * Système de formes (règle unique, appliquée partout) :
 *   --r-l   18px  grands blocs (bandes d'appel à l'action, panneaux)
 *   --r     14px  cartes et captures d'écran
 *   --r-btn 10px  boutons
 *   --r-s    8px  champs de saisie et cases à cocher
 *
 * Mouvement : uniquement transform et opacity, courbes communes (--ease-*), durées courtes
 * (160 à 640 ms). Chaque animation a une raison : hiérarchie (entrée du hero, apparition au
 * défilement), retour d'action (boutons, cases, envoi), transition d'état (menu, arrivée des pages).
 * Tout est neutralisé si l'utilisateur a demandé de réduire les animations.
 */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  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: 'Geist';
  src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --marine: #001030;
  --marine-2: #0a1a45;
  --bleu: #0050f0;
  --bleu-h: #0044d6;
  --bleu-pale: #e9efff;
  --bleu-10: rgba(0, 80, 240, 0.12);
  --encre: #0b1430;
  --texte: #2a3350;
  --texte-2: #5b6479;
  --ligne: #d9dfeb;
  --ligne-2: #eceff6;
  --ligne-forte: #b7c1d6;
  --fond: #ffffff;
  --fond-2: #f5f7fb;
  --fond-marine: #061336;
  --clair-sur-marine: #d6def2;
  --ok: #0c6b42;
  --ok-pale: #e6f6ee;
  --erreur: #b3261e;
  --erreur-pale: #fbeae9;
  --avert: #7a5200;
  --avert-pale: #fff4d6;
  /* Pôle SEO et marketing digital : couleur signature, réservée à ce pôle */
  --seo: #ff5a1f;
  --seo-h: #ff6d39;
  --seo-fonce: #c2410c; /* texte sur fond clair (contraste AA) */
  --seo-pale: #fff1e9;
  --bord-saisie: #7a849c;

  --r-l: 18px;
  --r: 14px;
  --r-btn: 10px;
  --r-s: 8px;

  /* Ombres teintées marine, lumière venant du haut */
  --ombre: 0 18px 40px -18px rgba(0, 16, 48, 0.35), 0 2px 6px rgba(0, 16, 48, 0.06);
  --ombre-douce: 0 1px 2px rgba(0, 16, 48, 0.05), 0 8px 24px -14px rgba(0, 16, 48, 0.20);
  --ombre-levee: 0 2px 4px rgba(0, 16, 48, 0.05), 0 22px 44px -18px rgba(0, 16, 48, 0.32);

  /* Courbes et durées */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-rapide: 160ms;
  --t: 240ms;
  --t-lent: 640ms;

  --wrap: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --hauteur-entete: 68px;
  --police: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--police);
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(0, 80, 240, 0.18); color: var(--encre); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-rapide) var(--ease-out), text-decoration-color var(--t-rapide) var(--ease-out); }
a:hover { color: var(--bleu-h); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.section-marine :focus-visible, .pied :focus-visible, .activite-marques :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { color: var(--encre); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.024em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
p, li, dd, td { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--texte); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.a-confirmer { display: inline-block; background: var(--avert-pale); color: var(--avert); padding: 0 8px; border-radius: 6px; font-size: 0.92em; font-weight: 500; }
.sprite { display: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gouttiere); }
/* Rythme vertical : un peu plus d'air sous les sections qu'au-dessus (correction optique) */
.section { padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.section-2 { background: var(--fond-2); }
.section-marine { background: var(--fond-marine); color: var(--clair-sur-marine); }
.section-marine h2, .section-marine h3 { color: #fff; }
.section-marine a:not(.btn) { color: #fff; }
.section-tete { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-tete p { color: var(--texte-2); }

.lien-evitement {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--marine); color: #fff; padding: 10px 14px; border-radius: var(--r-s);
  transform: translateY(-160%); transition: transform var(--t) var(--ease-out);
}
.lien-evitement:focus { transform: none; color: #fff; }
.bandeau-test { background: var(--avert-pale); color: var(--avert); text-align: center; font-size: 0.9rem; padding: 8px var(--gouttiere); }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-btn);
  font: 600 0.95rem/1.2 var(--police); letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition:
    transform var(--t) var(--ease-out),
    background-color var(--t) var(--ease-out),
    border-color var(--t) var(--ease-out),
    color var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; transition: transform var(--t) var(--ease-out); }
.btn-grand { padding: 15px 24px; font-size: 1.02rem; }

/* Primaire : léger reflet interne + ombre teintée de bleu */
.btn-primaire {
  background: var(--bleu); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 30, 110, 0.28), 0 6px 18px -8px rgba(0, 80, 240, 0.6);
}
.btn-primaire::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
}
.btn-primaire:hover { background: var(--bleu-h); color: #fff; }

.btn-secondaire { background: #fff; color: var(--encre); border-color: var(--ligne); box-shadow: 0 1px 2px rgba(0, 16, 48, 0.05); }
.btn-secondaire:hover { color: var(--encre); border-color: var(--ligne-forte); background: var(--fond-2); }

.btn-marine {
  background: var(--marine); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 16, 48, 0.3), 0 8px 20px -10px rgba(0, 16, 48, 0.55);
}
.btn-marine:hover { background: var(--marine-2); color: #fff; }

.btn-contour-clair { background: rgba(255, 255, 255, 0.02); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-contour-clair:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

/* Survol (pointeur fin uniquement : pas d'effet collant sur écran tactile) */
@media (hover: hover) and (pointer: fine) {
  .btn-primaire:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0, 30, 110, 0.22), 0 14px 26px -12px rgba(0, 80, 240, 0.7); }
  .btn-marine:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 16, 48, 0.25), 0 14px 28px -12px rgba(0, 16, 48, 0.6); }
  .btn-secondaire:hover, .btn-contour-clair:hover { transform: translateY(-1px); }
  .btn:hover .ico-fleche { transform: translateX(3px); }
  .btn[download]:hover .ico { transform: translateY(2px); }
  .btn[target="_blank"]:hover .ico { transform: translate(2px, -2px); }
}
/* Pression : retour physique immédiat */
.btn:active, .btn:hover:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }
.btn[disabled] { cursor: progress; opacity: 0.9; transform: none; }

/* Envoi en cours : barre de progression indéterminée dans le bouton (pas de spinner circulaire) */
.btn.est-en-cours::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 38%;
  background: rgba(255, 255, 255, 0.85); border-radius: 3px;
  animation: progression 1.1s var(--ease-in-out) infinite;
}
@keyframes progression { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* Lien avec flèche : soulignement qui apparaît, flèche qui avance */
.lien-fleche {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
}
.lien-fleche .ico { width: 18px; height: 18px; transition: transform var(--t) var(--ease-out); }
.lien-fleche:hover { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .lien-fleche:hover .ico { transform: translateX(3px); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--ligne-2);
  transition: box-shadow var(--t) var(--ease-out), background-color var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
}
/* Après défilement : l'en-tête se détache du contenu */
.entete.est-defile { background: rgba(255, 255, 255, 0.84); border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(0, 16, 48, 0.06), 0 10px 28px -18px rgba(0, 16, 48, 0.3); }
.entete-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--hauteur-entete); }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; border-radius: 8px; }
.marque-signe { height: 32px; width: auto; transition: transform var(--t) var(--ease-out); }
.marque-nom { height: 15px; width: auto; }
@media (hover: hover) and (pointer: fine) { .marque:hover .marque-signe { transform: rotate(-4deg) scale(1.04); } }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); }
.nav a:not(.btn) { position: relative; display: inline-block; color: var(--encre); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; white-space: nowrap; }
/* Soulignement qui se dessine depuis la gauche */
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--bleu); transform: scaleX(0); transform-origin: right center;
  transition: transform var(--t) var(--ease-out);
}
.nav a:not(.btn):hover { color: var(--encre); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }

.menu-mobile { display: none; }
.menu-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--ligne); border-radius: var(--r-btn);
  font-weight: 600; font-size: 0.95rem; color: var(--encre); background: #fff;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color var(--t-rapide) var(--ease-out), border-color var(--t-rapide) var(--ease-out), transform var(--t-rapide) var(--ease-out);
}
.menu-mobile summary:active { transform: scale(0.96); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--fond-2); border-color: var(--ligne-forte); }
.menu-mobile .ico-fermer { display: none; }
.menu-mobile[open] .ico-fermer { display: block; animation: tourne var(--t) var(--ease-out); }
.menu-mobile[open] .ico-menu { display: none; }
@keyframes tourne { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } }

@media (max-width: 1099px) {
  .menu-mobile { display: block; margin-left: auto; }
  /* Panneau toujours dans le DOM : il glisse et s'estompe au lieu d'apparaître d'un coup */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #fff; border-bottom: 1px solid var(--ligne); padding: 8px var(--gouttiere) 20px; box-shadow: var(--ombre);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), visibility 0s linear var(--t);
  }
  .menu-mobile[open] + .nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity var(--t) var(--ease-out), transform var(--t-lent) var(--ease-out), visibility 0s;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--ligne-2); opacity: 0; transform: translateY(-6px); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
  .menu-mobile[open] + .nav li { opacity: 1; transform: none; transition-delay: calc(40ms + var(--i, 0) * 35ms); }
  .nav li:nth-child(2) { --i: 1; } .nav li:nth-child(3) { --i: 2; } .nav li:nth-child(4) { --i: 3; } .nav li:nth-child(5) { --i: 4; } .nav li:nth-child(6) { --i: 5; }
  .nav li.nav-cta { border: 0; padding-top: 14px; }
  .nav a:not(.btn) { display: block; padding: 14px 4px; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn)[aria-current="page"] { color: var(--bleu); }
  .nav .btn { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.pied { background: var(--marine); color: var(--clair-sur-marine); padding-top: clamp(48px, 6vw, 72px); font-size: 0.95rem; }
.pied a { color: #fff; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.pied a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.7); }
.pied h2 { color: #fff; font-size: 0.95rem; letter-spacing: 0; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied-grille { display: grid; gap: 36px; padding-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 700px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pied-grille { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.pied-marque p { margin-top: 18px; max-width: 42ch; }
.marque-blanche .marque-signe { height: 30px; }
.marque-blanche .marque-nom { height: 14px; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: #aab5d4; }
.pied-bas p { margin: 0; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 104px); overflow: hidden; }
/* Halo de couleur de marque derrière les captures (profondeur, sans dégradé « IA ») */
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  /* Ellipse contenue dans la section : elle s'éteint avant les bords, aucune arête visible */
  top: 0; bottom: 0; right: 0; width: 64%;
  background: radial-gradient(closest-side, rgba(0, 80, 240, 0.12), rgba(0, 80, 240, 0.045) 55%, rgba(0, 80, 240, 0));
}
.hero-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; } }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 2.95rem); max-width: 24ch; margin-bottom: 0.55em; letter-spacing: -0.032em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-visuel { position: relative; margin: 0; }
.hero-ecrans { position: relative; }
.capture { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.capture img { width: 100%; }
.hero-capture-mobile {
  position: absolute; right: clamp(-10px, -1vw, 0px); bottom: -32px; width: clamp(112px, 22%, 170px);
  border-radius: 20px; border: 3px solid #fff; box-shadow: var(--ombre-levee), 0 0 0 1px var(--ligne);
}
.hero-visuel figcaption { margin-top: 52px; font-size: 0.9rem; color: var(--texte-2); max-width: 44ch; }

/* ------------------------------------------------------------------ */
/* Deux activités                                                      */
/* ------------------------------------------------------------------ */
.deux-activites { display: grid; gap: 20px; }
@media (min-width: 880px) { .deux-activites { grid-template-columns: 1fr 1fr; } }
.activite { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-l); padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.activite h3 { font-size: 1.45rem; margin: 0; }
.activite p { margin: 0; }
.activite ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.activite li { display: flex; gap: 10px; align-items: flex-start; }
.activite li .ico { width: 18px; height: 18px; margin-top: 4px; }
.activite .actions { margin-top: auto; padding-top: 10px; }
.activite-services { background: var(--fond-2); border: 1px solid var(--ligne-2); }
.activite-services li .ico { color: var(--bleu); }
.activite-marques { background: var(--fond-marine); color: var(--clair-sur-marine); }
.activite-marques::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: -40%; right: -30%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0, 80, 240, 0.35), rgba(0, 80, 240, 0));
}
.activite-marques h3 { color: #fff; }
.activite-marques li .ico { color: #8fb0ff; }
.activite-marques a:not(.btn) { color: #fff; }

/* ------------------------------------------------------------------ */
/* Grille des services (accueil)                                       */
/* ------------------------------------------------------------------ */
.services-grille { display: grid; gap: 18px; }
@media (min-width: 860px) { .services-grille { grid-template-columns: repeat(12, 1fr); } .service-carte:nth-child(1), .service-carte:nth-child(4) { grid-column: span 7; } .service-carte:nth-child(2), .service-carte:nth-child(3) { grid-column: span 5; } }
.service-carte {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r); background: var(--fond-2); border: 1px solid var(--ligne-2);
  text-decoration: none; color: inherit;
  transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.service-carte:nth-child(1), .service-carte:nth-child(4) { background: linear-gradient(135deg, var(--bleu-pale) 0%, #f7f9ff 60%, #fff 100%); }
/* Halo qui suit le pointeur (position fournie par site.js) */
.service-carte::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 0%), rgba(0, 80, 240, 0.11), rgba(0, 80, 240, 0) 65%);
  transition: opacity var(--t) var(--ease-out);
}
.service-carte:hover { color: inherit; border-color: rgba(0, 80, 240, 0.45); }
.service-carte .ico { width: 30px; height: 30px; color: var(--bleu); transition: transform var(--t) var(--ease-ressort); }
.service-carte h3 { margin: 4px 0 0; }
.service-carte p { margin: 0; color: var(--texte); }
.service-carte .lien-fleche { margin-top: auto; padding-top: 8px; color: var(--bleu); }
@media (hover: hover) and (pointer: fine) {
  .service-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-levee); }
  .service-carte:hover::before { opacity: 1; }
  .service-carte:hover > .ico { transform: translateY(-2px) scale(1.06); }
  .service-carte:hover .lien-fleche { text-decoration-color: currentColor; }
  .service-carte:hover .lien-fleche .ico { transform: translateX(3px); }
}
.service-carte:active { transform: translateY(-1px) scale(0.995); transition-duration: 90ms; }

/* Méthode */
.methode { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.methode li { display: grid; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--ligne); }
@media (min-width: 760px) { .methode li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.methode h3 { margin: 0; font-size: 1.25rem; }
.methode p { margin: 0; }
.methode-note { margin-top: 24px; color: var(--texte-2); max-width: 70ch; }

/* ------------------------------------------------------------------ */
/* Produits                                                            */
/* ------------------------------------------------------------------ */
.produit { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .produit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .produit-inverse .produit-visuel { order: 2; } }
.produit + .produit { margin-top: clamp(48px, 7vw, 96px); }
.produit h3, .produit h2.produit-nom { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 0.4em; }
.produit-visuel { margin: 0; }
.produit-faits { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.produit-faits li { display: flex; gap: 10px; align-items: flex-start; }
.produit-faits .ico { color: var(--bleu); margin-top: 4px; width: 18px; height: 18px; }
.produit-visuel figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--texte-2); }
.produit-note { font-size: 0.92rem; color: var(--texte-2); margin-top: 14px; }
.produit-details { margin-top: clamp(40px, 6vw, 72px); }

/* Bande brochure */
.bande-brochure {
  background: radial-gradient(120% 160% at 100% 0%, #dbe5ff 0%, var(--bleu-pale) 55%);
  border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; align-items: center;
}
@media (min-width: 860px) { .bande-brochure { grid-template-columns: minmax(0, 1fr) auto; } }
.bande-brochure h2 { margin-bottom: 0.3em; }
.bande-brochure p { margin: 0; color: var(--texte); }
.bande-brochure .btn { justify-self: start; }

/* CTA final */
.cta-final { position: relative; isolation: isolate; overflow: hidden; }
.cta-final::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; right: 0; width: 62%;
  background: radial-gradient(closest-side, rgba(0, 80, 240, 0.30), rgba(0, 80, 240, 0));
}
.cta-final-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-final-inner { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta-final p { max-width: 58ch; margin: 0; font-size: 1.05rem; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ */
/* Pages intérieures                                                   */
/* ------------------------------------------------------------------ */
.bandeau-page { position: relative; isolation: isolate; overflow: hidden; background: var(--fond-2); border-bottom: 1px solid var(--ligne-2); padding-block: clamp(36px, 5vw, 64px); }
.bandeau-page::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; right: 0; width: 58%;
  background: radial-gradient(closest-side, rgba(0, 80, 240, 0.10), rgba(0, 80, 240, 0));
}
.bandeau-page h1 { max-width: 20ch; }
.bandeau-page .lead { margin-bottom: 1.4em; }
.fil { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--texte-2); }
.fil a { color: var(--texte-2); text-decoration-color: rgba(91, 100, 121, 0.4); }
.fil a:hover { color: var(--encre); text-decoration-color: currentColor; }
.fil li + li::before { content: '/'; margin-right: 6px; color: var(--ligne-forte); }

.grille-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 28px; }
@media (min-width: 760px) { .grille-points { grid-template-columns: 1fr 1fr; } }
.grille-points.une-colonne { grid-template-columns: 1fr; }
.grille-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ligne-2); }
.grille-points .ico { color: var(--bleu); margin-top: 3px; }

.projets { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .projets { grid-template-columns: 1fr 1fr; } }
.projets li { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 1px 2px rgba(0, 16, 48, 0.04); }
.projets h3 { font-size: 1.1rem; margin-bottom: 8px; }
.projets p { margin: 0; color: var(--texte); }
.note-illustration { margin-top: 18px; color: var(--texte-2); font-size: 0.92rem; }

.deux-colonnes { display: grid; gap: 32px; }
@media (min-width: 860px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 56px; } }
.deux-colonnes > div > h2 { margin-bottom: 0.8em; }
.liste-coche { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-coche li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coche .ico { color: var(--ok); margin-top: 4px; width: 18px; height: 18px; }

.cta-service {
  background: radial-gradient(120% 160% at 100% 0%, #dbe5ff 0%, var(--bleu-pale) 55%);
  border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; align-items: center;
}
@media (min-width: 860px) { .cta-service { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-service h2 { margin-bottom: 0.3em; }
.cta-service p { margin: 0; }

.liens-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .liens-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .liens-services { grid-template-columns: repeat(4, 1fr); } }
.liens-services a {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; height: 100%;
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); color: var(--encre); text-decoration: none; font-weight: 600;
  transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), color var(--t) var(--ease-out);
}
.liens-services a:hover { border-color: var(--bleu); color: var(--bleu); }
.liens-services .ico { color: var(--bleu); width: 24px; height: 24px; transition: transform var(--t) var(--ease-ressort); }
.liens-services a[aria-current="page"] { border-color: var(--bleu); background: var(--bleu-pale); }
@media (hover: hover) and (pointer: fine) {
  .liens-services a:hover { transform: translateY(-2px); box-shadow: var(--ombre-douce); }
  .liens-services a:hover .ico { transform: scale(1.1); }
}
.liens-services a:active { transform: scale(0.98); transition-duration: 90ms; }

.services-liste { display: grid; gap: 22px; }
@media (min-width: 860px) { .services-liste { grid-template-columns: 1fr 1fr; } }
/* Carte entièrement cliquable : le lien « Voir le détail » couvre la carte */
.service-resume {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px);
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r);
  transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.service-resume .lien-fleche::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-resume:has(.lien-fleche:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 3px; }
.service-resume .lien-fleche:focus-visible { outline: none; }
.service-resume:hover { border-color: rgba(0, 80, 240, 0.45); }
.service-resume > .ico { width: 30px; height: 30px; color: var(--bleu); transition: transform var(--t) var(--ease-ressort); }
.service-resume h2 { font-size: 1.35rem; margin: 2px 0 0; }
.service-resume p { margin: 0; }
.service-resume .actions { margin-top: auto; padding-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .service-resume:hover { transform: translateY(-3px); box-shadow: var(--ombre-levee); }
  .service-resume:hover > .ico { transform: translateY(-2px) scale(1.06); }
  .service-resume:hover .lien-fleche { text-decoration-color: currentColor; }
  .service-resume:hover .lien-fleche .ico { transform: translateX(3px); }
}

/* Page entreprise */
.faits { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 700px) { .faits { grid-template-columns: 1fr 1fr; } }
.faits li { padding: 20px 22px; border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(0, 16, 48, 0.04); }
.faits strong { display: block; color: var(--encre); margin-bottom: 4px; }

/* ------------------------------------------------------------------ */
/* Formulaire                                                          */
/* ------------------------------------------------------------------ */
.formulaire-page { display: grid; gap: 40px; }
@media (min-width: 1000px) { .formulaire-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; } .formulaire-aside { position: sticky; top: 92px; } }
.formulaire-aside { background: var(--fond-2); border: 1px solid var(--ligne-2); border-radius: var(--r-l); padding: 26px 28px; font-size: 0.97rem; }
.formulaire-aside h2 { font-size: 1.15rem; }
.formulaire-aside ul { padding-left: 1.1em; }
fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { font-weight: 600; color: var(--encre); font-size: 1.2rem; letter-spacing: -0.01em; padding: 0; margin-bottom: 16px; }
.sous-groupe { border: 0; padding: 0; margin: 0; min-width: 0; }
.sous-groupe legend { font-size: 0.97rem; margin-bottom: 10px; }
.grille-champs { display: grid; gap: 18px; }
@media (min-width: 640px) { .grille-champs { grid-template-columns: 1fr 1fr; } .champ-large { grid-column: 1 / -1; } }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .libelle { font-weight: 600; color: var(--encre); font-size: 0.97rem; }
.facultatif { font-weight: 400; color: var(--texte-2); }
.aide { font-size: 0.88rem; color: var(--texte-2); margin: 0; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="url"], .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: #fff;
  border: 1px solid var(--bord-saisie); border-radius: var(--r-s); padding: 12px 14px; min-height: 48px;
  transition: border-color var(--t-rapide) var(--ease-out), box-shadow var(--t-rapide) var(--ease-out), background-color var(--t-rapide) var(--ease-out);
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #56617b; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ select { appearance: none; -webkit-appearance: none; background-image: url("/assets/img/chevron-bas.svg"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
/* Focus : bordure bleue et halo doux (remplace le contour par défaut, reste bien visible) */
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(0, 80, 240, 0.16); }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: var(--erreur); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.08); }
.champ.erreur .cases .case { border-color: #e4a9a4; }
.champ-erreur { color: var(--erreur); font-size: 0.9rem; margin: 0; font-weight: 500; }
.champ-erreur:not([hidden]) { animation: apparait var(--t) var(--ease-out); }
.cases { display: grid; gap: 10px; border-radius: var(--r-s); }
@media (min-width: 640px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--ligne); border-radius: var(--r-s); background: #fff; cursor: pointer; font-weight: 500; color: var(--encre);
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: border-color var(--t-rapide) var(--ease-out), background-color var(--t-rapide) var(--ease-out), box-shadow var(--t-rapide) var(--ease-out), transform var(--t-rapide) var(--ease-out);
}
.case:hover { border-color: var(--bleu); }
.case:active { transform: scale(0.985); }
/* Service sélectionné : la carte entière l'indique, pas seulement la case */
.case:has(input:checked) { border-color: var(--bleu); background: var(--bleu-pale); box-shadow: inset 0 0 0 1px var(--bleu); }
.case:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 2px; }
.case input:focus-visible { outline: none; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bleu); flex: none; cursor: pointer; }
.case-simple { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--texte); cursor: pointer; }
.case-simple input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--bleu); flex: none; cursor: pointer; }
.case-marketing { margin-top: 14px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.donnees { background: var(--fond-2); border-radius: var(--r-s); padding: 16px 18px; font-size: 0.92rem; color: var(--texte); }
.form-statut { border-radius: var(--r-s); padding: 14px 16px; margin: 0 0 20px; font-weight: 500; }
.form-statut:not([hidden]) { animation: apparait var(--t) var(--ease-out); }
.form-statut.est-erreur { background: var(--erreur-pale); color: var(--erreur); border: 1px solid #efb9b5; }
.form-statut.est-info { background: var(--bleu-pale); color: var(--encre); }
.form-statut.est-succes { background: var(--ok-pale); color: var(--ok); }
.form-erreurs { background: var(--erreur-pale); border: 1px solid #efb9b5; border-radius: var(--r-s); padding: 16px 18px; margin-bottom: 24px; color: var(--erreur); animation: apparait var(--t) var(--ease-out); }
.form-erreurs ul { margin: 8px 0 0; }
.form-erreurs a { color: var(--erreur); }
.succes { background: var(--ok-pale); border: 1px solid #bfe5cf; border-radius: var(--r-l); padding: clamp(24px, 4vw, 36px); animation: succes-entree 560ms var(--ease-out) both; }
.succes-page { max-width: 760px; }
.succes-ico { width: 44px; height: 44px; color: var(--ok); margin-bottom: 14px; animation: pop 600ms var(--ease-ressort) 140ms both; }
.succes h2 { color: var(--ok); }
.succes .reference { font-weight: 700; color: var(--encre); font-size: 1.1rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.form-pied { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px); } }
@keyframes succes-entree { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4) rotate(-12deg); } }

/* Pages légales */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ligne-2); }
.legal th { color: var(--encre); font-weight: 600; width: 34%; }

/* Page 404 */
.page-404 .section { min-height: 50vh; }

/* Les cibles de défilement (erreurs, confirmation, ancres) restent visibles sous l'en-tête collant. */
:target, .succes, .champ, .form-erreurs, .form-statut, section[id] { scroll-margin-top: 92px; }

/* ------------------------------------------------------------------ */
/* Couche de mouvement (désactivée si l'utilisateur réduit les animations) */
/* ------------------------------------------------------------------ */
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }
@keyframes entree-ecran { from { opacity: 0; transform: translateY(22px) scale(0.985); } }
@keyframes entree-tel { from { opacity: 0; transform: translateY(36px) rotate(2.5deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrée du hero : le message d'abord, puis les deux produits */
  .hero-texte > * { animation: entree var(--t-lent) var(--ease-out) both; }
  .hero-texte > :nth-child(2) { animation-delay: 80ms; }
  .hero-texte > :nth-child(3) { animation-delay: 160ms; }
  .hero-texte > :nth-child(4) { animation-delay: 240ms; }
  .hero-capture-bureau { animation: entree-ecran 800ms var(--ease-out) 140ms both; }
  .hero-capture-mobile { animation: entree-tel 820ms var(--ease-out) 380ms both; }
  .hero-visuel figcaption { animation: entree var(--t-lent) var(--ease-out) 520ms both; }

  /* Bandeaux des pages intérieures */
  .bandeau-page .wrap > * { animation: entree var(--t-lent) var(--ease-out) both; }
  .bandeau-page .wrap > :nth-child(2) { animation-delay: 60ms; }
  .bandeau-page .wrap > :nth-child(3) { animation-delay: 120ms; }

  /* Apparition au défilement : site.js marque uniquement les blocs situés sous la ligne de flottaison */
  .a-reveler { opacity: 0; transform: translateY(18px); }
  .a-reveler.est-visible {
    opacity: 1; transform: none;
    transition: opacity var(--t-lent) var(--ease-out), transform var(--t-lent) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  /* Pas de transitions entre pages (@view-transition) : elles bloquaient le premier affichage dans Edge.
     L'arrivée en douceur de chaque page (hero, bandeaux) joue ce rôle. */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Aucune animation ni transition : chaque élément affiche directement son état final. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active, .service-carte:hover, .service-resume:hover, .liens-services a:hover { transform: none; }
  .btn.est-en-cours::after { animation: none !important; width: 100%; opacity: 0.45; transform: none; }
}

@media print {
  .entete, .pied, .cta-final, .bandeau-test, .menu-mobile { display: none; }
  body { color: #000; }
  .a-reveler { opacity: 1 !important; transform: none !important; }
  .hero::before, .bandeau-page::before { display: none; }
}

/* Repère invisible utilisé par site.js pour détecter le défilement */
.sentinelle-haut { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

/* ------------------------------------------------------------------ */
/* Page SEO et marketing digital (en sous-traitance)                  */
/* ------------------------------------------------------------------ */
.offre-grille { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .offre-grille { grid-template-columns: repeat(12, 1fr); }
  .offre-carte:nth-child(1), .offre-carte:nth-child(4), .offre-carte:nth-child(5) { grid-column: span 7; }
  .offre-carte:nth-child(2), .offre-carte:nth-child(3), .offre-carte:nth-child(6) { grid-column: span 5; }
}
.offre-carte {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px);
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: 0 1px 2px rgba(0, 16, 48, 0.04);
}
.offre-carte:nth-child(1), .offre-carte:nth-child(5) { background: linear-gradient(135deg, var(--seo-pale) 0%, #fff8f4 60%, #fff 100%); border-color: rgba(255, 90, 31, 0.22); }
.offre-carte > .ico { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: var(--seo-pale); color: var(--seo-fonce); }
.offre-carte h3 { margin: 2px 0 0; }
.offre-carte p { margin: 0; color: var(--texte-2); }
.offre-carte .liste-coche { margin-top: 6px; gap: 10px; }
.offre-carte .liste-coche li { color: var(--encre); font-weight: 500; }
.offre-carte .liste-coche .ico { color: var(--seo-fonce); }
@media (min-width: 640px) { .offre-carte:nth-child(5) .liste-coche { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.offre-carte-marine { background: var(--fond-marine); border-color: var(--fond-marine); color: var(--clair-sur-marine); }
.offre-carte-marine::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; right: 0; width: 80%;
  background: radial-gradient(closest-side, rgba(0, 80, 240, 0.32), rgba(0, 80, 240, 0));
}
.offre-carte-marine h3 { color: #fff; }
.offre-carte-marine p { color: var(--clair-sur-marine); }
.offre-carte-marine > .ico { background: rgba(255, 90, 31, 0.16); color: var(--seo); }
.offre-carte-marine .liste-coche .ico { color: var(--seo); }
.offre-carte-marine .liste-coche li { color: #fff; }

.note-engagement {
  display: flex; gap: 14px; align-items: flex-start; margin-top: clamp(28px, 4vw, 40px); max-width: 82ch;
  padding: 18px 22px; background: var(--fond-2); border: 1px solid var(--ligne-2); border-radius: var(--r);
}
.note-engagement .ico { width: 22px; height: 22px; color: var(--seo-fonce); margin-top: 2px; }
.note-engagement p { margin: 0; color: var(--texte); }

/* Formulaire : un nombre impair de services, le dernier occupe toute la ligne */
@media (min-width: 640px) { .cases .case:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ */
/* Pôle SEO et marketing digital : mise en avant sur tout le site     */
/* ------------------------------------------------------------------ */
/* Surtitre (petites capitales) au-dessus d'un titre */
.surtitre { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--bleu); }
.surtitre-seo { color: var(--seo-fonce); }
.surtitre-seo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--seo); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.2); }

/* Menu : l'entrée SEO se détache des autres liens */
.nav-pastille { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--seo); vertical-align: 1px; }
.nav .nav-seo a:not(.btn) {
  padding: 6px 13px 6px 11px; border-radius: 999px; font-weight: 600;
  background: var(--seo-pale); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.3);
  transition: background-color var(--t-rapide) var(--ease-out), box-shadow var(--t-rapide) var(--ease-out), transform var(--t-rapide) var(--ease-out);
}
.nav .nav-seo a:not(.btn)::after { display: none; }
.nav .nav-seo a:not(.btn):hover, .nav .nav-seo a:not(.btn)[aria-current="page"] { background: #ffe4d6; box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.6); }
.nav .nav-seo a:not(.btn):active { transform: scale(0.97); transition-duration: 90ms; }
@media (max-width: 1099px) {
  .nav .nav-seo { border-bottom: 0; padding: 8px 0; }
  .nav .nav-seo a:not(.btn) { padding: 12px 14px; border-radius: var(--r-s); }
  .nav .nav-seo a:not(.btn)[aria-current="page"] { color: var(--encre); }
}

/* Entre 1100 et 1199 px, le lien Brochure (aussi présent dans le hero et le pied de page) laisse la place au menu */
@media (min-width: 1100px) and (max-width: 1199px) { .nav .nav-brochure { display: none; } }

/* Accueil : annonce au-dessus du titre */
.hero-annonce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 22px; padding: 5px 14px 5px 5px;
  border-radius: 999px; background: #fff; border: 1px solid rgba(255, 90, 31, 0.32); box-shadow: 0 1px 2px rgba(0, 16, 48, 0.05);
  color: var(--encre); font-size: 0.92rem; font-weight: 500; line-height: 1.3; text-decoration: none;
  transition: border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.hero-annonce-tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--seo); color: var(--marine); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; }
.hero-annonce .ico { width: 16px; height: 16px; color: var(--seo-fonce); transition: transform var(--t) var(--ease-out); }
.hero-annonce:hover { color: var(--encre); border-color: var(--seo); }
@media (hover: hover) and (pointer: fine) {
  .hero-annonce:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(255, 90, 31, 0.55); }
  .hero-annonce:hover .ico { transform: translateX(3px); }
}
.hero-annonce:active { transform: scale(0.98); transition-duration: 90ms; }
.hero-accent { color: var(--seo-fonce); }

/* Bouton du pôle SEO : orange signature, texte marine (contraste AA) */
.btn-seo {
  background: var(--seo); color: var(--marine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 16, 48, 0.3), 0 8px 22px -10px rgba(255, 90, 31, 0.75);
}
.btn-seo:hover { background: var(--seo-h); color: var(--marine); }
@media (hover: hover) and (pointer: fine) {
  .btn-seo:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 16, 48, 0.25), 0 14px 28px -12px rgba(255, 90, 31, 0.85); }
}

/* Accueil : section du pôle SEO, juste sous le hero */
.pole-seo { position: relative; isolation: isolate; overflow: hidden; background: var(--fond-marine); color: var(--clair-sur-marine); }
/* Liseré aux couleurs des deux pôles, puis halo orange contenu dans la section */
.pole-seo::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--seo) 0%, var(--seo) 50%, var(--bleu) 50%, var(--bleu) 100%); }
.pole-seo::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; right: 0; width: 60%; height: 85%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.2), rgba(255, 90, 31, 0));
}
.pole-seo h2, .pole-seo h3 { color: #fff; }
.pole-seo .surtitre-seo { color: var(--seo); }
.pole-seo-tete { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 980px) { .pole-seo-tete { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.pole-seo-tete h2 { max-width: 22ch; }
.pole-seo-tete .lead { max-width: 60ch; margin: 0; color: var(--clair-sur-marine); }
.pole-seo-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .pole-seo-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pole-seo-grille { grid-template-columns: repeat(3, 1fr); } }
.pole-seo-grille li {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1);
}
.pole-seo-grille .ico { width: 42px; height: 42px; padding: 10px; margin-bottom: 6px; border-radius: 11px; background: rgba(255, 90, 31, 0.15); color: var(--seo); }
.pole-seo-grille h3 { margin: 0; font-size: 1.12rem; }
.pole-seo-grille p { margin: 0; font-size: 0.95rem; color: #b9c4e0; }
.pole-seo-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 0.92rem; color: #aab5d4; }
.pole-seo-note .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--seo); }

/* Page SEO : halo orange dans le bandeau */
.bandeau-seo::before { background: radial-gradient(closest-side, rgba(255, 90, 31, 0.13), rgba(255, 90, 31, 0)); }

/* Page Services : le pôle SEO en tête, sur toute la largeur */
@media (min-width: 860px) { .service-resume-seo { grid-column: 1 / -1; } }
.service-resume-seo { background: linear-gradient(135deg, var(--seo-pale) 0%, #fff8f4 55%, #fff 100%); border-color: rgba(255, 90, 31, 0.3); }
.service-resume-seo:hover { border-color: rgba(255, 90, 31, 0.6); }
.service-resume-seo > .ico { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: #fff; color: var(--seo-fonce); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.25); }
.service-resume-seo .surtitre { margin: 4px 0 -4px; }
.service-resume-seo .lien-fleche { color: var(--seo-fonce); }

/* Liens « Nos services » en bas des pages de développement : le SEO en premier */
@media (min-width: 640px) and (max-width: 999px) { .liens-services .lien-service-seo { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .liens-services { grid-template-columns: repeat(5, 1fr); } }
.liens-services .lien-service-seo a { background: var(--seo-pale); border-color: rgba(255, 90, 31, 0.3); }
.liens-services .lien-service-seo a:hover { border-color: var(--seo); color: var(--encre); }
.liens-services .lien-service-seo .ico { color: var(--seo-fonce); }
