/* ==========================================================================
   LA CAVERNE D’ASSIA — styles.css
   --------------------------------------------------------------------------
   Sommaire
   0. Polices auto-hébergées
   1. Variables (couleurs, typo, espacements)  ← à personnaliser ici
   2. Reset & base
   3. Utilitaires (container, boutons, liens, arche)
   4. Header & navigation
   5. Hero
   6. Sections génériques
   7. Notre univers
   8. Collections
   9. Pièces du moment (galerie)
   10. Témoignages
   11. Contact & formulaire
   12. Footer
   13. Mentions légales (dialog)
   14. Animations (reveal au scroll)
   15. Responsive
   16. Préférences utilisateur (reduced motion) & focus
   ========================================================================== */


/* ==========================================================================
   0. POLICES AUTO-HÉBERGÉES (dossier fonts/, licence SIL OFL)
   Plus d’appel à Google Fonts : rien ne part chez un tiers, et la CSP peut
   se limiter à 'self'.
   ========================================================================== */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/lato-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/lato-latin-700-normal.woff2') format('woff2'); }


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  /* --- Couleurs --- */
  /* Contrastes vérifiés WCAG AA (4,5:1 minimum pour du texte) — voir README, section Accessibilité.
     Changer ces valeurs sans revérifier le contraste casse l’accessibilité du site. */
  --color-terracotta:      #C17F59;   /* accent décoratif : filets, puces, contour de focus */
  --color-terracotta-dark: #A5673F;   /* fond des boutons — 4,5:1 avec du texte blanc */
  --color-terracotta-deep: #8E5533;   /* texte des liens et survol des boutons — 5,2:1 sur crème */
  --color-copper:          #96601F;   /* prix et étoiles — 4,5:1 sur crème */
  --color-cream:           #FAF3E0;   /* fond principal */
  --color-sand:            #F1E5CF;   /* fond alterné */
  --color-paper:           #FFFDF8;   /* fond du formulaire */
  --color-sand-dark:       #E6D7BC;   /* fond des images en attente sur fond sable */
  --color-brown:           #3E3B36;   /* texte */
  --color-brown-deep:      #2B2723;   /* bas de footer, overlay hero */
  --color-muted:           #75695C;   /* texte secondaire */
  --color-line:            rgba(62, 59, 54, 0.14);
  --color-error:           #A8452E;
  --color-success:         #4E6B3A;

  /* --- Typographie --- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  clamp(2.25rem, 3.5vw, 3.25rem);
  --text-hero: clamp(3rem, 8vw, 6.75rem);

  /* --- Mise en page --- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad:   clamp(4rem, 9vw, 7.5rem);
  --header-height: 92px;

  /* --- Divers --- */
  --radius-arch: 999px 999px 0 0;   /* la forme signature du site */
  --radius-sm:   3px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration:    260ms;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* décale les ancres sous le header fixe */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-brown);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-terracotta-deep);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--color-brown); }

ul { padding: 0; margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; }

/* Lien d’évitement (visible uniquement au focus clavier) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--color-brown);
  color: var(--color-cream);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--color-cream); }


/* ==========================================================================
   3. UTILITAIRES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.9rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #fff;                       /* blanc pur : le crème tombait à 4,1:1 sur ce fond */
}
.btn--primary:hover {
  background: var(--color-terracotta-deep);
  border-color: var(--color-terracotta-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-brown);
  color: var(--color-brown);
}
.btn--outline:hover {
  background: var(--color-brown);
  color: var(--color-cream);
}

.btn--light {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-brown);
}
.btn--light:hover {
  background: transparent;
  color: var(--color-cream);
}

/* --- Lien "voir plus" souligné --- */
.link-more {
  display: inline-block;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--color-terracotta-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-more:hover { color: var(--color-brown); }

/* --- Icône Instagram --- */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--color-brown);
  padding: .4rem;
  margin: -.4rem;
  border-radius: 50%;
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.icon-link:hover {
  color: var(--color-terracotta);
  transform: translateY(-2px);
}
.icon-link svg { flex-shrink: 0; }
.icon-link--text {
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9375rem;
}

/* --- L’arche : cadre d’image signature du site --- */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--color-sand);
  aspect-ratio: 3 / 5;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 243, 224, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 8px 30px rgba(62, 59, 54, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
  position: relative; /* point d’ancrage du menu mobile */
}

.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img {
  height: 64px;          /* logo illustré : il a besoin de hauteur pour rester lisible */
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-nav__list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  font-size: .9375rem;
  letter-spacing: .02em;
  color: var(--color-brown);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--color-terracotta-deep); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Hamburger (affiché uniquement en mobile, cf. responsive) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-brown);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-brown-deep);
  color: var(--color-cream);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 39, 35, 0.85) 0%,
    rgba(43, 39, 35, 0.40) 45%,
    rgba(43, 39, 35, 0.12) 100%
  );
}
.hero__content {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 64rem;
}
.hero__title {
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  color: var(--color-cream);
}
.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: .01em;
  margin-bottom: 2.25rem;
  color: rgba(250, 243, 224, 0.85);
}

/* Respiration du hero : l’image se dézoome très lentement (20 s, 3 %).
   Invisible si on la cherche, sensible si on ne la cherche pas.
   Pour la retirer : supprimer ces cinq lignes, rien d’autre n’en dépend. */
.hero__image {
  animation: hero-zoom 20s var(--ease) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1); }
}

/* Une seule animation d’entrée : le bloc titre du hero */
.js .hero__content {
  animation: hero-in 1100ms var(--ease) both;
  animation-delay: 150ms;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   6. SECTIONS GÉNÉRIQUES
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--sand { background: var(--color-sand); }

.section__header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

/* Sur fond sable, le placeholder d’image doit rester visible */
.section--sand .arch,
.section--sand .gallery__media { background: var(--color-sand-dark); }

/* Phrase d’introduction en italique sous le titre */
.section__intro,
.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 36rem;
}
.section__intro { margin-bottom: 0; }
.lead {
  color: var(--color-brown);
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   7. NOTRE UNIVERS
   ========================================================================== */
.univers__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.univers__text p { max-width: 34rem; }
.univers__text .btn { margin-top: 1.5rem; }

.univers__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 2vw, 1.25rem);
  align-items: end;
}
/* L’arche du milieu est surélevée : rythme d’arcade */
.univers__images .arch:nth-child(2) { margin-bottom: 18%; }


/* ==========================================================================
   8. COLLECTIONS
   ========================================================================== */
.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.collection-card {
  display: flex;
  flex-direction: column;
}
.collection-card__media { aspect-ratio: 4 / 5; }
.collection-card__media img {
  transition: transform 520ms var(--ease);
}
.collection-card:hover .collection-card__media img,
.collection-card:focus-within .collection-card__media img {
  transform: scale(1.05);
}

.collection-card__body { padding-top: 1.5rem; }
.collection-card__body h3 {
  font-size: var(--text-2xl);
  margin-bottom: .5rem;
  transition: color var(--duration) var(--ease);
}
.collection-card:hover .collection-card__body h3 { color: var(--color-terracotta-deep); }
.collection-card__body p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}


/* ==========================================================================
   9. PIÈCES DU MOMENT — GALERIE
   ========================================================================== */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.gallery__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}
.gallery__item:hover .gallery__media img,
.gallery__item:focus-within .gallery__media img {
  transform: scale(1.06);
}
.gallery__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: .9rem;
}
.gallery__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.25;
}
.gallery__price {
  color: var(--color-copper);
  font-weight: 700;
  font-size: .9375rem;
  white-space: nowrap;
}


/* ==========================================================================
   10. TÉMOIGNAGES
   ========================================================================== */
.temoignages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.temoignage {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-terracotta);
}
.temoignage__stars {
  color: var(--color-copper);
  letter-spacing: .15em;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.temoignage__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.temoignage__text::before { content: '« '; }
.temoignage__text::after  { content: ' »'; }
.temoignage__author {
  font-size: .9375rem;
  font-weight: 700;
}
.temoignage__author span {
  display: block;
  font-weight: 400;
  color: var(--color-muted);
}


/* ==========================================================================
   11. CONTACT & FORMULAIRE
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__info .section__intro { margin-bottom: 2.5rem; }

.contact__address {
  font-size: var(--text-lg);
  line-height: 1.55;
  margin-bottom: 2rem;
}
.contact__address a { color: var(--color-brown); text-decoration: underline; text-underline-offset: 3px; }
.contact__address a:hover { color: var(--color-terracotta-deep); }

.hours {
  margin: 0 0 2.5rem;
  max-width: 24rem;
}
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--color-line);
}
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--color-muted); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

/* --- Formulaire --- */
.contact-form {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.contact-form__title {
  font-size: var(--text-2xl);
  margin-bottom: 1.5rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: .4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: .85rem 1rem;
  color: var(--color-brown);
  background: var(--color-cream);
  border: 1px solid rgba(62, 59, 54, 0.3);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.22);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--color-error); }

/* Mention RGPD, juste avant le bouton d’envoi */
.form-consent {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.form-field__error {
  display: none;
  margin: .4rem 0 0;
  font-size: .85rem;
  color: var(--color-error);
}
.form-field.has-error .form-field__error { display: block; }

/* Champ piège anti-spam : hors écran, invisible pour les humains */
.form-field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1rem 0 0;
  font-size: .95rem;
}
.form-status.is-success { color: var(--color-success); }
.form-status.is-error   { color: var(--color-error); }


/* ==========================================================================
   11b. PLAN D’ACCÈS & COMMENT VENIR
   ========================================================================== */
.contact__map {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.map {
  position: relative;
  width: 100%;              /* obligatoire : en grille, un bloc avec aspect-ratio ne s’étire pas tout seul */
  aspect-ratio: 16 / 10;
  background: var(--color-sand-dark);
  border-radius: 4px;
  overflow: hidden;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}
.map__placeholder p {
  max-width: 26rem;
  color: var(--color-muted);
  font-size: .95rem;
}

.access h3 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}
.access ul { list-style: none; margin-bottom: 1.5rem; }
.access li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: .95rem;
}
.access li strong { font-weight: 700; }
.access li span { color: var(--color-muted); }


/* ==========================================================================
   11c. FAQ — <details> natif, aucun JS nécessaire
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq__grid .section__header { margin-bottom: 0; }

.faq__item { border-top: 1px solid var(--color-line); }
.faq__item:last-child { border-bottom: 1px solid var(--color-line); }

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-terracotta-deep); }
/* le "+" devient "×" à l’ouverture */
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-terracotta);
  transition: transform var(--duration) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }

/* ATTENTION — ne pas « animer » l’ouverture de la FAQ avec ::details-content.
   Testé : `@supports (interpolate-size: allow-keywords)` renvoie true sur Chrome
   récent, mais la transition block-size 0 → auto ne se résout pas sur
   ::details-content : les réponses restent à hauteur zéro, donc invisibles,
   FAQ ouverte comprise. Vérifié par capture d’écran, réponses illisibles avec
   la règle, lisibles sans. Le dépliage instantané natif est le bon compromis. */

.faq__answer {
  padding: 0 3.25rem 1.5rem 0;
  max-width: 40rem;
  color: var(--color-muted);
}
.faq__answer a { text-decoration: underline; text-underline-offset: 3px; }


/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
}
.site-footer__brand p {
  max-width: 28rem;
  color: var(--color-muted);
  font-size: .95rem;
}
.site-footer__logo {
  height: 100px;         /* en grand dans le footer, il porte l’ambiance */
  width: auto;
  margin-bottom: 1.25rem;
}
.site-footer h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer nav a { color: var(--color-brown); }
.site-footer nav a:hover { color: var(--color-terracotta-deep); }

.site-footer__bottom {
  background: var(--color-brown-deep);
  color: rgba(250, 243, 224, 0.75);
  font-size: var(--text-sm);
  padding-block: 1.25rem;
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}
.site-footer__bottom p { margin: 0; }


/* ==========================================================================
   13. PAGES SECONDAIRES (mentions légales, 404)
   Les mentions légales sont désormais une vraie page indexable
   (mentions-legales.html) et non plus une boîte de dialogue ouverte en JS.
   ========================================================================== */
.page-legal {
  padding-top: calc(var(--header-height, 88px) + clamp(2rem, 5vw, 4rem));
}
.page-legal__inner {
  max-width: 46rem;
}
.page-legal h1 { margin-bottom: 1rem; }
.page-legal h2 {
  font-size: var(--text-2xl);
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}
.page-legal p,
.page-legal li { font-size: .95rem; }
.page-legal__back { margin-top: 3rem; }

/* Tableau "données personnelles" : libellé / explication */
.legal-list { margin: 0 0 1.5rem; }
.legal-list > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--color-line);
}
.legal-list dt {
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.legal-list dd {
  margin: 0;
  font-size: .95rem;
}
.legal-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.legal-bullets li { margin-bottom: .6rem; }

/* --- Page 404 --- */
.page-404 { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.page-404__inner { max-width: 34rem; }
.page-404__logo { margin: 0 auto 2rem; }
.page-404__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  line-height: 1;
  color: var(--color-terracotta);
  margin: 0 0 .5rem;
}
.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}


/* ==========================================================================
   13b. STATUT OUVERT / FERMÉ (rempli par script.js)
   ========================================================================== */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-brown);
}
.open-status[hidden] { display: none; }
.open-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-muted);
  flex-shrink: 0;
}
.open-status.is-open::before  { background: #4E9A4E; box-shadow: 0 0 0 3px rgba(78, 154, 78, .2); }
.open-status.is-closed::before { background: var(--color-terracotta); }

.open-status--hero {
  display: flex;             /* sur sa propre ligne, au-dessus du bouton */
  width: fit-content;
  margin: -1rem 0 2rem;
  padding: .45rem .9rem .45rem .75rem;
  border-radius: 999px;
  background: rgba(250, 243, 224, 0.14);
  color: var(--color-cream);
  font-weight: 400;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.open-status--hero.is-open::before { background: #7BCB7B; box-shadow: 0 0 0 3px rgba(123, 203, 123, .25); }
.open-status--hero.is-closed::before { background: var(--color-terracotta); }


/* ==========================================================================
   14. ANIMATIONS — apparition au scroll
   Ne s’applique que si JS est actif (classe .js sur <html>)
   ========================================================================== */
/* Un bloc qui apparaît : fondu + léger déplacement vers le haut.
   620 ms plutôt que 800, et 18 px plutôt que 24 : le mouvement se lit
   comme une arrivée nette, pas comme un fondu qui traîne. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Mise en cascade -------------------------------------------------------
   Sur une grille (collections, galerie, témoignages, FAQ), faire apparaître les
   six cartes exactement en même temps donne un « bloc » qui se fond d’un coup.
   Avec .reveal--stagger, c’est le conteneur qui s’efface du décor : il ne bouge
   plus, ce sont ses enfants qui entrent l’un après l’autre, 70 ms d’écart.
   Il suffit d’ajouter la classe dans le HTML, à côté de .reveal. */
.js .reveal--stagger {
  opacity: 1;
  transform: none;
  transition: none;
}
.js .reveal--stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.js .reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal--stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; }
.js .reveal--stagger.is-visible > *:nth-child(2) { transition-delay:  70ms; }
.js .reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal--stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
/* Au-delà de six, on ne rallonge pas l’attente : tout le reste part avec le 6e. */
.js .reveal--stagger.is-visible > *:nth-child(n+7) { transition-delay: 350ms; }


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

/* --- Tablette large --- */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* --- Tablette : menu mobile + grilles à 2 colonnes --- */
@media (max-width: 900px) {
  :root { --header-height: 76px; }

  .site-header__logo img { height: 54px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 20px 40px rgba(62, 59, 54, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility 0s linear var(--duration);
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--container-pad) 1rem;
  }
  .site-nav__link {
    display: block;
    padding: .9rem 0;
    font-family: var(--font-display);
    font-size: 1.375rem;
    border-bottom: 1px solid var(--color-line);
  }
  .site-nav__list li:last-child .site-nav__link { border-bottom: none; }
  .site-nav__link::after { display: none; }

  .collections__grid { grid-template-columns: repeat(2, 1fr); }
  .collections__grid .collection-card:last-child { grid-column: 1 / -1; max-width: calc(50% - .75rem); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .temoignages__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --- Mobile large : tout en une colonne --- */
@media (max-width: 768px) {
  .hero { min-height: 92svh; }
  .hero__content { padding-top: calc(var(--header-height) + 3rem); }

  .univers__grid { grid-template-columns: 1fr; gap: 3rem; }
  .univers__images { order: -1; } /* images avant le texte sur mobile */
  .univers__images .arch:nth-child(2) { margin-bottom: 10%; }

  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact__map { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq__item summary { font-size: var(--text-lg); }
  .faq__answer { padding-right: 0; }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 3rem;
  }
}

/* --- Petit mobile --- */
@media (max-width: 560px) {
  .collections__grid { grid-template-columns: 1fr; }
  .collections__grid .collection-card:last-child { max-width: none; }
  .collection-card__media { max-width: 22rem; }

  .gallery { gap: 1rem; }
  .gallery__caption { flex-direction: column; gap: .2rem; }
  .gallery__name { font-size: var(--text-base); }

  .contact__actions .btn { width: 100%; }
  .contact__actions .icon-link--text { margin-top: .25rem; }

  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  .map { aspect-ratio: 4 / 3; }
  .access li { grid-template-columns: 4.5rem 1fr; }
}


/* ==========================================================================
   16. PRÉFÉRENCES UTILISATEUR & FOCUS
   ========================================================================== */

/* Focus clavier visible et cohérent sur tout le site */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* Respect de "réduire les animations" (réglage système) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .reveal--stagger > *,
  .js .hero__content {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
    transition-delay: 0s;
  }

  /* Pas de dézoom du hero */
  .hero__image { animation: none; }

  .collection-card__media img,
  .gallery__media img,
  .icon-link,
  .btn { transition: none; }

  .btn:hover { transform: none; }

  .collection-card:hover .collection-card__media img,
  .gallery__item:hover .gallery__media img { transform: none; }
}


/* ==========================================================================
   17. BARRE D’ACTIONS MOBILE
   Masquée sur ordinateur, fixée en bas de l’écran sur téléphone.
   Appeler et venir sont les deux seules actions qui comptent pour un showroom :
   elles ne doivent pas être à sept écrans de défilement.
   ========================================================================== */
.quick-bar { display: none; }

@media (max-width: 700px) {
  .quick-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--color-paper);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 -6px 20px rgba(43, 39, 35, .08);
    /* encoche / barre d’accueil iPhone */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .quick-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    padding: .6rem .25rem .55rem;
    min-height: 56px;               /* cible tactile confortable */
    color: var(--color-brown);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
  }
  .quick-bar__item + .quick-bar__item { border-left: 1px solid var(--color-line); }
  .quick-bar__item:active { background: var(--color-sand); }
  .quick-bar__item svg { color: var(--color-terracotta-deep); }

  /* La barre ne doit rien recouvrir en bas de page */
  body { padding-bottom: 68px; }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .quick-bar { transition: transform var(--duration) var(--ease); }
}

/* Impression : ni barre d’actions, ni header collant */
@media print {
  .quick-bar,
  .site-header,
  .nav-toggle,
  .skip-link { display: none !important; }
  body { padding-bottom: 0; }
  .page-legal { padding-top: 0; }
}
