/* ==========================================================================
   Espace Afriquia Dokkali — Feuille de style principale
   Structure :
   1. Variables & base      6. Sections & cartes
   2. Typographie           7. Galerie & lightbox
   3. Boutons               8. Formulaires
   4. En-tête & navigation  9. Pied de page & WhatsApp flottant
   5. Hero                  10. Arabe (RTL) & utilitaires
   ========================================================================== */

/* 1. VARIABLES & BASE ---------------------------------------------------- */
:root {
  --orange: #E87524;          /* Burnt Orange (marque) */
  --orange-600: #C2560E;      /* Version accessible pour texte blanc */
  --orange-700: #A4480B;
  --amber: #F5B041;           /* Golden Amber */
  --cream: #FFF4E6;           /* Cream */
  --sand: #F7E4CB;
  --brown: #402719;           /* Dark Brown */
  --brown-900: #2B1A10;
  --white: #FFFFFF;
  --muted: #6F5240;
  --line: rgba(64, 39, 25, .12);
  --wa: #157A42;              /* Vert WhatsApp accessible */
  --wa-700: #0F6334;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-ar-display: "Cairo", "Tajawal", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-sm: 0 2px 10px rgba(64, 39, 25, .06);
  --shadow: 0 14px 40px -18px rgba(64, 39, 25, .35);
  --shadow-lg: 0 30px 70px -30px rgba(64, 39, 25, .45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Motif marocain discret (étoile à 8 branches) */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23E87524' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23F5B041' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brown);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--brown); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 1000;
  background: var(--brown); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2. TYPOGRAPHIE --------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; color: var(--brown); }
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
em.accent, .accent { font-style: italic; color: var(--orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
@media (max-width: 480px) { .eyebrow { letter-spacing: .12em; } .hero .eyebrow::before, .hero .eyebrow::after { display: none; } }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head.center .lead { margin-inline: auto; }

/* Séparateur ornemental */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--orange); margin: 6px 0 18px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 14px; height: 14px; }

/* 3. BOUTONS ------------------------------------------------------------- */
.btn {
  --bg: var(--orange-600); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-align: center;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  box-shadow: 0 10px 24px -14px rgba(194, 86, 14, .9);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); --bg: var(--orange-700); }
.btn:active { transform: translateY(0); }
.btn--wa { --bg: var(--wa); box-shadow: 0 10px 24px -14px rgba(21, 122, 66, .9); }
.btn--wa:hover { --bg: var(--wa-700); }
.btn--light { --bg: var(--white); --fg: var(--brown); box-shadow: var(--shadow); }
.btn--light:hover { --bg: var(--cream); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .6); box-shadow: none; backdrop-filter: blur(4px); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .12); --bd: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--brown); --bd: rgba(64, 39, 25, .25); box-shadow: none; }
.btn--outline:hover { --bg: var(--brown); --fg: var(--white); --bd: var(--brown); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-600); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 4. EN-TÊTE & NAVIGATION ------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-solid, .site-header--solid {
  background: rgba(255, 250, 243, .94); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); background: var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; color: var(--white); transition: color .3s; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.brand-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.is-solid .brand-text, .site-header--solid .brand-text { color: var(--brown); }

.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; min-width: 42px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); color: var(--white);
  font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover { background: rgba(255, 255, 255, .25); }
.is-solid .lang-btn, .site-header--solid .lang-btn { background: var(--cream); color: var(--brown); border-color: var(--line); }
.lang-btn .ar-label { font-family: var(--font-ar); font-size: 1rem; }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: var(--white);
}
.is-solid .nav-toggle, .site-header--solid .nav-toggle { background: var(--brown); color: var(--white); border-color: var(--brown); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-cta { display: none; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--brown-900) var(--pattern-light);
  color: var(--cream); padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header .brand-text { color: var(--white); }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(255, 244, 230, .1); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--cream);
}
.mobile-menu li a[aria-current="page"] { color: var(--amber); }
.mobile-menu li a svg { width: 20px; height: 20px; opacity: .5; }
.mobile-menu .menu-contact { margin-top: auto; display: grid; gap: 10px; font-size: .95rem; color: rgba(255, 244, 230, .75); }
.mobile-menu .menu-contact a { display: flex; align-items: center; gap: 10px; }
.mobile-menu .menu-contact svg { width: 18px; height: 18px; color: var(--amber); }

@media (min-width: 1100px) {
  .nav-toggle, .mobile-menu { display: none; }
  .nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
  .nav-links a {
    position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem;
    color: rgba(255, 255, 255, .92); transition: color .25s;
  }
  .nav-links a::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--amber); transform: scaleX(0); transition: transform .3s var(--ease);
  }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
  .is-solid .nav-links a, .site-header--solid .nav-links a { color: var(--brown); }
  .nav-cta { display: inline-flex; }
}

/* 5. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px; overflow: hidden; background: var(--brown-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-rows: 1fr 1fr; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img + img { border-top: 2px solid var(--amber); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(43, 26, 16, .5), rgba(43, 26, 16, .72) 75%),
    linear-gradient(180deg, rgba(43, 26, 16, .5) 0%, rgba(43, 26, 16, .1) 40%, rgba(43, 26, 16, .85) 100%);
}
.hero-inner { text-align: center; max-width: 920px; margin-inline: auto; }
.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero p.lead { color: rgba(255, 255, 255, .88); margin-inline: auto; margin-bottom: 32px; }
.hero .btn-row { justify-content: center; }
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 36px;
  font-size: .85rem; color: rgba(255, 255, 255, .8);
}
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags svg { width: 16px; height: 16px; color: var(--amber); }
.scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 20px; display: none;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--amber); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (min-width: 768px) {
  .hero-media { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-media img + img { border-top: 0; border-inline-start: 2px solid var(--amber); }
  .scroll-cue { display: block; }
}

/* Hero des pages intérieures */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--brown-900);
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(56px, 8vw, 100px);
  min-height: min(78svh, 680px); display: flex; align-items: flex-end;
}
.page-hero > picture, .page-hero > img, .page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero > picture img, .page-hero > img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43, 26, 16, .55) 0%, rgba(43, 26, 16, .35) 35%, rgba(43, 26, 16, .92) 100%);
}
.page-hero h1 { color: var(--white); max-width: 18ch; text-wrap: balance; }
.page-hero .lead { color: rgba(255, 255, 255, .88); }
.page-hero .eyebrow { color: var(--amber); }
.page-hero .btn-row { margin-top: 28px; }
.page-hero--short { min-height: 0; }

.breadcrumb { margin-bottom: 18px; font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: rgba(255, 255, 255, .75); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* 6. SECTIONS & CARTES --------------------------------------------------- */
.section { padding-block: var(--section); position: relative; }
.section--cream { background: var(--cream); }
.section--pattern { background: var(--cream) var(--pattern); }
.section--dark { background: var(--brown) var(--pattern-light); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: rgba(255, 244, 230, .78); }
.section--dark .eyebrow { color: var(--amber); }

/* Deux univers */
.duo { display: grid; gap: 22px; }
.duo-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 460px; display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow-lg);
}
.duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; z-index: -2; transition: transform 1.2s var(--ease); }
.duo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43, 26, 16, 0) 25%, rgba(43, 26, 16, .92) 100%); }
.duo-card:hover img { transform: scale(1.05); }
.duo-body { padding: clamp(24px, 4vw, 40px); }
.duo-body .chip { margin-bottom: 14px; }
.duo-body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--white); }
.duo-body p { color: rgba(255, 255, 255, .86); max-width: 46ch; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.chip svg { width: 16px; height: 16px; color: var(--amber); }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } .duo-card { min-height: 580px; } }

/* Split image / texte */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media .arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.split-media .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.split-media .float-card {
  position: absolute; inset-inline-end: -8px; bottom: 28px; max-width: 230px;
  background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.4;
}
.float-card .icon-badge { flex: none; }
.split-media .stack-img {
  position: absolute; inset-inline-start: -10px; bottom: -24px; width: 42%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow);
}
.split-media .stack-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.05fr; }
  .split--reverse .split-media { order: 2; }
  .split-media .float-card { inset-inline-end: -32px; }
  .split-media .stack-img { inset-inline-start: -40px; }
}

/* Listes de points forts */
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list strong { display: block; font-size: 1.02rem; }
.feature-list span { color: var(--muted); font-size: .95rem; }
.section--dark .feature-list span { color: rgba(255, 244, 230, .72); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--cream); color: var(--orange-600); border: 1px solid rgba(232, 117, 36, .18);
}
.icon-badge svg { width: 24px; height: 24px; }
.section--cream .icon-badge, .section--pattern .icon-badge { background: var(--white); }
.section--dark .icon-badge { background: rgba(245, 176, 65, .12); color: var(--amber); border-color: rgba(245, 176, 65, .25); }

/* Grille de cartes */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(232, 117, 36, .3); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 244, 230, .12); }
.section--dark .card p { color: rgba(255, 244, 230, .72); }

/* Cartes photo (highlights) */
.photo-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.photo-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.photo-card .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo-card:hover .ph img { transform: scale(1.06); }
.photo-card .body { padding: 20px 22px 24px; }
.photo-card h3 { margin-bottom: 6px; }
.photo-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Événements : types */
.event-types { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.event-type {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; isolation: isolate;
  display: flex; align-items: flex-end; padding: 22px; color: var(--white);
}
.event-type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.event-type::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(43, 26, 16, .9)); }
.event-type:hover img { transform: scale(1.06); }
.event-type h3 { color: var(--white); margin: 0 0 4px; }
.event-type p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); line-height: 1.5; }

/* Pourquoi nous choisir */
.why { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: why; }
.why .card { position: relative; }
.why .card::after {
  counter-increment: why; content: "0" counter(why); position: absolute; top: 18px; inset-inline-end: 22px;
  font-family: var(--font-display); font-size: 2.4rem; color: rgba(245, 176, 65, .22); line-height: 1;
}

/* Avis clients */
.reviews-empty {
  max-width: 760px; margin-inline: auto; text-align: center; background: var(--white);
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 56px) clamp(22px, 5vw, 56px);
  border: 1px dashed rgba(232, 117, 36, .45); box-shadow: var(--shadow-sm);
}
.reviews-empty .quote-mark { font-family: var(--font-display); font-size: 4.5rem; line-height: .6; color: var(--orange); display: block; margin-bottom: 8px; }
.reviews-empty p { color: var(--muted); }
.reviews-empty .btn-row { justify-content: center; margin-top: 22px; }
.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.review blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.review figcaption { font-weight: 700; }
.review figcaption small { display: block; color: var(--muted); font-weight: 500; }

/* Localisation */
.location { display: grid; gap: 24px; align-items: stretch; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); background: var(--sand); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.info-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-list a, .info-list address { font-style: normal; font-weight: 600; word-break: break-word; }
.info-list a:hover { color: var(--orange-600); }
@media (min-width: 900px) { .location { grid-template-columns: 1.3fr 1fr; } .map-frame, .map-frame iframe { min-height: 460px; } }

/* CTA final */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center;
  padding-block: clamp(80px, 12vw, 150px); background: var(--brown-900);
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(43, 26, 16, .78); }
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.cta-band .lead { color: rgba(255, 255, 255, .85); margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { color: var(--amber); }
.cta-band .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Menu (restaurant) */
.menu-board { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.menu-cat {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
}
.menu-cat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange), var(--amber)); }
.menu-cat header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.menu-cat h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin: 0; }
.menu-cat > p { color: var(--muted); font-size: .95rem; }
.menu-items { list-style: none; padding: 0; margin: 0; }
.menu-item { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-item .name { font-weight: 700; }
.menu-item .desc { display: block; font-size: .88rem; color: var(--muted); font-weight: 500; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted rgba(64, 39, 25, .3); transform: translateY(-4px); }
.menu-item .price { font-weight: 800; color: var(--orange-600); white-space: nowrap; }
.menu-note {
  display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--cream); font-size: .9rem; color: var(--muted);
}
.menu-note svg { width: 18px; height: 18px; flex: none; color: var(--orange-600); }
.menu-cta {
  margin-top: 28px; display: grid; gap: 20px; align-items: center; background: var(--brown) var(--pattern-light);
  color: var(--cream); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.menu-cta h3 { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.menu-cta p { margin: 0; color: rgba(255, 244, 230, .8); }
@media (min-width: 800px) { .menu-cta { grid-template-columns: 1fr auto; } }

/* Bandeau statistiques / atouts */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.strip > div { background: var(--white); padding: 24px; display: flex; gap: 14px; align-items: center; font-weight: 700; line-height: 1.35; }

/* 7. GALERIE & LIGHTBOX -------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.section-head.center + .filters, .filters.center { justify-content: center; }
.filter-btn {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; font-size: .9rem; transition: all .25s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange-600); }
.filter-btn[aria-pressed="true"] { background: var(--brown); color: var(--white); border-color: var(--brown); }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sand);
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(43, 26, 16, .65));
  opacity: 0; transition: opacity .35s;
}
.gallery-item .cap {
  position: absolute; inset-inline: 14px; bottom: 12px; z-index: 1; color: var(--white); font-size: .85rem; font-weight: 700;
  text-align: start; opacity: 0; transform: translateY(6px); transition: all .35s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item[hidden] { display: none; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } .gallery-item { border-radius: var(--radius); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (hover: none) { .gallery-item .cap { opacity: 1; transform: none; } .gallery-item::after { opacity: .9; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(28, 16, 9, .95); display: none;
  align-items: center; justify-content: center; padding: 64px 12px 72px;
}
.lightbox.is-open { display: flex; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100svh - 160px); width: auto; max-width: 100%; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 14px; font-size: .95rem; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); transition: background-color .25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; inset-inline-end: 14px; }
.lb-prev, .lb-next { top: auto; bottom: 14px; }
.lb-prev { inset-inline-start: calc(50% - 60px); }
.lb-next { inset-inline-end: calc(50% - 60px); }
.lb-count { position: absolute; top: 24px; inset-inline-start: 20px; color: rgba(255, 255, 255, .7); font-size: .9rem; }
@media (min-width: 768px) {
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { inset-inline-start: 20px; } .lb-next { inset-inline-end: 20px; }
}
[dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg, [dir="rtl"] .link-arrow svg, [dir="rtl"] .mobile-menu li a svg, [dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* 8. FORMULAIRES --------------------------------------------------------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(64, 39, 25, .18);
  background: #FFFCF8; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23402719' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] .field select { background-position: left 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 117, 36, .15); }
.field .error { display: none; color: #B42318; font-size: .85rem; margin-top: 6px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .error { display: block; }
.form-foot { margin-top: 22px; display: grid; gap: 12px; }
.form-foot small { color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.form-foot small svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--wa); }
.form-status { font-weight: 700; color: var(--wa); min-height: 1.5em; margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Contact cartes */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card strong { font-size: 1.02rem; word-break: break-word; }

/* 9. PIED DE PAGE & WHATSAPP FLOTTANT ------------------------------------ */
.site-footer { background: var(--brown-900) var(--pattern-light); color: rgba(255, 244, 230, .78); padding-top: clamp(56px, 8vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.site-footer h3 { color: var(--white); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 244, 230, .2); transition: all .25s;
}
.socials a:hover { background: var(--orange-600); border-color: var(--orange-600); color: var(--white); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 244, 230, .1); padding-block: 22px 96px; display: flex; flex-wrap: wrap;
  gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255, 244, 230, .6);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } .footer-bottom { padding-bottom: 28px; } }

.wa-float {
  position: fixed; z-index: 90; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--wa); color: var(--white); font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(15, 99, 52, .7); transition: transform .3s var(--ease), background-color .25s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-700); transform: translateY(-3px); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: pulse 2.6s infinite; pointer-events: none;
}
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.wa-float .wa-label { display: none; }
@media (min-width: 560px) { .wa-float .wa-label { display: inline; } }
@media (max-width: 559px) { .wa-float { width: 58px; padding: 0; justify-content: center; } }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* 10. ARABE (RTL) & UTILITAIRES ------------------------------------------ */
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .brand-text strong, html[lang="ar"] .duo-body h3, html[lang="ar"] .menu-cat h3,
html[lang="ar"] .menu-cta h3, html[lang="ar"] .mobile-menu li a, html[lang="ar"] .reviews-empty .quote-mark {
  font-family: var(--font-ar-display); letter-spacing: 0; font-weight: 700;
}
html[lang="ar"] h1 { line-height: 1.35; font-size: clamp(1.9rem, 5.6vw, 3.6rem); }
html[lang="ar"] h2 { line-height: 1.4; }
html[lang="ar"] .eyebrow, html[lang="ar"] .chip, html[lang="ar"] .info-list small,
html[lang="ar"] .contact-card small, html[lang="ar"] .site-footer h3, html[lang="ar"] .brand-text small { letter-spacing: 0; text-transform: none; }
html[lang="ar"] em, html[lang="ar"] .accent { font-style: normal; }
html[lang="ar"] .ltr, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .ornament::before { transform: scaleX(-1); } [dir="rtl"] .ornament::after { transform: none; }

/* Apparition au défilement (discrète) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-float, .mobile-menu, .lightbox { display: none !important; } }
