/* ============ TravFlow — Site public (vitrine + réservation) ============ */
:root {
    --brand: #15b6c9;
    --ink: #12303c;
    --ink-2: #4a6a76;
    --bg: #f6fafc;
    --card: #ffffff;
    --line: #e2edf1;
    --gold: #f4a53a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

/* ---------- Boutons ---------- */
.s-btn { display: inline-block; border: 0; cursor: pointer; border-radius: 10px; padding: 10px 20px; font: 600 15px 'Jost', sans-serif; transition: filter .15s, transform .15s; }
.s-btn:active { transform: scale(.98); }
.s-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.s-btn-primary:hover { filter: brightness(1.06); }
.s-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.s-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.s-btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.s-btn-full { width: 100%; }

/* ---------- Entête ---------- */
.s-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.s-header-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.s-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.s-logo img { height: 40px; width: auto; }
.s-logo-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 10px; font-size: 20px; }
.s-logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.s-logo-txt span { font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.s-logo-txt small { font-family: 'Cairo', sans-serif; color: var(--brand); font-weight: 700; font-size: 13px; }
.s-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.s-nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.s-nav a:hover { color: var(--brand); border-color: var(--brand); }
.s-header-cta { display: flex; gap: 10px; align-items: center; }
.s-burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Héros ---------- */
.s-hero {
    position: relative; padding: 54px 0 90px; color: #fff; text-align: center;
    background:
        radial-gradient(1100px 380px at 85% -10%, rgba(255,255,255,.22), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--brand) 88%, #0a4b57) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 45%, #eaf7fa) 100%);
}
.s-hero-ar { font-family: 'Cairo', sans-serif; font-size: clamp(24px, 4vw, 38px); margin: 0 0 4px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.12); }
.s-hero-fr { font-size: clamp(17px, 2.4vw, 24px); font-weight: 500; margin: 0 0 30px; opacity: .97; }
.s-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; display: block; }

/* Carte de recherche */
.s-search { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(10, 60, 75, .22); max-width: 860px; margin: 0 auto; overflow: hidden; text-align: initial; }
.s-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.s-tab {
    flex: 1; min-width: 120px; background: #f2f8fa; border: 0; cursor: pointer; padding: 13px 10px;
    font: 600 14.5px 'Jost', sans-serif; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap;
}
.s-tab.active { background: #fff; color: var(--brand); border-bottom-color: var(--brand); }
.s-search-form { padding: 18px; }
.s-search-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.s-search-row + .s-search-row { margin-top: 12px; }
.s-field { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.s-field-sm { flex: 0 1 150px; }
.s-field span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.s-field input, .s-field select, .s-field textarea {
    border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px 'Jost', sans-serif;
    color: var(--ink); background: #fff; width: 100%;
}
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }

/* ---------- Sections ---------- */
.s-section { padding: 48px 0; }
.s-section-alt { background: #eef6f8; }
.s-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.s-section-head h2 { margin: 0; font-size: 26px; font-weight: 700; }
.s-section-sub { color: var(--ink-2); font-size: 14.5px; }
.s-link { font-weight: 600; }
.s-empty { color: var(--ink-2); background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; }

/* Cartes d'offres */
.s-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.s-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(14, 55, 70, .08); color: var(--ink); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.s-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 55, 70, .15); }
.s-card-img { position: relative; height: 150px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, #fff), color-mix(in srgb, var(--brand) 60%, #fff)); background-size: cover; background-position: center; }
.s-card-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; opacity: .8; }
.s-card-type { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.s-card-promo { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.s-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-card-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.s-card-price { font-size: 14px; color: var(--ink-2); }
.s-card-price strong { color: var(--brand); font-size: 18px; }
.s-card-price s { margin-inline-start: 6px; color: #b3c5cc; font-size: 13px; }
.s-card-valid { font-size: 12.5px; color: var(--ink-2); }
.s-card-cta { margin-top: auto; font-weight: 600; color: var(--brand); font-size: 14.5px; }

/* Étapes */
.s-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.s-step { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 4px 18px rgba(14,55,70,.07); }
.s-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.s-step b { display: block; margin-bottom: 4px; }
.s-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Page réservation ---------- */
.s-page { padding: 36px 0 56px; }
.s-page-title { font-size: 26px; margin: 0 0 18px; }
.s-book { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.s-form { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 6px 24px rgba(14,55,70,.08); display: flex; flex-direction: column; gap: 20px; }
.s-form-sec { display: flex; flex-direction: column; gap: 12px; }
.s-form-h { font-weight: 700; font-size: 15px; color: var(--brand); letter-spacing: .02em; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.s-hint { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.s-center { text-align: center; }
.s-alert { background: #fdecec; border: 1.5px solid #f0c9c9; color: #7a1f1f; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Paiement */
.s-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.s-pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fbfeff; }
.s-pay-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.s-pay-opt input { margin-top: 3px; accent-color: var(--brand); }
.s-pay-t b { display: block; font-size: 15px; }
.s-pay-t small { color: var(--ink-2); font-size: 12.5px; line-height: 1.35; display: block; }
.s-pay-details { display: flex; flex-direction: column; gap: 12px; }
.s-pay-box { border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, #fff); background: color-mix(in srgb, var(--brand) 6%, #fff); border-radius: 12px; padding: 12px 14px; }
.s-pay-box-h { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--brand); }
.s-pay-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 2px 0; }
.s-pay-line b { letter-spacing: .04em; }

/* Encadré latéral */
.s-side-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(14,55,70,.08); position: sticky; top: 86px; }
.s-side-img { height: 170px; }
.s-side-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.s-card-type-inline { font-size: 12.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.s-side-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.s-side-desc { margin: 0; color: var(--ink-2); font-size: 14px; max-height: 160px; overflow: auto; }
.s-side-price { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.s-side-price span { color: var(--ink-2); font-size: 13.5px; }
.s-side-price b { color: var(--brand); font-size: 22px; }
.s-side-price s { color: #b3c5cc; font-size: 14px; }
.s-side-info { padding: 20px; }

/* ---------- Confirmation ---------- */
.s-success { display: grid; place-items: center; min-height: 46vh; }
.s-success-card { background: #fff; border-radius: 18px; padding: 38px 30px; text-align: center; box-shadow: 0 10px 34px rgba(14,55,70,.1); max-width: 520px; }
.s-success-ico { width: 62px; height: 62px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-size: 28px; font-weight: 700; }
.s-success-card h1 { margin: 0 0 6px; font-size: 24px; }
.s-success-ref { font-size: 24px; font-weight: 700; letter-spacing: .1em; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, #fff); border-radius: 12px; padding: 10px 14px; margin: 10px 0 14px; display: inline-block; }
.s-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Pied de page ---------- */
.s-footer { background: #10333f; color: #d6e7ec; margin-top: 30px; }
.s-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding: 40px 18px 26px; }
.s-footer-brand { font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.s-footer-brand small { font-family: 'Cairo', sans-serif; color: var(--brand); margin-inline-start: 8px; }
.s-footer-h { font-weight: 700; color: #fff; margin-bottom: 8px; }
.s-footer-txt { margin: 4px 0; font-size: 14.5px; }
.s-footer-txt a { color: #d6e7ec; }
.s-footer-txt a:hover { color: #fff; }
.s-footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13.5px; }
.s-footer-bar a { color: var(--brand); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .s-book { grid-template-columns: 1fr; }
    .s-side-card { position: static; order: -1; }
    .s-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .s-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; box-shadow: 0 14px 26px rgba(14,55,70,.14); }
    .s-nav.open { display: flex; }
    .s-nav a { padding: 13px 20px; border-bottom: 1px solid var(--line); }
    .s-burger { display: block; }
    .s-header-cta .s-btn-ghost { display: none; }
    .s-hero { padding: 38px 0 76px; }
    .s-search-form { padding: 14px; }
    .s-field, .s-field-sm { min-width: 100%; flex-basis: 100%; }
    .s-search-row .s-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- v4.3 : pages de sections, contact, filtre destination ---------- */
.s-page-hero { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 90%, #0a4b57), var(--brand)); color: #fff; padding: 34px 0 30px; }
.s-page-hero h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 32px); }
.s-page-hero p { margin: 0; opacity: .96; font-size: 15.5px; max-width: 640px; }
.s-dest-filter { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.s-sent { background: #e8f8ef; border: 1.5px solid #bfe8cf; color: #175c34; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.s-contact-line { margin: 8px 0; font-size: 15px; color: var(--ink); }
.s-contact-line a { font-weight: 600; }
