/* ============================================================
   COIFFURE À DOMICILE ORAN — Site final
   Mode clair : Éditorial magazine (lin & encre, accent terracotta)
   Mode sombre : Noir & or champagne (esprit bridal cinéma)
   Bilingue FR / AR (RTL), typographie Tajawal en arabe.
   ============================================================ */

:root {
  --bg: #f4efe7;
  --bg-alt: #ece5d8;
  --surface: #faf7f1;
  --ink: #211d18;
  --ink-soft: #5d564b;
  --accent: #b0552f;
  --accent-soft: #e8c9a8;
  --line: rgba(33, 29, 24, 0.18);
  --inverse-bg: #211d18;
  --inverse-text: #f4efe7;
  --inverse-soft: rgba(244, 239, 231, 0.75);
  --btn-bg: #211d18;
  --btn-text: #f4efe7;
  --btn-hover: #b0552f;
  --shadow: rgba(33, 29, 24, 0.14);
  --header-bg: rgba(244, 239, 231, 0.88);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #100d0e;
  --bg-alt: #181314;
  --surface: #1c1618;
  --ink: #f3ece2;
  --ink-soft: rgba(243, 236, 226, 0.62);
  --accent: #cfa86a;
  --accent-soft: #cfa86a;
  --line: rgba(207, 168, 106, 0.28);
  --inverse-bg: #1c1618;
  --inverse-text: #f3ece2;
  --inverse-soft: rgba(243, 236, 226, 0.65);
  --btn-bg: #cfa86a;
  --btn-text: #1c150b;
  --btn-hover: #a8814a;
  --shadow: rgba(0, 0, 0, 0.5);
  --header-bg: rgba(16, 13, 14, 0.85);
}

/* ---------- Arabe : typographie & ajustements ---------- */
html[lang="ar"] {
  --serif: "Tajawal", "Fraunces", Georgia, serif;
  --sans: "Tajawal", system-ui, sans-serif;
}
html[lang="ar"] body { font-weight: 400; font-size: 1.02rem; }
html[lang="ar"] .hero-title,
html[lang="ar"] .section-head h2,
html[lang="ar"] .mariee-text h2,
html[lang="ar"] .contact-title,
html[lang="ar"] .manifesto p,
html[lang="ar"] .quote p { font-weight: 500; letter-spacing: 0; line-height: 1.25; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] em { font-style: normal; color: var(--accent); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-weight: 400; color: var(--accent); }
html[lang="ar"] em { font-style: normal; }

/* ---------- Apparitions au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
}
.brand { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; letter-spacing: 0.02em; white-space: nowrap; }
.brand em { color: var(--accent); }

.nav { display: flex; gap: 1.5rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.nav a { position: relative; padding: 0.2rem 0; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 1250px) {
  .nav { gap: 0.9rem; font-size: 0.72rem; }
  .header-cta { padding: 0.55rem 1rem; }
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-controls { display: flex; align-items: center; gap: 0.7rem; }
.ctrl-btn {
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 0.9rem;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em;
  cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  transition: border-color .3s ease, color .3s ease;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.ctrl-btn svg { width: 15px; height: 15px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.header-cta {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--ink); padding: 0.65rem 1.4rem; border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.header-cta:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 42px; height: 42px; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Menu mobile plein écran ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 0.5rem; padding: 5rem 2.5rem 3rem;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
html[dir="rtl"] .mobile-menu { align-items: flex-end; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.3;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .menu-note { margin-top: 2rem; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.08em; }

/* ============================================================
   HERO (accueil)
   ============================================================ */
.hero { max-width: 1320px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 2.5rem 0; }
.kicker {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.98; letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.hero-row {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: end;
}
.hero-figure { aspect-ratio: 4 / 3; overflow: hidden; margin-left: clamp(0rem, 6vw, 6rem); }
.hero-figure img { width: 100%; height: 100%; transition: transform 1.2s ease; }
.hero-figure:hover img { transform: scale(1.03); }
.hero-aside { padding-bottom: 0.5rem; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); max-width: 34ch; }

.btn-line {
  display: inline-block; margin-top: 2rem;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em;
  padding-bottom: 0.45rem; border-bottom: 1px solid var(--ink);
  transition: color .3s ease, border-color .3s ease;
}
.btn-line:hover { color: var(--accent); border-color: var(--accent); }
.hero-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Bandeau défilant ---------- */
.marquee {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.1rem 0;
}
.marquee-track {
  display: flex; gap: 1.6rem; align-items: center; width: max-content;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
  animation: scroll 28s linear infinite;
}
html[lang="ar"] .marquee-track { font-style: normal; }
.marquee-track .dot { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { max-width: 1320px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 2.5rem; }
.manifesto p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.35;
  max-width: 26ch; margin-left: auto; margin-right: clamp(0rem, 8vw, 9rem);
}
html[dir="rtl"] .manifesto p { margin-left: clamp(0rem, 8vw, 9rem); margin-right: auto; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: 1320px; margin: 0 auto; padding: 0 2.5rem clamp(4rem, 9vw, 8rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.section-sub { color: var(--ink-soft); max-width: 56ch; margin-top: 0.8rem; }
.section-foot { margin-top: 2.2rem; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Page intérieure : hero compact ---------- */
.page-hero { max-width: 1320px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 2.5rem clamp(2rem, 4vw, 3rem); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 1.2rem;
}
.page-hero .lead { margin-top: 1.6rem; }

/* ============================================================
   MENU PRESTATIONS (lignes éditoriales)
   ============================================================ */
.menu { list-style: none; border-top: 1px solid var(--line); }
.menu-row {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.7rem 0.5rem; border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s ease, padding-right .3s ease;
}
.menu-row:hover { background: var(--bg-alt); padding-left: 1.2rem; }
html[dir="rtl"] .menu-row:hover { padding-left: 0.5rem; padding-right: 1.2rem; }
.menu-num { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
html[lang="ar"] .menu-num { font-style: normal; }
.menu-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.2rem; }
.menu-body p { color: var(--ink-soft); font-size: 0.98rem; max-width: 52ch; }
.menu-price { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
html[lang="ar"] .menu-price { text-transform: none; }
.menu-row-accent .menu-body h3 { color: var(--accent); }

/* ---------- Galerie horizontale (accueil) ---------- */
.section-gallery { padding-left: 0; padding-right: 0; }
.section-gallery .section-head { padding: 0 2.5rem; }
.strip {
  display: flex; gap: 1.4rem; overflow-x: auto; padding: 0 2.5rem 2.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start;
}
.strip::-webkit-scrollbar { display: none; }
.strip-item { flex: 0 0 clamp(240px, 30vw, 380px); scroll-snap-align: start; }
.strip-item img { width: 100%; aspect-ratio: 3 / 4; height: auto; transition: transform 1s ease; }
.strip-item:hover img { transform: scale(1.03); }
.strip-item figcaption {
  margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
}
html[lang="ar"] .strip-item figcaption { font-style: normal; }
.strip-hint {
  padding: 0 2.5rem; margin-top: 0.2rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-soft);
}

/* ---------- Galerie grille (page galerie) ---------- */
.gal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.gal figure { overflow: hidden; }
.gal img { width: 100%; aspect-ratio: 3 / 4; height: auto; transition: transform 1s ease; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
html[lang="ar"] .gal figcaption { font-style: normal; }

/* ============================================================
   SECTION MARIÉE (bloc inversé)
   ============================================================ */
.mariee { background: var(--inverse-bg); color: var(--inverse-text); border-block: 1px solid var(--line); }
.mariee-inner {
  max-width: 1320px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 2.5rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.mariee-text .label { color: var(--accent-soft); }
.mariee-text h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.02; margin: 1.2rem 0 1.6rem;
}
.mariee-text h2 em { color: var(--accent-soft); }
.mariee-text p { color: var(--inverse-soft); max-width: 42ch; }
.btn-line-light { border-color: var(--inverse-text); color: var(--inverse-text); }
.btn-line-light:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.mariee-figure { aspect-ratio: 4 / 5; overflow: hidden; }
.mariee-figure img { width: 100%; height: 100%; }

/* ---------- Étapes (page mariée) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--accent); line-height: 1; }
html[lang="ar"] .step-num { font-style: normal; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 1rem 0 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

.includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; max-width: 900px; }
.includes li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.includes li::before { content: "— "; color: var(--accent); }

/* ============================================================
   AVIS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.quote { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.25rem; line-height: 1.5; }
html[lang="ar"] .quote p { font-style: normal; }
.quote footer { margin-top: 1.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); }
html[lang="ar"] .quote footer { text-transform: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0.2rem; text-align: start;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink);
}
.faq-q .faq-icon { font-family: var(--sans); color: var(--accent); font-size: 1.4rem; transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  color: var(--ink-soft); font-size: 0.98rem;
}
.faq-a p { padding: 0 0.2rem 1.5rem; max-width: 62ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact { text-align: center; padding: clamp(5rem, 11vw, 10rem) 2rem; border-top: 1px solid var(--line); }
.contact-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.02;
}
.btn-solid {
  display: inline-block; margin-top: 2.5rem;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 1.1rem 2.6rem; border-radius: 999px;
  transition: background .3s ease;
}
.btn-solid:hover { background: var(--btn-hover); }
.contact-zones { margin-top: 2rem; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---------- Page contact : infos ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.info-list { list-style: none; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0.2rem; border-bottom: 1px solid var(--line); }
.info-list .info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); padding-top: 0.25rem; }
html[lang="ar"] .info-list .info-label { text-transform: none; }
.info-list p { color: var(--ink); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 1.8rem 2.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-soft);
}
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .header-inner { padding: 0.9rem 1.4rem; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero, .page-hero, .section, .manifesto, .mariee-inner { padding-left: 1.4rem; padding-right: 1.4rem; }
  .section-gallery .section-head, .strip, .strip-hint { padding-left: 1.4rem; padding-right: 1.4rem; }
  .footer-inner { padding: 1.5rem 1.4rem; }

  .hero-row { grid-template-columns: 1fr; }
  .hero-figure { margin-left: 0; aspect-ratio: 16 / 10; }
  .mariee-inner { grid-template-columns: 1fr; }
  .mariee-figure { order: -1; aspect-ratio: 16 / 10; }
  .mariee-figure img { height: 100%; }
  .quotes, .steps { grid-template-columns: 1fr; }
  .menu-row { grid-template-columns: 2.5rem 1fr; }
  .menu-price { grid-column: 2; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .includes { grid-template-columns: 1fr; }
}

/* ============================================================
   BANDEAU « EN COURS DE DÉVELOPPEMENT »
   ============================================================ */
.dev-banner {
  position: relative; z-index: 60;
  background: var(--accent); color: #fdf9f4;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.5rem 2.8rem; text-align: center;
  font-size: 0.8rem; letter-spacing: 0.06em;
}
[data-theme="dark"] .dev-banner { color: #1c150b; }
.dev-banner-text { flex: 1; }
.dev-banner-close {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0.2rem 0.4rem; opacity: 0.75;
}
.dev-banner-close:hover { opacity: 1; }
@media (max-width: 960px) {
  .dev-banner { font-size: 0.72rem; padding: 0.45rem 2.4rem; }
}
