/* ============================================================
   CAFÉ SELECT — ZARZIS  |  style.css
   Palette : sable chaud, brun café, bleu profond de mer, terracotta
   Mobile-first — RTL-ready (dir="rtl" sur <html> pour la version tounsi)
   ============================================================ */

:root {
  --sand: #f6efe3;
  --sand-deep: #ece1cc;
  --paper: #fffdf8;
  --coffee: #33241a;
  --coffee-soft: #5c4a3d;
  --sea: #14555a;
  --sea-deep: #0d3d42;
  --terracotta: #c06848;
  --terracotta-deep: #a2513a;
  --gold: #d9a441;
  --shadow: 0 10px 30px rgba(51, 36, 26, .12);
  --radius: 18px;
  --font-head: "Fraunces", "El Messiri", serif;
  --font-body: "Outfit", "Tajawal", sans-serif;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

html[dir="rtl"] {
  --font-head: "El Messiri", serif;
  --font-body: "Tajawal", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--coffee);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--sea); text-decoration: none; }

.container { width: min(1120px, 100% - 2 * var(--pad)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 600; color: var(--terracotta-deep); margin-bottom: .7rem;
}
html[dir="rtl"] .kicker { letter-spacing: .04em; font-size: .85rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--terracotta); border-radius: 2px; }

.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); color: var(--sea-deep); }
.section-head p { margin-top: .8rem; color: var(--coffee-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(192, 104, 72, .35); }
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  transition: background .25s ease, box-shadow .25s ease;
  padding-block: .8rem;
}
.header.scrolled { background: rgba(13, 61, 66, .92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.brand .brand-mark { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; opacity: .85; }
html[dir="rtl"] .brand small { letter-spacing: .08em; font-size: .72rem; }

.nav { display: none; align-items: center; gap: 1.4rem; }
.nav a { color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -5px; width: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: width .2s ease; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .7rem; }

.lang-switch {
  display: inline-flex; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; overflow: hidden;
  font-size: .82rem; font-weight: 600;
}
.lang-switch a, .lang-switch span { padding: .38rem .8rem; color: rgba(255,255,255,.85); }
.lang-switch .active { background: #fff; color: var(--sea-deep); }

.burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .55rem; }
.burger span { width: 24px; height: 2.5px; background: #fff; border-radius: 3px; transition: transform .25s ease, opacity .25s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--sea-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; font-family: var(--font-head); font-size: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(160deg, #0d3d42 0%, #14555a 45%, #1d6a63 100%);
  color: #fff; overflow: hidden;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding-block: 7.5rem 5rem; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 1.1rem;
}
html[dir="rtl"] .hero-eyebrow { letter-spacing: .06em; font-size: .95rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 700; letter-spacing: .01em; }
.hero .slogan { font-family: var(--font-head); font-size: clamp(1.25rem, 3.6vw, 1.75rem); color: #f3e2c2; margin-top: 1rem; font-style: italic; }
html[dir="rtl"] .hero .slogan { font-style: normal; }
.hero .sub { margin-top: 1.1rem; max-width: 520px; color: rgba(255,255,255,.85); font-size: 1.02rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.6rem; font-size: .88rem; color: rgba(255,255,255,.82); }
.hero-badges strong { display: block; font-size: 1.15rem; color: #fff; font-family: var(--font-head); }

.scroll-cue { position: absolute; bottom: 1.4rem; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; opacity: .7; animation: bob 2.2s ease-in-out infinite; }
html[dir="rtl"] .scroll-cue { transform: translateX(50%); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* ---------- À propos ---------- */
.about-grid { display: grid; gap: 2.2rem; align-items: center; }
.about-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.2rem); position: relative; overflow: hidden;
}
.about-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--terracotta), var(--gold)); }
.about-points { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.about-point { display: flex; gap: .9rem; align-items: flex-start; }
.about-point .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--sand-deep); display: grid; place-items: center; color: var(--sea); }
.about-point .ico svg { width: 22px; height: 22px; }
.about-point strong { color: var(--sea-deep); }
.about-point p { font-size: .93rem; color: var(--coffee-soft); }
.about-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Expérience ---------- */
.xp-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.xp-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow); transition: transform .2s ease; position: relative; overflow: hidden;
}
.xp-card:hover { transform: translateY(-5px); }
.xp-card .xp-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sea), var(--sea-deep)); color: #fff; margin-bottom: 1rem; }
.xp-card .xp-ico svg { width: 27px; height: 27px; }
.xp-card h3 { font-size: 1.12rem; color: var(--sea-deep); margin-bottom: .45rem; }
.xp-card p { font-size: .92rem; color: var(--coffee-soft); }
.xp-note { margin-top: 1.3rem; font-size: .85rem; color: var(--coffee-soft); font-style: italic; }
html[dir="rtl"] .xp-note { font-style: normal; }

/* ---------- Galerie ---------- */
.gallery { background: var(--sea-deep); color: #fff; }
.gallery .section-head h2 { color: #fff; }
.gallery .section-head p { color: rgba(255,255,255,.75); }
.gallery .kicker { color: var(--gold); }
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: #0a3034; }
.gallery-item img, .gallery-item svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img, .gallery-item:hover svg { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: .7rem .9rem; font-size: .8rem;
  background: linear-gradient(transparent, rgba(10, 40, 44, .85)); color: rgba(255,255,255,.92);
}
.gallery-note { margin-top: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Menu ---------- */
.menu-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.menu-tab {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--sea); background: transparent;
  color: var(--sea); font-family: var(--font-body); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s ease;
}
.menu-tab.active, .menu-tab:hover { background: var(--sea); color: #fff; }
.menu-panel { display: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.menu-panel.active { display: grid; animation: fadeUp .35s ease; }
.menu-item {
  background: var(--paper); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 4px 14px rgba(51,36,26,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.menu-item strong { color: var(--sea-deep); font-size: .98rem; }
.menu-item small { display: block; color: var(--coffee-soft); font-size: .82rem; margin-top: .15rem; }
.menu-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); flex: none; }
.menu-note {
  margin-top: 1.6rem; background: var(--sand-deep); border-radius: 14px; padding: 1rem 1.3rem;
  font-size: .88rem; color: var(--coffee-soft); display: flex; gap: .7rem; align-items: flex-start;
}
.menu-note svg { width: 20px; height: 20px; flex: none; color: var(--terracotta); margin-top: .15rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Avis ---------- */
.reviews { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%); }
.reviews-wrap { display: grid; gap: 1.5rem; }
.rating-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem;
  text-align: center;
}
.rating-big { font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; color: var(--sea-deep); line-height: 1; }
.stars { color: var(--gold); font-size: 1.35rem; letter-spacing: .18em; margin: .5rem 0 .2rem; }
.rating-card .count { color: var(--coffee-soft); font-size: .9rem; }
.review-cta {
  background: var(--sea); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem; justify-content: center;
}
.review-cta h3 { font-size: 1.5rem; }
.review-cta p { color: rgba(255,255,255,.85); font-size: .95rem; }
.review-cta .btn { align-self: flex-start; }
html[dir="rtl"] .review-cta .btn { align-self: flex-start; }

/* ---------- Pourquoi ---------- */
.why-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: why; }
.why-card { background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.3rem; box-shadow: var(--shadow); position: relative; }
.why-card::before {
  counter-increment: why; content: "0" counter(why);
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--sand-deep);
  position: absolute; top: .6rem; inset-inline-end: 1rem;
}
.why-card h3 { color: var(--sea-deep); font-size: 1.08rem; margin-bottom: .4rem; max-width: 80%; }
.why-card p { font-size: .9rem; color: var(--coffee-soft); }

/* ---------- Réseaux ---------- */
.social { background: var(--paper); }
.social-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.social-card {
  border: 1.5px solid var(--sand-deep); border-radius: var(--radius); padding: 1.5rem 1.3rem;
  display: flex; gap: 1rem; align-items: center; transition: all .2s ease; color: var(--coffee);
}
.social-card:hover { border-color: var(--sea); transform: translateY(-3px); box-shadow: var(--shadow); }
.social-card .s-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.social-card .s-ico svg { width: 24px; height: 24px; }
.s-fb { background: #1877f2; } .s-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.s-gg { background: #34a853; } .s-tk { background: #121212; }
.social-card strong { display: block; color: var(--sea-deep); }
.social-card small { color: var(--coffee-soft); font-size: .82rem; }

/* ---------- Localisation ---------- */
.location { background: var(--sea-deep); color: #fff; }
.location .section-head h2 { color: #fff; }
.location .section-head p { color: rgba(255,255,255,.78); }
.location .kicker { color: var(--gold); }
.loc-grid { display: grid; gap: 1.5rem; }
.loc-info { display: grid; gap: 1.1rem; align-content: start; }
.loc-row { display: flex; gap: .95rem; align-items: flex-start; }
.loc-row .ico { width: 44px; height: 44px; flex: none; border-radius: 13px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold); }
.loc-row .ico svg { width: 22px; height: 22px; }
.loc-row strong { display: block; margin-bottom: .1rem; }
.loc-row p, .loc-row td { color: rgba(255,255,255,.8); font-size: .93rem; }
.hours-table { border-collapse: collapse; }
.hours-table td { padding: .12rem .9rem .12rem 0; }
html[dir="rtl"] .hours-table td { padding: .12rem 0 .12rem .9rem; }
.loc-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contact-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.3rem;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7rem; color: var(--coffee);
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .c-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.contact-card .c-ico svg { width: 26px; height: 26px; }
.c-phone { background: var(--sea); } .c-wa { background: #25d366; } .c-map { background: var(--terracotta); }
.contact-card strong { color: var(--sea-deep); }
.contact-card small { color: var(--coffee-soft); font-size: .82rem; }
.contact-pending { opacity: .68; }
.contact-pending:hover { transform: none; }

/* ---------- Footer ---------- */
.footer { background: #081f22; color: rgba(255,255,255,.75); padding-block: 3rem 5.5rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .8rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; display: grid; gap: .45rem; }
.footer-brand .brand { font-size: 1.35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Barre d'action mobile ---------- */
.action-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(51,36,26,.15); padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  gap: .5rem;
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  font-size: .68rem; font-weight: 600; color: var(--sea-deep); padding: .35rem .2rem; border-radius: 12px;
  min-height: 48px; justify-content: center;
}
.action-bar a:active { background: var(--sand-deep); }
.action-bar svg { width: 21px; height: 21px; }
.action-bar .hidden { display: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 800px) {
  .nav { display: flex; }
  .burger, .mobile-menu { display: none; }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-wrap { grid-template-columns: .8fr 1.2fr; }
  .loc-grid { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer { padding-bottom: 3rem; }
  .action-bar { display: none; }
}
