/* ============================================
   RIHET L'BLAD - Design System
   Clone fidèle du site original
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #faf8f5;
  --fg: #2a2520;
  --primary: #6b4423;
  --gold: #c8953c;
  --gold-hover: #b8852e;
  --gold-light: #e8c96a;
  --terracotta: #c27028;
  --terracotta-hover: #a85e1e;
  --cream: #f5f0e8;
  --cream-dark: #ede5d8;
  --charcoal: #2c2418;
  --charcoal-light: #3d3228;
  --muted: #8a8078;
  --border: #ddd5ca;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(42,37,32,.06);
  --shadow-md: 0 4px 20px rgba(42,37,32,.1);
  --shadow-lg: 0 12px 40px rgba(42,37,32,.14);

  --nav-h: 72px;
  --max-w: 1280px;
  --px: 2rem;

  --radius: 6px;
  --radius-lg: 12px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* === CONTAINER === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
  color: var(--fg);
}

.text-gold { color: var(--gold); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-label-light { color: var(--gold-light); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.4rem; margin-bottom: .75rem; }
.section-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .95rem;
}

.section { padding: 5rem 0; }
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: rgba(245,240,232,.7); }

.section-contact { background: var(--primary); }
.section-qualite { background: var(--bg); }

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .4s, box-shadow .4s;
}
.navbar.scrolled {
  background: rgba(250,248,245,.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Brand */
.navbar-brand, .footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand-rihet { color: var(--white); transition: color .3s; }
.brand-lblad { color: var(--gold); }
.navbar.scrolled .brand-rihet { color: var(--fg); }
.footer-brand .brand-rihet { color: var(--cream); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  position: relative;
  padding: .25rem 0;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--gold); }
.navbar.scrolled .nav-link { color: var(--fg); }
.navbar.scrolled .nav-link:hover { color: var(--gold); }

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .3s;
}
.nav-phone:hover { color: var(--gold); }
.navbar.scrolled .nav-phone { color: var(--fg); }

.btn-nav-reserve {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: var(--gold);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: var(--radius);
  transition: background .3s;
}
.btn-nav-reserve:hover { background: var(--gold-hover); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.navbar.scrolled .hamburger span { background: var(--fg); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: 80%; max-width: 360px;
  height: 100vh;
  background: var(--charcoal);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 2rem 2rem;
  transition: left .4s cubic-bezier(.25,.8,.25,1);
}
.mobile-menu.active { left: 0; }

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .3s, padding-left .3s;
}
.mobile-nav-link:hover { color: var(--gold); padding-left: .5rem; }

.btn-mobile-reserve {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,36,24,.65) 0%, rgba(44,36,24,.4) 60%, rgba(44,36,24,.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 var(--px);
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: all .3s;
  border: 2px solid transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s; }
.btn:hover svg { transform: translateX(2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--white);
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-terracotta:hover {
  background: var(--terracotta-hover);
  border-color: var(--terracotta-hover);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

.link-more {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s;
}
.link-more:hover { color: var(--gold); }

/* ===================================
   ÉTABLISSEMENTS
   =================================== */
.etab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.etab-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.etab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.etab-img {
  height: 240px;
  overflow: hidden;
}
.etab-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.etab-card:hover .etab-img img { transform: scale(1.04); }

.etab-content {
  padding: 1.5rem 1.75rem 1.75rem;
}
.etab-content h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.etab-content p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.etab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================
   A PROPOS (Dark)
   =================================== */
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.apropos-left h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}
.apropos-left p {
  margin-bottom: 1rem;
  font-size: .92rem;
  line-height: 1.75;
}

.apropos-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: rgba(245,240,232,.55);
  margin-top: .25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.value-card {
  background: var(--charcoal-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .3s, transform .3s;
}
.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.value-icon {
  width: 54px; height: 54px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.value-card h4 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--cream);
}
.value-card p {
  font-size: .8rem;
  color: rgba(245,240,232,.5);
  line-height: 1.5;
}

/* ===================================
   QUALITÉ
   =================================== */
.qualite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.qualite-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid transparent;
}
.qualite-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.qualite-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  color: var(--white);
}
.qualite-item h4 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.qualite-item p {
  font-size: .87rem;
  color: var(--muted);
}

/* ===================================
   CONTACT
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.contact-left > p {
  font-size: .92rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(200,149,60,.15);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.contact-info-label {
  font-size: .72rem;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--gold);
  letter-spacing: .02em;
}
.contact-info-value {
  font-size: .95rem;
  color: var(--white);
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.form-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: .3rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: .88rem;
  transition: border-color .3s, box-shadow .3s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,149,60,.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }

.btn-submit { margin-top: .5rem; }

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: .75rem;
}
.footer-brand-col p {
  font-size: .85rem;
  color: rgba(245,240,232,.55);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: .5rem;
}
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,.5);
  transition: all .3s;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,149,60,.1);
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .footer-links span {
  font-size: .82rem;
  color: rgba(245,240,232,.55);
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-contact svg {
  color: var(--gold);
  min-width: 14px;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: .75rem;
  color: rgba(245,240,232,.35);
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: all .3s;
}
.back-to-top.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold-hover); transform: translateY(-2px); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 3.5rem; }

  .etab-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .apropos-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .qualite-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --px: 1.25rem; --nav-h: 64px; }
  .section { padding: 3.5rem 0; }
  .section-header h2 { font-size: 1.9rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: .92rem; }

  .etab-grid { grid-template-columns: 1fr; }
  .etab-img { height: 200px; }

  .apropos-left h2, .contact-left h2 { font-size: 1.85rem; }
  .apropos-stats { gap: 1.5rem; }
  .stat-num { font-size: 2rem; }

  .qualite-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .hero-cta { font-size: .72rem; padding: .65rem 1.25rem; }

  .apropos-stats { flex-direction: column; gap: 1rem; }
  .values-grid { grid-template-columns: 1fr; }
}

/* === UTILITY === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }
