/* =========================================================
   ATELIER BALME — Feuille de style
   Palette :  bleu Klein #002FA7 · sable #D8C4A4 · crème #F5F2EB · encre #1F1F1F
   Polices :  Bebas Neue (titres) · Source Sans 3 (textes)
   L'arche est réservée au logo — le reste du site reste sobre.
   ========================================================= */

:root {
  --blue:  #002FA7;
  --blue-d:#00227a;
  --sand:  #D8C4A4;
  --sand-l:#e7dcc7;
  --cream: #F5F2EB;
  --cream-d:#ece7db;
  --ink:   #1F1F1F;
  --ink-soft: #33322f;
  --white: #ffffff;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Rayons harmonisés (remplacent les valeurs codées en dur 16px/10px/6px) */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Durées d'animation (désactivées globalement si prefers-reduced-motion) */
  --dur-fast: .18s;
  --dur-base: .25s;
  --dur-slow: .7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; width: 100%; height: 100%; }
a { color: inherit; }

/* ---------- Typographie ---------- */
.display, h1, h2, .h2 {
  font-family: "Bebas Neue", "Source Sans 3", sans-serif;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
}

h1, .display-xl {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}
h2, .h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  letter-spacing: 0.02em;
}
h3 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.lead {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
}

p + p { margin-top: 1rem; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }
.bg-beige { background: var(--cream-d); }
.bg-blue  { background: var(--blue); color: var(--cream); }
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue .eyebrow { color: var(--cream); }
.bg-blue .eyebrow { color: var(--sand); }
.bg-blue .lead { color: #eef1fb; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--blue);
  background: var(--blue);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn .arrow { transition: transform .18s ease; }

.btn.ghost { background: transparent; color: var(--blue); }

.bg-blue .btn { background: var(--cream); border-color: var(--cream); color: var(--blue); }

/* Bouton "Prendre rendez-vous" de l'en-tête : plus discret */
.nav-cta .btn, .menu-cta .btn { padding: 0.55rem 1.05rem; font-size: 0.9rem; }

.link-under {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--sand);
  padding-bottom: 2px;
  transition: border-color .18s ease;
}

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-d);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 96px;
}
.brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.brand-logo { width: auto; height: 45px; flex: none; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  padding-bottom: 4px; position: relative;
}
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--blue);
  transition: width .2s ease;
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a:focus-visible {
  outline: none;
  color: var(--ink);
}
.nav-links a:focus-visible::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }

.menu-cta { display: none; }
.menu-cta .btn { width: 100%; justify-content: center; color: var(--cream); }

/* Bouton burger : invisible tant que le JS n'est pas actif (il ne ferait rien).
   Voir plus bas : reaffiche uniquement en mobile ET quand html porte la classe "js". */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--ink);
  min-width: 44px; min-height: 44px; /* zone tactile confortable */
}
.burger svg { width: 100%; height: 100%; }

/* Neutralise l'attribut hidden en desktop : quel que soit l'etat pose par le JS,
   le menu reste toujours visible et utilisable au clavier au-dela de 900px. */
@media (min-width: 901px) {
  .nav-links[hidden] { display: flex !important; }
}

@media (max-width: 900px) {
  /* Logo centre et agrandi, hauteur d'en-tete inchangee */
  .nav { min-height: 76px; position: relative; justify-content: center; }
  .brand-logo { height: 44px; }

  /* Sans JS (fallback accessible) : le menu reste affiche en bloc sous l'en-tete,
     directement utilisable au clavier et par tous les lecteurs d'ecran. */
  .nav-links {
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: var(--cream); padding: 1.2rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--cream-d);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { font-size: 1.25rem; padding: 0.5rem 0; width: 100%; min-height: 44px; display: flex; align-items: center; }
  .nav-links li:last-child { margin-top: 0.6rem; }
  .header-cta-desktop { display: none; }
  .menu-cta { display: block; }

  /* Avec JS actif : le menu devient une superposition qui se deploie/masque,
     et le bouton burger apparait pour le piloter. */
  html.js .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--dur-base) ease, opacity var(--dur-base) ease, visibility 0s linear var(--dur-base);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.25);
  }
  html.js .nav-links:not([hidden]) {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform var(--dur-base) ease, opacity var(--dur-base) ease, visibility 0s linear 0s;
  }
  html.js .burger { display: inline-flex; }
  .burger { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; }
}

/* Le defilement de la page est bloque pendant que le menu mobile est ouvert */
body.menu-open { overflow: hidden; }

/* ---------- Photo pleine largeur ---------- */
.photo-band { width: 100%; overflow: hidden; }
.photo-band img { width: 100%; height: clamp(220px, 34vw, 480px); object-fit: cover; display: block; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--section-y); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin: 0.9rem 0 1.3rem; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Cadre en arche (signature) ---------- */
.arch {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.arch.tall { aspect-ratio: 3 / 4.4; }
.arch.tall.arch-outline { aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-outline {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--blue);
}

/* Placeholder image élégant (à remplacer par les vraies photos) */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.6rem; padding: 1.5rem;
  color: var(--blue);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--sand-l), var(--sand));
}
.ph .ph-icon { width: 40px; height: 40px; }
.ph small { font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); max-width: 24ch; }
.ph .ph-tag { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--blue); }

/* ---------- Grilles de contenu ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: -1; }

.stack > * + * { margin-top: 1rem; }
.mt-btn { margin-top: 1.8rem; }

/* Deux cartes "façons d'être accompagné" */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.duo.duo-asym { grid-template-columns: 0.45fr 1fr; }
@media (max-width: 820px) { .duo.duo-asym { grid-template-columns: 1fr; } }

/* Galerie de plusieurs photos dans une figure (ex. photos "avant" d'une pièce) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 2vw, 1rem); }
.photo-grid .arch { aspect-ratio: 4 / 5; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .photo-grid.cols-2 { grid-template-columns: 1fr; } }

/* Carrousel de photos défilant horizontalement (ex. photos "avant" d'une pièce) */
.photo-carousel { position: relative; }
.photo-carousel-track {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-track .arch {
  flex: 0 0 auto;
  width: min(300px, 72%);
  scroll-snap-align: start;
}
/* Variante pleine largeur : chaque photo occupe tout le cadre,
   comme une image seule (utile pour les paires "vue 1 / vue 2"). */
.photo-carousel.full-width .photo-carousel-track .arch {
  width: 100%;
}
.photo-carousel.full-width .photo-carousel-track {
  scroll-snap-type: x mandatory;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1.5px solid var(--blue);
  color: var(--blue); font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; padding: 0;
}
.carousel-btn.prev { left: -0.3rem; }
.carousel-btn.next { right: -0.3rem; }
@media (max-width: 680px) { .carousel-btn { display: none; } }

/* Image en alternance (ex. avant / après) dans un cadre .arch existant.
   Sans JavaScript, seule la 1re image (.cf-active) reste visible : le
   composant reste donc utilisable sans dégradation. */
.img-crossfade { position: relative; }
.img-crossfade .cf-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.img-crossfade .cf-img.cf-active { opacity: 1; }
.img-crossfade .cf-label {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--blue);
  font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35rem 0.7rem;
  border-radius: 999px; opacity: 0; transition: opacity 1.1s ease;
}
.img-crossfade .cf-label.cf-active { opacity: 1; }
/* Variante utilisée pour les shopping lists : un léger flou protège la
   lisibilité des références/prix tant qu'on ne clique pas pour agrandir. */
.img-crossfade .cf-img.cf-blur { filter: blur(3px); }
.img-crossfade .cf-img.cf-blur.cf-active { filter: blur(3px); }
.card {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card .eyebrow { margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.7rem; }
.card p { flex: 1; }
.card .btn, .card .link-under { margin-top: 1.3rem; align-self: flex-start; }
.card .btn { padding: 0.6rem 1.1rem; font-size: 0.92rem; }

/* Liste avec puces en arche */
.arch-list { list-style: none; padding: 0; margin-left: 1.6rem; display: grid; gap: 0.7rem; }
.arch-list li { position: relative; padding-left: 1.9rem; }
.arch-list li::before {
  content:""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--blue);
  border-radius: 50%;
}

/* Liste à coches (checklist "ce que je vous apporte") */
.check-list { list-style: none; padding: 0; margin-left: 1.6rem; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content:""; position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Grille de tarifs à 3 (forfaits par surface) */
.price-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.price-card {
  background: var(--white); border: 1px solid var(--cream-d);
  border-radius: var(--radius-sm); padding: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
}
.price-card .eyebrow { justify-content: center; margin-bottom: 0.9rem; }
.price-card .price { font-family: "Bebas Neue", sans-serif; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.3rem); color: var(--blue); line-height: 1; }
@media (max-width: 700px) { .price-trio { grid-template-columns: 1fr; } }

/* ---------- Offres / prestations ---------- */
.offer {
  border-top: 1px solid var(--cream-d);
  padding-block: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.offer:first-of-type { border-top: 0; }
.price,
.offer .price {
  font-family: "Bebas Neue", sans-serif; font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  color: var(--blue); line-height: 1; letter-spacing: 0.02em;
}
.price small,
.offer .price small { display:block; font-family:"Source Sans 3",sans-serif; font-weight:600; font-size:0.9rem; letter-spacing:0; color: var(--ink-soft); margin-top: 0.4rem; text-transform: none; }
.offer h3 { margin-bottom: 0.4rem; }
.offer .eyebrow { margin-bottom: 0.8rem; }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Bebas Neue", sans-serif; font-size: 1.3rem; color: var(--blue);
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); border: 1.5px solid var(--blue);
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.2rem; }

/* Note / encadré */
.note {
  background: var(--white);
  border-left: 3px solid var(--sand);
  padding: 1rem 1.3rem; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
}

/* ---------- Projets ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.project { text-decoration: none; color: inherit; display: block; }
.project .arch { aspect-ratio: 3 / 4; margin-bottom: 1.1rem; transition: transform .25s ease; }
.project .eyebrow { font-size: 0.72rem; }
.project h3 { margin: 0.5rem 0 0.3rem; }
.project p { font-size: 0.98rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 26ch; margin: 0.6rem auto 1rem; }
.cta-band .lead { max-width: 58ch; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field label span[aria-hidden] { color: var(--blue); }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--sand);
  border-radius: var(--radius-md); background: var(--white);
  transition: border-color .18s ease;
  width: 100%; max-width: 100%; min-width: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info dl { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.contact-info dt { font-weight: 600; color: var(--blue); letter-spacing: 0.02em; }
.contact-info dd { margin: 0.2rem 0 0; }
.contact-info a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--sand); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cream); color: var(--ink-soft); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--cream-d); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand-logo { height: 74px; }
.site-footer h4 { font-family:"Source Sans 3",sans-serif; font-weight:600; color: var(--ink); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
/* Titres de colonnes du pied de page : niveau H2 pour la hiérarchie du document,
   apparence strictement identique à l'ancien H4 (on neutralise le style H2 générique). */
.footer-h2 {
  font-family: "Source Sans 3", sans-serif; font-weight: 600;
  color: var(--ink); font-size: 0.9rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.9rem; line-height: 1.4;
}

/* Contenu réservé aux technologies d'assistance : invisible à l'écran,
   mais présent dans la hiérarchie du document et lu par les lecteurs d'écran. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-links.footer-contact li { display: flex; align-items: center; gap: 0.65rem; }
.footer-links.footer-contact .icon { width: 18px; height: 18px; flex: none; color: var(--blue); }
.footer-tag { max-width: 34ch; margin-top: 0.8rem; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--sand); margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 0; }
.footer-legal a { color: var(--ink-soft); text-decoration: none; }

/* ---------- Pages légales ---------- */
.legal-content h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.legal-content p { margin-bottom: 0.9rem; line-height: 1.65; }
.legal-content .note { margin-top: 2rem; }

/* Pages légales : équilibrer l'espace de part et d'autre du changement de
   fond (titre / contenu), au lieu d'un grand vide dans le bloc titre suivi
   d'aucune marge dans le bloc blanc. */
.legal-hero { padding-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.legal-content-section { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
/* Titres de section légale : niveau H2 pour la hiérarchie, mais apparence identique
   aux anciens H3 (on neutralise le style H2 générique en majuscules Bebas Neue). */
.legal-content h2.legal-h2 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600; text-transform: none; letter-spacing: normal;
  font-size: 1.05rem; line-height: 1.35; color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ---------- Divider en arche ---------- */
.arch-divider { display: flex; justify-content: center; padding-block: 0.5rem; }
.arch-divider svg { width: 30px; height: 38px; color: var(--sand); }

/* ---------- Réactions écran ---------- */
@media (max-width: 820px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .split.reverse .split-media { order: 0; }
  .duo { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; gap: 1rem; }
  .offer .price { margin-bottom: 0.4rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ---------- Animations discretes ---------- */
/* Filet de securite sans JavaScript : le contenu .reveal reste visible par defaut.
   L'etat opacity:0 (avant apparition) n'est active QUE si le script a pu s'executer
   (classe js posee sur html par un script inline place en tout debut de head).
   Ainsi, si le JS ne charge pas, rien ne reste invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

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

/* ---------- Lien d evitement (Aller au contenu) ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--blue); color: var(--cream);
  padding: 0.8rem 1.3rem; border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600; text-decoration: none; z-index: 999;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 0; }

/* =========================================================
   AJOUTS — sous-titres, étapes en texte, fiches projet
   ========================================================= */

/* Sous-titre de section : même écriture que « Un premier échange » */
.section-sub {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
}

/* Étapes rédigées comme du texte : titre en semi-bold, pas de pastille */
.steps-plain { display: grid; gap: 1.5rem; margin-top: 1.6rem; }
.steps-plain .step-item > p { margin-top: 0.35rem; }
.step-title {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

/* Aperçu d'un projet : titre au-dessus, image, texte court en dessous */
.project-preview { display: block; text-decoration: none; color: inherit; }
.project-preview .eyebrow { margin-bottom: 0.5rem; line-height: 1.35; }
.project-preview .preview-title {
  font-family: "Source Sans 3", sans-serif; font-weight: 600;
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.9rem;
}
.project-preview .frame-img {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--sand);
  aspect-ratio: 4 / 3; transition: transform .25s ease;
  margin-bottom: 1rem;
}
.project-preview .frame-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-preview .preview-text { font-size: 0.92rem; margin-top: 0.3rem; line-height: 1.55; }
.bg-blue .project-preview .preview-title { color: var(--cream); }
.bg-blue .project-preview .preview-text { color: #dfe4f6; }

/* ---------- Pages projet ---------- */
.project-hero { padding-top: clamp(2rem, 4vw, 3.2rem); padding-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.project-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--cream-d);
  font-size: 0.92rem;
}
.project-meta div { min-width: 130px; }
.project-meta dt { font-weight: 600; color: var(--blue); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.project-meta dd { margin: 0.25rem 0 0; }

.stage {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.9rem;
}
.stage::before { content:""; width: 20px; height: 2px; background: currentColor; }

figure.figure { margin: 0; }
figure.figure .frame-img {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--sand);
}
figure.figure img { width: 100%; height: auto; display: block; }
figure.figure figcaption {
  font-size: 0.86rem; color: #6f6c65; margin-top: 0.7rem; line-height: 1.5;
}
.figure-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); }
.figure-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }

.project-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--cream-d);
}

@media (max-width: 700px) {
  .figure-duo, .figure-trio { grid-template-columns: 1fr; }
}

/* =========================================================
   VERSION MOBILE — reglages complementaires
   (les titres en Bebas Neue gardent leur taille)
   ========================================================= */

@media (max-width: 820px) {
  /* --- Marges générales augmentées --- */
  :root {
    --gutter: 1.75rem;     /* 20px -> 28px */
    --section-y: 4.75rem;  /* 64px -> 76px */
  }

  /* --- Textes remontés à ~16px minimum (lisibilité mobile / accessibilité) --- */
  body                     { font-size: 1rem; }      /* 16px : taille de référence */
  .lead                    { font-size: 1.05rem; }   /* 16.8px : légèrement au-dessus du corps */
  h3, .section-sub         { font-size: 1.1rem; }
  .eyebrow                 { font-size: 0.78rem; }   /* 12.5px : label stylisé, reste lisible */
  .btn                     { font-size: 0.98rem; padding: 0.8rem 1.35rem; }
  .nav-cta .btn,
  .menu-cta .btn           { font-size: 0.92rem; padding: 0.7rem 1.2rem; }
  .card .btn               { font-size: 0.92rem; }
  .nav-links a             { font-size: 1.12rem; }   /* 18px */
  .step-title              { font-size: 1rem; }
  .note                    { font-size: 0.98rem; }
  .project p               { font-size: 1rem; }
  .preview-text            { font-size: 0.98rem; }
  .price small,
  .offer .price small      { font-size: 0.9rem; }
  .footer-tag,
  .footer-links,
  .footer-bottom           { font-size: 0.95rem; }
  figure.figure figcaption { font-size: 0.9rem; }
  .field label,
  .contact-info dt         { font-size: 0.95rem; }
  .project-meta            { font-size: 0.92rem; }
  /* h1, h2 et .price : Bebas Neue — tailles conservées (déjà bien au-dessus de 16px) */

  /* --- Plus d'air entre les éléments --- */
  .stack > * + * { margin-top: 1.05rem; }
  .split         { gap: 2.6rem; }
  .duo           { gap: 1.8rem; }
  .steps-plain   { gap: 2rem; }
  .offer         { gap: 1.6rem; }
  .card          { padding: 1.7rem; }

  /* --- Titres centrés en mobile (classe utilitaire) --- */
  .m-center { text-align: center; }

  /* --- Bloc tarif placé sous le chapô (page Particuliers) --- */
  .offer.price-after-lead { display: flex; flex-direction: column; gap: 0; }
  .offer.price-after-lead > .stack { display: contents; }
  .offer.price-after-lead h2   { order: 1; }
  .offer.price-after-lead .lead { order: 2; }
  .offer.price-after-lead > .offer-price { order: 3; margin: 1.6rem 0 0.5rem; }
  .offer.price-after-lead .stack > p:not(.lead) { order: 4; }
  .offer.price-after-lead .stack > a.btn { order: 5; margin-top: 0.5rem; }

  /* Le bloc tarif ne doit pas être centré horizontalement (align-items:center
     posé en style inline pour le rendu ordinateur) : sur mobile, tout revient
     aligné à gauche comme le reste du texte. */
  .offer.price-after-lead { align-items: flex-start !important; }

  /* --- Qui suis-je (Accueil) : la photo passe avant le texte sur mobile ---
     Spécificité alignée sur ".split.reverse .split-media" (3 classes) pour
     être sûr de l'emporter, cette règle étant déclarée après dans la feuille. */
  .split.mobile-photo-first .split-media { order: -1; }

  /* --- Projets : carrousel horizontal au lieu d'un empilement vertical
     (uniquement sur la page d'accueil, voir .carousel-mobile) --- */
  .projects-grid.carousel-mobile {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.4rem;
  }
  .projects-grid.carousel-mobile::-webkit-scrollbar { display: none; }
  .projects-grid.carousel-mobile .project {
    flex: 0 0 auto;
    width: 78%;
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  /* --- Boutons à la largeur de leur texte --- */
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: auto; justify-content: center; }
  .center .hero-cta, .cta-band .hero-cta { align-items: center; }
  .menu-cta .btn { width: auto; }

  /* --- Projets : carrousel resserré sur les très petits écrans (accueil) --- */
  .projects-grid.carousel-mobile { gap: 1rem; }
  .projects-grid.carousel-mobile .project { width: 82%; }
  .projects-grid.carousel-mobile .project .arch { margin-bottom: 1rem; }
}

/* =========================================================
   LIGHTBOX — agrandissement au clic pour les photos du site
   (sauf les photos pleine largeur .photo-band)
   ========================================================= */
[data-zoomable] { cursor: zoom-in; }
[data-zoomable]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(31, 31, 31, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  display: block;
}
.lightbox-caption {
  color: var(--cream); text-align: center; font-size: 0.92rem;
  max-width: 60ch; margin: 0.9rem auto 0; padding-inline: 1rem;
}
.lightbox-close {
  position: absolute; top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 50%; border: 1.5px solid rgba(245,242,235,.5);
  background: rgba(245,242,235,.08); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-fast) ease;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; min-width: 44px; min-height: 44px;
  border-radius: 50%; border: 1.5px solid rgba(245,242,235,.5);
  background: rgba(245,242,235,.08); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.3rem;
}
.lightbox-nav.prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox-nav.next { right: clamp(0.5rem, 3vw, 2rem); }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 640px) { .lightbox-nav { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: lightbox-fade .18s ease; }
}
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   ACCORDÉON — "voir la shopping list" (élément natif <details>)
   ========================================================= */
.reveal-list {
  margin-top: 1rem; border: 1px solid var(--cream-d); border-radius: var(--radius-md, 10px);
  overflow: hidden; background: var(--white);
}
.reveal-list summary {
  cursor: pointer; list-style: none; padding: 0.85rem 1.1rem;
  font-weight: 600; font-size: 0.92rem; color: var(--blue);
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  min-height: 44px;
}
.reveal-list summary::-webkit-details-marker { display: none; }
.reveal-list summary::after {
  content: "+"; font-size: 1.2rem; line-height: 1; color: var(--blue);
  transition: transform var(--dur-fast) ease; flex: none;
}
.reveal-list[open] summary::after { transform: rotate(45deg); }
.reveal-list summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.reveal-list .reveal-list-body { padding: 0 1.1rem 1.1rem; }

/* Proposition : planche + accordéon shopping list, regroupées visuellement */
.proposal-block { margin-bottom: 2rem; }
.proposal-block:last-child { margin-bottom: 0; }

/* =========================================================
   SURVOL (:hover) — regroupé et protégé par une media query.
   Sur un écran tactile (iOS notamment), un :hover peut rester
   visuellement "collé" après un tap tant qu'aucun autre élément
   ne reçoit l'interaction. En le limitant aux dispositifs à
   pointeur précis (souris), ce comportement disparaît.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--white); color: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,47,167,.25); }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn.ghost:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }
  .bg-blue .btn:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
  .link-under:hover { border-color: var(--blue); }
  .nav-links a:hover::after { width: 100%; }
  .menu-cta .btn:hover { color: var(--blue); }
  .carousel-btn:hover { background: var(--blue); color: var(--cream); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(0,0,0,.35); }
  .project:hover .arch { transform: translateY(-6px); }
  .contact-info a:hover { border-color: var(--blue); }
  .site-footer a:hover { color: var(--blue); }
  .footer-legal a:hover { color: var(--blue); }
  .project-preview:hover .frame-img { transform: translateY(-5px); }
  .lightbox-close:hover { background: rgba(245,242,235,.18); }
  .lightbox-nav:hover { background: rgba(245,242,235,.18); }
}
