/*
Theme Name: carteDigitale
Version: 7.0
Description: Le design complet High-End (Hero, Builder, Features, Reviews)
*/


html {
    /* On laisse le scroll visible sur HTML pour que sticky fonctionne */
    overflow-x: clip; 
    /* scroll-behavior: smooth; */
    scroll-padding-top: calc(var(--header-height) + 10px);
}

body {
    --pc-body-top: 0px;
    max-width: 100%;
    overflow-x: clip; /* Evite de créer un conteneur de scroll qui casse position: sticky. */
    overflow-y: visible;
    position: relative;
}

#hero, #features, #digitize, #builder, #examples, #reviews, #faq {
  scroll-margin-top: calc(var(--header-height) - 200px);
}



/* =========================================
   FIX OBLIGATOIRE POUR LE STICKY
   ========================================= */

/* 1. Débloque le Sticky : On autorise le dépassement sur le conteneur principal */
#page, .site, .site-content {
    overflow: visible !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. Supprime les espaces blancs parasites en haut de page */
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: var(--pc-body-top) 0 0;
}

/* :root — alias des tokens canoniques (cf. design-tokens.css)
   Les noms de variables sont conservés pour compatibilité avec les
   sélecteurs existants. Pour modifier une couleur, éditer design-tokens.css. */
:root {

    /* STRUCTURE / HEADER */
    --language-bar-height: var(--pc-language-bar-height);
    --header-main-height:  var(--pc-header-main-height);
    --header-height:       var(--header-main-height);

    /* COULEURS */
    --bg-body:    var(--pc-slate-75);
    --bg-card:    var(--pc-white);
    --text-main:  var(--pc-slate-800);
    --text-light: var(--pc-slate-500);

    --primary: var(--pc-blue-600);
    --accent:  var(--pc-violet-500);

    /* FORMS / INPUTS */
    --input-bg:     var(--pc-white);
    --input-border: var(--pc-slate-200);
    --input-focus:  var(--primary);
    --input-radius: var(--pc-radius-md);

    /* GRADIENTS */
    --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    --btn-gradient:   linear-gradient(90deg, var(--pc-indigo-600) 0%, var(--pc-violet-600) 100%);
    --text-gradient:  linear-gradient(90deg, var(--pc-slate-800) 0%, var(--pc-blue-500) 100%);

    /* UI */
    --shadow-soft:  var(--pc-shadow-soft);
    --shadow-hover: var(--pc-shadow-hover);
    --radius:       var(--pc-radius-xl);
    --font-head:    var(--pc-font-head);
    --font-body:    var(--pc-font-body);

    /* SYSTÈME DE DESIGN (TYPO & SPACING) */
    --home-hero-title-desktop:    clamp(3.35rem, 4.55vw, 5.05rem);
    --home-hero-title-mobile:     clamp(2.825rem, 12vw, 3.725rem);
    --home-hero-copy-desktop:     clamp(1.04rem, 1.08vw, 1.14rem);
    --home-hero-copy-mobile:      1rem;
    --home-section-title-desktop: clamp(3.05rem, 4.05vw, 4.1rem);
    --home-section-title-mobile:  clamp(2.3rem, 9.2vw, 3.05rem);
    --home-section-copy-desktop:  clamp(1.06rem, 1.08vw, 1.16rem);
    --home-section-copy-mobile:   1rem;
    --home-card-title-desktop:    clamp(1.14rem, 1.2vw, 1.3rem);
    --home-card-title-mobile:     1.08rem;
    --home-card-copy-desktop:     0.96rem;
    --home-card-copy-mobile:      0.93rem;
    --home-small-title-desktop:   0.96rem;
    --home-small-title-mobile:    0.92rem;
    --home-small-copy-desktop:    0.88rem;
    --home-small-copy-mobile:     0.86rem;
    --home-eyebrow-size:          0.78rem;

    --home-hero-title-size:       var(--home-hero-title-desktop);
    --home-hero-copy-size:        var(--home-hero-copy-desktop);
    --home-section-title-size:    var(--home-section-title-desktop);
    --home-section-copy-size:     var(--home-section-copy-desktop);
    --home-card-title-size:       var(--home-card-title-desktop);
    --home-card-copy-size:        var(--home-card-copy-desktop);
    --home-small-title-size:      var(--home-small-title-desktop);
    --home-small-copy-size:       var(--home-small-copy-desktop);

    --fs-hero-desktop:    var(--home-hero-title-desktop);
    --fs-section-desktop: var(--home-section-title-desktop);
    --fs-hero-mobile:     var(--home-hero-title-mobile);
    --fs-section-mobile:  var(--home-section-title-mobile);

    --spacing-section-desktop: 100px;
    --spacing-section-mobile:  60px;

    --section-head-max-width:    800px;
    --section-head-gap:          20px;
    --section-head-bottom:       60px;
    --section-copy-max-width:    600px;
    --section-badge-padding-y:   8px;
    --section-badge-padding-x:   16px;

}

/* ==========================================================================
   MOTEUR TYPOGRAPHIQUE GLOBAL (TITRES UNIFIÉS)
   ========================================================================== */

/* 1. Configuration Commune (Police, Graisse, Marge) */
.hero-headline,
.section-title,
.section-title-dark,
.builder-heading,
.title-digitize,
.wycd-title {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* 2. Application Desktop - HERO (H1) */
.hero-headline {
    font-size: var(--home-hero-title-size);
    line-height: 1.1;
    letter-spacing: -1.5px;
    /* Le Hero garde son alignement par défaut (souvent gauche ou split) */
}

.hero-subtext {
    font-size: var(--home-hero-copy-size);
}

/* 3. Application Desktop - SECTIONS (H2) - ALIGNEMENT GAUCHE FORCÉ */
.section-title,
.section-title-dark,
.builder-heading,
.title-digitize,
.wycd-title {
    font-size: var(--home-section-title-size);
    text-align: left;
    width: 100%;
}

/* 4. Sous-titres & Descriptions - ALIGNEMENT GAUCHE FORCÉ */
.section-copy {
    margin: 0;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: var(--section-copy-max-width);
    padding: var(--section-copy-padding-y, 16px) var(--section-copy-padding-x, 20px);
    border: 1px solid var(--section-copy-border, rgba(148, 163, 184, 0.22));
    border-radius: var(--section-copy-radius, 18px);
    background: var(--section-copy-surface, rgba(255, 255, 255, 0.82));
    color: var(--section-copy-color, #3f4f66);
    font-family: var(--font-body);
    font-size: var(--home-section-copy-size);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0;
    text-wrap: pretty;
    box-shadow: var(--section-copy-shadow, 0 14px 34px rgba(15, 23, 42, 0.045));
}

.section-copy strong {
    color: var(--section-copy-strong-color, var(--pc-slate-950));
    font-weight: 900;
}

.main-wrapper :is(
    .feature-box h3,
    .feat-content .feat-title,
    #b2b-teams .teams-copy h3
) {
    font-size: var(--home-card-title-size);
}

.main-wrapper :is(
    .feature-box p,
    .feat-content p,
    #b2b-teams .teams-copy p,
    #b2b-teams .teams-cta__text,
    .wycd-footer-cta__lead,
    .examples-cta-overlay__lead
) {
    font-size: var(--home-card-copy-size);
}

.main-wrapper :is(
    .feat-item-premium .feat-item-title,
    .nfc-feat-title,
    .mat-name
) {
    font-size: var(--home-small-title-size);
}

.main-wrapper :is(
    .feat-item-premium p,
    .nfc-feat-desc,
    .mat-desc
) {
    font-size: var(--home-small-copy-size);
}

/* ========================================================================== 
   SYSTÈME CENTRALISÉ: EN-TÊTE DE SECTION
   ========================================================================== */
.section-head {
    max-width: var(--section-head-max-width);
    margin: 0 0 var(--section-head-bottom);
    text-align: left;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 var(--section-head-gap);
    padding: var(--section-badge-padding-y) var(--section-badge-padding-x);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.15;
}

.section-badge i {
    line-height: 1;
}

.section-heading {
    margin: 0 0 var(--section-head-gap);
    text-align: left;
}

/* ==========================================================================
   BOUTONS CTA
   --------------------------------------------------------------------------
   Le style visuel des boutons d'action est centralise dans assets/css/buttons.css.
   Ce fichier conserve uniquement les liens textuels historiques.
   ========================================================================== */

/* --- Lien secondaire --- */
.btn-premium-link {
    position: relative;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.btn-premium-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.35s ease;
}

.btn-premium-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   MOTEUR D'ESPACEMENT GLOBAL (SECTION SPACING)
   ========================================================================== */

/* Applique le padding et nettoie les marges sur TOUTES les sections */
.section-features-grid,
.section-builder-light,
.section-digitize-pro,
.nfc-section,
.section-examples-light,
.section-reviews-scroll,
.section-faq-light {
    padding-top: var(--spacing-section-desktop) !important;
    padding-bottom: var(--spacing-section-desktop) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ==========================================================================
   RESPONSIVE GLOBAL (TABLETTE & MOBILE < 992px)
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --home-hero-title-size:    var(--home-hero-title-mobile);
        --home-hero-copy-size:     var(--home-hero-copy-mobile);
        --home-section-title-size: var(--home-section-title-mobile);
        --home-section-copy-size:  var(--home-section-copy-mobile);
        --home-card-title-size:    var(--home-card-title-mobile);
        --home-card-copy-size:     var(--home-card-copy-mobile);
        --home-small-title-size:   var(--home-small-title-mobile);
        --home-small-copy-size:    var(--home-small-copy-mobile);
    }
    
    
    /* 1. HERO : L'exception (Reste centré pour l'impact visuel) */
    .hero-headline {
        font-size: var(--home-hero-title-size);
        text-align: center !important;
        display: block !important; /* Force le titre à redevenir une boîte */
        width: 100% !important;    /* Prend toute la largeur de l'écran */
        max-width: 100vw;          /* Empêche le dépassement */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px;           /* Espace de sécurité sur les côtés */
        box-sizing: border-box;    /* Inclut le padding dans la largeur */
    }
    
    .hero-subtext {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 2. TOUS LES AUTRES TITRES : Alignés à GAUCHE sur mobile aussi */
    .section-title,
    .section-title-dark,
    .builder-heading,
    .title-digitize,
    .wycd-title {
        font-size: var(--home-section-title-size);
        line-height: 1.25;
        text-align: left !important;
        letter-spacing: -0.5px;
        width: 100%;
    }

    /* 3. SOUS-TITRES & BADGES : Alignés à GAUCHE */
    .section-copy {
        text-align: left !important;
        margin-left: 0 !important;
        padding: 14px 16px;
        font-size: var(--home-section-copy-size);
        line-height: 1.64;
    }

    .section-badge {
        justify-content: flex-start !important; /* Pour les flexbox (badges) */
        align-items: center !important;
        font-size: 0.78rem;
        letter-spacing: 0.8px;
        padding: 7px 14px;
    }

    .section-head {
        --section-head-gap: 16px;
        --section-copy-max-width: 100%;
        margin-bottom: 38px;
    }

    :root {
        --pc-button-primary-padding-x: 29px;
        --pc-button-primary-font-size: 1.1rem;
    }

    /* 4. Espacement Mobile Harmonisé (Inchangé) */
    .section-features-grid,
    .section-builder-light,
    .section-digitize-pro,
    .nfc-section,
    .section-examples-light,
    .section-reviews-scroll,
    .section-faq-light {
        padding-top: var(--spacing-section-mobile) !important;
        padding-bottom: var(--spacing-section-mobile) !important;
    }
}




/* --- CONFIGURATION LENIS --- */

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- ANIMATIONS GSAP --- */

/* Le cadre qui empêche l'image de dépasser */
.parallax-wrapper {
    overflow: hidden;
    position: relative;
    height: 100%;
    display: block; /* Sécurité layout */
}

/* L'image zoomée pour avoir de la marge de mouvement */
.gsap-parallax-img {
    height: 130% !important; /* Zoom à 130% pour laisser la place au mouvement */
    width: 100%;
    object-fit: cover;
    transform-origin: center center;
    display: block;
}

/* Optionnel : Si tu veux que tes textes soient invisibles avant que JS ne charge */
.gsap-fade-up {
    /* opacity: 0; */ /* Décommenter si tu vois un "flash" au chargement */
}


/* =========================================
   FIX FONT AWESOME 6 (ANTI-CARRÉS VIDES)
   ========================================= */
/* 1. On force le moteur de rendu pour la netteté */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* 2. On force la famille "Free" et le poids GRAS (900) pour les icônes standards */
.fa, .fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* 3. On force la famille "Free" et le poids NORMAL (400) pour les icônes Regular */
.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* 4. On force la famille "Brands" pour les marques (Facebook, Instagram, etc.) */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}




body {
    background-color: var(--bg-body);
    background-image: none;
    color: var(--text-main);
    font-family: var(--font-body);
}

h1, h2, h3 { color: var(--text-main); }
p { color: var(--text-light); }


/* =========================================
   FORMULAIRES & INPUTS (DESIGN PRO SAAS)
   ========================================= */

/* 1. Reset & Style de base des champs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 2px solid var(--input-border); /* Bordure solide mais discrète */
    border-radius: var(--input-radius);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* Ombre à peine visible */
    appearance: none;
    outline: none;
}

/* 2. État Focus (Quand on clique dedans) */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus); /* Ton bleu royal */
    background-color: #fff;
    box-shadow: none;
    transform: translateY(-1px);
}

/* 3. Labels (Noms des champs) */
label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-head); /* Space Grotesk pour les titres */
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* 4. Textarea (Zone de texte) */
textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

/* 5. Placeholder (Texte d'aide grisé) */
::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* =========================================
   OVERRIDES WOOCOMMERCE (POUR QUE WOO OBÉISSE)
   ========================================= */

/* Nettoyage des marges WooCommerce */
.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 24px; /* Espace propre entre les champs */
}

/* Checkboxes & Radios (Alignement parfait) */
.woocommerce form .form-row .input-checkbox {
    display: inline-block;
    width: auto;
    margin-right: 10px;
    position: relative;
    top: 2px;
}

/* Boutons d'action  */
button.button,
input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--text-main); /* Sombre par défaut pour contraster */
    color: white;
    padding: 16px 32px;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 50px; /* Pill shape comme tes autres boutons */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Pleine largeur sur mobile/checkout */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hover des boutons */
button.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--primary); /* Devient bleu royal au survol */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

/* Cas spécifique : Bouton "Commander" (Checkout) -> Gradient */
#place_order {
    background: var(--btn-gradient) !important;
    font-size: 1.1rem;
}

/* UTILITAIRES GLASSMORPHISM */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
}

/* BOUTONS STYLE IMAGE */
.btn-gradient {
    background: var(--btn-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    transition: 0.3s;
    border: none;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}










/* ==========================================================================
   HEADER
   Styles dans assets/css/header.css
   ========================================================================== */

/* =======================================================================================================================================
   FOOTER
   ========================================================================================================================================= */
.site-footer {
    position: relative;
    padding: 96px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        #07101f;
    background-size: 72px 72px, 72px 72px, auto;
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pc-pink-500) 0 18%, #ffffff 18% 19%, var(--pc-blue-600) 19% 54%, var(--pc-slate-900) 54% 76%, var(--pc-blue-600) 76% 100%);
}

.site-footer::after {
    content: 'PUBLICARD';
    position: absolute;
    right: -2vw;
    bottom: 42px;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--font-head);
    font-size: clamp(6rem, 14vw, 13rem);
    font-weight: 950;
    line-height: 0.8;
    letter-spacing: -0.05em;
    pointer-events: none;
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(210px, 0.78fr) minmax(330px, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: stretch;
}

.footer-col {
    min-width: 0;
}

.brand-col {
    max-width: 420px;
}

.footer-brand-wrapper {
    margin-bottom: 22px;
}

.footer-brand-wrapper .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-brand-wrapper .custom-logo-link img {
    width: auto;
    max-width: 178px;
    max-height: 68px;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-site-title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.footer-desc,
.newsletter-text {
    max-width: 370px;
    margin: 0;
    color: #aab7ca;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.72;
}

.newsletter-text {
    margin: 0 0 18px;
    color: #9aa8bd;
}

.footer-col h4 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.footer-col h4::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--pc-pink-500);
}

.footer-col ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #9aa8bd;
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col ul li a::before {
    content: '';
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.52);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
    color: #ffffff;
    outline: none;
    transform: translateX(3px);
}

.footer-col ul li a:hover::before,
.footer-col ul li a:focus-visible::before {
    background: var(--pc-blue-600);
    transform: scale(1.35);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 26px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    color: #ffffff;
    outline: none;
    transform: translateY(-3px);
}

.newsletter-col {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.footer-reclamation {
    margin: 24px 0 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: #9aa8bd;
    font-size: 0.86rem;
    line-height: 1.55;
}

.footer-reclamation a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.footer-reclamation a:hover,
.footer-reclamation a:focus-visible {
    color: #93c5fd;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    margin-top: 62px;
    padding-top: 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #8d9caf;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

.footer-bottom strong {
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    }

    .newsletter-col {
        grid-column: 1 / -1;
        max-width: 620px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 64px 0 30px;
    }

    .footer-container,
    .footer-bottom {
        width: min(100% - 28px, 1240px);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: left;
    }

    .brand-col,
    .newsletter-col,
    .footer-desc,
    .newsletter-text {
        max-width: none;
    }

    .footer-brand-wrapper .custom-logo-link {
        justify-content: flex-start;
    }

    .footer-brand-wrapper .custom-logo-link img {
        max-width: 152px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .newsletter-col {
        padding: 22px;
        border-radius: 22px;
    }

    .footer-col ul li a {
        justify-content: flex-start;
    }

    .footer-info-col {
        text-align: center;
    }

    .footer-info-col h4 {
        justify-content: center;
    }

    .footer-info-col ul {
        justify-items: center;
    }

    .footer-info-col ul li a {
        justify-content: center;
    }

    .footer-info-col .footer-reclamation {
        text-align: center;
    }

    .footer-col ul li a:hover,
    .footer-col ul li a:focus-visible {
        transform: none;
    }

    .footer-bottom {
        margin-top: 42px;
    }
}








/* ================================================================================
   PAGE 404
   ================================================================================ */

.error-404-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-height) - 46px) 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #0F172A;
}

.error-404-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- SCENE ILLUSTRATION ---- */
.error-404-scene {
    position: relative;
    width: 224px;
    height: 240px;
    margin-bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sceneIn 1s ease both;
}
@keyframes sceneIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Grand 404 arriere-plan */
.error-404-bignum {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-head);
    font-size: 19.2rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(148, 163, 184, 0.1);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ---- TELEPHONE ---- */
.error-phone {
    width: 104px;
    height: 192px;
    border-radius: 20px;
    border: 3px solid #334155;
    background: #0F172A;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.error-phone__notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 10px;
    background: #1E293B;
    border-radius: 0 0 8px 8px;
    z-index: 20;
}

.error-phone__screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ondes radar dans le tel */
.error-radar-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: radarPing 2.5s ease-out infinite;
}
.r1 { animation-delay: 0s; }
.r2 { animation-delay: 0.8s; }
.r3 { animation-delay: 1.6s; }
@keyframes radarPing {
    0% { width: 20px; height: 20px; opacity: 0.8; }
    100% { width: 180px; height: 180px; opacity: 0; }
}

/* Icone centrale ecran */
.error-phone__icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    font-size: 1.2rem;
    z-index: 5;
}

.error-phone__label {
    margin-top: 12px;
    font-family: var(--font-head);
    color: #64748B;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 5;
}

/* ---- CARTE PERDUE ---- */
.error-lost-card {
    position: absolute;
    top: 30%;
    right: -10px;
    width: 80px;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    transform: rotate(12deg);
    animation: cardDrift 6s ease-in-out infinite;
    opacity: 0.85;
}
@keyframes cardDrift {
    0%, 100% { transform: rotate(12deg) translate(0, 0); opacity: 0.85; }
    50% { transform: rotate(8deg) translate(12px, -14px); opacity: 0.6; }
}

.error-lost-card__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 0.75rem;
}

.error-lost-card__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.error-lost-card__lines span {
    display: block;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
}
.error-lost-card__lines span:nth-child(1) { width: 100%; }
.error-lost-card__lines span:nth-child(2) { width: 70%; }
.error-lost-card__lines span:nth-child(3) { width: 45%; }

/* ---- LIEN BRISE (SVG) ---- */
.error-broken-link {
    position: absolute;
    top: 50%;
    right: -4px;
    width: 100px;
    height: 30px;
    transform: translateY(-50%) rotate(-10deg);
    z-index: 4;
    opacity: 0.7;
}

/* ---- BADGE 404 ---- */
.error-404-badge {
    position: absolute;
    top: 8px;
    left: 20px;
    background: #EF4444;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 16px -4px rgba(239, 68, 68, 0.4);
    z-index: 30;
    animation: badgeBounce 4s ease-in-out infinite;
}
@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* ---- TEXTE ---- */
.error-404-body {
    animation: fadeUp 0.8s ease both 0.3s;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #F1F5F9;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.error-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #94A3B8;
    margin-bottom: 14px;
    line-height: 1.7;
    max-width: 816px;
    margin-left: auto;
    margin-right: auto;
}
.error-text strong {
    color: #CBD5E1;
    font-weight: 600;
}

/* ---- ACTIONS / BOUTONS 404 ---- */
.error-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Style de base des liens-boutons 404 */
.error-404-container .error-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.error-404-container .error-actions .btn-primary {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

.error-404-container .error-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
}

/* ---- MOBILE RESPONSIVE 404 ---- */
@media (max-width: 768px) {
    .error-404-container {
        display: flex !important;
        align-items: flex-start !important; /* Décalage vers le bas sur mobile */
        justify-content: center !important;
        min-height: 100vh !important;
        padding: calc(var(--header-height) + 10px) 15px 80px !important; 
        overflow: hidden;
    }
    .error-404-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important; /* On passe en block pour le flux naturel */
    }
    
    .error-404-scene {
        margin: 0 auto 40px !important;
        transform: scale(0.9);
    }

    .error-404-body {
        width: 100% !important;
        text-align: center !important;
    }

    .error-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* CENTRE LES ENFANTS */
        justify-content: center !important;
        width: 100% !important;
        margin: 40px 0 0 !important;
        gap: 15px !important;
        padding: 0 !important;
    }

    /* Force le bouton à être un bloc centré de largeur fixe ou 100% */
    .error-404-container .error-actions a {
        width: 100% !important;
        max-width: 280px !important; /* Largeur confortable sur mobile */
        margin: 0 auto !important; /* Centrage horizontal absolu */
        display: flex !important;
        float: none !important;
        position: relative !important;
        left: 0 !important;
    }
}

/* ==========================================================================================================================================================
   COMPLIANZ – MANAGE CONSENT (bloc footer)
   ========================================================================================================================================================== */




/* Les styles des pages de contenu ont ete sortis dans assets/css/content-pages.css. */
@media not all {
   /* =========================================
   PAGES LÉGALES (Mentions, CGV, CGU, Privacy)
   ========================================= */
.legal-page-wrapper {
    width: min(calc(100% - 40px), 1250px);
    margin: 0 auto;
    padding: calc(var(--pc-header-shell, 86px) + 64px) 0 var(--spacing-section-desktop);
    box-sizing: border-box;
}

.legal-card {
    width: min(100%, 980px);
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.legal-card h1 {
    margin: 0 0 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--input-border);
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.legal-card h2 {
    margin: 42px 0 16px;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.22;
}

.legal-card h3 {
    margin: 28px 0 12px;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.28;
}

.legal-card p,
.legal-card li {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.72;
}

.legal-card p {
    margin: 0 0 15px;
}

.legal-card ul,
.legal-card ol {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding-left: 22px;
}

.legal-card strong {
    color: var(--text-main);
    font-weight: 750;
}

.legal-card a {
    color: var(--primary);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-card a:hover,
.legal-card a:focus-visible {
    color: var(--pc-blue-700);
}

@media (max-width: 768px) {
    .legal-page-wrapper {
        width: min(calc(100% - 28px), 1250px);
        padding-top: calc(var(--pc-header-shell, 86px) + 38px);
        padding-bottom: var(--spacing-section-mobile);
    }

    .legal-card {
        padding: 26px 20px;
        border-radius: 18px;
    }
}


/* =========================================
   À PROPOS
   ========================================= */
.about-new-design {
    background: var(--bg-body);
    overflow: hidden;
}

.about-new-design .container {
    width: 100%;
    max-width: 1250px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    box-sizing: border-box;
}

.about-hero {
    padding: calc(var(--pc-header-shell, 86px) + 72px) 0 96px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.about-hero-inner {
    max-width: 860px;
}

.about-new-design .badge-premium {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 24px;
    padding: var(--section-badge-padding-y) var(--section-badge-padding-x);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--pc-radius-pill);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.about-new-design .hero-big-title {
    max-width: 900px;
    margin: 0 0 28px;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: clamp(2.7rem, 6vw, 4.4rem);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: 0;
}

.about-new-design .gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-new-design .hero-subtitle {
    max-width: 720px;
    margin: 0;
    color: var(--text-light);
    font-size: 1.18rem;
    line-height: 1.7;
}

.about-mission,
.about-solutions,
.about-adn {
    padding: var(--spacing-section-desktop) 0;
}

.about-mission {
    background: #ffffff;
}

.about-new-design .mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(44px, 7vw, 84px);
    align-items: center;
}

.about-new-design .title-decorated,
.about-new-design .section-title,
.about-new-design .cta-glass-box h2 {
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: var(--fs-section-desktop);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0;
}

.about-new-design .title-decorated {
    margin: 0 0 28px;
}

.about-new-design .title-decorated::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 18px;
    border-radius: var(--pc-radius-pill);
    background: var(--primary);
}

.about-new-design .mission-text p,
.about-new-design .sol-card p {
    color: var(--text-light);
    font-size: 1.04rem;
    line-height: 1.72;
}

.about-new-design .mission-text p {
    margin: 0 0 18px;
}

.about-new-design .mission-text p:last-child {
    margin-bottom: 0;
}

.about-new-design .mission-stats {
    display: grid;
    gap: 18px;
}

.about-new-design .stat-card {
    padding: 36px 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--bg-body);
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.about-new-design .stat-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.about-new-design .stat-num {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5vw, 3.5rem);
    font-weight: 850;
    line-height: 1;
}

.about-new-design .stat-label {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-solutions {
    background: #f8fafc;
}

.about-new-design .section-intro {
    max-width: var(--section-head-max-width);
    margin: 0 0 var(--section-head-bottom);
    text-align: left;
}

.about-new-design .solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.about-new-design .sol-card {
    min-width: 0;
    padding: 32px 26px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.about-new-design .sol-card:hover {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.about-new-design .sol-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 1.55rem;
}

.about-new-design .sol-card h3 {
    margin: 0 0 12px;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.22;
}

.about-new-design .sol-card p {
    margin: 0;
}

.about-adn {
    background: #ffffff;
}

.about-new-design .adn-wrapper {
    padding: clamp(42px, 7vw, 76px);
    border-radius: var(--radius);
    background: var(--pc-slate-900);
    color: #ffffff;
    box-shadow: 0 34px 90px -34px rgba(15, 23, 42, 0.52);
}

.about-new-design .adn-header {
    margin-bottom: 42px;
}

.about-new-design .adn-header .section-title {
    color: #ffffff;
}

.about-new-design .adn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.about-new-design .adn-item {
    text-align: left;
}

.about-new-design .adn-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 20px;
    font-size: 1.65rem;
}

.about-new-design .adn-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.about-new-design .adn-icon.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.about-new-design .adn-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.about-new-design .adn-item h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.2;
}

.about-new-design .adn-item p {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
}

.about-cta {
    padding: 34px 0 var(--spacing-section-desktop);
    background: #ffffff;
}

.about-new-design .cta-glass-box {
    padding: clamp(46px, 8vw, 82px) 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    text-align: center;
}

.about-new-design .cta-glass-box h2 {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #ffffff;
}

.about-new-design .cta-glass-box p {
    max-width: 640px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.7;
    opacity: 0.9;
}

.about-new-design .cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.about-new-design .btn-primary-new,
.about-new-design .btn-secondary-new {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: var(--pc-radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.about-new-design .btn-primary-new {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--primary);
}

.about-new-design .btn-secondary-new {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.about-new-design .btn-primary-new:hover,
.about-new-design .btn-secondary-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

@media (max-width: 1100px) {
    .about-new-design .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .about-new-design .mission-grid,
    .about-new-design .adn-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: calc(var(--pc-header-shell, 86px) + 42px) 0 62px;
    }

    .about-mission,
    .about-solutions,
    .about-adn {
        padding: var(--spacing-section-mobile) 0;
    }

    .about-new-design .hero-big-title,
    .about-new-design .title-decorated,
    .about-new-design .section-title,
    .about-new-design .cta-glass-box h2 {
        font-size: var(--fs-section-mobile);
    }

    .about-new-design .solutions-grid {
        grid-template-columns: 1fr;
    }

    .about-new-design .stat-card,
    .about-new-design .sol-card {
        padding: 28px 22px;
    }

    .about-new-design .btn-primary-new,
    .about-new-design .btn-secondary-new {
        width: 100%;
    }
}
}

/*Cacher message avis*/
.review-success-modal { display: none; }
.review-success-modal.active { display: flex; }

/* =========================================
   SOCIAL AUTH SUCCESS OVERLAY (Google login)
   ========================================= */
.co-social-auth-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: socialAuthFadeIn 0.4s ease;
}
.co-social-auth-success-overlay.dismissing {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.co-auth-success-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}
.co-auth-success-ring {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.co-auth-success-ring::before {
    content: none;
    display: none;
}
.co-auth-success-svg {
    width: 64px;
    height: 64px;
    position: relative;
    z-index: 1;
}
.co-auth-success-svg .circle-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 2.5;
}
.co-auth-success-svg .circle-progress {
    fill: none;
    stroke: #16A34A;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    transform-origin: center;
    animation: successCircleDraw 0.5s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.co-auth-success-svg .checkmark-path {
    fill: none;
    stroke: #16A34A;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: successCheckDraw 0.35s 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.co-auth-success-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F766E;
    opacity: 0;
    animation: successLabelIn 0.4s 0.7s ease forwards;
}
@keyframes socialAuthFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes successCircleDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes successCheckDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes successPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 0.2; }
}
@keyframes successLabelIn {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Standard WordPress comments */
.comments-area {
    max-width: 860px;
    margin: 72px auto 0;
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.comments-title,
.comment-reply-title {
    margin: 0 0 22px;
    color: #111827;
    font-family: var(--font-head, "Space Grotesk", sans-serif);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: 0;
}

.comments-title span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 0.54em;
    font-weight: 700;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #f8fafc;
}

.comment-list .children {
    margin: 16px 0 0 20px;
    padding: 0;
    list-style: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 900;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
}

.comment-metadata,
.comment-awaiting-moderation {
    margin-top: 6px;
    color: #667085;
    font-size: 0.86rem;
    font-weight: 650;
}

.comment-content {
    margin-top: 14px;
    color: #243244;
    font-size: 1rem;
    line-height: 1.7;
}

.comment-content > :first-child {
    margin-top: 0;
}

.comment-content > :last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 14px;
}

.comment-reply-link,
.comment-navigation a {
    color: #1d4ed8;
    font-weight: 850;
    text-decoration: none;
}

.comment-reply-link:hover,
.comment-navigation a:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 850;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background: #ffffff;
    color: #243244;
    font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: rgba(29, 78, 216, 0.48);
    outline: 2px solid rgba(29, 78, 216, 0.45);
    outline-offset: 2px;
    box-shadow: none;
}

.comment-notes,
.logged-in-as {
    color: #667085;
    font-size: 0.94rem;
    font-weight: 650;
}

.btn-submit-comment {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #111827;
    border-radius: 13px;
    background: #111827;
    color: #ffffff;
    font-family: var(--font-head, "Space Grotesk", sans-serif);
    font-weight: 900;
    cursor: pointer;
}

.no-comments {
    margin: 20px 0;
    color: #667085;
    font-weight: 750;
}

@media (max-width: 640px) {
    .comments-area {
        margin-top: 44px;
        padding: 22px;
        border-radius: 16px;
    }

    .comment-list .children {
        margin-left: 10px;
    }
}
