/*
Theme Name: carteDigitale
Version: 7.0
Description: Le design complet High-End (Hero, Builder, Features, Reviews)
*/

/* =========================================
   1. VARIABLES & CORE (STYLE LIGHT / GLASS)
   ========================================= */
   @import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
   html {
    scroll-behavior: smooth;
    /* Sécurité CSS : Si le JS ne se charge pas, ceci empêche le menu de cacher le titre */
    scroll-padding-top: calc(var(--header-height) + 10px); 
}
#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 */
body, html {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Ajustement spécial si la barre admin WordPress est là */
body.admin-bar .header-premium {
    top: 32px !important; /* Le header se colle SOUS la barre admin */
}
@media screen and (max-width: 782px) {
    body.admin-bar .header-premium {
        top: 46px !important; /* Ajustement mobile pour la barre admin */
    }
}


:root {
    
    /* COULEURS */
    --header-height: 70px !important;
    --bg-body: #F4F6F9;       /* Gris bleuté très clair */
    --bg-card: #FFFFFF;       /* Blanc pur */
    --text-main: #1E293B;     /* Bleu nuit profond (pour le texte) */
    --text-light: #64748B;    /* Gris doux */
    
    --primary: #2563EB;       /* Bleu royal */
    --accent: #8B5CF6;        /* Violet soft */
    
    /* FORMS / INPUTS (NOUVEAU) */
    --input-bg: #ffffff;
    --input-border: #E2E8F0;  /* Gris clair neutre et propre */
    --input-focus: var(--primary); /* Reprend le bleu royal au clic */
    --input-radius: 12px;     /* Arrondi pro (légèrement moins rond que les boutons) */

    /* GRADIENTS */
    --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    --btn-gradient: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);
    --text-gradient: linear-gradient(90deg, #1E293B 0%, #3B82F6 100%);
    
    /* UI */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    --radius: 24px;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* =========================================
   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: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    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: 0 0 0 4px rgba(37, 99, 235, 0.15); /* Halo bleu pro */
    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(37, 99, 235, 0.3);
}

/* 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 PREMIUM 3-ZONES (STICKY & ALIGNED)
   ========================================= =================================================================================*/

/* ===== HEADER (DESKTOP OK + MOBILE REORGANISÉ) ===== */
.header-premium{position:fixed;top:0;left:0;width:100%;height:var(--header-height);z-index:9999;background:var(--bg-body);border-bottom:1px solid rgba(0,0,0,.03);transform:translateY(0);opacity:1;will-change:transform,opacity;transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .2s ease,background .3s ease,box-shadow .3s ease,border-color .3s ease,height .3s ease}
body.admin-bar .header-premium{top:32px}
@media screen and (max-width:782px){body.admin-bar .header-premium{top:46px}}
.header-premium.scrolled{height:70px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.05);box-shadow:0 6px 22px rgba(0,0,0,.05)}
.header-premium.is-hidden{transform:translateY(-120%);opacity:0;pointer-events:none}
.header-premium.is-visible{transform:translateY(0);opacity:1;pointer-events:auto}
@media (prefers-reduced-motion:reduce){.header-premium{transition:none!important}}

.header-inner{max-width:1240px;margin:0 auto;padding:0 15px;height:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.header-col{display:flex;align-items:center;height:100%}
.col-left{justify-content:flex-start}
.col-right{justify-content:flex-end;gap:20px}
.col-center{justify-content:center}

/* Desktop: menu visible, burger caché */
.col-center-mobile{display:none}
.col-center-desktop{display:flex}

.brand-link{display:flex;align-items:center;text-decoration:none;color:#0F172A}
.brand-name{font-family:'Space Grotesk',sans-serif;font-weight:800;font-size:1.4rem;letter-spacing:-.5px;white-space:nowrap}
.header-col.col-left .custom-logo-link img{max-width:160px;height:auto;max-height:65px;object-fit:contain;display:block}

.main-nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0;align-items:center}
.main-nav a{font-weight:600;color:#334155;text-decoration:none;padding:10px 0;transition:.25s}
.main-nav a:hover{color:#2563EB}

.login-btn{display:flex;align-items:center;gap:8px;text-decoration:none;color:#0F172A;font-weight:600;font-size:.95rem;white-space:nowrap;transition:.25s}
.login-btn:hover{color:#2563EB}

.cta-btn{background:#0F172A;color:#fff;padding:0 24px;height:46px;border-radius:999px;font-weight:600;font-size:.9rem;text-decoration:none;display:flex;align-items:center;gap:8px;box-shadow:0 6px 18px rgba(15,23,42,.22);transition:.25s;white-space:nowrap}
.cta-btn:hover{transform:translateY(-2px);background:#1E293B;box-shadow:0 10px 28px rgba(15,23,42,.28)}
.header-premium.scrolled .cta-btn{height:38px;font-size:.85rem;padding:0 20px}

/* Visibilité utilitaires (scope header uniquement) */
.header-premium .mobile-only{display:none}
.header-premium .desktop-only{display:flex}
.mobile-menu-only{display:none}

/* Boutons modernes (burger + icônes mobile) */
.burger-btn,.mobile-icon-btn{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.78);border:1px solid rgba(226,232,240,.95);box-shadow:0 12px 30px rgba(2,6,23,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:center;color:#0F172A;transition:transform .18s ease,box-shadow .25s ease,background .25s ease}
.mobile-icon-btn:active,.burger-btn:active{transform:scale(.96)}
.burger-btn{position:relative;cursor:pointer;padding:0;border:1px solid rgba(226,232,240,.95)}
.burger-btn span{position:absolute;left:50%;width:18px;height:2px;background:#0F172A;border-radius:999px;transform:translateX(-50%);transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .2s ease,top .35s cubic-bezier(.22,1,.36,1)}
.burger-btn span:nth-child(1){top:15px}
.burger-btn span:nth-child(2){top:21px}
.burger-btn span:nth-child(3){top:27px}
.burger-btn.active span:nth-child(1){top:21px;transform:translateX(-50%) rotate(45deg)}
.burger-btn.active span:nth-child(2){opacity:0}
.burger-btn.active span:nth-child(3){top:21px;transform:translateX(-50%) rotate(-45deg)}

/* =========================================
   MENU MOBILE (COMPACT & GLASS)
   ========================================= */

/* 1. BOUTON BURGER (Raffiné) */
.burger-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px; /* Arrondi légèrement plus prononcé */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Ombre légère */
    backdrop-filter: blur(8px);
}

.burger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.burger-btn span {
    position: absolute;
    left: 50%;
    width: 18px; /* Lignes plus courtes = plus chic */
    height: 2px;
    background: #0F172A;
    border-radius: 99px;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Effet élastique */
}

/* Positionnement (Fermé) */
.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 21px; width: 12px; margin-left: 3px; }
.burger-btn span:nth-child(3) { top: 27px; }

/* Animation (Ouvert) */
.burger-btn.active {
    background: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15); /* Lueur bleue subtile */
    border-color: rgba(37, 99, 235, 0.1);
}
.burger-btn.active span { background: var(--primary); width: 20px; margin: 0; }
.burger-btn.active span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger-btn.active span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }


/* 2. LE PANNEAU MENU (Carte Flottante Premium) */
.mobile-menu-overlay {
    position: fixed;
    top: calc(var(--header-height) + 16px); /* Flotte un peu plus bas */
    left: 50%;
    
    /* Dimensions Compactes */
    width: 88%; 
    max-width: 360px;
    height: auto; /* S'adapte au contenu */
    
    /* EFFET GLASSMORPHISM PREMIUM */
    background: rgba(255, 255, 255, 0.75); /* Transparence dosée */
    backdrop-filter: blur(20px) saturate(180%); /* Flou intense + couleurs vives derrière */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Bordure & Ombres Luxueuses */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Bordure blanche laiteuse */
    border-radius: 24px; /* Coins très doux */
    box-shadow: 
        0 20px 40px -5px rgba(0, 0, 0, 0.1), /* Ombre profonde */
        0 8px 10px -6px rgba(0, 0, 0, 0.1),  /* Ombre de contour */
        inset 0 1px 0 rgba(255, 255, 255, 1); /* Reflet lumière en haut (biseau) */
    
    padding: 16px;
    z-index: 10000;
    
    /* État caché initial (avec effet de zoom out) */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    transition: 
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), /* Rebond fluide */
        visibility 0.3s;
}

/* État Ouvert */
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 3. LISTE DES LIENS */
.mobile-menu-panel {
    width: 100%;
    text-align: center;
}

.mobile-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espace serré mais propre */
}

/* 4. DESIGN DES LIENS (Typographie & Interaction) */
.mobile-menu-panel a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-family: var(--font-head); /* Space Grotesk */
    font-size: 1.15rem; /* Taille sophistiquée */
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    
    padding: 12px 20px;
    border-radius: 16px; /* Pill shape */
    transition: all 0.3s ease;
    background: transparent;
}

/* Hover Premium */
.mobile-menu-panel a:hover {
    background: #fff; /* Devient blanc pur */
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Petite ombre au survol du lien */
    transform: scale(1.02);
}

/* Petit point décoratif qui apparaît au hover */
.mobile-menu-panel a::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-panel a:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Mobile: logo gauche / burger centre / 2 icônes droite */
@media (max-width:992px){
  .header-premium .desktop-only{display:none}
  .header-premium .mobile-only{display:flex}
  .col-center-desktop{display:none}
  .col-center-mobile{display:flex}
  .col-right{gap:10px}
  .header-col.col-left .custom-logo-link img{max-height:40px;width:auto}
  .mobile-menu-only{display:block}
}

/* Admin bar offset pour dropdown */
body.admin-bar .mobile-menu-overlay{top:calc(var(--header-height) + 44px)}
@media screen and (max-width:782px){body.admin-bar .mobile-menu-overlay{top:calc(var(--header-height) + 58px)}}
/* Admin bar offset pour dropdown */
body.admin-bar .mobile-menu-overlay{top:calc(var(--header-height) + 44px)}
@media screen and (max-width:782px){body.admin-bar .mobile-menu-overlay{top:calc(var(--header-height) + 58px)}}







/* =======================================================================================================================================
   FOOTER (PREMIUM & DYNAMIC)
   ========================================================================================================================================= */
.site-footer {
    background-color: #020617; /* Fond Bleu Nuit très sombre (plus riche que le noir) */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 40px;
    color: #cbd5e1; /* Gris clair lisible */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* Grille Principale */
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    /* Colonne 1 plus large, autres équilibrées */
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr; 
    gap: 50px;
    align-items: start;
}

/* Gestion du Logo WordPress dans le footer */
.footer-brand-wrapper .custom-logo-link img {
    max-width: 160px; /* Taille maîtrisée */
    height: auto;
    display: block;
    margin-bottom: 20px;
}
.footer-site-title {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Textes et Titres */
.footer-desc {
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 320px;
    opacity: 0.8;
}

.footer-col h4 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Listes de liens avec Animation */
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Effet Hover Premium sur les liens */
.footer-col ul li a:hover {
    color: var(--primary); /* Bleu royal */
    transform: translateX(6px); /* Glissement vers la droite */
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* Réseaux Sociaux */
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Formulaire Newsletter Stylisé */
.footer-form { display: flex; position: relative; margin-top: 15px; }
.footer-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}
.footer-form input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}
.footer-form button {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    background: var(--primary);
    border: none; color: white;
    width: 36px; border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.footer-form button:hover { background: #4F46E5; transform: scale(1.05); }

/* Copyright - Barre du bas */
.footer-bottom {
    max-width: 1240px;
    margin: 60px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}
.footer-bottom strong { color: #fff; font-weight: 600; }

/* =========================================
   RESPONSIVE (TABLETTE & MOBILE)
   ========================================= */

/* Tablette (Passage en 2 colonnes) */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col.brand-col {
        grid-column: 1 / -1; /* Le logo prend toute la largeur */
        text-align: center;
    }
    .footer-desc, .social-links { margin-left: auto; margin-right: auto; }
}

/* Mobile (Passage en 1 colonne centrée) */
@media (max-width: 600px) {
    .site-footer { padding: 50px 0 30px; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Centrage forcé pour mobile */
    .footer-brand-wrapper .custom-logo-link img { margin: 0 auto 20px; }
    .social-links { justify-content: center; }
    
    .footer-col h4::after {
        /* Petite ligne décorative sous les titres mobile */
        content: ''; display: block; width: 40px; height: 2px;
        background: var(--primary); margin: 8px auto 0;
    }
    
    .footer-form input { text-align: center; padding-right: 18px; box-sizing: border-box !important; max-width: 100%; }
    .footer-form button { position: static; width: 100%; margin-top: 10px; height: 44px; }
    .footer-form { flex-direction: column; }
}







/* =================================================================================================================================================
   PAGE 404 - STYLE ULTRA PREMIUM & ANIMÉ (Version Phone)
   ================================================================================================================================================ */
/* =================================================================================================================================================
   PAGE 404 - STYLE "LIGHT RADAR" (SIGNAL PERDU & FOND CLAIR)
   ================================================================================================================================================ */

/* --- 1. CONFIGURATION GLOBALE (MODE CLAIR) --- */
.error-404-container {
    display: flex; 
    align-items: center; 
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + 20px) 20px 60px; 
    text-align: center;
    position: relative; 
    overflow: hidden;
    /* FOND CLAIR LUMINEUX */
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

/* --- 2. ARRIÈRE-PLAN ANIMÉ (RADAR GÉANT) --- */
.error-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

/* A. Ondes Radar Géantes (Bleu subtil sur fond blanc) */
.giant-radar-wave {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(37, 99, 235, 0.1); /* Bleu royal très pâle */
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    animation: sonarExpand 8s linear infinite;
}
.w1 { animation-delay: 0s; }
.w2 { animation-delay: 2.5s; }
.w3 { animation-delay: 5s; }

@keyframes sonarExpand {
    0% { width: 0vw; height: 0vw; opacity: 0.8; border-width: 2px; border-color: rgba(37, 99, 235, 0.2); }
    50% { opacity: 0.3; }
    100% { width: 150vw; height: 150vw; opacity: 0; border-width: 0px; }
}

/* B. Texte Géant 404 (Outline gris clair) */
.bg-giant-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 30vw;
    line-height: 1;
    color: transparent;
    /* Contour gris doux */
    -webkit-text-stroke: 2px rgba(148, 163, 184, 0.15); 
    z-index: 0;
    user-select: none;
    animation: floatText 10s ease-in-out infinite;
}
@keyframes floatText {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -52%) scale(1.02); }
}

/* C. Particules (Poussière sombre) */
.bg-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Points gris au lieu de blancs */
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    z-index: 0;
}


/* --- 3. CONTENU PRINCIPAL --- */
.error-content-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative; 
    z-index: 10; 
}


/* --- 4. ILLUSTRATION (PHONE RADAR) --- */
.error-illustration-scene {
    position: relative; 
    height: 240px; 
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px;
    opacity: 0; 
    animation: fadeInUpPremium 1s forwards;
}

/* Wrapper Téléphone */
.phone-radar-wrapper { 
    position: relative; 
    width: 110px; 
    height: 200px; 
}

/* Lueur bleue derrière le téléphone (Glow) */
.phone-radar-wrapper::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 140%; height: 120%;
    /* Glow bleu léger */
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

/* Le Téléphone (Cadre sombre pour le contraste) */
.phone-mockup {
    width: 100%; height: 100%; border-radius: 20px;
    border: 5px solid #1E293B; /* Cadre sombre */
    background: #0f172a;
    box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.2); /* Ombre portée */
    position: relative; z-index: 10; overflow: hidden;
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 10px; background: #1E293B;
    border-radius: 0 0 6px 6px; z-index: 20;
}

.phone-screen.error-screen {
    width: 100%; height: 100%;
    /* Écran sombre pour faire ressortir le radar */
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative;
}

/* Cercles Radar (Sur l'écran du tel) */
.radar-circle {
    position: absolute; border: 1px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0;
}
.c1 { width: 30px; height: 30px; animation: radarPing 2s infinite; }
.c2 { width: 30px; height: 30px; animation: radarPing 2s infinite 0.6s; }
@keyframes radarPing {
    0% { width: 15px; height: 15px; opacity: 0.9; border-color: white; }
    100% { width: 160px; height: 160px; opacity: 0; border-color: var(--primary); }
}

.disconnect-icon {
    font-size: 2rem; color: #ef4444; 
    background: rgba(255,255,255,0.05);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); z-index: 5;
    animation: iconShake 4s infinite;
}

.screen-message {
    margin-top: 15px; font-family: 'Space Grotesk', sans-serif;
    color: #94a3b8; font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase;
}

/* Carte Perdue */
.lost-card-element {
    position: absolute; top: 40%; right: -50px; 
    width: 70px; height: 110px;
    background: white; 
    border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    z-index: 5; transform: rotate(15deg);
    animation: lostFloat 8s infinite ease-in-out reverse; opacity: 0.9;
}
.lost-avatar { width: 28px; height: 28px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.8rem; }
.lost-lines span { display: block; height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 3px; }
.lost-lines span:first-child { width: 40px; } .lost-lines span:last-child { width: 25px; }

/* Badge Glitch */
.error-badge.glitch-badge {
    position: absolute; top: -10px; left: -15px;
    background: #ef4444; color: white;
    font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.2rem;
    padding: 6px 14px; border-radius: 10px;
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.3); z-index: 30;
    animation: badgeGlitch 5s infinite;
}


/* --- 5. TEXTES (MODE CLAIR = Textes Sombres) --- */
.error-text-content { opacity: 0; animation: fadeInUpPremium 0.8s forwards 0.3s; }

.error-title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 3.5rem; font-weight: 800; 
    color: #0f172a; /* TEXTE SOMBRE */
    margin-bottom: 25px; 
}

.error-text p { 
    font-family: 'Outfit', sans-serif; font-size: 1.15rem; 
    color: #64748b; /* GRIS MOYEN */
    margin-bottom: 18px; line-height: 1.7;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.error-text strong { color: #0f172a; font-weight: 600; } /* GRAS SOMBRE */


/* --- 6. BOUTONS (Adaptés Fond Clair) --- */
.error-actions { 
    margin-top: 40px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; 
    opacity: 0; animation: fadeInUpPremium 0.8s forwards 0.5s; 
}
.error-actions a { 
    display: inline-flex; align-items: center; gap: 12px; padding: 14px 35px; 
    border-radius: 12px; font-weight: 700; text-decoration: none; transition: 0.3s; 
}

/* Bouton Primaire (Reste Bleu) */
.error-actions .btn-primary { 
    background: var(--primary); color: white; border: 2px solid var(--primary); 
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}
.error-actions .btn-primary:hover { 
    background: #1e40af; border-color: #1e40af; 
    transform: translateY(-3px); 
}

/* Bouton Secondaire (Outline Sombre) */
.error-actions .btn-secondary { 
    background: transparent; color: #0f172a; border: 2px solid #e2e8f0; 
}
.error-actions .btn-secondary:hover { 
    border-color: var(--primary); color: var(--primary); background: white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-3px); 
}


/* --- 7. ANIMATIONS --- */
@keyframes fadeInUpPremium { to { opacity: 1; transform: translateY(0); } }
@keyframes floatPhone { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lostFloat { 0%, 100% { transform: translate(0, 0) rotate(15deg); } 50% { transform: translate(10px, -15px) rotate(10deg); } }
@keyframes iconShake { 0%, 90%, 100% { transform: rotate(0deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(10deg); } 96% { transform: rotate(-10deg); } 98% { transform: rotate(10deg); } }
@keyframes badgeGlitch { 0%, 95% { transform: scale(1); } 96% { transform: scale(1.1) rotate(2deg); background: #f87171; } 97% { transform: scale(1.1) rotate(-2deg); } 98% { transform: scale(1); background: #ef4444; } }


/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
    .bg-giant-text { font-size: 40vw; }
    
    .error-title { font-size: 2.2rem; }
    
    /* Boutons Mobile */
    .error-actions { 
        flex-direction: column; 
        gap: 15px; 
        width: 100%;
    }
    .error-actions a { 
        width: 100%; 
        max-width: 300px; /* Largeur max */
        margin: 0 auto; 
        justify-content: center; 
        box-sizing: border-box;
    }
}


/* ==========================================================================================================================================================
   COMPLIANZ – MANAGE CONSENT (bloc footer)
   ========================================================================================================================================================== */
