/*
Theme Name: Teba ICS
Theme URI: https://ics.ci
Description: Thème autonome (sans thème parent) pour Ivoire Cartes Systèmes. Direction visuelle « Planche technique ID-1 ».
Author: Ivoire Cartes Systèmes
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: teba-ics
*/

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-standard.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Sometype Mono";
  src: url("assets/fonts/sometype-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sometype Mono";
  src: url("assets/fonts/sometype-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --calque: #e9edef;
  --calque-2: #f4f6f7;
  --encre: #1c2630;
  --encre-2: #3b4856;
  --bleu: #0b67b2;
  --bleu-fonce: #084d86;
  --or: #c49c33;
  --trait: #b9c3ca;
  --blanc: #ffffff;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Sometype Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--bleu) var(--calque); }
body {
  margin: 0;
  background: var(--calque);
  color: var(--encre);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--or); color: var(--encre); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 760; font-stretch: 92%; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 720; font-stretch: 94%; }
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 640 1rem/1 var(--font); text-decoration: none;
  border: 2px solid var(--encre); border-radius: 2px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-plein { background: var(--encre); color: var(--blanc); }
.btn-plein:hover { background: var(--bleu); border-color: var(--bleu); }
.btn-plein:active { transform: translateY(1px); }
.btn-ligne { background: transparent; color: var(--encre); }
.btn-ligne:hover { background: var(--encre); color: var(--blanc); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* En-tête : cartouche de planche */
.cartouche { border-bottom: 2px solid var(--encre); background: var(--calque-2); position: sticky; top: 0; z-index: 20; }
.cartouche .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; }
.marque { display: flex; align-items: center; padding-block: 0.5rem; }
.marque { flex-shrink: 0; }
.marque img { height: 3.5rem; width: auto; max-width: none; }
.nav { display: flex; align-items: stretch; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav > ul > li { position: relative; display: flex; }
.nav a.lien {
  display: flex; align-items: center; padding: 0 0.8rem;
  font-size: 0.875rem; line-height: 1.25; font-weight: 560; text-decoration: none;
  border-left: 1px solid var(--trait);
}
.nav a.lien:hover, .nav a.lien[aria-current="page"] { background: var(--encre); color: var(--blanc); }
.nav .tel { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.25; white-space: nowrap; flex: 1 1 auto; justify-content: center; border-left: 1px solid var(--trait); padding: 0 1rem; display: flex; align-items: center; text-decoration: none; }
.nav .tel:hover { background: var(--encre); color: var(--blanc); }
.sous {
  position: absolute; top: 100%; left: 0; min-width: 17rem; padding: 0.5rem 0; margin: 0; list-style: none;
  background: var(--calque-2); border: 2px solid var(--encre); border-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
li:hover > .sous, li:focus-within > .sous, li.ouvert > .sous { opacity: 1; visibility: visible; transform: none; }
.sous a { display: block; padding: 0.55rem 1rem; text-decoration: none; font-size: 0.9375rem; }
.sous a:hover { background: var(--encre); color: var(--blanc); }
.sous .groupe { padding: 0.4rem 1rem 0.1rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--encre-2); text-transform: uppercase; }
.menu-btn { display: none; }
html { scroll-padding-top: 5rem; }

/* Hero : planche */
.planche { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 6vw, 5.5rem); display: grid; align-items: center; }
.planche .grille { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.planche .intro { padding-block: 1rem; }
.planche .intro p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--encre-2); margin-top: 1.5rem; }
.planche .preuves { margin: 1.75rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--trait); display: grid; gap: 0.5rem; max-width: 34rem; }
.planche .preuves div { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 0.25rem 1rem; align-items: baseline; }
.planche .preuves dt { font-size: 0.8125rem; font-weight: 600; color: var(--encre-2); }
.planche .preuves dd { margin: 0; font: 500 0.8125rem/1.45 var(--mono); }
@media (max-width: 40rem) { .planche .preuves div { grid-template-columns: minmax(0, 1fr); } }
.planche .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.dessin { width: 100%; height: auto; overflow: visible; }
.dessin text { font-family: var(--mono); fill: var(--encre); }
.dessin .cote { stroke: var(--bleu); stroke-width: 2; fill: none; }
.dessin .cote-txt { font-size: 24px; fill: var(--bleu); letter-spacing: 0.02em; }
.dessin .contour { fill: var(--blanc); stroke: var(--encre); stroke-width: 3; }
.dessin .trait { stroke: var(--encre); stroke-width: 2; fill: none; }
.dessin .fin { stroke: var(--trait); stroke-width: 1.5; fill: none; }
.dessin .or { fill: var(--or); }
.dessin .reperes g { cursor: pointer; }
.dessin .rep-cercle { fill: var(--calque); stroke: var(--encre); stroke-width: 2.5; transition: fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.dessin .rep-lettre { font-family: var(--font); font-weight: 700; font-size: 34px; text-anchor: middle; dominant-baseline: central; transition: fill 0.2s var(--ease); }
.dessin .rep-ligne { stroke: var(--encre); stroke-width: 2; transition: stroke 0.2s var(--ease); }
.dessin .zone { fill: none; stroke: var(--bleu); stroke-width: 3; stroke-dasharray: 10 8; opacity: 0; transition: opacity 0.25s var(--ease); }
.dessin g[data-rep].actif .rep-cercle { fill: var(--bleu); stroke: var(--bleu); }
.dessin g[data-rep].actif .rep-lettre { fill: var(--blanc); }
.dessin g[data-rep].actif .rep-ligne { stroke: var(--bleu); }
.dessin g[data-rep].actif .zone { opacity: 1; }
.dessin .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.legende-planche { margin-top: 0.75rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-2); }

/* Pôles : tableau de repères */
section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); align-items: end; }
.section-tete p { color: var(--encre-2); margin: 0; }
.repères, .reperes-liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.reperes-liste li { border-bottom: 1px solid var(--trait); }
.reperes-liste a {
  display: grid; grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 6fr) 2rem; gap: 1rem; align-items: center;
  padding: 1.35rem 0.5rem; text-decoration: none; transition: background-color 0.2s var(--ease), padding 0.3s var(--ease);
}
.reperes-liste .lettre { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--encre); border-radius: 50%; font-weight: 700; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.reperes-liste .titre { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.reperes-liste .desc { color: var(--encre-2); font-size: 0.9875rem; }
.reperes-liste .fleche { width: 1.5rem; height: 1.5rem; color: var(--bleu); transition: transform 0.3s var(--ease); }
.reperes-liste a:hover, .reperes-liste a:focus-visible, .reperes-liste li.actif a { background: var(--calque-2); padding-inline: 1.25rem; }
.reperes-liste li.actif .lettre, .reperes-liste a:hover .lettre { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.reperes-liste a:hover .fleche { transform: translateX(6px); }

/* Mission et vision */
.fond-clair { background: var(--calque-2); border-block: 1px solid var(--trait); }
.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.deux-col h2 { margin-bottom: 1.25rem; }
.deux-col h3 { font-size: 1.125rem; font-weight: 600; color: var(--encre-2); letter-spacing: 0; margin-bottom: 0.75rem; }
.mission-bloc + .mission-bloc { }
.mission-bloc { border-top: 2px solid var(--encre); padding-top: 1.5rem; }

/* Valeurs */
.valeurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.valeurs > div { padding: 1.5rem 1.5rem 0 0; }
.valeurs > div + div { padding-left: 1.5rem; border-left: 1px solid var(--trait); }
.valeurs h3 { margin-bottom: 0.75rem; font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase; font-stretch: 105%; }
.valeurs p { font-size: 0.975rem; color: var(--encre-2); }

/* Chaîne de personnalisation (bande sombre) */
.bande-sombre { background: var(--encre); color: var(--calque); }
.bande-sombre h2 { color: var(--blanc); }
.bande-sombre .section-tete p { color: #b9c6d2; }
.chaine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.chaine::before { content: ""; position: absolute; left: 0; right: 0; top: 1.15rem; height: 2px; background: var(--or); }
.chaine li { position: relative; padding: 3.25rem 1.5rem 0 0; }
.chaine li::before { content: ""; position: absolute; top: 0.65rem; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--encre); border: 2px solid var(--or); transition: background-color 0.2s var(--ease); }
.chaine li:hover::before { background: var(--or); }
.chaine h3 { color: var(--blanc); margin-bottom: 0.5rem; }
.chaine p { color: #b9c6d2; font-size: 0.975rem; }
.chaine .abbr { font-family: var(--mono); color: var(--or); font-size: 0.875rem; display: block; margin-bottom: 0.35rem; }

/* Tableau de cotes (chiffres) */
.cotes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tableau { width: 100%; border-collapse: collapse; border-top: 2px solid var(--encre); }
.tableau th, .tableau td { text-align: left; padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--trait); font-weight: 500; }
.tableau th { font-weight: 560; font-size: 1.0625rem; }
.tableau td { font-family: var(--mono); font-size: 1.75rem; text-align: right; font-weight: 500; color: var(--bleu-fonce); font-variant-numeric: tabular-nums; }
.tableau tr:hover { background: var(--calque-2); }

/* Témoignage */
.temoignage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.temoignage blockquote { margin: 0; padding-top: 1.5rem; border-top: 2px solid var(--encre); }
.temoignage blockquote p { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; max-width: 34em; }
.temoignage .suite { color: var(--encre-2); font-size: 1rem; font-weight: 400; }
.temoignage cite { display: block; font-style: normal; font-weight: 650; margin-top: 1.5rem; }
.temoignage cite span { display: block; font-weight: 400; color: var(--encre-2); font-size: 0.9375rem; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--encre); border-left: 1px solid var(--trait); }
.clients li { border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); display: grid; place-items: center; padding: 1.25rem; aspect-ratio: 5 / 3; }
.clients img { max-height: 3.5rem; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Appel à contact */
.contact-bande { background: var(--bleu); color: var(--blanc); }
.contact-bande .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.contact-bande h2 { color: var(--blanc); }
.contact-bande .btn { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.contact-bande .btn:hover { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.contact-bande :focus-visible { outline-color: var(--blanc); }
.contact-bande .actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.75rem; }

/* Pied de page : cartouche */
footer { background: var(--encre); color: var(--calque); padding-block: 3.5rem 2rem; }
footer .grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
footer img { height: 3.5rem; width: auto; background: var(--calque-2); padding: 0.4rem 0.6rem; border-radius: 2px; }
footer dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; border-top: 1px solid #55636f; }
footer dt, footer dd { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid #55636f; }
footer dt { padding-right: 2rem; color: #b9c6d2; font-size: 0.875rem; }
footer dd { font-size: 0.975rem; }
footer a { text-decoration-color: var(--or); }
footer .mentions { margin-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #9fb0bf; font-size: 0.875rem; }

/* Révélation unique : tracé des cotes */
@media (prefers-reduced-motion: no-preference) {
  .dessin .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.4s var(--ease) 0.15s forwards; }
  .dessin .cote-txt, .dessin .reperes { opacity: 0; animation: apparaitre 0.6s var(--ease) 1.0s forwards; }
  .planche .intro > * { opacity: 0; transform: translateY(12px); animation: monter 0.7s var(--ease) forwards; }
  .planche .intro > *:nth-child(2) { animation-delay: 0.1s; }
  .planche .intro > *:nth-child(3) { animation-delay: 0.2s; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@keyframes monter { to { opacity: 1; transform: none; } }

/* Adaptatif */
@media (max-width: 62rem) {
  .planche .grille, .section-tete, .deux-col, .cotes, .temoignage, .contact-bande .wrap, footer .grille { grid-template-columns: minmax(0, 1fr); }
  .contact-bande .actions { justify-content: flex-start; }
  .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valeurs > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .valeurs > div:nth-child(n + 3) { border-top: 1px solid var(--trait); margin-top: 1.5rem; }
  .chaine { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .chaine::before { display: none; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reperes-liste a { grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem; }
  .reperes-liste .desc { grid-column: 2; grid-row: 2; }
  .reperes-liste .fleche { grid-column: 3; grid-row: 1; }

  .menu-btn { display: inline-flex; align-self: center; align-items: center; min-height: 2.75rem; padding: 0 1rem; font: 600 0.9375rem var(--font); background: transparent; border: 2px solid var(--encre); border-radius: 2px; color: var(--encre); cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--calque-2); border-bottom: 2px solid var(--encre); max-height: calc(100vh - 4.5rem); overflow: auto; }
  .nav.ouvert { display: block; }
  .nav > ul { flex-direction: column; }
  .nav a.lien { border-left: 0; border-top: 1px solid var(--trait); padding: 0.9rem var(--gutter); }
  .nav > ul > li { flex-direction: column; }
  .sous { position: static; opacity: 1; visibility: visible; transform: none; border: 0; min-width: 0; padding: 0 0 0.5rem; background: transparent; }
  .sous a { padding-inline: calc(var(--gutter) + 1rem); }
  .sous .groupe { padding-inline: calc(var(--gutter) + 1rem); }
  .nav .tel { border-left: 0; border-top: 1px solid var(--trait); padding: 0.9rem var(--gutter); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .valeurs { grid-template-columns: minmax(0, 1fr); }
  .valeurs > div, .valeurs > div + div { border-left: 0; padding-left: 0; }
  .valeurs > div:nth-child(n + 2) { border-top: 1px solid var(--trait); margin-top: 1.5rem; }
  .chaine { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tableau td { font-size: 1.375rem; }
  .btn { width: 100%; justify-content: center; }
  .marque img { height: 2.75rem; }
}

.lead { font-size: 1.375rem; line-height: 1.35; font-weight: 560; letter-spacing: -0.01em; color: var(--encre); }

/* Carrousel : bandeaux à la une */
.carrousel { padding: 0; position: relative; overflow: hidden; display: grid; border-bottom: 1px solid var(--trait); background: var(--calque); }
.slide { position: relative; grid-area: 1 / 1; visibility: hidden; z-index: 0; min-height: min(46rem, 49vw); }
.slide.on { visibility: visible; z-index: 1; }
.slide.out { visibility: visible; z-index: 1; }
.slide.entre { z-index: 2; animation: balayage 1.2s var(--ease) both; }
@keyframes balayage { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.slide-photo { display: grid; align-items: center; background: #1d2145; color: var(--blanc); }
.slide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-photo .slide-texte { position: relative; padding-block: 4rem 5rem; }
.slide-photo h2 { color: var(--blanc); font-size: clamp(2rem, 4vw, 3.5rem); max-width: 16em; }
.slide-photo .marque-txt { margin: 1.25rem 0 2rem; font-family: var(--mono); font-size: 1.125rem; letter-spacing: 0.14em; color: var(--or); font-weight: 500; }
.btn-clair { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.btn-clair:hover { background: var(--or); border-color: var(--or); }
.slide-image { display: grid; background: #1580c6; }
.slide-image.slide-blanc { background: #fff; }
.slide-image { align-items: stretch; }
.slide-image .desk { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.carrousel-ctrl { position: absolute; z-index: 5; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem; background: var(--encre); border-radius: 2px; }
.c-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; color: var(--blanc); border: 1px solid #7d8c99; border-radius: 2px; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.c-btn:hover { background: var(--bleu); border-color: var(--bleu); }
.c-btn svg { width: 1.25rem; height: 1.25rem; }
.c-btn:focus-visible, .c-points button:focus-visible { outline-color: var(--or); }
.c-pause .i-play { display: none; }
.en-pause .c-pause .i-play { display: block; }
.en-pause .c-pause .i-pause { display: none; }
.c-compte { min-width: 3.25rem; padding: 0 0.25rem; font: 500 0.875rem var(--mono); color: var(--blanc); text-align: center; }
.c-points { list-style: none; margin: 0 0.35rem 0 0.5rem; padding: 0; display: flex; gap: 0.15rem; }
.c-points button { position: relative; width: 2rem; height: 2.75rem; padding: 0; background: transparent; border: 0; cursor: pointer; }
.c-points button::after { content: ""; position: absolute; left: 0.1rem; right: 0.1rem; top: 50%; height: 3px; margin-top: -1.5px; background: #7d8c99; transition: background-color 0.2s var(--ease); }
.c-points button:hover::after { background: var(--blanc); }
.c-points button[aria-current="true"]::after { background: var(--or); }
@media (max-width: 62rem) {
  .slide, .slide.on { min-height: 0; }
  .slide-photo .slide-texte { padding-block: 3rem 6rem; }
  .carrousel-ctrl { bottom: 1rem; }
}
@media (max-width: 62rem) { .planche { padding-bottom: 6.5rem; } }
@media (max-width: 40rem) {
  .dessin .rep-cercle { r: 44px; }
  .dessin .rep-lettre { font-size: 50px; }
  .carrousel-ctrl { gap: 0.25rem; max-width: calc(100% - 2 * var(--gutter)); }
  .c-compte { min-width: 2.75rem; }
  .c-points { margin: 0 0.1rem 0 0.25rem; }
  .c-points button { width: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .slide.entre { animation: none; } }

/* Versions portrait des bannières 3 et 4 (recadrages des visuels d'origine) */
.mob { display: none; }
.crop { display: block; position: relative; overflow: hidden; aspect-ratio: calc(var(--w) / var(--h)); }
.crop img { position: absolute; max-width: none; height: auto; width: calc(var(--W) / var(--w) * 100%); left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); }
.fondu { -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); mask-composite: intersect; }
@media (max-width: 62rem) {
  .slide-image .desk { display: none; }
  .slide-image .mob { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; padding: 2.5rem var(--gutter) 6rem; }
  .mob-25 { background: radial-gradient(130% 60% at 65% 38%, #2aa0da, #0f7bbd 75%); }
  .mob-25 .c-logo { width: 72%; }
  .mob-25 .c-num { width: 92%; margin-top: -0.5rem; }
  .m-dates { margin: 0; color: var(--blanc); font-weight: 600; font-stretch: 75%; font-size: clamp(1.75rem, 8vw, 2.25rem); letter-spacing: 0.04em; line-height: 1.1; text-align: center; }
  .m-bas { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; margin-top: 1rem; }
  .m-bas .c-part { width: 72%; }
  .m-bas .c-iso { width: 22%; }
  .mob-pass { background: var(--blanc); }
  .mob-pass .crop { mix-blend-mode: multiply; }
  .mob-pass .c-armes { width: 100%; }
  .mob-pass .c-titre { width: 78%; align-self: flex-start; }
  .mob-pass .c-carte { width: 62%; align-self: flex-start; }
  .mob-pass .c-tel { width: 68%; }
  .mob-pass { gap: 0.5rem; padding-top: 1.5rem; }
  .mob-pass .c-part4 { width: 100%; }
}

/* Pages intérieures, actualités, formulaires (thème WordPress) */
.page-tete { background: var(--calque-2); border-bottom: 2px solid var(--encre); padding-block: clamp(2rem, 5vw, 4rem); }
.page-tete h1 { max-width: 22ch; }
.page-tete .meta { margin: 1rem 0 0; color: var(--encre-2); font-size: 0.875rem; }
.page-corps { padding-block: clamp(2.5rem, 6vw, 5rem); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; max-width: 68ch; }
.prose li { margin-bottom: 0.4rem; }
.prose img { height: auto; }
.prose a { color: var(--bleu-fonce); }
.a-la-une { margin: 0 0 2rem; }
.a-la-une img { width: 100%; height: auto; border: 1px solid var(--trait); }
.art-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--encre); }
.art-nav a { text-decoration: none; font-weight: 600; max-width: 24rem; }
.art-nav a:hover { color: var(--bleu); }

.liste-actus { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.liste-actus li { border-bottom: 1px solid var(--trait); }
.liste-actus a { display: grid; grid-template-columns: 9rem minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 2rem; align-items: baseline; padding: 1.25rem 0.5rem; text-decoration: none; transition: background-color 0.2s var(--ease), padding 0.3s var(--ease); }
.liste-actus a:hover, .liste-actus a:focus-visible { background: var(--blanc); padding-inline: 1.25rem; }
.liste-actus time { font-size: 0.8125rem; color: var(--encre-2); }
.liste-actus .titre { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.liste-actus .desc { color: var(--encre-2); font-size: 0.975rem; }
.lien-fleche { font-weight: 600; color: var(--bleu-fonce); }
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--encre); border-radius: 2px; text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--encre); color: var(--blanc); }

/* Tableaux TablePress */
.prose table, .tablepress { width: 100%; border-collapse: collapse; border-top: 2px solid var(--encre); }
.prose th, .prose td, .tablepress th, .tablepress td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--trait); text-align: left; }

@media (max-width: 62rem) { .liste-actus a { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; } }

/* Modèles de pages : solutions, clients, contacts, actualités */
.accroche { max-width: 40rem; margin-top: 1.25rem; color: var(--encre-2); }
.solution-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.solution-index[hidden] { display: none; }
.solution-index { font-size: 0.9375rem; }
.solution-index ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); counter-reset: sommaire; }
.solution-index li { counter-increment: sommaire; border-bottom: 1px solid var(--trait); }
.solution-index a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: 0.7rem 0; text-decoration: none; font-weight: 560; line-height: 1.3; }
.solution-index a::before { content: counter(sommaire, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-2); padding-top: 0.1rem; }
.solution-index a:hover, .solution-index a:focus-visible { color: var(--bleu); }
.solution-index a[aria-current="true"] { color: var(--bleu-fonce); font-weight: 700; background: var(--blanc); }
.solution-index summary { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; border-top: 2px solid var(--encre); border-bottom: 1px solid var(--trait); font-weight: 600; cursor: pointer; }
.solution-index details[open] summary { border-bottom: 0; }
.solution-corps { max-width: 44rem; }
.solution-corps h2 { margin: 3.5rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--encre); scroll-margin-top: 7rem; text-wrap: balance; }
.solution-corps > :first-child { margin-top: 0; }
.solution-corps h4 { margin: 1.5rem 0 0.4rem; font-size: 1.0625rem; }
@media (min-width: 62.01rem) {
  .solution-grille.a-sommaire { grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .solution-index { position: sticky; top: 6rem; }
  .solution-index summary { display: none; }
}
.page-corps .clients { margin-top: 2.5rem; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.coordonnees dl { margin: 0; border-top: 2px solid var(--encre); }
.coordonnees dt { margin: 0; padding-top: 0.9rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-2); }
.coordonnees dd { margin: 0.2rem 0 0; padding-bottom: 0.9rem; border-bottom: 1px solid var(--trait); }
.coordonnees a { color: var(--bleu-fonce); }
@media (min-width: 62.01rem) { .contact-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); } }
.filtre { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filtre a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--encre); border-radius: 2px; text-decoration: none; font-weight: 560; }
.filtre a:hover, .filtre a[aria-current="true"] { background: var(--encre); color: var(--blanc); }
.page-numbers { list-style: none; }
ul.page-numbers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; }
ul.page-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--encre); border-radius: 2px; text-decoration: none; font-weight: 600; }
ul.page-numbers .current, ul.page-numbers a.page-numbers:hover { background: var(--encre); color: var(--blanc); }
.solution-corps figure { margin: 1.5rem 0; }
.solution-corps h2 + figure { margin-top: 1.25rem; }
.solution-corps img { max-width: 100%; height: auto; border: 1px solid var(--trait); background: var(--blanc); }

/* Formulaire de contact : libellés visibles, champs en grille, états */
.form-contact .champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-bottom: 1.5rem; }
.form-contact .champ { min-width: 0; }
.form-contact .champ--large { grid-column: 1 / -1; }
.form-contact label { display: block; font-weight: 560; }
.form-contact input[type="text"], .form-contact input[type="email"], .form-contact input[type="tel"], .form-contact textarea, .form-contact select { width: 100%; min-height: 3rem; margin-top: 0.35rem; padding: 0.65rem 0.9rem; font: inherit; color: var(--encre); background: var(--blanc); border: 1px solid var(--encre-2); border-radius: 2px; }
.form-contact textarea { min-height: 9rem; }
.form-contact input:focus, .form-contact textarea:focus, .form-contact select:focus { outline: 3px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.form-contact [aria-invalid="true"] { border: 2px solid #a1281d; }
.form-contact .btn { cursor: pointer; }
.champ-erreur { margin: 0.35rem 0 0; color: #a1281d; font-size: 0.875rem; font-weight: 500; }
.champ-erreur::before { content: "Erreur : "; font-weight: 700; }
.form-etat { margin: 0 0 1.5rem; padding: 0.9rem 1rem; border: 2px solid var(--bleu-fonce); background: var(--blanc); }
.form-etat p { margin: 0; }
.form-etat--erreur { border-color: #a1281d; }
.form-etat--erreur p::before { content: "Erreur : "; font-weight: 700; }
.form-etat:focus { outline: 3px solid var(--bleu); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-form { margin-top: 1rem; font-size: 0.875rem; color: var(--encre-2); }
@media (max-width: 40rem) {
  .form-contact .champs { grid-template-columns: minmax(0, 1fr); }
  .form-contact .btn { width: 100%; }
}

/* En-tête des pages intérieures : réglette de cotes et repère or */
.page-tete .wrap::after {
  content: ""; display: block; height: 0.625rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 22rem;
  background:
    linear-gradient(var(--or), var(--or)) left bottom / 0.625rem 100% no-repeat,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 0.5rem) 1.25rem bottom / calc(100% - 1.25rem) 50% repeat-x,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 2.5rem) 1.25rem bottom / calc(100% - 1.25rem) 100% repeat-x;
}

/* Page introuvable : issues de secours */
.liens-secours { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--encre); max-width: 32rem; }
.liens-secours li { border-bottom: 1px solid var(--trait); }
.liens-secours a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.25rem; font-weight: 560; text-decoration: none; }
.liens-secours a:hover, .liens-secours a:focus-visible { background: var(--blanc); color: var(--bleu-fonce); }
.solution-corps img[src$=".png"] { border: 0; background: none; }
.prose table.tablepress thead th { background: transparent; color: var(--encre); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; border-bottom: 2px solid var(--encre); }
.prose table.tablepress tbody td { background: transparent; color: var(--encre); }
.prose table.tablepress tbody tr:nth-child(even) td { background: var(--calque-2); }
.prose table.tablepress td:nth-child(2) { font-family: var(--mono); font-feature-settings: "tnum"; text-align: right; }
.prose table.tablepress thead th:nth-child(2) { text-align: right; }
.page-corps .wrap > .clients:first-child { margin-top: 0; }

/* Pages sans contenu à présenter : entrée de menu inactive */
.nav a.inactif, .nav a.inactif:hover { color: var(--encre-2); cursor: default; text-decoration: none; background: none; pointer-events: none; }
.prose p, .prose li, .accroche { text-wrap: pretty; }

/* Références clients par famille */
.clients-groupes { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.clients-groupe { padding: 0; }
.clients-groupe h3 { margin: 0 0 0.75rem; font-size: 1.0625rem; }
.clients-groupe .clients { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.clients li { aspect-ratio: auto; min-height: 6.5rem; }
.clients img { max-width: 100%; height: auto; max-height: 4rem; }
