/* Caty Lesca · landing — valeurs issues de la Charte v2 (tokens.json) */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --lin: #f6f3ee;
  --sable: #e9e2d6;
  --brun: #3d3630;
  --taupe: #5a5048;
  --pierre: #8a8178;
  --filet: #e4ded6;
  --ink-text-muted: #d9d3cb;
  --on-ink: var(--paper);
  --focus: var(--ink);
  --overlay: rgba(17, 17, 17, 0.45);

  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  --space-half: 4px;
  --space-1: 8px;
  --space-1-5: 12px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --container-max: 1320px;
  --measure: 640px;

  --duree-rapide: 200ms;
  --duree-base: 350ms;
  --duree-lente: 900ms;
  --courbe-sortie: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-h: 72px;
  --gutter: var(--space-2);
  --section-y: var(--space-8);
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-3); --header-h: 76px; }
}
@media (min-width: 1024px) {
  :root { --section-y: var(--space-12); --header-h: 112px; }
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, address, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: var(--space-1-5) var(--space-2);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.bg-paper { background: var(--paper); }
.bg-lin { background: var(--lin); }

/* ---------- Typographie */
.surtitre {
  font-size: 12px; line-height: 1.4; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe);
}
.h-hero, .h-titre {
  font-weight: 300; text-transform: uppercase; color: var(--ink);
  text-wrap: balance;
}
.h-hero { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: 0.01em; margin-top: var(--space-2); }
.h-hero:first-child { margin-top: 0; }
.h-titre { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: 0.02em; margin-top: var(--space-1-5); }
.chapo { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; font-weight: 300; color: var(--brun); max-width: var(--measure); }
.citation {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: var(--ink); text-wrap: balance;
}
.section-head { max-width: var(--measure); margin-bottom: var(--space-4); }
.section-head .chapo { margin-top: var(--space-2); }

/* ---------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 48px; padding: 0 28px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color var(--duree-rapide) var(--courbe-sortie), color var(--duree-rapide) var(--courbe-sortie), border-color var(--duree-rapide) var(--courbe-sortie);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-plein { background: var(--ink); color: var(--on-ink); }
.btn-plein:hover { background: var(--brun); border-color: var(--brun); }
.btn-contour { background: transparent; color: var(--ink); }
.btn-contour:hover { background: var(--ink); color: var(--on-ink); }
.lien {
  font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.ctas { display: flex; flex-direction: column; gap: var(--space-1-5); margin-top: var(--space-4); }
@media (min-width: 480px) { .ctas { flex-direction: row; flex-wrap: wrap; } }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--filet);
}
.header-inner {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: var(--header-h); padding-inline: var(--space-1);
  max-width: var(--container-max); margin-inline: auto;
  transition: height var(--duree-base) var(--courbe-sortie);
}
.logo { justify-self: center; display: block; }
/* Logo complet partout (nom + SUD DE FRANCE), jamais sous 120 px de large */
.logo img { height: 52px; width: auto; transition: height var(--duree-base) var(--courbe-sortie); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: none;
}
.nav, .header-cta { display: none; }

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; padding-inline: var(--gutter); }
  .menu-btn, .header .icon-btn { display: none; }
  .nav { display: flex; gap: var(--space-half); }
  .nav a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none; padding: 14px 10px; position: relative;
  }
  .nav a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px; background: var(--ink);
    transform: scaleX(0); transition: transform var(--duree-base) var(--courbe-sortie);
  }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .header-cta { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3); }
  .logo img { height: 66px; }
  .header.is-compact { --header-h: 72px; }
  .header.is-compact .logo img { height: 48px; }
}

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.lang-switch:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-lang { margin: var(--space-3) 0 var(--space-2); }
.footer-liens { display: inline-flex; gap: var(--space-3); align-items: center; }
.footer-liens a { min-height: 0; }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.menu.is-open { display: block; }
.menu-backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade var(--duree-base) var(--courbe-sortie); }
.menu-panel {
  position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--paper);
  display: flex; flex-direction: column; padding: var(--space-1) var(--space-3) var(--space-4);
  animation: slide var(--duree-base) var(--courbe-sortie);
}
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: var(--space-3); }
.menu-top img { height: 40px; width: auto; }
.menu-links a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--filet);
  font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.menu-panel .btn { margin-top: auto; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ---------- Hero */
.hero-media { aspect-ratio: 4 / 5; background: var(--sable); overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* La vidéo se pose sur la photo et n'apparaît qu'une fois lancée */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--duree-base) var(--courbe-sortie);
}
.hero-video.is-playing { opacity: 1; }
.video-toggle {
  position: absolute; right: var(--space-1-5); bottom: var(--space-1-5);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
}
.video-toggle .icon { width: 18px; height: 18px; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: inline-flex; }
.hero-text { padding: var(--space-4) var(--gutter) var(--space-6); }
@media (min-width: 768px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: var(--container-max); margin-inline: auto; }
  .hero-media { aspect-ratio: 3 / 4; max-height: calc(100svh - var(--header-h)); width: 100%; }
  .hero-text { padding: var(--space-6) var(--space-6) var(--space-6) clamp(32px, 5vw, 80px); }
}

/* ---------- Promesse */
.promesse-grid { display: grid; gap: var(--space-4); }
.point { border-top: 1px solid var(--pierre); padding-top: var(--space-2); }
.point .icon { width: 32px; height: 32px; stroke-width: 1.25; display: block; margin-bottom: var(--space-2); color: var(--ink); }
.point h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.point p { margin-top: var(--space-1); color: var(--brun); max-width: 34ch; }
.promesse .citation { max-width: 22ch; margin-bottom: var(--space-6); }
@media (min-width: 768px) { .promesse-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

/* ---------- Repère : la rue du Bras de Fer dans l'arche de la vitrine */
.repere-grid { display: grid; gap: var(--space-6); align-items: center; }
.arche {
  width: min(80vw, 420px); max-width: 100%; margin-inline: auto;
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--sable);
  border-radius: 999px 999px 0 0; /* l'arche en pierre de la boutique */
}
.arche img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .repere-grid { grid-template-columns: auto 1fr; gap: var(--space-8); }
  .arche { width: 420px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .arche img { scale: 1.12; animation: arche-parallax linear both; animation-timeline: view(); }
    @keyframes arche-parallax { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

/* ---------- Sélection */
.grid-produits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-1-5); }
@media (min-width: 1024px) { .grid-produits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }
.carte-media { aspect-ratio: 3 / 4; background: var(--sable); overflow: hidden; }
.carte-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duree-lente) var(--courbe-sortie); }
@media (hover: hover) { .carte:hover .carte-media img { transform: scale(1.04); } }
.carte-body { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-1-5); }
.carte-marque { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); }
.carte h3, .carte h4 { font-size: 16px; font-weight: 400; line-height: 1.4; margin: 0; }
@media (min-width: 768px) { .carte h3, .carte h4 { font-size: 17px; } }
.carte-prix { font-weight: 500; }
.conseil { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--brun); }
.conseil em { display: block; font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink); }

/* ---------- Sélection du mois : onglets par mois, vitrine + pièces */
.mois-nav { border-bottom: 1px solid var(--filet); margin-bottom: var(--space-4); }
.mois-tabs {
  display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.mois-tabs::-webkit-scrollbar { display: none; }
.mois-tab {
  flex: none; min-height: 48px; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--taupe); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--duree-rapide) var(--courbe-sortie), border-color var(--duree-rapide) var(--courbe-sortie);
}
.mois-tab:hover { color: var(--ink); }
.mois-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.mois-head { max-width: var(--measure); margin-bottom: var(--space-3); }
.mois-titre {
  font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 var(--space-1);
  display: flex; align-items: center; gap: var(--space-1-5); flex-wrap: wrap;
}
.mois-actuel {
  font-size: 11px; letter-spacing: 0.14em; padding: 4px 8px; border: 1px solid var(--ink);
}
.mois-grid { display: grid; gap: var(--space-4) var(--space-3); }
.vitrine { margin: 0; }
.vitrine picture { aspect-ratio: 3 / 4; background: var(--sable); overflow: hidden; }
.vitrine img { width: 100%; height: 100%; object-fit: cover; }
.vitrine figcaption { margin-top: var(--space-1); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); }
@media (min-width: 1024px) {
  .mois-grid { grid-template-columns: 5fr 6fr; align-items: start; }
  .mois-grid .grid-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mois-panel:focus-visible { outline-offset: 8px; }

/* ---------- Boutique */
.boutique { display: grid; gap: var(--space-6); }
.galerie {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--space-1-5);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
}
.galerie::-webkit-scrollbar { display: none; }
.galerie figure { scroll-snap-align: start; aspect-ratio: 3 / 4; background: var(--sable); overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.infos { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.infos dt { margin-bottom: var(--space-half); }
.infos dd a { text-decoration: underline; text-underline-offset: 4px; }
.horaires li { display: flex; justify-content: space-between; gap: var(--space-2); max-width: 340px; color: var(--brun); }
@media (min-width: 1024px) {
  .boutique { grid-template-columns: 3fr 2fr; align-items: center; gap: var(--space-8); }
  .galerie { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
}

/* ---------- Avis */
.avis-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .avis-grid { grid-template-columns: repeat(3, 1fr); } }
.avis blockquote p { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.45; }
.avis figcaption { margin-top: var(--space-1-5); font-size: 14px; color: var(--taupe); }

.note-google { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1-5); }
.note { display: flex; align-items: baseline; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.note-chiffre { font-size: clamp(56px, 8vw, 88px); font-weight: 300; line-height: 1; }
.note-sur { font-size: 17px; color: var(--taupe); }
.note-detail { color: var(--brun); }
.note-google .btn { margin-top: var(--space-1-5); }

/* ---------- Galerie images */
.grid-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-1); }
@media (min-width: 768px) { .grid-images { grid-template-columns: repeat(3, 1fr); gap: var(--space-1-5); } }
.grid-images figure { aspect-ratio: 1 / 1; background: var(--sable); overflow: hidden; }
.grid-images img { width: 100%; height: 100%; object-fit: cover; }
.section-foot { margin-top: var(--space-3); }

/* ---------- Newsletter */
.nl-form { max-width: 560px; margin-top: var(--space-3); }
.nl-form label { display: block; font-size: 14px; margin-bottom: var(--space-half); }
.nl-field { display: flex; flex-direction: column; gap: var(--space-1); }
@media (min-width: 480px) { .nl-field { flex-direction: row; } }
.nl-field input {
  flex: 1; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--pierre); border-radius: 0;
}
.nl-field input[aria-invalid="true"] { border: 2px solid var(--ink); }
.nl-msg { margin-top: var(--space-1); font-size: 14px; min-height: 1.5em; }
.mention { margin-top: var(--space-1-5); font-size: 12px; line-height: 1.5; color: var(--taupe); }

/* ---------- FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  min-height: 60px; padding-block: var(--space-1-5); cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; flex: none; transition: transform var(--duree-base) var(--courbe-sortie); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .reponse { padding-bottom: var(--space-3); color: var(--brun); max-width: var(--measure); }

/* ---------- Pied de page */
.footer { background: var(--ink); color: var(--on-ink); padding-block: var(--space-8) var(--space-4); }
.footer :focus-visible { outline-color: var(--on-ink); }
.footer-cols { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.nowrap { white-space: nowrap; }
.footer-logo { width: 200px; height: auto; }
.footer .surtitre { color: var(--ink-text-muted); margin-bottom: var(--space-1-5); }
.footer address, .footer p, .footer li { font-size: 15px; line-height: 1.7; }
.footer a { color: var(--ink-text-muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer a:hover, .footer a:focus-visible { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bas {
  margin-top: var(--space-6); padding-top: var(--space-2); border-top: 1px solid var(--brun);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1); font-size: 12px; color: var(--ink-text-muted);
}

/* ---------- Barre d'action mobile */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1);
  padding: var(--space-1) var(--space-1) calc(var(--space-1) + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--filet);
  transform: translateY(110%); transition: transform var(--duree-base) var(--courbe-sortie);
}
.barre.is-visible { transform: none; }
.barre .btn { padding: 0 12px; }
@media (max-width: 767px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .barre { display: none; } }

/* ---------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
