/* Accueil — identité bleue, thème sombre cohérent */

.home {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.home h1,
.home h2,
.home h3 {
    letter-spacing: -.03em;
}

.home-badge,
.section-label {
    display: inline-block;
    margin-bottom: .85rem;
    color: #93c5fd;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.2rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: -.01em;
    outline: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.home-btn:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2563eb;
}

.home-btn:active {
    transform: translateY(1px);
}

.home-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}

.home-btn-primary:hover,
.home-btn-primary:focus-visible {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
}

.home-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(8px);
}

.home-btn-ghost:hover,
.home-btn-ghost:focus-visible {
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .22);
    color: #fff;
    transform: translateY(-2px);
}

.home-btn-outline {
    border: 1px solid rgba(147, 197, 253, .45);
    background: transparent;
    color: #93c5fd;
}

.home-btn-outline:hover,
.home-btn-outline:focus-visible {
    background: rgba(37, 99, 235, .18);
    color: #fff;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(420px, 58vh, 560px);
    display: flex;
    align-items: center;
    padding: clamp(1.6rem, 5vw, 3.4rem);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.hero-background,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-background {
    z-index: 0;
    background: #0f172a;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 5s ease-out;
}

.hero-slide.is-active img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .68) 46%, rgba(15, 23, 42, .32) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, .28));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(640px, 100%);
    color: #fff;
}

.hero-content h1 {
    max-width: 14ch;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(1.9rem, 4.4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.hero-description {
    max-width: 48ch;
    color: rgba(255, 255, 255, .88);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.15rem;
    margin-top: 1.2rem;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 1.2rem;
    bottom: 1.2rem;
    display: flex;
    gap: .4rem;
    padding: .45rem .6rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(15, 23, 42, .36);
    backdrop-filter: blur(8px);
}

.hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.hero-dot:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.hero-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #93c5fd;
}

.why {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.4rem, 3.4vw, 2.2rem);
    border-radius: 28px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, .18);
}

.why-copy h2 {
    margin-bottom: .55rem;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    letter-spacing: -.025em;
    color: #ffffff;
}

.section-heading h2 {
    margin-bottom: .55rem;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    letter-spacing: -.025em;
    color: #f8fafc;
}

.why-copy > p {
    max-width: 52ch;
    color: #e2e8f0;
    font-size: .95rem;
    line-height: 1.7;
}

.section-heading p {
    max-width: 52ch;
    color: #cbd5e1;
    font-size: .92rem;
    line-height: 1.7;
}

.why-list {
    display: grid;
    gap: .9rem;
    margin: 1.35rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.why-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .8rem;
    align-items: start;
    padding: .85rem .9rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .12);
}

.why-icon,
.home-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
}

.why-icon svg,
.home-card-icon svg {
    width: 22px;
    height: 22px;
}

.why-list strong {
    display: block;
    margin-bottom: .15rem;
    color: #ffffff;
    font-size: .98rem;
}

.why-list span {
    color: #dbe4ee;
    font-size: .84rem;
    line-height: 1.55;
}

.why-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 16px 36px rgba(2, 6, 23, .35);
}

.why-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.why-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.why-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 8s ease-out;
}

.why-slide.is-active img {
    transform: scale(1.08);
}

.why-dots {
    position: absolute;
    z-index: 2;
    right: .8rem;
    bottom: .8rem;
    display: flex;
    gap: .35rem;
    padding: .4rem .5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .38);
}

.why-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.why-dot:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.why-dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: #93c5fd;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.4rem;
}

.section-heading .section-label {
    justify-content: center;
}

.section-heading p {
    margin: 0 auto;
}

.process {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: .75rem;
    align-items: stretch;
}

.process-step,
.home-card {
    padding: 1.5rem 1.15rem 1.35rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 20px;
    background: #111827;
    text-align: center;
    box-shadow: 0 8px 22px rgba(2, 6, 23, .25);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.process-step {
    padding: 1.6rem 1.2rem 1.4rem;
}

.process-step:hover,
.process-step.is-lifted,
.home-card:hover,
.home-card.is-lifted {
    transform: translateY(-8px);
    border-color: rgba(147, 197, 253, .45);
    box-shadow: 0 18px 32px rgba(37, 99, 235, .16);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
    font-size: .75rem;
    font-weight: 900;
}

.process-step h3,
.home-card h3 {
    margin-bottom: .4rem;
    font-size: 1rem;
    color: #f8fafc;
}

.process-step p,
.home-card p {
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.65;
}

.process-arrow {
    width: 18px;
    border-top: 1px solid rgba(147, 197, 253, .35);
    align-self: center;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-card-icon {
    margin: 0 auto .9rem;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 1.6rem;
    border-radius: 22px;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .28);
}

.final-cta-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.final-cta-mark {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, .22);
    color: #93c5fd;
    font-size: 1.35rem;
}

.final-cta h2 {
    margin-bottom: .25rem;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.final-cta p {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

.home-btn-light {
    flex: 0 0 auto;
    background: #fff;
    color: #1d4ed8;
}

.home-btn-light:hover,
.home-btn-light:focus-visible {
    background: #eff6ff;
    color: #1e3a8a;
}

.why-list li,
.process-step,
.home-card {
    opacity: 0;
    transform: translateY(18px);
}

.is-visible .why-list li,
.is-visible .process-step,
.is-visible .home-card {
    animation: homeReveal .65s cubic-bezier(.22, 1.15, .36, 1) both;
}

.is-visible .why-list li:nth-child(1),
.is-visible .process-step:nth-child(1),
.is-visible .home-card:nth-child(1) { animation-delay: .04s; }
.is-visible .why-list li:nth-child(2),
.is-visible .process-step:nth-child(3),
.is-visible .home-card:nth-child(2) { animation-delay: .10s; }
.is-visible .why-list li:nth-child(3),
.is-visible .process-step:nth-child(5),
.is-visible .home-card:nth-child(3) { animation-delay: .16s; }
.is-visible .home-card:nth-child(4) { animation-delay: .22s; }

@keyframes homeReveal {
    0% { opacity: 0; transform: translateY(18px); }
    70% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .why { grid-template-columns: 1fr; }
    .hero-content h1 { max-width: 16ch; }
    .process { grid-template-columns: 1fr; }
    .process-arrow { display: none; }
    .home-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero {
        min-height: clamp(380px, 62vh, 480px);
        padding: 1.25rem;
        border-radius: 18px;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .58) 100%);
    }
    .hero-actions { flex-direction: column; }
    .home-btn { width: 100%; }
    .hero-dots { right: .8rem; bottom: .8rem; }
    .why { padding: 1.1rem; border-radius: 18px; }
    .why-frame { min-height: 210px; }
    .home-grid { grid-template-columns: 1fr; }
    .final-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-btn-light { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide img,
    .hero-dot,
    .home-btn,
    .process-step,
    .home-card,
    .why-slide,
    .why-slide img {
        transition: none !important;
        animation: none !important;
    }
    .hero-slide img,
    .hero-slide.is-active img,
    .why-slide img,
    .why-slide.is-active img,
    .process-step,
    .process-step.is-lifted,
    .home-card,
    .home-card.is-lifted {
        transform: none;
    }
    .why-list li,
    .process-step,
    .home-card {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}
