/* Ameliorations ciblees de l'accueil public : clarifier le premier choix et
   laisser le contenu utile visible tant que le consentement cookies est ouvert. */
.home-landing .home-hero-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 10px;
    border: 1px solid rgba(22, 118, 88, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.home-landing .home-action-note {
    max-width: 580px;
    margin: 14px 0 0;
    color: #4e625b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.home-landing .home-start-label {
    margin: 20px 0 -14px;
    color: #35554a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.home-landing .home-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-landing .home-quick-links a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(188, 209, 202, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(18, 37, 31, .06);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-landing .home-quick-links a:hover,
.home-landing .home-quick-links a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(18, 37, 31, .14);
}

.home-landing .home-quick-links strong {
    color: #073d2c;
    font-size: 17px;
}

.home-landing .home-quick-links small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.cookie-consent {
    width: min(940px, calc(100% - 36px));
    padding: 14px 16px;
}

.cookie-consent__text {
    gap: 3px;
}

.cookie-consent__text p {
    font-size: 14px;
    line-height: 1.38;
}

.cookie-consent__actions button {
    min-width: 122px;
    min-height: 40px;
}

@media (max-width: 720px) {
    .home-landing .home-quick-links {
        grid-template-columns: 1fr;
    }

    .home-landing .home-quick-links a {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
    }

    .home-landing .home-quick-links small {
        text-align: right;
    }

    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        padding: 14px;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__actions button:last-child {
        grid-column: span 2;
    }
}

/* Accueil public — composition immersive validée (option 3). */
.home-landing .home-map-hero {
    min-height: 760px;
    overflow: visible;
    border-bottom: 0;
    background-color: #dfece7;
}

.home-landing .home-map-hero.has-real-map {
    background-image: var(--home-map-image);
    background-position: center;
    background-size: cover;
}

.home-landing .home-map-hero.has-real-map .home-map-surface,
.home-landing .home-map-surface {
    z-index: 0;
    background: rgba(247, 251, 249, .56);
    filter: saturate(.76) contrast(.92);
    opacity: 1;
}

.home-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(380px, 540px) minmax(280px, 1fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: center;
    width: min(1280px, calc(100% - 48px));
    min-height: 710px;
    margin: 0 auto;
    padding: 38px 48px 70px;
}

.home-landing .home-hero-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    width: 100%;
    min-height: auto;
    padding: 46px 44px 42px;
    border: 1px solid rgba(205, 219, 215, .82);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 26px 70px rgba(21, 59, 47, .14);
    backdrop-filter: blur(16px);
}

.home-landing .home-hero-kicker {
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #167658;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-landing .home-hero-copy h1 {
    margin: 0 0 22px;
    color: #073d2c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 4.4vw, 62px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .98;
}

.home-landing .home-hero-copy > p {
    max-width: 410px;
    margin: 0 0 26px;
    color: #344f46;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.home-landing .home-search-panel {
    width: 100%;
    margin-bottom: 18px;
}

.home-landing .home-search-panel form {
    gap: 8px;
    padding: 7px;
    border-color: #cfdbd7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 59, 47, .07);
}

.home-landing .home-search-panel input {
    min-width: 0;
    padding-left: 12px;
}

.home-landing .home-search-panel button {
    border-radius: 10px;
}

.home-hero-actions {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.home-hero-actions .button {
    min-width: 220px;
    justify-content: center;
}

.home-phone-preview {
    justify-self: center;
    width: clamp(258px, 21vw, 300px);
    margin: 0;
    overflow: hidden;
    border: 9px solid #14221d;
    border-radius: 38px;
    background: #14221d;
    box-shadow: 0 34px 68px rgba(14, 47, 37, .28);
    transform: rotate(2.2deg);
}

.home-phone-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

.home-hero-proof {
    position: absolute;
    z-index: 3;
    right: 7%;
    bottom: -46px;
    left: 7%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 94px;
    overflow: hidden;
    border: 1px solid rgba(205, 219, 215, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 55px rgba(21, 59, 47, .13);
}

.home-hero-proof a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 0;
    padding: 24px;
    border-right: 1px solid #dce6e2;
    color: #173f32;
    font-weight: 800;
    text-decoration: none;
}

.home-hero-proof a:last-child {
    border-right: 0;
}

.home-hero-proof img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.home-section-intro {
    max-width: 1180px;
    margin: 0 auto;
    padding: 112px 28px 24px;
}

.home-section-intro h2 {
    max-width: 820px;
    margin: 10px 0 12px;
    color: #073d2c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -.035em;
    line-height: 1.04;
}

.home-section-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .home-landing .home-map-hero {
        min-height: auto;
        padding: 0 0 84px;
    }

    .home-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
        gap: 28px;
        width: min(900px, calc(100% - 36px));
        min-height: auto;
        padding: 46px 0 34px;
    }

    .home-landing .home-hero-copy {
        padding: 34px 30px;
    }

    .home-landing .home-hero-copy h1 {
        font-size: clamp(46px, 7vw, 64px);
    }

    .home-phone-preview {
        width: min(280px, 100%);
    }

    .home-hero-proof {
        right: 18px;
        bottom: -44px;
        left: 18px;
    }
}

@media (max-width: 720px) {
    .home-landing .home-map-hero {
        padding: 0 0 42px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 620px);
        padding: 24px 0 30px;
    }

    .home-landing .home-hero-copy {
        padding: 30px 24px;
        border-radius: 22px;
    }

    .home-landing .home-hero-copy h1 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .home-landing .home-hero-copy > p {
        font-size: 17px;
    }

    .home-landing .home-search-panel form {
        grid-template-columns: 1fr;
    }

    .home-phone-preview {
        width: min(250px, 72vw);
        border-width: 7px;
        border-radius: 32px;
        transform: rotate(1deg);
    }

    .home-hero-proof {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: 1fr;
        margin: 0 14px -12px;
    }

    .home-hero-proof a {
        justify-content: flex-start;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid #dce6e2;
    }

    .home-hero-proof a:last-child {
        border-bottom: 0;
    }

    .home-section-intro {
        padding-top: 54px;
    }
}

/* RoadCache - fonctions actuelles (2026-08) */
.home-latest-features {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.home-latest-features__heading {
    max-width: 860px;
    margin: 0 auto 1.4rem;
    text-align: center;
}
.home-latest-features__heading h2 {
    margin: .35rem 0 .65rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    color: #10261f;
}
.home-latest-features__heading p {
    margin: 0 auto;
    max-width: 760px;
    color: #53665e;
    font-size: 1.04rem;
}
.home-latest-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.home-latest-features__grid article {
    display: flex;
    gap: .9rem;
    min-height: 170px;
    padding: 1.15rem;
    border: 1px solid #dfe8e3;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(16,38,31,.07);
}
.home-latest-features__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e9f4ef;
    color: #17352d;
    font-size: .92rem;
    font-weight: 900;
}
.home-latest-features__grid h3 {
    margin: .1rem 0 .45rem;
    color: #10261f;
    font-size: 1.03rem;
}
.home-latest-features__grid p {
    margin: 0;
    color: #5c6c64;
    line-height: 1.5;
    font-size: .93rem;
}
.home-latest-features__actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}
@media (max-width: 1050px) {
    .home-latest-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .home-latest-features__grid { grid-template-columns: 1fr; }
    .home-latest-features__grid article { min-height: 0; }
}
