/* Thème isoExpress — feuille de style unique.
 *
 * NE PAS MODIFIER À LA MAIN. Ce fichier est assemblé depuis les prototypes
 * statiques par prototypes/tools/build-theme.mjs. Toute correction doit se
 * faire dans prototypes/css/, puis le script est relancé.
 */


/* ===================================================================
 * Socle : polices, remise à zéro, jetons de couleur
 * Source : prototypes/css/base.css
 * =================================================================== */

/* Base partagée par les trois directions : polices, reset, utilitaires neutres. */

@font-face {
  font-family: "Montserrat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #0e4192;
  --accent: #5c1598;
  --ink: #333333;
  --night: #071533;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat Variable", Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===================================================================
 * Direction D : accueil et composants communs
 * Source : prototypes/css/direction-d.css
 * =================================================================== */

/* Direction D — fusion B + C
   De C : immersion photo, fond sombre dominant, typo large, numéros en filigrane.
   De B : la soumission comme objet principal, preuves de confiance, étapes, témoignage.
   Rythme : sombre (accroche) → clair (preuve) → sombre (territoire) → dégradé (appel). */

:root {
  --deep: #050c1d;
  --deep-2: #0a1730;
  --paper: #f4f6fa;
  --line-light: #e2e8f4;
  --slate: #4a5368;
  --brand-deep: #0a3273;
  --glow: #4f8ef7;
  --ok: #17a673;
  --hairline: rgb(255 255 255 / 0.14);
  --dim: rgb(255 255 255 / 0.86);
  --dimmer: rgb(255 255 255 / 0.76);
  --r: 0.75rem;
  --r-lg: 1.25rem;
}

body {
  background: var(--deep);
  color: #fff;
  font-size: 1rem;
  line-height: 1.65;
}

.wrap {
  width: min(78rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 64rem) {
  .wrap {
    width: min(78rem, calc(100% - 5rem));
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow);
}

.kicker::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.kicker--brand {
  color: var(--brand);
}

.band--light .kicker:not(.kicker--brand) {
  color: var(--brand);
}

.display {
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display--ink {
  color: var(--night);
}

.note {
  color: var(--dim);
  font-size: 0.9375rem;
  max-width: 38ch;
}

.note--ink {
  color: var(--slate);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}

.btn--fill {
  background: #fff;
  color: var(--deep);
}

.btn--fill:hover {
  background: var(--glow);
  color: #fff;
  transform: translateY(-2px);
}

.btn--wire {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
  background: rgb(5 12 29 / 0.42);
  backdrop-filter: blur(6px);
}

.btn--wire:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.btn--brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(14 65 146 / 0.7);
}

.btn--brand:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
  padding-block: 1.05rem;
}

/* ---------- Barre utilitaire + en-tête ---------- */

.utility {
  position: relative;
  z-index: 31;
  background: rgb(5 12 29 / 0.92);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
}

.utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  padding-block: 0.6rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .utility__inner {
    justify-content: space-between;
    text-align: left;
  }
}

.utility a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.utility a:hover {
  color: var(--glow);
}

/* Sous 30rem, la barre tiendrait sur deux lignes : on garde l'essentiel. */
.utility__more {
  display: none;
}

@media (min-width: 30rem) {
  .utility__more {
    display: inline;
  }
}

.topbar {
  position: relative;
  z-index: 30;
  background: rgb(5 12 29 / 0.32);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.sigil {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.sigil i {
  font-style: normal;
  font-weight: 300;
  color: rgb(255 255 255 / 0.82);
}

.topbar__nav {
  display: none;
  gap: 1.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.92);
}

.topbar__nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
  color: #fff;
}

@media (min-width: 64rem) {
  .topbar__nav {
    display: flex;
  }
}

.topbar .btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.8125rem;
}

/* ---------- Menu mobile (sans JavaScript requis) ----------
   <details> gère l'ouverture et l'état annoncé aux lecteurs d'écran.
   Le script de la page ne fait qu'ajouter la fermeture au clic et à Échap. */

.topbar__cta {
  display: none;
}

@media (min-width: 64rem) {
  .topbar__cta {
    display: inline-flex;
  }

  .drawer {
    display: none;
  }
}

.drawer__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drawer__toggle::-webkit-details-marker {
  display: none;
}

.drawer__toggle:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.drawer__bars {
  position: relative;
}

.drawer__bars,
.drawer__bars::before,
.drawer__bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.drawer__bars::before,
.drawer__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.drawer__bars::before {
  top: -0.375rem;
}

.drawer__bars::after {
  top: 0.375rem;
}

.drawer[open] .drawer__bars {
  background: transparent;
}

.drawer[open] .drawer__bars::before {
  transform: translateY(0.375rem) rotate(45deg);
}

.drawer[open] .drawer__bars::after {
  transform: translateY(-0.375rem) rotate(-45deg);
}

.drawer__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.85rem 1.25rem 1.4rem;
  background: rgb(5 12 29 / 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  animation: drawer-in 0.22s ease;
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.drawer__panel nav {
  display: grid;
}

.drawer__panel nav a {
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.drawer__panel nav a:hover,
.drawer__panel nav a[aria-current="page"] {
  color: var(--glow);
}

.drawer__panel .btn {
  width: 100%;
  margin-top: 1.1rem;
  padding-block: 0.95rem;
  font-size: 0.875rem;
}

.drawer__tel {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--glow);
  text-decoration: none;
}

/* ---------- Hero : photo immersive + carte soumission ---------- */

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.stage__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sur mobile le cadrage est très resserré : on vise la pelle, pas le vide. */
  object-position: 36% 58%;
}

/* Sur grand écran, la carte de soumission occupe la droite : on élargit et on
   cale l'image à gauche pour amener la pelle dans le vide entre texte et carte. */
@media (min-width: 64rem) {
  .stage__media img {
    width: 122%;
    object-position: left center;
  }
}

.stage__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Voile assez dense derrière le texte et la barre de navigation pour
     tenir le contraste AA, sans noyer toute la photo à droite. */
  background:
    linear-gradient(180deg, rgb(5 12 29 / 0.82) 0%, rgb(5 12 29 / 0.38) 40%, rgb(5 12 29 / 0.92) 100%),
    linear-gradient(96deg, rgb(5 12 29 / 0.92) 0%, rgb(5 12 29 / 0.72) 28%, rgb(5 12 29 / 0.16) 58%);
}

.stage__grid {
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .stage__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4.5rem;
    min-height: 40rem;
  }
}

.stage__title {
  margin-top: 1.5rem;
  max-width: 16ch;
}

.stage__lead {
  margin-top: 1.4rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgb(255 255 255 / 0.92);
}

.marks {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.marks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
}

.marks svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--ok);
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

/* Carte soumission posée sur la photo */

.quote {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -28px rgb(0 0 0 / 0.65);
  overflow: hidden;
}

.quote__head {
  padding: 1.35rem 1.6rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.quote__head h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.quote__head p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.92);
}

.quote__body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
}

.field label {
  display: block;
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 0.38rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: 0.6rem;
  background: #fbfcfe;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #4a5368;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(14 65 146 / 0.13);
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.field--pair {
  display: grid;
  gap: 1rem;
}

@media (min-width: 30rem) {
  .field--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.6rem 1.35rem;
  font-size: 0.75rem;
  color: var(--slate);
  text-align: center;
}

.quote__foot svg {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
}

/* ---------- Bandeau de confiance ---------- */

.assur {
  background: var(--deep-2);
  border-block: 1px solid var(--hairline);
}

.assur__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-block: 2rem;
}

@media (min-width: 56rem) {
  .assur__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.assur__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.assur__item svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--glow);
}

.assur__item p {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.assur__item span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dimmer);
}

/* ---------- Bandes ---------- */

.band {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.band--light {
  background: var(--paper);
  color: var(--ink);
}

.band__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

@media (min-width: 60rem) {
  .band__head {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
  }
}

.band__title {
  margin-top: 1.3rem;
}

/* ---------- Services ---------- */

.stack {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 58rem) {
  .stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.slab {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgb(255 255 255 / 0.07) 0%, rgb(255 255 255 / 0.02) 100%);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.28s ease, transform 0.28s ease;
}

.slab::after {
  content: attr(data-num);
  position: absolute;
  right: -0.5rem;
  bottom: -2.25rem;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgb(255 255 255 / 0.05);
  pointer-events: none;
  transition: color 0.28s ease;
}

.slab:hover {
  transform: translateY(-5px);
  border-color: rgb(79 142 247 / 0.6);
}

.slab:hover::after {
  color: rgb(79 142 247 / 0.16);
}

.slab__icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--glow);
}

.slab__icon svg {
  width: 100%;
  height: 100%;
}

.slab h3 {
  margin-top: auto;
  padding-top: 2.25rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slab p,
.slab .slab__more {
  position: relative;
  z-index: 1;
}

.slab p {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  color: var(--dim);
}

.slab__more {
  margin-top: 1.35rem;
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
}

/* ---------- Méthode : image + étapes ---------- */

.duo {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .duo {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 4.5rem;
  }

  .duo--flip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .duo--flip .duo__media {
    order: 2;
  }
}

.duo__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -26px rgb(7 21 51 / 0.45);
}

.duo__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.duo__badge {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  background: rgb(255 255 255 / 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.duo__media--crew img {
  aspect-ratio: 3 / 2;
  object-position: center 78%;
}

.steps {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--night);
  padding-top: 0.25rem;
}

.step p {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 44ch;
}

/* ---------- Témoignage ---------- */

.testimony {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.9rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 3rem);
  background: #fff;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  box-shadow: 0 18px 44px -24px rgb(7 21 51 / 0.2);
}

.testimony blockquote {
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--night);
  max-width: 54ch;
}

.testimony blockquote::before {
  content: "« ";
  color: var(--brand);
}

.testimony blockquote::after {
  content: " »";
  color: var(--brand);
}

.testimony figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.84375rem;
  color: var(--slate);
}

.testimony__who {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand) 0%, var(--accent) 150%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimony figcaption strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--night);
}

/* ---------- Territoire ---------- */

.band--territoire {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--deep) 0%, rgb(5 12 29 / 0.58) 24%, rgb(5 12 29 / 0.62) 74%, var(--deep) 100%),
    linear-gradient(90deg, rgb(5 12 29 / 0.88) 0%, rgb(5 12 29 / 0.42) 58%, rgb(5 12 29 / 0.18) 100%);
}

.band--territoire .note {
  color: rgb(255 255 255 / 0.92);
}

.band--territoire .chips li {
  background: rgb(5 12 29 / 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
}

.band--territoire .chips li:hover {
  background: rgb(5 12 29 / 0.7);
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips li {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chips li:hover {
  border-color: var(--glow);
  color: #fff;
}

/* ---------- Appel final ---------- */

.finale {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
}

.finale::before {
  content: "";
  position: absolute;
  top: -42%;
  left: 54%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.15) 0%, transparent 62%);
}

.finale__inner {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(3.25rem, 6.5vw, 5.5rem);
  align-items: center;
}

@media (min-width: 58rem) {
  .finale__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
}

.finale h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 18ch;
}

.finale p {
  margin-top: 0.9rem;
  color: rgb(255 255 255 / 0.94);
  max-width: 42ch;
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Pied ---------- */

.base {
  background: var(--deep);
  color: var(--dim);
  font-size: 0.875rem;
}

.base__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.25rem;
}

@media (min-width: 56rem) {
  .base__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
  }
}

.base h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}

.base a {
  text-decoration: none;
}

.base a:hover {
  color: #fff;
}

.base__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-top: 1px solid var(--hairline);
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  color: var(--dimmer);
}

.base__links a {
  color: rgb(255 255 255 / 0.92);
}

.base__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.base__social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0.45rem;
}

.base__social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.base__social svg {
  width: 1.05rem;
  height: 1.05rem;
}


/* ===================================================================
 * Pages intérieures : en-têtes, contenu libre, formulaires
 * Source : prototypes/css/direction-d-pages.css
 * =================================================================== */

/* Direction D — pages intérieures.
   Complète direction-d.css. Deux familles de styles :
   1. les blocs de gabarit (en-tête de page, blocs service, colonne latérale) ;
   2. `.prose`, la typographie du contenu libre — c'est ce qui habillera
      `the_content()` une fois converti en thème WordPress. */

/* ---------- En-tête de page ---------- */

.pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep-2);
}

.pagehead__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pagehead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.pagehead__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(5 12 29 / 0.86) 0%, rgb(5 12 29 / 0.72) 48%, rgb(5 12 29 / 0.94) 100%),
    linear-gradient(90deg, rgb(5 12 29 / 0.9) 0%, rgb(5 12 29 / 0.55) 62%);
}

.pagehead--plain {
  background: linear-gradient(150deg, var(--deep) 0%, #0d2352 62%, var(--brand-deep) 130%);
}

.pagehead__inner {
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
}

.pagehead__title {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}

.pagehead__lead {
  margin-top: 1.2rem;
  max-width: 48ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgb(255 255 255 / 0.92);
}

/* ---------- Fil d'Ariane ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.82);
}

.crumbs a {
  text-decoration: none;
  color: rgb(255 255 255 / 0.92);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgb(255 255 255 / 0.55);
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs [aria-current] {
  color: #fff;
}

/* ---------- Gabarit à deux colonnes ---------- */

.layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 62rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
  }

  .layout--wide-aside {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}

.aside {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.panel {
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgb(255 255 255 / 0.07) 0%, rgb(255 255 255 / 0.02) 100%);
}

.panel--light {
  border-color: var(--line-light);
  background: #fff;
  box-shadow: 0 16px 40px -24px rgb(7 21 51 / 0.28);
}

.panel h2,
.panel h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel--light h2,
.panel--light h3 {
  color: var(--night);
}

.panel p {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  color: var(--dim);
}

.panel--light p {
  color: var(--slate);
}

.panel .btn {
  width: 100%;
  margin-top: 1.25rem;
}

.panel__rows {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.panel__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
}

.panel--light .panel__rows div {
  border-bottom-color: var(--line-light);
}

.panel__rows div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel__rows dt {
  color: var(--dim);
}

.panel--light .panel__rows dt {
  color: var(--slate);
}

.panel__rows dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.panel--light .panel__rows dd {
  color: var(--night);
}

/* ---------- Contenu libre (futur the_content) ---------- */

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dim);
}

.prose--ink {
  color: var(--slate);
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.prose--ink h2,
.prose--ink h3 {
  color: var(--night);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose--ink strong {
  color: var(--night);
}

.prose a {
  color: var(--glow);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(79 142 247 / 0.4);
}

.prose--ink a {
  color: var(--brand);
  text-decoration-color: rgb(14 65 146 / 0.35);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 1.6rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--glow);
}

.prose--ink ul li::before {
  background: var(--brand);
}

.prose ol {
  counter-reset: prose-item;
}

.prose ol li {
  counter-increment: prose-item;
}

.prose ol li::before {
  content: counter(prose-item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--glow);
}

.prose--ink ol li::before {
  color: var(--brand);
}

.prose blockquote {
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 3px solid var(--brand);
  font-size: 1.125rem;
  font-style: normal;
  color: #fff;
}

.prose--ink blockquote {
  color: var(--night);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.prose--ink th,
.prose--ink td {
  border-bottom-color: var(--line-light);
}

.prose th {
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.prose--ink th {
  color: var(--slate);
}

.prose td strong {
  white-space: nowrap;
}

.prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.prose--ink hr {
  border-top-color: var(--line-light);
}

.prose figure img {
  border-radius: var(--r-lg);
}

.prose figcaption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--dimmer);
}

/* ---------- Page légale : une seule colonne étroite ---------- */

.reading {
  max-width: 44rem;
  margin-inline: auto;
}

.reading__meta {
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.8125rem;
  color: var(--slate);
}

.prose--ink .reading__meta {
  color: var(--slate);
}

/* ---------- Cartes de contact ---------- */

.reach {
  display: grid;
  gap: 1rem;
}

@media (min-width: 46rem) {
  .reach {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reach__card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 16px 40px -28px rgb(7 21 51 / 0.3);
}

.reach__card svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--brand);
}

.reach__card h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.reach__value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--night);
}

.reach__value a {
  color: inherit;
  text-decoration: none;
}

.reach__value a:hover {
  color: var(--brand);
}

.reach__note {
  font-size: 0.84375rem;
  color: var(--slate);
}

/* ---------- Étapes numérotées (page Interac) ----------
   Nom distinct de `.steps`, qui désigne les étapes de la méthode sur
   l'accueil : les deux feuilles finissent concaténées dans le thème. */

.stepcards {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Composant de contenu : toujours rendu sur fond clair, puisque le texte long
   des pages intérieures l'est aussi. */
.stepcards li {
  counter-increment: step;
  position: relative;
  padding: 1.35rem 1.5rem 1.35rem 4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 14px 34px -28px rgb(7 21 51 / 0.4);
  font-size: 0.9375rem;
  color: var(--slate);
}

.stepcards li::before {
  content: counter(step);
  position: absolute;
  left: 1.35rem;
  top: 1.3rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.stepcards strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--night);
}

/* ---------- Encart d'avertissement ---------- */

.caution {
  display: flex;
  gap: 0.9rem;
  margin-block: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgb(184 118 5 / 0.35);
  border-radius: var(--r-lg);
  background: rgb(232 160 42 / 0.1);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b4405;
}

.caution svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  color: #b87605;
}

.caution strong {
  color: #4a2f03;
}

/* ---------- Blocs service détaillés ---------- */

.svc {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.svc:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.svc__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--glow);
}

.svc__name {
  margin-top: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.svc__text {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--dim);
}

.svc__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .svc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.75rem;
  }
}

.svc__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.86);
}

.svc__list svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  color: var(--ok);
}

.svc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.svc__price {
  font-size: 0.875rem;
  color: var(--dim);
}

.svc__price strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ---------- Tableau des municipalités ---------- */

.towns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.towns-table caption {
  text-align: left;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--slate);
}

.towns-table th,
.towns-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}

.towns-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.towns-table td:first-child {
  font-weight: 700;
  color: var(--night);
}

.towns-table tbody tr:hover {
  background: rgb(14 65 146 / 0.04);
}

.tag-ok,
.tag-far {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.71875rem;
  font-weight: 700;
}

.tag-ok {
  background: rgb(23 166 115 / 0.12);
  color: #0f7b53;
}

.tag-far {
  background: rgb(14 65 146 / 0.1);
  color: var(--brand);
}

/* ---------- Page soumission ---------- */

.formpage .quote {
  box-shadow: 0 24px 60px -30px rgb(7 21 51 / 0.5);
}

.formpage .quote__body {
  padding: 1.75rem;
}

@media (min-width: 40rem) {
  .field--trio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.filebox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-light);
  border-radius: 0.6rem;
  background: #fbfcfe;
  font-size: 0.84375rem;
  color: var(--slate);
}

.filebox svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand);
}

.filebox input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.84375rem;
  color: var(--slate);
}

.filebox input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-light);
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.filebox input[type="file"]::file-selector-button:hover {
  border-color: var(--brand);
  background: var(--paper);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
}

.consent input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

/* ---------- À propos : chronologie ---------- */

.era {
  margin-top: 2.75rem;
  border-top: 1px solid var(--hairline);
}

.era li {
  display: grid;
  gap: 0.65rem 2.75rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

@media (min-width: 44rem) {
  .era li {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    padding-block: 1.85rem;
  }
}

.era time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow);
  padding-top: 0.35rem;
}

.era h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.era p {
  margin-top: 0.45rem;
  max-width: 56ch;
  font-size: 0.9375rem;
  color: var(--dim);
}

/* ---------- À propos : ce qu'on refuse ---------- */

.refuse {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.refuse li {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: #fff;
}

.refuse strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--night);
}

.refuse p {
  font-size: 0.9375rem;
  color: var(--slate);
}

.matter {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .matter {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.85rem;
  }

  .matter__wide {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

.matter figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.matter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.matter__wide img {
  aspect-ratio: 4 / 3;
  min-height: 100%;
}

.matter__tile img {
  aspect-ratio: 1;
}

.matter figure {
  position: relative;
}

.matter figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.crew {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 32rem;
}

.crew__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.crew__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 48%;
}

.crew__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 12 29 / 0.94) 0%, rgb(5 12 29 / 0.78) 32%, rgb(5 12 29 / 0.28) 58%, rgb(5 12 29 / 0.12) 100%),
    linear-gradient(180deg, rgb(5 12 29 / 0.2) 0%, rgb(5 12 29 / 0.55) 100%);
}

.crew__inner {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  max-width: 36rem;
}

.crew-quote {
  margin-top: 1.4rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.crew-who {
  margin-top: 1.4rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.88);
}

.crew-who strong {
  display: block;
  color: #fff;
}

/* ---------- Portfolio : filtres et grille ---------- */

.folio-bar {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 52rem) {
  .folio-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.folio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.folio-filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.folio-filters label {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.folio-filters label:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.folio-filters input:checked + label {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.folio:has(#folio-excavation:checked) .work:not([data-cat="excavation"]),
.folio:has(#folio-terrassement:checked) .work:not([data-cat="terrassement"]),
.folio:has(#folio-drainage:checked) .work:not([data-cat="drainage"]) {
  display: none;
}

.folio-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 44rem) {
  .folio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 64rem) {
  .folio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work--lead {
    grid-column: span 2;
  }

  .work--lead::before {
    aspect-ratio: 16 / 9;
  }
}

.work {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: #fff;
  background: var(--deep-2);
}

.work::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
}

.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.work:hover img {
  transform: scale(1.045);
}

.work__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 4.25rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, transparent 0%, rgb(5 12 29 / 0.82) 42%, rgb(5 12 29 / 0.96) 100%);
}

.work__place {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
}

.work h3 {
  margin-top: 0.3rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Dossier mis en avant ---------- */

.dossier {
  display: grid;
  gap: 2.25rem;
  scroll-margin-top: 2rem;
}

.dossier__body {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 52rem) {
  .dossier__body {
    grid-template-columns: minmax(16rem, 1.05fr) minmax(0, 0.95fr);
    gap: 2.75rem 3rem;
    align-items: start;
  }
}

.dossier__copy h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.dossier__pair {
  position: relative;
  isolation: isolate;
}

.dossier__pair figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-lg);
}

.dossier__pair img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dossier__pair:has(.dossier__pair-small) figure:first-child {
  width: 92%;
}

.dossier__pair figure.dossier__pair-small {
  position: relative;
  z-index: 1;
  width: min(11rem, 48%);
  margin: -28% 0 0 auto;
  box-shadow:
    0 0 0 0.4rem var(--deep),
    0 18px 36px -14px rgb(0 0 0 / 0.62);
}

.dossier__pair-small img {
  aspect-ratio: 1;
}

@media (min-width: 40rem) {
  .dossier__pair:has(.dossier__pair-small) {
    margin-bottom: 1.65rem;
  }

  .dossier__pair:has(.dossier__pair-small) figure:first-child {
    width: 84%;
  }

  .dossier__pair figure.dossier__pair-small {
    position: absolute;
    left: 54%;
    bottom: -12%;
    width: min(10.75rem, 36%);
    margin: 0;
    transform: rotate(-2.15deg);
  }
}

.dossier__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.85rem;
}

.dossier__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.dossier__facts dd {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.dossier .testimony {
  margin-top: 0;
}

.pagehead--yard .pagehead__media img {
  object-position: 38% 62%;
}

.pagehead--crew .pagehead__media img {
  object-position: 54% 78%;
}

.pagehead--phone .pagehead__media img {
  object-position: 72% 46%;
}

.pagehead--quote .pagehead__media img {
  object-position: 78% 58%;
}

.pagehead--folio .pagehead__media img {
  object-position: center 42%;
}


/* ===================================================================
 * Couche WordPress : menus, légendes, accessibilité
 * Source : prototypes/css/wordpress.css
 * =================================================================== */

/* Couche WordPress — n'existe que dans le thème, jamais dans les prototypes.
   Trois rôles : réparer le balisage que WordPress impose (listes de menu,
   légendes, alignements), fournir les classes d'accessibilité attendues du
   cœur, et neutraliser les décalages de la barre d'administration. */

/* ---------- wp_nav_menu insère un <ul> entre le conteneur et les liens ---------- */

.topbar__nav ul {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer__panel nav ul {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sans cela, le lien reste en ligne dans son <li> et son trait de séparation
   s'arrête à la fin du texte au lieu de traverser le panneau. */
.drawer__panel nav li {
  display: grid;
}

.drawer__panel nav a {
  display: block;
}

.topbar__nav .current-menu-item > a,
.topbar__nav .current_page_item > a {
  color: #fff;
}

.drawer__panel .current-menu-item > a,
.drawer__panel .current_page_item > a {
  color: var(--glow);
}

/* ---------- Accessibilité attendue par le cœur ---------- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 0.875rem;
  font-weight: 700;
}

.iso-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iso-skip:focus,
.iso-skip:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

/* ---------- Contenu de l'éditeur classique ---------- */

.prose .alignleft {
  float: left;
  margin: 0.4rem 1.75rem 1.25rem 0;
}

.prose .alignright {
  float: right;
  margin: 0.4rem 0 1.25rem 1.75rem;
}

.prose .aligncenter {
  display: block;
  margin-inline: auto;
}

.prose .alignnone {
  margin-block: 1.25rem;
}

.prose .wp-caption {
  max-width: 100%;
}

.prose .wp-caption img {
  border-radius: var(--r-lg);
}

.prose .wp-caption-text {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--dimmer);
}

.prose--ink .wp-caption-text {
  color: var(--slate);
}

.prose embed,
.prose iframe,
.prose object,
.prose video {
  max-width: 100%;
  border-radius: var(--r-lg);
}

.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.prose .gallery-item {
  margin: 0;
}

.prose pre {
  overflow-x: auto;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: rgb(0 0 0 / 0.28);
  font-size: 0.875rem;
}

.prose--ink pre {
  background: var(--paper);
}

.prose code {
  font-size: 0.9em;
}

/* Un flottant ne doit pas déborder du bloc de texte. */
.prose::after {
  content: "";
  display: table;
  clear: both;
}

/* Les codes courts rendent des blocs structurés à l'intérieur de `.prose`.
   Sans ces surcharges, les règles de listes et de titres du contenu libre
   prendraient le dessus (même spécificité, ordre défavorable). */

.layout--after-cards {
  margin-top: 3.5rem;
}

.prose--measure {
  max-width: 44rem;
}

.prose .reach {
  margin-block: 0 2.5rem;
}

.prose .reach h2 {
  margin-top: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.prose ol.stepcards {
  gap: 1.25rem;
  margin-top: 2rem;
  padding-left: 0;
  counter-reset: step;
}

.prose ol.stepcards li {
  padding: 1.35rem 1.5rem 1.35rem 4rem;
  color: var(--slate);
}

.prose ol.stepcards li::before {
  content: counter(step);
  left: 1.35rem;
  top: 1.3rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.prose .caution {
  color: #6b4405;
}

.prose .caution strong {
  color: #4a2f03;
}

.prose .quote h2 {
  margin-top: 0;
  font-size: inherit;
  letter-spacing: inherit;
}

.prose form.quote {
  margin-top: 0;
}

/* ---------- Bandeau de démonstration ----------
   Ruban d'avertissement, volontairement étranger au design du site :
   police système, jaune/noir, collé en haut de la fenêtre au défilement. */

.iso-demo-bar {
  position: sticky;
  top: 0;
  z-index: 100000;
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: #111;
  background: #ffe566;
  border-bottom: 3px solid #111;
}

.iso-demo-bar::before {
  content: "";
  display: block;
  height: 7px;
  background: repeating-linear-gradient(-45deg, #111 0 8px, #ffe566 8px 16px);
}

.iso-demo-bar p {
  margin: 0;
  max-width: none;
  padding: 0.5rem 1.25rem 0.65rem;
}

.iso-demo-bar strong {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.12rem 0.45rem;
  border: 2px solid #111;
  background: #111;
  color: #ffe566;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iso-demo-bar a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 800;
}

.iso-demo-bar a:hover {
  color: #111;
}

body.admin-bar .iso-demo-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .iso-demo-bar {
    top: 46px;
  }
}

.base__tagline {
  margin: 0.35rem 0 0.85rem;
  color: var(--dim);
  font-size: 0.875rem;
}

.iso-mentions {
  color: inherit;
}

.iso-mentions--empty {
  color: rgb(255 255 255 / 0.82);
}

body.admin-bar .iso-skip:focus,
body.admin-bar .iso-skip:focus-visible,
body.admin-bar .screen-reader-text:focus {
  top: 3.5rem;
}

/* ---------- Repli quand aucun contenu n'est saisi ---------- */

.prose:empty {
  display: none;
}
