/* Chams : direction « chaleureux et marocain » (couche posée sur home.css)
 * Papier sable, zellige discret, filets fins plutôt que cartes flottantes.
 * Couleurs de la charte conservées : bleu marine (texte, aplats), ambre (ornements), blanc cassé chaud (fond). */

.ch-home {
    --paper: #FBF7F0;          /* fond : blanc cassé chaud */
    --sand: #F2E8D8;           /* sections alternées : sable */
    --sand-2: #E8D9C1;         /* filets sur sable */
    --line: #E6DCCB;           /* filets */
    --soft: var(--sand);
    --ink-2: #5E5A52;          /* texte secondaire : brun-gris chaud */
    --r: 6px;                  /* coins presque droits */
    --arch: 999px 999px 6px 6px;
    /* étoile à 8 branches (zellige) */
    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23E3A33A'%3E%3Crect x='5' y='5' width='14' height='14'/%3E%3Crect x='5' y='5' width='14' height='14' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E");
    /* trame zellige (étoiles et croisillons) pour les aplats bleu marine */
    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23E3A33A' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h8M56 32h8M32 0v8M32 56v8'/%3E%3Crect x='-4' y='-4' width='8' height='8' transform='rotate(45 0 0)'/%3E%3Crect x='60' y='-4' width='8' height='8' transform='rotate(45 64 0)'/%3E%3Crect x='-4' y='60' width='8' height='8' transform='rotate(45 0 64)'/%3E%3Crect x='60' y='60' width='8' height='8' transform='rotate(45 64 64)'/%3E%3C/g%3E%3C/svg%3E");
    /* grain de papier */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background: var(--paper);
}

/* ---------- Typographie : titres à empattements, petites capitales étoilées ---------- */
.ch-home h2 { font-weight: 500; letter-spacing: -0.015em; }
.ch-home h2 em, .ch-home h1 em { font-style: italic; color: inherit; }
.ch-kicker { gap: 10px; letter-spacing: 0.2em; font-size: 0.74rem; }
.ch-kicker::before { width: 11px; height: 11px; border-radius: 0; background: var(--star) center / contain no-repeat; }

/* Boutons : rectangulaires, sobres */
.ch-btn { border-radius: 4px; letter-spacing: 0.02em; box-shadow: none !important; }
.ch-btn:hover { transform: none; }
.ch-btn-amber:hover { background: #D69526; }
.ch-link { text-underline-offset: 6px; }

/* Sections : alternance papier / sable, grain discret */
.ch-section { position: relative; }
.ch-services, .ch-steps, .ch-exp, .ch-faq { background: var(--paper); }
.ch-fleet, .ch-packs, .ch-cities { background: var(--sand) var(--grain); }

/* Frise de zellige entre deux sections sombres et claires */
.ch-trust::before, .ch-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--zellige) 0 0 / 64px 64px;
    opacity: 0.09;
    pointer-events: none;
}
.ch-trust { position: relative; isolation: isolate; }
.ch-trust > * { position: relative; z-index: 1; }
.ch-fleet::before, .ch-cities::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 14px;
    background: var(--zellige) 0 0 / 14px 14px;
    opacity: 0.35;
}

/* ---------- Bandeau : formulaire en arche ---------- */
.ch-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 18px;
    background: var(--zellige) 0 0 / 18px 18px;
    opacity: 0.5;
    z-index: 2;
}
.ch-book {
    border-radius: 8px !important;
    background: var(--paper) var(--grain) !important;
    box-shadow: 0 30px 60px -30px rgba(10, 18, 36, 0.6) !important;
}
.ch-book-title { text-align: center; font-style: italic; }
.ch-field select, .ch-field input { border-radius: 4px !important; background-color: #fff !important; }
.ch-hero-proofs li::before { border-radius: 0 !important; background: var(--star) center / contain no-repeat !important; }

/* ---------- Services : trois colonnes séparées par des filets, sans cartes ---------- */
.ch-services-grid { gap: 0 !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ch-service {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 34px 30px 32px !important;
    transform: none !important;
}
.ch-service + .ch-service { border-left: 1px solid var(--line) !important; }
.ch-service-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem !important; font-weight: 400; color: var(--a) !important; line-height: 1; }

/* ---------- Flotte : catalogue à filets, véhicules sur fond sable ---------- */
.ch-fl-filters { border: 0; background: transparent; padding: 0; gap: 26px; border-radius: 0; border-bottom: 1px solid var(--sand-2); width: 100%; }
.ch-fl-filters button { padding: 10px 0; border-radius: 0; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ch-fl-filters button[aria-pressed="true"] { background: transparent; color: var(--m); border-bottom-color: var(--a); }
.ch-fl-grid { gap: 0; border-top: 1px solid var(--sand-2); border-left: 1px solid var(--sand-2); }
.ch-fl-card, .ch-fl-help {
    border: 0;
    border-right: 1px solid var(--sand-2);
    border-bottom: 1px solid var(--sand-2);
    border-radius: 0;
    background: var(--paper);
}
.ch-fl-card:hover { transform: none; box-shadow: none; background: #fff; }
.ch-fl-card.is-featured { border-color: var(--sand-2); background: #fff; }
.ch-fl-stage { background: transparent; }
.ch-fl-stage::after { background: radial-gradient(closest-side, rgba(70, 50, 20, 0.22), transparent); }
.ch-fl-card.is-featured .ch-fl-stage { background: var(--sand) var(--grain); border-radius: 0; }
.ch-fl-type { color: #9A6B1F; }
.ch-fl-specs svg { color: #B98A3A; }
.ch-fl-cta { border-radius: 4px; padding: 9px 16px; }
.ch-fl-foot { border-top-color: var(--line); }
.ch-fl-prices div { border-bottom-color: var(--line); }
.ch-fl-help { background: var(--m); position: relative; isolation: isolate; overflow: hidden; }
.ch-fl-help::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--zellige) 0 0 / 64px 64px; opacity: 0.12; }

/* ---------- Étapes : numéros dans une étoile ---------- */
.ch-step-num {
    width: 54px !important;
    height: 54px !important;
    border-radius: 0 !important;
    background: var(--star) center / contain no-repeat !important;
    color: var(--m) !important;
    font-family: var(--serif);
    font-size: 1.15rem !important;
    box-shadow: none !important;
}
.ch-road path { stroke-dasharray: 2 10; stroke-linecap: round; }

/* ---------- Trajets : photos en arche, cartes sans cadre ---------- */
.ch-pack { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; }
.ch-pack-media { border-radius: 6px; aspect-ratio: 4 / 3; }
.ch-pack:hover .ch-pack-media img { transform: scale(1.04); }
.ch-pack-body { padding: 18px 4px 0 !important; text-align: center; justify-items: center; }
.ch-pack-place { color: #9A6B1F; }
.ch-pack-title { font-weight: 500; }
.ch-pack-price { padding-top: 10px; border-top: 1px solid var(--sand-2); min-width: 60%; }
.ch-packs-bar { border-bottom-color: var(--sand-2); }
.ch-packs-name::before { width: 12px; height: 12px; border-radius: 0; background: var(--star) center / contain no-repeat; }

/* ---------- Galerie : coins droits, légendes papier ---------- */
.ch-exp-item { border-radius: 2px; }
.ch-exp-item figcaption { background: linear-gradient(transparent, rgba(40, 26, 10, 0.78)); font-style: italic; }

/* ---------- Bande de confiance et appel final : bleu marine + zellige ---------- */
.ch-trust-grid div { border-left: 0 !important; padding-left: 0 !important; text-align: center; }
.ch-trust-grid div + div { border-left: 1px solid rgba(227, 163, 58, 0.35) !important; }
.ch-trust-grid strong { font-style: italic; font-weight: 400 !important; color: var(--a) !important; }
.ch-cta { isolation: isolate; }
.ch-cta::after { z-index: -1; opacity: 0.1; }

/* ---------- Villes : liste séparée par des étoiles ---------- */
.ch-cities-list a, .ch-cities-list span { border-radius: 0 !important; background: transparent !important; border: 0 !important; padding: 6px 0 !important; }
.ch-cities-list a::before { border-radius: 0 !important; width: 9px !important; height: 9px !important; background: var(--star) center / contain no-repeat !important; }

/* ---------- FAQ : filets fins ---------- */
.ch-faq-list details { border-radius: 0 !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.ch-faq-list details:first-child { border-top: 1px solid var(--line) !important; }

@media (max-width: 900px) {
    .ch-service + .ch-service { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
    .ch-trust-grid div + div { border-left: 0 !important; }
}
@media (max-width: 680px) {
    .ch-fl-filters { gap: 20px; overflow-x: auto; flex-wrap: nowrap; }
}

/* FAQ : signe +/− fin à la place des pastilles rondes */
.ch-faq-list summary::after { content: "+" !important; width: auto !important; height: auto !important; border-radius: 0 !important; background: none !important; color: #9A6B1F !important; font: 300 1.6rem/1 var(--serif) !important; transform: none !important; }
.ch-faq-list details[open] summary::after { content: "−" !important; }

/* Young Serif : une seule graisse, sans italique → titres en 400 droit (pas de faux gras ni de fausse italique) */
.ch-home h1, .ch-home h2, .ch-home h3, .ch-home h4, .ch-pack-title, .ch-fl-price b, .ch-packs-name { font-weight: 400 !important; font-synthesis: none; }
.ch-book-title, .ch-service-num, .ch-trust-grid strong, .ch-exp-item figcaption, .ch-home h1 em, .ch-home h2 em { font-style: normal !important; }
.ch-home h2 { letter-spacing: -0.01em; }
.ch-hero-title { letter-spacing: -0.015em; }
.ch-book-title, .ch-fl-type + h3, .ch-step h3, .ch-fl-help h3 { font-weight: 400 !important; font-synthesis: none; }

/* Calendrier du thème dans le formulaire de l'accueil */
.ch-book .ch-row:has(.ch-date) { position: relative; }
.ch-date-shown { cursor: pointer; }
.ch-row .bw-cal { left: 0; right: auto; top: calc(100% + 6px); z-index: 30; width: min(340px, calc(100vw - 32px)); }
.ch-hero { z-index: 5; overflow: visible !important; }
.ch-hero-media { overflow: hidden; }

/* ---------- Bandeau ordinateur : deux colonnes nettes (texte | photo) + barre de réservation en bas ---------- */
@media (min-width: 1025px) {
    .ch-hero { display: block; min-height: 0; padding: clamp(120px, 12vw, 150px) 0 56px; }
    .ch-hero::before { display: none; }                      /* plus de voile sur la photo */
    /* photo entière du van (format 2:1) dans la colonne de droite, sans recadrage ni voile */
    .ch-hero-media {
        left: 52%;
        right: max(24px, calc((100% - 1200px) / 2));
        top: calc(clamp(120px, 12vw, 150px) + 64px);
        bottom: auto;
        aspect-ratio: 2 / 1;
        border-radius: 10px;
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(227, 163, 58, .35);
    }
    .ch-hero-media img { height: 100%; transform: none; object-position: 50% 50%; }
    .ch-hero-grid { grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
    .ch-hero-text { grid-column: 1; padding: 24px clamp(32px, 4vw, 64px) 56px 0; min-height: 440px; display: flex; flex-direction: column; justify-content: center; }
    /* barre horizontale : départ | arrivée | date + passagers | véhicule | bouton */
    .ch-book {
        grid-column: 1 / -1;
        grid-template-columns: 1.2fr 1.2fr 1.8fr 1.2fr auto;
        align-items: end;
        gap: 12px 14px;
        padding: 18px 22px 16px;
    }
    .ch-book-title { grid-column: 1 / -1; text-align: left; font-size: 1.15rem; margin: 0 !important; }
    .ch-book .ch-btn { width: auto; margin: 0; padding-inline: 26px; white-space: nowrap; min-height: 50px; }
    .ch-book-note, .ch-book-err { grid-column: 1 / -1; text-align: left; margin: 0; }
}
