/* ══════════════════════════════════════════
   Marrakech 360 — Styles partagés
   ══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --rouge:  #7A1515;
  --rouge2: #9A1A1A;
  --terra:  #B83C0C;
  --kouto:  #D4562E;
  --vert:   #1C4228;
  --vert2:  #2D6B42;
  --or:     #C09010;
  --or2:    #D4880A;
  --creme:  #FFFFFF;
  --creme2: #EFE6D2;
  --creme3: #E0CEB0;
  --texte:  #1A1008;
  --texte2: #52402A;
  --texte3: #907055;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

/* ── Base ── */
/* em italiques conservent Cormorant Garamond dans tous les titres Cinzel */
em { font-family: 'Cormorant Garamond', serif; }

body {
  background: #FAF6EF !important;
  color: var(--texte);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Fond décoratif (toutes pages sauf index) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('fond-pattern.png') repeat center / 480px auto;
  opacity: 0.07;
  pointer-events: none;
}

/* ══ NAV ══ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:200;
  height: 72px;
  display: flex; align-items:center; justify-content:space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,130,106,0.15);
  transition: box-shadow 0.35s, border-color 0.3s;
}
nav.scrolled { box-shadow: 0 4px 28px rgba(107,16,32,0.08); border-bottom-color: rgba(196,130,106,0.3); }

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  letter-spacing: 0.12em; color: var(--texte);
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; z-index: 2;
}
.nav-brand-sep { color: var(--kouto); font-weight: 300; }
.nav-brand-num { color: var(--kouto); font-style: italic; }

.nav-menu {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; list-style:none; margin:0; padding:0; z-index:1;
}
.nav-menu a {
  display: flex; align-items:center; gap:6px;
  height: 72px; padding: 0 18px;
  font-size: 0.62rem; letter-spacing:0.2em; text-transform:uppercase;
  text-decoration:none; color:var(--texte2); font-weight:400;
  border-bottom: 1.5px solid transparent;
  transition: all 0.25s; white-space:nowrap;
}
.nav-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; opacity:0.8; }
.nd-r { background:var(--rouge); }
.nd-t { background:var(--kouto); }
.nd-v { background:var(--vert); }
.nd-o { background:var(--or); }
.nav-menu a:hover { color:var(--kouto); border-color:var(--kouto); }

.nav-right { display:flex; align-items:center; gap:14px; flex-shrink:0; z-index:2; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 30px;
  border: 1.5px solid rgba(196,130,106,0.5); color: var(--kouto);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; font-weight: 500; white-space: nowrap;
  transition: all 0.25s;
}
.nav-cta:hover { background: rgba(196,130,106,0.08); border-color: var(--kouto); }
.nav-cta .nav-dot { opacity: 1; }

.nav-lang { display:flex; align-items:center; gap:5px; font-size:0.58rem; color:var(--texte3); }
.nav-lang-active { color:var(--texte); font-weight:500; }
.nav-lang-sep { opacity:0.3; }
.nav-lang a { color:var(--texte3); text-decoration:none; cursor:pointer; transition:color 0.2s; letter-spacing:0.06em; }
.nav-lang a:hover { color:var(--terra); }

/* Burger mobile */
.nav-burger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.nav-burger span { display:block; width:24px; height:1.5px; background:var(--texte); }

.nav-mobile {
  display:none; position:fixed; top:72px; left:0; right:0; z-index:199;
  background:rgba(255,255,255,0.98); backdrop-filter:blur(20px);
  border-bottom:1px solid var(--creme3);
  flex-direction:column; padding:16px 0;
}
.nav-mobile.open { display:flex; }
.nav-mobile a {
  display:flex; align-items:center; gap:10px;
  padding:14px 24px; font-size:0.75rem; letter-spacing:0.18em;
  text-transform:uppercase; text-decoration:none; color:var(--texte2);
  border-bottom:1px solid var(--creme3); transition:color 0.25s;
}
.nav-mobile a:last-child { border:none; }
.nav-mobile a:hover { color:var(--terra); }

/* ══ Éléments décoratifs communs ══ */
.eyebrow-bar { width:22px; height:1px; background:var(--terra); }
.eyebrow-text {
  font-size: 0.58rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--texte3);
}

/* ══ Animation ══ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ══ Responsive nav ══ */
@media (max-width: 820px) {
  .nav-menu { display:none; }
  .nav-cta { display:none; }
  .nav-burger { display:flex; }
  nav { padding: 0 24px; }
}

/* ══ Language Switcher ══ */
.lang-switcher {
  display: flex; align-items: center; gap: 3px;
  margin-left: 16px; flex-shrink: 0;
}
.lang-btn {
  font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; color: var(--texte3); transition: all 0.2s;
  font-weight: 400; cursor: default;
}
a.lang-btn { cursor: pointer; }
a.lang-btn:hover { color: var(--terra); border-color: rgba(184,60,12,0.3); }
.lang-btn.active { color: var(--terra); border-color: rgba(184,60,12,0.35); font-weight: 500; }
@media (max-width: 820px) {
  .lang-switcher:not(.nav-mobile-lang) { margin-left: 8px; }
  .nav-mobile-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--creme3);
    margin-top: 4px;
  }
  .nav-mobile-lang .lang-btn {
    font-size: 0.65rem;
    padding: 7px 14px;
    border-radius: 2px;
    border: 1px solid var(--creme3);
    letter-spacing: 0.18em;
  }
  .nav-mobile-lang .lang-btn.active {
    background: rgba(184,60,12,0.08);
    border-color: rgba(184,60,12,0.35);
    color: var(--terra);
    font-weight: 500;
  }
}
.cur-switcher { display:flex; align-items:center; gap:3px; margin-left:10px; border-left:1px solid var(--creme3); padding-left:10px; flex-shrink:0; }
.cur-btn { background:none; border:1px solid transparent; padding:3px 7px; border-radius:2px; font-family:'Outfit',sans-serif; font-size:0.5rem; letter-spacing:0.14em; cursor:pointer; color:var(--texte3); transition:all 0.2s; line-height:1; }
.cur-btn.active { color:var(--terra); border-color:rgba(184,60,12,0.35); background:rgba(184,60,12,0.05); }
.cur-btn:not(.active):hover { color:var(--texte); }
@media (max-width: 820px) { .cur-switcher { display:none; } }

/* ══ FOOTER ══ */
.site-footer {
  width: 100%;
  background: var(--creme2);
  color: var(--texte2);
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 4L76 40L40 76L4 40z' fill='none' stroke='%231A1008' stroke-width='0.3' opacity='0.05'/%3E%3C/svg%3E");
}
.footer-inner {
  position: relative; z-index:1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.footer-col {
  padding: 52px 44px;
  border-right: 1px solid rgba(26,16,8,0.1);
}
.footer-col:last-child { border-right: none; }
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300;
  color: var(--texte); letter-spacing: 0.1em; margin-bottom: 6px;
}
.footer-brand em { font-style: italic; color: var(--rouge); }
.footer-tagline {
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 24px; opacity: 0.9;
}
.footer-about {
  font-size: 0.72rem; line-height: 1.85;
  color: var(--texte2); margin-bottom: 28px; max-width: 260px;
}
.footer-sep { display: flex; align-items:center; gap:10px; margin-bottom: 24px; }
.footer-sep-line { flex:1; height:1px; background: rgba(26,16,8,0.12); }
.footer-sep-diamond { width:5px; height:5px; background:var(--rouge); transform:rotate(45deg); flex-shrink:0; opacity:0.5; }
.footer-social-title {
  font-size: 0.5rem; letter-spacing:0.3em; text-transform:uppercase;
  color: var(--texte3); margin-bottom: 14px;
}
.footer-socials { display: flex; gap: 10px; align-items: center; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(26,16,8,0.05); border: 1px solid rgba(122,21,21,0.22);
  display: flex; align-items:center; justify-content:center;
  text-decoration: none; transition: all 0.25s; cursor: pointer; position: relative;
}
.social-btn:hover { background: rgba(122,21,21,0.08); border-color: rgba(122,21,21,0.45); transform: translateY(-2px); }
.social-btn svg { width:18px; height:18px; }
.social-btn .tooltip {
  position: absolute; bottom: calc(100% + 8px); left:50%; transform:translateX(-50%);
  background: var(--texte); border:1px solid rgba(122,21,21,0.3);
  color: rgba(255,255,255,0.85); font-size: 0.52rem; letter-spacing:0.1em;
  padding: 4px 8px; border-radius:2px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity 0.2s;
}
.social-btn:hover .tooltip { opacity:1; }
.footer-nav-title {
  font-size: 0.5rem; letter-spacing:0.3em; text-transform:uppercase;
  color: var(--texte3); margin-bottom: 20px;
}
.footer-contact-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px;
}
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.fc-icon {
  width: 28px; height: 28px; flex-shrink:0; border-radius: 50%;
  background: rgba(122,21,21,0.06); border: 1px solid rgba(122,21,21,0.18);
  display: flex; align-items:center; justify-content:center; margin-top: 1px;
}
.fc-icon svg { width:13px; height:13px; }
.fc-text { font-size:0.7rem; line-height:1.5; }
.fc-label { font-size:0.48rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--texte3); margin-bottom:2px; }
.fc-value { color: var(--texte2); }
.fc-value a { color: var(--rouge); text-decoration:none; }
.fc-value a:hover { color: var(--rouge2); }
.footer-rdv-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 9px 18px; background: rgba(122,21,21,0.06);
  border: 1px solid rgba(122,21,21,0.32); border-radius: 2px;
  text-decoration: none; color: var(--rouge);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: 'Outfit', sans-serif; font-weight: 400; transition: all 0.25s;
  width: 100%; justify-content: center;
}
.footer-rdv-btn:hover { background: rgba(122,21,21,0.12); border-color: rgba(122,21,21,0.55); color: var(--rouge2); }
.footer-rdv-btn svg { flex-shrink:0; }
.footer-map-col { padding: 0; position: relative; overflow: hidden; }
.footer-map-header { padding: 28px 32px 20px; position: relative; z-index:2; }
.footer-map-title {
  font-size: 0.5rem; letter-spacing:0.3em; text-transform:uppercase;
  color: var(--texte3); margin-bottom: 6px;
}
.footer-map-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; color: var(--texte2); letter-spacing:0.06em;
}
.footer-map-subtitle em { color: var(--rouge); font-style:italic; }
.map-wrapper { width: 100%; height: 220px; position: relative; filter: grayscale(20%) contrast(0.95) brightness(0.92); }
.map-wrapper iframe { width:100%; height:100%; border:none; display:block; }
.map-overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(239,230,210,0.45) 0%, transparent 50%);
  pointer-events:none;
}
.map-pin-label {
  position: absolute; bottom:14px; left:50%; transform:translateX(-50%);
  background: rgba(239,230,210,0.95); border: 1px solid rgba(122,21,21,0.32);
  backdrop-filter: blur(8px); padding: 5px 14px;
  font-size: 0.52rem; letter-spacing:0.2em; text-transform:uppercase;
  color: var(--texte); white-space:nowrap; pointer-events:none;
}
.footer-map-address {
  padding: 14px 32px 0; font-size: 0.62rem; color: var(--texte3);
  letter-spacing:0.05em; line-height:1.6;
}
.footer-map-address span { color: var(--rouge); }
.footer-bottom {
  position: relative; z-index:1; border-top: 1px solid rgba(26,16,8,0.1);
  padding: 16px 44px; display: flex; align-items:center; justify-content:space-between;
  font-size: 0.54rem; letter-spacing:0.1em; color: var(--texte3);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom-center { display:flex; align-items:center; gap:18px; }
.footer-bottom-center a { color:var(--texte3); text-decoration:none; transition:color 0.2s; }
.footer-bottom-center a:hover { color:var(--texte); }
.footer-bottom .or { color:var(--rouge); opacity:0.6; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col { padding: 36px 28px; border-right: none; border-bottom: 1px solid rgba(26,16,8,0.1); }
  .footer-col:last-child { border-bottom: none; }
  .footer-map-col { min-height: 300px; }
  .map-wrapper { height: 200px; }
  .footer-bottom { padding: 14px 28px; flex-direction: column; align-items:flex-start; gap:6px; }
}

/* ══ BOUTON RETOUR ══ */
.back-btn {
  position: fixed; bottom: 28px; left: 28px; z-index: 300;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 30px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(26,16,8,0.12);
  color: var(--texte2); text-decoration: none;
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(26,16,8,0.08);
}
.back-btn:hover { background: #fff; box-shadow: 0 6px 24px rgba(26,16,8,0.14); transform: translateX(-3px); }
