/* Variables de couleurs et Design System */
:root {
    --bg: #f8fafc;
    --header-bg: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --text-light: #475569;
    --primary: #0062ff;
    --primary-hover: #004bd9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --accent-green: #10b981;
}

/* Amélioration du contraste pour le mode sombre */
[data-theme="dark"] {
    --bg: #0b1121; /* Fond très sombre pour contraster avec les cartes */
    --header-bg: rgba(11, 17, 33, 0.95);
    --text: #f8fafc;
    --text-light: #cbd5e1; /* Texte secondaire plus clair pour la lisibilité */
    --primary: #3b82f6; /* Bleu plus clair et lumineux sur fond noir */
    --primary-hover: #60a5fa;
    --card-bg: #1e293b; /* Cartes différenciées du fond */
    --border: #334155; /* Bordures plus visibles */
    --shadow: 0 10px 30px rgba(0,0,0,0.5); /* Ombre plus forte en mode sombre */
    --accent-green: #34d399; /* Accentuation plus lumineuse */
}

* { margin: 0; padding: 0; box-sizing: border-box; word-wrap: break-word; overflow-wrap: break-word; }

/* Transition de page fluide */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
    animation: pageFadeIn 0.35s ease-out;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header nav.container {
    max-width: 1480px;
    padding-left: clamp(20px, 2.5vw, 36px);
    padding-right: clamp(20px, 2.5vw, 36px);
}

/* Navigation & Mega Menu unifié */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo links actions";
    align-items: center;
    width: 100%;
    column-gap: 24px;
}

.logo {
    grid-area: logo;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}
.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.logo-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    overflow: hidden;
}
.logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    transform: scale(1.44);
    transform-origin: center;
}
.logo-img-light { display: none; }
.logo-img-dark { display: block; }
[data-theme="dark"] .logo-img-light { display: block; }
[data-theme="dark"] .logo-img-dark { display: none; }
.logo span { color: var(--primary); }

.nav-links { grid-area: links; display: flex; list-style: none; gap: 16px; align-items: center; justify-content: center; min-width: 0; }

/* Dropdown Logic pour le Header */
.dropdown { position: relative; }
.dropbtn, .nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
}
.dropbtn:hover, .nav-link:hover { color: var(--primary); }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 240px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-content a:hover { background: var(--primary); color: #fff; }

.nav-right { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 15px;}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}
.lang-switch::before {
    content: '\f0ac';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 0.9rem;
}
.lang-switch:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.lang-switch:hover::before {
    color: #fff;
}

/* Hero Section */
.hero { padding: 140px 0 60px; text-align: center; animation: fadeIn 1s ease-out; }
.hero h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 15px; color: var(--text); animation: slideUp 0.8s ease-out 0.2s both; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto 25px; animation: slideUp 0.8s ease-out 0.4s both; line-height: 1.5; }
.hero-btns { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    animation: slideUp 0.8s ease-out 0.6s both; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services */
.services { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--text); font-size: 2.2rem; margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 30px; }

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.service-card i { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; color: var(--text); }
.service-card p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }

/* Credibility section (homepage) */
.credibility {
    padding: 24px 0 68px;
}
.credibility-shell {
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.06), var(--card-bg) 58%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 44px;
}
.credibility-intro {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.credibility-intro h2 {
    color: var(--text);
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 14px;
}
.credibility-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}
.credibility-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.credibility-pills span {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}
.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 16px;
    margin-top: 30px;
}
.credibility-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.credibility-card h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 8px;
}
.credibility-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}
.method-steps {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.method-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.method-step strong {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
    margin-bottom: 4px;
}
.method-step span {
    color: var(--text-light);
    font-size: 0.83rem;
}

.learn-more { text-decoration: none; color: var(--primary); font-weight: 700; transition: color 0.2s; }
.learn-more:hover { color: var(--primary-hover); }

/* Boutons */
.btn-main { background: var(--primary); color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; font-size: 0.95rem; line-height: 1; min-height: 48px; }
.btn-main:hover { background: var(--primary-hover); }

.btn-cta { background: var(--primary); color: white; padding: 9px 18px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; transition: background 0.2s; white-space: nowrap; font-size: 0.9rem; line-height: 1; }
.btn-cta:hover { background: var(--primary-hover); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 22px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; transition: background 0.2s, color 0.2s; white-space: nowrap; font-size: 0.95rem; line-height: 1; min-height: 48px; box-sizing: border-box; }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-login { text-decoration: none; color: var(--text); font-weight: 600; padding: 9px 14px; border-radius: 6px; transition: 0.3s; white-space: nowrap; font-size: 0.9rem; display: inline-flex; align-items: center; }
.btn-login:hover { background: var(--border); }

/* Toggle Theme Button */
.theme-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.theme-btn:hover { background: var(--border); transform: rotate(15deg); }

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    align-items: start;
}

/* Unified form shell across all pages */
.contact-wrapper.contact-wrapper-tight {
    margin-top: 0;
}

/* Keep form pages visually consistent */
.contact#form-contact .contact-wrapper {
    margin-top: 0;
}

.contact-text h2 { color: var(--text); font-size: 2rem; margin-bottom: 20px; }
.contact-text p { color: var(--text-light); margin-bottom: 30px; font-size: 1.1rem; }

.contact-details p { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--text); font-weight: 500;}
.contact-details i { color: var(--primary); font-size: 1.2rem; }

.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 132px; resize: vertical; }

.contact-form .team-size-label {
    margin: 2px 0 0;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form .rgpd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    position: relative;
}

.contact-form .rgpd-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.contact-form .rgpd-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.contact-form .rgpd-checkbox label::before {
    content: "";
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 1px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: var(--card-bg);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .rgpd-checkbox input[type="checkbox"]:checked + label::before {
    content: "✓";
    background: var(--primary);
    border-color: var(--primary);
}

.contact-form .rgpd-checkbox input[type="checkbox"]:focus-visible + label::before {
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.25);
}

.form-privacy-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0;
    line-height: 1.5;
    text-align: left;
    background: var(--bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-privacy-note a {
    color: var(--primary);
    font-weight: 600;
}
.form-privacy-note i {
    color: var(--primary);
    margin-right: 5px;
}



/* NOUVEAU FOOTER UNIFIÉ */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info .logo {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}
.footer-info .logo.logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.footer-info .logo.logo-footer .logo-mark {
    width: 56px;
    height: 56px;
}
.footer-info .logo.logo-footer .logo-img {
    transform: scale(1.48);
}
.footer-info .logo span {
    color: var(--primary);
}
.footer-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-contact h4, .footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}
.footer-contact h4::after, .footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light);
}
.footer-contact p i {
    color: var(--primary);
    width: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Custom Form Controls: Radio Chips & Range Slider */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.radio-btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 100px;
    max-width: 100%;
    position: relative;
    cursor: pointer;
}
.radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    height: 100%;
}
.radio-btn input[type="radio"]:checked ~ span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 98, 255, 0.2);
    font-weight: 600;
}
.radio-btn input[type="radio"]:hover:not(:checked) ~ span {
    border-color: var(--primary);
    color: var(--text);
    background: var(--card-bg);
}

.range-container {
    margin-bottom: 25px;
    background: var(--bg);
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 5px;
    outline: none;
    margin-top: 15px;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Loader Animation & Security Msg */
.btn-main {
    position: relative;
    overflow: hidden;
}
.btn-loader {
    display: none;
}
.error-msg {
    display: none;
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #ef4444;
}
.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Modals, Layout Responsive and Menu Burger */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.hamburger-btn:hover {
    color: var(--primary);
}

@media (max-width: 1450px) and (min-width: 801px) {
    header {
        height: auto;
        min-height: 96px;
        padding: 10px 0 12px;
    }

    nav {
        grid-template-columns: auto auto;
        grid-template-areas:
            "logo actions"
            "links links";
        column-gap: 18px;
        row-gap: 8px;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 18px;
        padding-top: 2px;
    }

    .logo { justify-self: end; }
    .nav-right { justify-self: start; }
    .dropbtn, .nav-link { font-size: 0.95rem; padding: 8px 6px; }
    .nav-right { gap: 10px; }
    .logo { font-size: 1.4rem; }
    .logo-mark { width: 42px; height: 42px; margin-right: 10px; }
    .btn-login { padding: 8px 10px; font-size: 0.82rem; }
    .btn-cta { padding: 8px 12px; font-size: 0.82rem; }
}

@media (max-width: 800px) {
    .hamburger-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
    
    header { height: auto; min-height: 80px; padding: 15px 0; }
    nav { display: flex; flex-wrap: wrap; }
    
    .nav-right { flex: 1; justify-content: flex-end; }
    
    .nav-links { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        gap: 0;
        padding-top: 15px;
        order: 3;
    }
    .nav-links.active { display: flex; animation: slideUp 0.3s ease-out; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links .dropbtn { padding: 15px 10px; justify-content: space-between; width: 100%; }
    
    .dropdown-content { 
        position: static; 
        box-shadow: none; 
        border: none; 
        padding: 0 0 10px 20px; 
        display: none; 
        opacity: 1; 
        transform: none; 
        background: transparent; 
        min-width: 100%;
    }
    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
    
    .btn-cta { display: none; }
    
    .hero { padding: 120px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; padding: 0 10px; }
    
    .hero-btns { flex-direction: column; width: 100%; padding: 0 5%; box-sizing: border-box; }
    .hero-btns .btn-main, .hero-btns .btn-outline { width: 100%; justify-content: center; }

    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 1rem; padding: 0 15px; }

    .credibility { padding: 8px 0 54px; }
    .credibility-shell { padding: 26px 18px; border-radius: 18px; }
    .credibility-intro h2 { font-size: 1.6rem; }
    .credibility-intro p { font-size: 1rem; }
    .credibility-pills { justify-content: flex-start; }
    .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; padding: 25px 15px; }
    .contact-form input, .contact-form textarea { padding: 12px; }
    /* Radio chips full width on mobile */
    .radio-btn { flex: 1 1 calc(50% - 10px); min-width: 0; }

    .logo { font-size: 1.4rem; }
    .logo-mark { width: 40px; height: 40px; margin-right: 10px; }
    .footer-info .logo.logo-footer .logo-mark { width: 46px; height: 46px; }
}
/* Notification Toast */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg);
    color: var(--text);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.error { border-left-color: #ef4444; }

.toast i { font-size: 1.2rem; }
.toast i.fa-check-circle { color: var(--accent-green); }
.toast i.fa-exclamation-circle { color: #ef4444; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in;
}

/* Success state for form */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    z-index: 10;
    animation: fadeIn 0.4s ease-out;
}

.form-success-overlay i {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.form-success-overlay h3 { margin-bottom: 10px; }
.form-success-overlay p { color: var(--text-light); }

/* Cookie-Free Banner (Premium Look) */
.cookie-free-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg);
    color: var(--text);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--primary);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    animation: cfb-slideUpIn 0.5s ease-out;
}

@keyframes cfb-slideUpIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-free-banner.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.cfb-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cfb-content p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.cfb-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.cfb-close:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .radio-btn { flex: 1 1 100%; }
    .toast { min-width: 0; width: calc(100vw - 40px); }
    .toast-container { left: 20px; right: 20px; bottom: 20px; }
    .cookie-free-banner { left: 15px; right: 15px; bottom: 15px; }
    .btn-main, .btn-cta, .btn-outline, .btn-login { white-space: normal; text-align: center; height: auto; line-height: 1.4; padding: 12px 16px; min-height: 48px; }
    .credibility-pills span { width: 100%; text-align: center; }
    .method-steps { grid-template-columns: 1fr; }
}

@media (max-width: 530px) {
    nav {
        justify-content: center;
        row-gap: 8px;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .logo a {
        justify-content: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* Specialized Offer Pages (scoped) */
.offer-page .section-padding { padding: 96px 0; }
.offer-page .bg-alt { background: var(--card-bg); }
.offer-page .text-center { text-align: center; }

.offer-page .rich-text {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.85;
    font-size: 1.08rem;
    color: var(--text-light);
}
.offer-page .rich-text h2, .offer-page .rich-text h3 {
    color: var(--text);
    line-height: 1.3;
}
.offer-page .rich-text h2 {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 2rem;
}
.offer-page .rich-text h3 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 1.35rem;
}
.offer-page .rich-text p + p { margin-top: 14px; }

.offer-page .feature-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin-top: 48px;
}
.offer-page .feature-card-detailed {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.offer-page .feature-card-detailed h4 {
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.35;
}
.offer-page .feature-card-detailed p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.offer-page .cas-concret {
    border-radius: 28px;
    padding: 52px;
    box-shadow: var(--shadow);
}
.offer-page .cas-concret h2 { line-height: 1.3; margin-bottom: 30px; }
.offer-page .cas-concret-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.offer-page .cas-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 26px;
}
.offer-page .cas-box h4 { margin-bottom: 10px; line-height: 1.3; }
.offer-page .cas-box p { margin: 0; line-height: 1.6; }
.offer-page .case-result {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding-top: 24px;
    text-align: center;
}
.offer-page .case-result p {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.offer-page .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 42px;
}
.offer-page .step-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.offer-page .step-item h4 {
    color: var(--text);
    margin-bottom: 8px;
}
.offer-page .step-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.offer-page .btn-main.btn-accent { background: var(--accent); color: #fff; }
.offer-page .btn-main.btn-accent:hover { filter: brightness(0.94); }

@media (max-width: 1024px) {
    .offer-page .section-padding { padding: 76px 0; }
    .offer-page .cas-concret { padding: 34px 24px; }
    .offer-page .cas-concret-grid { grid-template-columns: 1fr; gap: 18px; }
    .offer-page .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .offer-page .section-padding { padding: 60px 0; }
    .offer-page .feature-card-detailed { padding: 22px; }
    .offer-page .rich-text { font-size: 1rem; }
    .offer-page .rich-text h2 { font-size: 1.6rem; }
    .offer-page .rich-text h3 { font-size: 1.2rem; }
    .offer-page .cas-concret { padding: 26px 18px; border-radius: 20px; }
    .offer-page .case-result p { font-size: 1.05rem; }
    .offer-page .process-steps { grid-template-columns: 1fr; }
}

/* SEO FAQ Accordions */
.seo-faq { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.seo-faq h2 { text-align: center; margin-bottom: 40px; color: var(--text); }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.offer-page .seo-faq { padding: 96px 0; }
.offer-page .faq-grid { max-width: 920px; margin: 30px auto 0; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
    font-weight: 600;
    color: var(--text);
    padding: 20px;
    cursor: pointer;
    list-style: none; /* Hide default triangles */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item[open] summary {
    border-bottom: 1px dashed var(--border);
}
.faq-content {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-out;
}
.faq-content p { margin-bottom: 12px; }
.faq-content p:last-child { margin-bottom: 0; }
.faq-content ul { padding-left: 20px; margin-bottom: 12px; }
.faq-content strong { color: var(--text); }
