:root {
    --ink: #14181a;
    --sand: #ede7d9;
    --rust: #c9622b;
    --moss: #6f7d5c;
    --muted: #8b8478;
    --panel: #1d2320;
    --line: rgba(237, 231, 217, 0.14);
    --radius: 4px;

    /* Personnalisables depuis l'admin (Réglages > Apparence) */
    --btn-primary-color: var(--rust);
    --btn-primary-padding: 13px 26px;
    --btn-primary-font-size: 15px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.5;
}

h1, h2, .brand {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--ink);
    color: var(--sand);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.brand { font-size: 20px; color: var(--sand); }
.brand span { color: var(--rust); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Work Sans', sans-serif;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
    background: var(--btn-primary-color);
    color: #fff;
    padding: var(--btn-primary-padding);
    font-size: var(--btn-primary-font-size);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.92); }
.btn-ghost { background: transparent; color: var(--sand); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-block { width: 100%; margin-top: 20px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
    background: var(--ink);
    color: var(--sand);
    padding: 70px 0 60px;
    position: relative;
}
.hero-inner { max-width: 640px; }
.eyebrow {
    color: var(--rust);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 14px;
}
.hero h1 { font-size: 44px; line-height: 1.05; margin: 0 0 20px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 480px; margin-bottom: 30px; }

/* Signature motif : bande "chenille de pneu" */
.tread-strip {
    height: 10px;
    width: 100%;
    background-image: repeating-linear-gradient(
        115deg,
        var(--rust) 0px, var(--rust) 3px,
        transparent 3px, transparent 22px
    );
    opacity: 0.9;
}

/* Comparaison */
.section-sub { color: var(--muted); margin-top: -14px; margin-bottom: 24px; font-size: 15px; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20,24,26,0.08);
}
.comparison-table th {
    text-align: left;
    background: var(--ink);
    color: var(--sand);
    padding: 14px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(20,24,26,0.08);
    vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .tour-name-cell { font-weight: 700; font-size: 16px; }
.comparison-table .tour-desc-cell { color: var(--muted); font-size: 13px; max-width: 260px; }
.comparison-table .price-cell { font-weight: 700; color: var(--rust); white-space: nowrap; }
.comparison-table .price-cell .unit { color: var(--muted); font-weight: 400; font-size: 12px; display: block; }
.comparison-table .na-cell { color: var(--muted); font-size: 13px; }

@media (max-width: 700px) {
    .comparison-table thead { display: none; }
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
    .comparison-table tr { padding: 16px; border-bottom: 8px solid var(--sand); }
    .comparison-table td { border: none; padding: 4px 0; }
    .comparison-table td::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
}

/* Carrousel */
.carousel-section { padding: 20px 0 70px; }
.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.carousel-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(20,24,26,0.1);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.carousel-card h3 { margin: 0 0 6px; font-size: 16px; }
.carousel-card p { color: var(--muted); font-size: 13px; margin: 0 0 12px; flex-grow: 1; }
.carousel-card .carousel-price { color: var(--rust); font-weight: 700; margin-bottom: 12px; }
.carousel-card .btn { align-self: flex-start; }

/* Tours (conservé pour compat éventuelle) */
.tours-section { padding: 60px 0 20px; }
.tours-section h2, .booking-section h2 { font-size: 26px; margin-bottom: 24px; }
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.tour-card {
    background: #fff;
    border: 1px solid rgba(20,24,26,0.1);
    border-radius: var(--radius);
    padding: 22px;
}
.tour-card h3 { margin: 0 0 8px; font-size: 18px; font-family: 'Work Sans', sans-serif; font-weight: 700; }
.tour-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.tour-card .tour-price { color: var(--rust); font-weight: 700; font-size: 15px; }
.loading, .hint { color: var(--muted); font-size: 14px; }

/* Booking */
.booking-section { padding: 20px 0 70px; }
.booking-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 560px;
    border: 1px solid rgba(20,24,26,0.1);
}
.booking-step { margin-bottom: 26px; }
.field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
}
.field-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(20,24,26,0.18);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
    background: #fff;
    color: var(--ink);
}
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Calendrier */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-header .cal-month-label {
    font-weight: 700;
    text-transform: capitalize;
    font-size: 15px;
}
.cal-nav-btn {
    background: #fff;
    border: 1px solid rgba(20,24,26,0.18);
    border-radius: var(--radius);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-weekday {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    padding-bottom: 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: default;
    background: transparent;
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #c7c2b4; }
.cal-day.full { background: #f6dede; color: #a03030; border-color: #eab8b8; cursor: not-allowed; }
.cal-day.available {
    background: #e2f0e2;
    color: #2f6b3f;
    cursor: pointer;
    border-color: #bfe0bf;
}
.cal-day.available:hover { background: #cfe8cf; }
.cal-day.selected { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }

/* Planning continu sur 30 jours (remplace le calendrier multi-mois) */
.calendar-30-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}
.cal30-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    cursor: default;
    font-family: 'Work Sans', sans-serif;
}
.cal30-day .cal30-weekday { font-size: 10px; text-transform: uppercase; font-weight: 700; opacity: 0.75; }
.cal30-day .cal30-num { font-size: 16px; font-weight: 700; }
.cal30-day.past { color: #c7c2b4; }
.cal30-day.full { background: #f6dede; color: #a03030; border-color: #eab8b8; cursor: not-allowed; }
.cal30-day.available { background: #e2f0e2; color: #2f6b3f; border-color: #bfe0bf; cursor: pointer; }
.cal30-day.available:hover { background: #cfe8cf; }
.cal30-day.selected { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }

/* Calendrier multi-mois (conservé pour compat, plus utilisé par défaut) */
.calendar-multi { display: flex; align-items: flex-start; gap: 10px; }
.calendar-months { display: flex; gap: 24px; overflow-x: auto; flex: 1; padding-bottom: 6px; }
.calendar-month-block { min-width: 220px; flex: 1; }
.calendar-month-block .cal-month-label { display: block; margin-bottom: 10px; }
.calendar-multi .cal-nav-btn { flex-shrink: 0; margin-top: 4px; }

/* Steppers participants */
.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(20,24,26,0.08);
}
.stepper-row:last-child { border-bottom: none; }
.stepper-label { font-weight: 600; font-size: 15px; }
.stepper-label .hint { display: block; font-weight: 400; font-size: 12px; margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(20,24,26,0.25);
    background: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}
.stepper button:hover { background: var(--sand); }
.stepper span { min-width: 16px; text-align: center; font-weight: 700; }

/* Carte résumé + CTA "Réserver" */
.booking-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(20,24,26,0.12);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 20px;
    background: #f7f4ec;
}
.bsc-tour { font-weight: 700; }
.bsc-time { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bsc-cta { display: flex; align-items: center; gap: 16px; }
.bsc-price { font-weight: 700; color: var(--rust); font-size: 16px; }

/* Panneau latéral de finalisation */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(20,24,26,0.5);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}
.drawer-panel {
    background: #fff;
    width: 100%;
    max-width: 640px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(20,24,26,0.08);
}
.drawer-header h3 { margin: 0; font-family: 'Work Sans', sans-serif; font-weight: 800; flex: 1; text-align: center; }
.drawer-close { background: none; border: none; font-size: 14px; cursor: pointer; color: var(--muted); text-decoration: underline; }
.drawer-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; }
.drawer-summary { background: #f7f4ec; border-radius: var(--radius); padding: 18px; align-self: start; }
.drawer-summary h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.drawer-summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.drawer-summary-line.total { font-weight: 700; border-top: 1px solid rgba(20,24,26,0.12); margin-top: 8px; padding-top: 10px; font-size: 16px; }

@media (max-width: 720px) {
    .drawer-body { grid-template-columns: 1fr; }
    .drawer-panel { max-width: 100%; }
}

/* Résumé de commande enrichi (lieu, date, heure, participants, options, sous-total) */
.order-summary-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin: 4px 0; }
.order-summary-meta svg { flex-shrink: 0; opacity: 0.6; }
.order-summary-divider { border: none; border-top: 1px solid rgba(20,24,26,0.1); margin: 14px 0; }
.order-summary-section-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(20,24,26,0.15); }

/* Participants nommés */
.participant-name-box { border: 1px solid rgba(20,24,26,0.12); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.participant-name-box label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.participant-name-box .participant-label { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px; display: block; }

/* Cases à cocher (newsletter, CGV) */
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.consent-row a { color: var(--ink); font-weight: 700; }

/* Bouton de paiement final, noir, façon référence */
.btn-checkout-black { background: #14181a !important; color: #fff !important; }
.btn-checkout-black:hover { background: #000 !important; }

/* Carte de recherche rapide (ouverte depuis le menu) */
.qs-overlay {
    position: fixed; inset: 0;
    background: rgba(20,24,26,0.6);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qs-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.qs-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.qs-card h2 { margin: 0 0 10px; font-size: 24px; }
.qs-desc { color: var(--ink); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.qs-tabs { display: flex; gap: 8px; border-bottom: 2px solid rgba(20,24,26,0.08); margin-bottom: 20px; }
.qs-tab {
    background: #f6f3ea;
    border: none;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -2px;
}
.qs-tab.active { background: #fdf3ea; color: var(--rust); box-shadow: inset 0 -2px 0 var(--rust); }

/* Résultats de la recherche rapide */
.qs-card.qs-wide { max-width: 620px; }
.qs-back-link { background: none; border: none; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 14px; }
.qs-results-count { font-weight: 700; margin: 0 0 16px; }
.qs-result-card {
    display: flex;
    gap: 18px;
    border: 1px solid rgba(20,24,26,0.1);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}
.qs-result-image { position: relative; flex-shrink: 0; width: 150px; }
.qs-result-image img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius); display: block; }
.qs-result-image .qs-result-noimg { width: 150px; height: 150px; border-radius: var(--radius); background: #f0ece1; }
.qs-result-body { flex: 1; min-width: 0; }
.qs-result-body h3 { margin: 0 0 8px; font-size: 17px; }
.qs-result-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.qs-result-loc-row { display: flex; gap: 32px; margin-bottom: 10px; flex-wrap: wrap; }
.qs-result-loc-row div { font-size: 13px; }
.qs-result-loc-row strong { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.qs-result-desc { font-size: 13px; color: var(--ink); line-height: 1.5; margin: 0 0 10px; }
.qs-result-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(20,24,26,0.08); padding-top: 12px; }
.qs-result-price .qs-result-price-label { font-size: 12px; color: var(--muted); }
.qs-result-price .qs-result-price-value { font-size: 20px; font-weight: 800; }

@media (max-width: 560px) {
    .qs-result-card { flex-direction: column; }
    .qs-result-image, .qs-result-image img, .qs-result-image .qs-result-noimg { width: 100%; height: 160px; }
}

/* Modal de recherche rapide (ouvert depuis le bouton du menu) */
.qs-overlay {
    position: fixed; inset: 0;
    background: rgba(20,24,26,0.6);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qs-card {
    background: #fff;
    border-radius: 8px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}
.qs-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.qs-card h2 { font-size: 22px; margin: 0 0 8px; padding-right: 24px; }
.qs-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.qs-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(20,24,26,0.1); margin-bottom: 20px; }
.qs-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 4px;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -1px;
}
.qs-tab.active { color: var(--rust); border-bottom-color: var(--rust); }

.suggestion-box {
    background: #f7f4ec;
    border: 1px solid rgba(20,24,26,0.12);
    border-radius: 4px;
    padding: 16px;
    margin-top: 14px;
    font-size: 14px;
}
.suggestion-box strong { color: var(--rust); }
.suggestion-box .btn { margin-top: 10px; }
.suggestion-phone {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(20,24,26,0.1);
}
.suggestion-phone a { color: var(--ink); font-weight: 700; text-decoration: none; }
.suggestion-phone a:hover { text-decoration: underline; }

.slot-btn {
    padding: 10px 14px;
    border: 1px solid rgba(20,24,26,0.18);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.slot-btn.selected { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.participants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.participants-grid label { font-size: 13px; color: var(--muted); display:block; margin-bottom: 4px; }
.price-preview { font-weight: 700; color: var(--rust); font-size: 16px; margin-top: 6px; }
.booking-feedback { font-size: 14px; margin-top: 10px; }
.booking-feedback.error { color: #b3261e; }
.booking-feedback.success { color: #2f6b3f; }

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--muted);
    padding: 24px 0;
    font-size: 13px;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .booking-card { padding: 22px; }
}
