/* 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); }
}

/* ─── Modules nav : éviter le flash de bordure foncée à l'activation ───
   .modules-nav-item.active applique `border:1px solid` ; au repos l'item n'a
   aucune bordure, donc border-color = currentColor (#475569, foncé). Avec
   `transition:all .35s`, l'ajout de .active au scroll fait transitionner la
   bordure depuis ce foncé → invisible sur le thème sombre (index), mais bien
   visible sur le thème clair (solutions). On pose une bordure transparente de
   même épaisseur au repos : la transition part de transparent, sans flash. */
body.v2-redesign #modules .modules-nav-item {
    border: 1px solid transparent;
}

/* ─── 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;
}

/* ─── Marque « archipel. » de la navbar : seul endroit qui la style ───
   Le mot était réparti sur six déclarations entre les deux fichiers, dont trois
   sans effet : un font-weight:800 écrasé par le 700 ci-dessous, un display:none
   en double au même palier, et un display:block à 870px qui voulait réafficher
   le mot en mobile mais laissait son parent masqué. Tout est ici désormais.
   La couleur n'est pas redéclarée : elle est héritée de .nav-logo (--primary-blue).
   Le style vise .brand-text, pas une balise : le mot n'est plus un <h3>, qui
   ouvrait le plan de chaque page sur un titre de niveau 3 avant son <h1>. */
body.v2-redesign .brand-text {
    display: block;
    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);
}
/* Sous 1200px la navbar n'a plus la place : l'icône seule tient lieu de logo. */
@media screen and (max-width: 1200px) {
    body.v2-redesign .navbar .brand-name { display: none; }
}

/* ─── 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;
    }
    /* Decalage reserve au rail lateral : les pages en `--full` n'en ont pas. */
    body.v2-redesign #modules .modules-scroll-layout:not(.modules-scroll-layout--full) .modules-panel :is(h2,h3),
    body.v2-redesign #modules .modules-scroll-layout:not(.modules-scroll-layout--full) .modules-panel .panel-subtitle,
    body.v2-redesign #modules .modules-scroll-layout:not(.modules-scroll-layout--full) .modules-panel .panel-desc,
    body.v2-redesign #modules .modules-scroll-layout:not(.modules-scroll-layout--full) .modules-panel .panel-voir-plus {
        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);
}

/* ─── Select : neutraliser le rendu natif pour aligner padding/hauteur
       sur les .form-control classiques (texte décalé + coupé en mobile) ─── */
body.v2-redesign #cta-final .beta-form select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* même hauteur fixe que les <input> .form-control : box-sizing:border-box
       (hérité) => le padding n'affecte plus la hauteur ; le texte se centre
       verticalement dans le box. padding horizontal seul + place pour la flèche. */
    box-sizing: border-box;
    height: var(--form-input-height, 2.5rem);
    padding: 0 40px 0 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8dde6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

/* option par défaut (value="" + required => :invalid) : texte grisé type
   placeholder ; dès qu'une vraie option est choisie => texte blanc */
body.v2-redesign #cta-final .beta-form select.form-control:invalid {
    color: hsla(0, 0%, 100%, 0.3);
}
body.v2-redesign #cta-final .beta-form select.form-control:valid {
    color: hsla(0, 0%, 100%, 0.7);
}

/* le :focus des .form-control utilise `background:` (shorthand) qui efface
   l'image → on la réaffiche pour garder la flèche visible au focus */
body.v2-redesign #cta-final .beta-form select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8dde6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 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 :is(h2,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 :is(h2,h4) {
    font-size: 1.1rem;
    font-weight: 700;
    color: #13284b;
    text-align: left;
    margin-top: 0.75rem;
    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;
    }
    /* Menu plus haut que l'ecran : il defile en interne, sans propager au document
       (`.navbar.mobile` est en overflow:hidden). */
    .navbar.mobile.open {
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* ─── 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,
.blog-content section[id],
.blog-content h3[id] {
    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-scroll-layout:not(.modules-scroll-layout--full) .modules-panel .panel-features {
        padding-left: 40px;
    }
}

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

/* ─── Band : base ─── */
.band--navy {
    position: relative;
    /* Le viewBox de la vague (1200x120) fixe un ratio 10:1 : la largeur du bandeau
       pilote sa hauteur rendue (10vw). Un margin-top fixe decrochait de cette hauteur
       sur les grands ecrans et laissait la vague deborder sur le CTA du hero. */
    margin-top: 10vw;
}
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;
}

/* ─── Hero d'accueil : même titre que les autres pages ───
   Le style v2 est scopé `#hero .hero-content h1`. L'accueil pose son titre dans
   `.hero__copy` (grille deux colonnes, pas de `.hero-content`) : il retombait donc
   sur le style d'origine, 56px/800 avec highlight orange. Mêmes déclarations ici,
   ni plus ni moins, pour que la cascade rende à l'identique. */
body.v2-redesign #hero .hero__copy h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 3rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #13284b;
}
body.v2-redesign #hero .hero__copy h1 .hero-title-highlight {
    display: inline;
    position: relative;
    font-weight: 800;
    font-style: normal;
    background: linear-gradient(135deg, #13284b 0%, #243f6c 40%, #3b6cb5 70%, #13284b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    animation: og-shimmer 6s ease-in-out infinite;
    text-shadow: none;
}
body.v2-redesign #hero .hero__copy h1 .hero-title-highlight::after {
    content: "";
    display: block;
    height: 4px;
    margin-top: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #13284b 0%, #243f6c 40%, #fc8822 100%);
    animation: og-underline-grow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
}
@media (max-width: 870px) {
    body.v2-redesign #hero .hero__copy h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
    body.v2-redesign #hero .hero__copy h1 { font-size: var(--m-hero-title); }
}

/* ─── 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;
}

/* Tag "Comparatif" (modificateur manquant dans landing.css) */
.blog-card__tag--comparatif { background: rgba(40, 167, 69, 0.12); color: #1e7e34; }

/* Placeholder d'illustration (image à produire ultérieurement) */
.blog-img--placeholder {
    border: 2px dashed var(--primary-orange, #fc8822);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    font-style: italic;
}

/* ═══ Tableaux comparatifs d'article (.blog-table) ═══
   Composant réutilisable pour les comparaisons (concurrents, prix, critères).
   Markup attendu :
     <div class="blog-table-wrap">
       <table class="blog-table blog-table--highlight-last">
         <caption>…</caption>                (optionnel)
         <thead><tr><th scope="col">…</th>…</tr></thead>
         <tbody><tr><th scope="row">…</th><td>…</td>…</tr></tbody>
       </table>
     </div>
   Le modificateur --highlight-last met en avant la dernière colonne (Archipel).
   Le wrapper porte le scroll horizontal : la table ne casse jamais la mise en page. */
.blog-table-wrap,
.blog-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid rgba(19, 40, 75, 0.1);
    box-shadow: 0 2px 10px rgba(19, 40, 75, 0.05);
}
.blog-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #fff;
}
.blog-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    color: #13284b;
    padding: 0.85rem 1rem 0.5rem;
    font-size: 0.95rem;
}
.blog-table thead th {
    background: #13284b;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 0.7rem 0.9rem;
    vertical-align: bottom;
    border-bottom: 2px solid var(--primary-orange, #fc8822);
}
.blog-table tbody th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: #13284b;
    background: #f8fafc;
    padding: 0.65rem 0.9rem;
    vertical-align: top;
    min-width: 130px;
}
.blog-table tbody td {
    padding: 0.65rem 0.9rem;
    color: #374151;
    vertical-align: top;
    border-bottom: 1px solid #eef1f5;
}
.blog-table tbody tr:last-child th,
.blog-table tbody tr:last-child td {
    border-bottom: none;
}
.blog-table tbody tr:nth-child(even) td {
    background: rgba(19, 40, 75, 0.02);
}

/* Dernière colonne (Archipel) mise en avant */
.blog-table--highlight-last thead th:last-child {
    background: var(--primary-orange, #fc8822);
    color: #13284b;
    border-bottom-color: #13284b;
}
.blog-table--highlight-last tbody td:last-child {
    background: rgba(252, 136, 34, 0.07);
    font-weight: 600;
    color: #13284b;
}
.blog-table--highlight-last tbody tr:nth-child(even) td:last-child {
    background: rgba(252, 136, 34, 0.11);
}

/* Légende de source sous le tableau */
.blog-table-wrap + p small,
.blog-table-wrapper + p small {
    color: #64748b;
}

@media (max-width: 768px) {
    .blog-table {
        font-size: 0.8rem;
        min-width: 460px;
    }
    .blog-table caption {
        font-size: 0.85rem;
        padding: 0.7rem 0.75rem 0.4rem;
    }
    .blog-table thead th,
    .blog-table tbody th[scope="row"],
    .blog-table tbody td {
        padding: 0.5rem 0.6rem;
    }
    .blog-table tbody th[scope="row"] {
        min-width: 104px;
    }
}

/* Indicateurs compacts dans un tableau comparatif (présence de fonctionnalité) */
.blog-table .ico-yes,
.blog-table .ico-na {
    font-weight: 700;
    margin-right: 0.3rem;
}
.blog-table .ico-yes { color: #28a745; }   /* documenté officiellement / présent */
.blog-table .ico-na  { color: #94a3b8; }   /* non communiqué (neutre, non dénigrant) */

/* Niveau en pastilles (fréquence, gain, intensité) */
.blog-lvl {
    white-space: nowrap;
    letter-spacing: 1px;
}
.blog-lvl b {
    font-style: normal;
    font-weight: 400;
    color: #d5dbe4;
}
.blog-lvl b.on {
    color: var(--primary-orange, #fc8822);
}

/* Légende sous un tableau comparatif */
.blog-table-legend {
    margin: 0.5rem 0 1.75rem;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.25rem;
}
.blog-table-legend .ico-yes { color: #28a745; font-weight: 700; }
.blog-table-legend .ico-na  { color: #94a3b8; font-weight: 700; }

/* Schémas SVG inline dans les articles (famille B, on-brand) */
.blog-figure {
    margin: 1.9rem 0;
}
.blog-figure svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 720px;
    margin: 0 auto;
}
.blog-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    font-style: italic;
}

/* Bloc HowTo (procédure balisée schema.org) */
.blog-howto__steps {
    counter-reset: howto;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.blog-howto__step {
    counter-increment: howto;
    position: relative;
    padding: 0.25rem 0 1.25rem 3rem;
}
.blog-howto__step::before {
    content: counter(howto);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-orange, #fc8822);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-howto__step-title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ─── Message de confirmation du formulaire d'inscription ───────────────────
   Le markup (icone SVG, titre, texte, rappel spam) a ete livre SANS aucune
   regle : ni landing.css ni ce fichier ne portaient un seul selecteur
   `.form-success__*`. Deux consequences visibles a l'ecran :
     - le SVG n'avait ni dimension ni `stroke`, donc il s'etirait a toute la
       largeur du bloc (520 px) tout en restant INVISIBLE, ce qui gonflait la
       carte a 717 px de haut et repoussait le texte tout en bas ;
     - le contenu n'etait pas centre.
   On ne peut pas passer la carte en `display: flex` : landing.js repose sur
   `style.display = 'block'` en inline, qui gagnerait sur la feuille. La mise
   en page reste donc en flux normal, centree. */
.form-success {
    text-align: center;
}

.form-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}

.form-success__check {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-success__circle {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.form-success__tick {
    stroke: #fff;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

/* Le trace suit l'apparition de la carte (.show est pose par landing.js apres
   deux rAF) : sans ce declencheur, l'animation serait deja finie avant que le
   bloc ne soit visible. */
.form-success.show .form-success__circle {
    animation: formSuccessTrace 0.6s ease-out forwards;
}

.form-success.show .form-success__tick {
    animation: formSuccessTrace 0.35s ease-out 0.5s forwards;
}

@keyframes formSuccessTrace {
    to { stroke-dashoffset: 0; }
}

.form-success__title {
    margin-bottom: 12px;
}

.form-success__text {
    margin-bottom: 8px;
}

.form-success__hint {
    opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
    .form-success.show .form-success__circle,
    .form-success.show .form-success__tick {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ─── Fix overflow mobile article de blog ───
   landing.css passe .blog-article-wrapper en flex-direction:column sous 870px
   mais garde align-items:flex-start (hérité de la règle desktop) : .blog-content
   n'est alors plus étiré à la largeur du parent et se dimensionne sur son contenu
   le plus large (tableau .blog-table min-width, image...), ce qui fait déborder
   toute la colonne hors de l'écran. */
@media (max-width: 870px) {
    body.blog-v2 .blog-article-wrapper {
        align-items: stretch;
    }
}
