/* =========================================================================
   Système visuel Kuaba — page d'accueil.

   Grammaire reprise de la référence : héros pleine largeur, barre de recherche
   en chevauchement, sections rythmées par un intertitre centré (surtitre + titre
   + chapô), grilles de cartes, un panneau sombre qui marque la bascule voyageur
   -> hôte, bandeau d'inscription pour finir.

   Les couleurs passent par les variables du gabarit (--base, --base-two) : un
   changement de couleur de marque en administration suit automatiquement.
   ========================================================================= */

:root {
    --k-ink:        215 28% 17%;
    --k-body:       215 12% 42%;
    --k-line:       214 20% 91%;
    --k-tint:       160 25% 97%;
    --k-radius:     14px;
    --k-shadow:     0 1px 2px hsl(215 25% 20% / .04), 0 18px 40px -28px hsl(215 25% 20% / .45);
    --k-shadow-lift:0 2px 6px hsl(215 25% 20% / .06), 0 28px 56px -30px hsl(215 25% 20% / .5);
}

/* ---------------------------------------------------------------- primitives */

.k-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: hsl(var(--base));
    margin-bottom: 14px;
}

.k-eyebrow--light { color: hsl(var(--base-two)); }

.k-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.k-head__title {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    font-weight: 700;
    color: hsl(var(--k-ink));
    margin: 0 0 16px;
}

.k-head__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: hsl(var(--k-body));
    margin: 0;
}

.k-head__title--left,
.k-head__lead--left { text-align: left; }

.k-section { padding: 96px 0; }
.k-section--tinted { background-color: hsl(var(--k-tint)); }

.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.k-btn:hover, .k-btn:focus-visible { transform: translateY(-1px); }
.k-btn:focus-visible { outline: 3px solid hsl(var(--base-two) / .55); outline-offset: 2px; }

.k-btn--solid { background-color: hsl(var(--base)); color: hsl(var(--white)); }
.k-btn--solid:hover, .k-btn--solid:focus-visible { background-color: hsl(var(--base-two)); color: hsl(var(--white)); }

.k-btn--ghost { background-color: transparent; color: hsl(var(--white)); border-color: hsl(var(--white) / .6); }
.k-btn--ghost:hover, .k-btn--ghost:focus-visible { background-color: hsl(var(--white)); color: hsl(var(--base)); }

.k-btn--light { background-color: hsl(var(--white)); color: hsl(var(--base)); }
.k-btn--light:hover, .k-btn--light:focus-visible { background-color: hsl(var(--base-two)); color: hsl(var(--white)); }

/* -------------------------------------------------------------------- héros */

.k-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    /* place pour la barre de recherche qui déborde */
    padding: 120px 0 170px;
    overflow: hidden;
}

.k-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

/* Voile vert plutôt que noir : le fond reste dans la marque même quand la
   photo, elle, n'y est pas encore. */
.k-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, hsl(215 30% 12% / .30) 0%, hsl(var(--base) / .72) 100%),
        linear-gradient(90deg, hsl(var(--base) / .48) 0%, hsl(var(--base) / .10) 65%);
}

.k-hero__inner {
    position: relative;
    max-width: 780px;
}

.k-hero__title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
    font-weight: 700;
    color: hsl(var(--white));
    margin: 0 0 18px;
    text-wrap: balance;
}

.k-hero__lead {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: hsl(var(--white) / .88);
    max-width: 58ch;
    margin: 0 0 32px;
}

.k-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------- barre de recherche flottante */

.k-searchbar {
    position: relative;
    z-index: 3;
    margin-top: -96px;
    margin-bottom: 8px;
}

.k-searchbar__card {
    background-color: hsl(var(--white));
    border-radius: var(--k-radius);
    box-shadow: var(--k-shadow-lift);
    padding: 14px;
}

/* Le gabarit d'origine posait ses propres fond et ombre sur le filtre :
   à l'intérieur de notre carte, ils feraient double épaisseur. */
.k-searchbar__card .booking-filter,
.k-searchbar__card .booking-filter__form {
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------------- cartes */

.k-grid { display: grid; gap: 24px; }
/* Trois colonnes fermes. En auto-fit, un écran large en produisait quatre et
   laissait deux cartes orphelines sur la seconde rangée. */
.k-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.k-card {
    background-color: hsl(var(--white));
    border: 1px solid hsl(var(--k-line));
    border-radius: var(--k-radius);
    padding: 30px 28px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.k-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--k-shadow);
    border-color: hsl(var(--base) / .28);
}

.k-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--k-ink));
    margin: 0 0 8px;
}

.k-card__text {
    font-size: .96rem;
    line-height: 1.65;
    color: hsl(var(--k-body));
    margin: 0;
}

.k-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background-color: hsl(var(--base-two) / .16);
    color: hsl(var(--base));
    font-size: 1.9rem;
    margin-bottom: 20px;
}

/* Pastille de contrôle : la coche dit « vérifié », c'est le sujet de la section. */
.k-card--check { padding-left: 62px; position: relative; }

.k-card__seal {
    position: absolute;
    left: 26px;
    top: 32px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: hsl(var(--base-two));
}

.k-card__seal::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid hsl(var(--white));
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --------------------------------------------------- séquestre : frise en deux temps */

.k-split {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 64px;
    align-items: start;
}

.k-note {
    margin: 24px 0 0;
    padding-left: 16px;
    border-left: 3px solid hsl(var(--base-two));
    font-size: .95rem;
    line-height: 1.6;
    color: hsl(var(--k-body));
}

.k-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.k-timeline::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(hsl(var(--base) / .35), hsl(var(--base-two) / .35));
}

.k-timeline__step {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 34px;
}

.k-timeline__step:last-child { padding-bottom: 0; }

.k-timeline__rank {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: hsl(var(--base));
    color: hsl(var(--white));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.k-timeline__body { padding-top: 8px; }

/* ------------------------------------------------------------ panneau hôte */

.k-host { position: relative; overflow: hidden; }

.k-host__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .22;
}

.k-host__panel {
    position: relative;
    background-color: hsl(var(--base));
    padding: 88px 0;
}

.k-host__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    color: hsl(var(--white));
}

.k-host__title {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 14px;
    color: hsl(var(--white));
    max-width: 22ch;
}

.k-host__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: hsl(var(--white) / .85);
    max-width: 58ch;
    margin: 0 0 34px;
}

.k-host__perks {
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}

.k-host__perks li {
    border-left: 2px solid hsl(var(--base-two));
    padding-left: 18px;
}

.k-host__perks strong { display: block; margin-bottom: 5px; color: hsl(var(--white)); }
.k-host__perks span { font-size: .94rem; line-height: 1.6; color: hsl(var(--white) / .78); }

.k-host__note { margin: 16px 0 0; font-size: .88rem; color: hsl(var(--white) / .62); }

/* ----------------------------------------------------- bandeau d'inscription */

.k-news { padding: 0 0 96px; }

.k-news__card {
    background: linear-gradient(135deg, hsl(var(--base-two) / .14), hsl(var(--base) / .08));
    border: 1px solid hsl(var(--base) / .16);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
}

.k-news__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: hsl(var(--k-ink));
    margin: 0 0 12px;
}

.k-news__lead {
    color: hsl(var(--k-body));
    max-width: 54ch;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.k-news__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.k-news__form input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1.5px solid hsl(var(--k-line));
    background-color: hsl(var(--white));
    font-size: .98rem;
    color: hsl(var(--k-ink));
}

.k-news__form input:focus-visible {
    outline: none;
    border-color: hsl(var(--base));
}

.k-news__note { margin: 18px 0 0; font-size: .86rem; color: hsl(var(--k-body)); }

/* ------------------------------------------------------------- adaptations */

@media (max-width: 1100px) {
    .k-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .k-split { grid-template-columns: 1fr; gap: 40px; }
    .k-section { padding: 72px 0; }
    .k-hero { min-height: 520px; padding: 96px 0 150px; }
}

@media (max-width: 700px) {
    .k-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .k-searchbar { margin-top: -70px; }
    .k-news__card { padding: 40px 22px; }
    .k-host__panel { padding: 64px 0; }
    .k-card--check { padding-left: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .k-btn, .k-card { transition: none; }
    .k-btn:hover, .k-card:hover { transform: none; }
}
