/* pmboutet.com : refonte UX/UI (novembre 2026).
   Polices auto-hébergées : Fraunces (titres, sérif éditorial) et Mulish (texte).
   Palette sobre papier / encre, un seul accent bleu ; mode sombre automatique ou choisi. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
/* Gardée pour la page 404 et les anciens liens éventuels */
@font-face {
  font-family: "Syncopate";
  src: url("/fonts/syncopate-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: light;
  --fond: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --encre: #111a2e;
  --texte: #39414f;
  --discret: #5b6474;
  --ligne: #dcd7cb;
  --accent: #1f46b4;
  --accent-fort: #14317f;
  --accent-doux: #e3e9f8;
  --sur-accent: #ffffff;
  --bande: #0d1830;          /* bande sombre du contact */
  --bande-texte: #c9d2e4;
  --bande-ligne: rgba(255, 255, 255, .14);
  --champ: #f4f2ec;
  --champ-ligne: #b9b3a5;
  --erreur: #b3203a;
  --erreur-fond: #fbeef0;
  --succes: #217a52;
  --ombre: 0 1px 2px rgba(17, 26, 46, .06), 0 12px 32px rgba(17, 26, 46, .08);
  --ombre-forte: 0 2px 4px rgba(17, 26, 46, .08), 0 30px 60px rgba(17, 26, 46, .16);

  --titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --corps: "Mulish", "Avenir Next", "Avenir", system-ui, sans-serif;
  --largeur: 1200px;
  --gouttiere: clamp(16px, 5vw, 48px);
  --section: clamp(80px, 10vw, 144px);
  --rayon: 6px;
  --entete: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #0c1322;
    --surface: #131c2f;
    --surface-2: #10192b;
    --encre: #f1f3f8;
    --texte: #c3cad8;
    --discret: #98a2b6;
    --ligne: #263149;
    --accent: #93b1ff;
    --accent-fort: #b9ccff;
    --accent-doux: #1b2747;
    --sur-accent: #0c1322;
    --bande: #070d19;
    --bande-texte: #b7c0d3;
    --champ: #0f1727;
    --champ-ligne: #3a4766;
    --erreur: #ff8597;
    --erreur-fond: #2c1520;
    --succes: #5fd3a0;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
    --ombre-forte: 0 2px 4px rgba(0, 0, 0, .35), 0 30px 60px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #0c1322;
  --surface: #131c2f;
  --surface-2: #10192b;
  --encre: #f1f3f8;
  --texte: #c3cad8;
  --discret: #98a2b6;
  --ligne: #263149;
  --accent: #93b1ff;
  --accent-fort: #b9ccff;
  --accent-doux: #1b2747;
  --sur-accent: #0c1322;
  --bande: #070d19;
  --bande-texte: #b7c0d3;
  --champ: #0f1727;
  --champ-ligne: #3a4766;
  --erreur: #ff8597;
  --erreur-fond: #2c1520;
  --succes: #5fd3a0;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --ombre-forte: 0 2px 4px rgba(0, 0, 0, .35), 0 30px 60px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0; overflow-x: clip;
  background: var(--fond); color: var(--texte);
  font: 400 17px/1.7 var(--corps);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong, b { font-weight: 700; color: var(--encre); }
h1, h2, h3 { color: var(--encre); margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--sur-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--fond); padding: 10px 16px; border-radius: var(--rayon);
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.lien-evitement:focus { top: 12px; }

.surtitre {
  font: 700 12.5px/1.4 var(--corps); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.surtitre::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 16px/1 var(--corps); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.bouton svg.plein { fill: currentColor; stroke: none; }
.bouton-plein { background: var(--accent); color: var(--sur-accent); border: 1.5px solid var(--accent); }
.bouton-plein:hover { background: var(--accent-fort); border-color: var(--accent-fort); transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.bouton-plein:hover svg { transform: translateX(3px); }
.bouton-lien { padding-inline: 4px; color: var(--encre); border-radius: 4px; background: none; border: 0; }
.bouton-lien { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat; }
.bouton-lien:hover { color: var(--accent); background-size: 100% 1.5px; }

/* ---------- En-tête collant ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.entete.defile { border-bottom-color: var(--ligne); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--entete); }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); min-height: 44px; }
.monogramme {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--encre); color: var(--fond); font: 500 14px/1 var(--titre); letter-spacing: .02em;
}
.marque-nom { font: 500 18px/1 var(--titre); letter-spacing: -.005em; white-space: nowrap; }
.menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--texte); text-decoration: none; font-size: 15px; font-weight: 600; position: relative;
  transition: color .2s;
}
.menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover, .menu a[aria-current="true"] { color: var(--encre); }
.menu a:hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu .menu-contact { display: none; }
.entete-outils { display: flex; align-items: center; gap: 8px; }
.entete-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.bouton-theme, .bouton-menu {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ligne); border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.bouton-theme:hover, .bouton-menu:hover { border-color: var(--encre); }
.bouton-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bouton-theme .icone-lune { fill: currentColor; stroke: none; }
.bouton-theme .icone-soleil { display: none; }
.sombre .bouton-theme .icone-lune { display: none; }
.sombre .bouton-theme .icone-soleil { display: block; }
.bouton-menu { display: none; }
.bouton-menu span, .bouton-menu span::before, .bouton-menu span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s;
}
.bouton-menu span { position: relative; }
.bouton-menu span::before, .bouton-menu span::after { content: ""; position: absolute; left: 0; }
.bouton-menu span::before { top: -6px; }
.bouton-menu span::after { top: 6px; }
.bouton-menu[aria-expanded="true"] span { background: transparent; }
.bouton-menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .bouton-menu { display: inline-grid; }
  .entete-cta { display: none; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--fond); border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .menu.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .menu ul { flex-direction: column; gap: 0; padding: 8px var(--gouttiere) 20px; }
  .menu .menu-contact { display: block; }
  .menu a { display: flex; padding: 0; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--ligne); }
  .menu a::after { display: none; }
  .menu a[aria-current="true"] { color: var(--accent); }
  .menu-contact a { color: var(--accent); }
}
@media (max-width: 400px) { .marque-nom { font-size: 16px; } }

/* ---------- Apparitions au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .apparait.vu { opacity: 1; transform: none; }

/* ---------- Ouverture ---------- */
.ouverture { padding: clamp(40px, 8vw, 104px) 0 clamp(56px, 8vw, 104px); }
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ouverture h1 {
  font: 350 clamp(44px, 6.6vw, 88px)/1.02 var(--titre);
  letter-spacing: -.025em; margin: 0 0 28px; font-optical-sizing: auto;
}
.ouverture h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.chapeau { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 34em; margin-bottom: 36px; }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ouverture-portrait { margin: 0; position: relative; }
.ouverture-portrait::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1.5px solid var(--accent); border-radius: var(--rayon); opacity: .5;
}
.ouverture-portrait img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--rayon); background: var(--surface-2);
}
.ouverture-portrait figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.reperes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px);
  margin: clamp(56px, 8vw, 104px) 0 0; padding: 0;
}
.reperes > div { border-top: 1px solid var(--ligne); padding-top: 22px; }
.reperes dt { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--titre); color: var(--encre); letter-spacing: -.015em; margin-bottom: 8px; }
.reperes dd { margin: 0; color: var(--discret); font-size: 15.5px; line-height: 1.5; }

@media (max-width: 860px) {
  .ouverture-grille { grid-template-columns: 1fr; }
  .ouverture-portrait { margin-right: 18px; }
  .ouverture-portrait::before { inset: 18px -18px -18px 18px; }
  .ouverture-portrait img { aspect-ratio: 4 / 3; object-position: 50% 28%; }
  .reperes { grid-template-columns: 1fr; gap: 0; }
  .reperes > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline; padding: 18px 0; }
  .reperes > div:last-child { border-bottom: 1px solid var(--ligne); }
  .reperes dt { font-size: 24px; margin: 0; }
}
@media (max-width: 380px) { .reperes > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tete { max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-tete-centre { margin-inline: auto; text-align: center; }
.section-tete-centre .surtitre { justify-content: center; }
.section h2 { font: 350 clamp(36px, 4.8vw, 64px)/1.06 var(--titre); letter-spacing: -.022em; margin-bottom: 24px; }
.section-intro { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; margin: 0; }

/* Expertise */
.expertise { background: var(--surface); border-block: 1px solid var(--ligne); }
.piliers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.pilier {
  background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(28px, 3vw, 40px); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.pilier:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--ligne)); transform: translateY(-3px); box-shadow: var(--ombre); }
.pilier-num { display: block; font: italic 400 20px/1 var(--titre); color: var(--accent); margin-bottom: 40px; }
.pilier h3 { font: 450 clamp(23px, 2vw, 27px)/1.2 var(--titre); letter-spacing: -.01em; margin-bottom: 14px; }
.pilier p { margin: 0; font-size: 16.5px; }

.formats {
  margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 88px); align-items: start;
}
.formats-titre { font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--titre); letter-spacing: -.015em; }
.formats-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.formats-liste li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--ligne);
}
.format-nom { font-weight: 700; color: var(--encre); font-size: 18px; }
.format-desc { color: var(--discret); font-size: 15.5px; }
.audiences { grid-column: 2; margin: 8px 0 0; color: var(--discret); font-size: 15.5px; }
.audiences span { font-weight: 700; color: var(--encre); }

@media (max-width: 860px) {
  .piliers { grid-template-columns: 1fr; }
  .pilier-num { margin-bottom: 20px; }
  .formats { grid-template-columns: 1fr; }
  .audiences { grid-column: auto; }
}

/* Approche */
.approche-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.approche .section-tete { margin-bottom: 0; }
.approche .section-tete p:not(.surtitre) { font-size: clamp(17px, 1.3vw, 19px); }
.parcours {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--ombre);
}
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.etapes li {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; align-items: center;
  padding-bottom: 28px;
}
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1.5px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.etapes li:last-child::before { display: none; }
.etape-num {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent); font: 500 17px/1 var(--titre); background: var(--surface);
}
.etapes li:first-child .etape-num, .etapes li:last-child .etape-num { background: var(--accent); color: var(--sur-accent); }
.etape-nom { font: 450 22px/1.25 var(--titre); color: var(--encre); letter-spacing: -.01em; }
.etape-note { grid-column: 2; font-size: 14.5px; color: var(--discret); line-height: 1.4; }
.boucle {
  display: flex; gap: 14px; align-items: flex-start; margin: 32px 0 0; padding-top: 24px; border-top: 1px dashed var(--ligne);
  font-size: 16px;
}
.boucle svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
@media (max-width: 860px) { .approche-grille { grid-template-columns: 1fr; } }

/* Conférences */
.conferences { background: var(--surface); border-block: 1px solid var(--ligne); }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.moment-photo, .galerie button, .photo-agrandir {
  display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in;
  overflow: hidden; border-radius: var(--rayon);
}
.moment-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.moment-photo:hover img, .moment-photo:focus-visible img,
.galerie button:hover img, .galerie button:focus-visible img,
.photo-agrandir:hover img, .photo-agrandir:focus-visible img { transform: scale(1.035); }
.moment-type { margin: 20px 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.moment h3 { font: 450 clamp(21px, 1.8vw, 25px)/1.25 var(--titre); letter-spacing: -.01em; }
.galerie-titre {
  margin: clamp(72px, 9vw, 120px) 0 28px; font: 700 12.5px/1.4 var(--corps); letter-spacing: .16em; text-transform: uppercase;
  color: var(--discret); display: flex; align-items: center; gap: 16px;
}
.galerie-titre::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.galerie { columns: 4 220px; column-gap: 16px; }
.galerie button { margin: 0 0 16px; break-inside: avoid; }
.galerie img { width: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .galerie { columns: 2; column-gap: 10px; } .galerie button { margin-bottom: 10px; } }

/* Visionneuse */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: rgba(6, 10, 20, .94); }
.visionneuse figure { margin: 0; padding: 72px 72px 24px; max-width: 100%; }
.visionneuse img { max-width: min(92vw, 1400px); max-height: calc(100vh - 150px); width: auto; margin: auto; border-radius: 4px; }
.visionneuse figcaption { color: #d6dbe6; text-align: center; font-size: 15px; margin: 14px 0 0; }
.visionneuse .fermer, .visionneuse .nav {
  position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.visionneuse .fermer:hover, .visionneuse .nav:hover { background: rgba(255, 255, 255, .25); }
.visionneuse .fermer { top: 16px; right: 16px; }
.visionneuse .nav { top: 50%; translate: 0 -50%; }
.visionneuse .prec { left: 16px; }
.visionneuse .suiv { right: 16px; }
.visionneuse :focus-visible { outline-color: #fff; }
@media (max-width: 640px) {
  .visionneuse figure { padding: 72px 12px 96px; }
  .visionneuse .nav { top: auto; bottom: 24px; translate: none; }
  .visionneuse .prec { left: calc(50% - 60px); }
  .visionneuse .suiv { right: calc(50% - 60px); }
}

/* À propos */
.apropos-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.apropos-photo { margin: 0; }
.photo-agrandir img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.apropos-lead { font: 400 clamp(22px, 2vw, 27px)/1.4 var(--titre); color: var(--encre); letter-spacing: -.01em; margin-bottom: 1.1em; }
.apropos-texte p:not(.surtitre):not(.apropos-lead) { max-width: 36em; }
.signature { font: italic 400 clamp(20px, 1.8vw, 24px)/1.4 var(--titre); color: var(--accent); margin: 1.4em 0 1.2em; }
.lien-linkedin { color: var(--encre); }
@media (max-width: 860px) {
  .apropos-grille { grid-template-columns: 1fr; }
  .photo-agrandir img { aspect-ratio: 4 / 3; }
}

/* ---------- Contact ---------- */
.contact { background: var(--bande); color: var(--bande-texte); position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; z-index: -1; width: 900px; aspect-ratio: 1; right: -300px; top: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 155, 255, .16), rgba(120, 155, 255, 0) 65%);
}
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact .surtitre { color: #a9c0ff; }
.contact h2 { color: #fff; }
.accroche { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; margin: 0 0 40px; max-width: 26em; }
.coordonnees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bande-ligne); }
.coordonnees li { border-bottom: 1px solid var(--bande-ligne); }
.coordonnees a {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0;
  color: #fff; text-decoration: none; overflow-wrap: anywhere; transition: color .2s;
}
.coordonnees a > span { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; }
.coord-type { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #93a3c4; margin-bottom: 2px; }
.coordonnees svg {
  flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; border: 1px solid var(--bande-ligne);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, border-color .2s;
}
.coordonnees svg.plein, .coordonnees svg path[d^="M6.6"] { fill: currentColor; stroke: none; }
.coordonnees a:hover svg, .coordonnees a:focus-visible svg { background: #fff; color: var(--bande); border-color: #fff; }
.contact :focus-visible { outline-color: #fff; }

.formulaire {
  position: relative; background: var(--surface); color: var(--texte);
  padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--rayon) + 4px); box-shadow: var(--ombre-forte);
}
.formulaire :focus-visible { outline-color: var(--accent); }
.formulaire-titre { font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--titre); letter-spacing: -.01em; margin-bottom: 6px; }
.formulaire-note { font-size: 14.5px; color: var(--discret); margin: 0 0 24px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { position: relative; }
.champ.large { grid-column: 1 / -1; }
.champ input, .champ textarea {
  width: 100%; font: 500 16px/1.4 var(--corps); color: var(--encre);
  background: var(--champ); border: 1px solid transparent; border-bottom: 1.5px solid var(--champ-ligne); border-radius: var(--rayon) var(--rayon) 0 0;
  padding: 26px 14px 8px; min-height: 58px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.champ textarea { min-height: 160px; resize: vertical; padding-bottom: 28px; }
.champ label {
  position: absolute; left: 15px; top: 18px; font-size: 16px; color: var(--discret); pointer-events: none;
  transform-origin: left top; transition: transform .18s ease, color .18s;
}
.champ label span { font-size: .85em; }
.champ input:hover, .champ textarea:hover { border-bottom-color: var(--encre); }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); background: color-mix(in srgb, var(--accent-doux) 55%, var(--champ)); }
.champ input:focus + label, .champ textarea:focus + label,
.champ input:not(:placeholder-shown) + label, .champ textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.76); color: var(--accent); font-weight: 700;
}
.champ .aide { display: none; margin: 6px 2px 0; font-size: 13.5px; color: var(--erreur); font-weight: 600; }
.champ .aide::before { content: "! "; font-weight: 800; }
.champ.invalide input, .champ.invalide textarea { border-bottom-color: var(--erreur); background: var(--erreur-fond); box-shadow: 0 1.5px 0 var(--erreur); }
.champ.invalide label { color: var(--erreur); }
.champ.invalide .aide { display: block; }
.champ.valide input:not(:placeholder-shown) { border-bottom-color: var(--succes); }
.compteur { position: absolute; right: 26px; bottom: 9px; font-size: 12px; color: var(--discret); }
.champ.invalide .compteur { bottom: 35px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zone-turnstile:not(:empty) { margin-top: 16px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.discret { margin: 0; font-size: 14px; color: var(--discret); }
.envoyer {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-left: auto;
  min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--sur-accent); font: 700 16px var(--corps); letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.envoyer:hover { background: var(--accent-fort); transform: translateY(-1px); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 35%, transparent); }
.fleche-envoi { width: 20px; height: 20px; transition: transform .25s; }
.envoyer:hover .fleche-envoi { transform: translateX(4px); }
.envoyer .rond { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sur-accent) 35%, transparent); border-top-color: var(--sur-accent); animation: tourner .8s linear infinite; }
.envoyer[aria-busy="true"] { pointer-events: none; opacity: .85; }
.envoyer[aria-busy="true"] .fleche-envoi { display: none; }
.envoyer[aria-busy="true"] .rond { display: inline-block; }
@keyframes tourner { to { transform: rotate(360deg); } }
.erreur { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--rayon); background: var(--erreur-fond); color: var(--erreur); font-size: 14.5px; font-weight: 600; border-left: 3px solid var(--erreur); }
.erreur a { color: inherit; }

.merci { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; outline: none; }
.formulaire.envoye > :not(.merci) { display: none; }
.merci-titre { font: 400 clamp(26px, 2.6vw, 34px)/1.2 var(--titre); letter-spacing: -.01em; color: var(--encre); margin: 20px 0 10px; }
.merci p { margin: 0 auto 28px; max-width: 360px; }
.coche { width: 76px; height: 76px; margin: 0 auto; display: block; }
.coche circle { fill: none; stroke: var(--succes); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: tracer .6s ease forwards; }
.coche path { fill: none; stroke: var(--succes); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracer .35s .5s ease forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
.encore { min-height: 44px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 10px 22px; font: 700 15px var(--corps); cursor: pointer; transition: background .2s, color .2s; }
.encore:hover { background: var(--accent); color: var(--sur-accent); }

@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .champs { grid-template-columns: 1fr; }
  .envoyer { width: 100%; }
  .formulaire { margin-inline: -4px; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--bande); color: var(--bande-texte); border-top: 1px solid var(--bande-ligne); padding: 32px 0; font-size: 15px; }
.pied-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.pied p { margin: 0; }
.pied-nom { font: 400 18px/1.3 var(--titre); color: #fff; }
.pied-nom span { display: block; font: 400 14px/1.5 var(--corps); color: #93a3c4; }
.pied-liens { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; }
.pied-liens a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: #fff; text-decoration: none; font-weight: 600; }
.pied-liens a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied :focus-visible { outline-color: #fff; }
.pied-copie { color: #93a3c4; font-size: 14px; }
@media (max-width: 720px) { .pied-ligne { flex-direction: column; align-items: flex-start; } .pied-liens { margin-left: -10px; } }

/* ---------- 404 ---------- */
.introuvable { padding: 140px 0; text-align: center; }
.introuvable h1 { font: 350 clamp(40px, 6vw, 72px)/1.05 var(--titre); letter-spacing: -.02em; margin-bottom: 20px; }
.introuvable a { color: var(--accent); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .apparait { opacity: 1; transform: none; }
  .coche circle, .coche path { stroke-dashoffset: 0; }
}

/* Photos un peu moins éblouissantes en sombre */
.sombre .ouverture-portrait img, .sombre .moment-photo img, .sombre .galerie img, .sombre .photo-agrandir img { filter: brightness(.9); }
