/* ══════════════════════════════════════════════════════════
   Maison Qalya — feuille de style commune
   Palette : crème / terracotta / olive / aubergine / laiton
   ══════════════════════════════════════════════════════════ */
:root {
  --creme: #FAF6EF;
  --creme-fonce: #F2EADE;
  --terracotta: #B4552D;
  --terracotta-fonce: #96431F;
  --olive: #6B7048;
  --olive-fonce: #565B38;
  --aubergine: #4A2328;
  --laiton: #C9A227;
  --encre: #2E2320;
  --blanc: #FFFDF9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; /* les ancres ne se cachent pas sous la nav fixe */ }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--encre);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
img { max-width: 100%; }

/* ── Bandeau utilitaire ── */
.utility-bar {
  background: var(--aubergine);
  color: var(--creme);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.5rem 1rem;
}
.utility-bar span { opacity: 0.85; }
.utility-bar b { color: var(--laiton); font-weight: 500; }

/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4vw;
  position: relative;
  z-index: 20;
}
.nav.nav-overlay { position: absolute; top: 2.1rem; left: 0; right: 0; }
.nav.nav-solid { background: var(--blanc); border-bottom: 1px solid #EAE0D2; position: sticky; top: 0; z-index: 30; }
/* Home : passé le hero, la nav devient une barre fixe qui suit l'utilisateur.
   Fond opaque sans backdrop-filter : évite les artefacts de rendu sur barre fixe.
   Le hero (isolation:isolate) emprisonne la nav dans son contexte d'empilement :
   on remonte tout le hero au-dessus du reste quand la barre est fixe. */
body.scrolled .hero { z-index: 100; }
body.scrolled .nav-overlay {
  position: fixed; top: 0;
  z-index: 30;
  background: var(--aubergine);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  animation: navdrop 0.35s ease;
}
@keyframes navdrop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.scrolled .nav-overlay { animation: none; } }
.nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  letter-spacing: 0.42em;
  color: var(--blanc);
  text-decoration: none;
  text-transform: uppercase;
}
.nav .logo small { display: block; font-size: 0.62rem; letter-spacing: 0.55em; opacity: 0.75; margin-top: -2px; }
.nav.nav-solid .logo { color: var(--aubergine); }
.nav ul { display: flex; gap: 2.4rem; list-style: none; }
.nav ul a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.nav-solid ul a { color: var(--encre); }
.nav ul a:hover, .nav ul a.active { border-color: var(--laiton); }

/* Burger mobile */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
  z-index: 40;
}
.burger span, .burger span::before, .burger span::after {
  content: '';
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.nav-solid .burger span, .nav-solid .burger span::before, .nav-solid .burger span::after { background: var(--encre); }
.burger span { top: 20px; }
.burger span::before { top: -7px; left: 0; right: 0; }
.burger span::after { top: 7px; left: 0; right: 0; }
body.menu-open .burger span { background: transparent !important; }
body.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); background: var(--creme); }
body.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); background: var(--creme); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--aubergine);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
/* Menu ouvert : la nav passe au-dessus de l'overlay pour garder logo + croix visibles */
body.menu-open .nav { z-index: 50; background: transparent; border-color: transparent; }
body.menu-open .nav .logo { color: var(--creme); }
body.menu-open .nav ul { display: none; }
.mobile-menu a {
  color: var(--creme);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
}
.mobile-menu a.active { color: var(--laiton); }
.mobile-menu .menu-sub { font-family: 'Jost', sans-serif; font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--laiton); margin-bottom: 0.4rem; }
@media (max-width: 900px) {
  .nav ul { display: none; }
  .burger { display: block; }
}

/* ── Boutons ── */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--blanc); box-shadow: 0 8px 30px rgba(180,85,45,0.35); }
.btn-primary:hover { background: var(--terracotta-fonce); }
.btn-ghost { color: var(--blanc); border: 1px solid rgba(255,253,249,0.55); backdrop-filter: blur(6px); background: rgba(255,253,249,0.08); }
.btn-ghost:hover { background: rgba(255,253,249,0.18); }
.btn-outline { background: transparent; border: 1px solid var(--terracotta); color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--blanc); }
.btn-olive { background: var(--olive); color: var(--blanc); }
.btn-olive:hover { background: var(--olive-fonce); }

/* ── Sections ── */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 4vw; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head .surtitre, .surtitre {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}
.section-head h1, .section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; }
.section-head p { margin-top: 1rem; opacity: 0.75; }

/* ── En-tête de page intérieure ── */
.page-hero {
  background: var(--aubergine);
  color: var(--creme);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 4vw;
}
.page-hero .surtitre { color: var(--laiton); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin-bottom: 0.9rem; }
.page-hero p { max-width: 560px; margin: 0 auto; opacity: 0.85; }
.page-hero .btn { margin: 0.35rem 0.3rem; } /* espace même quand les boutons passent à la ligne */

/* ── Fil d'Ariane ── */
.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 4vw;
  background: var(--blanc);
  border-bottom: 1px solid #EAE0D2;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; opacity: 0.4; }
.breadcrumb a { color: var(--terracotta); text-decoration: none; }
.breadcrumb li:last-child { opacity: 0.6; }

/* ── Bande réassurance ── */
.reassurance {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  flex-wrap: wrap;
  padding: 1.4rem 1.5rem;
  background: var(--blanc);
  border-bottom: 1px solid #EAE0D2;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.reassurance span::before { content: '◆'; color: var(--laiton); font-size: 0.6rem; margin-right: 0.6rem; vertical-align: 2px; }

/* ── Cartes univers (arches) ── */
.univers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  max-width: 1240px;
  margin: 0 auto;
}
.univers-card {
  position: relative;
  border-radius: 18px 18px 120px 120px / 18px 18px 90px 90px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  isolation: isolate;
}
.univers-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: -1;
}
.univers-card:hover img { transform: scale(1.06); }
.univers-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(46,26,20,0.72) 100%);
  z-index: 0;
}
.univers-card .card-txt {
  position: relative; z-index: 1;
  width: 100%;
  padding: 1.6rem 1.4rem 3rem; /* marge basse généreuse : le texte reste dans l'arche */
  color: var(--blanc);
  text-align: center;
}
.univers-card h3 { font-size: 1.55rem; margin-bottom: 0.2rem; }
.univers-card p { font-size: 0.85rem; opacity: 0.85; }

/* ── Cartes produit ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 280px));
  justify-content: center;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.prod-card {
  background: var(--blanc);
  color: var(--encre); /* reste lisible même dans une section sombre */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #EFE7D9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.section-sombre .prod-card p { opacity: 0.7; margin-bottom: 0; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(74,35,40,0.10); }
.prod-card .prod-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--creme-fonce); }
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-card .prod-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.prod-card h3 { font-size: 1.2rem; }
.prod-card .prod-desc { font-size: 0.83rem; opacity: 0.7; flex: 1; }
.prod-card .prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.prod-card .prix { font-weight: 500; color: var(--terracotta); font-size: 1.05rem; }
.prod-card .add {
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  background: none;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.prod-card .add:hover { background: var(--terracotta); color: var(--blanc); }
.prod-card.indispo .prod-img { filter: grayscale(0.7) opacity(0.75); }
.badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  background: var(--aubergine);
  color: var(--creme);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
}
.badge.badge-or { background: var(--laiton); color: var(--aubergine); }
.badge.badge-olive { background: var(--olive); color: var(--blanc); }

/* Sélecteur de taille (coffrets) */
.tailles { display: flex; gap: 0.45rem; margin: 0.5rem 0 0.2rem; flex-wrap: wrap; }
.taille input { position: absolute; opacity: 0; pointer-events: none; }
.taille span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid #D8CCB8;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.taille input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--blanc); }
.taille input:focus-visible + span { outline: 2px solid var(--laiton); }

/* Sous-titre de catégorie dans les pages univers */
.cat-head { display: flex; align-items: baseline; gap: 0.9rem; max-width: 1240px; margin: 0 auto 1.6rem; }
.cat-head h2 { font-size: 1.7rem; }
.cat-head .cat-note { font-size: 0.8rem; opacity: 0.6; }
.cat-block + .cat-block { margin-top: 3.5rem; }

/* ── FAQ (format GEO : contenu natif dans le DOM) ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--blanc);
  border: 1px solid #EFE7D9;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--terracotta); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.7rem; font-size: 0.92rem; opacity: 0.8; }

/* ── Bandeau saisonnier ── */
.saison {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  color: var(--blanc);
}
.saison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.saison::after { content: ''; position: absolute; inset: 0; background: rgba(46,26,20,0.55); z-index: 0; }
.saison > div { position: relative; z-index: 1; padding: 2.5rem 1.5rem; }
.saison .surtitre { color: var(--laiton); }
.saison h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.7rem; }
.saison p { opacity: 0.9; margin-bottom: 1.6rem; }

/* ── Témoignages ── */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.avis-card {
  background: var(--blanc);
  border: 1px solid #EFE7D9;
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.avis-card .etoiles { color: var(--laiton); letter-spacing: 0.2em; font-size: 0.9rem; }
.avis-card blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; font-style: italic; line-height: 1.45; }
.avis-card .auteur { font-size: 0.8rem; opacity: 0.6; }

/* ── Split éditorial (Notre Histoire etc.) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split img.arche {
  width: 100%;
  border-radius: 200px 200px 18px 18px / 160px 160px 18px 18px;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.section-sombre { background: var(--aubergine); color: var(--creme); }
.section-sombre .surtitre { color: var(--laiton); }
.section-sombre h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.18; margin-bottom: 1.3rem; }
.section-sombre p { opacity: 0.82; margin-bottom: 1rem; }
.section-sombre .btn-laiton { background: transparent; border: 1px solid var(--laiton); color: var(--laiton); }
.section-sombre .btn-laiton:hover { background: var(--laiton); color: var(--aubergine); }

/* ── Bannière image + texte ── */
.banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 420px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46,26,20,0.78) 0%, rgba(46,26,20,0.25) 65%, transparent 100%); z-index: 0; }
.banner .banner-txt { position: relative; z-index: 1; color: var(--blanc); padding: clamp(2rem, 5vw, 4rem); max-width: 520px; }
.banner h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.banner p { opacity: 0.88; margin-bottom: 1.8rem; }

/* ── Étapes (parcours devis) ── */
.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.etapes .num {
  width: 52px; height: 52px;
  margin: 0 auto 0.9rem;
  border: 1px solid var(--laiton);
  color: var(--laiton);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}
.etapes h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.etapes p { font-size: 0.84rem; opacity: 0.75; }

/* ── Formulaires ── */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--blanc);
  border: 1px solid #EFE7D9;
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: 0.35rem; }
.champ label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.champ input, .champ select, .champ textarea {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #D8CCB8;
  border-radius: 12px;
  background: var(--creme);
  color: var(--encre);
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--laiton); border-color: transparent; }
.champ textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; opacity: 0.55; margin-top: 0.9rem; }

/* ── Newsletter ── */
.newsletter { text-align: center; background: var(--blanc); border-top: 1px solid #EAE0D2; }
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.6rem; }
.newsletter p { opacity: 0.7; margin-bottom: 1.8rem; }
.newsletter form { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.newsletter input {
  font-family: 'Jost', sans-serif;
  padding: 0.9rem 1.4rem;
  border: 1px solid #D8CCB8;
  border-radius: 999px;
  width: min(340px, 80vw);
  font-size: 0.95rem;
  background: var(--creme);
}
.newsletter input:focus { outline: 2px solid var(--laiton); border-color: transparent; }
.newsletter button {
  font-family: 'Jost', sans-serif;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 999px;
  background: var(--olive);
  color: var(--blanc);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.newsletter button:hover { background: var(--olive-fonce); }

/* ── Footer ── */
footer {
  background: var(--encre);
  color: rgba(250,246,239,0.75);
  padding: 3rem 4vw 2rem;
  font-size: 0.85rem;
  text-align: center;
}
footer .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--creme);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  text-decoration: none;
}
footer nav { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--laiton); }
footer .legal { opacity: 0.5; font-size: 0.75rem; }

/* ── Animations reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
