/* ==========================================================================
   ComKo Digital — feuille de style de la PAGE D'ACCUEIL uniquement.
   index.html charge ce fichier ; services.html / about.html / contact.html
   continuent d'utiliser assets/site.css, qui n'est pas modifie.
   Conforme a HOMEPAGE-BRIEF.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Polices de repli avec metriques ajustees
   Evite tout decalage de mise en page (CLS) pendant le chargement des
   webfonts. Valeurs approchees, a affiner si Lighthouse signale du CLS.
   -------------------------------------------------------------------------- */
@font-face{
  font-family:"Archivo Fallback";
  src:local("Arial");
  size-adjust:103%;
  ascent-override:92%;
  descent-override:24%;
  line-gap-override:0%;
}
@font-face{
  font-family:"Plex Sans Fallback";
  src:local("Arial");
  size-adjust:101%;
  ascent-override:97%;
  descent-override:26%;
  line-gap-override:0%;
}
@font-face{
  font-family:"Plex Mono Fallback";
  src:local("Consolas"),local("Courier New");
  size-adjust:96%;
  ascent-override:100%;
  descent-override:27%;
  line-gap-override:0%;
}

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root{
  /* Couleurs — derivees du logo, rien d'invente */
  --ink:        #0A1B45;
  --navy:       #10256B;
  --blue:       #1668E3;
  --blue-lift:  #4A93FF;
  --mist:       #F2F5FB;
  --paper:      #FFFFFF;
  --signal:     #F0B429;  /* point de statut + soulignement nav actif, nulle part ailleurs */

  /* Opacites derivees — pas de nouvelle teinte */
  --ink-72:      rgba(10,27,69,.72);
  --ink-56:      rgba(10,27,69,.56);
  --on-dark-72:  rgba(255,255,255,.72);
  --on-dark-56:  rgba(255,255,255,.56);
  --hairline-d:  rgba(255,255,255,.12);

  /* Typographie */
  --font-display:"Archivo","Archivo Fallback",Arial,sans-serif;
  --font-body:"IBM Plex Sans","Plex Sans Fallback",Arial,sans-serif;
  --font-mono:"IBM Plex Mono","Plex Mono Fallback",Consolas,"Courier New",monospace;

  /* Mise en page — pleine largeur.
     Le contenu occupe tout le navigateur ; ce sont les marges laterales qui
     grandissent avec l'ecran, pas une bande figee au centre. Les mesures de
     texte restent limitees en "ch" pour garder des lignes lisibles. */
  --gutter:clamp(16px,4.5vw,88px);
  --section-y:clamp(56px,7vw,120px);
  --header-h:72px;

  /* Bandeau CTA : le brief dit « navy » dans le schema §3 et « --ink » dans
     le detail §Section detail. Retenu : navy, pour le distinguer du pied de
     page (--ink). Le degrade reprend exactement celui de la capsule du
     logo (navy -> bleu). Remplacer par var(--ink) pour l'autre lecture. */
  --cta-bg:linear-gradient(112deg,var(--ink) 0%,var(--navy) 58%,var(--blue) 122%);

  /* Filet circuit */
  --cr-duration:520ms;
  --cr-ease:cubic-bezier(.2,.8,.2,1);

  /* Lignes de fond du hero — 6 % comme specifie au brief. Tres discret sur
     le champ --ink : monter cette valeur pour les rendre plus lisibles. */
  --hero-line-opacity:.06;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:400;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-stretch:112%;
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.08;
  margin:0;
  color:var(--navy);
  /* Le francais a des mots longs (« accompagnement », « transformation ») :
     sans ceci ils debordent de l'ecran a 360px au lieu de passer a la ligne. */
  overflow-wrap:break-word;
}
p{margin:0;}
::selection{background:rgba(22,104,227,.18);color:var(--ink);}

/* Focus clavier — jamais outline:none */
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
.on-dark :focus-visible,
.topbar :focus-visible{outline-color:var(--blue-lift);}

.wrap{width:100%;margin:0 auto;padding:0 var(--gutter);}
.lang-block[hidden]{display:none;}

.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:16px;top:-64px;z-index:200;
  background:var(--blue);color:#fff;padding:10px 18px;border-radius:999px;
  font-family:var(--font-body);font-size:14px;
  transition:top .18s ease;
}
.skip-link:focus{top:12px;}

/* Utilitaire mono — eyebrows, libelles de carte, meta du pied, numeros d'etape */
.mono{
  font-family:var(--font-mono);
  font-weight:500;
  font-size:12px;
  line-height:1.4;
  text-transform:uppercase;
  letter-spacing:0.12em;
}
.mono--sm{font-size:11px;}

/* --------------------------------------------------------------------------
   3. Element signature — le filet circuit
   Ligne 1px --blue terminee par un point plein de 5px. Se dessine de gauche
   a droite en 520ms, puis le point apparait en fondu sur 160ms.
   -------------------------------------------------------------------------- */
.circuit-rule{
  position:relative;
  display:block;
  width:100%;
  height:10px;
  flex:0 0 auto;
}
.cr__svg{
  position:absolute;
  left:0;right:0;top:50%;
  height:2px;
  width:100%;
  transform:translateY(-50%);
  overflow:visible;
}
.cr__line{
  stroke:var(--blue);
  stroke-width:1;
  fill:none;
  vector-effect:non-scaling-stroke;
}
.cr__node{
  position:absolute;
  right:0;top:50%;
  width:5px;height:5px;margin-top:-2.5px;
  border-radius:50%;
  background:var(--blue);
  transition:width .18s ease,height .18s ease,margin .18s ease,background .18s ease;
}

/* Etat « pas encore dessine » — applique seulement si JS est actif, pour que
   la page reste complete et lisible sans JavaScript. */
.js .circuit-rule .cr__line{
  stroke-dasharray:1;
  stroke-dashoffset:0;
  transition:stroke-dashoffset var(--cr-duration) var(--cr-ease) var(--cr-delay,0ms);
}
.js .circuit-rule:not(.is-drawn) .cr__line{stroke-dashoffset:1;}
.js .circuit-rule .cr__node{
  opacity:1;transform:translateY(0);
  transition:
    opacity 160ms ease calc(var(--cr-duration) + var(--cr-delay,0ms)),
    transform 160ms ease calc(var(--cr-duration) + var(--cr-delay,0ms)),
    width .18s ease,height .18s ease,margin .18s ease,background .18s ease;
}
.js .circuit-rule:not(.is-drawn) .cr__node{opacity:0;transform:translateY(4px);}

/* Filet de separation entre sections majeures */
.section-rule{margin-bottom:56px;}

/* --------------------------------------------------------------------------
   4. Barre superieure
   -------------------------------------------------------------------------- */
.topbar{
  background:var(--ink);
  color:var(--on-dark-72);
}
.topbar__inner{
  display:flex;align-items:center;gap:24px;
  min-height:40px;
  padding-top:8px;padding-bottom:8px;
}
.topbar__list{
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;flex:1 1 auto;
}
.topbar__item{display:flex;align-items:center;gap:8px;}
.topbar a:hover{color:#fff;}

/* Ambre, emplacement 1 sur 2 */
.status-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--signal);
  flex:0 0 auto;
}

.langswitch{display:flex;align-items:center;gap:0;flex:0 0 auto;}
.langswitch button{
  appearance:none;background:none;border:0;cursor:pointer;
  font-family:var(--font-mono);font-weight:500;font-size:11px;
  letter-spacing:0.12em;text-transform:uppercase;
  color:var(--on-dark-56);
  padding:6px 8px;
  transition:color .18s ease;
}
.langswitch button:hover{color:#fff;}
.langswitch button[aria-pressed="true"]{color:#fff;}
.langswitch__sep{color:var(--on-dark-56);font-size:11px;}

/* --------------------------------------------------------------------------
   5. En-tete
   -------------------------------------------------------------------------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:var(--paper);
  border-bottom:1px solid var(--mist);
  transition:box-shadow .2s ease,border-color .2s ease;
}
.site-header.is-scrolled{
  border-bottom-color:transparent;
  box-shadow:0 1px 0 rgba(10,27,69,.06),0 10px 28px -18px rgba(10,27,69,.35);
}
.site-header__inner{
  position:relative;
  display:flex;align-items:center;gap:32px;
  height:var(--header-h);
}

/* Logo — pose dans le blanc, pas dans un losange colore.
   Le signe est un SVG en ligne pilote par deux variables : version couleur
   sur fond clair, version blanche en reserve sur fond sombre. */
.brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;}
.brand__mark{
  width:48px;height:24px;flex:0 0 auto;display:block;
  --lm-navy:var(--navy);
  --lm-blue:var(--blue);
}
.brand__word{
  font-family:var(--font-display);font-stretch:112%;font-weight:800;
  font-size:18px;letter-spacing:-0.01em;line-height:1;white-space:nowrap;
  text-transform:uppercase;
}
/* Bichromie du logo : COMKO navy, DIGITAL bleu */
.brand__word b{font-weight:800;color:var(--navy);}
.brand__word span{font-weight:800;color:var(--blue);}

/* Reserve blanche sur les fonds sombres */
.on-dark .brand__mark{--lm-navy:#fff;--lm-blue:#fff;}
.on-dark .brand__word b,
.on-dark .brand__word span{color:#fff;}

/* Signature du logo, reprise sous le logo du pied de page */
.brand-tagline{
  color:var(--on-dark-56);
  margin-top:14px;
}

.nav{display:flex;align-items:center;gap:28px;margin-left:auto;}
.nav__link{
  position:relative;
  font-size:16px;font-weight:500;color:var(--ink);
  padding:8px 0;
  transition:color .18s ease;
}
.nav__link:hover{color:var(--blue);}
/* Ambre, emplacement 2 sur 2 */
.nav__link[aria-current="page"]{color:var(--navy);}
.nav__link[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:0;
  height:2px;background:var(--signal);
}

.nav__group{position:relative;}
.nav__toggle{
  appearance:none;background:none;border:0;cursor:pointer;
  font-family:var(--font-body);font-size:16px;font-weight:500;color:var(--ink);
  display:inline-flex;align-items:center;gap:6px;padding:8px 0;
  transition:color .18s ease;
}
.nav__toggle:hover{color:var(--blue);}
.nav__toggle svg{width:10px;height:6px;transition:transform .18s ease;}
.nav__toggle[aria-expanded="true"] svg{transform:rotate(180deg);}
.nav__menu{
  position:absolute;top:calc(100% + 10px);left:-16px;
  min-width:280px;
  background:var(--paper);
  border:1px solid var(--mist);
  border-radius:4px;
  box-shadow:0 20px 44px -24px rgba(10,27,69,.45);
  padding:8px;
  z-index:5;
}
.nav__menu[hidden]{display:none;}
.nav__menu a{
  display:block;padding:10px 12px;border-radius:4px;
  font-size:15px;color:var(--ink);
  transition:background-color .16s ease,color .16s ease;
}
.nav__menu a:hover{background:var(--mist);color:var(--navy);}

.nav__burger{
  display:none;
  appearance:none;background:none;border:1px solid var(--mist);border-radius:4px;
  cursor:pointer;padding:9px;margin-left:auto;color:var(--navy);
}
.nav__burger svg{width:20px;height:14px;display:block;}

/* --------------------------------------------------------------------------
   6. Boutons et liens
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-body);font-weight:500;font-size:16px;line-height:1;
  padding:16px 28px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.btn--primary{background:var(--blue);color:#fff;}
.btn--primary:hover{background:var(--navy);}   /* garde le blanc lisible au survol */
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55);}
.btn--ghost:hover{background:rgba(255,255,255,.10);border-color:#fff;}
.btn--sm{padding:12px 22px;font-size:15px;}

.linkarrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:16px;font-weight:500;color:var(--blue);
  transition:color .18s ease;
}
.linkarrow:hover{color:var(--blue-lift);}
.linkarrow--onmist{color:var(--navy);}         /* jamais --blue en texte sur --mist */
.linkarrow--onmist:hover{color:var(--ink);}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero{
  position:relative;
  background:var(--ink);
  color:#fff;
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns:55% 45%;
  /* Grandit avec l'ecran pour que la colonne photo garde un cadrage correct,
     sans jamais devenir demesuree. */
  min-height:clamp(640px,44vw,880px);
}
.hero__field{
  position:relative;
  display:flex;flex-direction:column;justify-content:center;
  padding:96px 64px 160px 0;
  z-index:2;
}
/* La copie s'aligne sur la meme gouttiere que le reste du site : plus de
   marge morte a gauche du champ navy sur les grands ecrans. */
.hero__inner{width:100%;padding-left:var(--gutter);}
.hero__eyebrow{color:var(--on-dark-72);margin-bottom:28px;}
/* 44px, pas 64px : le titre FR fait 59 caracteres et le champ ne fait que
   55 % de 1240px. A 64px il tombe sur 5 lignes ; a 44px — le cran juste en
   dessous dans l'echelle du brief — il tombe sur les 3 lignes prevues au
   schema, et le titre EN sur 2. La largeur est laissee au conteneur. */
/* Le titre grandit avec l'ecran au-dela de ~1470px. La taille et la mesure
   montent ensemble (rapport constant d'environ 14em), donc le titre FR garde
   ses 3 lignes de 1280px jusqu'a 2560px au lieu de rester petit et perdu. */
.hero h1{
  color:#fff;
  font-size:clamp(44px,3vw,64px);
  font-weight:800;
  max-width:clamp(620px,42vw,900px);
  margin-bottom:28px;
}
.hero__lead{
  color:var(--on-dark-72);
  font-size:clamp(18px,1vw,22px);
  max-width:46ch;
  margin-bottom:40px;
}
.hero__actions{display:flex;flex-wrap:wrap;gap:16px;}

/* Trois lignes circuit tres discretes derriere la copie */
.hero__lines{
  position:absolute;inset:0;
  opacity:var(--hero-line-opacity);
  pointer-events:none;
  z-index:0;
}
.hero__lines .circuit-rule{position:absolute;}
.hero__lines .circuit-rule:nth-child(1){top:20%;left:0;width:62%;--cr-delay:0ms;}
.hero__lines .circuit-rule:nth-child(2){top:47%;left:0;width:88%;--cr-delay:80ms;}
.hero__lines .circuit-rule:nth-child(3){top:74%;left:0;width:48%;--cr-delay:160ms;}

/* Photo, duotone --ink -> --blue, bord diagonal net (~8deg) */
.hero__media{
  position:relative;
  background:linear-gradient(158deg,var(--ink) 0%,var(--navy) 45%,var(--blue) 100%);
  clip-path:polygon(90px 0,100% 0,100% 100%,0 100%);
  margin-left:-90px;
  overflow:hidden;
}
/* Photo en couleurs naturelles — pas de duotone.
   Le degrade ci-dessus ne sert plus que de fond si la photo est absente.
   Position absolue : sans cela « height:100% » ne se resout pas dans une
   rangee de grille sans hauteur definie, l'image reprend son ratio d'origine
   et etire tout le hero (2195px sur un ecran 2560). */
.hero__media img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
}
.hero__media.no-photo img{display:none;}
.hero__media-fallback{display:none;position:absolute;inset:0;opacity:.45;}
.hero__media.no-photo .hero__media-fallback{display:block;}

/* --------------------------------------------------------------------------
   8. Cartes services — chevauchent le bas du hero de 64px
   -------------------------------------------------------------------------- */
.services{position:relative;z-index:3;margin-top:-64px;padding-bottom:var(--section-y);}
.services__grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.svc-card{
  display:flex;flex-direction:column;
  background:var(--paper);
  border:1px solid var(--mist);
  border-radius:4px;
  padding:24px 20px 20px;
  min-height:236px;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.svc-card:hover{
  border-color:rgba(22,104,227,.35);
  box-shadow:0 18px 40px -26px rgba(10,27,69,.45);
}
.svc-card__icon{color:var(--navy);margin-bottom:20px;}
.svc-card__icon svg{width:28px;height:28px;display:block;}
.svc-card h3{font-size:18px;font-weight:700;margin-bottom:10px;}
.svc-card p{font-size:15px;line-height:1.55;color:var(--ink-72);margin-bottom:24px;}
.svc-card .circuit-rule{margin-top:auto;width:48px;}
.svc-card:hover .cr__node{width:7px;height:7px;margin-top:-3.5px;background:var(--blue-lift);}
.services__more{margin-top:32px;}

/* --------------------------------------------------------------------------
   9. Positionnement
   -------------------------------------------------------------------------- */
.positioning{background:var(--mist);padding:var(--section-y) 0;}
.positioning__grid{
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:64px;align-items:start;
}
.positioning__eyebrow{color:var(--ink-56);margin-bottom:20px;}
.positioning h2{font-size:32px;max-width:18ch;}
.proof{display:flex;flex-direction:column;}
.proof__row{
  display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);
  gap:32px;
  padding:24px 0;
  border-top:1px solid rgba(10,27,69,.12);
}
.proof__row:last-child{border-bottom:1px solid rgba(10,27,69,.12);}
.proof__label{color:var(--navy);padding-top:4px;}
.proof__text{font-size:17px;color:var(--ink-72);}

/* --------------------------------------------------------------------------
   10. Approche — 01 -- 02 -- 03
   -------------------------------------------------------------------------- */
.approach{padding:var(--section-y) 0;}
.approach__head{margin-bottom:56px;max-width:52ch;}
.approach__eyebrow{color:var(--ink-56);margin-bottom:20px;}
.approach h2{font-size:32px;}
.steps{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr) 72px minmax(0,1fr);
  align-items:start;
}
.step__num{color:var(--blue);margin-bottom:16px;display:block;}
.step h3{font-size:24px;margin-bottom:12px;}
.step p{font-size:16px;color:var(--ink-72);max-width:34ch;}
.steps__link{
  display:flex;align-items:center;
  height:20px;
  margin-top:4px;
}
.steps__link .circuit-rule{width:100%;}

/* --------------------------------------------------------------------------
   11. Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band{background:var(--cta-bg);color:#fff;padding:var(--section-y) 0;}
.cta-band__grid{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:48px;align-items:center;
}
.cta-band h2{color:#fff;font-size:44px;max-width:16ch;}
.cta-band__meta{
  margin-top:24px;color:var(--on-dark-72);
  display:flex;flex-wrap:wrap;gap:8px 24px;
}
.cta-band__meta a{border-bottom:1px solid var(--on-dark-56);padding-bottom:2px;}
.cta-band__meta a:hover{color:#fff;border-bottom-color:#fff;}

/* --------------------------------------------------------------------------
   8b. Par ou commencer — les offres d'entree, en liste de liens
   Reprend le rythme de .proof__row : une ligne par offre, separee d'un filet.
   Ce sont les seules choses qu'un prospect peut commander aujourd'hui, donc
   elles arrivent juste apres les cartes services.
   -------------------------------------------------------------------------- */
.startpoints{padding:var(--section-y) 0 0;}
.startpoints__head{margin-bottom:8px;max-width:52ch;}
.startpoints__eyebrow{color:var(--ink-56);margin-bottom:20px;}
.startpoints h2{font-size:32px;}
/* Deux colonnes, pas auto-fit : les offres sont quatre, et trois colonnes
   laissaient une ligne orpheline. Deux par deux, chaque libelle tient sur
   une seule ligne. */
.startpoints__list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:48px;
}
.startpoints__item{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:18px 0;
  border-bottom:1px solid rgba(10,27,69,.12);
  font-size:17px;font-weight:500;color:var(--navy);
  transition:color .18s ease;
}
.startpoints__item:hover{color:var(--blue);}
.startpoints__item span{color:var(--blue);flex:0 0 auto;}

@media (max-width:640px){
  .startpoints h2{font-size:28px;}
  .startpoints__list{grid-template-columns:1fr;}
  .startpoints__item{font-size:16px;}
}

/* --------------------------------------------------------------------------
   11b. Notes de terrain — les derniers articles, sur la page d'accueil
   Reprend .svc-card, la carte deja definie plus haut : la page d'accueil ne
   charge pas pages.css, ou vit la carte du blog. auto-fit plutot que trois
   colonnes fixes, pour qu'une liste de deux articles remplisse la largeur au
   lieu de laisser une colonne vide.
   -------------------------------------------------------------------------- */
.home-posts{padding:0 0 var(--section-y);}
.home-posts__head{margin-bottom:40px;max-width:52ch;}
.home-posts__eyebrow{color:var(--ink-56);margin-bottom:20px;}
.home-posts h2{font-size:32px;}
.home-posts__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
}
.home-post{min-height:0;}
.home-post__date{color:var(--ink-56);margin-bottom:12px;}
.home-post h3{margin-bottom:10px;}
.home-post h3 a{transition:color .18s ease;}
.home-post h3 a:hover{color:var(--blue);}
.home-post p{margin-bottom:0;}
.home-posts__more{margin-top:32px;}

@media (max-width:640px){
  .home-posts h2{font-size:28px;}
}

/* --------------------------------------------------------------------------
   12. Pied de page
   -------------------------------------------------------------------------- */
.site-footer{background:var(--ink);color:var(--on-dark-72);padding:80px 0 32px;}
.site-footer__grid{
  display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));
  gap:48px;
}
.site-footer .brand__mark{width:64px;height:32px;}
.site-footer .brand__word{font-size:22px;}
.site-footer__about{margin-top:20px;font-size:16px;max-width:34ch;}
/* Reseaux sociaux — n'ajouter que des comptes reellement tenus.
   Un lien mort coute plus de confiance qu'un lien absent. */
.social{display:flex;gap:10px;margin-top:22px;}
.social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  border:1px solid var(--hairline-d);
  color:var(--on-dark-72);
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.social a:hover{background:var(--blue);border-color:var(--blue);color:#fff;}
.social svg{width:19px;height:19px;display:block;}

.site-footer h4{color:#fff;font-size:14px;font-weight:700;margin-bottom:20px;}
.site-footer li{margin-bottom:12px;font-size:16px;}
.site-footer a:hover{color:#fff;}
.site-footer__bottom{
  margin-top:64px;padding-top:24px;
  border-top:1px solid var(--hairline-d);
  display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;
  color:var(--on-dark-56);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width:1080px){
  .hero h1{font-size:40px;}
  .hero__field{padding-right:48px;}
  .positioning__grid{gap:40px;}
}

@media (max-width:980px){
  /* Sans JavaScript la navigation reste en place et passe a la ligne. */
  html:not(.js) .site-header__inner{height:auto;flex-wrap:wrap;padding:12px 0;gap:16px;}
  html:not(.js) .nav{flex-wrap:wrap;gap:20px;margin-left:0;}

  .js .nav{
    position:absolute;top:100%;left:0;right:0;
    display:none;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--paper);
    border-bottom:1px solid var(--mist);
    box-shadow:0 20px 40px -28px rgba(10,27,69,.5);
    padding:8px var(--gutter) 20px;
    margin-left:0;
  }
  .js .nav.is-open{display:flex;}
  .js .nav__burger{display:block;}
  .nav__link,.nav__toggle{padding:14px 0;width:100%;}
  .nav__link[aria-current="page"]::after{right:auto;width:24px;bottom:8px;}
  .nav__group{width:100%;}
  .nav__menu{
    position:static;border:0;box-shadow:none;padding:0 0 8px 16px;
    min-width:0;background:none;
  }
  .nav__cta{margin-top:12px;align-self:flex-start;}

  .hero__grid{grid-template-columns:1fr;min-height:0;}
  .hero__field{padding:72px 0 128px;}
  .hero__inner{max-width:100%;padding-right:var(--gutter);}
  .hero h1{max-width:20ch;}
  .hero__media{
    grid-row:1;
    margin-left:0;
    /* Bandeau plus haut sur tablette : a 280px fixes, une photo verticale
       n'en montrait plus qu'une bande de 20 %, qui coupait le visage. */
    height:clamp(260px,42vw,420px);
    clip-path:polygon(0 0,100% 0,100% 100%,0 calc(100% - 40px));
  }
  .hero__lines .circuit-rule:nth-child(2){width:96%;}

  .services__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .positioning__grid{grid-template-columns:1fr;gap:40px;}
  .cta-band__grid{grid-template-columns:1fr;gap:32px;}
  .cta-band h2{font-size:36px;}
  .site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;}

  /* Etapes empilees : le filet devient vertical */
  .steps{grid-template-columns:1fr;}
  .steps__link{
    width:10px;height:56px;
    padding:8px 0;
    justify-self:start;
    margin:4px 0;
  }
  .steps__link .circuit-rule{width:10px;height:100%;}
  .steps__link .cr__svg{display:none;}
  .steps__link .circuit-rule::before{
    content:"";position:absolute;left:2px;top:0;
    width:1px;height:100%;background:var(--blue);
    transform-origin:top;
    transition:transform var(--cr-duration) var(--cr-ease);
  }
  .js .steps__link .circuit-rule:not(.is-drawn)::before{transform:scaleY(0);}
  .steps__link .cr__node{left:0;right:auto;top:auto;bottom:0;margin-top:0;}
}

@media (max-width:768px){
  .topbar__list{display:none;}     /* ne reste que le selecteur de langue */
  .topbar__inner{justify-content:flex-end;}
}

@media (max-width:640px){
  /* --gutter et --section-y sont deja fluides (clamp) : rien a forcer ici. */
  .hero h1{font-size:34px;}
  .hero__lead{font-size:17px;}
  .hero__actions{flex-direction:column;align-items:stretch;}
  .services__grid{grid-template-columns:1fr;}
  .svc-card{min-height:0;}
  .proof__row{grid-template-columns:1fr;gap:10px;}
  .positioning h2{font-size:28px;}
  .approach h2{font-size:28px;}
  .cta-band h2{font-size:32px;}
  .cta-band__actions{display:flex;flex-direction:column;align-items:stretch;}
  .site-footer__grid{grid-template-columns:1fr;gap:32px;}
  .section-rule{margin-bottom:40px;}
}

@media (max-width:380px){
  .hero h1{font-size:30px;}
  .brand__word{font-size:16px;}
}

/* --------------------------------------------------------------------------
   14. Mouvement reduit — tout se resout instantanement a l'etat final
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }
  .js .circuit-rule .cr__line{stroke-dashoffset:0 !important;}
  .js .circuit-rule .cr__node{opacity:1 !important;transform:none !important;}
  .js .steps__link .circuit-rule::before,
  .js .steps__link .circuit-rule:not(.is-drawn)::before{transform:none !important;}
}
