/* ============================================================
   LA ROTONDE MARRAKECH — CSS Global v3
   Palette : Blanc #FDFCF8 · Rouge #9B1B30 · Noir #1A1A18
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --rouge:       #9B1B30;
  --rouge-light: #B52640;
  --rouge-pale:  #F5E8EB;
  --rouge-ultra: #FBF2F3;
  --noir:        #1A1A18;
  --noir-doux:   #2C2C2A;
  --blanc:       #FDFCF8;
  --blanc-casse: #F7F4EE;
  --creme:       #F0EBE0;
  --gris-clair:  #E8E4DC;
  --gris:        #9A978F;
  --gris-texte:  #6B6860;
  --or:          #C4963A;
  --bord:        rgba(155,27,48,0.15);
  --bord-noir:   rgba(26,26,24,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--blanc);
  color: var(--noir);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── MOTIF MOSAIQUE ZELLIGE ── */
.zellige-bg {
  position: relative;
}
.zellige-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%239B1B30' stroke-width='0.5' opacity='0.12'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3Cpolygon points='30,10 50,20 50,40 30,50 10,40 10,20'/%3E%3Cline x1='30' y1='2' x2='30' y2='10'/%3E%3Cline x1='58' y1='16' x2='50' y2='20'/%3E%3Cline x1='58' y1='44' x2='50' y2='40'/%3E%3Cline x1='30' y1='58' x2='30' y2='50'/%3E%3Cline x1='2' y1='44' x2='10' y2='40'/%3E%3Cline x1='2' y1='16' x2='10' y2='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.zellige-bg > * { position: relative; z-index: 1; }

.zellige-dark::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.08'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3Cpolygon points='30,10 50,20 50,40 30,50 10,40 10,20'/%3E%3Cline x1='30' y1='2' x2='30' y2='10'/%3E%3Cline x1='58' y1='16' x2='50' y2='20'/%3E%3Cline x1='58' y1='44' x2='50' y2='40'/%3E%3Cline x1='30' y1='58' x2='30' y2='50'/%3E%3Cline x1='2' y1='44' x2='10' y2='40'/%3E%3Cline x1='2' y1='16' x2='10' y2='20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blanc);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-img { width: 110px; height: auto; animation: lp 1.8s ease-in-out infinite; }
@keyframes lp { 0%,100%{opacity:0.35} 50%{opacity:1} }
.loader-trait { width: 60px; height: 1px; background: var(--gris-clair); overflow: hidden; }
.loader-trait::after {
  content: ''; display: block; height: 100%; width: 100%;
  background: var(--rouge); transform: translateX(-100%);
  animation: lt 1.5s ease infinite;
}
@keyframes lt { to { transform: translateX(100%); } }

/* ── NAVIGATION ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--blanc);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  padding: 0 4rem;
}
#nav.nav-scrolled {
  border-bottom-color: var(--bord-noir);
  box-shadow: 0 2px 20px rgba(26,26,24,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; transition: height 0.4s;
}
#nav.nav-scrolled .nav-inner { height: 64px; }
.nav-logo img { height: 52px; width: auto; transition: height 0.4s; display: block; }
#nav.nav-scrolled .nav-logo img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0.4rem 1.2rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gris-texte); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 1.2rem; right: 1.2rem;
  height: 1px; background: var(--rouge);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--rouge); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-btn {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
  color: var(--blanc); background: var(--rouge);
  padding: 0.7rem 1.8rem; border: 1px solid var(--rouge);
  transition: background 0.25s, color 0.25s; white-space: nowrap;
}
.nav-btn:hover { background: var(--rouge-light); border-color: var(--rouge-light); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--noir); transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 490;
  background: var(--blanc);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-style: italic;
  color: var(--noir); text-decoration: none; transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--rouge); }
.mobile-nav .mob-cta {
  font-family: 'Raleway', sans-serif; font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blanc); background: var(--rouge); padding: 0.85rem 2.2rem;
}

/* ── TYPO ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--rouge);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--rouge); opacity: 0.5; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; line-height: 1.1; color: var(--noir);
}
.section-title em { font-style: italic; color: var(--rouge); }
.section-body { font-size: 0.92rem; font-weight: 300; line-height: 1.9; color: var(--gris-texte); }
.section-body strong { color: var(--noir); font-weight: 500; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: none; outline: none; padding: 0.9rem 2rem;
  transition: all 0.25s;
}
.btn-rouge { background: var(--rouge); color: var(--blanc); border: 1px solid var(--rouge); }
.btn-rouge:hover { background: var(--rouge-light); border-color: var(--rouge-light); transform: translateY(-2px); }
.btn-outline-rouge { background: transparent; color: var(--rouge); border: 1px solid var(--rouge); }
.btn-outline-rouge:hover { background: var(--rouge); color: var(--blanc); }
.btn-outline-noir { background: transparent; color: var(--noir); border: 1px solid rgba(26,26,24,0.3); }
.btn-outline-noir:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn-blanc { background: var(--blanc); color: var(--rouge); border: 1px solid var(--blanc); }
.btn-blanc:hover { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-35px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(35px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* ── PAGE HERO ── */
.page-hero {
  height: 60vh; min-height: 400px;
  position: relative; display: flex; align-items: flex-end;
  overflow: hidden; margin-top: 80px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 6s ease;
}
.page-hero-bg.in { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,24,0.2) 0%, rgba(26,26,24,0.72) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 5rem 4rem; }
.page-breadcrumb {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(253,252,248,0.55); margin-bottom: 0.8rem;
}
.page-breadcrumb a { color: rgba(253,252,248,0.7); text-decoration: none; }
.page-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400; color: var(--blanc); line-height: 1.1;
}
.page-hero-content h1 em { font-style: italic; color: #F5C6C0; }

/* ── ICONES RÉSEAUX SOCIAUX (SVG inline) ── */
.social-icon { width: 18px; height: 18px; display: block; }

/* ── FOOTER ── */
#footer {
  background: var(--noir);
  padding: 5rem 5rem 2rem;
  position: relative; overflow: hidden;
}
/* zellige footer */
#footer::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.06'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3Cpolygon points='30,10 50,20 50,40 30,50 10,40 10,20'/%3E%3Cline x1='30' y1='2' x2='30' y2='10'/%3E%3Cline x1='58' y1='16' x2='50' y2='20'/%3E%3Cline x1='58' y1='44' x2='50' y2='40'/%3E%3Cline x1='30' y1='58' x2='30' y2='50'/%3E%3Cline x1='2' y1='44' x2='10' y2='40'/%3E%3Cline x1='2' y1='16' x2='10' y2='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
#footer > * { position: relative; z-index: 1; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem; margin-bottom: 4rem;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.5rem; display: block; }
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 0.95rem;
  color: rgba(253,252,248,0.45); line-height: 1.7; max-width: 250px;
}
.footer-col h5 {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(253,252,248,0.35); margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a,
.footer-col p, .footer-col a {
  font-size: 0.85rem; color: rgba(253,252,248,0.55);
  text-decoration: none; line-height: 1.8; display: block;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(253,252,248,0.9); }
.footer-col ul li a:hover { color: rgba(253,252,248,0.9); }

/* Socials footer avec vraies icônes */
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.footer-social {
  width: 40px; height: 40px;
  border: 1px solid rgba(253,252,248,0.15);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(253,252,248,0.5);
  transition: all 0.25s; flex-shrink: 0;
}
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-social:hover { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

.footer-bottom {
  border-top: 1px solid rgba(253,252,248,0.08);
  padding-top: 2rem;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.7rem; color: rgba(253,252,248,0.22); letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(253,252,248,0.35); text-decoration: none; }

/* ── FORMULAIRES ── */
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris-texte);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--blanc); border: 1px solid var(--bord-noir);
  color: var(--noir); padding: 0.82rem 1rem;
  font-family: 'Raleway', sans-serif; font-size: 0.88rem; font-weight: 400;
  outline: none; border-radius: 0;
  transition: border-color 0.25s;
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(26,26,24,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rouge); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%239B1B30' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-success {
  display: none; text-align: center; padding: 3rem 2rem;
  border: 1px solid var(--bord);
}
.form-success.show { display: block; }
.form-success .check { font-size: 2.5rem; color: var(--rouge); margin-bottom: 1rem; }
.form-success h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--noir); margin-bottom: 0.5rem;
}
.form-success p { font-size: 0.85rem; color: var(--gris-texte); }

/* ── UTILS ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  #nav { padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  #footer { padding: 4rem 2rem 2rem; }
  .page-hero-content { padding: 0 2.5rem 3rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  #footer { padding: 3.5rem 1.5rem 1.5rem; }
  .page-hero-content { padding: 0 1.5rem 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 1.5rem; }
}
