/* =========================================
   1. CONFIGURATION & RESET
   ========================================= */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&family=JetBrains+Mono&display=swap');

   :root {
       --bg-body: #f3f4f6;      
       --bg-card: #ffffff;      
       --bg-dark-nav: #1e293b;  
       --copper-main: #9a4d28;  
       --copper-hover: #b45309; 
       --copper-light: #fff7ed; 
       --text-main: #334155;     
       --text-title: #0f172a;    
       --text-white: #ffffff;    
       --text-light-gray: #64748b; 
       --border-soft: #e5e7eb;   
       
       /* Couleurs Offres */
       --color-b2b: #9a4d28; 
       --color-b2b-light: #fff7ed;
       --color-b2c: #0284c7; 
       --color-b2c-hover: #0369a1;
       --color-b2c-light: #f0f9ff;
   }
   
   
   * { margin: 0; padding: 0; box-sizing: border-box; }
   
   html, body {
       overflow-x: hidden;
       width: 100%;
       position: relative;
       scroll-behavior: smooth;
   }
   
   body {
       background-color: var(--bg-body);
       color: var(--text-main);
       font-family: 'Open Sans', sans-serif;
       line-height: 1.6;
       font-size: 16px;
       padding-top: 80px; /* Compensation Header Fixe */
   }
   
   h1, h2, h3, .logo {
       font-family: 'Montserrat', sans-serif;
       font-weight: 700;
       color: var(--text-title);
       letter-spacing: -0.5px;
   }
   
   a { text-decoration: none; color: inherit; }
   ul { list-style: none; }
   
   /* --- Typographie Technique --- */
   .tech-detail {
       font-family: 'JetBrains Mono', monospace;
       font-size: 0.75rem;
       color: var(--copper-main);
       letter-spacing: 1px;
       text-transform: uppercase;
       font-weight: 600;
   }
   
   .tagline {
       font-family: 'Montserrat', sans-serif;
       color: var(--copper-main);
       font-weight: 600;
       text-transform: uppercase;
       letter-spacing: 2px;
       margin-bottom: 2rem;
       font-size: 0.85rem;
   }
   
   /* =========================================
      2. HEADER & NAVIGATION
      ========================================= */
   nav {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 15px 5%;
       background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
       border-bottom: 1px solid rgba(154, 77, 40, 0.3);
       box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 1000;
   }
   
   .logo { font-size: 1.3rem; text-transform: uppercase; text-decoration: none; color: white; }
   .logo-link { display: flex; align-items: center; text-decoration: none; color: inherit; }
   
   .logo-img {
       height: 50px;
       width: auto;
       margin-right: 15px;
       background-color: #ffffff;
       padding: 4px;           
       border: 2px solid var(--copper-main);
       border-radius: 8px;     
       box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
       transition: all 0.3s ease;
   }
   .logo-link:hover .logo-img { border-color: white; transform: scale(1.02); }
   
   .brand-block { display: flex; flex-direction: column; line-height: 1.2; }
   .brand-name { font-size: 1.4rem; font-weight: bold; text-transform: uppercase; color: var(--text-white); }
   .brand-highlight { color: var(--copper-hover); }
   .brand-tagline { font-size: 0.65rem; font-weight: 300; opacity: 0.8; letter-spacing: 0.5px; color: #cbd5e1; }
   
   .nav-links a {
       color: #cbd5e1;
       text-decoration: none;
       margin-left: 25px;
       font-weight: 600;
       font-size: 0.85rem;
       transition: color 0.3s;
       text-transform: uppercase;
   }
   .nav-links a:hover { color: white; }
   
   /* Bouton Contact dans la Nav */
   .nav-links a:last-child {
       background-color: var(--copper-main);
       color: white !important;
       padding: 10px 20px;
       border-radius: 4px;
       margin-left: 20px;
       box-shadow: 0 4px 6px rgba(154, 77, 40, 0.2);
   }
   .nav-links a:last-child:hover {
       background-color: var(--copper-hover);
       transform: translateY(-2px);
       box-shadow: 0 6px 12px rgba(154, 77, 40, 0.3);
   }
   
   /* =========================================
      3. HERO SECTIONS (Base)
      ========================================= */
   .hero {
       background-color: #f3f4f6;   
       background-image:  
           linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), 
           linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), 
           linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), 
           linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), 
           linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1), 
           linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1);
       background-size: 80px 140px;
       background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
       position: relative;
       z-index: 1;
       min-height: 60vh !important;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       text-align: center;
       padding: 60px 20px;
       border-bottom: 1px solid var(--border-soft);
   }
   .hero::before {
       content: '';
       position: absolute;
       top: 0; left: 0; right: 0; bottom: 0;
       background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(243, 244, 246, 0.95) 100%);
       z-index: -1;
   }
   .hero h1, .hero p, .hero a, .hero span { position: relative; z-index: 2; }
   
   .hero h1 {
       font-size: 3rem;
       margin-bottom: 1rem;
       line-height: 1.1;
       max-width: 900px;
       color: var(--text-title);
   }
   
   .hero-desc {
       max-width: 700px; 
       margin-bottom: 3rem !important;
       color: var(--text-light-gray);
       font-size: 1.1rem;
   }
   
   .hero-short { min-height: 40vh !important; }
/* Modification pour remonter le contenu */
.hero-medium { 
    min-height: 50vh !important; 
    
    /* On change l'alignement : au lieu de centrer verticalement, on part du haut */
    justify-content: flex-start; 
    
    /* On définit une marge fixe depuis le haut (80px nav + 60px espace) */
    padding-top: 140px; 
    padding-bottom: 60px; 
}   
   /* =========================================
      4. BOUTONS GLOBAUX
      ========================================= */
   .btn-cta {
       background-color: var(--copper-main);
       color: white;
       padding: 15px 35px;
       border-radius: 4px;
       text-decoration: none;
       font-weight: 700;
       font-family: 'Montserrat', sans-serif;
       text-transform: uppercase;
       letter-spacing: 1px;
       font-size: 0.85rem;
       transition: all 0.3s ease;
       box-shadow: 0 4px 6px rgba(211, 84, 0, 0.2);
       cursor: pointer;
       display: inline-block;
       border: none;
   }
   .btn-cta:hover { 
       background-color: var(--copper-hover);
       transform: translateY(-2px);
       box-shadow: 0 8px 15px rgba(211, 84, 0, 0.3);
   }
   
   /* Variantes B2B / B2C (Utilisées en Home et Pages Offres) */
   .btn-b2b { background-color: var(--color-b2b); color: white; }
   .btn-b2b:hover { background-color: #b45309; transform: translateY(-2px); }
   
   .btn-b2c {
       background-color: var(--color-b2c);
       color: white;
       border: none;
       padding: 15px 35px;
       border-radius: 4px;
       font-weight: 700;
       text-transform: uppercase;
       font-size: 0.85rem;
       transition: all 0.3s ease;
       display: inline-block;
   }
   .btn-b2c:hover { background-color: var(--color-b2c-hover); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(2, 132, 199, 0.3); }
   
   .btn-b2c-outline {
       background-color: transparent;
       border: 2px solid var(--color-b2c);
       color: var(--color-b2c);
       padding: 13px 33px;
       display: inline-block;
       font-weight: 700;
       text-transform: uppercase;
       font-size: 0.85rem;
       border-radius: 4px;
       transition: all 0.3s ease;
   }
   .btn-b2c-outline:hover { background-color: var(--color-b2c); color: white; }
   
   .btn-b2b-outline {
       background-color: transparent;
       border: 2px solid var(--color-b2b);
       color: var(--color-b2b);
       padding: 13px 33px;
       display: inline-block;
       font-weight: 700;
       text-transform: uppercase;
       font-size: 0.85rem;
       border-radius: 4px;
       transition: all 0.3s ease;
   }
   .btn-b2b-outline:hover { background-color: var(--color-b2b); color: white; box-shadow: 0 8px 15px rgba(154, 77, 40, 0.3); transform: translateY(-2px); }
   
   /* =========================================
      5. COMPOSANTS GLOBAUX (Trust, Cards génériques)
      ========================================= */
   .trust-banner {
       background-color: #ffffff !important;
       border-top: 1px solid #d1d5db;       
       border-bottom: 1px solid #d1d5db;
       display: flex;
       justify-content: center;
       gap: 50px;
       padding: 25px;
       flex-wrap: wrap;
       box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
       position: relative;
       z-index: 10;
   }
   .trust-item { 
       font-size: 0.9rem; 
       color: var(--text-title); 
       display: flex;
       align-items: center;
       gap: 12px;
       font-weight: 700;
   }
   .trust-switch-text {
       margin: 0; font-weight: 600; color: var(--text-title); font-size: 1rem;
       display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px;
   }
   .trust-switch-link {
       text-decoration: none; padding: 8px 25px; border-radius: 50px; font-size: 0.85rem;
       text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
       border: 2px solid currentColor; transition: all 0.3s ease; background-color: transparent; display: inline-block;
   }
   .link-to-b2c { color: var(--color-b2c); border-color: var(--color-b2c); }
   .link-to-b2c:hover { background-color: var(--color-b2c); color: white; box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3); transform: translateY(-2px); }
   .link-to-b2b { color: var(--color-b2b); border-color: var(--color-b2b); }
   .link-to-b2b:hover { background-color: var(--color-b2b); color: white; box-shadow: 0 5px 15px rgba(154, 77, 40, 0.3); transform: translateY(-2px); }
   
   /* Split Section & Cards (Utilisé en Home et Pages Pro) */
   .split-section {
       display: flex; flex-wrap: wrap; max-width: 1100px; margin: 60px auto; gap: 40px; padding: 0 20px;
   }
   .card {
       flex: 1; background-color: var(--bg-card); padding: 45px 35px; border-radius: 8px; min-width: 300px;
       box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
       border: 1px solid var(--border-soft); transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden;
   }
   .card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); }
   .card h2, .card h3 { margin-bottom: 20px; color: var(--text-title); font-size: 1.4rem; }
   .card p { color: var(--text-main); }
   .card ul { list-style: none; margin-top: 25px; }
   .card li { margin-bottom: 12px; padding-left: 25px; position: relative; color: var(--text-main); font-size: 0.95rem; }
   .card li::before { content: '›'; color: var(--copper-main); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; top: -2px; }
   
   .card-b2b { border-top: 4px solid var(--color-b2b) !important; }
   .card-b2b:hover { box-shadow: 0 10px 20px rgba(154, 77, 40, 0.15); }
   .card-b2b li::before { color: var(--color-b2b); }
   
   .card-b2c { border-top: 4px solid var(--color-b2c) !important; }
   .card-b2c:hover { box-shadow: 0 10px 20px rgba(2, 132, 199, 0.15); }
   .card-b2c li::before { color: var(--color-b2c); }
   
   /* Icônes SVG génériques */
   .icon-svg {
       width: 24px; height: 24px; vertical-align: middle; margin-right: 8px;
       fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
   }
   .card h3 .icon-svg { width: 32px; height: 32px; margin-bottom: 5px; display:inline-block;}
   
   /* =========================================
      6. PIED DE PAGE (FOOTER)
      ========================================= */
   footer {
       background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
       border-top: 1px solid rgba(154, 77, 40, 0.3);
       padding: 60px 5%;
       font-size: 0.85rem;
       color: #94a3b8;
       position: relative;
       z-index: 0;
   }
   .footer-content { 
       display: flex; justify-content: space-between; flex-wrap: wrap; 
       gap: 40px; max-width: 1200px; margin: 0 auto;
   }
   .footer-col h4 { margin-bottom: 20px; color: white; font-size: 0.9rem; letter-spacing: 1px;}
   .footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.2s;}
   .footer-col a:hover { color: var(--copper-main); }
   .footer-col p strong { color: white; }
   .footer-email { color: inherit; text-decoration: none; transition: color 0.3s; }
   .footer-email:hover { color: var(--copper-main); }
   .copyright-text { margin-top: 30px; font-size: 0.75rem; text-align: center; opacity: 0.5; }
   
   /* =========================================
      7. BOUTON URGENCE CYBER
      ========================================= */
   .cyber-assistance-wrapper {
       position: fixed; 
       bottom: 30px; 
       right: 30px; 
       z-index: 9999;
       font-family: 'Montserrat', sans-serif;
       perspective: 1000px;
   }
   
   .cyber-assistance-button {
       background: linear-gradient(145deg, #1e293b, #0f172a);
       color: white;             
       border-top: 1px solid rgba(255, 255, 255, 0.15);
       border-left: 1px solid rgba(255, 255, 255, 0.1);
       border-right: 1px solid rgba(0, 0, 0, 0.5);
       border-bottom: 4px solid var(--copper-main);
       padding: 12px 20px;
       border-radius: 12px;
       display: flex; 
       align-items: center; 
       gap: 12px; 
       cursor: pointer;
       box-shadow: 0 10px 20px rgba(0,0,0,0.4);
       transition: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
       transform-style: preserve-3d;
   }
   
   .cyber-assistance-button:active {
       transform: translateY(3px);
       border-bottom-width: 1px;  
       box-shadow: 0 2px 5px rgba(0,0,0,0.4);
   }
   
   .cyber-assistance-button:hover {
       background: linear-gradient(145deg, #334155, #1e293b);
       box-shadow: 0 15px 30px rgba(154, 77, 40, 0.2);
   }
   
   .cyber-assistance-button .icon-svg { 
       margin-right: 0 !important;
       width: 28px; height: 28px;
       stroke: var(--copper-main);
       filter: drop-shadow(0 0 5px rgba(154, 77, 40, 0.5));
       position: relative; z-index: 5;
   }
   
   .pulse-icon {
       display: flex; align-items: center; justify-content: center;
       width: 28px; height: 28px; position: relative;
   }
   
   .pulse-icon::before {
       content: '';
       position: absolute; top: 50%; left: 50%;
       transform: translate(-50%, -50%);
       width: 100%; height: 100%;
       border-radius: 50%;
       background-color: var(--copper-main);
       opacity: 0.5; z-index: 1;
       animation: pulse-ring 2s infinite;
   }
   
   @keyframes pulse-ring {
       0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
       100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
   }
   
   .button-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
   .cyber-assistance-button .tech-detail { 
       color: white; font-size: 0.85rem; font-weight: 800;
       letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
   }
   .cyber-assistance-button p { 
       color: #94a3b8 !important; margin: 0; 
       font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
   }
   
   /* Widget caché */
   #cyber-widget-container {
       position: absolute; bottom: 80px; right: 0; width: 350px; height: 500px;
       background: white;
       border: 1px solid var(--border-soft);
       border-radius: 12px; 
       overflow: hidden;
       display: flex; flex-direction: column;
       box-shadow: 0 25px 50px rgba(0,0,0,0.3);
       transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
       z-index: 10000;
   }
   .cyber-widget-hidden { opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; }
   .cyber-widget-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
   
   .widget-header { 
       background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
       color: white; padding: 15px; 
       display: flex; justify-content: space-between; align-items: center;
       font-weight: 600; border-bottom: 2px solid var(--copper-main);
   }
   .widget-header button { 
       background: rgba(255,255,255,0.1); border: none; color: white; 
       width: 30px; height: 30px; border-radius: 50%; cursor: pointer; 
       display:flex; align-items:center; justify-content:center; font-size: 1.2rem; transition: background 0.2s;
   }
   .widget-header button:hover { background: var(--copper-main); }
   #widget_diagnostic { width: 100%; flex-grow: 1; border: none; }
   
   /* État Bouton sur fond sombre (Footer) */
   .cyber-assistance-button.on-footer {
       background: white; border-color: white; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
   }
   .cyber-assistance-button.on-footer .tech-detail { color: var(--text-title); text-shadow: none; }
   .cyber-assistance-button.on-footer p { color: var(--text-title) !important; }
   .cyber-assistance-button.on-footer .icon-svg { stroke: var(--copper-main); filter: none; }
   .cyber-assistance-button.on-footer .pulse-icon::before { background-color: var(--text-title); }
   
   /* =========================================
      8. BOUTON RETOUR HAUT (Back to Top)
      ========================================= */
   .back-to-top {
       position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px;
       background-color: white; color: var(--text-title);
       border: 1px solid var(--border-soft); border-radius: 50%;
       display: flex; align-items: center; justify-content: center;
       text-decoration: none; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
       opacity: 0; visibility: hidden; transform: translateY(20px);
       transition: all 0.3s ease; z-index: 990; cursor: pointer;
   }
   .back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
   @media (hover: hover) {
       .back-to-top:hover {
           background-color: var(--text-title); color: white;
           box-shadow: 0 8px 15px rgba(0,0,0,0.2); transform: translateY(-3px);
       }
   }
   
   /* =========================================
      9. RESPONSIVE MOBILE (Navigation & Globaux)
      ========================================= */
   @media (max-width: 768px) {
       body { padding-top: 0 !important; }
       
       /* Nav Mobile */
       nav { position: relative; flex-direction: column; gap: 5px; padding: 10px 15px; }
       .logo-img { height: 35px; }
       .nav-links { justify-content: center; flex-wrap: wrap; margin-left: 0; gap: 8px; }
       .nav-links a { margin: 0 4px; font-size: 0.75rem; }
       .nav-links a:last-child {
           margin-left: 0 !important; margin-top: 5px; display: inline-block;
           width: auto !important; padding: 6px 20px; font-size: 0.75rem;
       }
       
       /* Hero Ajustement */
       .hero-medium { padding-top: 100px; padding-bottom: 40px; }
       .hero h1 { font-size: 2rem; }
       
       /* Split Section Mobile */
       .split-section { flex-direction: column; }
       
       /* Cyber Button Mobile */
       .cyber-assistance-wrapper { 
           bottom: 20px !important; right: 20px !important; width: auto; 
       }
       .cyber-assistance-button { padding: 10px 15px; border-radius: 50px; }
       .cyber-assistance-button p { display: none; }
   }
   /* =========================================
   10. GOOGLE RECAPTCHA (Positionnement)
   ========================================= */

/* On le place en bas à gauche pour ne pas gêner le bouton Cyber à droite */
.grecaptcha-badge { 
    width: 70px !important; 
    left: 20px !important; 
    bottom: 20px !important; 
    transition: all 0.3s ease !important;
    z-index: 900; /* Juste en dessous du bouton retour haut */
}

/* Au survol, on laisse le badge s'étendre pour lire les mentions légales */
.grecaptcha-badge:hover { 
    width: 256px !important; 
}

/* Classe ajoutée par JS (contact.php) quand on scrolle */
/* Le badge se décale vers la droite pour laisser la place au bouton "Retour haut" */
.grecaptcha-badge.decale-droite {
    left: 90px !important; 
}























.demo-banner {
    background-color: #f59e0b; /* Orange "Travaux" */
    color: #0f172a;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    position: fixed;
    top: 80px; /* Juste sous la barre de navigation */
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
body::after {
    content: "DÉMO / NON OFFICIEL";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05); /* Très transparent */
    pointer-events: none; /* Permet de cliquer à travers */
    z-index: 0;
    white-space: nowrap;
}
@media (max-width: 768px) {

    .demo-banner {
        position: relative !important; /* Elle ne flotte plus, elle suit le texte */
        top: auto !important;          /* On annule le décalage de 80px */
        width: 100%;
        order: -1;                     /* Sécurité pour qu'elle reste au dessus si flexbox */
    }
    
    /* On s'assure que la nav colle bien à la bannière */
    nav {
        top: 0 !important;
        margin-top: 0 !important;
    }
}
