/* Site vitrine — overrides
   Le reveal au scroll est géré par site/js/landing.js via .is-revealed.
   Les animations hero (heroFadeInDown/Up) viennent de landing.css — ne pas les écraser. */

/* ─── Fond uniforme --secondary-white sur toutes les pages site/ ─── */
body.v2-redesign,
body.blog-v2 {
    background-color: var(--secondary-white, #ede5e1);
}
body.v2-redesign #hero.hero--compact,
body.v2-redesign #modules.modules--light {
    background: var(--secondary-white, #ede5e1);
}
@media (max-width: 870px) {
    body.v2-redesign #modules.modules--light .modules-nav { background: var(--secondary-white, #ede5e1); }
}

/* ─── Navbar : forcer Plus Jakarta Sans (hérite Inter via var(--font-family)) ─── */
body.v2-redesign .navbar,
body.v2-redesign .navbar .nav-item,
body.v2-redesign .navbar .nav-end a {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ─── Brand text : archipel. (classes .brand-text / .brand-dot) ─── */
body.v2-redesign .brand-text,
body.v2-redesign .navbar .brand-name h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    font-size: 1.6rem;
}
body.v2-redesign .brand-dot {
    color: var(--primary-orange, #fc8822);
}

/* ─── Hero shapes : accentuation opacité desktop ─── */
body.v2-redesign #hero .hero-shape {
    opacity: 0.15;
    filter: blur(50px);
}

/* ─── Hero mobile : descendre le contenu sous la navbar ─── */
@media (max-width: 870px) {
    #hero {
        padding-top: 160px;
    }
}

/* Navbar : le CSS compilé gère déjà .show / .animating-down / .animating-up.
   Aucun override nécessaire — landing.js utilise ces classes directement. */

/* Sections révélées au scroll (classe .is-revealed ajoutée par landing.js)
   Les items gérés par card-level reveal (faq-item, pour-qui-item, cas-usage-card,
   pricing-card) sont exclus — ils ont leur propre observer via initCardReveal(). */
section:not(#hero).is-revealed .container-section h2,
section:not(#hero).is-revealed .container-section .section-subtitle,
section:not(#hero).is-revealed .container-section > p:not(.section-subtitle),
section:not(#hero).is-revealed .container-section .pour-qui-arrow,
section:not(#hero).is-revealed .container-section .beta-form,
section:not(#hero).is-revealed .container-section #betaFormSuccess,
section:not(#hero).is-revealed .container-section .vision-compare,
section:not(#hero).is-revealed .container-section .v2-pricing-note,
section:not(#hero).is-revealed .container-section .eco-constellation {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Délais progressifs pour les flèches pour-qui (restent section-level) */
section.is-revealed .pour-qui-arrow:nth-child(2) { transition-delay: 0.05s; }
section.is-revealed .pour-qui-arrow:nth-child(4) { transition-delay: 0.15s; }

/* Sections du band--navy : pas de transition-delay sur les sous-éléments qui
   apparaissent en même temps que le h2 (écosystème, vision, tarifs, cta) */
#ecosysteme.is-revealed .eco-constellation,
#vision.is-revealed .vision-compare,
#tarifs.is-revealed .v2-pricing-grid,
#cta-final.is-revealed .beta-form {
    transition-delay: 0.15s;
}

/* ─── Constellation entrance animation ─── */
@keyframes eco-hub-enter {
    0%   { opacity: 0; scale: 0; }
    70%  { opacity: 1; scale: 1.12; }
    100% { opacity: 1; scale: 1; }
}
@keyframes eco-chip-enter {
    0%   { opacity: 0; scale: 0; }
    75%  { opacity: 1; scale: 1.08; }
    100% { opacity: 1; scale: 1; }
}

body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__hub {
    opacity: 0;
    scale: 0;
    animation: none;
}
body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip {
    opacity: 0;
    scale: 0;
    animation: none;
}
body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__rings {
    opacity: 0;
    transition: opacity 0.5s ease-out 0.05s;
}
body.v2-redesign #ecosysteme .eco-constellation::before {
    opacity: 0;
    transition: opacity 0.6s ease-out 0.15s;
}

body.v2-redesign #ecosysteme.is-revealed .eco-constellation::before {
    opacity: 1;
}
body.v2-redesign #ecosysteme.is-revealed .eco-constellation .eco-constellation__rings {
    opacity: 1;
}
body.v2-redesign #ecosysteme.is-revealed .eco-constellation .eco-constellation__hub {
    animation: eco-hub-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s 1 both,
               og-eco-breathe 4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s infinite;
}
body.v2-redesign #ecosysteme.is-revealed .eco-constellation .eco-constellation__chip {
    animation: eco-chip-enter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               og-eco-float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Mobile — même layout orbital, taille réduite */
@media (max-width: 860px) {
    body.v2-redesign #ecosysteme .eco-constellation {
        position: relative;
        height: 340px;
        max-width: 100%;
        display: block;
        flex-wrap: initial;
        justify-content: initial;
        align-items: initial;
        gap: 0;
        padding-top: 0;
        margin: 16px auto 0;
    }
    body.v2-redesign #ecosysteme .eco-constellation::before {
        display: block;
        width: 200px;
        height: 200px;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__rings {
        display: block;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__hub {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 72px;
        height: 72px;
        background: #fff;
        box-shadow: 0 0 0 5px rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.35), 0 0 20px rgba(252,136,34,0.3);
        flex-basis: auto;
        margin-bottom: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__hub img {
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip {
        position: absolute;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip--block {
        padding: 5px 9px;
        font-size: 0.6rem;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip--link {
        padding: 3px 7px;
        font-size: 0.52rem;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip i {
        font-size: 0.55rem;
    }
    body.v2-redesign #ecosysteme.is-revealed .eco-constellation .eco-constellation__hub {
        animation: eco-hub-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s 1 both,
                   og-eco-breathe 4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s infinite;
    }
    body.v2-redesign #ecosysteme.is-revealed .eco-constellation .eco-constellation__chip {
        animation: eco-chip-enter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
                   og-eco-float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__hub,
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__chip {
        opacity: 1;
        scale: 1;
        animation: none !important;
    }
    body.v2-redesign #ecosysteme .eco-constellation .eco-constellation__rings,
    body.v2-redesign #ecosysteme .eco-constellation::before {
        opacity: 1;
    }
}

/* ─── Modules sidebar: glass effect tablette + mobile ─── */
@media (max-width: 900px) {
    body.v2-redesign #modules .modules-nav {
        background: rgba(10, 22, 40, 0.55);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-radius: 14px;
        padding: 8px 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        top: calc(50vh - 130px);
        opacity: 0;
        translate: -16px 0;
        transition: opacity 0.35s ease-out, translate 0.35s ease-out;
        pointer-events: none;
    }
    body.v2-redesign #modules .modules-nav.nav-visible {
        opacity: 1;
        translate: 0 0;
        pointer-events: auto;
    }
    body.v2-redesign #modules .modules-nav-items {
        gap: 5px;
    }
    body.v2-redesign #modules .modules-nav-item {
        padding: 7px;
        border-radius: 10px;
    }
    body.v2-redesign #modules .modules-nav-item.active {
        background: rgba(252, 136, 34, 0.12);
        box-shadow: none;
    }
    body.v2-redesign #modules .modules-nav-item.active .modules-nav-icon {
        background: linear-gradient(135deg, #fc8822 0%, #ff6b00 100%);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(252, 136, 34, 0.35);
    }
}

/* ─── Modules mobile: sidebar chevauchant le contenu ─── */
@media (max-width: 480px) {
    body.v2-redesign #modules .modules-scroll-layout {
        grid-template-columns: 8px 1fr;
        gap: 0;
        padding: 32px 12px 48px 6px;
    }
    body.v2-redesign #modules .modules-nav {
        width: 44px;
        z-index: 15;
        top: calc(50vh - 120px);
        background: rgba(10, 22, 40, 0.55);
        padding: 8px 5px;
        margin: 0;
    }
    body.v2-redesign #modules .modules-nav h2 {
        display: none;
    }
    body.v2-redesign #modules .modules-nav-items {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: initial;
    }
    body.v2-redesign #modules .modules-nav-icon {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
        border-radius: 8px;
    }
    body.v2-redesign #modules .modules-nav-text {
        display: none;
    }
    body.v2-redesign #modules .modules-panel h3,
    body.v2-redesign #modules .modules-panel .panel-subtitle,
    body.v2-redesign #modules .modules-panel .panel-desc {
        padding-left: 40px;
    }
    body.v2-redesign #modules .panel-visual {
        zoom: 0.82;
    }
    body.v2-redesign #modules .vc-tabs {
        display: none;
    }
    body.v2-redesign #modules .vc-retard-row:last-child {
        display: none;
    }
    body.v2-redesign #modules .vc-chart {
        height: 34px;
    }
}



/* ─── Modules: masquer CTA tablette + mobile ─── */
@media (max-width: 900px) {
    body.v2-redesign #modules .modules-nav-cta {
        display: none;
    }
}

/* ─── Adoption timeline mobile : courbe SVG derrière les cartes pleine largeur ─── */
@media (max-width: 768px) {
    body.v2-redesign #adoption-ag .adoption-ag-steps::before {
        display: block;
        left: 50%;
        width: 28px;
        transform: translateX(-50%);
        top: 40px;
        bottom: 40px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='320' viewBox='0 0 28 320'%3E%3Cpath d='M14 0 C4 80 24 160 14 240 C8 280 14 320 14 320' fill='none' stroke='rgba(252,136,34,0.3)' stroke-width='2' stroke-dasharray='8 5'/%3E%3C/svg%3E") repeat-y center top;
        background-size: 28px 320px;
        -webkit-mask-image: none;
        mask-image: none;
        z-index: 0;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step {
        width: 100%;
        z-index: 1;
        position: relative;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step::before,
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step::after {
        display: none;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step .step-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step .step-content h3 {
        font-size: 0.92rem;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step .step-content p {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step .step-content .step-meta {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
    body.v2-redesign #adoption-ag .adoption-ag-steps .adoption-ag-step {
        padding: 18px 16px;
        gap: 12px;
    }
}

/* ─── Mobile : typographie uniforme via custom properties ─── */
@media (max-width: 768px) {
    body.v2-redesign {
        --m-hero-title: 1.4rem;
        --m-h2: 1.2rem;
        --m-subtitle: 0.82rem;
        --m-card-title: 0.88rem;
        --m-body: 0.78rem;
        --m-body-sm: 0.72rem;
        --m-caption: 0.6rem;
        --m-btn: 0.82rem;
        --m-price: 1.6rem;
        --m-form-input: max(0.9rem, 16px);
        --m-card-pad: 18px 16px;
    }

    /* Hero */
    body.v2-redesign #hero .hero-content h1 {
        font-size: var(--m-hero-title);
    }
    body.v2-redesign #hero .hero-content .hero-subtitle {
        font-size: var(--m-subtitle);
    }

    /* H2 + sous-titres — toutes sections */
    body.v2-redesign section .container-section h2 {
        font-size: var(--m-h2);
    }
    body.v2-redesign section .container-section .section-subtitle {
        font-size: var(--m-subtitle);
    }

    /* Pour qui */
    body.v2-redesign #pour-qui .pour-qui-item {
        padding: var(--m-card-pad);
    }
    body.v2-redesign #pour-qui .pour-qui-item h3 {
        font-size: var(--m-card-title);
    }
    body.v2-redesign #pour-qui .pour-qui-item p {
        font-size: var(--m-body);
    }
    body.v2-redesign #pour-qui .pour-qui-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Vision — comparaison + cas d'usage */
    body.v2-redesign #vision .vision-compare > div {
        padding: 12px 14px;
    }
    body.v2-redesign #vision .vision-compare .vision-compare__crit {
        font-size: var(--m-body);
    }
    body.v2-redesign #vision .vision-compare .vision-compare__classic,
    body.v2-redesign #vision .vision-compare .vision-compare__archipel {
        font-size: var(--m-body-sm);
    }
    body.v2-redesign #vision .cas-usage-card {
        padding: var(--m-card-pad);
    }
    body.v2-redesign #vision .cas-usage-card__title {
        font-size: var(--m-card-title);
        margin-bottom: 12px;
    }
    body.v2-redesign #vision .cas-usage-avant {
        font-size: var(--m-body-sm);
        margin-bottom: 12px;
    }
    body.v2-redesign #vision .cas-usage-apres {
        font-size: var(--m-body);
    }
    body.v2-redesign #vision .cas-usage-tag {
        font-size: var(--m-caption);
    }

    /* Pricing — cartes compactes */
    body.v2-redesign #tarifs .v2-pricing-card {
        padding: var(--m-card-pad);
        border-radius: 14px;
    }
    body.v2-redesign #tarifs .v2-pricing-card .v2-pricing-header {
        margin-bottom: 6px;
    }
    body.v2-redesign #tarifs .v2-pricing-card .v2-pricing-header h3 {
        font-size: var(--m-card-title);
    }
    body.v2-redesign #tarifs .v2-pricing-card .v2-pricing-price {
        font-size: var(--m-price);
    }
    body.v2-redesign #tarifs .v2-pricing-card .v2-pricing-price span {
        font-size: var(--m-body-sm);
    }
    body.v2-redesign #tarifs .v2-pricing-card .v2-pricing-desc {
        font-size: var(--m-body-sm);
    }
    body.v2-redesign #tarifs .v2-pricing-card ul {
        gap: 6px;
        margin-bottom: 16px;
    }
    body.v2-redesign #tarifs .v2-pricing-card ul li {
        font-size: var(--m-body-sm);
    }
    body.v2-redesign #tarifs .v2-pricing-card .btn {
        padding: 10px 16px;
        font-size: var(--m-btn);
    }
    body.v2-redesign #tarifs .v2-pricing-note {
        font-size: var(--m-body-sm);
    }
    body.v2-redesign #tarifs .v2-pricing-badge {
        font-size: var(--m-caption);
    }

    /* FAQ — compact */
    body.v2-redesign #faq .faq-item {
        padding: 14px 16px;
    }
    body.v2-redesign #faq .faq-item h3 {
        font-size: var(--m-card-title);
        margin-bottom: 4px;
    }
    body.v2-redesign #faq .faq-item p {
        font-size: var(--m-body-sm);
    }

    /* CTA form */
    body.v2-redesign #cta-final .beta-form label {
        font-size: var(--m-body);
    }
    body.v2-redesign #cta-final .beta-form .btn {
        font-size: var(--m-btn);
    }

    /* Footer */
    .new_footer_top h3 {
        font-size: var(--m-card-title);
        margin-bottom: 1rem;
    }
    .footer-column .f_list li a {
        font-size: var(--m-body-sm);
    }
    .footer-column.col1 p {
        font-size: var(--m-body);
        line-height: 1.5;
    }
    .footer_bottom {
        font-size: var(--m-body-sm);
    }
}

/* ─── Formulaire : inputs ≥16px pour éviter le zoom iOS ─── */
body.v2-redesign .beta-form .form-control,
body.v2-redesign .beta-form select.form-control {
    font-size: max(0.9rem, 16px);
}

/* ─── Mobile : pages légales + articles + sidebar light ─── */
@media (max-width: 768px) {
    /* Pages légales */
    .legal-hero {
        padding: 110px 0 40px;
    }
    .legal-hero h1 {
        font-size: clamp(20px, 5vw, 32px);
    }
    .legal-body {
        padding: 28px 16px 40px;
    }
    .legal-body h4 {
        font-size: var(--m-card-title, 0.88rem);
    }
    .legal-body p,
    .legal-body ul {
        font-size: var(--m-body, 0.78rem);
        line-height: 1.6;
    }
    .legal-body .details {
        font-size: var(--m-body-sm, 0.72rem);
    }

    /* Articles / blog */
    body.blog-v2 .blog-content h2 {
        font-size: 1.15rem;
        margin: 1.8rem 0 0.8rem;
    }
    body.blog-v2 .blog-content h3 {
        font-size: 0.95rem;
        margin: 1.4rem 0 0.5rem;
    }
    body.blog-v2 .blog-content p {
        font-size: var(--m-body, 0.78rem);
        line-height: 1.65;
    }
    body.blog-v2 .blog-content ul li,
    body.blog-v2 .blog-content ol li {
        font-size: var(--m-body, 0.78rem);
    }
}

/* ─── Sidebar modules--light (solutions.php) : glass clair ─── */
@media (max-width: 900px) {
    body.v2-redesign #modules.modules--light .modules-nav {
        background: rgba(250, 246, 242, 0.55);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-color: rgba(19, 40, 75, 0.08);
        box-shadow: 0 4px 20px rgba(19, 40, 75, 0.08);
    }
    body.v2-redesign #modules.modules--light .modules-nav-item.active {
        background: rgba(252, 136, 34, 0.1);
    }
    body.v2-redesign #modules.modules--light .modules-nav-item.active .modules-nav-icon {
        background: linear-gradient(135deg, #fc8822 0%, #ff6b00 100%);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(252, 136, 34, 0.3);
    }
}

/* Blog images — constrain dimensions */
.blog-img img,
.blog-content img,
.blog-article-wrapper img {
    max-width: 100% !important;
    max-height: 500px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
}

/* Legal pages */
/* Legal pages — hero + body aligned with footer palette */
body.legal-page-body {
    background-color: #ede5e1;
}
.legal-hero {
    background: linear-gradient(145deg, #13284b 0%, #1a3560 60%, #243f6c 100%);
    padding: 140px 0 60px;
    text-align: center;
    color: #fff;
}
.legal-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-40px);
    animation: heroFadeInDown 0.5s ease-out forwards;
    animation-delay: 0.15s;
}

/* Blog hero — fond fixe, seul le texte anime */
body.blog-v2 .blog-hero {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Blog hero — animation d'entrée haut vers bas */
.blog-hero .blog-hero__title,
.blog-hero .blog-hero__breadcrumb,
.blog-hero .blog-hero__tag,
.blog-hero .blog-hero__subtitle,
.blog-hero .blog-hero__meta {
    opacity: 0;
    transform: translateY(-30px);
    animation: heroFadeInDown 0.5s ease-out forwards;
}
.blog-hero .blog-hero__breadcrumb { animation-delay: 0.05s; }
.blog-hero .blog-hero__tag { animation-delay: 0.1s; }
.blog-hero .blog-hero__title { animation-delay: 0.15s; }
.blog-hero .blog-hero__subtitle { animation-delay: 0.25s; }
.blog-hero .blog-hero__meta { animation-delay: 0.3s; }
.legal-hero .hero-title-highlight {
    color: var(--primary-orange, #f5811f);
}
.legal-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.legal-body section {
    margin-bottom: 2.5rem;
}
.legal-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #13284b;
    margin-bottom: 0.75rem;
}
.legal-body p {
    line-height: 1.7;
    color: #374151;
    text-align: justify;
}
.legal-body ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    color: #374151;
    line-height: 1.7;
    text-align: left;
}
.legal-body .details {
    padding: 12px 16px;
    border-left: 3px solid var(--primary-orange, #f5811f);
    background: rgba(245, 129, 31, 0.04);
    border-radius: 0 8px 8px 0;
    margin: 0.75rem 0;
}
.legal-body a {
    color: var(--primary-orange, #f5811f);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-body a:hover {
    color: #c2410c;
}

/* Social proof counter */
.beta-social-proof {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}


/* Mobile nav — site vitrine : Inscription en premier, Connexion en dessous */
@media (max-width: 870px) {
    .navbar.mobile.open .nav-end {
        flex-direction: column;
        gap: 12px;
    }
    .navbar.mobile.open .nav-end .nav-item--desktop {
        display: none !important;
    }
}

/* ─── Card-level reveal ───
   Desktop : fadeUp (bas → haut)
   Mobile : slide (gauche → droite)
   Spécificité >= landing.css pour gagner. */
section:not(#hero) .container-section .faq-items .faq-item,
section:not(#hero) .container-section .pour-qui-grid .pour-qui-item,
section:not(#hero) .container-section .cas-usage-strip .cas-usage-card,
section:not(#hero) .container-section .adoption-ag-steps .adoption-ag-step,
.v2-pricing-grid .v2-pricing-card {
    opacity: 0 !important;
    transform: translateY(24px) !important;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out !important;
}

section:not(#hero) .container-section .faq-items .faq-item.card-visible,
section:not(#hero) .container-section .pour-qui-grid .pour-qui-item.card-visible,
section:not(#hero) .container-section .cas-usage-strip .cas-usage-card.card-visible,
section:not(#hero) .container-section .adoption-ag-steps .adoption-ag-step.card-visible,
.v2-pricing-grid .v2-pricing-card.card-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    section:not(#hero) .container-section .faq-items .faq-item,
    section:not(#hero) .container-section .pour-qui-grid .pour-qui-item,
    section:not(#hero) .container-section .cas-usage-strip .cas-usage-card,
    section:not(#hero) .container-section .adoption-ag-steps .adoption-ag-step,
    .v2-pricing-grid .v2-pricing-card {
        transform: translateX(-40px) !important;
        transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    section:not(#hero) .container-section .faq-items .faq-item.card-visible,
    section:not(#hero) .container-section .pour-qui-grid .pour-qui-item.card-visible,
    section:not(#hero) .container-section .cas-usage-strip .cas-usage-card.card-visible,
    section:not(#hero) .container-section .adoption-ag-steps .adoption-ag-step.card-visible,
    .v2-pricing-grid .v2-pricing-card.card-visible {
        transform: translateX(0) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    section:not(#hero) .container-section .faq-items .faq-item,
    section:not(#hero) .container-section .pour-qui-grid .pour-qui-item,
    section:not(#hero) .container-section .cas-usage-strip .cas-usage-card,
    section:not(#hero) .container-section .adoption-ag-steps .adoption-ag-step,
    .v2-pricing-grid .v2-pricing-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ─── Solutions : section modules reveal (bas → haut) ─── */
@keyframes sectionSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
body.v2-redesign #modules.modules--light {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionSlideUp 0.6s ease-out 0.1s forwards;
}

/* ─── Solutions : panel-desc justifié ─── */
body.v2-redesign #modules .modules-panel .panel-desc {
    text-align: justify;
}
body.v2-redesign #modules .modules-panel .panel-feat:hover {
    background: transparent;
}
body.v2-redesign #modules .modules-panel .panel-feat:hover::before {
    opacity: 0.6;
}

/* ─── Scroll offset pour ancres sous la navbar ─── */
#cta-final {
    scroll-margin-top: calc(var(--navbar-height, 70px) + 24px);
}

/* ─── Solutions : CTA strip fin de modules ─── */
.modules-cta-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 48px 0 16px;
}
@media (max-width: 480px) {
    .modules-cta-strip {
        flex-direction: column;
        align-items: stretch;
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ─── Solutions mobile : panel-features dégagé de la sidebar ─── */
@media (max-width: 480px) {
    body.v2-redesign #modules .modules-panel .panel-features {
        padding-left: 40px;
    }
}

/* =================================================================
   Navy band — transitions wave top + blob bottom
   ================================================================= */

/* ─── Band : base ─── */
.band--navy {
    position: relative;
    margin-top: 130px;
}
body.v2-redesign .band--navy {
    background: linear-gradient(180deg, #0a1628 0%, #13284b 50%, #1a3560 calc(100% - 100px));
}

/* ─── Wave top (beige → navy) ─── */
.navy-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotate(180deg) translateY(100%);
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}
.navy-wave-top svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 120px;
}

/* ─── Blob bottom (navy → beige) ─── */
.navy-blob-bottom {
    position: relative;
    height: 92px;
    overflow: hidden;
    background-color: var(--secondary-white, #ede5e1);
    outline: none;
    border: none;
}
.navy-blob-shape {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 92px;
    background: #1a3560;
    clip-path: url(#navyBlobClip);
    pointer-events: none;
}

/* ─── Index only : wave chevauche le bas du hero (gradient custom) ─── */
#hero:not(.hero--compact)                { padding-bottom: 240px; }
#hero:not(.hero--compact) + .band--navy  { margin-top: -60px; z-index: 2; }

/* ─── Responsive ─── */
@media (max-width: 870px) {
    #hero:not(.hero--compact)                   { padding-bottom: 120px; }
    .band--navy                                 { margin-top: 90px; }
    .navy-wave-top svg                          { min-height: 80px; }
    #hero:not(.hero--compact) + .band--navy     { margin-top: -40px; }
}
@media (max-width: 768px) {
    .navy-blob-bottom  { height: 72px; }
    .navy-blob-shape   { height: 72px; width: 130%; left: -15%; }
}
@media (max-width: 480px) {
    .band--navy                                 { margin-top: 55px; }
    .navy-wave-top svg                          { min-height: 50px; }
    .navy-blob-bottom                           { height: 56px; }
    .navy-blob-shape                            { height: 56px; width: 150%; left: -25%; }
    #hero:not(.hero--compact) + .band--navy     { margin-top: -20px; }
}

/* Optional label hint */
.label-optional {
    font-weight: 400;
    font-size: 0.8em;
    opacity: 0.7;
}
