/* 
=======================
   GLOBAL STYLES
=======================
*/

:root {
    /* Couleurs principales */
    --primary-color: #ff4500; /* Updated to Banner Orange/Red */
    --primary-color-rgb: 255, 69, 0; /* RGB for Orange/Red */
    --secondary-color: #ff6347; /* Lighter Orange */
    --secondary-color-rgb: 255, 99, 71;
    --accent-color: #f97316; /* Kept original accent, might need adjustment */
    --accent-color-rgb: 249, 115, 22;
    
    /* Couleurs de fond */
    --bg-light: #1f2937;
    --bg-dark: #111827;
    --bg-alt-light: #374151;
    --bg-alt-dark: #1f2937;
    
    /* Couleurs de texte */
    --text-light: #f9fafb;
    --text-dark: #f3f4f6;
    --text-muted: #d1d5db;
    
    /* Dimensions */
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 10px;
    --card-radius: 12px;
    
    /* Transitions */
    --transition-speed: 0.3s;
    --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.section-header.centered h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-bezier);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--secondary-color-rgb), 0.2);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--secondary-color-rgb), 0.3);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
    padding: 10px 26px;
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.cta-btn {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.2);
    padding: 14px 32px;
    font-size: 1.1rem;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
    color: white;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-with-icon i {
    font-size: 1.1em;
}

.section {
    padding: 6rem 0;
}

.alternate-bg {
    background-color: var(--bg-alt-light);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* 
=======================
     NEW HEADER STYLES
=======================
*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-color); /* Changed to orange */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* backdrop-filter: blur(8px); Remove blur if not desired with solid color */
}

.site-header.scrolled {
    background-color: var(--primary-color); /* Keep orange on scroll */
    /* Adjust opacity if needed */
    /* background-color: rgba(var(--primary-color-rgb), 0.95); */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light); /* Changed to light for contrast */
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Main Navigation - Desktop */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.2rem;
    position: relative;
    transition: color var(--transition-speed);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active,
button.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
button.nav-link:hover::after {
    width: 100%;
}

/* Dropdown - Desktop */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > .dropdown-toggle {
    padding-right: 0; /* No padding needed for button */
}

.dropdown-toggle i {
    margin-left: 0.4rem;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
}

.nav-item-dropdown:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s 0s linear, transform 0.3s ease;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
     margin-left: 0 !important; /* Override potential cascade */
}

.nav-dropdown li a {
    display: block;
    padding: 0.7rem 1.3rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown li a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-light);
}

/* Desktop CTA Button */
.desktop-header-cta {
    margin-left: 1.5rem; /* Space between nav and button */
}
.desktop-cta-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    background: var(--text-light); /* Changed to white */
    color: var(--primary-color);  /* Changed to orange */
    border-radius: 50px; /* Kept */
    font-weight: 600; /* Kept */
    text-decoration: none; /* Kept */
    display: flex; /* Kept */
    align-items: center; /* Kept */
    gap: 8px; /* Kept */
    transition: all 0.3s ease; /* Kept */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Adjusted shadow for white bg */
}

.desktop-cta-btn:hover {
    background: var(--primary-color); /* Orange background on hover */
    color: var(--text-light); /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3); /* Orange shadow */
}

.desktop-cta-btn i {
    font-size: 1rem; /* Slightly adjusted icon size */
}

/* Mobile Menu Toggle */
/*
.mobile-menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010; 
    line-height: 1; 
}
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
*/

/* Mobile CTA inside Nav Panel */
.mobile-nav-cta {
    display: none; /* Hidden by default */
    padding: 1.5rem 10% 0; 
    width: 100%;
    margin-top: auto; /* Push to bottom */
}
.mobile-cta-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* ================== NEW MOBILE FLOATING CTA ================== */
.mobile-floating-cta {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0; /* Changed from 20px */
    left: 0; /* Changed from 50% */
    transform: none; /* Removed translateX(-50%) */
    z-index: 999;
    width: 100%; /* Changed from 90% and removed max-width */
    /* max-width: 400px; */ /* Removed max-width */
}

.mobile-floating-cta .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(var(--primary-color-rgb), 0.2); /* Adjusted shadow */
    border-radius: 0; /* Make it rectangular */
}

.mobile-floating-cta .btn i {
    margin-right: 10px;
}
/* ================== NEW HEADER STYLES END ================== */

/* 
=======================
   MOBILE NAV STYLES
=======================
*/

@media (max-width: 992px) {
    /* Make header scroll with page on mobile */
    .site-header {
        position: absolute; /* Changed from fixed */
    }

    /* Hide desktop navigation list and desktop CTA */
    .main-navigation .nav-list,
    .desktop-header-cta {
        display: none;
    }

    /* Remove styles for the no-longer-existing toggle button */
    /*
    .mobile-menu-toggle {
        display: block;
    }
    */

    /* Show the new floating CTA */
    .mobile-floating-cta {
        display: block;
    }

    /* Ensure main navigation panel remains hidden */
    .main-navigation {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }

    /* Keep general mobile adjustments if needed */
    .hero-stats { /* Example */
        gap: 2rem;
    }
    .two-columns { /* Example */
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    h2 { /* Example */
        font-size: 1.8rem;
    }
    .animated-title { /* Example */
        font-size: 2.5rem;
    }
}

/* Body Overlay/Scroll Lock (Keep) */
body.mobile-menu-open {
    overflow: hidden;
}
body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 998; /* Below nav, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s 0.4s linear;
}
body.mobile-menu-open.fade-in-overlay::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out, visibility 0s 0s linear;
}

/* 
=======================
     HERO SECTION
=======================
*/

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-light);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-duration: 35s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -50px;
    animation-duration: 25s;
    animation-delay: 1s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 30%;
    animation-duration: 30s;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: rotate(0deg) translate(0, 0) scale(1);
    }
    25% {
        transform: rotate(90deg) translate(50px, 50px) scale(1.1);
    }
    50% {
        transform: rotate(180deg) translate(0, 100px) scale(1);
    }
    75% {
        transform: rotate(270deg) translate(-50px, 50px) scale(0.9);
    }
    100% {
        transform: rotate(360deg) translate(0, 0) scale(1);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.animated-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 1s ease;
    background: linear-gradient(90deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
=======================
   SECTION STYLES
=======================
*/

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.disclaimer-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    border: none;
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.disclaimer-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    margin: 0 auto 1.5rem;
}

.disclaimer-card .card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.disclaimer-card h2 {
    margin-bottom: 1.5rem;
}

.disclaimer-card h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.check-list {
    list-style: none;
    margin-left: 0;
}

.check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.check-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.warning-list {
    list-style: none;
    margin-left: 0;
}

.warning-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.warning-list li:before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.img-container {
    margin: 2.5rem 0;
    text-align: center;
}

.caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-with-icon i {
    font-size: 0.8em;
}

/* 
=======================
     CARD STYLES
=======================
*/

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.card {
    background-color: var(--bg-dark);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.technique-card .card-header {
    padding: 1.5rem;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.technique-card .card-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
}

.security-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.security-card .card-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.security-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.security-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card .btn {
    margin-top: 1.5rem;
}

.cta-text {
    font-weight: 500;
    color: var(--primary-color);
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0;
}

.steps-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
}

.password-strength {
    margin: 1.5rem 0;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.strength-segment {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

#segment-1 {
    background-color: #ef4444;
}

#segment-2 {
    background-color: #f97316;
}

#segment-3 {
    background-color: #fbbf24;
}

#segment-4 {
    background-color: #22c55e;
}

.strength-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
}

.warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.warning-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.warning-box p {
    margin-bottom: 0;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-step {
    text-align: center;
}

.auth-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
}

.auth-step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-arrow {
    color: var(--primary-color);
}

/* 
=======================
     FAQ STYLES
=======================
*/

.faq-container {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1rem; /* Reduced margin slightly */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-dark);
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */ /* Optional: remove shadow if desired */
    cursor: pointer; 
    transition: background-color var(--transition-speed); /* Add transition for hover */
}

.faq-item:hover {
     background-color: var(--bg-alt-dark); /* Slight bg change on hover */
}

.faq-question {
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500; /* Adjusted weight */
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none; /* Prevent text selection on click */
}

.faq-question-text {
    flex-grow: 1; /* Allow text to take available space */
    margin-right: 1rem; /* Space between text and icon */
}

.faq-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    transition: transform var(--transition-speed) ease;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.2rem; /* Padding left/right only when closed */
    margin: 0; /* Remove potential default margins */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 
        max-height 0.4s ease,
        padding-top 0.4s ease, 
        padding-bottom 0.4s ease,
        opacity 0.3s ease 0.1s; /* Fade in slightly delayed */
}

.faq-answer p {
    margin-bottom: 1rem; /* Spacing between paragraphs in the answer */
}

.faq-answer p:last-child {
    margin-bottom: 0; /* No bottom margin on the last paragraph */
}

/* Active state */
.faq-item.active .faq-question {
    /* Optional: change background or color when open */
    /* background-color: rgba(var(--primary-color-rgb), 0.05); */
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 1.2rem; /* Full padding when open */
    max-height: 600px; /* Adjust if answers are longer */
    opacity: 1;
}

/* 
=======================
  RELATED POSTS STYLES
=======================
*/

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-post {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.post-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.related-post h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.related-post p {
    color: var(--text-muted);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--primary-color);
    transition: gap var(--transition-speed);
}

.read-more:hover {
    gap: 10px;
}

.read-more i {
    font-size: 0.8em;
}

/* 
=======================
   CTA SECTION STYLES
=======================
*/

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
    background-size: 100px 100px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section h2:after {
    display: none;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 
=======================
     FOOTER STYLES
=======================
*/

#footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-links h3, .footer-legal h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 
=======================
     UTILITY STYLES
=======================
*/

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 
=======================
     MEDIA QUERIES
=======================
*/

@media (max-width: 992px) {
    /* Keep general adjustments from this breakpoint if any, but remove old nav/header ones */
    .hero-stats {
        gap: 2rem;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .animated-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Adjust padding top for absolute header */
    body {
        padding-top: var(--header-height);
    }
    
    /* Keep general adjustments from this breakpoint if any, but remove old nav/header ones */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .cards-container, 
    .security-cards,
    .related-posts {
        grid-template-columns: 1fr;
    }
     .result-actions .primary-btn, 
     .quiz-restart-btn {
        padding: 15px 25px;
        font-size: 1.1rem;
     }
     .quiz-options {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
     .header-cta-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
     }
     .result-actions {
         max-width: 100%;
     }
     [data-aos] { /* Disable AOS on smaller mobiles if desired */
          opacity: 1 !important;
          transform: none !important;
      }
}

@media (max-width: 576px) {
    /* Adjust padding top for absolute header */
    body {
        padding-top: var(--header-height);
    }
    
    .hero-section {
        min-height: auto;
        /* padding-top: calc(var(--header-height) + 2rem); REMOVED, handled by body padding */
        padding-bottom: 4rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .animated-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .auth-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .auth-arrow {
        transform: rotate(90deg);
    }
}

/* Animation for AOS (Animate on Scroll) - no library required */
[data-aos] {
    will-change: opacity, transform;
    transition: opacity 0.8s, transform 0.8s;
    opacity: 1;
    transform: none;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Correction pour garantir que le texte est visible dans tous les éléments */
p, h1, h2, h3, h4, h5, h6, span, li, a, button {
    opacity: 1;
    visibility: visible;
}

/* 
=======================
   QUIZ SECTION STYLES (Consolidated from index.html <style>)
=======================
*/

/* Styles supplémentaires pour les boutons de résultats */
.result-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.result-actions .primary-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background: linear-gradient(135deg, #738AE6 0%, #5C71DB 100%);
    box-shadow: 0 12px 25px rgba(115, 138, 230, 0.25);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-actions .primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(115, 138, 230, 0.3);
    background: linear-gradient(135deg, #8399E9 0%, #6B7FE1 100%);
}

.result-actions .primary-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.result-actions .primary-btn:hover i {
    transform: translateX(4px);
}
/* Styles pour le bouton Recommencer */
/* Note: .quiz-restart-btn styles were slightly different between files, using index.html version */
.quiz-restart-btn {
    margin-top: 0; /* Reset margin in case it was different */
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; /* Explicitly set color */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer; /* Ajout du curseur pointeur */
}



.quiz-restart-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: white; /* Ensure color remains on hover */
}

.quiz-restart-btn:hover::before {
    transform: rotate(90deg);
}

/* Modification pour afficher les options en 3 colonnes sur desktop */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from flex/column */
    gap: 1.8rem;
    margin-bottom: 2.5rem; /* Added margin */
    /* Removed old flex styles if any */
}

/* Plus d'espace pour les étapes du résultat */
.result-steps {
    margin: 2.5rem 0; /* Added margin */
    display: flex; /* Keep flex */
    flex-direction: column; /* Keep column */
    gap: 1.2rem; /* Added gap */
}

/* Ajout de styles pour améliorer l'apparence des options */
.quiz-option {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(30, 41, 59, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 108, 247, 0.5);
    background-color: rgba(37, 49, 70, 0.9);
}

.quiz-option-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 108, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.quiz-option:hover .quiz-option-icon {
    background-color: rgba(74, 108, 247, 0.3);
    box-shadow: 0 0 15px rgba(74, 108, 247, 0.4);
}

.quiz-option-icon i {
    font-size: 2rem;
    color: #6d8dfa;
}

.quiz-option h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.3rem;
}

.quiz-option p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Styles généraux du Quiz Container/Step (Keep if needed, adjust as necessary) */
.quiz-section {
    background-color: var(--bg-alt-light);
    position: relative;
    overflow: hidden;
    /* Remove padding/margin if defined differently */
}

.quiz-container {
    background-color: var(--bg-dark);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
     max-width: 900px; /* Adjusted max-width slightly */
     margin-left: auto;
     margin-right: auto;
}

.quiz-step {
    text-align: center;
     display: none;
     /* Remove background/padding/shadow if defined differently */
}
#quiz-step-1 {
     display: block;
}

.quiz-step h3 {
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    color: var(--text-light);
}

/* Result styles */
.quiz-result {
     text-align: center;
     padding: 2rem;
     background-color: var(--bg-dark);
     border-radius: var(--card-radius);
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}
.result-icon.success { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.result-icon.info { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.result-icon.warning { background-color: rgba(249, 115, 22, 0.1); color: #f97316; }
.result-icon.error { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

.quiz-result h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.quiz-result p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
    text-align: left;
}

.result-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.result-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.result-feature span {
    color: var(--text-light);
    font-size: 0.95rem;
}


.result-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: left;
}

.result-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    margin-top: 0;
}

.result-step p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1rem;
}


/* Media Queries for Quiz from index.html <style> */
@media (max-width: 992px) {
    .quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .result-actions {
        max-width: 100%;
    }
    .result-actions .primary-btn, 
    .quiz-restart-btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .quiz-option {
        padding: 1.5rem;
    }
    .quiz-option-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    .quiz-option-icon i {
        font-size: 1.8rem;
    }
    .quiz-option h4 {
        font-size: 1.2rem;
    }
     .quiz-container {
         padding: 1.5rem;
     }
     .quiz-step h3 {
        font-size: 1.4rem;
     }
     .quiz-result h3 {
        font-size: 1.5rem;
     }
     .result-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
     }
}

/* --- REMOVE OLD/APPENDED QUIZ STYLES --- */
/* Removing lines from ~1534 to ~1907 */

.quiz-back-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quiz-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.quiz-back-btn i {
    margin-right: 5px;
} 