/* ══════════════════════════════════════════════════════════════════════════════
   ACCUEIL — vidéo, métiers, biens du moment, appels à l'action, agence, agences
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --home-ink: #1d2433;
    --home-muted: #5f6675;
    --home-line: #d9dce3;
    --home-soft: #f4f5f8;
    --home-primary: #012c69;
    --home-primary-hover: #164a88;
    --home-gold: #bba25c;
}

.homeSection {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 24px 0;
    color: var(--home-ink);
}

.homeKicker {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--home-gold);
}

.homeSectionHead {
    margin-bottom: 36px;
    text-align: center;
}

.homeSectionHead h2,
.homeAgence-texte h2 {
    margin: 0;
    font-size: clamp(2.8rem, 2.6vw, 3.6rem);
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    color: var(--home-primary);
}

.homeSectionHead p:not(.homeKicker) {
    margin: 10px 0 0;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.homeSectionHead--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.homeLien {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--home-primary);
}

.homeLien::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

a:hover .homeLien::after,
.homeLien:hover::after {
    transform: translateX(3px) rotate(45deg);
}

.homeBtn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 1.45rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.homeBtn--ghost {
    border: 1px solid var(--home-line);
    color: var(--home-primary);
}

.homeBtn--ghost:hover {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #fff;
}

/* ── 1. En-tête vidéo ──────────────────────────────────────────────────────
   Hauteur plafonnée : la vidéo ne prend plus tout l'écran, le contenu suivant
   reste visible à l'arrivée. */

#homeHero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(480px, 72vh, 760px);
    overflow: hidden;
    background: var(--home-primary);
}

#homeVid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

/* Voile pour la lisibilité du titre */
#homeHero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 20, 48, .05) 0%, rgba(1, 20, 48, .15) 40%, rgba(1, 20, 48, .6) 100%);
}

#homeHeroContent {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    padding: 0 24px clamp(40px, 8vh, 88px);
    text-align: center;
    color: #fff;
}

#homeHeroContent .homeKicker {
    color: #e3d3a6;
}

#homeHeroContent h1 {
    margin: 0 0 32px;
    font-size: clamp(3rem, 3vw, 4.4rem);
    font-weight: 500;
    line-height: 1.15;
    text-transform: none;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

#homeHeroContent h1 span {
    display: block;
    font-weight: 400;
}

/* Recherche */
#homeSearch {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.homeSearch-switch {
    display: flex;
    flex: none;
    padding: 4px;
    border-radius: 999px;
    background: var(--home-soft);
}

.homeSearch-switch label {
    cursor: pointer;
}

.homeSearch-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.homeSearch-switch span {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--home-muted);
    transition: background .15s, color .15s;
}

.homeSearch-switch input:checked + span {
    background: var(--home-primary);
    color: #fff;
}

.homeSearch-switch input:focus-visible + span {
    outline: 2px solid var(--home-primary);
    outline-offset: 2px;
}

#homeQ {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.6rem;
    color: var(--home-ink);
}

#homeQ:focus {
    outline: 0;
}

#homeQ::placeholder {
    color: #8a909d;
}

#homeSearch button {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--home-primary);
    font: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

#homeSearch button:hover {
    background: var(--home-primary-hover);
}

#homeSearch button svg {
    width: 18px;
    height: 18px;
}

/* ── 2. Métiers ─────────────────────────────────────────────────────────── */

.homeServ {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.homeServ-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
    color: var(--home-ink);
    text-decoration: none;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.homeServ-card:hover {
    border-color: #a9aebb;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
    transform: translateY(-3px);
}

.homeServ-card--principal {
    border-color: var(--home-gold);
}

.homeServ-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--home-soft);
}

.homeServ-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.homeServ-card:hover .homeServ-photo img {
    transform: scale(1.04);
}

.homeServ-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--home-gold);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

.homeServ-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.homeServ-body h3 {
    margin: 0 0 8px;
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: none;
    color: var(--home-primary);
}

.homeServ-body p {
    margin: 0 0 18px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.homeServ-body .homeLien {
    margin-top: auto;
}

/* ── 3. Biens du moment ─────────────────────────────────────────────────── */

.homeAnnonces-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.homeAnnonces-grille {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cartes plus compactes qu'en liste */
.homeAnnonces-grille .annonce-body {
    padding: 18px 18px 20px;
}

.homeAnnonces-grille .annonce-prix {
    font-size: 2rem;
}

.homeAnnonces-grille .annonce-specs li {
    padding: 5px 8px;
    font-size: 1.2rem;
}

/* ── 4. Appels à l'action ───────────────────────────────────────────────── */

#homeCta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.homeCta-carte {
    display: flex;
    flex-direction: column;
    padding: 40px 44px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-soft);
    color: var(--home-ink);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.homeCta-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}

.homeCta-carte h2 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 2.2vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    color: var(--home-primary);
}

.homeCta-carte p:not(.homeKicker) {
    margin: 0 0 22px;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.homeCta-carte .homeLien {
    margin-top: auto;
}

.homeCta-carte--bleu {
    border-color: var(--home-primary);
    background: var(--home-primary);
}

.homeCta-carte--bleu h2,
.homeCta-carte--bleu .homeLien {
    color: #fff;
}

.homeCta-carte--bleu p:not(.homeKicker) {
    color: rgba(255, 255, 255, .78);
}

/* ── 5. L'agence ────────────────────────────────────────────────────────── */

#homeAgence {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 64px;
    align-items: center;
}

.homeAgence-texte h2 {
    margin-bottom: 20px;
}

.homeAgence-texte p:not(.homeKicker) {
    margin: 0 0 14px;
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--home-ink);
}

.homeAgence-texte .homeAgence-signature {
    margin-top: 22px;
    font-style: italic;
    color: var(--home-muted);
}

.homeChiffres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0;
}

.homeChiffres div {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 28px 12px;
    border-radius: 16px;
    background: var(--home-soft);
    text-align: center;
}

.homeChiffres dd {
    margin: 0;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--home-primary);
}

.homeChiffres dt {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-muted);
}

/* ── 6. Nos agences ─────────────────────────────────────────────────────── */

#homeAgences {
    padding-bottom: 96px;
}

.homeAgences-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.homeAgenceCarte {
    display: flex;
    flex-direction: column;
    padding: 28px 30px;
    border: 1px solid var(--home-line);
    border-top: 3px solid var(--home-gold);
    border-radius: 0 0 16px 16px;
    background: #fff;
}

.homeAgenceCarte h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: none;
    color: var(--home-primary);
}

.homeAgenceCarte h3 span {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--home-soft);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-muted);
}

.homeAgenceCarte p {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--home-ink);
}

.homeAgenceCarte p a {
    color: var(--home-ink);
    text-decoration: none;
}

.homeAgenceCarte p a:hover {
    text-decoration: underline;
}

.homeAgenceCarte .homeLien {
    margin-top: 8px;
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .homeAnnonces-grille {
        grid-template-columns: repeat(2, 1fr);
    }

    #homeAgence {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .homeServ,
    .homeAgences-grille,
    #homeCta {
        grid-template-columns: 1fr;
    }

    .homeServ {
        gap: 20px;
    }

    .homeServ-card {
        flex-direction: row;
    }

    .homeServ-photo {
        flex: 0 0 38%;
        aspect-ratio: auto;
        min-height: 170px;
    }

    .homeSectionHead--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .homeSection {
        padding: 56px 16px 0;
    }

    #homeHero {
        height: auto;
        min-height: 480px;
        padding: 160px 0 0;
    }

    #homeHeroContent {
        padding-bottom: 32px;
    }

    #homeSearch {
        flex-wrap: wrap;
        border-radius: 20px;
    }

    .homeSearch-switch {
        width: 100%;
    }

    .homeSearch-switch label {
        flex: 1;
        text-align: center;
    }

    #homeQ {
        flex: 1 1 100%;
        padding: 0 12px;
    }

    #homeSearch button {
        width: 100%;
        justify-content: center;
    }

    .homeServ-card {
        flex-direction: column;
    }

    .homeServ-photo {
        flex: none;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    /* Biens du moment : carrousel horizontal plutôt que 4 cartes empilées */
    .homeAnnonces-grille {
        display: flex;
        gap: 14px;
        margin: 0 -16px;
        padding: 4px 16px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .homeAnnonces-grille::-webkit-scrollbar {
        display: none;
    }

    .homeAnnonces-grille .annonce {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .homeCta-carte {
        padding: 28px 24px;
    }

    .homeChiffres dd {
        font-size: 3.2rem;
    }

    #homeAgences {
        padding-bottom: 64px;
    }
}
