/* ==========================================================================
   Dupouy Médiation — Biarritz
   Feuille de style principale
   Palette et typographie dérivées du logo historique (lettrine serif,
   coup de pinceau terracotta, jambage bordeaux).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Encres — ratios de contraste vérifiés sur --papier et --papier-ombre */
  --encre:          #26241F;
  --encre-80:       #45413A;   /* corps de texte      — 9.6:1 */
  --encre-60:       #6B665C;   /* mentions, légendes  — 5.4:1 */
  --encre-40:       #6F6A60;   /* fil d'Ariane        — 5.0:1 */

  /* Papiers */
  --papier:         #FBF8F3;
  --papier-pur:     #FFFFFF;
  --papier-ombre:   #F4EFE6;
  --papier-sable:   #EFE8DC;

  /* Accents.
     Le terracotta vif ne passe pas le seuil de contraste (3.6:1) : il est
     réservé aux éléments décoratifs — filets, puces, soulignements. Dès qu'il
     porte du texte, ou sert de fond à du texte, c'est --terracotta-texte. */
  --terracotta:        #E0602B;   /* décoratif uniquement */
  --terracotta-texte:  #B8481A;   /* texte et fonds de bouton — 4.6:1 mini */
  --terracotta-sombre: #A63F14;   /* survols */
  --bordeaux:          #8A2B1B;   /* liens — 8.1:1 */

  /* Traits */
  --filet:          #E2DACD;
  --filet-fort:     #CFC5B4;

  /* Typographie */
  --serif:  "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --caps:   "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --page:      1200px;
  --texte:     68ch;
  --gouttiere: clamp(1.25rem, 5vw, 3.5rem);
  --section:   clamp(4.5rem, 10vw, 9rem);

  /* Mouvement */
  --transition: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------- 2. Fondations */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre-80);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--terracotta); color: #fff; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------- 3. Typographie */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--encre);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.014em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.28; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.35em; max-width: var(--texte); }
p:last-child { margin-bottom: 0; }

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--terracotta-texte); }

strong { font-weight: 600; color: var(--encre); }

blockquote {
  margin: 2.5rem 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--encre);
}
blockquote p { max-width: 46ch; }
blockquote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-60);
}

/* Surtitre en capitales espacées — signature typographique du logo */
.surtitre {
  display: block;
  font-family: var(--caps);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta-texte);
  margin: 0 0 1.4rem;
}
.surtitre--clair { color: #E0AE93; }

.chapo {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.48;
  font-weight: 300;
  color: var(--encre);
  max-width: 44ch;
}

.mention { font-size: 0.875rem; color: var(--encre-60); line-height: 1.6; }
/* Variante pour les sections sombres : 5.7:1 sur --encre. */
.mention--clair { color: #A39C90; }

/* --------------------------------------------------------------- 4. Trames */

.enveloppe {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.enveloppe--etroite { max-width: 820px; }

.section { padding-block: var(--section); }
.section--serree { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sable { background: var(--papier-ombre); }
.section--encre { background: var(--encre); color: #CFC8BC; }
.section--encre h2, .section--encre h3 { color: var(--papier); }
.section--encre a { color: #E9A382; }

.duo {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo--asym { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .duo--asym-inv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.grille { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 640px)  { .grille--2, .grille--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grille--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grille--4 { grid-template-columns: repeat(4, 1fr); } }

.colle-haut { position: sticky; top: 7rem; }
@media (max-width: 899px) { .colle-haut { position: static; } }

/* Filet orné d'un fragment terracotta : rappel du coup de pinceau */
.filet {
  border: 0;
  height: 1px;
  background: var(--filet);
  margin: 0;
  position: relative;
}
.filet::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  width: 56px;
  height: 3px;
  background: var(--terracotta);
}

/* --------------------------------------------------------------- 5. En-tête */

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 0.85rem 1.4rem;
  z-index: 200;
}
.saut-contenu:focus { left: 0.75rem; top: 0.75rem; }

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.entete[data-defile="oui"] { border-bottom-color: var(--filet); }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.marque { display: inline-flex; align-items: center; flex-shrink: 0; }
.marque img { width: clamp(168px, 20vw, 218px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav__liens {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* `:not(.bouton)` est indispensable : sans lui, cette règle l'emporterait sur
   .bouton--plein et le bouton « Prendre contact » deviendrait illisible. */
.nav__liens a:not(.bouton) {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--encre-80);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav__liens a:not(.bouton)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__liens a:not(.bouton):hover { color: var(--encre); }
.nav__liens a:not(.bouton):hover::after,
.nav__liens a:not(.bouton)[aria-current="page"]::after { transform: scaleX(1); }
.nav__liens a:not(.bouton)[aria-current="page"] { color: var(--encre); }

@media (max-width: 1023px) {
  .nav__liens { display: none; }
  .nav__liens[data-ouvert="oui"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: 5.25rem 0 auto;
    background: var(--papier);
    border-block: 1px solid var(--filet);
    padding: 0.5rem var(--gouttiere) 1.75rem;
    max-height: calc(100dvh - 5.25rem);
    overflow-y: auto;
  }
  .nav__liens[data-ouvert="oui"] li { border-bottom: 1px solid var(--filet); }
  .nav__liens[data-ouvert="oui"] li:last-child { border-bottom: 0; padding-top: 1.25rem; }
  .nav__liens[data-ouvert="oui"] a:not(.bouton) { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav__liens[data-ouvert="oui"] a::after { display: none; }
  .nav__liens[data-ouvert="oui"] .bouton { display: flex; width: 100%; padding-block: 1rem; }
}

.bascule {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  cursor: pointer;
}
@media (max-width: 1023px) { .bascule { display: inline-flex; } }

.bascule__trait { display: block; width: 18px; height: 9px; position: relative; }
.bascule__trait::before,
.bascule__trait::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--encre);
  transition: transform var(--transition);
}
.bascule__trait::before { top: 0; }
.bascule__trait::after  { bottom: 0; }
.bascule[aria-expanded="true"] .bascule__trait::before { transform: translateY(3.75px) rotate(45deg); }
.bascule[aria-expanded="true"] .bascule__trait::after  { transform: translateY(-3.75px) rotate(-45deg); }

/* --------------------------------------------------------------- 6. Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); }

.bouton--plein {
  background: var(--encre);
  color: var(--papier);
  border-color: var(--encre);
}
.bouton--plein:hover { background: var(--terracotta-sombre); border-color: var(--terracotta-sombre); color: #fff; }

.bouton--accent {
  background: var(--terracotta-texte);
  color: #fff;
  border-color: var(--terracotta-texte);
}
.bouton--accent:hover { background: var(--terracotta-sombre); border-color: var(--terracotta-sombre); color: #fff; }

.bouton--ligne {
  background: transparent;
  color: var(--encre);
  border-color: var(--filet-fort);
}
.bouton--ligne:hover { border-color: var(--encre); background: var(--encre); color: var(--papier); }

.bouton--clair {
  background: transparent;
  color: var(--papier);
  border-color: rgba(251, 248, 243, 0.35);
}
.bouton--clair:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }

.bouton--compact { padding: 0.7rem 1.25rem; font-size: 0.78rem; }

.boutons { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Lien fléché */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bordeaux);
  text-decoration: none;
}
.lien-fleche::after {
  content: "→";
  transition: transform var(--transition);
}
.lien-fleche:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ 7. Hero */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
/* Le titre d'accueil est calibré pour laisser les appels à l'action visibles
   sans défilement sur un portable comme sur un écran large. */
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 3.85rem); }
.hero::after {
  content: "";
  position: absolute;
  right: max(-14rem, -18vw);
  top: -6rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(224, 96, 43, 0.09), rgba(224, 96, 43, 0) 62%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 0; }
.hero__accroche { display: block; }
.hero__accent {
  display: inline-block;
  position: relative;
  font-style: italic;
  color: var(--encre);
}
/* Coup de pinceau sous le mot-clé — reprise du geste du logo */
.hero__accent::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--terracotta);
  opacity: 0.28;
  transform: rotate(-0.6deg);
  z-index: -1;
}

.hero__texte { margin-top: 2rem; }
.hero__actions { margin-top: 2.75rem; }

.hero__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.75rem, 4vw, 3.25rem);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--filet);
  list-style: none;
  padding-inline: 0;
}
.hero__preuves li {
  padding-block: 0.5rem;
  font-size: 0.9rem;
  color: var(--encre-60);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.hero__preuves li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--terracotta);
  transform: translateY(-2px);
}

/* Carte d'appel latérale du hero */
.hero__carte {
  background: var(--papier-pur);
  border: 1px solid var(--filet);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(38, 36, 31, 0.03), 0 12px 40px -18px rgba(38, 36, 31, 0.18);
}
.hero__carte h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------ 8. Blocs */

.carte {
  position: relative;
  background: var(--papier-pur);
  border: 1px solid var(--filet);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.carte h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.carte p { font-size: 0.975rem; }
.carte--lien:hover {
  border-color: var(--filet-fort);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -26px rgba(38, 36, 31, 0.35);
}
/* La carte entière devient cliquable, sans souligner le titre au repos. */
.carte--lien h3 a {
  color: var(--encre);
  text-decoration: none;
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--transition), color var(--transition);
}
.carte--lien:hover h3 a { color: var(--bordeaux); background-size: 100% 1px; }
.carte--lien a::before { content: ""; position: absolute; inset: 0; }

.carte__numero {
  display: block;
  font-family: var(--caps);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--terracotta-texte);
  margin-bottom: 1.1rem;
}

/* Liste d'atouts / de cas */
.liste-marquee { list-style: none; margin: 0; padding: 0; }
.liste-marquee > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--filet);
}
.liste-marquee > li:first-child { padding-top: 0; }
.liste-marquee > li:last-child { border-bottom: 0; }
.liste-marquee > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 18px;
  height: 2px;
  background: var(--terracotta);
}
.liste-marquee > li:first-child::before { top: 0.65rem; }
/* Zone cliquable d'au moins 24 px de haut sur les liens de liste (WCAG 2.5.8). */
.liste-marquee > li > a { display: inline-block; padding-block: 0.2rem; }

/* Étapes numérotées du processus */
.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.etapes > li {
  counter-increment: etape;
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem) 0 clamp(1.6rem, 3vw, 2.2rem) clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--filet);
}
.etapes > li:last-child { border-bottom: 1px solid var(--filet); }
.etapes > li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--caps);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--terracotta);
  letter-spacing: 0.04em;
}
.etapes h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.4rem; }
.etapes p { font-size: 0.975rem; }

/* Chiffres-clés */
.reperes { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 640px) { .reperes { grid-template-columns: repeat(3, 1fr); } }
.repere__valeur {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--encre);
  margin-bottom: 0.6rem;
}
.section--encre .repere__valeur { color: var(--papier); }
.repere__libelle { font-size: 0.9rem; color: var(--encre-60); max-width: 26ch; }
.section--encre .repere__libelle { color: #A9A296; }

/* Portrait */
.portrait {
  position: relative;
  /* La photographie source ne fait que 140 px de large : au-delà de 150 px
     d'affichage, l'agrandissement devient visible. À relever le jour où une
     photo professionnelle sera fournie. */
  max-width: 150px;
}
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 2px;
  filter: grayscale(0.15) contrast(1.02);
}
/* Cadre décalé en terracotta : rappel du geste du logo, dépasse en bas à droite. */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 1px solid var(--terracotta);
  z-index: 0;
}
.portrait__legende {
  margin-top: 1.6rem;
  font-family: var(--caps);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--encre-60);
  line-height: 1.9;
}
.portrait__legende strong { display: block; color: var(--encre); letter-spacing: 0.14em; }

/* Fil d'Ariane */
.ariane { padding-block: 1.5rem 0; }
.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--encre-40);
}
.ariane li + li::before { content: "/"; margin-right: 0.5rem; color: var(--filet-fort); }
.ariane a { color: var(--encre-60); text-decoration: none; }
.ariane a:hover { color: var(--terracotta-texte); text-decoration: underline; }

/* Accordéon FAQ */
.faq { border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--encre);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--terracotta);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--bordeaux); }
.faq__reponse { padding-bottom: 1.75rem; }
.faq__reponse p { font-size: 0.985rem; }

/* Bandeau d'appel à l'action */
.appel {
  background: var(--encre);
  color: #CFC8BC;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.appel::before {
  content: "";
  position: absolute;
  left: -8rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 96, 43, 0.16), rgba(224, 96, 43, 0) 65%);
}
.appel > * { position: relative; }
.appel h2 { color: var(--papier); }
.appel p { color: #A9A296; }

/* ----------------------------------------------------------- 9. Formulaire */

.formulaire { display: grid; gap: 1.35rem; }
@media (min-width: 640px) {
  .formulaire { grid-template-columns: 1fr 1fr; }
  .champ--large { grid-column: 1 / -1; }
}

.champ { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.champ label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-80);
}
.champ label .requis { color: var(--terracotta-texte); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--papier-pur);
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--encre);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 10rem; resize: vertical; line-height: 1.65; }
.champ select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B665C' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding-right: 2.5rem;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(224, 96, 43, 0.14);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--encre-40); }
.champ[data-erreur="oui"] input,
.champ[data-erreur="oui"] select,
.champ[data-erreur="oui"] textarea { border-color: var(--bordeaux); }

.champ__erreur { font-size: 0.82rem; color: var(--bordeaux); min-height: 0; }
.champ__aide { font-size: 0.82rem; color: var(--encre-60); }

.consentement {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--encre-60);
}
.consentement input {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  accent-color: var(--terracotta-texte);
}

/* Pot de miel : invisible pour l'humain, tentant pour le robot */
.pot-de-miel {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.formulaire__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }

.formulaire__etat {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--terracotta);
  background: var(--papier-ombre);
  font-size: 0.925rem;
}
.formulaire__etat[hidden] { display: none; }
.formulaire__etat[data-ton="succes"] { border-left-color: #4A7A52; }
.formulaire__etat[data-ton="erreur"] { border-left-color: var(--bordeaux); }

button[data-etat="envoi"] { opacity: 0.6; pointer-events: none; }

/* Coordonnées */
.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.coordonnees dt, .coordonnees__cle {
  font-family: var(--caps);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-texte);
  margin-bottom: 0.4rem;
}
.coordonnees dd, .coordonnees__valeur {
  margin: 0;
  font-size: 1.05rem;
  color: var(--encre);
  line-height: 1.6;
}
.coordonnees a {
  display: inline-block;
  padding-block: 0.15rem;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--filet-fort);
}
.coordonnees a:hover { color: var(--terracotta-texte); border-bottom-color: var(--terracotta); }

.carte-plan {
  border: 1px solid var(--filet);
  filter: grayscale(0.35) contrast(1.05);
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* ------------------------------------------------------------ 10. Pied de page */

.pied {
  background: var(--encre);
  color: #A39C90;
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  font-size: 0.9rem;
}
.pied__grille { display: grid; gap: 2.75rem; }
@media (min-width: 760px)  { .pied__grille { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .pied__grille { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.pied img { width: 200px; height: auto; margin-bottom: 1.5rem; }
.pied h2, .pied h3 {
  font-family: var(--caps);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--papier);
  margin-bottom: 1.35rem;
}
.pied p { color: #A39C90; max-width: 34ch; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
/* Zone cliquable d'au moins 24 px de haut (WCAG 2.5.8). */
.pied li > a { display: inline-block; padding-block: 0.3rem; }
.pied a { color: #C6BFB3; text-decoration: none; }
.pied a:hover { color: #F0834F; }

.pied__bas {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #A39C90;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* ------------------------------------------------------- 11. Utilitaires */

.centre { text-align: center; margin-inline: auto; }
.centre p, .centre .chapo { margin-inline: auto; }
.pile > * + * { margin-top: var(--pile, 1.25rem); }
.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;
}

/* Apparition douce au défilement.
   Conditionnée à la classe `js` posée par un script en ligne : sans JavaScript,
   le contenu reste visible — jamais de page blanche. */
.js [data-anime] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js [data-anime="vu"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-anime] { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- 12. Impression */

@media print {
  .entete, .bascule, .appel, .pied__bas, .formulaire { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
