/* ==========================================================================
   Fastilog — feuille de style unique
   Reprise de la charte du site actuel (Impreza) : mêmes couleurs, même
   typographie, mais CSS écrit à la main, sans framework ni build.
   ========================================================================== */

/* --- Police auto-hébergée (Open Sans, licence OFL, voir assets/fonts) ------
   Police variable : un seul fichier par style couvre les graisses 300 à 800.
   Sous-ensemble latin (accents français inclus). Plus d'appel à Google Fonts. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/open-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs relevées sur www.fastilog.fr */
  --teal-900: #015a68;
  --teal-700: #117382;
  --teal-500: #2596a6;
  --teal-200: #89cedd;
  --gris-100: #f2f2f2;
  --gris-300: #dcdcdc;
  --gris-600: #6b7280;
  --texte: #1a1a1a;
  --blanc: #ffffff;

  --largeur-max: 1200px;
  --rayon: 6px;
  --ombre: 0 2px 10px rgba(0, 0, 0, .08);
  --ombre-forte: 0 6px 24px rgba(0, 0, 0, .12);
  --transition: .2s ease;

  /* Open Sans auto-hébergée (voir @font-face ci-dessus) */
  --police: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 300; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-500); }
img { max-width: 100%; height: auto; display: block; }

.conteneur { width: 100%; max-width: var(--largeur-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--gris { background: var(--gris-100); }
.section--teal { background: var(--teal-700); color: var(--blanc); }
.section--teal a { color: var(--blanc); }
.centre { text-align: center; }
.surtitre { color: var(--teal-500); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.accroche { font-size: 1.05rem; max-width: 760px; margin-inline: auto; }

/* --- Boutons --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid var(--teal-500);
  border-radius: var(--rayon);
  background: var(--teal-500);
  color: var(--blanc);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); color: var(--blanc); transform: translateY(-1px); }
.btn--fantome { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn--fantome:hover { background: var(--blanc); color: var(--teal-700); border-color: var(--blanc); }

/* --- Barre supérieure + en-tête -------------------------------------- */
.barre-haut {
  background: var(--teal-900);
  color: var(--blanc);
  font-size: .85rem;
}
.barre-haut .conteneur { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; padding-block: 6px; }
.barre-haut a { color: var(--blanc); opacity: .9; white-space: nowrap; }
.barre-haut a:hover { opacity: 1; color: var(--blanc); }

.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc);
  box-shadow: var(--ombre);
}
.entete .conteneur { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.logo img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px;
  color: var(--texte); font-size: .95rem; font-weight: 600;
  border-radius: var(--rayon);
}
.nav a:hover, .nav [aria-expanded="true"] { color: var(--teal-700); background: var(--gris-100); }

.sous-menu { position: relative; }
.sous-menu > button {
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border: 0; border-radius: var(--rayon);
  background: none; color: var(--texte); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.sous-menu > button::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sous-menu > button:hover { color: var(--teal-700); background: var(--gris-100); }
.sous-menu ul {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 300px; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--blanc); box-shadow: var(--ombre-forte);
  border-radius: var(--rayon); padding: 8px 0;
}
.sous-menu ul a { padding: 10px 18px; border-radius: 0; font-weight: 400; }
.sous-menu[data-ouvert="true"] ul { display: flex; }
.sous-menu[data-ouvert="true"] > button::after { transform: rotate(-135deg) translateY(-2px); }

.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--texte); margin: 5px 0; transition: transform var(--transition), opacity var(--transition); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Héros ------------------------------------------------------------ */
.heros {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
  color: var(--blanc);
  padding: 90px 0;
}
.heros h1 { color: var(--blanc); }
.heros .accroche { margin-inline: 0; opacity: .95; }
.heros__grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* --- Modules ---------------------------------------------------------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin-top: 40px; }
.module {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 28px 18px;
  background: var(--blanc); border: 1px solid var(--gris-300); border-radius: var(--rayon);
  color: var(--texte); font-weight: 600; font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.module:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: var(--teal-200); color: var(--teal-700); }
.module img { width: 64px; height: 64px; object-fit: contain; }
.module__famille { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--teal-500); text-transform: uppercase; }

/* --- Témoignages ------------------------------------------------------ */
/* Trois témoignages à la fois, les suivants au défilement horizontal. Sans JavaScript
   la piste reste glissable (pavé tactile, doigt, clavier) ; les flèches, qui n'auraient
   alors rien à commander, sont posées par js/main.js — qui ajoute aussi carrousel--actif. */
.temoignages {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px; margin-top: 40px; padding-bottom: 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.temoignages > * { scroll-snap-align: start; }
/* Page dédiée aux témoignages : tous affichés, sans défilement. Rien ne dépasse,
   donc js/main.js n'y pose aucune flèche. */
.temoignages--grille { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); overflow-x: visible; }
.carrousel { position: relative; }
/* La barre de défilement ne sert plus dès que les flèches sont là. */
.carrousel--actif .temoignages { scrollbar-width: none; }
.carrousel--actif .temoignages::-webkit-scrollbar { display: none; }
.carrousel__fleche {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--gris-300); border-radius: 50%;
  background: var(--blanc); color: var(--teal-700); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ombre); transition: opacity var(--transition), color var(--transition);
}
.carrousel__fleche:hover { color: var(--teal-900); }
.carrousel__fleche[disabled] { opacity: 0; pointer-events: none; }
.carrousel__fleche--precedent { left: -18px; }
.carrousel__fleche--suivant { right: -18px; }
/* Chevron dessiné au trait, comme celui de l'accordéon. */
.carrousel__fleche::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.carrousel__fleche--precedent::before { rotate: -135deg; margin-left: 4px; }
.carrousel__fleche--suivant::before { rotate: 45deg; margin-right: 4px; }
.temoignage {
  /* margin: 0 — sans quoi les 40 px de marge que le navigateur donne à <figure>
     rétrécissent la carte et décalent le point d'accroche du carrousel. */
  margin: 0; background: var(--blanc); border-radius: var(--rayon); padding: 28px;
  box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 16px;
}
.temoignage blockquote { margin: 0; font-style: italic; color: #333; }
.temoignage figcaption { margin-top: auto; font-size: .9rem; }
.temoignage strong { display: block; color: var(--teal-700); }
/* Le logo du client ferme la carte, comme sur le site actuel. */
.temoignage img { max-width: 150px; height: 44px; width: auto; object-fit: contain; object-position: left; }
/* Note : une étoile répétée autant de fois que --etoiles (5 par défaut, la seule
   valeur qu'emploie le site actuel). Le texte lu par les lecteurs d'écran est dans
   le HTML : une image de fond ne leur dit rien. */
.note { width: calc(var(--etoiles, 5) * 21px); height: 18px; margin: 0; background: url("../assets/img/icones/etoile.svg") repeat-x left center / 21px 18px; }

/* --- Contact ---------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.coordonnees { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; }

.formulaire { display: grid; gap: 16px; background: var(--blanc); padding: 30px; border-radius: var(--rayon); box-shadow: var(--ombre); }
.champ { display: grid; gap: 6px; }
.champ label { font-size: .85rem; font-weight: 600; color: var(--gris-600); }
.champ input, .champ textarea, .champ select {
  font: inherit; padding: 11px 13px;
  border: 1px solid var(--gris-300); border-radius: var(--rayon);
  background: var(--blanc); color: var(--texte);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(37, 150, 166, .15);
}
.champ--pot-de-miel { position: absolute; left: -9999px; }
.mention { font-size: .8rem; color: var(--gris-600); }
.message-formulaire { padding: 12px 14px; border-radius: var(--rayon); font-size: .9rem; display: none; }
.message-formulaire[data-etat="ok"] { display: block; background: #e6f4ea; color: #1e6b3a; }
.message-formulaire[data-etat="erreur"] { display: block; background: #fdecec; color: #a32020; }

/* --- Pied de page ----------------------------------------------------- */
.pied { background: var(--teal-900); color: rgba(255, 255, 255, .85); padding: 56px 0 24px; font-size: .9rem; }
.pied a { color: rgba(255, 255, 255, .85); }
.pied a:hover { color: var(--blanc); }
/* Quatre colonnes comme sur le site actuel : coordonnées, modules (sur deux colonnes),
   documentation. La première est plus large, elle porte le logo et les badges. */
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; }
.pied h3 { color: var(--blanc); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied p { margin: 0 0 8px; }
.pied__logo { width: auto; height: 44px; margin-bottom: 18px; }
/* Réseaux : icônes posées en masque, comme celles du partage d'article. */
.reseaux { display: flex; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.reseaux a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--rayon); background: rgba(255, 255, 255, .1); color: var(--blanc); }
.reseaux a:hover { background: var(--teal-500); color: var(--blanc); }
.reseaux a::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat; }
.reseau--email { --icone: url("../assets/img/icones/enveloppe.svg"); }
.reseau--youtube { --icone: url("../assets/img/icones/youtube.svg"); }
.reseau--linkedin { --icone: url("../assets/img/icones/linkedin.svg"); }
.pied__applis { width: auto; max-width: 220px; margin-top: 22px; }
/* La seconde liste de modules s'aligne sur la première, sous le titre « Modules ». */
.pied__suite { margin-top: calc(.95rem * 1.2 + .6em); }
.pied__doc img { width: auto; max-width: 170px; border-radius: 3px; box-shadow: var(--ombre-forte); }
.pied__bas { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; }
.pied__bas p { margin: 0; }

/* --- Accessibilité ---------------------------------------------------- */
.lien-evitement {
  position: absolute; left: -9999px;
  background: var(--teal-900); color: var(--blanc); padding: 10px 16px; z-index: 100;
}
.lien-evitement:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .heros__grille, .contact { grid-template-columns: 1fr; }
  .heros { padding: 60px 0; }
  .burger { display: block; }
  .barre-haut .conteneur { justify-content: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); box-shadow: var(--ombre-forte); display: none; max-height: calc(100vh - 140px); overflow-y: auto; } /* 140 = en-tête + barre supérieure sur deux lignes */
  .nav[data-ouvert="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px; }
  .sous-menu ul { position: static; box-shadow: none; padding-left: 12px; }
  .sous-menu > button { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- Page 404 --------------------------------------------------------- */
.btn--secondaire { background: transparent; color: var(--teal-700); }
.btn--secondaire:hover { background: var(--teal-500); border-color: var(--teal-500); color: var(--blanc); }
.erreur-404 { padding: 96px 0; }
.erreur-404__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 300; line-height: 1; color: var(--teal-200); margin: 0; }
.erreur-404__actions { justify-content: center; margin: 28px 0 32px; }

/* --- Pages de contenu (issues de la migration WordPress) ---------------- */
.heros--page { background: var(--gris-100); color: var(--texte); padding: 64px 0; }
.heros--page h1 { color: var(--accent, var(--teal-700)); }
.heros--page .surtitre { color: var(--accent, var(--teal-500)); }
.heros--page .accroche { opacity: 1; }
.heros--page .btn { background: var(--accent, var(--teal-500)); border-color: var(--accent, var(--teal-500)); }
.heros--page .btn:hover { background: var(--teal-900); border-color: var(--teal-900); }
.heros--page .heros__grille img { margin-inline: auto; }
.section > .conteneur > h2:first-child { margin-bottom: .8em; }
.section h2 + .btn, .section p + .btn { margin-top: 8px; }

.grille { display: grid; gap: 32px; align-items: start; margin-block: 24px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.grille-image { grid-template-columns: minmax(100px, 180px) 1fr; align-items: center; }
.grille img { margin-inline: auto; }

.carte { height: 100%; padding: 28px 22px; background: var(--blanc); border: 1px solid var(--gris-300); border-radius: var(--rayon); text-align: center; }
.carte img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; }
.carte h3 { font-size: 1.05rem; }
.carte p { margin-bottom: .5em; font-size: .95rem; }
.carte p:last-child { margin-bottom: 0; }

.encart { display: grid; gap: 4px 16px; align-items: start; padding: 20px; background: var(--gris-100); border-radius: var(--rayon); margin-block: 16px; }
/* Deux colonnes seulement quand il y a une image : sans elle, le titre et le texte
   se partageraient ces deux colonnes et se retrouveraient côte à côte, à l'étroit. */
.encart:has(img) { grid-template-columns: auto 1fr; }
.section--gris .encart { background: var(--blanc); }
.encart img { grid-row: span 3; width: 48px; height: 48px; object-fit: contain; }
.encart h3 { margin: 0; }
.encart p { margin-bottom: .5em; }
.encart p:last-child { margin: 0; }

/* Fiche client (secteur d'activité, solutions utilisées, effectif) : les encarts d'une
   même ligne perdent leur cadre gris et sont séparés par un filet pointillé, comme sur
   le site actuel. L'icône n'accompagne que le titre, la valeur passe dessous. */
/* align-items: stretch pour que les filets aient tous la hauteur de la ligne, et non
   celle de leur propre colonne ; gap resserré pour laisser respirer les intitulés. */
.grille--fiches { gap: 24px 28px; align-items: stretch; }
.grille--fiches > * + * { border-left: 2px dotted var(--teal-200); padding-left: 28px; }
.encart--fiche, .section--gris .encart--fiche { grid-template-columns: auto 1fr; padding: 0; margin-block: 0; background: none; }
.encart--fiche::before { content: ""; width: 36px; height: 36px; align-self: center; background: var(--icone, none) center / contain no-repeat; }
/* .prose (le corps des articles, où ces fiches apparaissent) impose sa taille et ses
   marges aux titres : il faut une spécificité au moins égale pour les reprendre. */
.encart--fiche h3, .prose .encart--fiche h3 { align-self: center; margin: 0; font-size: 1.05rem; }
.encart--fiche p { grid-column: 1 / -1; }
/* Le thème WordPress tirait ces icônes d'une police (Font Awesome) que le site ne
   charge pas ; celles des fiches client sont redessinées dans assets/img/icones. */
/* La classe porte le dessin, le composant décide de sa taille et de sa place :
   les mêmes icônes servent aux fiches client et aux titres. */
.icone--boutique { --icone: url("../assets/img/icones/boutique.svg"); }
.icone--outils { --icone: url("../assets/img/icones/outils.svg"); }
.icone--personnes { --icone: url("../assets/img/icones/personnes.svg"); }

/* Titre précédé de son icône (les intertitres à icône du site actuel). */
.titre-icone { display: flex; align-items: center; gap: 14px; }
.titre-icone.centre { justify-content: center; }
.titre-icone::before { content: ""; flex: none; width: 38px; height: 38px; background: var(--icone, none) center / contain no-repeat; }

/* Vidéo : une affiche servie par le site, surmontée d'un bouton de lecture. Rien n'est
   demandé à YouTube avant le clic. Sans JavaScript, le lien y ouvre la vidéo ; avec,
   js/main.js la joue sur place. */
.video { margin-block: 24px; }
.video__lien { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: var(--gris-100); }
.video__lien img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.video__lien::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); transition: background var(--transition); }
.video__lien::after { content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 72px; height: 72px; background: url("../assets/img/icones/lecture.svg") center / contain no-repeat; }
.video__lien:hover::before, .video__lien:focus-visible::before { background: rgba(0, 0, 0, .32); }
.video__cadre { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--rayon); }

.accordeon { margin-block: 24px; border-top: 1px solid var(--gris-300); }
.accordeon details { border-bottom: 1px solid var(--gris-300); }
.accordeon summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--teal-700); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--transition); }
.accordeon details[open] summary::after { transform: rotate(-135deg); }
.accordeon details > div { padding: 0 0 20px; }
.accordeon .grille { margin-block: 8px; }

.appel { padding: 28px; background: var(--teal-700); color: var(--blanc); border-radius: var(--rayon); text-align: center; margin-block: 24px; }
.appel a { color: var(--blanc); }
.appel .btn { background: var(--blanc); color: var(--teal-700); border-color: var(--blanc); }
.appel p:last-child { margin: 0; }

.temoignage figcaption a { font-weight: 400; }

/* --- Articles et blog --------------------------------------------------- */
.conteneur--etroit { max-width: 860px; }
.article { padding: 56px 0 72px; }
.article__entete { margin-bottom: 28px; }
.article__entete h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.article__image { border-radius: var(--rayon); margin-bottom: 32px; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; font-weight: 600; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; }
.prose > img, .prose > p > img { margin: 24px auto; border-radius: var(--rayon); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .section { padding: 0; }
.prose .section--gris { background: none; }
.prose .conteneur { padding: 0; }
.article__pied { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gris-300); }

/* Partage de l'article : de simples liens vers les boîtes de dialogue des réseaux.
   Aucun script tiers, donc aucun traceur chargé à l'insu du visiteur — le site actuel
   chargeait les widgets officiels. Le dessin des marques est posé en masque, pour que
   la couleur suive le texte au survol. */
.partage { display: flex; align-items: center; align-self: center; margin: 0 0 0 auto; }
.partage a { display: flex; align-items: center; justify-content: center; width: 46px; height: 34px; color: var(--gris-600); }
.partage a + a { border-left: 1px solid var(--gris-300); }
.partage a:hover { color: var(--teal-700); }
.partage a::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat; }
.partage--facebook { --icone: url("../assets/img/icones/facebook.svg"); }
.partage--x { --icone: url("../assets/img/icones/x.svg"); }
.partage--linkedin { --icone: url("../assets/img/icones/linkedin.svg"); }
/* Texte des liens de partage : lu par les lecteurs d'écran, hors de l'écran pour les autres. */
.hors-ecran { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filtres .btn { padding: 8px 16px; font-size: .8rem; }
.filtres .actif { background: var(--teal-700); color: var(--blanc); border-color: var(--teal-700); }
.cartes-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.carte-article { display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.carte-article img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.carte-article .surtitre, .carte-article h2, .carte-article h3, .carte-article p { padding-inline: 20px; }
.carte-article .surtitre { margin: 18px 0 6px; }
.carte-article h2, .carte-article h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.carte-article h2 a, .carte-article h3 a { color: var(--texte); }
.carte-article h2 a:hover, .carte-article h3 a:hover { color: var(--teal-700); }
.carte-article p:last-child { color: var(--gris-600); font-size: .92rem; padding-bottom: 20px; margin: 0; }

@media (max-width: 900px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .temoignages { grid-auto-columns: calc((100% - 24px) / 2); }
  /* Les fiches passent l'une sous l'autre plutôt que de se répartir sur deux rangs,
     où le filet vertical se retrouverait devant la première fiche du second rang. */
  .grille--fiches { grid-template-columns: 1fr; gap: 0; }
  .grille--fiches > * + * { border-left: 0; border-top: 2px dotted var(--teal-200); padding: 24px 0 0; margin-top: 24px; }
  .heros--page { padding: 40px 0; }
}
@media (max-width: 600px) {
  .grille-2, .grille-3, .grille-4, .grille-image { grid-template-columns: 1fr; }
  .encart:has(img) { grid-template-columns: 1fr; }
  .encart img { grid-row: auto; }
  /* Un témoignage par écran, et les flèches ramenées dans la marge du conteneur. */
  .temoignages { grid-auto-columns: 100%; }
  .carrousel__fleche--precedent { left: -6px; }
  .carrousel__fleche--suivant { right: -6px; }
}

/* Mur de logos (galerie d'images issue de WordPress) */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 32px; align-items: center; margin-block: 24px; }
.galerie img { max-height: 64px; width: auto; max-width: 100%; margin: auto; object-fit: contain; }
/* Accueil : les logos clients suivent les témoignages, comme dans le carrousel du site actuel. */
.galerie--clients { margin-top: 40px; }

/* --- Correctif V2 : ce que l'import n'avait pas repris (voir « correctif V2.md ») ------ */

/* Entrée de menu à la fois lien et sous-menu (« Clients ») : le libellé mène à la page,
   seul le bouton (chevron) déroule la liste. */
.sous-menu--lien { display: flex; align-items: center; }
.sous-menu--lien > a { padding-right: 2px; }
.sous-menu--lien > button { padding: 12px 10px 12px 2px; }
.sous-menu--lien > button:hover { background: none; }

/* Cartes retournables des pages module : recto icône + titre (teinté de la couleur du
   module), verso texte sur son illustration en filigrane. Le verso apparaît au survol ou
   au focus (la carte est focalisable), comme les « flip boxes » du site actuel. Les deux
   faces occupent la même cellule de grille : la carte prend la hauteur de la plus haute. */
.carte--retournable { display: grid; padding: 0; border: 0; background: none; perspective: 1200px; }
.carte__recto, .carte__verso {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 28px 22px; border: 1px solid var(--gris-300); border-radius: var(--rayon);
  backface-visibility: hidden; transition: transform .5s ease;
}
.carte__recto { background: var(--gris-100); color: var(--accent, var(--teal-700)); }
.carte .carte__recto img { width: 90px; height: 90px; margin-bottom: 18px; }
.carte__recto h3 { color: inherit; font-size: 1.3rem; font-weight: 600; margin: 0; }
.carte__verso { position: relative; overflow: hidden; background: var(--blanc); transform: rotateY(180deg); }
.carte__verso > * { position: relative; }
.carte .carte__fond { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; }
.carte--retournable:hover .carte__recto, .carte--retournable:focus-within .carte__recto { transform: rotateY(180deg); }
.carte--retournable:hover .carte__verso, .carte--retournable:focus-within .carte__verso { transform: rotateY(360deg); }
/* Sans survol (écran tactile), les deux faces sont posées l'une sous l'autre : rien n'est caché. */
@media (hover: none) {
  .carte--retournable { display: block; }
  .carte__recto, .carte__verso { transform: none; backface-visibility: visible; }
  .carte__verso { margin-top: 12px; }
}

/* Bandeau photo des pages sectorielles : l'image (1200 × 350 sur le site actuel) couvre
   toute la largeur, le titre est posé dessus, vers le bas, sur un léger dégradé sombre. */
.bandeau { position: relative; display: grid; align-items: end; min-height: 420px; overflow: hidden; color: var(--blanc); text-align: center; }
.bandeau__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 65%); }
.bandeau .conteneur { position: relative; padding-block: 40px 56px; }
.bandeau h1 { color: var(--blanc); margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

/* Auteur de l'article, dans la ligne d'en-tête (catégorie · date · auteur). */
.auteur { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Fil d'Ariane des pages de catégorie (« Accueil › GTA »), comme sur le site actuel. */
.fil-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .9rem; color: var(--gris-600); }
.fil-ariane a { color: var(--gris-600); }
.fil-ariane a:hover { color: var(--teal-700); }
.fil-ariane [aria-current] { color: var(--texte); }

/* Navigation entre articles (« Article précédent / suivant »), ajoutée par build.js. */
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.article__nav a { display: block; padding: 16px 20px; border: 1px solid var(--gris-300); border-radius: var(--rayon); color: var(--texte); }
.article__nav a:hover { border-color: var(--teal-200); color: var(--teal-700); }
.article__nav span { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-500); }
.article__nav-suivant { grid-column: 2; text-align: right; }

@media (max-width: 900px) {
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__suite { margin-top: 0; }
  .sous-menu--lien { flex-wrap: wrap; }
  .sous-menu--lien > a { flex: 1; }
  .sous-menu--lien > button { width: auto; }
  .sous-menu--lien > ul { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .pied__grille { grid-template-columns: 1fr; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-suivant { grid-column: auto; }
  .bandeau { min-height: 300px; }
}
