/* ============================================================
   POLICE DES TITRES  —  Potatoes and Peas (fichier local)
   ============================================================ */
@font-face {
  font-family: "Potatoes and Peas";
  src: url("fonts/PotatoesAndPeas.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   PALETTE & BASES  —  blanc aéré, titres déco, corps machine à écrire
   ============================================================ */
:root {
  --bg:        #fbfaf5;
  --bg-soft:   #f5f4ec;
  --paper:     #ffffff;
  --ink:       #3f3a33;
  --ink-soft:  #726a5e;
  --muted:     #9a9183;
  --accent:    #6f9387;   /* vert d'eau doux — liens / survols */
  --accent-deep:#5a7c71;
  --cta:       #423d35;   /* boutons : encre profonde, comme ton ancien site */
  --cta-hover: #5b5446;
  --line:      rgba(63, 58, 51, 0.12);
  --shadow:    0 22px 45px -28px rgba(63, 58, 51, 0.45);
  --radius:    14px;
  --hand: "Potatoes and Peas", "Caveat", cursive;          /* titres décoratifs */
  --sans: "Special Elite", "Courier New", Courier, monospace; /* corps : machine à écrire */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 0.97rem; /* Special Elite est large : on compense légèrement */
  overflow-x: hidden;
}

/* Grain papier très léger */
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 { font-family: var(--hand); font-weight: normal; line-height: 1.05; }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.2; }
img { max-width: 100%; display: block; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-primary {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 700;
  color: #fff; background: var(--cta);
  border: none; border-radius: 999px;
  padding: 0.85em 1.9em; cursor: pointer; letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px -14px rgba(66, 61, 53, 0.8);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.7em 1.6em; cursor: pointer; transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   EN-TÊTE  —  blanc clair, minimal
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1.2rem, 4vw, 3.2rem);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: 0.32em;
  padding-left: 0.32em; /* compense le letter-spacing */
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  position: relative; padding-bottom: 3px; transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width 0.25s ease;
}
.nav a:hover { color: var(--accent-deep); }
.nav a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  color: #fff; background: var(--cta);
  border: none; border-radius: 999px; padding: 0.55em 1.3em; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }

/* Menu burger (mobile) */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; background: none; border: none; cursor: pointer;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HÉRO  —  aquarelle pleine largeur, slogan manuscrit
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem clamp(1.5rem, 6vw, 4rem) 5rem;
  background:
    radial-gradient(38% 34% at 16% 24%, rgba(168, 198, 158, 0.50), transparent 70%),
    radial-gradient(42% 38% at 84% 16%, rgba(150, 184, 194, 0.45), transparent 72%),
    radial-gradient(55% 48% at 72% 90%, rgba(126, 158, 120, 0.45), transparent 70%),
    radial-gradient(40% 40% at 26% 84%, rgba(200, 208, 172, 0.45), transparent 72%),
    linear-gradient(180deg, #f8f8f1 0%, #eef2e6 100%);
  background-size: cover; background-position: center;
}
.hero.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.38);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; animation: rise 1s ease both; }
.hero-title {
  font-family: var(--hand); font-weight: normal;
  font-size: clamp(2.9rem, 9vw, 6.2rem); color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
}
.hero-subtitle {
  font-size: clamp(0.92rem, 2.4vw, 1.1rem); color: var(--ink-soft);
  letter-spacing: 0.28em; margin-top: 0.6rem;
}
.hero-intro {
  font-size: 1.05rem; color: var(--ink-soft); max-width: 560px;
  margin: 1.6rem auto 0; line-height: 1.8;
}
.hero-inner .btn-primary { margin-top: 2.4rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  z-index: 2; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(63, 58, 51, 0.4); border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 1.4rem; line-height: 1;
  background: rgba(255, 255, 255, 0.35); transition: all 0.25s ease;
}
.hero-scroll:hover { background: #fff; transform: translateX(-50%) translateY(3px); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Encadré promotionnel (héro) */
.promo-box { margin: 3.5rem auto 0; max-width: 560px; }
.promo-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(4px);
  border: 1.5px solid var(--accent); border-radius: 16px;
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow); text-align: center;
}
.promo-close {
  position: absolute; top: 0.4rem; right: 0.65rem;
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; opacity: 0.55; padding: 0.1em 0.25em;
}
.promo-close:hover { opacity: 1; }
.promo-reopen {
  background: rgba(255, 255, 255, 0.7); border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--accent-deep); font-family: var(--sans); font-weight: 700; font-size: 0.85rem;
  padding: 0.5em 1.2em; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.promo-reopen:hover { background: #fff; transform: translateY(-1px); }
.promo-label {
  display: inline-block; background: var(--accent-deep); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0.3em 0.85em; border-radius: 999px; margin-bottom: 0.9rem;
}
.promo-text { color: var(--ink); font-size: 0.96rem; line-height: 1.65; text-align: center; }
.promo-counter {
  display: flex; align-items: baseline; justify-content: center; gap: 0.5rem;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line);
}
.promo-count-num { font-family: var(--hand); font-size: 2.6rem; line-height: 1; color: var(--accent-deep); }
.promo-count-label { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   TITRES DE SECTION
   ============================================================ */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2,
.about-inner h2 { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--ink); }
.section-head h2::after,
.about-inner h2::after {
  content: ""; display: block; width: 60px; height: 2px;
  background: var(--accent); margin: 0.6rem auto 0; border-radius: 2px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.7rem; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-section { position: relative; z-index: 2; padding: 5rem clamp(1.2rem, 5vw, 4rem); }
.gallery-grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  max-width: 1120px; margin: 0 auto;
}
.art-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(63, 58, 51, 0.06);
}
.art-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -26px rgba(63, 58, 51, 0.5); }
.art-card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.art-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.art-card:hover .art-card-media img { transform: scale(1.05); }

.art-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 0.6rem;
  color: var(--muted); padding: 1.5rem;
  background: repeating-linear-gradient(45deg, #f3f1e8 0 14px, #edebe1 14px 28px);
}
.art-placeholder svg { width: 44px; height: 44px; opacity: 0.7; }
.art-placeholder span { font-family: var(--hand); font-size: 1.5rem; }
.art-placeholder small { font-size: 0.78rem; opacity: 0.85; }

.art-card-body { padding: 1rem 1.3rem 1.4rem; }
.art-card-body h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.15rem; }
.art-card-body .tech { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); font-weight: 700; }
.art-card-body p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ============================================================
   À PROPOS / BIO
   ============================================================ */
.about-section {
  position: relative; z-index: 2;
  padding: 5rem clamp(1.5rem, 6vw, 4rem);
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about-inner h2 { margin-bottom: 2rem; }
.about-inner h2::after { margin-bottom: 0; }
.about-text p {
  font-size: 1.1rem; line-height: 1.9; color: var(--ink-soft);
  margin-bottom: 1.3rem; text-align: center;
}
.about-quote {
  font-family: var(--hand); font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--accent-deep); line-height: 1.35; margin: 2.4rem auto 2rem; max-width: 580px;
  border: none;
}
.about-quote::before {
  content: ""; display: block; width: 36px; height: 1px;
  background: var(--muted); margin: 0 auto 1.4rem;
}

/* ============================================================
   TARIFS
   ============================================================ */
.pricing-section { position: relative; z-index: 2; padding: 5rem clamp(1.2rem, 5vw, 4rem); }
.pricing-grid {
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  max-width: 920px; margin: 0 auto;
}
.price-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: var(--shadow); border: 1px solid rgba(63, 58, 51, 0.06);
  display: flex; flex-direction: column;
}
.price-card .price-icon { font-size: 1.7rem; line-height: 1; margin-bottom: 0.6rem; }
.price-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 1.1rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .fmt { color: var(--ink-soft); font-size: 0.95rem; }
.price-row .amt { color: var(--ink); font-weight: 700; white-space: nowrap; font-size: 0.95rem; }
.price-card .price-note { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.pricing-mention { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 2.4rem auto 0; max-width: 620px; }

/* Livraison (bas de la page Tarifs) */
.livraison { max-width: 620px; margin: 3.5rem auto 0; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.livraison h3 { font-family: var(--hand); font-weight: normal; font-size: clamp(2rem, 5vw, 2.6rem); color: var(--ink); text-align: center; margin-bottom: 1rem; }
.livraison h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); font-weight: 700; margin: 1.6rem 0 0.5rem; }
.livraison-intro { color: var(--ink-soft); line-height: 1.8; text-align: center; }
.livraison-frais { margin-bottom: 0.4rem; }
.livraison-note { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; margin-top: 1.2rem; text-align: center; }
.livraison-cta { text-align: center; margin-top: 1.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { position: relative; z-index: 2; padding: 5rem clamp(1.2rem, 5vw, 4rem); }
.contact-form {
  max-width: 620px; margin: 0 auto; background: var(--paper);
  border: 1px solid rgba(63, 58, 51, 0.06); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem clamp(1.4rem, 3vw, 2.4rem);
}
.cf-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.cf-row .cf-input { flex: 1; }
.cf-input, .cf-textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0.85em 1em;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.cf-input:focus, .cf-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 147, 135, 0.18); }
.cf-textarea { min-height: 140px; resize: vertical; line-height: 1.6; margin-bottom: 0.4rem; }
.cf-error { color: #b4503c; font-size: 0.9rem; min-height: 1.1em; margin-bottom: 0.6rem; }
.cf-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cf-success { font-family: var(--hand); color: var(--accent-deep); font-size: 1.5rem; }
@media (max-width: 520px) { .cf-row { flex-direction: column; } }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
  position: relative; z-index: 2; text-align: center;
  padding: 4rem 1.5rem 5rem; border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-footer p:first-child { font-family: var(--sans); font-weight: 700; letter-spacing: 0.3em; padding-left: 0.3em; font-size: 1.4rem; color: var(--ink); }
.footer-small { color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 1.6rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: center; margin-top: 2.2rem; }
.footer-link { background: none; border: none; color: var(--ink-soft); font-family: var(--sans); font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.footer-link:hover { color: var(--accent-deep); }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin-top: 1.2rem; }
.footer-insta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: fit-content; margin: 1.6rem auto 0; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-insta:hover { color: var(--accent-deep); }
.footer-insta svg { width: 20px; height: 20px; }

/* ============================================================
   FENÊTRE LÉGALE
   ============================================================ */
.legal-overlay {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; padding: clamp(0.8rem, 3vw, 2rem);
  background: rgba(40, 37, 31, 0.55); backdrop-filter: blur(6px);
}
.legal-overlay.open { display: flex; animation: fade 0.3s ease; }
.legal-panel {
  position: relative; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  background: var(--paper); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.4);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.legal-close { position: absolute; top: 1rem; right: 1.3rem; font-size: 2rem; line-height: 1; background: none; border: none; color: var(--ink-soft); cursor: pointer; }
.legal-close:hover { color: var(--ink); }
.legal-panel h2 { font-family: var(--hand); font-weight: normal; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--ink); text-align: center; margin-bottom: 1.2rem; }
.legal-body h3 { font-size: 0.9rem; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.08em; margin: 1.5rem 0 0.4rem; }
.legal-body p { color: var(--ink-soft); line-height: 1.75; font-size: 0.96rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 40; display: none;
  justify-content: center; overflow-y: auto; padding: 4vw;
  background: rgba(40, 37, 31, 0.82); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: fade 0.3s ease; }
.lightbox-figure { max-width: 720px; text-align: center; margin: auto 0; }
.lightbox-figure img { max-height: 66vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.lightbox-figure figcaption { margin-top: 1.1rem; color: #f6f3ec; }
.lb-title { display: block; font-family: var(--hand); font-size: 1.9rem; line-height: 1.1; }
.lb-desc { display: block; font-family: var(--sans); font-size: 0.95rem; line-height: 1.6; max-width: 520px; margin: 0.7rem auto 0; color: #e7e1d4; }

/* Zone "print" dans le zoom */
.lightbox-print { margin-top: 1.1rem; text-align: center; }
.lb-print-info { color: #e7e1d4; font-size: 0.9rem; margin-bottom: 0.7rem; }
.lb-print-btn { background: #f6f3ec; color: var(--ink); font-size: 0.9rem; padding: 0.7em 1.5em; box-shadow: none; }
.lb-print-btn:hover { background: #fff; }

/* ============================================================
   COMMANDE DE PRINT
   ============================================================ */
.print-overlay {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: clamp(0.8rem, 3vw, 2rem);
  background: rgba(40, 37, 31, 0.55); backdrop-filter: blur(6px);
}
.print-overlay.open { display: flex; animation: fade 0.3s ease; }
.print-panel {
  position: relative; width: 100%; max-width: 540px; max-height: 94vh; overflow-y: auto;
  background: var(--paper); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  animation: panelUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.print-close { position: absolute; top: 1rem; right: 1.3rem; font-size: 2rem; line-height: 1; background: none; border: none; color: var(--ink-soft); cursor: pointer; }
.print-close:hover { color: var(--ink); }
.print-panel h2 { font-family: var(--hand); font-weight: normal; font-size: clamp(1.9rem, 5vw, 2.4rem); color: var(--ink); }
.pf-oeuvre { font-family: var(--hand); font-size: 1.4rem; color: var(--accent-deep); margin-bottom: 1.2rem; }
.pf-field { margin-bottom: 1rem; }
.pf-field > label, .pf-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--ink); }
.pf-input, .pf-textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7em 0.9em; }
.pf-input:focus, .pf-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 147, 135, 0.18); }
.pf-textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.pf-row { display: flex; gap: 1rem; }
.pf-row > .pf-field:first-child { flex: 0 0 100px; }
.pf-row > .pf-grow { flex: 1; }
.pf-formats { display: flex; gap: 0.7rem; }
.pf-format { flex: 1; cursor: pointer; }
.pf-format input { display: none; }
.pf-format span { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; border: 1.5px solid var(--line); border-radius: 12px; padding: 0.7em; font-weight: 700; transition: all 0.18s ease; }
.pf-format span small { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }
.pf-format:hover span { border-color: var(--accent); }
.pf-format input:checked + span { border-color: var(--accent-deep); background: #eef3f0; }
.pf-note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0.4rem 0 0.9rem; }
.pf-error { color: #b4503c; font-size: 0.88rem; min-height: 1.1em; margin-bottom: 0.5rem; }
.print-panel form .btn-primary { width: 100%; }
.pf-done { text-align: center; padding: 1rem 0; }
.pf-done h2 { margin-bottom: 0.6rem; }
.pf-done p { color: var(--ink-soft); font-size: 1rem; max-width: 400px; margin: 0 auto; }

/* Barres de défilement discrètes dans les fenêtres (modales) */
.print-panel, .legal-panel, .quiz-panel, .quiz-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 58, 51, 0.28) transparent;
}
.print-panel::-webkit-scrollbar,
.legal-panel::-webkit-scrollbar,
.quiz-panel::-webkit-scrollbar,
.quiz-body::-webkit-scrollbar { width: 8px; }
.print-panel::-webkit-scrollbar-thumb,
.legal-panel::-webkit-scrollbar-thumb,
.quiz-panel::-webkit-scrollbar-thumb,
.quiz-body::-webkit-scrollbar-thumb { background: rgba(63, 58, 51, 0.22); border-radius: 999px; }
.print-panel::-webkit-scrollbar-track,
.legal-panel::-webkit-scrollbar-track,
.quiz-panel::-webkit-scrollbar-track,
.quiz-body::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }

/* Case de consentement (formulaires) */
.consent { margin: 0.4rem 0 1rem; }
.consent > label { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.consent > label input { margin-top: 0.15rem; width: 17px; height: 17px; accent-color: var(--accent-deep); flex-shrink: 0; }
.consent-link { display: inline-block; margin: 0.3rem 0 0 1.7rem; font-size: 0.82rem; color: var(--accent-deep); text-decoration: underline; }
.consent-error { color: #b4503c; font-size: 0.85rem; margin: 0.3rem 0 0 1.7rem; }
.lightbox-close {
  position: fixed; top: 1.3rem; right: 1.8rem; z-index: 2; font-size: 2.6rem; line-height: 1;
  color: #f6f3ec; background: none; border: none; cursor: pointer; opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
.quiz-overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: clamp(0.8rem, 3vw, 2rem);
  background: rgba(40, 37, 31, 0.5); backdrop-filter: blur(6px);
}
.quiz-overlay.open { display: flex; animation: fade 0.3s ease; }
.quiz-panel {
  position: relative; width: 100%; max-width: 620px;
  background: var(--paper); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2rem);
  max-height: 94vh; display: flex; flex-direction: column;
  animation: panelUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes panelUp { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
.quiz-close {
  position: absolute; top: 1rem; right: 1.3rem; font-size: 2rem; line-height: 1;
  background: none; border: none; color: var(--ink-soft); cursor: pointer;
}
.quiz-close:hover { color: var(--ink); }

.quiz-progress { height: 5px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 1.8rem; }
.quiz-progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 999px; transition: width 0.4s ease; }

.quiz-body { flex: 1; overflow-y: auto; }
.q-step { display: none; }
.q-step.active { display: block; animation: stepIn 0.4s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.q-step h3 { font-family: var(--hand); font-weight: normal; font-size: clamp(1.8rem, 5.2vw, 2.5rem); color: var(--ink); margin-bottom: 0.5rem; line-height: 1.15; }
.q-step .q-hint { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.3rem; }

.q-section-tag {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; color: #fff; background: var(--accent); padding: 0.25em 0.8em;
  border-radius: 999px; margin-bottom: 0.9rem;
}

.q-input, .q-textarea {
  width: 100%; font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.85em 1em; transition: border 0.2s ease, box-shadow 0.2s ease;
}
.q-input:focus, .q-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 147, 135, 0.18); }
.q-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.q-choices { display: flex; flex-direction: column; gap: 0.7rem; }
.q-choice {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.85em 1.1em; font-size: 1.02rem; transition: all 0.18s ease;
}
.q-choice:hover { border-color: var(--accent); }
.q-choice input { accent-color: var(--accent-deep); width: 18px; height: 18px; flex-shrink: 0; }
.q-choice.selected { border-color: var(--accent-deep); background: #eef3f0; }
.q-multi .q-choice { padding: 0.7em 1em; }

/* Champ "précisions" : un libellé + un champ par élément coché */
.q-details { display: flex; flex-direction: column; gap: 0.9rem; }
.q-detail-row { display: flex; flex-direction: column; gap: 0.3rem; }
.q-detail-label { font-size: 0.95rem; color: var(--accent-deep); }

.q-error { color: #b4503c; font-size: 0.88rem; margin-top: 0.6rem; min-height: 1.1em; }

.q-note {
  background: #eef3f0; border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem;
  font-size: 0.92rem; color: var(--accent-deep); line-height: 1.6; font-style: italic;
}

/* Choix du parcours */
.q-parcours-intro { text-align: center; margin-bottom: 1.6rem; }
.q-parcours-intro h3 { font-family: var(--hand); font-weight: normal; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--ink); margin-bottom: 0.3rem; }
.q-parcours-intro p { color: var(--ink-soft); }
.parcours-cards { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.parcours-card {
  text-align: left; cursor: pointer; background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem;
  transition: all 0.2s ease;
}
.parcours-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.parcours-card .pc-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.parcours-card h4 { font-family: var(--hand); font-weight: normal; font-size: 1.7rem; color: var(--ink); margin-bottom: 0.3rem; }
.parcours-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* Upload photo */
.q-photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--muted); border-radius: 14px;
  padding: 1.8rem 1rem; background: #fff; color: var(--ink-soft);
  transition: border 0.2s ease, background 0.2s ease;
}
.q-photo-drop:hover { border-color: var(--accent); background: #eef3f0; }
.q-photo-drop svg { width: 34px; height: 34px; opacity: 0.7; }
.q-photo-drop span { font-weight: 700; color: var(--ink); }
.q-photo-drop small { font-size: 0.8rem; }
.q-photo-input { display: none; }
.q-photo-preview { margin-top: 1rem; text-align: center; }
.q-photo-preview img { max-height: 200px; border-radius: 10px; margin: 0 auto; box-shadow: var(--shadow); }
.q-photo-remove {
  display: inline-block; margin-top: 0.7rem; background: none; border: none;
  color: #b4503c; cursor: pointer; font-size: 0.88rem; font-weight: 600; text-decoration: underline;
}

.quiz-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.4rem; margin-top: 1rem; border-top: 1px solid var(--line);
}
.quiz-step-label { font-size: 0.85rem; color: var(--ink-soft); }
#quizPrev { visibility: hidden; }
#quizPrev.show { visibility: visible; }

.q-step.q-final { text-align: center; }
.q-final .q-mark { font-size: 3rem; margin-bottom: 0.6rem; }
.q-final h3 { font-family: var(--hand); font-weight: normal; font-size: clamp(2rem, 6vw, 2.8rem); }
.q-final p { color: var(--ink-soft); font-size: 1.05rem; max-width: 420px; margin: 0.6rem auto 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251, 250, 245, 0.98); backdrop-filter: blur(10px);
    padding: 0.4rem 1.4rem 1.4rem; border-top: 1px solid var(--line);
    box-shadow: 0 24px 30px -22px rgba(63, 58, 51, 0.5);
    display: none;
  }
  .nav.open { display: flex; animation: fade 0.2s ease; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 1.1rem; padding: 0.85em 1.2em; font-size: 1rem; text-align: center; }
  .parcours-cards { grid-template-columns: 1fr; }
}
