/* ============================================================
   Maquette Karam Voyages — palette marocaine (ocre, terracotta,
   sable, bleu Majorelle). Démonstration, données fictives.
   ============================================================ */
:root {
  --ocre: #c97b3c;
  --terracotta: #b5462e;
  --terracotta-fonce: #8a2e1f;
  --sable: #f4e9d8;
  --sable-clair: #fbf6ee;
  --bleu: #2b6ca3;
  --bleu-fonce: #1a3a52;
  --nuit: #2a1f17;
  --gris: #6b5d50;
  --blanc: #ffffff;
  --ombre: 0 10px 30px rgba(90, 45, 20, 0.12);
  --ombre-forte: 0 18px 50px rgba(90, 45, 20, 0.22);
  --radius: 16px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--nuit);
  background: var(--sable-clair);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--terracotta-fonce); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sable { background: var(--sable); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--gris); margin-top: 0.6rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 700; color: var(--ocre); margin-bottom: 0.6rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(181, 70, 46, 0.35); }
.btn--primary:hover { background: var(--terracotta-fonce); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn--outline { background: #fff; border-color: var(--ocre); color: var(--terracotta-fonce); }
.btn--outline:hover { background: var(--sable); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 123, 60, 0.2);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--terracotta-fonce); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ocre), var(--terracotta)); color: #fff; font-size: 1.2rem;
}
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ocre); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.98rem; color: var(--nuit); position: relative; padding: 0.2rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--terracotta); transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }
.nav-cta { margin-left: 0.4rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--terracotta-fonce); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(42, 31, 23, 0.55), rgba(138, 46, 31, 0.65)),
    radial-gradient(circle at 20% 20%, #e0a458, transparent 55%),
    radial-gradient(circle at 80% 30%, #c97b3c, transparent 50%),
    linear-gradient(135deg, #b5462e, #8a2e1f 55%, #2a1f17);
}
.hero .container { position: relative; z-index: 1; padding-block: 3rem; width: min(1160px, 92%); }
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 1rem 0 2rem; max-width: 560px; color: rgba(255,255,255,0.94); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.hero-badges span { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255,255,255,0.3); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; }

/* ---------- Barre de recherche factice ---------- */
.searchbar {
  background: rgba(255, 255, 255, 0.96); color: var(--nuit); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--ombre-forte); display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr auto; gap: 0.8rem; align-items: end; max-width: 820px;
}
.searchbar .field { display: flex; flex-direction: column; text-align: left; }
.searchbar label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); margin-bottom: 0.25rem; }
.searchbar input, .searchbar select {
  border: 1px solid #e0d3c0; border-radius: 10px; padding: 0.65rem 0.7rem; font-size: 0.95rem;
  font-family: var(--sans); background: #fff; color: var(--nuit);
}
.searchbar input:focus, .searchbar select:focus { outline: 2px solid var(--ocre); border-color: var(--ocre); }

/* ---------- Grille de séjours ---------- */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre);
  display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; }
.card .thumb .badge {
  position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(42, 31, 23, 0.78);
  color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.card .thumb .note {
  position: absolute; top: 0.8rem; right: 0.8rem; background: #fff; color: var(--terracotta-fonce);
  font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 999px; box-shadow: var(--ombre);
}
.card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card .place { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ocre); font-weight: 700; }
.card h3 { margin: 0.25rem 0 0.5rem; font-size: 1.2rem; }
.card .desc { color: var(--gris); font-size: 0.92rem; flex: 1; }
.card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid #f0e6d6; }
.card .price { font-family: var(--serif); font-size: 1.25rem; color: var(--terracotta); font-weight: 700; }
.card .price small { display: block; font-family: var(--sans); font-size: 0.7rem; color: var(--gris); font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; }
.tag-row span { font-size: 0.72rem; background: var(--sable); color: var(--terracotta-fonce); padding: 0.2rem 0.6rem; border-radius: 999px; }

/* ---------- Bandeau confiance ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust .item .num { font-family: var(--serif); font-size: 2.2rem; color: var(--terracotta); font-weight: 700; }
.trust .item p { color: var(--gris); font-size: 0.95rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--ombre); }
.review .stars { color: var(--ocre); letter-spacing: 2px; }
.review p { margin: 0.6rem 0; font-style: italic; color: var(--nuit); }
.review .author { font-weight: 700; color: var(--terracotta-fonce); font-size: 0.9rem; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; margin-bottom: 2rem; }
.chip {
  background: #fff; border: 1px solid #e6d8c4; color: var(--nuit); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.15s;
}
.chip:hover { border-color: var(--ocre); }
.chip.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.filters .sep { width: 1px; height: 24px; background: #e0d3c0; margin: 0 0.4rem; }
.result-count { text-align: center; color: var(--gris); margin-bottom: 1.5rem; }

/* ---------- Page détail ---------- */
.detail-hero { color: #fff; padding: 3.5rem 0; position: relative; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; opacity: 0.9; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; font-weight: 600; }
.detail-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.8rem; height: 420px; }
.gallery > div { border-radius: 12px; }
.gallery > div:first-child { grid-row: span 2; }
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; border-left: 2px solid #e6d8c4; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: -11px; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
}
.timeline h4 { font-family: var(--serif); color: var(--terracotta-fonce); font-size: 1.1rem; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.incl ul { list-style: none; }
.incl li { padding: 0.35rem 0 0.35rem 1.7rem; position: relative; color: var(--nuit); }
.incl .yes li::before { content: "✓"; position: absolute; left: 0; color: #4f9d5b; font-weight: 700; }
.incl .no li::before { content: "✕"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.map-static { border-radius: 12px; overflow: hidden; height: 260px; position: relative; }
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  background: var(--terracotta); color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  box-shadow: var(--ombre);
}
.booking-card {
  position: sticky; top: 90px; background: #fff; border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 1.5rem; border: 1px solid #f0e6d6;
}
.booking-card .big { font-family: var(--serif); font-size: 2rem; color: var(--terracotta); font-weight: 700; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--ombre); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-field label .req { color: var(--terracotta); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid #e0d3c0; border-radius: 10px; padding: 0.7rem 0.8rem; font-size: 0.98rem;
  font-family: var(--sans); background: #fff; color: var(--nuit); width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--ocre); border-color: var(--ocre); }
.form-note { font-size: 0.8rem; color: var(--gris); margin-top: 0.3rem; }
.alert {
  border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1.2rem; display: none;
  background: #eaf6ec; border: 1px solid #b9e0c1; color: #2f6b3a;
}
.alert.show { display: block; animation: pop 0.3s ease; }
.alert strong { display: block; margin-bottom: 0.2rem; }
@keyframes pop { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-fonce)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0.8rem auto 1.6rem; color: rgba(255,255,255,0.92); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: #e9ddcd; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--serif); color: #fff; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: #cdbda6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: 0.85rem; color: #b3a48f; }

/* ---------- Badge démo ---------- */
.demo-flag {
  position: fixed; bottom: 14px; right: 14px; z-index: 80;
  background: rgba(42, 31, 23, 0.9); color: #f4e9d8; font-size: 0.72rem; font-weight: 600;
  padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(201,123,60,0.6);
  box-shadow: var(--ombre); pointer-events: none;
}

/* ---------- Modale devis ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(42, 31, 23, 0.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; padding: 1.8rem;
  max-height: 90vh; overflow-y: auto; animation: pop 0.25s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.modal-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--gris); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .trust, .reviews, .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 150px; }
  .gallery > div:first-child { grid-column: span 2; grid-row: span 1; height: 200px; }
  .searchbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--sable-clair); border-bottom: 1px solid rgba(201,123,60,0.2);
    padding: 0.5rem 6%; box-shadow: var(--ombre); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 0; border-bottom: 1px solid rgba(201,123,60,0.12); }
  .nav-links .nav-cta { padding: 0.9rem 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .searchbar { grid-template-columns: 1fr; }
  .trust, .reviews, .incl, .form-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
}
