/* ═══════════════════════════════════════════════════════════════
   MÉGA-MENUS homogènes : pictos en couleur + titre (Produits, À propos)
   ═══════════════════════════════════════════════════════════════ */
.menu-lien {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-900);
  transition: background .15s;
}
.menu-lien:hover { background: var(--cream); }
.menu-lien .persona-illustration { width: 38px; height: 38px; margin: 0; flex-shrink: 0; }
.menu-lien .persona-illustration svg { width: 20px; height: 20px; }
.menu-lien b { display: block; font-family: var(--font-display); font-size: .98rem; font-weight: 600; line-height: 1.25; }
.menu-lien small { display: block; font-size: 12px; color: var(--ink-500); line-height: 1.4; margin-top: .15rem; }
.menu-lien:hover b { color: var(--bleu-700); }

.megamenu.megamenu-produits { width: min(640px, calc(100vw - 32px)); }
.produits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.produit-capture {
  display: block;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: .35rem;
  aspect-ratio: 16 / 10;
  background: var(--bleu-50);
}
.produit-capture img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .3s var(--ease-smooth); }
.produit-capture:hover img { transform: scale(1.03); }

/* Gabarit du volet « À propos » : il preexistait dans la feuille, d'un
   menu retire depuis. On le reutilise plutot que d'en ecrire un autre
   deux entrees cote a cote remplissent le panneau. */
.megamenu.megamenu-apropos { width: min(600px, calc(100vw - 32px)); }
.apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }

/* ═══════════════════════════════════════════════════════════════
   ACCUEIL : sections en aperçu (chaque bloc renvoie vers sa page)
   ═══════════════════════════════════════════════════════════════ */
.section-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-tete > div { max-width: 720px; }
.section-tete .lead { margin-top: 1rem; }
.section-tete .btn { flex-shrink: 0; }
@media (max-width: 800px) { .section-tete { flex-direction: column; align-items: flex-start; } }

/* Réalisations : 4 cartes compactes */
.real-carte--bleu { --real: var(--t-bleu); }
.real-carte--teal { --real: var(--t-teal); }
.real-apercu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.real-mini {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.real-mini:hover { border-color: var(--real); }
.real-mini .real-visuel { padding: 1rem 1rem 0; }
.real-mini .real-corps { padding: 1.1rem 1.2rem 1.3rem; }
.real-mini h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.real-mini .realisation-tag { font-size: 10px; margin-bottom: .7rem; }
.real-mini-gain { font-size: 13.5px; color: var(--ink-700); line-height: 1.45; margin: 0; }
/* brightness(.6) : les teintes ocre et terra ne passaient pas le seuil de lisibilité sur blanc */
.real-mini-gain strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--real); filter: brightness(.6); }
@media (max-width: 1100px) { .real-apercu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .real-apercu { grid-template-columns: 1fr; } }

/* Expertises : 4 cartes */
.section-expertises-apercu { padding: var(--section-pad-y) 0; background: var(--cream); }
.exp-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.exp-carte {
  display: block;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.exp-carte:hover { border-color: var(--bleu-500); }
.exp-carte .persona-illustration { width: 46px; height: 46px; margin-bottom: 1rem; }
.exp-carte .persona-illustration svg { width: 24px; height: 24px; }
.exp-carte h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.exp-carte p { font-size: 14px; color: var(--ink-700); line-height: 1.5; margin-bottom: 1rem; }
.exp-carte ul { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--ink-200); }
.exp-carte li { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-700); padding: .22rem 0; }
@media (max-width: 1100px) { .exp-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .exp-grille { grid-template-columns: 1fr; } }

/* Méthode : frise en 5 étapes */
.frise {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.frise li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-top: 3px solid var(--bleu-500);
}
.frise-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-600); }
.frise-nom { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--ink-900); }
.frise .method-step-delai { margin: 0; }
@media (max-width: 1000px) { .frise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .frise { grid-template-columns: 1fr; } }

/* Citation du CTO */
.section-citation { padding: var(--section-pad-y) 0; background: var(--fond-sombre); }
.citation { margin: 0 auto; max-width: 900px; text-align: center; color: #fff; }
.citation blockquote {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  font-weight: 500;
}
.citation blockquote::before {
  content: "\201C";
  display: block;
  font-size: 4.5rem;
  line-height: .6;
  margin-bottom: .6rem;
  color: var(--accent-500);
}
.citation figcaption { display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.citation figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.citation figcaption span { color: var(--ink-300); font-size: 14px; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.2); }
.citation figcaption strong { display: block; color: #fff; font-size: 1rem; }

/* Équipe (aperçu) : fondateurs dans le bandeau réseau */
.team-fondateurs { grid-column: 2; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: .6rem; font-size: 13px; color: var(--ink-300); }
.team-fondateurs span { display: inline-flex; align-items: center; gap: .55rem; }
.team-fondateurs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.team-fondateurs b { color: #fff; font-weight: 600; }
@media (max-width: 600px) { .team-fondateurs { grid-column: auto; } }

/* Bandeau final « Concrétisons votre projet ensemble » */
.section-cta-final { padding: 0 0 var(--section-pad-y); background: var(--cream); }
.cta-final {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 2.5rem 3rem;
  background: var(--accent-500);
  border-radius: 16px;
}
/* Ce bandeau a l'accent pour FOND : il n'est pas dans la liste des
   contextes sombres (on y redéfinirait l'accent, donc son propre fond).
   Tout son texte est donc fixé explicitement, en clair. */
.cta-final h2 { margin-bottom: .5rem; color: #FFFFFF; }
.cta-final .amber-word { color: #DCEAFA; }
.cta-final p { color: #E6F0FD; max-width: 60ch; margin: 0; }
.cta-final .btn-primary { background: var(--fond-sombre); color: #fff; border-color: var(--ink-900); flex-shrink: 0; }
@media (max-width: 800px) { .cta-final { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; } }

/* ═══════════════════════════════════════════════════════════════
   PAGE EXPERTISES : catégories détaillées (ancres du méga-menu)
   ═══════════════════════════════════════════════════════════════ */
.exp-section:nth-of-type(even) { background: var(--cream-warm); }
.exp-section { scroll-margin-top: 90px; }
.exp-section-tete { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2.25rem; max-width: 760px; }
.exp-section-tete .persona-illustration { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
.exp-section-tete .persona-illustration svg { width: 28px; height: 28px; }
.exp-section-tete h2 { margin-bottom: .4rem; }
.exp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.exp-item { padding: 1.4rem; background: var(--white); border: 1px solid var(--ink-200); scroll-margin-top: 100px; }
.exp-item:target { border-color: var(--bleu-500); box-shadow: 0 0 0 3px var(--bleu-100); }
.exp-item h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.exp-item p { font-size: 14px; color: var(--ink-700); line-height: 1.55; margin: 0; }

/* Onglets écosystème : défilement horizontal sur petit écran (sinon la page déborde) */
@media (max-width: 700px) {
  .expertise-tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .expertise-tab { flex-shrink: 0; }
}

.values-grid.values-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .values-grid.values-grid--3 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   CONFIANCE : robustesse, sécurité, souveraineté, données (accueil)
   ═══════════════════════════════════════════════════════════════ */
.section-confiance { padding: var(--section-pad-y) 0; background: var(--white); }
.piliers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pilier { padding: 1.5rem; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--cream); }
.pilier .persona-illustration { width: 46px; height: 46px; margin-bottom: 1rem; }
.pilier .persona-illustration svg { width: 24px; height: 24px; }
.pilier h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pilier p { font-size: 14px; color: var(--ink-700); line-height: 1.55; margin: 0; }
@media (max-width: 1100px) { .piliers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .piliers { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   PAGE FAQ : questions en accordéon, regroupées par thème
   ═══════════════════════════════════════════════════════════════ */
.faq .faq-groupe { max-width: 860px; }
.faq-groupe + .faq-groupe { margin-top: 3rem; }
.faq-groupe-tete { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.faq-groupe-tete .persona-illustration { width: 46px; height: 46px; margin: 0; flex-shrink: 0; }
.faq-groupe-tete .persona-illustration svg { width: 24px; height: 24px; }
.faq-groupe-tete h2 { font-size: 1.5rem; margin: 0; }
.faq-item { background: var(--white); border: 1px solid var(--ink-200); margin-bottom: .6rem; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--bleu-700);
  font-size: 1.2rem;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--bleu-700); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--ink-700); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   MENU MOBILE (≤ 1200 px) : panneau sous la barre, sous-menus en accordéon
   Ouvert par .nav.is-open (bouton hamburger), sous-menu par .nav-item.is-sub-open
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .nav-toggle span { transition: transform .25s, opacity .2s; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.is-open { background: var(--cream); }
  /* Le panneau enveloppe les deux groupes : une seule surface, un seul
     defilement. Positionner chaque <ul> en absolu les superposerait. */
  .nav-panneau { display: none; }
  .nav.is-open .nav-panneau {
    display: block;
    position: absolute;
    /* Le panneau est un nouvel element positionne : sans z-index il passe
       DERRIERE le contenu de la page (le hero a son propre contexte
       d'empilement). L'ancien panneau heritait de celui de .nav-links. */
    z-index: 120;
    top: 100%;
    left: 0;
    right: 0;
    padding: .25rem var(--container-pad) 1.5rem;
    background: var(--cream);
    border-top: 1px solid var(--ink-200);
    box-shadow: 0 18px 30px rgba(38, 37, 36, .12);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .nav.is-open .nav-links > li { border-bottom: 1px solid var(--ink-200); }
  /* la derniere entree du panneau est le bouton, pas celle de chaque liste */
  .nav.is-open .nav-links--droite > li:last-child { border-bottom: 0; padding-top: 1.25rem; }
  .nav.is-open .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 17px;
    color: var(--ink-900);
  }
  .nav.is-open .nav-link.is-active::before { display: none; }
  .nav.is-open .nav-link.has-menu::after { font-size: .9em; }
  .nav.is-open .nav-link.has-menu:hover::after { transform: none; }
  .nav.is-open .nav-item.is-sub-open > .nav-link.has-menu::after { transform: rotate(180deg); }
  .nav.is-open .nav-cta { display: flex; justify-content: center; width: 100%; padding: 1rem; font-size: 15px; }

  /* Sous-menu : le méga-menu devient une simple liste dans le panneau */
  .nav.is-open .nav-item.is-sub-open .megamenu {
    display: block;
    position: static;
    width: auto;
    margin: 0;
    padding: 0 0 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav.is-open .megamenu::before,
  .nav.is-open .megamenu-footer,
  .nav.is-open .megamenu-section-label,
  .nav.is-open .produit-capture,
  .nav.is-open .menu-lien small { display: none; }
  .nav.is-open .expertises-grid,
  .nav.is-open .produits-grid,
  .nav.is-open .apropos-grid { display: flex; flex-direction: column; gap: .15rem; }
  .nav.is-open .menu-lien .persona-illustration { width: 34px; height: 34px; }
  .nav.is-open .menu-lien { align-items: center; padding: .55rem; }

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

/* Barre de navigation fixe au défilement : le conteneur injecté #site-header ne doit pas
   borner le position: sticky de .nav (sinon la barre part avec lui). Le bandeau du haut défile. */
#site-header { display: contents; }

/* ═══════════════════════════════════════════════════════════════
   EXPERTISES v2 · 4 domaines illustrés d'exemples concrets
   ═══════════════════════════════════════════════════════════════ */
.megamenu.megamenu-expertises { width: min(640px, calc(100vw - 32px)); padding: 1.25rem; }
/* « Expertises » est le PREMIER onglet de la nav, mais il porte aussi
   .megamenu-small qui aligne le panneau sur le bord DROIT de l'onglet
   (regle prevue pour « A propos », dernier onglet). Resultat : un panneau
   de 640px partait hors ecran a gauche. On l'aligne donc sur le bord
   gauche de l'onglet, pour qu'il s'ouvre vers la droite. */
.megamenu.megamenu-expertises { left: 0; right: auto; }

/* Depuis que le logo est au centre, « Produits » appartient au groupe de
   DROITE : son panneau de 640 px sortait de l'ecran. Il s'aligne donc sur
   le bord droit du GROUPE, et non de son onglet : ancre a l'onglet, qui
   touche presque le centre, le panneau repassait dehors par la GAUCHE
   (-18 px a 1201). On neutralise pour cela le `position: relative` des
   <li> de ce groupe, pour que la <ul> devienne le bloc de reference. */
.nav-links--droite { position: relative; }
.nav-links--droite .nav-item { position: static; }
.nav-links--droite .megamenu { left: auto; right: 0; }
.expertises-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }

.exp-carte-lien { display: inline-block; margin-top: .25rem; font-size: 13.5px; font-weight: 600; color: var(--bleu-700); }
.exp-carte:hover .exp-carte-lien { text-decoration: underline; }

.exp-domaine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.exp-domaine .exp-section-tete { margin-bottom: 0; }
.exp-exemples { background: var(--white); border: 1px solid var(--ink-200); padding: 1.5rem 1.75rem; }
.exp-exemples-titre {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .75rem;
}
.exp-exemples ul { list-style: none; margin: 0; padding: 0; }
.exp-exemples li {
  position: relative;
  padding: .7rem 0 .7rem 1.4rem;
  border-top: 1px solid var(--ink-200);
  color: var(--ink-800);
  line-height: 1.5;
}
.exp-exemples li:first-child { border-top: 0; }
.exp-exemples li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.2rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bleu-teal);
}
.exp-exemples a { color: inherit; text-decoration: none; }
.exp-exemples a::after { content: " →"; color: var(--bleu-700); font-weight: 600; }
.exp-exemples a:hover { color: var(--bleu-700); }
@media (max-width: 900px) { .exp-domaine { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ═══════════════════════════════════════════════════════════════
   PAGE NOS CLIENTS : tuiles logo, explication au survol
   Écran tactile (pas de survol) : l'explication s'affiche sous le logo.
   ═══════════════════════════════════════════════════════════════ */
.clients-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px)  { .clients-grille { grid-template-columns: 1fr 1fr; } }

.client-tuile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--ink-200);
}
.client-face, .client-face img { width: 100%; height: 100%; display: block; }
.client-face img { object-fit: cover; transition: transform .45s var(--ease-smooth); }
.client-nom-seul {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  padding: 1.5rem;
  background: var(--fond);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .01em;
}
.client-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1.75rem;
  overflow: hidden;
  background: rgba(38, 37, 36, .94);
  color: var(--ink-200);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease-smooth);
}
.client-info h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.client-lieu { font-size: 12.5px; color: var(--accent-400); }
.client-info p { font-size: 13.5px; line-height: 1.5; margin: .2rem 0 .3rem; }
.client-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.client-tags li { font-size: 11px; padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
/* Ce lien se pose sur un voile sombre (.client-info) : il lui faut la
   version claire de l'accent, pas l'accent plein. */
.client-lien { margin-top: .4rem; font-size: 13.5px; font-weight: 600; color: var(--accent-400); }

@media (hover: hover) {
  .client-tuile:hover .client-info,
  .client-tuile:focus-visible .client-info { opacity: 1; transform: none; }
  .client-tuile:hover .client-face img { transform: scale(1.05); }
}
/* ───────────────────────────────────────────────────────────────
   Tuiles clients sans survol

   Le survol n'existe pas au doigt. Le repli existait deja, mais
   `.client-face` gardait son `height: 100%` dans une tuile devenue
   `aspect-ratio: auto` : le logo carre se retrouvait etire sur 630 px
   de haut. `height: auto` rend la main a `aspect-ratio`.

   Reste qu'un carre pleine largeur suivi de son texte fait pres de
   570 px par client : une fiche et demie par ecran de telephone. Sous
   620 px on passe donc en fiche horizontale : vignette a gauche, texte
   a droite, trois clients visibles d'un coup.
   ─────────────────────────────────────────────────────────────── */

/* Tablette tactile : le texte passe sous le logo, qui redevient carre */
@media (hover: none) and (min-width: 621px) {
  .client-tuile { aspect-ratio: auto; }
  .client-face { aspect-ratio: 1; height: auto; }
  .client-info { position: static; opacity: 1; transform: none; background: var(--fond-sombre); }
}

/* La fiche horizontale du telephone est definie en fin de feuille :
   elle surcharge .client-tuile--vous et .client-plus, qui sont
   declarees plus bas. */
.client-tuile--vous .client-info { background: rgba(28, 60, 90, .95); }

/* Accueil : lien discret à côté du bouton d'en-tête */
.section-tete-liens { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lien-discret { font-size: 14px; font-weight: 600; color: var(--bleu-700); text-decoration: none; }
.lien-discret:hover { text-decoration: underline; }


.client-tuile:not(a) { cursor: default; }

/* Tuiles illustrées (capture ou illustration) : nom du client en étiquette */
.client-face { position: relative; }
.client-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.client-face--vous {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: var(--cream-warm);
  border: 2px dashed var(--ink-300);
  border-radius: 14px;
  color: var(--ink-700);
}
.client-plus {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bleu-700);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}
.client-vous-texte { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.client-tuile--vous { border: 0; background: transparent; }

.realisation-accroche { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); line-height: 1.35; margin-bottom: .8rem; }

/* Accroche : « à forte valeur ajoutée. » en bleu et en gras */
.hero h1 strong.amber-word { font-weight: 700; }

/* Lisibilité mobile : aucune étiquette sous 11 px */
.real-mini .realisation-tag { font-size: 11px; }

/* Restauré : styles supprimés par erreur lors du nettoyage du menu Expertises (commit 64323af) */
/* Méthode en 5 étapes + délai affiché */
.method-steps--5, .method-steps--6 { gap: 1.1rem; }
.method-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Six etapes sur une ligne donneraient des colonnes trop etroites pour un
   titre : on passe a deux rangees de trois. */
.method-steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-steps--5 .method-step,
.method-steps--6 .method-step { padding: 1.6rem 1.25rem; }
@media (max-width: 1100px) { .method-steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .method-steps--5, .method-steps--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .method-steps--5, .method-steps--6 { grid-template-columns: 1fr; } }
.method-step-delai {
  display: inline-block;
  margin: -.35rem 0 .9rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--accent-500);
  color: var(--sur-accent);
  font-size: 12px;
  font-weight: 600;
}

/* Réalisations : gains chiffrés */
.real-gains { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.real-gains li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: .9rem;
  align-items: baseline;
  padding: .55rem 0;
  border-top: 1px solid var(--ink-200);
}
.real-gains strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--bleu-700);
}
.real-gains span { font-size: 14px; color: var(--ink-700); line-height: 1.45; }
.real-carte .real-gains li { grid-template-columns: 1fr; gap: .15rem; }
.real-carte .real-gains strong { font-size: 1.2rem; color: var(--real); filter: brightness(.82); }
.real-note { margin-top: 1.5rem; font-size: 12.5px; color: var(--ink-500); }

/* Équipe : réseau de développeurs */
.team-reseau {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.75rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: var(--fond-sombre);
  color: var(--ink-200);
  line-height: 1.6;
}
.team-reseau-chiffre {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-500);
}
.team-reseau-texte strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: .25rem; }
.team-reseau-tags { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.team-reseau-tags li {
  font-size: 12px;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
}
@media (max-width: 600px) {
  .team-reseau { grid-template-columns: 1fr; padding: 1.5rem; }
  .team-reseau-chiffre { grid-row: auto; font-size: 3rem; }
  .real-gains li { grid-template-columns: 1fr; gap: .15rem; }
}


/* ═══════════════════════════════════════════════════════════════
   PAGE LIVRES BLANCS : couverture + résumé + téléchargement
   ═══════════════════════════════════════════════════════════════ */
.lb-liste { display: grid; gap: 2rem; max-width: 1000px; }
.lb-carte {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  scroll-margin-top: 100px;
}
.lb-couverture { display: block; }
.lb-couverture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(38, 37, 36, .22);
  transform: rotate(-1.5deg);
  transition: transform .3s var(--ease-smooth);
}
.lb-carte:hover .lb-couverture img { transform: rotate(0) translateY(-4px); }
.lb-corps h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.25; margin: .2rem 0 .8rem; }
.lb-corps p { color: var(--ink-700); line-height: 1.6; margin-bottom: .9rem; }
.lb-pour { font-size: 14px; }
.lb-pour strong { color: var(--ink-900); }
.lb-corps .btn { margin-top: .3rem; }
@media (max-width: 700px) {
  .lb-carte { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.5rem; }
  .lb-couverture { max-width: 200px; }
}

/* ═══════════════════════════════════════════════════════════════
   PARLONS IA : livres blancs envoyés contre une adresse e-mail
   ═══════════════════════════════════════════════════════════════ */
.pia-liste { display: grid; gap: 2rem; max-width: 1040px; }
.pia-livre {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  scroll-margin-top: 100px;
}
.pia-couverture img {
  display: block; width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(38, 37, 36, .22);
  transform: rotate(-1.5deg);
  transition: transform .3s var(--ease-smooth);
}
.pia-livre:hover .pia-couverture img { transform: rotate(0) translateY(-4px); }
.pia-corps h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.25; margin: .2rem 0 .8rem; }
.pia-corps > p { color: var(--ink-700); line-height: 1.6; margin-bottom: .9rem; }
.pia-points { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.pia-points li { position: relative; padding: .3rem 0 .3rem 1.4rem; color: var(--ink-800); line-height: 1.5; }
.pia-points li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--bleu-teal);
}

.pia-form { padding: 1.25rem; background: var(--cream); border-radius: 12px; }
.pia-label { display: block; font-weight: 600; color: var(--ink-900); margin-bottom: .6rem; }
.pia-ligne { display: flex; gap: .6rem; flex-wrap: wrap; }
.pia-ligne input {
  flex: 1 1 240px;
  min-width: 0;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 16px;               /* pas de zoom automatique sur iPhone */
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  background: var(--white);
}
.pia-ligne input:focus { outline: 2px solid var(--bleu-500); outline-offset: 1px; border-color: var(--bleu-500); }
.pia-ligne .btn { flex: 0 0 auto; }
.pia-optin { display: flex; gap: .55rem; align-items: flex-start; margin-top: .75rem; font-size: 13px; color: var(--ink-700); line-height: 1.45; cursor: pointer; }
.pia-optin input { margin-top: .2rem; flex-shrink: 0; }
.pia-message { margin: .75rem 0 0; font-size: 14.5px; }
.pia-message:empty { display: none; }
.pia-message.ok { color: #2F6B45; font-weight: 600; }
.pia-message.ok a { color: var(--bleu-700); }
.pia-message.erreur { color: #B3402A; }
.pia-rgpd { font-size: 13px; color: var(--ink-500); line-height: 1.55; max-width: 760px; }

@media (max-width: 760px) {
  .pia-livre { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.5rem; }
  .pia-couverture { max-width: 190px; }
  .pia-ligne .btn { width: 100%; justify-content: center; }
}

/* Menu à 7 entrées : resserré entre 1000 et 1280 px */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-links { gap: 1rem; }
  .nav-link { font-size: 14px; }
  .nav-cta { padding: .55rem 1rem; }
}
.pia-form [hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   PARLONS IA : aperçu animé : le livre s'ouvre (couverture qui tourne)
   ═══════════════════════════════════════════════════════════════ */
.pia-couverture {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
}
.pia-feuilleter {
  position: absolute;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  white-space: nowrap;
  transition: transform .2s var(--ease-smooth);
}
.pia-feuilleter::before { content: "\25B8\00a0"; color: var(--bleu-700); }
.pia-couverture:hover .pia-feuilleter,
.pia-couverture:focus-visible .pia-feuilleter { transform: translateX(-50%) translateY(-3px); }

.lb-apercu { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.lb-apercu[hidden] { display: none; }
.lb-apercu-fond {
  position: absolute; inset: 0;
  background: rgba(20, 20, 19, .82);
  opacity: 0; transition: opacity .25s;
}
.lb-apercu-boite {
  position: relative;
  width: min(1000px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s, transform .25s var(--ease-smooth);
}
.lb-apercu.visible .lb-apercu-fond,
.lb-apercu.visible .lb-apercu-boite { opacity: 1; }
.lb-apercu.visible .lb-apercu-boite { transform: none; }
.lb-fermer {
  position: absolute; top: -.5rem; right: 0; z-index: 3;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}
.lb-fermer:hover { background: rgba(255, 255, 255, .26); }

/* Le livre : deux pages côte à côte (ratio A4 ≈ 0,707), hauteur bornée par l'écran */
.livre {
  --page-h: min(78vh, calc((min(1000px, 100vw - 2rem) / 2) / .7071));
  position: relative;
  height: var(--page-h);
  width: calc(var(--page-h) * .7071 * 2);
  perspective: 2400px;
  cursor: pointer;
  transform: translateX(-25%);                 /* fermé : la couverture est centrée */
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
}
.livre.ouvert { transform: none; }
.livre-page, .livre-couv {
  position: absolute; top: 0; left: 50%;
  width: 50%; height: 100%;
}
.livre-page { object-fit: cover; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.livre-couv {
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
  z-index: 2;
}
.livre.ouvert .livre-couv { transform: rotateY(-180deg); }
.livre-face {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.livre-arriere { transform: rotateY(180deg); background: #fff; }
/* Pli central : léger ombrage sur les deux pages ouvertes */
.livre.ouvert .livre-droite { box-shadow: inset 18px 0 24px -18px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45); }

.lb-apercu-pied { position: relative; color: var(--ink-200); font-size: 14px; text-align: center; margin: 0; }
.lb-apercu-pied a { color: var(--accent-400); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .livre, .livre-couv, .lb-apercu-boite, .lb-apercu-fond { transition: none; }
}
body.apercu-ouvert { overflow: hidden; }

/* Aperçu sur téléphone : une page à la fois, en grand (le livre déborde de l'écran, on le fait glisser) */
.lb-astuce { display: none; }
@media (max-width: 640px) {
  .lb-apercu { overflow: hidden; padding: .5rem; }
  .livre { --page-h: min(72vh, calc(86vw / .7071)); }
  .livre.ouvert { transform: translateX(25%); }          /* page 2 (dos de la couverture) au centre */
  .livre.ouvert.droite { transform: translateX(-25%); }  /* page 3 au centre */
  .lb-astuce { display: inline; }
  .lb-fermer { top: auto; bottom: calc(100% + .25rem); }
}

/* Aperçu : la boîte reste à la largeur de l écran, le livre (plus large sur téléphone) déborde centré */
.lb-apercu { grid-template-columns: minmax(0, 1fr); }
.lb-apercu-boite { width: 100%; max-width: 1000px; min-width: 0; justify-self: center; }
.livre { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   PARLONS IA : barre de raccourcis vers les livres blancs (collée sous le menu)
   ═══════════════════════════════════════════════════════════════ */
.pia-onglets {
  position: sticky;
  top: var(--hauteur-nav, 76px);   /* juste sous la barre de navigation (mesurée par shared.js) */
  z-index: 50;
  background: rgba(248, 245, 241, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-200);
}
.pia-onglets .container { display: flex; align-items: center; gap: 1.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.pia-onglets-titre {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.pia-onglets-liste {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  min-width: 0;
}
.pia-onglets-liste::-webkit-scrollbar { display: none; }
.pia-onglet {
  flex-shrink: 0;
  padding: .32rem .9rem;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-700);
  scroll-snap-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.pia-onglet:hover { border-color: var(--ink-400); color: var(--ink-900); }
.pia-onglet.actif { background: var(--fond-sombre); border-color: var(--ink-900); color: #fff; }
/* html a déjà scroll-padding-top: 100px ; on ajoute de quoi passer sous la barre de raccourcis */
.pia-livre { scroll-margin-top: calc(var(--hauteur-nav, 76px) + 64px - 100px); }
@media (max-width: 760px) {
  .pia-onglets-titre { display: none; }
  .pia-onglets .container { padding-left: 0; padding-right: 0; }
  .pia-onglets-liste { padding: 0 var(--container-pad); }
}

/* ═══════════════════════════════════════════════════════════════
   PROBLEMATIQUES · « Vous vous reconnaissez ? »
   Le symptome dans les mots du dirigeant, puis notre reponse.
   Placee haut sur l'accueil : on se reconnait avant qu'on nous
   parle d'expertises.
   ═══════════════════════════════════════════════════════════════ */

.section-problematiques {
  padding: var(--section-pad-y) 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--ink-200);
}

.probl-entete { max-width: 700px; margin-bottom: 2.5rem; }
.probl-entete h2 { margin-bottom: 1rem; }

.probl-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .probl-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .probl-grille { grid-template-columns: 1fr; } }

.probl-carte {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--accent-500);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease-smooth);
}
.probl-carte:hover { border-color: var(--ink-900); border-left-color: var(--accent-600); }

/* Le symptome : ce que le dirigeant dit, tel qu'il le dit */
.probl-symptome {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-900);
  margin-bottom: 1rem;
  flex: 1;
}

/* Notre reponse, detachee par un filet */
.probl-reponse {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-700);
  padding-top: 1rem;
  border-top: 1px solid var(--ink-200);
}
.probl-reponse a {
  color: var(--bleu-700);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.probl-reponse a:hover { color: var(--ink-900); }

/* Etiquette de theme, en mono comme le reste des labels */
.probl-theme {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .75rem;
}

.probl-pied {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-200);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.probl-pied-texte { color: var(--ink-700); font-size: .98rem; }

/* ─── Réalisations : le problème avant la solution ───────────── */
.real-probleme {
  background: var(--cream-warm);
  border-left: 3px solid var(--ink-300);
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-700);
}
.real-probleme strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: .35rem;
}
