/* ============================================================
   Insight Travel — feuille de style unique
   Palette désert algérien : sable, ocre, terracotta.
   Mobile-first.
   ============================================================ */

:root {
  --sand-50: #faf6f0;
  --sand-100: #f3e9da;
  --sand-200: #e7d5bb;
  --ocre: #cf9233;
  --ocre-dark: #b3781f;
  --terracotta: #b5532a;
  --terracotta-dark: #8f3f1f;
  --olive: #7d8254;        /* rappel du logo */
  --ink: #241d15;
  --ink-soft: #4a3f33;
  --muted: #7b6f60;
  --white: #ffffff;
  --line: #e7ded1;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(60, 40, 20, .12);
  --shadow-lg: 0 20px 50px rgba(60, 40, 20, .18);
  --container: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 70px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand-50); }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section__head p { color: var(--muted); margin-top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(181, 83, 42, .35); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn--outline:hover { background: var(--terracotta); color: #fff; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar { background: var(--ink); color: #e9e0d3; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 42px; flex-wrap: wrap; }
.topbar a, .topbar__addr { display: inline-flex; align-items: center; gap: 6px; color: #e9e0d3; }
.topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar__contact a:hover { color: var(--ocre); }
.topbar svg { width: 15px; height: 15px; fill: var(--ocre); flex: none; }
.topbar__social { display: flex; gap: 10px; }
.topbar__social a svg { width: 16px; height: 16px; fill: #e9e0d3; transition: fill .15s; }
.topbar__social a:hover svg { fill: var(--ocre); }
.topbar__addr { color: #b9ad9c; }
@media (max-width: 860px) {
  .topbar__addr { display: none; }
}
@media (max-width: 560px) {
  .topbar__contact a span { display: none; }   /* garde les icônes cliquables sur mobile */
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 29, 21, .55);
  backdrop-filter: blur(8px);
  transition: background .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { background: var(--ink); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.header__logo img { height: 76px; }
.header__nav { display: flex; gap: 8px; }
.header__nav a {
  color: #f3e9da; font-weight: 500; font-size: .95rem;
  padding: 8px 16px; border-radius: 999px; transition: background .15s, color .15s;
}
.header__nav a:hover { background: rgba(255,255,255,.12); }
.header__nav a.is-active { color: #fff; background: var(--terracotta); }
.header__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.header__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
  .header__toggle { display: flex; }
  .header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink);
    padding: 8px 16px 16px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .2s ease;
  }
  .header.is-open .header__nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header__nav a { padding: 12px 14px; border-radius: 10px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; text-align: left; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(36,29,21,.85) 0%, rgba(36,29,21,.45) 55%, rgba(36,29,21,.2) 100%);
}
.hero__inner { max-width: 680px; padding: 60px 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); color: #fff; }
.hero p { font-size: clamp(1rem, 2.2vw, 1.3rem); margin: 18px 0 30px; color: #f0e6d8; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* bandeau atouts sous le hero */
.usp { background: var(--ink); color: #f3e9da; }
.usp__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 36px 0; }
.usp__item { display: flex; gap: 14px; align-items: flex-start; }
.usp__item svg { width: 30px; height: 30px; fill: var(--ocre); flex: none; }
.usp__item h4 { color: #fff; font-family: var(--font); font-size: 1rem; }
.usp__item p { font-size: .85rem; color: #b9ad9c; }
@media (min-width: 760px) { .usp__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   Cartes circuits
   ============================================================ */
.tour-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }

.tour-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tour-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(36,29,21,.82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
}
.tour-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tour-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ocre-dark); background: var(--sand-100); padding: 4px 10px; border-radius: 999px; }
.tour-card__body h3 { font-size: 1.3rem; }
.tour-card__tagline { color: var(--terracotta); font-weight: 500; font-size: .9rem; margin: 4px 0 10px; }
.tour-card__body p { color: var(--muted); font-size: .92rem; flex: 1; }
.tour-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.tour-card__link { color: var(--terracotta); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.tour-card__link:hover { gap: 10px; }

/* filtres */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font); font-weight: 600; font-size: .88rem; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  transition: .15s;
}
.filter-btn:hover { border-color: var(--ocre); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   Sections page d'accueil
   ============================================================ */
/* vidéo */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* facade clic-pour-lire */
.video-facade { background-size: cover; background-position: center; cursor: pointer; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(36,29,21,.28); transition: background .2s; }
.video-facade:hover::after { background: rgba(36,29,21,.12); }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 92px; height: 64px; border: 0; background: none; cursor: pointer; z-index: 2; padding: 0; }
.video-facade__play svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); transition: transform .2s; }
.video-facade__play .yt-btn { transition: fill .2s; }
.video-facade:hover .video-facade__play svg { transform: scale(1.08); }
.video-facade:hover .video-facade__play .yt-btn { fill: #f00; }
.video-facade__fallback { position: absolute; bottom: 14px; right: 16px; z-index: 2; color: #fff; font-size: .82rem; font-weight: 600; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; }
.video-facade__fallback:hover { background: var(--terracotta); }

/* "pourquoi nous choisir" — split */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.why-list { list-style: none; margin-top: 22px; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list svg { width: 24px; height: 24px; fill: var(--terracotta); flex: none; margin-top: 2px; }
.why-list strong { display: block; font-size: 1.02rem; }
.why-list span { color: var(--muted); font-size: .9rem; }

/* stats bandeau */
.stats { background: linear-gradient(120deg, var(--terracotta), var(--ocre)); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 44px 0; text-align: center; }
.stats__num { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; }
.stats__label { font-size: .85rem; opacity: .92; letter-spacing: .05em; text-transform: uppercase; }

/* témoignages */
.testimonials { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--ocre); }
.quote p { font-style: italic; color: var(--ink-soft); }
.quote__author { margin-top: 16px; font-weight: 600; font-family: var(--font); }
.quote__author span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.quote__stars { color: var(--ocre); letter-spacing: 2px; margin-bottom: 12px; }

/* CTA final */
.cta {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: var(--ink);
}
.cta__bg { position: absolute; inset: 0; z-index: 0; opacity: .35; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta .container { position: relative; z-index: 1; padding: 72px 20px; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta p { max-width: 560px; margin: 14px auto 28px; color: #f0e6d8; }

/* ============================================================
   Bannière de page (pages internes)
   ============================================================ */
.page-banner { position: relative; color: #fff; padding: 90px 0 70px; text-align: center; overflow: hidden; }
.page-banner__bg { position: absolute; inset: 0; z-index: -2; }
.page-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(36,29,21,.62); }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-banner p { color: #f0e6d8; margin-top: 10px; }
.breadcrumb { font-size: .85rem; color: #e7d9c4; margin-top: 8px; }
.breadcrumb a:hover { color: var(--ocre); }

/* ============================================================
   Page À propos
   ============================================================ */
.pillars { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { text-align: center; padding: 30px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--sand-100); display: grid; place-items: center; }
.pillar__icon svg { width: 30px; height: 30px; fill: var(--terracotta); }
.pillar h3 { font-size: 1.2rem; font-family: var(--font); }
.pillar p { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ============================================================
   Page Détail circuit
   ============================================================ */
.tour-detail__head { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tour-detail__head { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.tour-detail__cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tour-detail__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tour-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0; }
.tour-meta div { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: .95rem; }
.tour-meta svg { width: 20px; height: 20px; fill: var(--terracotta); }
.highlights { list-style: none; display: grid; gap: 12px; margin: 18px 0; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; }
.highlights svg { width: 20px; height: 20px; fill: var(--ocre); flex: none; margin-top: 3px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* ============================================================
   Page Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border .15s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ocre); }
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: var(--sand-50); padding: 18px; border-radius: var(--radius); }
.contact-card svg { width: 24px; height: 24px; fill: var(--terracotta); flex: none; }
.contact-card h4 { font-family: var(--font); font-size: 1rem; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: .92rem; }
.contact-card a:hover { color: var(--terracotta); }
.map-wrap { margin-top: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #c9bdac; padding-top: 56px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.footer__brand img { height: 46px; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s; }
.footer__social a:hover { background: var(--terracotta); }
.footer__social svg { width: 17px; height: 17px; fill: #f3e9da; }
.footer__col h4 { color: #fff; font-family: var(--font); font-size: 1rem; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: flex; gap: 8px; align-items: flex-start; color: #c9bdac; margin-bottom: 10px; }
.footer__col a:hover { color: var(--ocre); }
.footer__col svg { width: 16px; height: 16px; fill: var(--ocre); flex: none; margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .82rem; color: #9a8e7d; }

/* nom d'auteur des témoignages (surcharge du span générique) */
.quote__author .qa-name { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); }

/* ============================================================
   Sélecteur de langue
   ============================================================ */
.lang-switch { display: inline-flex; gap: 2px; margin-inline-start: 10px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; align-self: center; }
.lang-opt { border: 0; background: none; color: #f3e9da; font-family: var(--font); font-weight: 600; font-size: .78rem; padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.lang-opt:hover { background: rgba(255,255,255,.18); }
.lang-opt.is-active { background: var(--terracotta); color: #fff; }
@media (max-width: 820px) {
  .lang-switch { margin: 8px 14px; align-self: flex-start; }
}

/* ============================================================
   Support RTL (arabe)
   ============================================================ */
html[dir="rtl"] body { font-family: "Cairo", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: "Cairo", serif; }
html[dir="rtl"] .eyebrow { letter-spacing: .04em; }
html[dir="rtl"] .hero { text-align: right; }
html[dir="rtl"] .hero p { margin-inline: 0; }
html[dir="rtl"] .tour-card__badge { left: auto; right: 14px; }
html[dir="rtl"] .video-facade__fallback { right: auto; left: 16px; }
/* Les listes/flex à icône se ré-ordonnent automatiquement grâce à dir=rtl. */

/* utilitaires */
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
[hidden] { display: none !important; }
