/* 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/ ─── */
html,
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 « insuleo. » 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, 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 .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;
}

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

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


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


/* ─── 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 .cas-usage-strip .cas-usage-card,
.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 .cas-usage-strip .cas-usage-card.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 .cas-usage-strip .cas-usage-card,
    .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 .cas-usage-strip .cas-usage-card.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 .cas-usage-strip .cas-usage-card,
    .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 (Insuleo).
   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 (Insuleo) 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;
    }
}

/* ─── Formulaire unique (includes/beta_signup_form.php) : étape agenda des professionnels ─── */
#demoBox { scroll-margin-top: 90px; }
body.v2-redesign #cta-final .beta-form { transition: max-width .3s ease; }
/* Sur iPhone, un parent flouté (backdrop-filter) ou transformé empêche les appuis d'atteindre le cadre
   Calendly : dès que l'agenda s'affiche, le bloc s'élargit, devient opaque et perd toute transformation. */
body.v2-redesign #cta-final .beta-form.is-agenda { max-width: 820px; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none !important; background: #1d3257; }
.form-agenda__merci { margin-bottom: 18px; text-align: center; }
.form-agenda__ok { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: rgba(40, 167, 69, .16); color: #7ee2a0; font-size: 14px; font-weight: 600; }
body.v2-redesign #cta-final .form-agenda__merci h3 { margin: 0 0 4px; font-size: 22px; color: var(--white); }
.form-agenda__merci > p:last-child { margin: 0; color: rgba(255, 255, 255, .7); }
.form-agenda { min-height: 640px; border-radius: 14px; overflow: hidden; background: var(--white); }
/* Champ libre : assez haut d'entrée, grandit avec le texte */
body.v2-redesign #cta-final textarea.form-control { height: auto; min-height: 104px; max-height: 240px; field-sizing: content; resize: vertical; overflow-y: auto; line-height: 1.5; padding-top: 12px; }

/* Reflet qui passe sur les boutons d'action principaux (landing, /cabinets, formulaire). */
body.v2-redesign .btn-primary-orange.btn-large, body.v2-redesign #demoForm .btn-primary-orange, body.v2-redesign .v2-pricing-featured .btn-primary-orange {
    background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%), var(--orange-gradient);
    background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; animation: bouton-reflet 5s ease-in-out 2s infinite;
}
@keyframes bouton-reflet { 0%, 70% { background-position: 130% 0, 0 0; } 100% { background-position: -130% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
    body.v2-redesign .btn-primary-orange.btn-large, body.v2-redesign #demoForm .btn-primary-orange, body.v2-redesign .v2-pricing-featured .btn-primary-orange { animation: none; }
}

/* Formulaire de démo : l'essai qui suit la démo, sous le bouton (accueil, /tarifs). */
.v2-redesign .acc-apres-demo { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85); text-align: center; }
.v2-redesign .acc-apres-demo i { color: var(--primary-orange); margin-right: 6px; }

/* ─── Navbar mobile (<= 870px) ───
   En haut de page la barre est transparente : elle se fond dans le hero et dans la teinte
   de la barre de statut iOS (theme-color #ede5e1, head.php). Le verre n'arrive qu'au
   défilement (.is-scrolled, landing.js). Le menu se déplie depuis la barre par clip-path :
   transform et opacity seulement, rien qui relance la mise en page à chaque image. */
@keyframes navSheetOpen { from { clip-path: inset(0 0 calc(100% - var(--bar-h)) 0); } to { clip-path: inset(0); } }
@keyframes navSheetClose { from { clip-path: inset(0); } to { clip-path: inset(0 0 calc(100% - var(--bar-h)) 0); } }
@keyframes navItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes navItemOut { to { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 870px) {
    /* La forme bleue du hero était posée sous la barre de statut et teintait le haut de l'écran. */
    body.v2-redesign #hero .hero-shape-1 { top: 32vh; }

    html body .navbar.mobile {
        --bar-h: calc(64px + env(safe-area-inset-top));
        --ease-sheet: cubic-bezier(.32, .72, 0, 1);
        height: var(--bar-h);
        min-height: var(--bar-h);
        max-height: none;
        padding: 0 20px;
        border-radius: 0;
        overflow: hidden;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid transparent;
        transition: background-color .3s ease, border-color .3s ease;
    }
    html body .navbar.mobile.is-scrolled {
        background: rgba(237, 229, 225, .8);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom-color: rgba(19, 40, 75, .06);
    }
    html body .navbar.mobile.open {
        height: 100vh;
        height: 100dvh;
        max-height: none;
        background: var(--secondary-white, #ede5e1);
        border-bottom-color: transparent;
        overflow-y: auto;
        overscroll-behavior: contain;
        animation: navSheetOpen .42s var(--ease-sheet) both;
    }
    html body .navbar.mobile.open.is-closing { animation: navSheetClose .3s cubic-bezier(.4, 0, 1, 1) both; }
    /* Blog : la barre repose sur le hero bleu marine tant qu'on n'a pas défilé. */
    body.blog-v2 .navbar.mobile:not(.is-scrolled):not(.open) .brand-text { color: var(--white, #fff); }
    html body.blog-v2 .navbar.mobile:not(.is-scrolled):not(.open) .hamburger .bar { background-color: var(--white, #fff); }

    /* Barre : logo et mot à gauche, bouton à droite, alignés sur la même ligne. */
    html body .navbar.mobile .nav-logo {
        position: absolute;
        top: calc(env(safe-area-inset-top) + 8px);
        left: 20px;
        height: 48px;
        padding: 0;
        gap: 8px;
    }
    html body .navbar.mobile .nav-logo .brand-icon,
    html body .navbar.mobile .nav-logo img { width: 2.25rem; height: 2.25rem; }
    body.v2-redesign .navbar.mobile .brand-name { display: block; }
    body.v2-redesign .navbar.mobile .brand-text { font-size: 1.3rem; }

    /* Deux traits : le trait court indique le geste, les deux se croisent en X. */
    html body .navbar.mobile .hamburger {
        position: absolute;
        top: calc(env(safe-area-inset-top) + 10px);
        right: 10px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    html body .navbar.mobile .hamburger .bar {
        position: absolute;
        left: 11px;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        transform-origin: center;
        transition: transform .4s var(--ease-sheet), top .4s var(--ease-sheet), width .4s var(--ease-sheet), left .4s var(--ease-sheet);
    }
    html body .navbar.mobile .hamburger .bar1 { top: 17px; }
    html body .navbar.mobile .hamburger .bar2 { display: none; }
    html body .navbar.mobile .hamburger .bar3 { top: 25px; left: 19px; width: 14px; }
    html body .navbar.mobile.open .hamburger .bar1 { top: 21px; transform: rotate(45deg); }
    html body .navbar.mobile.open .hamburger .bar3 { top: 21px; left: 11px; width: 22px; transform: rotate(-45deg); }

    /* Menu : fermé, il sort de l'ordre de tabulation. */
    html body .navbar.mobile:not(.open) .nav-main,
    html body .navbar.mobile:not(.open) .nav-end { visibility: hidden; }

    html body .navbar.mobile .nav-main {
        gap: 0;
        padding-top: calc(var(--bar-h) + 12px);
    }
    html body .navbar.mobile .nav-main > .nav-item,
    html body .navbar.mobile .nav-main > .nav-dropdown {
        border-bottom: 1px solid rgba(19, 40, 75, .08);
    }
    html body .navbar.mobile .nav-main > .nav-item,
    html body .navbar.mobile .nav-dropdown .dropdown-toggle.nav-item {
        padding: 18px 4px;
        border-radius: 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -.02em;
        background: transparent;
    }
    html body .navbar.mobile .nav-main .nav-item:hover { background: transparent; }
    html body .navbar.mobile .nav-main .nav-item.active { color: var(--primary-orange); }

    /* Sous-menu : hauteur réelle posée par landing.js, pas un plafond arbitraire. */
    html body .navbar.mobile .nav-dropdown,
    html body .navbar.mobile .nav-dropdown.is-open,
    html body .navbar.mobile .nav-dropdown:hover {
        max-height: none;
        background: transparent;
        border-radius: 0;
    }
    html body .navbar.mobile .nav-dropdown .nav-dropdown__menu {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height .4s var(--ease-sheet);
    }
    html body .navbar.mobile .nav-dropdown .nav-dropdown__col:last-child { padding-bottom: 14px; }
    html body .navbar.mobile .nav-dropdown .nav-dropdown__item {
        margin-left: 4px;
        padding: .7rem .9rem;
        font-size: 1.05rem;
    }

    /* Actions en pied d'écran, au-dessus de la barre d'accueil iOS. */
    html body .navbar.mobile .nav-end.public {
        flex-direction: column;
        gap: 10px;
        height: auto;
        margin-top: auto;
        padding: 28px 0 calc(20px + env(safe-area-inset-bottom));
    }
    html body .navbar.mobile .nav-end .nav-item--desktop { display: none !important; }
    html body .navbar.mobile .nav-end .btn {
        justify-content: center;
        min-height: 52px;
        border-radius: 14px;
        font-size: 1rem;
    }
    html body .navbar.mobile .nav-end .btn-primary-blue {
        background: transparent;
        color: var(--primary-blue);
        border: 1.5px solid rgba(19, 40, 75, .25);
        box-shadow: none;
    }

    /* Entrée en cascade à l'ouverture, sortie groupée à la fermeture. */
    html body .navbar.mobile.open .nav-main > *,
    html body .navbar.mobile.open .nav-end { animation: navItemIn .5s var(--ease-sheet) both; }
    html body .navbar.mobile.open .nav-main > :nth-child(1) { animation-delay: .06s; }
    html body .navbar.mobile.open .nav-main > :nth-child(2) { animation-delay: .1s; }
    html body .navbar.mobile.open .nav-main > :nth-child(3) { animation-delay: .14s; }
    html body .navbar.mobile.open .nav-main > :nth-child(4) { animation-delay: .18s; }
    html body .navbar.mobile.open .nav-end { animation-delay: .24s; }
    html body .navbar.mobile.open.is-closing .nav-main > *,
    html body .navbar.mobile.open.is-closing .nav-end { animation: navItemOut .16s ease-in both; }
}

html.nav-ouvert, html.nav-ouvert body { overflow: hidden; }

@media (max-width: 870px) and (prefers-reduced-motion: reduce) {
    html body .navbar.mobile.open,
    html body .navbar.mobile.open .nav-main > *,
    html body .navbar.mobile.open .nav-end { animation: none; }
}

/* ─── Formulaire de démo (#cta-final) : champs sans bordure, état porté par l'ombre ───
   Aucune bordure : au repos un filet intérieur, au focus un anneau orange et son halo.
   Les états ne changent que box-shadow, donc rien ne bouge d'un pixel au focus.
   Hauteur 50 px : le CSS compilé imposait 36 px en !important sous 870 px, sous la
   cible tactile de 44 px. */
html body.v2-redesign #cta-final .beta-form .form-control {
    height: 50px !important;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background-color: hsla(0, 0%, 100%, .07);
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .1);
    color: #fff;
    font-size: 16px !important;
    caret-color: var(--primary-orange, #fc8822);
    transition: box-shadow .2s ease, background-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
html body.v2-redesign #cta-final .beta-form select.form-control { padding-right: 44px; }
html body.v2-redesign #cta-final .beta-form textarea.form-control {
    height: auto !important;
    min-height: 104px;
    padding: 14px 16px;
}
html body.v2-redesign #cta-final .beta-form .form-control::placeholder {
    font-size: 15px;
    color: hsla(0, 0%, 100%, .32);
    opacity: 1;
}
html body.v2-redesign #cta-final .beta-form .form-control:hover { box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .18); }
html body.v2-redesign #cta-final .beta-form .form-control:focus {
    border: 0;
    outline: none;
    background-color: hsla(0, 0%, 100%, .1);
    box-shadow:
        0 0 0 1.5px rgba(252, 136, 34, .95),
        0 0 0 5px rgba(252, 136, 34, .18),
        0 8px 28px -8px rgba(252, 136, 34, .45);
}
html body.v2-redesign #cta-final .beta-form .form-control:user-invalid {
    box-shadow: 0 0 0 1.5px rgba(248, 113, 113, .9), 0 0 0 5px rgba(248, 113, 113, .15);
}
html body.v2-redesign #cta-final .beta-form label {
    margin-bottom: 7px;
    font-size: .85rem;
    color: hsla(0, 0%, 100%, .85);
}
html body.v2-redesign #cta-final .beta-form .form-row { margin-bottom: 16px; }
html body.v2-redesign #cta-final .beta-form .form-row--split { gap: 16px; }
html body.v2-redesign #cta-final .beta-form .btn {
    min-height: 54px;
    border-radius: 14px;
    font-size: 1.02rem;
}

@media (max-width: 640px) {
    html body.v2-redesign #cta-final .container-section { padding-left: 16px; padding-right: 16px; }
    html body.v2-redesign #cta-final .beta-form { padding: 24px 18px 20px; border-radius: 22px; }
}

/* ─── Modale de contact : panneau bas sur mobile, à portée du pouce ─── */
#contactModal .modal-content { border-radius: 20px; padding: 8px 4px 4px; }
#contactModal .modal-header { border-bottom: 0; }
#contactModal .modal-header h4 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--primary-blue, #13284b); }
#contactModal .modal-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(19, 40, 75, .06);
    color: var(--primary-blue, #13284b);
    font-size: 1.5rem;
    line-height: 1;
}
#contactModal .modal-buttons { gap: 10px; }
#contactModal .btn-contact { min-height: 54px; border-radius: 14px; font-weight: 600; }
#contactModal .btn-contact[data-contact="calendly"] { order: -1; background: var(--orange-gradient); }
#contactModal .btn-contact[data-contact="email"] {
    background: transparent;
    color: var(--primary-blue, #13284b);
    box-shadow: inset 0 0 0 1.5px rgba(19, 40, 75, .2);
}
#contactModal .btn-contact[data-contact="email"]::before { display: none; }

@media (max-width: 640px) {
    #contactModal.modal-open { display: flex; align-items: flex-end; padding: 0; }
    #contactModal.modal-open > .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0;
        padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        opacity: 1;
        transition: transform .38s cubic-bezier(.32, .72, 0, 1);
    }
    #contactModal.modal-open.modal-active > .modal-content { transform: none; }
    /* Poignée : le geste de panneau bas se lit avant le texte. */
    #contactModal .modal-content::before {
        content: "";
        display: block;
        width: 40px;
        height: 5px;
        margin: 0 auto 6px;
        border-radius: 3px;
        background: rgba(19, 40, 75, .15);
    }
}

/* ─── Barre d'action mobile (footer.php, landing.js) ───
   Flotte au-dessus de la barre d'accueil iOS ; sous la navbar (1000) et les modales (1050). */
.barre-mobile,
.barre-mobile[hidden],
.barre-mobile__sommaire[hidden],
.barre-lecture[hidden] { display: none !important; }

@media (max-width: 870px) {
    .barre-mobile {
        display: flex !important;
        gap: 8px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 990;
        padding: 8px;
        border-radius: 18px;
        background: rgba(237, 229, 225, .82);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        box-shadow: 0 12px 32px -10px rgba(19, 40, 75, .35), inset 0 0 0 1px hsla(0, 0%, 100%, .55);
        opacity: 0;
        transform: translateY(calc(100% + 24px));
        pointer-events: none;
        transition: transform .42s cubic-bezier(.32, .72, 0, 1), opacity .3s ease;
    }
    .barre-mobile.is-visible { opacity: 1; transform: none; pointer-events: auto; }
    .barre-mobile .barre-mobile__cta {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        margin: 0;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
    }
    .barre-mobile__sommaire {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 16px;
        border: 0;
        border-radius: 12px;
        background: rgba(19, 40, 75, .07);
        color: var(--primary-blue, #13284b);
        font-family: "Plus Jakarta Sans", sans-serif;
        font-size: .95rem;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
    }

    /* Fil de progression de lecture (articles). */
    .barre-lecture {
        position: fixed;
        top: env(safe-area-inset-top);
        left: 0;
        right: 0;
        z-index: 1001;
        height: 3px;
        background: var(--orange-gradient, #fc8822);
        transform: scaleX(0);
        transform-origin: 0 50%;
        pointer-events: none;
    }

    /* Sommaire d'article en panneau bas : la colonne existante, déplacée. */
    body.blog-v2 .blog-sidebar-v2 {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        width: auto;
        margin: 0;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s;
    }
    body.blog-v2 .blog-sidebar-v2.is-ouvert {
        transform: none;
        visibility: visible;
        transition: transform .42s cubic-bezier(.32, .72, 0, 1);
    }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__inner {
        position: relative;
        top: auto;
        max-height: 75vh;
        max-height: 75dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px 22px calc(20px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(19, 40, 75, .18);
    }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__inner::before {
        content: "";
        display: block;
        width: 40px;
        height: 5px;
        margin: 0 auto 14px;
        border-radius: 3px;
        background: rgba(19, 40, 75, .15);
    }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__link { padding: 6px 0; font-size: 1rem; }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__sub-link { padding: 5px 0; font-size: .9rem; }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__sub::before { top: 13px; }
    body.blog-v2 .blog-sidebar-v2 .blog-sidebar-v2__cta { display: none; }
    .sommaire-fond {
        position: fixed;
        inset: 0;
        z-index: 1055;
        background: rgba(15, 23, 42, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }
    .sommaire-fond.is-ouvert { opacity: 1; pointer-events: auto; }
}

@media (max-width: 870px) and (prefers-reduced-motion: reduce) {
    .barre-mobile,
    body.blog-v2 .blog-sidebar-v2 { transition: none; }
}

/* ─── Pied de page mobile : une rubrique repliable par titre (landing.js) ─── */
@media (max-width: 640px) {
    body .new_footer_area .footer-column h3[role="button"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 !important;
        padding: 16px 2px;
        border-top: 1px solid rgba(19, 40, 75, .08);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body .new_footer_area .footer-column h3[role="button"]::after {
        content: "";
        width: 8px;
        height: 8px;
        margin: -4px 4px 0 0;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        opacity: .45;
        transform: rotate(45deg);
        transition: transform .3s ease;
    }
    body .new_footer_area .footer-column h3[role="button"].is-ouvert::after { margin-top: 4px; transform: rotate(-135deg); }
    /* Rubriques jointives : l'écart de grille (32 px) séparait des titres repliés. */
    body .new_footer_area .footer-column:not(.footer-column--brand) { margin-top: -32px; }
    body .new_footer_area .footer-column--brand { margin-bottom: 32px; }
    body .new_footer_area .footer-column:last-child .f_list:last-child { border-bottom: 1px solid rgba(19, 40, 75, .08); }
    body .new_footer_area .footer-column h3[role="button"] + .f_list { display: none; }
    body .new_footer_area .footer-column h3[role="button"].is-ouvert + .f_list { display: block; padding: 0 2px 14px; }
    body .new_footer_area .footer-column h3[role="button"] + .f_list li { margin-bottom: 0; }
    body .new_footer_area .footer-column h3[role="button"] + .f_list li a { display: block; padding: 8px 0; font-size: 15px; }
}

/* ─── Titre de page (h1) : une seule échelle pour tout le site ───
   Trois échelles coexistaient (accueil 22/48 px, pages produit 26/35 px, blog et légal
   28/45 px en graisse 800). !important : chaque gabarit la fixait par un sélecteur d'id. */
body.v2-redesign h1 {
    font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em;
}
