/* ============================================================
   Kim Dubois Photographe Animalière — Maquette de discussion
   Design tokens + thèmes (clair par défaut / sombre élégante)
   ============================================================ */

:root {
  /* ===== Hiérarchie de couleur V3 — FERME =====
     DORÉ = primaire (marque, actions principales, distinctions, libellés)
     BLEU ACIER = secondaire (canvas héros, actions 2ⁿᵈ, sections calmes) */
  --gold:        #C9A24B;   /* primaire */
  --gold-dark:   #A8842F;   /* survols / petit texte doré sur clair */
  --gold-light:  #E4CE97;   /* accent sur fond sombre */
  --blue:        #45758A;   /* secondaire */
  --blue-deep:   #2E4E5C;   /* profondeur / survols bleus */
  --blue-pale:   #ECF1F4;   /* fonds de sections calmes */
  --blue-on-dark:#8FB4C6;
  --ink:         #1C1A17;
  --text:        #2B2825;
  --card:        #F7F6F4;
  --border:      #E6E2DA;
  --bg:          #FFFFFF;

  /* Couleurs « studio » des fonds colorés (cale-pieds des zones photo) */
  --studio-corail: #E07856;
  --studio-jaune:  #E8B84B;
  --studio-bleu:   #3E6B8C;
  --studio-noir:   #211E1A;

  /* Tons sémantiques pilotés par le thème */
  --surface:      var(--bg);
  --surface-soft: var(--card);
  --on-surface:   var(--text);
  --on-surface-muted: #6E665C;
  --hairline:     var(--border);
  --accent:       var(--gold);
  --accent-strong:var(--gold-dark);
  --accent-on-dark:var(--gold-light);
  /* Canvas héros = voile BLEU, fort SEULEMENT derrière le texte (gauche),
     transparent à droite → la photo (le chien) reste bien visible */
  --hero-scrim:   linear-gradient(95deg, rgba(24,38,46,.82) 0%, rgba(34,54,64,.44) 40%, rgba(44,70,84,.08) 74%, rgba(44,70,84,0) 100%);

  /* Bouton de réservation = DORÉ plein (action principale) */
  --book-gold:      var(--gold);
  --book-gold-dark: var(--gold-dark);

  /* Type */
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:  "Mulish", system-ui, -apple-system, sans-serif;

  /* Rayons / mouvements (multiples de 4) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: 240ms;

  /* Rythme */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 72px);
}

[data-theme="dark"] {
  --surface:      var(--ink);
  --surface-soft: #25221E;
  --on-surface:   #F2EEE6;
  --on-surface-muted: #A79E90;
  --hairline:     #3A352E;
  --accent:       var(--gold);
  --accent-strong:var(--gold-light);
  --blue-pale:    #1A2A30;
  --hero-scrim:   linear-gradient(95deg, rgba(6,12,16,.86) 0%, rgba(12,22,28,.46) 40%, rgba(18,30,36,.08) 74%, rgba(18,30,36,0) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: .002em;
  margin: 0;
  color: var(--on-surface);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Accessibilité — focus visible partout */
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); z-index: 2000; transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----------- Layout helpers ----------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--soft { background: var(--surface-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--on-surface-muted); font-size: 18px; max-width: 56ch; }

/* ----------- Boutons ----------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
              color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--accent); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -12px rgba(168,132,47,.7);
}
.btn-gold:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .btn-gold { color: var(--ink); }
[data-theme="dark"] .btn-gold:hover { background: var(--gold-light); color: var(--ink); }

/* Bouton de réservation = action principale DORÉE pleine (ressort sur le héros bleu) */
.btn-book {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 28px -12px rgba(168,132,47,.75);
}
.btn-book:hover {
  background: var(--gold-dark); color: #fff; transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(168,132,47,.85);
}
.btn-book:active { background: var(--gold-dark); transform: translateY(1px); }
[data-theme="dark"] .btn-book:hover { background: var(--gold-light); color: var(--ink); }

/* Action SECONDAIRE = bleu acier */
.btn-blue {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 24px -14px rgba(46,78,92,.7);
}
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
[data-theme="dark"] .btn-blue { background: var(--blue); color: #fff; }
[data-theme="dark"] .btn-blue:hover { background: var(--blue-on-dark); color: var(--ink); }

.btn-ghost {
  background: transparent; color: var(--on-surface);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

.btn-outline-light {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }

/* ----------- Monogramme KD (doré primaire) ----------- */
.kd-mono { display: inline-grid; place-items: center; }
.kd-mono circle { fill: none; stroke: var(--accent-strong); }
.kd-mono text { fill: var(--accent-strong); font-family: var(--font-title); font-weight: 600; }
.kd-mono--spin circle.kd-ring-dash {
  stroke-dasharray: 3 7; transform-origin: center;
  animation: kd-spin 26s linear infinite;
}
@keyframes kd-spin { to { transform: rotate(360deg); } }

/* Filet doré décoratif */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); border: 0; }

/* ----------- Zone photo (placeholder) ----------- */
.photo-zone {
  position: relative; overflow: hidden;
  background: var(--studio-color, var(--surface-soft));
  border-radius: var(--r-lg);
  isolation: isolate;
}
.photo-zone::after { /* texture studio douce */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(120% 120% at 85% 110%, rgba(0,0,0,.28), transparent 60%);
  mix-blend-mode: soft-light;
}
.photo-zone .pz-mono { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; opacity: .9; }
.photo-zone .pz-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.photo-zone.has-img::after { opacity: .35; }
.photo-zone .pz-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(0,0,0,.32);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(3px);
  display: inline-flex; align-items: center; gap: 7px;
}
.photo-zone .pz-label::before { content:""; width:5px; height:5px; border-radius:50%; background: var(--gold-light); }

/* Survol carte photo : léger zoom + voile doré */
.photo-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; }
.photo-card .photo-zone { border-radius: 0; height: 100%; transition: transform var(--t) var(--ease); }
.photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(201,162,75,.0) 60%, rgba(201,162,75,.34));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.photo-card:hover .photo-zone { transform: scale(1.045); }
.photo-card:hover::before { opacity: 1; }
.photo-card .photo-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  color: #fff; transform: translateY(8px); opacity: 0; transition: all var(--t) var(--ease);
  font-family: var(--font-title); font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.photo-card:hover .photo-cap { transform: translateY(0); opacity: 1; }

/* ----------- Apparition au scroll ----------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .85s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.in, .reveal[data-rv="in"] { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }

/* Intensités d'animation (réglage admin) */
[data-anim-style="doux"] .reveal { transform: translateY(13px); transition: opacity .9s ease, transform .9s ease; }
[data-anim-style="doux"] .reveal.in, [data-anim-style="doux"] .reveal[data-rv="in"] { transform: none; }
[data-anim-style="dynamique"] .reveal { transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.22,1,.36,1); }
[data-anim-style="dynamique"] .reveal.in, [data-anim-style="dynamique"] .reveal[data-rv="in"] { transform: none; }
/* Animations désactivées */
[data-anim="off"] .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* ----------- Annotations design ----------- */
.anno {
  position: absolute; z-index: 60; max-width: 268px;
  background: var(--ink); color: #F2EEE6;
  border: 1px solid var(--gold-dark); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98);
  transition: all var(--t) var(--ease);
}
body.show-anno .anno { opacity: 1; visibility: visible; transform: none; }
.anno b { color: var(--gold-light); font-family: var(--font-body); }
.anno .anno-tag {
  display: block; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-weight: 700;
}
.anno-dot {
  position: absolute; z-index: 59; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: none; place-items: center;
  font-weight: 800; font-size: 13px; box-shadow: 0 0 0 6px rgba(201,162,75,.22);
  animation: anno-pulse 2.4s var(--ease) infinite;
}
body.show-anno .anno-dot { display: grid; }
@keyframes anno-pulse { 0%,100%{ box-shadow: 0 0 0 6px rgba(201,162,75,.22);} 50%{ box-shadow: 0 0 0 11px rgba(201,162,75,.05);} }

/* utilitaire visuellement masqué */
.vh { position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }
