/* =====================================================================
   WEST AFRI'K — Restaurant africain à Nîmes
   Feuille de style principale
   Palette issue du logo : orange chaleureux · noir · crème · accents wax
   ===================================================================== */

/* -------------------------------------------------- Tokens */
:root {
  /* Couleurs */
  --orange:        #E87722;   /* orange du logo */
  --orange-deep:   #C85A12;
  --orange-soft:   #F4A85E;
  --ink:           #201813;   /* noir chaud */
  --ink-soft:      #4A3B31;
  --cream:         #FAF3E7;   /* fond crème */
  --cream-2:       #F4E9D6;
  --paper:         #FFFDF9;
  --terracotta:    #B5432C;   /* accent wax rouge */
  --gold:          #E0A82E;   /* accent wax or */
  --green:         #3B7A57;   /* accent wax vert */
  --line:          rgba(32,24,19,.12);

  /* Typo */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --font-script:  "Caveat", cursive;

  /* Échelle */
  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(32,24,19,.35);
  --shadow-sm: 0 8px 24px -12px rgba(32,24,19,.28);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* -------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* -------------------------------------------------- Typo */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { color: var(--ink-soft); }
.script {
  font-family: var(--font-script);
  color: var(--orange-deep);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  display: inline-block;
}

/* -------------------------------------------------- Layout */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-script); color: var(--orange-deep);
  font-size: 1.6rem; line-height: 1;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
.center .lede { margin-inline: auto; }

/* -------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -8px rgba(232,119,34,.7); }
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(232,119,34,.8); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { transform: translateY(-2px); background: #100b08; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

/* -------------------------------------------------- Bande wax (motif décoratif) */
.waxband {
  height: 14px;
  background:
    repeating-linear-gradient(45deg, var(--terracotta) 0 12px, var(--gold) 12px 24px, var(--green) 24px 36px, var(--ink) 36px 48px);
  opacity: .92;
}
.waxband--thin { height: 8px; }

/* -------------------------------------------------- Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,243,231,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__emblem {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(232,119,34,.7);
  overflow: hidden;
}
.brand__emblem img { width: 100%; height: 100%; object-fit: cover; }
.brand__emblem svg { width: 62%; height: 62%; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1; letter-spacing: -.01em; }
.brand__tag { display: block; font-family: var(--font-script); color: var(--orange-deep); font-size: 1rem; line-height: 1; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a {
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--cream-2); }
.nav__links a.is-active { color: var(--orange-deep); }
.nav__cta { margin-left: .4rem; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* -------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(232,119,34,.55), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(181,67,44,.5), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange-soft); }
.hero__sub { color: rgba(250,243,231,.82); font-size: clamp(1.05rem, 1.7vw, 1.25rem); margin: 1.3rem 0 2rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; color: rgba(250,243,231,.7); font-size: .92rem; }
.hero__meta b { color: var(--cream); font-weight: 700; }
.hero__visual {
  position: relative; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, var(--orange), var(--terracotta));
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(32,24,19,.72); backdrop-filter: blur(6px);
  color: var(--cream); padding: .9rem 1.1rem; border-radius: 14px;
  font-size: .9rem; display: flex; align-items: center; gap: .7rem;
}
.hero__badge .script { color: var(--orange-soft); font-size: 1.6rem; }

/* -------------------------------------------------- Placeholder photo */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, var(--orange), var(--terracotta));
  display: grid; place-items: center; color: rgba(255,255,255,.9);
  text-align: center; padding: 1rem;
}
.ph span { font-family: var(--font-script); font-size: 1.6rem; }
.ph small { display:block; font-family: var(--font-body); font-size:.75rem; opacity:.8; margin-top:.2rem; letter-spacing:.04em; }

/* -------------------------------------------------- Bandeau chiffres / valeurs */
.strip { background: var(--paper); border-block: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.2rem 0; text-align: center; }
.strip__item h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--orange-deep); }
.strip__item p { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

/* -------------------------------------------------- Grille features / plats phares */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__body h3 { margin-bottom: .4rem; }
.card__price { color: var(--orange-deep); font-weight: 800; font-family: var(--font-display); }
.card__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(32,24,19,.8); color: var(--cream); font-size: .72rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}

.feature { text-align: center; padding: 2rem 1.4rem; }
.feature__ic {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px;
  display: grid; place-items: center; background: var(--cream-2); color: var(--orange-deep);
}
.feature__ic svg { width: 30px; height: 30px; }

/* -------------------------------------------------- Split (histoire / image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media { aspect-ratio: 5/6; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.split--rev .split__media { order: -1; }
@media (min-width: 861px){ .split--rev .split__media { order: 0; } .split--rev .split__text { order: 2; } }

/* -------------------------------------------------- Carte / Menu */
.menu-nav { position: sticky; top: 68px; z-index: 20; background: rgba(250,243,231,.9); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.menu-nav__inner { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; }
.menu-nav__inner::-webkit-scrollbar { display: none; }
.menu-nav a { white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); border: 1px solid var(--line); transition: .2s; }
.menu-nav a:hover, .menu-nav a.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }

.menu-cat { margin-top: clamp(2.2rem, 5vw, 3.4rem); scroll-margin-top: 130px; }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.menu-cat__head h2 { font-size: clamp(1.6rem,3vw,2.3rem); }
.menu-cat__head .line { flex: 1; height: 1px; background: var(--line); }

.dish {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  padding: 1.05rem 0; border-bottom: 1px dashed var(--line);
}
.dish__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dish__price { font-family: var(--font-display); font-weight: 700; color: var(--orange-deep); white-space: nowrap; font-size: 1.08rem; }
.dish__desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .95rem; max-width: 62ch; }
.dish__origin { display:inline-block; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#fff; background:var(--green); padding:.15rem .5rem; border-radius:999px; }
.dish__origin.sn { background: var(--green); }
.dish__origin.ci { background: var(--terracotta); }
.dish__origin.ao { background: var(--orange-deep); }
.dish__veg { color: var(--green); font-weight:700; font-size:.78rem; }
.allerg { font-size: .8rem; color: #8a7663; font-style: italic; }
.allerg::before { content: "⚠ "; font-style: normal; }

.menu-note { background: var(--cream-2); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-top: 1.6rem; font-size: .95rem; display:flex; gap:.9rem; align-items:flex-start; }
.menu-note svg { flex:none; width:26px; height:26px; color: var(--orange-deep); margin-top:2px; }

/* -------------------------------------------------- Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery__item { border-radius: 16px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); position: relative; }
.gallery__item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery__item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item img { width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem .9rem .7rem; pointer-events: none;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(to top, rgba(15,10,7,.82), rgba(15,10,7,.4) 45%, transparent);
}

/* -------------------------------------------------- CTA band */
.cta-band { background: var(--ink); color: var(--cream); border-radius: 28px; padding: clamp(2.4rem,5vw,3.6rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 120% at 50% -20%, rgba(232,119,34,.45), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(250,243,231,.8); margin: .8rem auto 1.8rem; max-width: 46ch; }
.cta-band .btn--ghost { border-color: var(--cream); color: var(--cream); }
.cta-band .btn--ghost:hover { background: var(--cream); color: var(--ink); }

/* -------------------------------------------------- Contact / Infos */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items:start; }
.info-list { display: grid; gap: 1.1rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.info-item svg { flex:none; width: 24px; height: 24px; color: var(--orange-deep); margin-top:3px; }
.info-item h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.info-item p, .info-item a { color: var(--ink-soft); font-size: .96rem; }
.info-item a:hover { color: var(--orange-deep); }

.hours { width:100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours th { font-weight: 700; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.today th, .hours tr.today td { color: var(--orange-deep); font-weight: 800; }
.hours .closed { color: var(--terracotta); font-weight:700; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); aspect-ratio: 16/11; }
.map-embed iframe { width:100%; height:100%; border:0; display:block; }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: rgba(250,243,231,.75); padding-top: clamp(3rem,6vw,4.5rem); }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer h4 { color: var(--cream); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1rem; }
.footer a { color: rgba(250,243,231,.75); }
.footer a:hover { color: var(--orange-soft); }
.footer__links { display:grid; gap:.5rem; font-size:.95rem; }
.footer__brand .brand__name { color: var(--cream); }
.footer__desc { font-size:.92rem; margin:1rem 0 1.2rem; max-width: 34ch; }
.socials { display:flex; gap:.7rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border:1px solid rgba(250,243,231,.2); display:grid; place-items:center; transition:.25s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(250,243,231,.14); padding: 1.4rem 0; display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content: space-between; font-size:.85rem; }

/* -------------------------------------------------- Page header (pages internes) */
.page-hero { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 90% -10%, rgba(232,119,34,.45), transparent 55%); }
.page-hero__inner { position: relative; z-index:2; padding: clamp(2.6rem,6vw,4.5rem) 0; }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(250,243,231,.8); max-width: 54ch; margin-top: .8rem; }
.crumbs { font-size:.85rem; color: rgba(250,243,231,.6); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--orange-soft); }

/* -------------------------------------------------- Reveal anim */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

/* -------------------------------------------------- Responsive */
@media (max-width: 980px){
  .strip__grid { grid-template-columns: repeat(2,1fr); gap: 1.4rem 1rem; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .nav { padding: .6rem 0; }
  .nav__links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem 1.2rem 1.6rem; gap:.2rem; border-bottom:1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  body.nav-open .nav__links { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  .nav__links a { padding: .95rem 1rem; font-size: 1.08rem; }
  .nav__cta { margin: .6rem 0 0; justify-content: center; }
  .nav__toggle { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 2.4rem; }
  .hero__visual { max-width: 380px; width: 100%; margin-inline: auto; order:-1; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__meta { gap: .6rem 1.1rem; margin-top: 1.6rem; }
  .split, .info-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .menu-nav { top: 62px; }
}
@media (max-width: 520px){
  :root { --radius: 14px; }
  body { font-size: 16px; }
  .wrap { width: min(100% - 1.8rem, var(--wrap)); }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { gap: .7rem; }
  .gallery__item.wide { grid-column: span 2; }
  .gallery__item.tall { grid-row: auto; aspect-ratio: 1; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.15rem; }
  .brand__emblem { width: 42px; height: 42px; }
  .dish { grid-template-columns: 1fr auto; }
  .dish__name { font-size: 1.05rem; }
  .cta-band { padding: 2rem 1.3rem; border-radius: 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 360px){
  h1 { font-size: 2.05rem; }
  .brand__name { font-size: 1.05rem; }
}
