/* ============================================================
   Chromélie, l'atmosphère d'Amélie : cinéma vert-rouge-or,
   papier grainé, vignette, touches manuscrites et dorées.
   ============================================================ */

:root {
  --vert: #2E7D5B;
  --vert-fonce: #1C5B41;
  --vert-profond: #14402E;
  --rouge: #C0392B;
  --rouge-clair: #E0574A;
  --rouge-profond: #8E2A20;
  --or: #D89A2E;
  --or-clair: #F0C258;
  --creme: #F4E9D0;
  --creme-2: #FBF3E0;
  --papier: #EFE2C4;
  --encre: #291A10;
  --encre-doux: #6B5333;
  --ligne: #DBCBA3;
  --blanc: #FFFDF6;
  --display: "Fraunces", Georgia, serif;
  --manuscrit: "Caveat", "Segoe Script", cursive;
  --corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --maxw: 1180px;
  --ombre: 0 14px 30px -14px rgba(41,26,16,0.5);
}

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

body {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(46,125,91,0.10), transparent 45%),
    radial-gradient(140% 120% at 50% 60%, transparent 55%, rgba(41,26,16,0.20) 100%),
    var(--creme);
  color: var(--encre);
  font-family: var(--corps);
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--or); color: var(--encre); }
a { color: var(--vert-fonce); font-weight: 600; }
a:hover { color: var(--rouge); }
[hidden] { display: none !important; }

h1, h2, h3, .logo-text { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }

/* grain photo argentique, sur toute la page */
#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
body > *:not(#grain):not(#petales) { position: relative; z-index: 2; }

/* petites décorations manuscrites */
.deco em { font-family: var(--manuscrit); font-style: normal; color: var(--rouge); }
.deco svg { color: var(--rouge); }

/* ============================ Boutons ============================ */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  border: 2px solid var(--encre); font-family: var(--corps); font-weight: 700;
  font-size: 0.98rem; text-decoration: none; cursor: pointer;
  background: var(--blanc); color: var(--encre);
  box-shadow: 3px 3px 0 var(--encre); transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--encre); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--encre); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: 3px 3px 0 var(--encre); transform: none; }
.btn-primary { background: var(--rouge); border-color: var(--encre); color: var(--blanc); }
.btn-primary:hover { background: var(--rouge-clair); }
.btn-small { padding: 7px 15px; font-size: 0.85rem; box-shadow: 2px 2px 0 var(--encre); }

/* ============================ Header ============================ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-swatch {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; flex-shrink: 0;
  background: conic-gradient(var(--rouge) 0 33%, var(--vert) 0 66%, var(--or) 0 100%);
  border: 2px solid var(--encre); box-shadow: 2px 2px 0 var(--encre);
  transition: transform 0.3s;
}
.logo:hover .logo-swatch { transform: rotate(120deg); }
.logo-text { font-size: 1.6rem; color: var(--encre); font-weight: 900; }
.logo-text em { color: var(--rouge); font-style: italic; font-weight: 600; }
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--encre); text-decoration: none; font-size: 0.96rem; font-weight: 600; }
.site-nav a:hover { color: var(--rouge); }
.nav-studio { border: 2px solid var(--vert); color: var(--vert-fonce) !important; padding: 7px 15px; border-radius: 999px; box-shadow: 2px 2px 0 var(--vert-fonce); }

/* ============================ Hero ============================ */
.hero { position: relative; text-align: center; padding: 56px 24px 64px; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-kicker {
  display: inline-block; background: var(--vert); color: var(--creme-2);
  padding: 6px 18px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 22px; border: 2px solid var(--encre); box-shadow: 2px 2px 0 var(--encre);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; font-weight: 900; }
.hero h1 .ink { color: var(--rouge); font-style: italic; font-weight: 600; }
.hero-sub { margin: 24px auto 30px; max-width: 600px; color: var(--encre-doux); font-size: 1.1rem; }
.hero-sub strong { color: var(--encre); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* flèche manuscrite décorative */
.deco-fleche {
  position: absolute; top: 40px; right: max(24px, calc(50% - 540px)); width: 150px;
  transform: rotate(6deg); text-align: center; color: var(--rouge); pointer-events: none;
}
.deco-fleche svg { width: 92px; height: 62px; display: block; margin: 0 auto; }
.deco-fleche em { display: block; font-family: var(--manuscrit); font-size: 1.2rem; transform: rotate(-4deg); margin-top: -4px; }
@media (max-width: 1040px) { .deco-fleche { display: none; } }

/* promesse du hero */
.hero-promesse {
  display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
}
.hero-promesse span {
  background: var(--blanc); border: 2px solid var(--encre); border-radius: 999px;
  padding: 7px 16px; font-size: 0.9rem; font-weight: 700; color: var(--encre);
  box-shadow: 2px 2px 0 var(--encre);
}

/* ---- écran de cinéma (hero) : scène originale sépia -> couleur ---- */
.cinema { max-width: 640px; margin: 40px auto 0; }
.rec { font-style: normal; font-family: var(--corps); font-weight: 700; font-size: 0.72rem; color: #E0574A; margin-left: 10px; letter-spacing: 0.08em; animation: recblink 1.4s steps(2) infinite; }
@keyframes recblink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.3; } }
/* média déposé par JS (gif/video), recouvre la scène */
.hero-media { position: absolute; inset: 0; z-index: 2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clap {
  display: inline-flex; align-items: center; gap: 8px; background: var(--encre); color: var(--creme);
  font-family: var(--display); font-weight: 600; font-size: 0.9rem; padding: 6px 14px 6px 10px;
  border-radius: 8px 8px 0 0; margin-left: 14px; position: relative; top: 2px;
}
.clap b { width: 26px; height: 14px; display: inline-block; border-radius: 2px;
  background: repeating-linear-gradient(115deg, var(--creme) 0 5px, var(--encre) 5px 10px); transform: skewX(-6deg); }
.cinema-cadre {
  display: grid; grid-template-columns: 22px 1fr 22px; align-items: stretch;
  background: #17110C; border: 3px solid var(--encre); border-radius: 14px; padding: 10px;
  box-shadow: var(--ombre);
}
/* pellicule (perforations) */
.perfo { background:
  repeating-linear-gradient(180deg, transparent 0 8px, #0000 8px 10px),
  repeating-linear-gradient(180deg, #2A2019 0 14px, #17110C 14px 20px);
  border-radius: 6px; position: relative;
}
.perfo::before { content: ""; position: absolute; inset: 4px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 8px, #C8B98F 8px 13px, transparent 13px 20px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 9px, transparent 9px 20px); mask: repeating-linear-gradient(180deg, #000 0 9px, transparent 9px 20px); }
.ecran { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; margin: 0 4px; background: #17110C; }

/* ---- ruban de couleurs qui défile (visuel par défaut du hero) ---- */
/* On anime la POSITION du dégradé (pas l'élément) le long de son axe (66°),
   d'exactement une période : la boucle est sans couture, jamais de vide. */
.defile { position: absolute; inset: 0; overflow: hidden; }
.defile-couche { position: absolute; inset: 0; will-change: background-position; }
.c1 {
  background: repeating-linear-gradient(66deg,
    #C0392B 0 60px, #E0574A 60px 120px, #D89A2E 120px 180px, #F0C258 180px 240px,
    #2E7D5B 240px 300px, #1C5B41 300px 360px, #8E5A6B 360px 420px, #C0392B 420px 480px);
  animation: glisse480 15s linear infinite;
}
.c2 {
  background: repeating-linear-gradient(66deg, rgba(255,253,246,0.18) 0 26px, transparent 26px 90px);
  mix-blend-mode: screen; animation: glisse90 9s linear infinite;
}
.c3 {
  background: repeating-linear-gradient(66deg, rgba(23,17,12,0.22) 0 40px, transparent 40px 150px);
  animation: glisse150 26s linear infinite;
}
/* vecteur de défilé = (sin66, -cos66) × période */
@keyframes glisse480 { from { background-position: 0 0; } to { background-position: 438px -195px; } }
@keyframes glisse90  { from { background-position: 0 0; } to { background-position: 82px -37px; } }
@keyframes glisse150 { from { background-position: 0 0; } to { background-position: 137px -61px; } }

/* codes hexa qui remontent comme un générique (liste doublée = boucle sans saut) */
.defile-legendes {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 24px;
  align-items: center; justify-content: flex-start; padding-top: 24%;
  font-family: "SFMono-Regular", ui-monospace, monospace; font-weight: 700; font-size: 1rem;
  color: rgba(255,253,246,0.94); text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  animation: remonte 18s linear infinite;
}
.defile-legendes span { background: rgba(23,17,12,0.4); padding: 2px 10px; border-radius: 6px; letter-spacing: 0.05em; }
@keyframes remonte { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* vignette + scintillement projecteur */
.flicker { position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px 12px rgba(0,0,0,0.55); animation: scint 0.16s steps(2) infinite; }
@keyframes scint { 0% { opacity: 0.9; } 50% { opacity: 1; } 100% { opacity: 0.93; } }
.leak { position: absolute; top: 0; left: -30%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(240,194,88,0.25), transparent);
  animation: passage 9s ease-in-out infinite; }
@keyframes passage { 0%, 60% { transform: translateX(0); opacity: 0; } 72% { opacity: 1; } 85% { transform: translateX(360%); opacity: 0; } 100% { opacity: 0; } }
.cine-legende { display: block; text-align: center; font-family: var(--manuscrit); font-size: 1.4rem; color: var(--rouge); margin-top: 12px; transform: rotate(-1.5deg); }

.trust-chips {
  display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin-top: 32px; color: var(--encre-doux); font-size: 0.9rem; font-weight: 600;
}

/* ============================ Sections ============================ */
.section-title { text-align: center; font-size: clamp(1.8rem, 3.8vw, 2.5rem); margin-bottom: 6px; font-weight: 900; }
.section-title::after {
  content: ""; display: block; width: 72px; height: 8px; margin: 12px auto 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='8'%3E%3Cpath d='M2 5 C 18 1, 30 8, 46 4 S 66 2, 70 5' fill='none' stroke='%23C0392B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-sub { text-align: center; color: var(--encre-doux); max-width: 580px; margin: 14px auto 34px; font-family: var(--manuscrit); font-size: 1.35rem; }

/* ============================ Outil ============================ */
.tool { max-width: var(--maxw); margin: 0 auto; padding: 50px 24px 80px; }

.dropzone {
  position: relative; border: 3px dashed var(--vert); border-radius: var(--radius);
  background: var(--creme-2); padding: 52px 24px; text-align: center; cursor: pointer;
  transition: all 0.18s; box-shadow: var(--ombre);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--rouge); background: var(--blanc); transform: translateY(-2px); }
.dropzone.is-over { border-color: var(--rouge); background: var(--blanc); transform: scale(1.01); }
.dropzone-ico { font-size: 2.6rem; margin-bottom: 8px; filter: saturate(1.2); }
.dropzone-title { font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.dropzone-hint { color: var(--encre-doux); font-size: 0.92rem; margin-top: 6px; }
.dropzone-msg { margin-top: 14px; color: var(--rouge); font-weight: 700; }
.demo-line { text-align: center; margin-top: 16px; color: var(--encre-doux); font-size: 0.96rem; font-weight: 600; }
.demo-btn {
  background: var(--or-clair); border: 2px solid var(--encre); border-radius: 999px;
  padding: 6px 16px; margin-left: 6px; cursor: pointer; font-family: var(--corps);
  font-weight: 700; font-size: 0.88rem; color: var(--encre); box-shadow: 2px 2px 0 var(--encre);
}
.demo-btn:hover { background: var(--or); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--encre); }

.stage { margin-top: 30px; }
.stage-title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }

.work-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 26px; align-items: start; }
.apercu-panel, .palette-panel {
  background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--ombre);
}
.apercu-head, .palette-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }

/* cadre photomaton / polaroid */
.polaroid {
  background: var(--blanc); padding: 12px 12px 8px; border: 1px solid var(--ligne);
  box-shadow: 0 10px 22px -10px rgba(41,26,16,0.55); transform: rotate(-1.2deg);
  transition: transform 0.2s;
}
.polaroid:hover { transform: rotate(0deg); }
.apercu-wrap { position: relative; line-height: 0; overflow: hidden; background: #ddd; }
.apercu-wrap img { width: 100%; height: auto; display: block; }
.apercu-wrap.pipette { cursor: crosshair; }
.polaroid figcaption { font-family: var(--manuscrit); font-size: 1.15rem; color: var(--encre-doux); text-align: center; padding: 6px 4px 2px; }
.pipette-hint { margin-top: 12px; font-size: 0.9rem; color: var(--vert-fonce); font-weight: 700; font-family: var(--manuscrit); font-size: 1.15rem; }
.btn-small[aria-pressed="true"] { background: var(--vert); color: var(--blanc); border-color: var(--encre); }

.count-row { margin-top: 18px; }
.count-row label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.count-row output { color: var(--rouge); font-variant-numeric: tabular-nums; font-family: var(--display); font-size: 1.1rem; }
input[type="range"] { width: 100%; accent-color: var(--rouge); cursor: pointer; }

.palette-info { color: var(--encre-doux); font-size: 0.85rem; font-weight: 600; font-family: var(--manuscrit); font-size: 1.1rem; }

/* ---- swatches façon échantillon de peinture ---- */
.palette { display: flex; flex-direction: column; gap: 12px; }
.swatch {
  display: grid; grid-template-columns: 92px 1fr; gap: 0;
  border: 2px solid var(--encre); border-radius: 12px; overflow: hidden;
  background: var(--creme-2); box-shadow: 3px 3px 0 var(--encre);
  transition: transform 0.12s, box-shadow 0.12s;
}
.swatch:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--encre); }
.swatch-color { min-height: 110px; position: relative; border-right: 2px solid var(--encre); }
.swatch-color::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 45%);
}
.swatch-part {
  position: absolute; bottom: 7px; left: 7px; font-size: 0.7rem; font-weight: 800;
  background: rgba(255,253,246,0.9); color: #222; padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
}
.swatch-body { padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; }
.swatch-nom { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.swatch-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: 8px;
  padding: 4px 9px; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--encre); transition: all 0.12s; font-family: "SFMono-Regular", ui-monospace, monospace;
}
.chip:hover { border-color: var(--rouge); color: var(--rouge); transform: translateY(-1px); }
.chip .k { color: var(--encre-doux); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; font-family: var(--corps); }
.chip.pantone { background: #FCF8EE; }
.chip.pantone .k { color: var(--vert-fonce); }
.chip.loin { border-style: dashed; opacity: 0.9; }
.chip .dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.2); }

.honnete {
  margin-top: 18px; background: repeating-linear-gradient(135deg, rgba(216,154,46,0.10) 0 12px, rgba(216,154,46,0.16) 12px 24px);
  border: 2px solid var(--or); border-radius: 10px; padding: 12px 15px; font-size: 0.86rem; color: var(--encre-doux);
}
.honnete strong { color: var(--encre); }

/* ---- exports ---- */
.exports {
  margin-top: 26px; background: var(--vert-profond); color: var(--creme-2);
  border: 2px solid var(--encre); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--ombre);
}
.exports .stage-title { color: var(--blanc); }
.exports-sub { color: rgba(255,253,246,0.8); font-size: 0.95rem; margin: 2px 0 16px; font-family: var(--manuscrit); font-size: 1.2rem; }
.exports-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.exports .btn { box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }

/* ============================ Comment / réassurance / FAQ ============================ */
.how { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.how-card { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--ombre); }
.how-card:nth-child(2) { transform: rotate(-0.6deg); }
.how-card:nth-child(3) { transform: rotate(0.6deg); }
.how-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--rouge); color: var(--creme-2);
  display: flex; align-items: center; justify-content: center; font-family: var(--display);
  font-weight: 900; font-size: 1.3rem; margin-bottom: 14px; border: 2px solid var(--encre); box-shadow: 2px 2px 0 var(--encre);
}
.how-card:nth-child(2) .how-num { background: var(--vert); }
.how-card:nth-child(3) .how-num { background: var(--or); color: var(--encre); }
.how-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.how-card p { color: var(--encre-doux); font-size: 0.96rem; }

.reassure { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 60px; }
.reassure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.reassure-card { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--radius); padding: 26px; box-shadow: var(--ombre); }
.reassure-card:nth-child(1) { background: var(--vert); color: var(--creme-2); }
.reassure-card:nth-child(1) h3, .reassure-card:nth-child(1) strong { color: var(--blanc); }
.reassure-card:nth-child(1) a { color: var(--or-clair); }
.reassure-card:nth-child(4) { background: var(--rouge); color: var(--creme-2); }
.reassure-card:nth-child(4) h3, .reassure-card:nth-child(4) strong { color: var(--blanc); }
.reassure-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.reassure-card p { color: var(--encre-doux); font-size: 0.96rem; }
.reassure-card:nth-child(1) p, .reassure-card:nth-child(4) p { color: rgba(255,253,246,0.92); }
.reassure-card strong { color: var(--encre); }

.faq { max-width: 820px; margin: 0 auto; padding: 20px 24px 70px; }
.faq details { background: var(--blanc); border: 2px solid var(--encre); border-radius: 12px; margin-top: 12px; overflow: hidden; box-shadow: 3px 3px 0 var(--encre); }
.faq details:first-of-type { margin-top: 34px; }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; font-family: var(--display); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--rouge); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--encre-doux); font-size: 0.96rem; }

/* ============================ Studio et footer ============================ */
.studio { padding: 20px 24px 74px; }
.studio-inner {
  max-width: 780px; margin: 0 auto; text-align: center; background: var(--rouge);
  border: 2px solid var(--encre); border-radius: var(--radius); padding: 46px 34px;
  color: var(--blanc); box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.studio-inner::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,0.5) 22px 24px);
}
.studio-inner h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 14px; position: relative; }
.studio-inner p { max-width: 560px; margin: 0 auto 24px; opacity: 0.96; position: relative; }
.studio-inner strong { color: var(--or-clair); }
.studio-inner .btn { background: var(--blanc); border-color: var(--encre); color: var(--rouge); position: relative; }
.studio-inner .btn:hover { background: var(--encre); color: var(--creme); }

.site-footer { text-align: center; padding: 36px 24px 48px; border-top: 2px solid var(--ligne); color: var(--encre-doux); font-size: 0.88rem; }
.site-footer p { margin-bottom: 8px; }
.footer-serie { opacity: 0.85; }
.footer-tag { font-family: var(--manuscrit); font-size: 1.25rem; opacity: 0.85; }

/* ============================ Modale ============================ */
.email-modal {
  margin: auto; position: relative; background: var(--creme-2); color: var(--encre);
  border: 3px solid var(--encre); border-radius: var(--radius); padding: 34px 30px;
  max-width: 470px; width: calc(100vw - 40px); box-shadow: 8px 8px 0 var(--encre);
}
.email-modal::backdrop { background: rgba(41,26,16,0.66); }
.email-modal h3 { font-size: 1.6rem; margin-bottom: 10px; }
.email-modal > p { color: var(--encre-doux); font-size: 0.94rem; margin-bottom: 18px; }
.email-modal input[type="email"] {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 2px solid var(--ligne);
  background: var(--blanc); color: var(--encre); font-size: 1rem; margin-bottom: 13px; font-family: var(--corps);
}
.email-modal input[type="email"]:focus { outline: none; border-color: var(--vert); }
.optin { display: flex; gap: 10px; font-size: 0.88rem; color: var(--encre-doux); cursor: pointer; margin-bottom: 12px; align-items: flex-start; }
.optin input { margin-top: 3px; flex-shrink: 0; accent-color: var(--vert); }
.email-error { color: var(--rouge); font-size: 0.88rem; font-weight: 700; min-height: 1.2em; margin-bottom: 8px; }
#email-submit { width: 100%; }
.email-legal { margin-top: 13px; font-size: 0.76rem; color: var(--encre-doux); text-align: center; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: var(--rouge); color: #fff; border: 2px solid var(--encre);
  border-radius: 50%; width: 30px; height: 30px; font-size: 0.95rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { background: var(--encre); }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--encre); color: var(--creme); padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; z-index: 90; box-shadow: 4px 4px 0 var(--rouge);
}

/* ---- pétales ---- */
#petales { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.petale { position: absolute; top: -40px; width: 15px; height: 15px; border-radius: 62% 0 62% 0; animation: chute linear forwards; }
@keyframes chute {
  0% { transform: translateY(0) rotate(0); opacity: 0.95; }
  100% { transform: translateY(110vh) rotate(var(--spin, 360deg)); opacity: 0.5; }
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .reassure-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .polaroid, .swatch, .logo-swatch { transition: none; }
  .defile-couche, .defile-legendes, .flicker, .leak, .petale { animation: none !important; }
}
