/* ============================================
   KODE444 - Site agence web
   ============================================ */

:root {
  --bg: #0e0e0c;
  --bg-soft: #151512;
  --text: #f1ede6;
  --muted: #8a8578;
  --accent: #ff9d00;
  --line: rgba(241, 237, 230, 0.12);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --nav-h: 5.68rem; /* hauteur de l'en-tete : 2 x 1,5 rem + le bouton d'audit */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.loading { overflow: hidden; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
/* Lien placé dans un texte de page (paragraphe, liste, réponse de FAQ) : en orange pour qu'on le voie, sans
   soulignement (choix de Nico du 18/11/2026) ; les articles gardent le leur (.article-corps a). Boutons, cartes,
   menus, fil d'Ariane, sommaire et colonne des articles ont une classe ou sont dans un nav ou un aside : non
   touchés. :where() garde la règle aussi faible que « a » : toute règle plus précise l'emporte. */
:where(main :is(p, li, dd, td, figcaption, blockquote)) a:where(:not([class]):not(nav a, aside a)) { color: var(--accent); }
:where(main :is(p, li, dd, td, figcaption, blockquote)) a:where(:not([class]):not(nav a, aside a)):hover { color: var(--text); }
ul { list-style: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}
.preloader-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.preloader-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
}
.preloader-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}
.cursor.is-hover { width: 56px; height: 56px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  /* Le bouton et le burger vivent hors de l'en-tete (.nav-right) : la hauteur
     qu'ils lui donnaient et la place qu'ils occupaient a droite sont rendues
     ici, pour que le logo et les liens ne bougent pas. */
  min-height: var(--nav-h);
  padding-right: calc(clamp(1.5rem, 4vw, 4rem) + 7.625rem);
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-logo sup { font-size: 0.55em; }
.nav-links {
  display: flex;
  margin: 0 auto;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.nav-links a {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  border-radius: 99px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 1099px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7.5rem clamp(1.5rem, 4vw, 4rem) 4rem;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}
#hero-canvas.is-ready { opacity: 1; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* Fil d'Ariane (18/11/2026, accord de Nico) : le sur-titre des heros devient le fil, dans le
   meme style (petites capitales grises, point orange). Seules les etapes cliquables
   s'eclaircissent au survol. */
/* Selecteurs a deux classes : dans un article, ils passent devant les listes numerotees et les
   liens soulignes de .article-corps, que le fil ne doit pas reprendre. */
.hero-eyebrow.fil-ariane ol { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; list-style: none; margin: 0; padding: 0; }
.hero-eyebrow.fil-ariane li { display: flex; align-items: center; gap: 0.6rem; position: static; padding: 0; counter-increment: none; }
.hero-eyebrow.fil-ariane li::before { content: none; }
.hero-eyebrow.fil-ariane li + li::before { content: "\203A"; position: static; color: inherit; font-size: inherit; letter-spacing: inherit; }
.hero-eyebrow.fil-ariane a { color: inherit; text-decoration: none; transition: color 0.3s; }
.hero-eyebrow.fil-ariane a:hover { color: var(--text); }
/* Dans un article ou une page legale, le fil ouvre la colonne de texte : l'espace vient de
   l'element suivant (l'image a la une, ou la ligne de date). */
.article-corps .hero-eyebrow.fil-ariane { margin-bottom: 0; }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur téléphone, quand le fil passe sur deux lignes (titre
   d'article, pages de deuxième niveau), le point reste en face de la première ligne au lieu de flotter
   entre les deux. Au-dessus de 767 px, le fil tient sur une ligne : rien ne change. */
@media (max-width: 767px) {
  .hero-eyebrow.fil-ariane { align-items: flex-start; }
  .hero-eyebrow.fil-ariane .dot { margin-top: calc((1lh - 8px) / 2); }
}
/* FIN RETOUCHE */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 9.5vw, 10.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line-inner { display: block; }
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .hero-bottom { padding-right: 7rem; }
}
.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border-radius: 99px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--text); }
.btn-ghost {
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

.hero-scroll {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 4rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--muted);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--muted);
  animation: scrollLine 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 767px) { .hero-scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections communes ---------- */
section, .footer { padding: clamp(6rem, 12vw, 11rem) clamp(1.5rem, 4vw, 4rem); }
.hero { padding-top: 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}
.section-head { margin-bottom: 4rem; }

/* ---------- Manifesto ---------- */
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  line-height: 1.25;
  max-width: 22ch;
}
.manifesto-text .w { display: inline-block; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr 1.2fr 3rem;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.service-row:hover::before { transform: scaleY(1); }
.service-row > * { position: relative; z-index: 1; transition: color 0.3s; }
.service-num {
  font-size: 0.8rem;
  color: var(--muted);
}
.service-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}
.service-desc { color: var(--muted); font-size: 0.95rem; }
.service-arrow {
  font-size: 1.5rem;
  justify-self: end;
  transform: translate(-6px, 6px);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.service-row:hover .service-arrow { transform: translate(0, 0); }
.service-row:hover .service-num,
.service-row:hover .service-name,
.service-row:hover .service-desc,
.service-row:hover .service-arrow { color: var(--bg); }
@media (max-width: 767px) {
  .service-row { grid-template-columns: 2.5rem 1fr 2rem; }
  .service-desc { display: none; }
}
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sous 400 px, les colonnes de la liste des services se
   resserrent : « Référencement » ne tenait pas à 360 et 375 px et se coupait à droite (accueil, Expertises). */
@media (max-width: 400px) { .service-row { grid-template-columns: 2rem 1fr 1.5rem; gap: 0.9rem; } }
/* FIN RETOUCHE */

/* ---------- Process ---------- */
.process { overflow: hidden; }
.process-intro { margin-bottom: 4rem; }
.process-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  will-change: transform;
}
.process-panel {
  flex-shrink: 0;
  width: clamp(300px, 62vw, 640px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: clamp(320px, 44vh, 420px);
}
.process-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.process-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}
.process-panel p { color: var(--muted); max-width: 42ch; }
@media (min-width: 768px) {
  .process-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 3rem;
  }
  .process-intro .section-label { grid-column: 1 / -1; }
  .process-intro .section-title { margin-bottom: 0; }
  .process-intro .btn { margin-bottom: 0.4em; }
}
@media (min-width: 768px) and (min-height: 620px) {
  .process {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(4rem, 11vh, 8rem);
    padding-bottom: clamp(1rem, 3vh, 4rem);
  }
  .process-intro { margin-bottom: clamp(1rem, 3vh, 4rem); }
  .process-panel {
    min-height: clamp(220px, 38vh, 420px);
    padding-top: clamp(1.5rem, 3vh, 3.5rem);
    padding-bottom: clamp(1.5rem, 3vh, 3.5rem);
    gap: clamp(0.8rem, 2vh, 1.4rem);
  }
}
@media (max-width: 767px), (max-height: 619px) {
  .process-track { flex-direction: column; }
  .process-panel { width: 100%; min-height: 0; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.6rem; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}
.stat-value sup { font-size: 0.4em; color: var(--accent); }
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project-card { display: block; }
.project-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-card:hover .project-visual { transform: scale(0.98); }
.project-visual-gm {
  background: radial-gradient(120% 120% at 20% 20%, #2a1c00 0%, var(--bg-soft) 55%),
              linear-gradient(160deg, rgba(255, 157, 0, 0.35), transparent 60%);
}
.project-visual span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-card:hover .project-visual span { transform: scale(1.06); }
.project-card-empty .project-visual {
  border: 1px dashed rgba(241, 237, 230, 0.3);
  background: transparent;
}
.project-card-empty .project-visual span {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--muted);
}
.project-meta { padding: 1.4rem 0.2rem; }
.project-meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.project-meta p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 767px) { .project-grid { grid-template-columns: 1fr; } }
/* Accueil : deux projets sur portable, plus petits, et l'invitation a etre le suivant en troisieme
   colonne. Ce n'est pas une carte : une place vide ne se montre pas comme un projet. */
.project-grid-accueil { grid-template-columns: repeat(3, 1fr); align-items: start; }
.project-grid-accueil .project-visual { aspect-ratio: 16 / 10; }
.project-visual.a-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-suivant {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0 2rem;
  border-left: 1px solid var(--line);
}
.project-suivant h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}
.project-suivant p { color: var(--muted); font-size: 0.95rem; }
.project-suivant:hover h3 { color: var(--accent); }
@media (max-width: 1099px) {
  .project-grid-accueil { grid-template-columns: repeat(2, 1fr); }
  .project-suivant { grid-column: 1 / -1; aspect-ratio: auto; border-left: 0; border-top: 1px solid var(--line); padding: 2rem 0.2rem 0; }
}
@media (max-width: 767px) { .project-grid-accueil { grid-template-columns: 1fr; } }
/* Etudes de cas, (03) : le meme bloc seul sous le chapeau, sans hauteur imposee. */
.project-suivant-seul { aspect-ratio: auto; max-width: 56ch; padding: 0.6rem 0 0.6rem 2rem; }
.project-suivant-seul p { font-size: 1.05rem; line-height: 1.6; }
.project-suivant:hover .card-go { transform: translateX(4px); }
@media (max-width: 1099px) { .project-suivant-seul { border-left: 1px solid var(--line); border-top: 0; padding: 0.4rem 0 0.4rem 1.4rem; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding-bottom: 3rem;
}
.footer .section-label { text-align: left; }
.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur petit téléphone, le grand titre du pied suit la largeur de
   l'écran : à 3 rem, « PAR OÙ COMMENCER ? » (Expertises) sortait de l'écran à 360 px et faisait glisser la
   page. Jamais plus grand qu'avant. */
@media (max-width: 480px) { .footer-title { font-size: min(3rem, 10.5vw); } }
/* FIN RETOUCHE */
.footer-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  background: var(--accent);
  color: var(--bg);
  border-radius: 99px;
  padding: 1.6rem 4rem;
  transition: background 0.3s, color 0.3s;
}
.footer-cta:hover { background: var(--text); }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur téléphone, le gros bouton du pied tient sur une ligne. Avec
   4 rem de marge de chaque côté, « Audit gratuit ↗ » et « Lancer le diagnostic ↗ » passaient sur deux lignes
   à 360 px (une pilule de 133 px de haut). Marges de 1,8 rem, police qui suit l'écran : « Lancer le
   diagnostic ↗ », le plus long, fait 298 px pour 312 de place à 360 px. Jamais plus grand qu'avant. */
@media (max-width: 560px) { .footer-cta { font-size: min(1.6rem, 6.2vw); padding: 1.5rem 1.8rem; } }
/* FIN RETOUCHE */
.footer-bottom {
  margin-top: clamp(4rem, 10vw, 8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
/* Quatre liens et trois ecarts de 2rem ne tiennent pas dans les 327px
   d'un telephone : sans retour a la ligne, l'adresse e-mail sortait de
   l'ecran de 28px et le numero se cassait sur trois lignes. */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.footer-links a:hover { color: var(--text); }

/* ============================================
   Sous-pages & nouveaux blocs
   (mêmes variables, mêmes rayons, même langage)
   ============================================ */

/* ---------- Hero de sous-page ---------- */
/* .hero-page : hérite du hero de l'accueil à l'identique */
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur téléphone et tablette en portrait, le haut d'une page
   intérieure n'occupe plus tout l'écran. Sans la nappe 3D de l'accueil, son contenu calé en bas laissait vide
   la moitié haute du premier écran ; il arrive sous l'en-tête, et la section suivante commence dans le même
   écran. L'accueil et les écrans couchés gardent leur haut de page plein écran. */
@media (max-width: 1023px) and (orientation: portrait) {
  .hero.hero-page { min-height: 0; padding-top: calc(var(--nav-h) + 2.5rem); }
}
/* FIN RETOUCHE */
/* RETOUCHE 02/12/2026, passe tablette de Nico (solution A) : sur une tablette tenue droite, le haut de l'accueil
   prend les trois quarts de l'écran au lieu de tout l'écran. Plein écran, son contenu calé en bas laissait vide
   près de la moitié haute ; il remonte, la nappe de points reste derrière, et la section suivante apparaît en bas
   de l'écran. Les téléphones, l'ordinateur et les tablettes couchées ne changent pas. */
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  .hero:not(.hero-page) { min-height: 75svh; }
}
/* FIN RETOUCHE */

/* ---------- Nav : page active ---------- */
/* L'entree active se distingue par son opacite seule. Le trait sous le
   libelle, au survol comme en actif, a ete retire a la demande de Nico. */
.nav-links a[aria-current="page"] { opacity: 1; }
/* L'entree de la barre prend la couleur de l'agence dans deux cas : son sous-menu est ouvert
   (classe posee par main.js), ou la page affichee lui appartient. */
.nav-links a.is-ouvert,
.nav-links a[aria-current="page"] { color: var(--accent); opacity: 1; }

/* ---------- Intro de section ---------- */
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: -1.5rem;
}

/* ---------- Cartes ---------- */
.card-grid { display: grid; gap: 2rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s;
}
a.card:hover { border-color: var(--accent); }
.card-num, .card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
}
.card p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 1023px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pricing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pricing-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing-card.is-featured { border-color: var(--accent); }
.badge {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 99px;
  padding: 0.25rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pricing-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
}
.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
}
.price small, .price .per {
  font-size: 0.38em;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-body);
}
.pricing-card > p { color: var(--muted); font-size: 0.92rem; }
/* RETOUCHE 28/11/2026, passe mobile (Nico, variante B) : le prix d'une carte. La règle .pricing-card > p
   ci-dessus l'emportait sur .price : « 599 € » s'affichait en 14,7 px, gris, et « HTVA » ou « / mois » en
   5,6 px, à toutes les tailles. Le prix passe en blanc à 1,6 rem, « HTVA » et « / mois » à la moitié
   (12,8 px) : une seule ligne, même dans les cartes étroites (quatre colonnes de 307 px à 1440 px). */
.pricing-card > p.price { font-size: 1.6rem; color: var(--text); }
.pricing-card > p.price small, .pricing-card > p.price .per { font-size: 0.5em; }
/* FIN RETOUCHE */
.pricing-card ul { margin-top: 0.4rem; }
.pricing-card ul li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
/* « En savoir plus ↗ » au bas d'une carte de prix : le même petit lien orange que sur les cartes des pages
   Sites web et Réseaux sociaux. margin-top: auto le pousse en bas, pour aligner les liens d'une rangée. */
.lien-plus { margin-top: auto; align-self: flex-start; color: var(--accent); font-size: 0.85rem; transition: color 0.3s; }
.lien-plus:hover { color: var(--text); }
@media (max-width: 1023px) { .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid, .pricing-grid.cols-4, .pricing-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- Offre principale (pleine largeur) ---------- */
.pricing-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}
.pricing-hero-main { display: flex; flex-direction: column; gap: 1.2rem; }
.pricing-hero-main p { color: var(--muted); }
.pricing-hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
}
@media (max-width: 767px) { .pricing-hero { grid-template-columns: 1fr; } }

/* ---------- Combo ---------- */
.combo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px dashed var(--accent);
  border-radius: 16px;
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.combo h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 0.4rem;
}
.combo p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }

/* ---------- Note de réassurance ---------- */
.note {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 72ch;
}
.note strong { color: var(--text); }

/* ---------- Étude de cas ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.case-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.case-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.case-dl dd { color: var(--muted); font-size: 0.95rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.case-tags span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Split deux colonnes ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.split .section-title { margin-bottom: 0; }
/* Quand l'une des deux colonnes est une image (un cadre, un diaporama, une fenetre qui defile), le
   texte se centre verticalement sur elle au lieu de rester cale en haut au-dessus d'un vide
   (Nico, 16/11/2026). Deux cas gardent l'alignement en haut : deux colonnes de texte, et une
   colonne d'images empilees, plus haute que tout texte, ou le titre se perdrait au milieu. */
.split:has(> .img-placeholder, > .compo-media, > .diapo, > .defile) { align-items: center; }
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.split-copy strong { color: var(--text); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }
/* Colonne de texte collante : quand l'autre colonne empile plusieurs images, le texte reste a
   l'ecran, sous l'en-tete, le temps qu'elles defilent, puis repart avec la page (page Reservation,
   Nico, 16/11/2026). Seulement quand les deux colonnes sont cote a cote. */
@media (min-width: 768px) {
  .split-collant { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
}

/* ---------- Stats : variante 3 colonnes ---------- */
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .stats.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field select option { background: var(--bg-soft); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : 16 px dans les champs (15,2 avant). En dessous, Safari sur
   iPhone et iPad zoome sur le champ qu'on touche, et la page reste agrandie après la saisie. */
.field input, .field select, .field textarea { font-size: 1rem; }
/* FIN RETOUCHE */
.form-note { color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
form .btn { border: 0; cursor: pointer; font-family: var(--font-body); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Colonne contact ---------- */
.contact-aside { display: flex; flex-direction: column; gap: 2rem; }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : la page Contact. Sous 1024 px, le formulaire et « Vous préférez
   parler ? » se suivent au lieu de partager l'écran : à 768 px, chaque colonne n'avait que 290 px (champs de
   130 px, numéro sur trois lignes). Les cartes Téléphone et E-mail restent côte à côte, sauf sur téléphone et
   quand leur colonne est étroite (1024 à 1279 px), où elles se suivent. L'adresse e-mail ne se coupe plus en
   deux : elle était coupée n'importe où (word-break: break-all), de 360 à 1 180 px. */
.card-grid.contact-cartes { grid-template-columns: 1fr 1fr; }
.contact-email { font-size: 1.05rem; }
@media (max-width: 1023px) { .contact-section .split { grid-template-columns: 1fr; } }
@media (max-width: 560px), (min-width: 1024px) and (max-width: 1279px) { .card-grid.contact-cartes { grid-template-columns: 1fr; } }
/* FIN RETOUCHE */

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); padding-bottom: 1.8rem; max-width: 68ch; }

/* ---------- Placeholder d'image ---------- */
.img-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(241, 237, 230, 0.3);
  border-radius: 16px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.img-placeholder.ratio-43 { aspect-ratio: 4 / 3; }

/* ---------- Patchwork d'appareils ----------
   Une image a fond transparent, posee sans cadre sur le fond de la page, sur toute sa largeur. */
.patchwork { margin: 5rem 0; }
.patchwork img { display: block; width: 100%; height: auto; }

/* ---------- Diaporama d'images ([data-diapo], main.js) ----------
   Les vues sont empilees dans la meme case et passent de l'une a l'autre en fondu. Le passage est
   automatique, s'arrete au survol et au focus, et ne demarre pas si le visiteur a demande moins
   d'animations ; les points sous le cadre restent toujours utilisables. */
.diapo { min-width: 0; }
.diapo-vues { display: grid; }
.diapo-vue {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.diapo-vue.est-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.diapo-points { display: flex; gap: 0.5rem; margin-top: 1rem; }
.diapo-points button {
  width: 2.2rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.diapo-points button::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s ease;
}
.diapo-points button:hover::before { background: var(--muted); }
.diapo-points button.est-actif::before { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .diapo-vue { transition: none; } }

/* ---------- Fenetre qui defile ([data-defile], main.js) ----------
   Une page entiere d'un site client, parcourue comme le ferait quelqu'un a la molette : des a-coups
   qui ralentissent, des arrets pour lire, puis une remontee rapide. Le mouvement est ecrit par
   main.js ; la fenetre de navigateur est dessinee ici (pas dans l'image), seul le contenu bouge.
   --halo : la couleur de marque du client, en « r, g, b », pour la lueur du fond.
   Le defilement ne tourne que lorsque la fenetre est a l'ecran, s'arrete au survol, et n'existe
   pas si le visiteur a demande moins d'animations. */
.img-placeholder.defile {
  display: block;
  padding: 6%;
  background:
    radial-gradient(70% 80% at 88% 100%, rgba(var(--halo, 255, 157, 0), 0.26), transparent 70%),
    var(--bg-soft);
}
.defile-fenetre {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #1e1e1b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.defile-barre {
  flex: none;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #1e1e1b;
}
.defile-barre i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; }
.defile-barre i:nth-child(2) { background: #ffbd2e; }
.defile-barre i:nth-child(3) { background: #27c93f; }
.defile-barre span {
  margin-left: 12px;
  padding: 3px 14px;
  border-radius: 10px;
  background: #2c2c28;
  color: #aaa598;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.defile-vue { flex: 1; min-height: 0; overflow: hidden; background: #f5f5f5; }
/* Variante portable : le support est une image (le portable ecran eteint sur son fond), et la vue
   qui defile se pose exactement sur son ecran, aux pourcentages donnes par --ecran-x/y/l/h. */
.img-placeholder.defile-portable { position: relative; padding: 0; background: var(--bg-soft); }
.img-placeholder.a-image .defile-support { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.defile-portable .defile-vue {
  position: absolute;
  left: var(--ecran-x);
  top: var(--ecran-y);
  width: var(--ecran-l);
  height: var(--ecran-h);
  border-radius: 3px;
}
/* Variante telephone : meme principe, ecran aux coins arrondis du boitier (36 px sur 358 x 774). */
.defile-telephone .defile-vue { border-radius: 10% / 4.65%; background: #0c0f14; }
.img-placeholder.a-image .defile-vue img,
.defile-vue img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
  will-change: transform;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-scroll-line, .hero-eyebrow .dot { animation: none; }
  #hero-canvas { display: none; }
}

/* ---------- Navigation : dropdown, burger, plan de site ---------- */
/* Bouton d'audit et burger : sortis de l'en-tete, dont le melange
   (mix-blend-mode: difference) les laissait traverser par le texte et par les
   points du hero. Opaques, au-dessus du contenu et du menu mobile. */
.nav-right {
  position: fixed;
  top: 0;
  right: clamp(1.5rem, 4vw, 4rem);
  z-index: 51;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Une entree qui ouvre un sous-menu porte un chevron. */
.nav-links a[data-menu] { padding-right: 0.95em; }
.nav-links a[data-menu]::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.3em;
  height: 0.3em;
  margin-top: -0.24em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-links a[data-menu]:hover::before { opacity: 1; transform: rotate(45deg) translate(1px, 1px); }

/* Sous-menus des piliers (desktop) */
.dropdown-panel {
  position: fixed;
  top: 5rem;
  left: 0;
  transform: translateY(6px);
  z-index: 49;
  display: flex;
  gap: 3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-col { display: flex; flex-direction: column; min-width: 10.5rem; }
.dropdown-col a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.dropdown-col a:hover { color: var(--text); }
.dropdown-col a.dropdown-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.dropdown-col a.dropdown-head:hover { color: var(--accent); }
@media (max-width: 1099px) { .dropdown-panel { display: none; } }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: 1px solid rgba(241, 237, 230, 0.4);
  border-radius: 99px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.mobile-nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.mobile-nav-open .burger span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1099px) { .burger { display: flex; } }

/* Navigation mobile : les memes titres que la barre du desktop. Un pilier
   s'ouvre en accordeon sur ses pages ; les titres entrent un a un, comme sur
   le menu d'Acrobate (un titre tous les --pas-liens, chacun en --d-liens ;
   l'index --i est pose par main.js). A la fermeture, tout repart d'un bloc. */
.mobile-nav {
  --d-liens: 0.8s;
  --pas-liens: 0.2s;
  --e-menu: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  padding: 6.5rem 2rem 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
body.mobile-nav-open .mobile-nav { opacity: 1; visibility: visible; }
body.mobile-nav-open { overflow: hidden; }
.mobile-row {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.mobile-nav-open .mobile-row {
  opacity: 1;
  transform: none;
  transition-duration: var(--d-liens);
  transition-timing-function: var(--e-menu);
  transition-delay: calc(var(--i, 0) * var(--pas-liens));
}
.mobile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0.7rem 0;
  cursor: pointer;
}
/* Le chevron dit qu'un titre s'ouvre ; il se retourne quand il est ouvert. */
button.mobile-title::after {
  content: '';
  flex: none;
  width: 0.36em;
  height: 0.36em;
  margin: -0.18em 0.2em 0 1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.4s var(--e-menu), opacity 0.3s ease;
}
.mobile-row.is-open button.mobile-title::after { transform: translateY(0.18em) rotate(225deg); opacity: 1; }
.mobile-row.is-here > .mobile-title,
.mobile-nav a.mobile-title.is-current { color: var(--accent); }
/* Accordeon : la hauteur s'anime par la grille, sans la mesurer. Ferme, ses
   liens sortent aussi de l'ordre de tabulation (visibility). */
.mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--e-menu);
}
.mobile-sub > div {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.mobile-row.is-open .mobile-sub { grid-template-rows: 1fr; }
.mobile-row.is-open .mobile-sub > div { visibility: visible; transition-delay: 0s; }
/* RETOUCHE 02/12/2026, bug relevé par Nico sur téléphone : la règle du dessus rendait « visibles » les liens du
   sous-menu ouvert d'office (la rubrique de la page en cours) même menu fermé. Invisibles à l'œil (menu transparent)
   mais touchables, ils recouvraient la page : sur Instagram, toucher « Audit gratuit » en bas de page touchait en
   fait le lien « Instagram » du menu, et la page se rechargeait ; au clavier, ils prenaient le focus. Menu fermé,
   le sous-menu est désormais caché, après le fondu de fermeture du menu (0,3 s). */
body:not(.mobile-nav-open) .mobile-row.is-open .mobile-sub > div { visibility: hidden; transition-delay: 0.3s; }
/* FIN RETOUCHE */
.mobile-sub a {
  color: var(--muted);
  font-size: 1.05rem;
  padding: 0.6rem 0;
}
.mobile-sub a:last-child { padding-bottom: 1.2rem; }
.mobile-sub a:hover, .mobile-sub a:active { color: var(--text); }
.mobile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  border-bottom: 0;
  padding-top: 2rem;
}
.mobile-cta {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 99px;
  padding: 0.85rem 1.6rem;
}
.mobile-tel {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  padding: 0.6rem 0;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-row, body.mobile-nav-open .mobile-row, .mobile-sub, button.mobile-title::after { transition: none; }
}
@media (min-width: 1100px) { .mobile-nav { display: none; } }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur un écran peu haut (iPhone SE : 667 px), le menu replié tient
   sans défiler, « Audit gratuit » et le téléphone compris (il dépassait de 3 px, et de 243 px un pilier
   ouvert) : titres un peu plus petits, moins d'air en haut et en bas. Chaque ligne garde 44 px pour le doigt. */
@media (max-width: 1099px) and (max-height: 700px) {
  .mobile-nav { padding-top: 5.5rem; padding-bottom: 2rem; }
  .mobile-title { font-size: 1.45rem; padding: 0.6rem 0; }
  .mobile-actions { padding-top: 1.25rem; }
}
/* FIN RETOUCHE */

/* Plan de site (footer) */
.footer-sitemap {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding-top: 3rem;
}
.footer-sitemap h4 {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-sitemap a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.28rem 0;
  transition: color 0.3s;
}
.footer-sitemap a:hover { color: var(--text); }
@media (max-width: 900px) { .footer-sitemap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .footer-sitemap { grid-template-columns: 1fr; } }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur téléphone, le plan du site tient en deux colonnes au lieu
   d'une (1 500 px de liens à faire défiler avant, à 390 px). La plus longue ligne, l'adresse e-mail, tient
   dans une colonne de 360 px de large. */
@media (max-width: 560px) { .footer-sitemap { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }
/* FIN RETOUCHE */

/* ---------- Page active dans les menus ---------- */
.dropdown-col a.is-current,
.mobile-nav a.is-current,
.footer-sitemap a.is-current { color: var(--accent); }

/* ---------- Écrans peu hauts (13 pouces, fenêtres réduites) ---------- */
@media (max-height: 820px) {
  .hero { padding-top: 6.5rem; }
  .hero-title { font-size: clamp(2.6rem, 8.5vw, 6.5rem); margin-bottom: 2rem; }
  .hero-eyebrow { margin-bottom: 1.2rem; }
  .hero-sub { font-size: 0.98rem; }
}

/* ---------- Cartes d'objectif (accueil) ---------- */
.card-objectif, .card-illustree { justify-content: flex-start; overflow: hidden; }
/* L'emplacement d'image occupe le haut de la carte, bord a bord. */
.card-media {
  aspect-ratio: 16 / 10;
  margin: -2rem -2rem 0.6rem;
  border-radius: 0;
  border-width: 0 0 1px;
  font-size: 0.72rem;
  padding: 1rem;
}
.card-objectif:hover { border-color: var(--accent); }
.card-objectif p { flex: 1; }
.card-go {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: transform 0.3s ease;
  display: inline-block;
}
.card-objectif:hover .card-go { transform: translateX(4px); }

/* ---------- Images ---------- */
.media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.ratio-169 { aspect-ratio: 16 / 9; }
.media.ratio-43 { aspect-ratio: 4 / 3; }
.media-bande {
  margin: 5rem auto;
  /* Pleine largeur, une bande 16:9 ferait 810px de haut a 1440 : elle
     mangerait un ecran entier pour une simple illustration. */
  /* Sur mobile, la bande garde la meme marge laterale que les sections
     voisines au lieu de coller aux bords de l'ecran. */
  max-width: min(860px, calc(100% - 3rem));
}

/* Detoure flottant dans un hero de page : le texte garde le premier plan.
   Masque sous 1100px, ou il passerait derriere le texte au lieu d'a cote. */
.hero-detoure {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 4rem;
  z-index: 0;
  width: min(28%, 400px);
  pointer-events: none;
}
.hero-detoure img { display: block; width: 100%; height: auto; }
@media (max-width: 1099px) { .hero-detoure { display: none; } }

/* ---------- Vocabulaire de compositions image / texte ----------
   Quatre facons de poser une image dans une page, a reutiliser telles
   quelles. Elles existent pour une raison : cinq bandes centrees
   identiques ne composent pas, elles se repetent.

   1. .compo-repere  bande centree, la neutre, une seule par page
   2. .compo-debord  l'image sort de la colonne et touche un bord
   3. .compo-cale    le titre descend sur le coin de l'image
   4. .compo-aplomb  format vertical, contre les paysages en serie
   ------------------------------------------------------------------ */

/* 1. Le repere. Sert a respirer entre deux blocs de texte. Plafonnee en
      largeur : pleine largeur, une bande 16:9 ferait 810px de haut a
      1440, soit presque un ecran pour une simple illustration. */
.compo-repere {
  margin: 5rem auto;
  max-width: min(860px, calc(100% - 3rem));
}
.compo-repere > .compo-media { aspect-ratio: 16 / 9; }

/* 2. Le debord. L'image quitte la colonne de texte et va toucher un
      bord de l'ecran. Aucun chevauchement, mais la symetrie est cassee.
      Regle : un seul bord touche, jamais deux, et le cote alterne d'une
      section a l'autre. */
.compo-debord { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 4rem); margin: 5rem 0; }
.compo-debord > .compo-media { width: 100%; aspect-ratio: 4 / 3; }
.compo-debord-texte { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 46ch; align-self: center; }
.compo-debord-texte h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--text); margin-bottom: 1rem; }

@media (min-width: 900px) {
  /* Le debord n'a de sens qu'a partir du moment ou l'image peut ne pas
     occuper toute la largeur : en dessous, elle reprend le comportement
     d'une bande ordinaire. */
  .compo-debord { flex-direction: row; align-items: center; }
  .compo-debord > .compo-media { width: min(62%, 720px); flex-shrink: 0; }
  .compo-debord.vers-droite { justify-content: flex-end; margin-right: calc(-1 * clamp(1.5rem, 4vw, 4rem)); }
  .compo-debord.vers-droite > .compo-media { border-radius: 16px 0 0 16px; }
  .compo-debord.vers-gauche { justify-content: flex-start; margin-left: calc(-1 * clamp(1.5rem, 4vw, 4rem)); }
  .compo-debord.vers-gauche > .compo-media { border-radius: 0 16px 16px 0; order: -1; }
  /* Variante « texte-large » : quand le texte est court, il prend toute la place a cote de l'image
     et grossit, au lieu de flotter dans un bloc etroit au milieu du vide (page Methode). */
  /* Le bloc sort de la colonne pour que l'image touche le bord : le texte, lui, garde la marge de la page. */
  .compo-debord.texte-large { padding-left: clamp(1.5rem, 4vw, 4rem); gap: clamp(2rem, 3vw, 3.5rem); }
  .compo-debord.texte-large .compo-debord-texte { flex: 1; max-width: none; align-self: center; font-size: 1.35rem; }
  .compo-debord.texte-large .compo-debord-texte h3 { font-size: clamp(2.4rem, 4vw, 3.9rem); line-height: 1.05; margin-bottom: 1.6rem; max-width: 20ch; }
  .compo-debord.texte-large .compo-debord-texte p { max-width: 54ch; }
  /* Plus de plafond a 720 px pour ce bloc (Nico, 17/11/2026) : l'image prend la moitie de l'ecran. */
  .compo-debord.texte-large > .compo-media { width: 52%; }
}
/* RETOUCHE 28/11/2026, passe mobile (Nico) : le bloc « Un chantier, ça se regarde avancer » (Méthode), seul
   « texte-large », est posé entre deux sections, sans leur marge. Sous 900 px, son texte collait au bord de
   l'écran : il reprend la marge des pages, l'image aussi. À partir de 900 px, la marge négative de
   .vers-droite, faite pour annuler celle d'une section, le faisait sortir de l'écran (41 px à 1024, 58 px à
   1440 ; sur tablette, la page entière s'élargissait) : l'image s'arrête au bord. */
@media (max-width: 899px) { .compo-debord.texte-large { padding: 0 clamp(1.5rem, 4vw, 4rem); } }
@media (min-width: 900px) { .compo-debord.vers-droite.texte-large { margin-right: 0; } }
/* FIN RETOUCHE */

/* 3. La cale. La derniere ligne du titre descend sur le coin de
      l'image. Mesure a l'appui : sans traitement le contraste tombe a
      2,56:1, et le mix-blend-mode difference, essaye puis abandonne,
      donnait 1,01:1, c'est-a-dire un texte invisible. Le voile degrade
      mesure 6,79:1, il est le seul a passer le seuil de 4,5:1. */
.compo-cale { position: relative; max-width: 980px; margin: 5rem 0 0; }
.compo-cale > .compo-media { position: relative; z-index: 0; aspect-ratio: 16 / 9; }
.compo-cale > .compo-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(12, 12, 12, .88) 0%, rgba(12, 12, 12, .2) 40%, transparent 60%);
}
.compo-cale-titre {
  position: relative;
  z-index: 1;
  /* Plus de recouvrement depuis le 17/11/2026 (Nico) : sur Expertises, le titre cachait
     l'etiquette « L'article » de l'image et le chapeau passait sous le titre. Le titre se
     pose sous l'image, a toutes les tailles, avec de l'air au-dessus et au-dessous. */
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
}
.compo-cale > .compo-media::after { display: none; }
.compo-cale + .section-lead { margin-top: clamp(1.4rem, 2vw, 2rem); }
@media (max-width: 767px) {
  /* Sous 768px, un chevauchement calcule pour un grand ecran devient
     illisible : le titre repasse sous l'image. */
  .compo-cale-titre { margin-top: 1.5rem; }
  .compo-cale > .compo-media::after { display: none; }
}

/* 4. L'aplomb. Format vertical, la ou tout le reste est en paysage.
      Pour les portraits et les sujets debout. */
.compo-aplomb {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin: 5rem 0;
}
.compo-aplomb > .compo-media { aspect-ratio: 2 / 3; }
@media (min-width: 900px) {
  .compo-aplomb { grid-template-columns: minmax(0, 22rem) 1fr; }
}
.compo-aplomb-texte { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.compo-aplomb-texte h2, .compo-aplomb-texte h3 { color: var(--text); }

/* Le cadre lui-meme, tant qu'aucune image n'est posee. Reprend le motif
   en pointilles deja employe par les 20 emplacements d'origine. */
.compo-media {
  border: 1px dashed rgba(241, 237, 230, 0.3);
  border-radius: 16px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  overflow: hidden;
}
.compo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Un cadre qui a recu son image (classe posee par visuels/outils/poser.py) :
   plus de pointilles ni de marge interieure, l'image remplit le cadre. */
.compo-media.a-image,
.img-placeholder.a-image { padding: 0; border: 1px solid var(--line); overflow: hidden; }
.card-media.a-image { border-width: 0 0 1px; }
/* Offres, cartes des modules illustrees : l'image touche le haut de la carte (padding de 2,4rem). */
.pricing-card.card-illustree .card-media { margin-top: -2.4rem; }
.img-placeholder.a-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Precision sous un prix : une phrase, jamais une asterisque. */
.price-detail {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
  max-width: 34ch;
}

/* ---------- Realisations : filtres et grille ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filtre {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filtre:hover { color: var(--text); border-color: var(--text); }
.filtre.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.filtre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.filtre[hidden] { display: none; }

.projet { position: relative; }
.projet[hidden] { display: none; }
.projet-mockup { aspect-ratio: 16 / 10; }
.projet-tags { margin: 1rem 0 0; }
.projet-tags span { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
.projets-vide { color: var(--muted); margin-top: 1rem; }
.projets-vide[hidden] { display: none; }
.projets-vide a { color: var(--accent); }
@media (max-width: 767px) { .projets-grille { grid-template-columns: 1fr; } }

/* Liste de points dans un bloc de texte, meme dessin que celles des cartes de prix. */
.def-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.def-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Gabarit d'article (journal) ----------
   Composition reprise de l'article de reference GM Detailing, decision
   de Nico du 14/09 : image a la une, ligne de meta, H1, encadre
   "l'essentiel", sommaire, un H2 par section avec une image en fin de
   la plupart d'entre elles, citation, FAQ, colonne laterale (carte de
   l'agence, a lire aussi, appel a l'action, categories) et trois
   articles similaires en bas. Les styles sont ceux du site, seule la
   composition vient du gabarit. */
/* Balise article, donc hors de la regle "section" : elle reprend les
   memes marges laterales, et laisse le pied de page apporter les siennes. */
.article { padding: clamp(6.5rem, 10vw, 8.5rem) clamp(1.5rem, 4vw, 4rem) 0; }
.article-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 5rem);
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .article-grille { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
}
.article-corps { max-width: 760px; }

/* Image a la une : 16/9 comme le gabarit, arrondie comme .media. */
.article-figure {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin: 0;
}
.article-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-figure.ratio-169 { aspect-ratio: 16 / 9; }
.article-figure.ratio-43 { aspect-ratio: 4 / 3; }
/* Image de fin de section : suit le dernier paragraphe, precede le H2 suivant. */
.article-corps .article-figure { margin: 2.5rem 0 0; }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : une image d'article s'affiche à son propre format, sans être
   rognée. Les visuels des articles font 1280 × 720 (16:9) et les cadres 4:3 en coupaient un quart de la
   largeur (« EVIS », « otre site » au bord), à toutes les tailles. Le format vient des attributs width et
   height de l'image ; une image qui ne les a pas (les images de substitution, qui attendent Nico) garde son
   cadre, sans quoi elle n'aurait aucune hauteur avant d'être chargée. */
.article-figure:has(> img[width][height]) { aspect-ratio: auto; }
.article-figure > img[width][height] { height: auto; }
/* FIN RETOUCHE */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 2rem 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--muted);
}
.article-meta .cat { color: var(--accent); }

.article-titre {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}

/* L'essentiel : la reponse avant l'article, pour le lecteur presse et
   pour les IA qui reprennent le premier bloc qui repond. */
.article-essentiel {
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 1.8rem 2rem;
  margin-bottom: 2.5rem;
}
.article-essentiel .section-label { margin-bottom: 0.9rem; }
.article-essentiel p { font-size: 1.05rem; line-height: 1.6; }
.article-essentiel p + p { margin-top: 0.9rem; }
.article-essentiel strong { color: var(--text); }

.article-sommaire {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  margin-bottom: 3.5rem;
}
.article-sommaire .section-label { margin-bottom: 0.9rem; }
.article-sommaire ol { list-style: none; counter-reset: sommaire; display: flex; flex-direction: column; gap: 0.45rem; }
.article-sommaire li { counter-increment: sommaire; display: flex; gap: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.article-sommaire li::before { content: counter(sommaire, decimal-leading-zero); color: var(--accent); font-size: 0.75rem; letter-spacing: 0.1em; padding-top: 0.25rem; flex-shrink: 0; }
.article-sommaire a { transition: color 0.3s; }
.article-sommaire a:hover { color: var(--text); }

/* Le corps. Les paragraphes sont un ton plus clair que --muted : sur
   deux mille mots, 5,2:1 se lit, 11:1 se lit longtemps. */
.article-corps { font-size: 1.05rem; line-height: 1.7; color: rgba(241, 237, 230, 0.8); }
.article-corps h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 3.5rem 0 1.4rem;
  scroll-margin-top: 6rem;
}
.article-corps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  color: var(--text);
  margin: 2.2rem 0 0.9rem;
}
.article-corps p { margin-bottom: 1.3rem; }
.article-corps strong { color: var(--text); }
.article-corps a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.article-corps a:hover { color: var(--text); }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : le bouton d'appel en fin d'article. .article-corps a, plus fort
   que .btn-primary, lui donnait le texte orange et souligné des liens : orange sur orange, un bouton vide, à
   toutes les tailles. Il reprend le texte foncé des autres boutons, survol compris (le survol des liens
   d'article passe le texte au blanc, la couleur du fond du bouton survolé). */
.article-corps a.btn-primary, .article-corps a.btn-primary:hover { color: var(--bg); text-decoration: none; }
/* FIN RETOUCHE */
.article-corps ul { margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article-corps ul li { position: relative; padding-left: 1.4rem; }
.article-corps ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* Liste numerotee : le numero dans le dessin du sommaire, pas celui du navigateur. */
.article-corps ol { list-style: none; counter-reset: etapes; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.article-corps ol li { counter-increment: etapes; position: relative; padding-left: 2.2rem; }
.article-corps ol li::before {
  content: counter(etapes, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.35em;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Tableau des prix : deborde en glissant sur mobile, jamais la page.
   La cellule de prix se signale par sa classe, pas par sa position :
   un tableau a trois colonnes peut avoir son prix au milieu. */
.article-tableau { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 16px; }
.article-tableau table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.article-tableau th, .article-tableau td { text-align: left; padding: 0.9rem 1.2rem; border-top: 1px solid var(--line); vertical-align: top; }
.article-tableau thead th { border-top: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.article-tableau td.prix { font-family: var(--font-display); font-weight: 600; color: var(--text); white-space: nowrap; }
/* RETOUCHE 28/11/2026, passe mobile (Nico) : sur téléphone, un tableau d'article tient dans la largeur de
   l'écran. Ses 480 px minimum le faisaient défiler de côté et cachaient la colonne des prix (à 390 px :
   « 599 € » coupé, « puis c… »). Le prix peut passer à la ligne (« dès » / « 1 599 € »), jamais au milieu
   d'un montant, dont les espaces sont insécables. */
@media (max-width: 560px) {
  .article-tableau table { min-width: 0; }
  .article-tableau th, .article-tableau td { padding: 0.8rem 0.9rem; }
  .article-tableau td.prix { white-space: normal; }
}
/* FIN RETOUCHE */

/* Citation : une phrase de l'article, extraite et grossie. */
.article-citation {
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.8rem;
  margin: 3rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--text);
}

.article-corps .faq-list { margin-top: 1rem; }
.article-corps .faq-item p { margin-bottom: 0; }

.article-fin {
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 2rem;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
.article-fin h2 { margin: 0; }
.article-fin p { margin: 0; }

/* Colonne laterale */
.article-aside { display: flex; flex-direction: column; gap: 2rem; }
.aside-bloc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 1.8rem;
}
.aside-bloc .section-label { margin-bottom: 1.2rem; }
.aside-agence { text-align: center; }
.aside-agence .aside-logo {
  width: 120px;
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.aside-agence .aside-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aside-agence h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.6rem; }
.aside-agence p { color: var(--muted); font-size: 0.92rem; }
.aside-reseaux { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.2rem; }
.aside-reseaux a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.aside-reseaux a:hover { color: var(--text); border-color: var(--text); }

.aside-liste { display: flex; flex-direction: column; }
.aside-liste li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); align-items: center; }
.aside-liste li:first-child { border-top: 0; padding-top: 0; }
.aside-liste .aside-vignette { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.aside-liste .aside-vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aside-liste time, .aside-liste .a-venir { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.25rem; }
.aside-liste .a-venir { color: var(--accent); }
.aside-liste h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.aside-liste a:hover h4 { color: var(--accent); }

.aside-cta { border-color: var(--accent); }
.aside-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; margin-bottom: 0.6rem; }
.aside-cta p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }

.aside-categories { display: flex; flex-direction: column; }
.aside-categories li { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.aside-categories li:first-child { border-top: 0; padding-top: 0; }
.aside-categories .cat-icone { width: 40px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); flex-shrink: 0; }
.aside-categories .cat-icone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cartes d'articles : media en tete, date, titre, extrait. Servent aux
   "articles similaires" en bas d'un article et au journal de l'accueil. */
.similaires { max-width: 1180px; margin: 0 auto; padding-top: clamp(4rem, 8vw, 7rem); }
.similaires .section-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 2.5rem; }
/* Le media deborde de la carte par ses marges negatives : sans overflow
   hidden, ses coins carres depassent des coins arrondis de la carte. Meme
   traitement que les cartes d'objectif de l'accueil. */
.cartes-articles .card { overflow: hidden; }
.cartes-articles .card-media { display: block; aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); margin: -2rem -2rem 0.6rem; padding: 0; }
.cartes-articles .card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cartes-articles time, .cartes-articles .a-venir { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.cartes-articles .a-venir { color: var(--accent); }
/* ---------- Journal : la liste des articles ----------
   Composition reprise de la page des articles GM Detailing (decision de
   Nico du 14/09) : une seule page, les derniers articles en premier, une
   rangee par article avec l'image a gauche et le texte a droite, la
   meme colonne laterale que les articles. Pas de pagination tant que la
   liste tient sur une page. */
.journal-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 5rem);
  /* Toute la largeur du contenu, alignee sur le logo et le bouton du menu (Nico, 17/11/2026 :
     les blocs avaient l'air a l'etroit dans 1180 px). La colonne laterale garde sa largeur. */
  max-width: none;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .journal-grille { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
}
.journal-liste { display: flex; flex-direction: column; gap: 1.5rem; }

/* La rangee entiere est le lien : on clique l'image comme le titre. */
.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.journal-item:hover { border-color: var(--accent); }
@media (min-width: 640px) {
  .journal-item { grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
}
.journal-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.journal-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.journal-texte { display: flex; flex-direction: column; gap: 0.8rem; }
.journal-texte .article-meta { margin: 0; }
.journal-texte h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.journal-texte p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.journal-lire {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 0.4rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
.journal-item:hover .journal-lire { transform: translateX(4px); }
