/* ================================================
   BY SEYLA · base.css
   Variables, reset, typographie, composants partagés,
   navbar, footer
================================================ */

/* ── Variables ── */
:root {
  --bordeaux:    #ffffff;
  --bordeaux-dk: #d8d8d8;
  --bordeaux-lt: #f0f0f0;
  --or:          #ffffff;
  --or-dk:       #cfcfcf;
  --noir:        #000000;
  --surface:     #0a0a0a;
  --surface-2:   #131313;
  --surface-3:   #1c1c1c;
  --border:      rgba(255, 255, 255, 0.08);
  --border-lt:   rgba(255, 255, 255, 0.20);
  --texte:       #f5f5f5;
  --texte-soft:  #9a9a9a;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Montserrat', 'Helvetica Neue', sans-serif;
  --body:  'Lato', system-ui, sans-serif;
  --logo:  'Allura', cursive;

  --t: 0.3s ease;
  --r: 2px;
  --max: 1180px;
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 36px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
address { font-style: normal; }

::selection { background: #fff; color: #000; }

/* ── Typographie ── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--texte); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--texte-soft); }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.8rem; }
section { padding: 6rem 0; }

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: var(--r);
  transition: all var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary       { background: #fff; color: #000; }
.btn-primary:hover { background: var(--bordeaux-dk); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost         { background: transparent; color: var(--texte); border-color: rgba(255,255,255,0.30); }
.btn-ghost:hover   { border-color: #fff; color: #fff; }
.btn-gold          { background: #fff; color: #000; }
.btn-gold:hover    { background: var(--or-dk); }

/* ── Badge Halal ── */
.halal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r);
}
.halal i { font-size: 0.7rem; }

/* ── Eyebrow (label section) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: #fff;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.8rem;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), padding var(--t);
}
.navbar.stuck {
  background: rgba(13, 13, 13, 0.96);
  border-color: var(--border);
  padding: 0.9rem 2.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo         { display: flex; flex-direction: column; line-height: 1; align-items: center; }
.logo-name    {
  font-family: var(--logo);
  font-size: 2.6rem;
  color: #fff;
  letter-spacing: 1px;
}
.logo-city    {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 1px;
}
.nav-links    { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a  {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(237, 227, 216, 0.65);
  transition: color var(--t);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:hover,
.nav-links a.active            { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after     { transform: scaleX(1); }
.nav-links .nav-halal          { margin-left: 0.4rem; }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1.6rem;
  margin-left: 0.4rem;
  border-left: 1px solid var(--border-lt);
}
.nav-socials a {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 227, 216, 0.55);
  font-size: 0.85rem;
  transition: all var(--t);
  border-radius: var(--r);
}
.nav-socials a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-socials a::after { display: none !important; }

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: #fff; transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Menu mobile ── */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  width: 80%;
  max-width: 320px;
  z-index: 199;
  background: var(--noir);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 28px rgba(0,0,0,0.4);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 6rem 2rem 2rem;
  gap: 0;
  transform: translateX(-100%);
  transition: transform var(--t);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--texte-soft);
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: color var(--t);
}
.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu a:hover,
.mobile-menu a.active { color: #fff; }

/* ── En-tête pages internes ── */
.page-header {
  padding: 9rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: #fff;
}
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-header p  { color: var(--texte-soft); font-size: 0.95rem; margin-top: 0.6rem; letter-spacing: 0.3px; }

/* ── Infos (partagé accueil + à propos) ── */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.info-cell {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.info-cell:last-child { border-right: none; }
.info-cell i {
  font-size: 1.15rem; color: #fff;
  margin-bottom: 1rem; display: block;
}
.info-cell strong {
  display: block;
  font-family: var(--sans); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.7rem;
}
.info-cell p, .info-cell address {
  font-size: 0.92rem; color: var(--texte-soft); line-height: 1.85;
}
.info-cell a            { color: var(--texte-soft); transition: color var(--t); }
.info-cell a:hover      { color: #fff; }

/* ── Footer ── */
footer {
  background: #080808;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-brand .logo-name,
.footer-brand .logo-city { display: block; }
.footer-brand .logo-name { font-size: 2.4rem; }
.footer-brand p {
  font-size: 0.86rem; line-height: 1.8;
  color: var(--texte-soft);
  margin: 1rem 0 1.4rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sans); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #fff; margin-bottom: 1.3rem;
}
.footer-col li + li { margin-top: 0.7rem; }
.footer-col a,
.footer-col p { font-size: 0.86rem; color: var(--texte-soft); transition: color var(--t); line-height: 1.8; }
.footer-col a:hover { color: #fff; }
.footer-col i { color: #fff; margin-right: 0.55rem; font-size: 0.75rem; }

.socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-lt);
  color: var(--texte-soft);
  font-size: 0.9rem;
  transition: all var(--t);
}
.socials a:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.6rem;
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.8px; color: rgba(255,255,255,0.28);
}
.footer-bottom a:hover { color: #fff; }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: #fff; color: #000;
  border-radius: var(--r); font-size: 1rem;
  display: none; align-items: center; justify-content: center;
  z-index: 50; transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover   { background: var(--bordeaux-dk); transform: translateY(-3px); }

/* ── Section title (partagé) ── */
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 { margin-bottom: 0.8rem; }
.section-head p  {
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── Responsive base ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .nav-socials { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-links .nav-halal { display: none; }
  .hamburger { display: flex; }
  .navbar       { padding: 1rem 1.5rem; }
  .navbar.stuck { padding: 0.8rem 1.5rem; }

  .info-cell { padding: 1.5rem 0.8rem; font-size: 0.85rem; }
  .info-cell i { font-size: 1rem; margin-bottom: 0.6rem; }
  .info-cell strong { font-size: 0.6rem; letter-spacing: 1.5px; }
  .info-cell p, .info-cell address { font-size: 0.78rem; line-height: 1.5; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 4rem 0; }
}

@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 1.8rem; }
  footer { padding: 2.5rem 0 1.5rem; }
  .footer-brand p { margin: 0.6rem 0 0.8rem; }
  .footer-brand .logo-name { font-size: 1.8rem; }
  .footer-col h4 { margin-bottom: 0.7rem; }
  .footer-col li + li { margin-top: 0.4rem; }
  .footer-col a, .footer-col p { font-size: 0.8rem; line-height: 1.55; }
  .socials { margin-top: 0.8rem; }
  .socials a { width: 32px; height: 32px; font-size: 0.8rem; }
}
