:root {
  /* Couleur de marque : #78006e (prune) et ses nuances */
  --brand-900: #3d0038; --brand-700: #78006e; --brand-500: #9b2a8f; --brand-soft: #f6e7f3;
  --gold: #c9a45c; --gold-soft: #f3e7cc;
  --sand: #f8f4f2; --card: #ffffff; --ink: #24121f; --muted: #6e6370; --line: #ebe1e6;
  --red: #a3341f; --red-soft: #fbe9e3;
  --radius: 18px; --shadow: 0 10px 30px rgba(61, 0, 56, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Cairo", system-ui, sans-serif; background: var(--sand); color: var(--ink); line-height: 1.5; }

/* ---------- En-tête ---------- */
.hero {
  color: #fff; padding: 20px 24px 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 80% 0%, #a3209a 0%, transparent 60%),
    linear-gradient(160deg, var(--brand-700), var(--brand-900));
}
.top { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: .5px; color: #fff; text-decoration: none; }
.links-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.links-nav a { color: rgba(255,255,255,.8); text-decoration: none; padding: 6px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; }
.links-nav a:hover { color: #fff; }
.links-nav a[aria-current="page"] { color: var(--gold); }
.logo b { color: var(--gold); }
/* Menu collé en haut pendant le défilement */
.top { position: relative; }
.top.stuck { position: fixed; top: 0; left: 0; right: 0; max-width: none; z-index: 100;
  padding: 10px max(16px, calc((100% - 1100px) / 2));
  background: rgba(61, 0, 56, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(61, 0, 56, .25); animation: slide-down .25s ease; }
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.nav-spacer { height: 0; }
html { scroll-padding-top: 80px; } /* les ancres du guide ne passent pas sous le menu */

/* Barre d'onglets mobile (en bas de l'écran) */
.tabbar { display: none; }
@media (max-width: 720px) {
  .links-nav { display: none; }                       /* les liens passent dans la barre du bas */
  .top { flex-wrap: nowrap; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(61, 0, 56, .08);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px;
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; min-height: 48px; justify-content: center; }
  .tabbar .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--brand-700); background: var(--brand-soft); }
  body.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* Simulateur : boutons Retour / Continuer toujours visibles, au-dessus de la barre d'onglets */
  .wizard-nav { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 80; margin: 24px -16px 0;
    padding: 10px 16px; background: rgba(248, 244, 242, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); }
  .wizard-nav .btn { flex: 1; text-align: center; padding: 14px 16px; }
  .wizard-nav #next { flex: 2; }
}

/* Sélecteur de langue (menu déroulant) */
.lang-btn { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .9rem; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.55); border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.12); border-color: #fff; }
.lang-btn svg { width: 18px; height: 18px; }
.lang-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); z-index: 50; min-width: min(560px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 50px rgba(61, 0, 56, .25); padding: 24px 28px;
  display: grid; grid-template-columns: 140px 1fr; gap: 12px 24px; align-items: start; animation: fade .18s ease; }
.lang-title { margin: 6px 0 0; color: var(--brand-700); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; }
.lang-list button { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; text-align: start; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--brand-soft); outline: none; }
.lang-list button[aria-checked="true"] { color: var(--brand-700); }
.flag { display: inline-flex; width: 26px; height: 18px; flex: none; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag svg { width: 100%; height: 100%; }
.sep { width: 1px; height: 18px; background: var(--line); flex: none; }
@media (max-width: 640px) { .lang-panel { grid-template-columns: 1fr; padding: 18px; } }
.hero-text { max-width: 1100px; margin: 56px auto 0; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: .8rem; margin: 0; }
[dir="rtl"] .kicker { letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 8px 0 12px; font-weight: 800; max-width: 720px; }
.lead { max-width: 620px; opacity: .85; margin: 0; font-size: 1.05rem; }

/* ---------- Contenu ---------- */
main { max-width: 1100px; margin: -80px auto 0; padding: 0 16px 64px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h2 { margin: 0 0 6px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.city h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.madinah h2::before { background: var(--brand-500); }
label { display: block; font-size: .82rem; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
select, input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; background: #fcf9fa; color: var(--ink); }
select:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.row { display: flex; gap: 10px; } .row > div { flex: 1; }
.info { margin: 10px 0 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stars { color: var(--gold); letter-spacing: 1px; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.tag.indice { background: var(--brand-soft); color: var(--brand-500); }
.tag.releve { background: var(--gold-soft); color: #8a6a26; }

#result { margin-top: 24px; }
.alert { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; font-weight: 600; }
.alert.warn { background: var(--gold-soft); color: #7a5a1a; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.total { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.total small { display: block; color: var(--muted); font-size: .82rem; }
.total strong { display: block; font-size: 1.7rem; font-weight: 800; margin: 2px 0; }
.total.main { background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #fff; border: 0; }
.total.main small { color: var(--gold-soft); }
.total.main strong { font-size: 2.1rem; color: var(--gold); }

.detail .stay { margin: 0 0 8px; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge { padding: 4px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-500); font-size: .8rem; font-weight: 700; }
.badge.hot { background: var(--gold-soft); color: #8a6a26; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: end; }
th:first-child, td:first-child { text-align: start; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
td.b { font-weight: 700; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 99px; background: var(--gold); color: var(--brand-900); text-decoration: none; font-weight: 700; font-size: .9rem; }
.btn.ghost { background: transparent; border: 1.5px solid var(--brand-700); color: var(--brand-700); }
.btn:hover { filter: brightness(1.05); }
.foot { color: var(--muted); font-size: .78rem; margin-top: 20px; }

/* ---------- Comparaison agence ---------- */
.compare { margin-bottom: 16px; }
.compare .ctx, .muted { color: var(--muted); font-size: .85rem; margin: 6px 0; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.vs > div { background: #fcf9fa; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.vs small { display: block; color: var(--muted); font-size: .8rem; }
.vs strong { display: block; font-size: 1.5rem; font-weight: 800; }
.verdict { font-weight: 700; padding: 10px 14px; border-radius: 12px; margin: 8px 0; }
.verdict.win { background: var(--brand-soft); color: var(--brand-500); }
.verdict.lose { background: var(--gold-soft); color: #7a5a1a; }
.verdict.eq { background: #eef0f2; color: var(--ink); }
/* ---------- Simulateur pas à pas ---------- */
.hero.slim { padding-bottom: 100px; }
.hero.slim .hero-text { margin-top: 36px; }
.wizard { max-width: 920px; }
.stepper { list-style: none; margin: 0 0 20px; padding: 14px 18px; display: flex; gap: 8px; background: var(--card); border-radius: 99px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.stepper li.done { cursor: pointer; color: var(--brand-500); }
.stepper li.done::after { background: var(--brand-500); }
.stepper li.on { color: var(--ink); }
.stepper .n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); border: 1.5px solid var(--line); font-weight: 800; }
.stepper .on .n { background: var(--gold); border-color: var(--gold); color: var(--brand-900); }
.stepper .done .n { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

.panel { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 1.5rem; font-weight: 800; margin: 8px 0 16px; }

/* Étape 1 : cartes de gamme */
.gammes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gamme { position: relative; text-align: start; font: inherit; color: var(--ink); cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s; }
.gamme:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(61, 0, 56, .12); }
.gamme .g-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.gamme b { font-size: 1.4rem; font-weight: 800; }
.gamme .g-desc { color: var(--muted); font-size: .9rem; }
.gamme .g-ex { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--brand-500); font-weight: 600; }
.gamme[aria-checked="true"] { background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #fff; border-color: transparent; }
.gamme[aria-checked="true"] .g-desc { color: var(--gold-soft); }
.gamme[aria-checked="true"] .g-ex { color: var(--gold); border-color: rgba(255,255,255,.2); }

/* Étape 2 : champs */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.fields .full { grid-column: 1 / -1; }
.counter { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fcf9fa; }
.counter input { border: 0; text-align: center; border-radius: 0; background: transparent; -moz-appearance: textfield; }
.counter input::-webkit-inner-spin-button { -webkit-appearance: none; }
.counter button { border: 0; background: transparent; font: inherit; font-size: 1.2rem; font-weight: 700; width: 44px; cursor: pointer; color: var(--brand-700); }
.counter button:hover { background: var(--gold-soft); }
.counter.small { width: 120px; }
.counter.small input { padding: 6px 0; }
.counter.small button { width: 36px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; }
.kids-note { margin-top: 2px; }
@media (max-width: 720px) { .people { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fcf9fa; color: var(--ink); cursor: pointer; }
.chip[aria-checked="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Étape 3 : hôtels */
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.city-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.city-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.city-head h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.madinah .city-head h3::before { background: var(--brand-500); }
.unit { color: var(--muted); font-size: .85rem; }
.hotel-list { display: flex; flex-direction: column; gap: 8px; }
.hotel { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: start; font: inherit; color: var(--ink); background: #fcf9fa; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.hotel:hover:not(:disabled) { border-color: var(--gold); }
.hotel b { font-size: .95rem; }
.h-main { display: flex; flex-direction: column; min-width: 0; }
.h-meta { font-size: .76rem; color: var(--muted); }
.h-price { text-align: end; white-space: nowrap; }
.h-price b { display: block; font-size: 1rem; }
.h-price small { color: var(--muted); font-size: .72rem; }
.hotel[aria-checked="true"] { border-color: var(--brand-700); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-700); }
.hotel.full { opacity: .5; cursor: not-allowed; }
.hotel.full .h-price { color: var(--red); font-weight: 700; font-size: .85rem; }

/* Navigation */
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.wizard-nav .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 13px 26px; }
.wizard-nav .btn.ghost { border: 1.5px solid var(--brand-700); }
.wizard-nav #next { margin-inline-start: auto; }
[hidden] { display: none !important; }

/* Étape 4 : résultat */
.hero-total { text-align: center; color: #fff; border-radius: var(--radius); padding: 28px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, var(--brand-700), var(--brand-900)); }
.hero-total small { color: var(--gold-soft); font-size: .85rem; }
.hero-total strong { display: block; font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; color: var(--gold); line-height: 1.1; margin-top: 6px; }
.hero-total span { font-size: .9rem; opacity: .8; }
.hero-total p { margin: 10px 0 0; font-size: .85rem; opacity: .75; }
.verdict.big { font-size: 1.1rem; text-align: center; }
details.detail { margin-top: 16px; }
details.detail summary { font-weight: 700; color: var(--brand-700); margin-bottom: 4px; }
details.detail[open] summary { margin-bottom: 14px; }

@media (max-width: 720px) {
  .gammes, .cities, .fields { grid-template-columns: 1fr; }
  .stepper { border-radius: 16px; padding: 10px 12px; }
  .stepper .l { display: none; }
  .stepper li.on .l { display: inline; }
}
.tip-alt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.btn.small { padding: 7px 14px; font-size: .82rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pros { margin: 8px 0; padding-inline-start: 20px; font-size: .9rem; }
.table-wrap { overflow-x: auto; }

/* ---------- Accueil ---------- */
.hero.big { padding-bottom: 96px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn.ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.home main { margin-top: -48px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.features .card h2 { color: var(--brand-700); }
.section { margin-top: 48px; }
.section > h2 { font-size: 1.6rem; margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-weight: 600; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--brand-900); font-weight: 800; margin-bottom: 8px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 20px 16px; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-700); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
/* Icônes au trait */
.icon, .logo-mark { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon .accent, .logo-mark .accent { stroke: var(--gold); stroke-width: 2.2; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; color: #fff; }
.features .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px;
  background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #fff; box-shadow: 0 6px 16px rgba(61, 0, 56, .18); }
.features .ico .icon { width: 26px; height: 26px; }
.section > .sub { color: var(--muted); margin: -8px 0 18px; max-width: 720px; }
.more { color: var(--brand-700); font-weight: 700; text-decoration: none; }

/* Exemples de budgets */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.example { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.example .g-stars { color: var(--gold); letter-spacing: 2px; }
.example h3 { margin: 0; font-size: 1.35rem; }
.ex-hotels { color: var(--muted); font-size: .82rem; margin: 0 0 10px; min-height: 2.4em; }
.ex-price { font-size: 2.3rem; font-weight: 800; color: var(--brand-700); line-height: 1; }
.ex-unit { color: var(--muted); font-size: .82rem; }
.ex-vs { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.ex-verdict { margin: 6px auto 14px; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 99px; }
.ex-verdict.win { background: var(--brand-soft); color: var(--brand-700); }
.ex-verdict.lose { background: var(--gold-soft); color: #7a5a1a; }
.example .btn { margin-top: auto; }
.example.featured { background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #fff; border: 0; transform: scale(1.03); }
.example.featured .ex-hotels, .example.featured .ex-unit, .example.featured .ex-vs { color: var(--gold-soft); }
.example.featured .ex-price { color: var(--gold); }
.example.featured .ex-verdict.win { background: rgba(255,255,255,.15); color: #fff; }

/* Exemple famille */
.family { margin-top: 20px; display: grid; grid-template-columns: 1.3fr 1.2fr; gap: 8px 28px; align-items: center;
  background: var(--card); border: 2px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.family:empty { display: none; }
.fam-text h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--brand-700); }
.fam-text p { margin: 0; color: var(--muted); font-size: .92rem; }
.fam-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fam-figs > div { text-align: center; background: var(--brand-soft); border-radius: 14px; padding: 12px; }
.fam-figs .ag { background: #f3eef1; }
.fam-figs small { display: block; font-size: .78rem; color: var(--muted); }
.fam-figs strong { font-size: 1.6rem; font-weight: 800; color: var(--brand-700); }
.fam-figs .ag strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.fam-save { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--brand-700); }
@media (max-width: 720px) { .family { grid-template-columns: 1fr; } }

/* Hôtels */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--gold); }
.hcard.madinah { border-top-color: var(--brand-500); }
.hcard .h-city { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.hcard b { font-size: .98rem; }
.hcard .h-meta { font-size: .78rem; color: var(--muted); }
.hcard .h-price { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.hcard .h-price strong { font-size: 1.25rem; color: var(--ink); }

/* Calendrier */
.calendar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month { text-align: center; }
.month small { display: block; margin-top: 6px; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lv { display: block; height: 34px; border-radius: 6px; }
.lv.low { background: #e9cfe4; }
.lv.mid { background: #c77dbb; }
.lv.high { background: var(--brand-700); }
.lv.closed { background: repeating-linear-gradient(45deg, #d9d2d6 0 6px, #f1edef 6px 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }

/* Agence ou sans agence */
.vs-table th, .vs-table td { text-align: start; vertical-align: top; padding: 14px 12px; }
.vs-table thead th { font-size: .95rem; color: var(--ink); }
.vs-table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.vs-table .us { background: var(--brand-soft); }
.vs-table thead .us { color: var(--brand-700); border-radius: 10px 10px 0 0; }

/* Appel à l'action final et pied de page */
.cta-band { text-align: center; color: #fff; border-radius: var(--radius); padding: 48px 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, var(--brand-700), var(--brand-900)); }
.cta-band h2 { font-size: 1.8rem; margin: 0 0 8px; }
.cta-band p { opacity: .85; margin: 0; }
.cta-band .cta { justify-content: center; }
.cta-band .btn.ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.site-foot { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: .8rem; text-align: center; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: 1fr; }
  .example.featured { transform: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calendar { grid-template-columns: repeat(6, 1fr); row-gap: 14px; }
  .showcase { grid-template-columns: 1fr; }
}

/* ---------- Guide ---------- */
.guide main { max-width: 860px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; text-decoration: none; color: var(--brand-700); font-weight: 600; font-size: .88rem; }
.step { scroll-margin-top: 16px; }
.step h2 { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; }
.step h2 span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 50%; background: var(--brand-700); color: var(--gold); font-size: 1rem; }
.step p, .step li { color: #3f2f3c; }
.step a { color: var(--brand-500); font-weight: 600; }
.tip { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checklist label { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .95rem; margin: 0; font-weight: 400; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-500); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
.progress > div { height: 100%; background: var(--brand-500); width: 0; transition: width .2s; }
.updated { color: var(--muted); font-size: .8rem; }

@media (max-width: 560px) {
  .vs { grid-template-columns: 1fr; }
  .links-nav { order: 3; width: 100%; margin: 0; }
  .hero { padding: 16px 16px 110px; }
  .hero-text { margin-top: 32px; }
  th, td { padding: 8px 3px; font-size: .82rem; }
  .total strong { font-size: 1.4rem; } .total.main strong { font-size: 1.7rem; }
}

/* ---------- Arabesque ----------
   1) --band : galon vertical inspiré du tissage Sadu (losanges emboîtés rose / prune / or), posé sur le bord
      de début des cartes, comme sur visitsaudi.
   2) --girih : treillis d'étoiles à 8 branches entrelacées (khatam) pour les grands aplats prune. */
:root {
  /* Galon Sadu : dents dorées sur les deux bords, losanges emboîtés or / prune / rose pâle au centre. */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='36' viewBox='0 0 18 36'%3E%3Crect width='18' height='36' fill='%236d0f66'/%3E%3Cg fill='%23c9a45c'%3E%3Cpath d='M0 0L3 4.5L0 9L3 13.5L0 18L3 22.5L0 27L3 31.5L0 36ZM18 0L15 4.5L18 9L15 13.5L18 18L15 22.5L18 27L15 31.5L18 36Z'/%3E%3Cpath d='M9 3L14 18L9 33L4 18Z'/%3E%3Cpath d='M7.3 0L9 1.6L10.7 0ZM7.3 36L9 34.4L10.7 36Z'/%3E%3C/g%3E%3Cpath d='M9 7L12 18L9 29L6 18Z' fill='%236d0f66'/%3E%3Cpath d='M9 11.5L10.7 18L9 24.5L7.3 18Z' fill='%23f5e8f3'/%3E%3Cpath d='M9 16.4L9.6 18L9 19.6L8.4 18Z' fill='%236d0f66'/%3E%3C/svg%3E");
  --band-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Crect width='36' height='18' fill='%236d0f66'/%3E%3Cg fill='%23c9a45c'%3E%3Cpath d='M0 0L4.5 3L9 0L13.5 3L18 0L22.5 3L27 0L31.5 3L36 0ZM0 18L4.5 15L9 18L13.5 15L18 18L22.5 15L27 18L31.5 15L36 18Z'/%3E%3Cpath d='M3 9L18 4L33 9L18 14Z'/%3E%3Cpath d='M0 7.3L1.6 9L0 10.7ZM36 7.3L34.4 9L36 10.7Z'/%3E%3C/g%3E%3Cpath d='M7 9L18 6L29 9L18 12Z' fill='%236d0f66'/%3E%3Cpath d='M11.5 9L18 7.3L24.5 9L18 10.7Z' fill='%23f5e8f3'/%3E%3Cpath d='M16.4 9L18 8.4L19.6 9L18 9.6Z' fill='%236d0f66'/%3E%3C/svg%3E");
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.2' stroke-width='1.1'%3E%3Cpath d='M19 19h34v34H19zM36 12 60 36 36 60 12 36z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3Cpath d='M-17-17h34v34h-34zM0-24 24 0 0 24-24 0zM55-17h34v34H55zM72-24 96 0 72 24 48 0zM-17 55h34v34h-34zM0 48 24 72 0 96-24 72zM55 55h34v34H55zM72 48 96 72 72 96 48 72z'/%3E%3Cpath d='M24 0 36 12M48 0 36 12M24 72 36 60M48 72 36 60M0 24 12 36M0 48 12 36M72 24 60 36M72 48 60 36'/%3E%3C/g%3E%3C/svg%3E");
}
.hero, .hero-total, .cta-band { background-image: url("../img/girih.svg"), radial-gradient(ellipse at 80% 0%, #a3209a 0%, transparent 60%), linear-gradient(160deg, var(--brand-700), var(--brand-900)); }

/* Le galon est un accent : réservé aux cartes mises en avant (chiffres clés, exemple famille, progression des rites). */
.stats, .family, .rites-progress, .guide #intro {
  border-inline-start: 16px solid transparent;
  /* fond blanc au-dessus (limité à l'intérieur), motif en dessous (visible seulement dans la bordure) */
  background: linear-gradient(var(--card), var(--card)) padding-box, url("../img/girih-band.svg") left top / 56px auto repeat border-box;
}
[dir="rtl"] :is(.stats, .family, .rites-progress, .guide #intro) {
  background: linear-gradient(var(--card), var(--card)) padding-box, url("../img/girih-band.svg") right top / 56px auto repeat border-box;
}
.rite { background: var(--card); border: 1px solid var(--line); }
/* Cartes d'hôtels : galon horizontal en haut (12 px). */
.hcard { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 30px; }
.hcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: url("../img/girih-band.svg") bottom left/ 29px repeat; }

/* ---------- Page « Les rites » ---------- */
.rites-page main { max-width: 820px; }
.rites-progress .progress-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rites-toc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.rites-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.rites-toc b { color: var(--brand-700); font-weight: 800; min-width: 22px; }
.rites-toc li.ok a { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); }
.rites-toc li.ok b { color: var(--gold); }

.rite { margin-top: 18px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rite > header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: #fff;
  background: url("../img/girih.svg") center / auto, linear-gradient(120deg, var(--brand-700), var(--brand-900)); }
.rite .num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--gold); min-width: 52px; }
.rite h2 { margin: 0; font-size: 1.25rem; }
.rite-body { padding: 16px 20px 4px; }
.rite-body > p { margin: 0 0 10px; }
.rule .who { display: inline-block; margin-inline-end: 8px; padding: 1px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; }
.rule.man .who { background: var(--brand-soft); color: var(--brand-700); }
.rule.woman .who { background: var(--gold-soft); color: #7a5a1c; }
.dua { margin: 6px 0 14px; padding: 16px; text-align: center; border-radius: 14px; background: var(--brand-soft); border: 1px solid #ecd3e7; }
.dua-label { display: block; font-size: .8rem; font-weight: 800; color: var(--brand-700); }
.dua-ar { margin: 4px 0 6px; font-family: "Amiri", "Cairo", serif; font-size: 1.85rem; line-height: 2; color: var(--brand-900); }
.dua-tr { margin: 0; color: #9a7428; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .3px; }
.dua figcaption { margin-top: 4px; color: var(--muted); font-style: italic; font-size: .92rem; }
.rite-done { display: flex; align-items: center; gap: 10px; margin: 0 20px 16px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px dashed var(--line); font-weight: 700; cursor: pointer; min-height: 48px; }
.rite-done input { width: 22px; height: 22px; accent-color: var(--brand-700); flex: none; }
.rite.ok .rite-done { border-style: solid; border-color: var(--gold); background: var(--gold-soft); }
.rite.ok > header .num::after { content: " ✓"; font-size: 1.2rem; }
.rites-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
  .tabbar { grid-template-columns: repeat(4, 1fr); }
  .tabbar a { font-size: .68rem; text-align: center; line-height: 1.15; }
  .dua-ar { font-size: 1.55rem; }
  .rite > header { padding: 14px 16px; } .rite-body { padding: 14px 16px 2px; } .rite-done { margin: 0 16px 14px; }
}

/* ---------- Articles ---------- */
.article { max-width: 820px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--brand-700); text-decoration: none; font-weight: 600; }
.prose { font-size: 1.02rem; line-height: 1.75; }
.prose h2 { color: var(--brand-700); font-size: 1.35rem; margin: 28px 0 8px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand-700); font-weight: 700; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th { background: var(--brand-soft); color: var(--brand-700); text-align: start; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose td:last-child { font-weight: 800; white-space: nowrap; }
.art-cta { text-align: center; margin: 22px 0 !important; }
.related { margin-top: 28px; }
.related h2 { font-size: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related-grid.list { grid-template-columns: 1fr; }
.rel { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.rel:hover { transform: translateY(-2px); }
.rel b { color: var(--brand-700); font-size: 1.05rem; line-height: 1.35; }
.rel span { color: var(--muted); font-size: .9rem; }
.rel em { color: var(--brand-700); font-style: normal; font-weight: 700; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; color: rgba(255,255,255,.8); padding: 40px max(16px, calc((100% - 1100px) / 2)) 24px;
  background: url("../img/girih.svg"), linear-gradient(160deg, var(--brand-900), #25001f); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: var(--gold); font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #fff; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.foot-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.foot-logo b { color: var(--gold); }
.foot-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .8rem; color: rgba(255,255,255,.6); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } }
