:root {
  /* Colors - Samara System */
  --color-sky-blue: #0096f7;
  --color-signal-orange: #ff4000;
  --color-ink: #000000;
  --color-pure-white: #ffffff;
  --color-parchment: #fdfdf7;
  --color-warm-sand: #f5f2de;
  --color-driftwood: #e7e3e1;
  --color-graphite: #666666;
  
  --font-regola: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --spacing-12: 12px;
  --spacing-24: 24px;
  --spacing-42: 42px;
  
  --radius-cards: 12px;
  --radius-inputs: 12px;
  --radius-buttons: 12px;
  --radius-specialtycards: 18px;
  
  --shadow-sm: rgba(0, 0, 0, 0.2) 0px 2px 4px 0px;
  --shadow-hover: rgba(0, 0, 0, 0.08) 0px 2px 10px 0px;
}
/* Défilement fluide vers les ancres */
html {
    scroll-behavior: smooth;
}

/* Crée un espace au-dessus du simulateur pour que le menu fixe ne le cache pas */
#simulateur {
    scroll-margin-top: 100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-parchment); color: var(--color-ink); font-family: var(--font-regola); line-height: 1.5; }

/* Typographie */
.text-caption { font-size: 14px; font-weight: 600; letter-spacing: -0.56px; }
.text-body-sm { font-size: 16px; letter-spacing: -0.22px; }
.text-body { font-size: 18px; letter-spacing: -0.18px; }
.text-body-lg { font-size: 23px; letter-spacing: -0.46px; }
.text-subheading { font-size: 30px; letter-spacing: -0.9px; font-weight: 400; }
.text-heading-sm { font-size: 36px; letter-spacing: -0.5px; }
.text-heading { font-size: 48px; letter-spacing: -1.3px; font-weight: 300; }
.text-display { font-size: 72px; line-height: 0.9; letter-spacing: -3.5px; font-weight: 700; } 

/* Layout & Sections */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-white { background-color: var(--color-pure-white); }
.bg-warm-sand { background-color: var(--color-warm-sand); }
.border-bottom { border-bottom: 1px solid var(--color-driftwood); }
.text-center { text-align: center; }

/* Header & Logo Styles (TAILLE AUGMENTÉE) */
header { padding: 16px 0; position: sticky; top: 0; background: rgba(253, 253, 247, 0.95); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--color-driftwood); }
.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; max-width: 350px; /* Espace plus grand pour le logo */ }
.logo a { display: block; width: 100%; }
.logo-img { 
    max-height: 120px; /* Logo 2x plus grand ! */
    max-width: 100%;  
    width: auto; 
    height: auto;
    margin: -15px;
    object-fit: contain; 
    mix-blend-mode: multiply; 
}

nav ul { list-style: none; display: flex; gap: 32px; }
nav a { text-decoration: none; color: var(--color-ink); font-weight: 600; }
nav a:hover { color: var(--color-sky-blue); }

/* Hero */
.hero-section { padding-top: 60px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.badge { display: inline-block; padding: 8px 16px; border-radius: 24px; font-weight: 700; font-size: 14px; }
.badge-orange { background: rgba(255, 64, 0, 0.1); color: var(--color-signal-orange); border: 1px solid rgba(255, 64, 0, 0.2); }
.hero-list { list-style: none; margin-top: 30px; }
.hero-list li { font-size: 18px; margin-bottom: 12px; font-weight: 600; }

/* Bandeau Réassurance */
.trust-banner { background-color: var(--color-ink); color: var(--color-pure-white); padding: 20px 0; font-size: 14px; font-weight: 600; }
.trust-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* Cartes (Avantages) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-standard { background: var(--color-parchment); padding: 40px; border-radius: var(--radius-cards); border: 1px solid var(--color-driftwood); transition: 0.3s; }
.card-standard:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.icon-circle { width: 60px; height: 60px; background: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }

/* Cartes (Étapes) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.step-card { background: var(--color-pure-white); padding: 40px 30px; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm); position: relative; }
.step-number { font-size: 60px; font-weight: 700; color: var(--color-sky-blue); opacity: 0.2; position: absolute; top: 20px; right: 20px; line-height: 1; }

/* Contact Box CTA */
.contact-box { background: var(--color-ink); border-radius: var(--radius-specialtycards); padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; color: var(--color-pure-white); }
.contact-form-wrapper { background: var(--color-pure-white); padding: 40px; border-radius: var(--radius-cards); color: var(--color-ink); }

/* Formulaires & Boutons */
.form-card { background: var(--color-warm-sand); padding: 40px; border-radius: var(--radius-specialtycards); box-shadow: var(--shadow-sm); }
.form-vertical { display: flex; flex-direction: column; gap: 16px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-field { background: var(--color-pure-white); border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-inputs); padding: 16px; font-family: var(--font-regola); font-size: 16px; outline: none; }
.input-field:focus { border-color: var(--color-sky-blue); }

.btn { display: inline-block; padding: 14px 24px; border-radius: var(--radius-buttons); font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; border: none; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--color-sky-blue); color: var(--color-pure-white); }
.btn-primary:hover { background: #007bc9; }
.btn-urgent { background: var(--color-signal-orange); color: var(--color-pure-white); }
.btn-urgent:hover { background: #e63900; }
.btn-pill { background: rgba(0,0,0,0.04); border-radius: 24px; }
.btn-block { width: 100%; }
/* Bouton Effet 3D */
.btn-3d {
    display: inline-block;
    background-color: var(--color-signal-orange); /* Orange pour un maximum de visibilité */
    color: var(--color-pure-white) !important;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 0 #009fcc; /* Ombre solide créant l'épaisseur 3D */
    transition: all 0.1s ease-in-out;
}

/* État au survol (le bouton s'enfonce légèrement) */
.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #cc3300;
    background-color: #009fcc;
}

/* État au clic (le bouton s'enfonce complètement) */
.btn-3d:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #cc3300;
}
.alert { padding: 16px; border-radius: 8px; background: var(--color-driftwood); margin-bottom: 24px; font-weight: 600; }

/* Footer (TAILLE AUGMENTÉE) */
.footer { padding: 40px 0; border-top: 1px solid var(--color-driftwood); }
.footer-logo-img { 
    max-height: 100px; /* Plus grand dans le footer aussi */
    max-width: 250px; 
    width: auto; 
    height: auto;
    object-fit: contain; 
    mix-blend-mode: multiply; 
    margin-bottom: 16px; 
    opacity: 0.8; 
}

/* --- NOUVEAUX STYLES POUR LE RÉSULTAT INTÉGRÉ --- */
.result-integrated {
    animation: fadeInResult 0.5s ease-out;
}

.result-form-wrapper {
    background: rgba(0, 0, 0, 0.03); /* Fond très léger pour détacher le formulaire */
    padding: 24px;
    border-radius: var(--radius-cards);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Le formulaire compact limite la largeur des champs et du bouton */
.form-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px; /* Taille ajustée : ne prend pas toute la largeur */
}

.form-compact .btn-3d {
    width: 100%;
    margin-top: 5px;
}

/* Animation douce d'apparition */
@keyframes fadeInResult {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ------------------------------------------------ */
/* =========================================
   RÈGLES RESPONSIVES (MOBILES & TABLETTES)
   ========================================= */
@media (max-width: 900px) {
    /* Masquer le bouton de l'en-tête sur mobile */
    .header-container .btn-pill, 
    .header-container .btn-3d { 
        display: none; 
    }
    /* Grilles sur une seule colonne avec un espacement réduit */
    .hero-grid, .contact-box, .grid-3, .steps-grid, .form-layout { 
        grid-template-columns: 1fr; 
        gap: 24px; /* Réduit l'espace entre les éléments */
    }
    
    /* Typographie beaucoup plus compacte pour mobile */
    .text-display { font-size: 36px; letter-spacing: -1px; line-height: 1.1; margin-top: 10px !important; }
    .text-heading { font-size: 28px; letter-spacing: -0.5px; }
    .text-heading-lg { font-size: 32px; letter-spacing: -1px; }
    .text-heading-sm { font-size: 22px; }
    .text-subheading { font-size: 20px; }
    .text-body-lg { font-size: 16px; margin: 16px 0 !important; }
    .text-body { font-size: 15px; }
    
    /* Marges des sections réduites de moitié */
    .section { padding: 40px 0; }
    
    /* Navigation et Header */
    nav { display: none; } /* Cache le menu classique sur mobile */
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
    .logo-img { max-height: 120px; margin-top: -15px  ;margin-bottom: -20px; }
    
    /* Cartes plus compactes (moins d'espace vide à l'intérieur) */
    .card-standard, 
    .step-card, 
    .form-card, 
    .contact-form-wrapper, 
    .card-warm,
    .contact-box { 
        padding: 20px; 
    }
    
    /* Ajustements pour les étapes et icônes */
    .step-number { font-size: 36px; top: 10px; right: 15px; }
    .icon-circle { width: 50px; height: 50px; font-size: 20px; margin-bottom: 15px; }
    
    /* Bandeau de réassurance aligné en colonne */
    .trust-flex { flex-direction: column; text-align: center; gap: 15px; }
    
    /* Formulaires et Boutons */
    .input-field { padding: 12px; }
    .btn { padding: 12px 20px; font-size: 15px; width: 100%; } /* Boutons prennent toute la largeur sur mobile */
    .btn-3d { width: 100%; padding: 12px; } /* Si vous avez gardé le bouton 3D */
    
    /* Logo du footer */
    .footer-logo-img { max-height: 60px; }
}

/* Ajustements supplémentaires pour les très petits écrans (iPhone SE, etc.) */
@media (max-width: 400px) {
    .text-display { font-size: 32px; }
    .card-standard, .step-card, .card-warm { padding: 16px; }
}