/* =====================================================
   HOME.CSS - PAGE ACCUEIL PLAM-X
   À charger avec /assets/css/app.css
   ===================================================== */

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    background:
        radial-gradient(circle at 15% 20%, rgba(47,111,208,.22), transparent 34%),
        radial-gradient(circle at 85% 10%, rgba(16,23,32,.10), transparent 28%),
        linear-gradient(135deg, #f2f6fc 0%, #dce9fa 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.75;
    max-width: 680px;
    margin: 28px 0 34px;
}

.hero-visual {
    position: relative;
}

.photo-card {
    background: var(--white);
    padding: 18px;
    border-radius: 38px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    animation: float 5s ease-in-out infinite;
}

.photo-card img {
    border-radius: 28px;
    height: 520px;
    width: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: -18px;
    bottom: 34px;
    background: var(--white);
    border-radius: 20px;
    padding: 16px 22px;
    box-shadow: 0 18px 45px rgba(16,23,32,.16);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--black);
}

.hero-badge i {
    font-size: 26px;
    color: var(--blue);
}

.hero-badge small {
    display: block;
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@keyframes float {
    0%, 100% {
        transform: rotate(2deg) translateY(0);
    }
    50% {
        transform: rotate(2deg) translateY(-16px);
    }
}

/* STATS */

.stats-section {
    margin-top: -45px;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 55px rgba(16,23,32,.08);
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--black);
    font-size: 32px;
    font-family: "Poppins", sans-serif;
}

.stat-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

/* CARTES */

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

.cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 16px 45px rgba(16,23,32,.06);
    transition: .28s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card.featured {
    background: var(--black);
    color: rgba(255,255,255,.75);
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card .icon {
    font-size: 34px;
    color: var(--blue);
    margin-bottom: 20px;
    line-height: 1;
}

.service-card.featured .icon {
    color: var(--blue-light);
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 14px;
}

.service-card p {
    line-height: 1.75;
    margin: 0;
}

/* POURQUOI */

.why-section {
    padding: 110px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 70px;
    align-items: center;
}

.image-stack img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

/* MODES */

.modes-section {
    padding: 110px 0;
    background: var(--cream);
}

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

.mode-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    transition: .28s ease;
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.mode-card .icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(47,111,208,.12);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.mode-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.mode-card p {
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
}

/* CAPTURES DE L'APP */

.shots-section {
    padding: 110px 0;
    background: var(--black);
}

.shots-section .section-heading span {
    color: var(--blue-light);
}

.shots-section .section-heading h2 {
    color: var(--white);
}

.shots-section .section-heading p {
    color: rgba(255,255,255,.72);
}

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

.shot-card {
    margin: 0;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 14px;
    transition: .28s ease;
}

.shot-card:hover {
    transform: translateY(-8px);
    border-color: rgba(143,194,245,.35);
}

.shot-card img {
    width: 100%;
    border-radius: 12px;
}

.shot-card figcaption {
    padding: 14px 6px 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
}

/* ÉTAPES */

.steps-section {
    padding: 110px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 38px 32px 32px;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -22px;
    left: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(47,111,208,.35);
}

.step-card h3 {
    font-size: 21px;
    margin: 14px 0 12px;
}

.step-card p {
    margin: 0;
    line-height: 1.75;
}

/* FAQ */

.faq-section {
    padding: 110px 0;
    background: var(--cream);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 26px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--blue);
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "\2013";
}

.faq-item p {
    margin: 16px 0 0;
    line-height: 1.8;
}

/* CTA */

.cta-section {
    padding: 110px 0;
    background: var(--white);
}

.cta-box {
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(47,111,208,.38), transparent 34%),
        radial-gradient(circle at bottom right, rgba(143,194,245,.28), transparent 34%),
        var(--black);
    border-radius: 44px;
    padding: 90px 40px;
    color: rgba(255,255,255,.78);
}

.cta-box h2 {
    color: var(--white);
    max-width: 760px;
    margin: 0 auto 20px;
}

.cta-box p {
    max-width: 620px;
    margin: 0 auto 34px;
}

.cta-box .hero-actions {
    justify-content: center;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    margin-top: 34px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}

.cta-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-contact a:hover {
    color: var(--blue-light);
}

/* RESPONSIVE */

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

@media (max-width: 980px) {
    .hero {
        padding: 70px 0;
    }

    .hero-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .photo-card img,
    .image-stack img {
        height: 420px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid,
    .cards-grid-2,
    .steps-grid,
    .shots-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding-top: 44px;
    }

    .section,
    .why-section,
    .modes-section,
    .shots-section,
    .steps-section,
    .faq-section,
    .cta-section {
        padding: 70px 0;
    }
}

@media (max-width: 640px) {
    .hero-badge {
        left: 10px;
        bottom: 14px;
        padding: 12px 16px;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 60px 22px;
        border-radius: 32px;
    }
}
