/* ================================
   LANDING PAGE STYLES
   ================================ */

.bg-light {
  background-color: var(--gray-100);
}

/* ============================================
   NAVBAR - STYLES COMPLETS
   ============================================ */

/* Container principal de la navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   BRAND / LOGO
   ============================================ */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand i {
    font-size: 28px;
    color: #10b981;
}

.navbar-brand span {
    color: #0f172a;
}

.navbar-brand span:first-of-type {
    color: #10b981;
}

.logo {
    width: 50px;
    height: 50px;
}

/* ============================================
   MENU DESKTOP
   ============================================ */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Liens du menu */
.navbar-link {
    color: #0f172a;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #10b981;
}

.navbar-link:hover::after {
    width: 100%;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-ghost:active {
    transform: translateY(0);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

/* ============================================
   DROPDOWN
   ============================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
}

.dropdown-toggle:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    transform: scale(1.05);
}

.dropdown-toggle:active {
    transform: scale(0.95);
}

.dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 220px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: dropdownSlideIn 0.25s ease forwards;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #10b981;
}

.dropdown-item:active {
    background-color: #f1f5f9;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #10b981;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}

/* ============================================
   BOUTON TOGGLE MOBILE
   ============================================ */

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0f172a;
    padding: 4px 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-toggle:hover {
    background: #f8fafc;
    color: #10b981;
}

.navbar-toggle:active {
    transform: scale(0.95);
}

.navbar-toggle i {
    font-size: 28px;
}

/* ============================================
   MENU MOBILE - OVERLAY
   ============================================ */

.navbar-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Contenu du menu mobile */
.navbar-mobile-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.navbar-mobile-overlay.active .navbar-mobile-content {
    transform: translateX(0);
    animation: slideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
    }
    60% {
        transform: translateX(-8px);
    }
    80% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0);
    }
}

.navbar-mobile-overlay.closing .navbar-mobile-content {
    animation: slideOutRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Header du menu mobile */
.navbar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.navbar-mobile-header .navbar-brand {
    font-size: 20px;
}

.navbar-mobile-header .navbar-brand i {
    font-size: 24px;
}

.navbar-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.navbar-mobile-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.navbar-mobile-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Corps du menu mobile */
.navbar-mobile-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

/* Liens du menu mobile */
.navbar-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInItems 0.4s ease forwards;
}

.navbar-mobile-link:hover {
    background: #f8fafc;
    color: #10b981;
}

.navbar-mobile-link:active {
    background: #f1f5f9;
    transform: scale(0.98);
}

.navbar-mobile-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.navbar-mobile-link:hover i {
    color: #10b981;
}

/* Animation des items */
@keyframes slideInItems {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Délais progressifs */
.navbar-mobile-link:nth-child(1) { animation-delay: 0.05s; }
.navbar-mobile-link:nth-child(2) { animation-delay: 0.10s; }
.navbar-mobile-link:nth-child(3) { animation-delay: 0.15s; }
.navbar-mobile-link:nth-child(4) { animation-delay: 0.20s; }
.navbar-mobile-link:nth-child(5) { animation-delay: 0.25s; }
.navbar-mobile-link:nth-child(6) { animation-delay: 0.30s; }
.navbar-mobile-link:nth-child(7) { animation-delay: 0.35s; }
.navbar-mobile-link:nth-child(8) { animation-delay: 0.40s; }
.navbar-mobile-link:nth-child(9) { animation-delay: 0.45s; }
.navbar-mobile-link:nth-child(10) { animation-delay: 0.50s; }

/* Divider mobile */
.navbar-mobile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
    opacity: 0;
    animation: fadeInItems 0.4s ease 0.15s both;
}

@keyframes fadeInItems {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons dans le menu mobile */
.navbar-mobile-body .btn {
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInItems 0.4s ease 0.25s both;
}

/* Scrollbar personnalisée */
.navbar-mobile-content::-webkit-scrollbar {
    width: 4px;
}

.navbar-mobile-content::-webkit-scrollbar-track {
    background: transparent;
}

.navbar-mobile-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.navbar-mobile-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes et mobiles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar .container {
        padding: 0 16px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-brand i {
        font-size: 24px;
    }

    .navbar-mobile-content {
        width: 320px;
        max-width: 85%;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 12px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand i {
        font-size: 22px;
    }

    .navbar-mobile-content {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .navbar-mobile-header {
        padding: 16px 20px;
    }

    .navbar-mobile-body {
        padding: 16px 20px;
    }

    .navbar-mobile-link {
        padding: 14px 16px;
        font-size: 16px;
    }

    .navbar-mobile-body .btn {
        padding: 16px;
        font-size: 16px;
    }

    .navbar-toggle {
        font-size: 24px;
    }

    .navbar-toggle i {
        font-size: 24px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 16px;
    }

    .navbar-brand i {
        font-size: 20px;
    }

    .navbar-mobile-link {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ============================================
   SUPPORT DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    .navbar {
        background-color: #1e293b;
        border-bottom-color: #334155;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .navbar-brand span {
        color: #f1f5f9;
    }

    .navbar-link {
        color: #f1f5f9;
    }

    .navbar-link:hover {
        color: #34d399;
    }

    .btn-ghost {
        color: #f1f5f9;
        border-color: #475569;
    }

    .btn-ghost:hover {
        background: #334155;
        border-color: #64748b;
    }

    .dropdown-toggle {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .dropdown-toggle:hover {
        background: #10b981;
        border-color: #10b981;
        color: #ffffff;
    }

    .dropdown-menu {
        background-color: #1e293b;
        border-color: #334155;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .dropdown-item {
        color: #f1f5f9;
    }

    .dropdown-item:hover {
        background-color: #334155;
        color: #34d399;
    }

    .dropdown-item i {
        color: #94a3b8;
    }

    .dropdown-item:hover i {
        color: #34d399;
    }

    .dropdown-divider {
        background-color: #334155;
    }

    .navbar-mobile-content {
        background: #1e293b;
    }

    .navbar-mobile-header {
        background: #1e293b;
        border-bottom-color: #334155;
    }

    .navbar-mobile-header .navbar-brand span {
        color: #f1f5f9;
    }

    .navbar-mobile-link {
        color: #f1f5f9;
    }

    .navbar-mobile-link:hover {
        background: #334155;
        color: #34d399;
    }

    .navbar-mobile-link i {
        color: #94a3b8;
    }

    .navbar-mobile-link:hover i {
        color: #34d399;
    }

    .navbar-mobile-divider {
        background: #334155;
    }

    .navbar-mobile-close {
        color: #94a3b8;
    }

    .navbar-mobile-close:hover {
        background: #334155;
        color: #f1f5f9;
    }

    .navbar-toggle {
        color: #f1f5f9;
    }

    .navbar-toggle:hover {
        background: #334155;
        color: #34d399;
    }

    .btn-primary {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #059669, #047857);
    }

    .navbar-mobile-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Support des écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar {
        border-bottom-width: 0.5px;
    }
}
        
/* ============================================
   HERO SECTION - OVERLAY ET FLÈCHES CORRIGÉS
   ============================================ */

/* Container principal */
.hero {
    position: relative;
    min-height: 70vh;
    min-height: 70dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 0;
    background: #0f172a;
    background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.65)), url('../images/heroImg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay supplémentaire - Opacité réduite */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Contenu principal */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Partie texte */
.hero-text {
    color: white;
    max-width: 800px;
    width: 100%;
    animation: heroTextFade 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge */
.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    color: #34d399;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    align-self: center;
}

.hero-text .badge:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.hero-text .badge i {
    font-size: 16px;
}

/* Titre */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.04;
    margin-bottom: 14px;
    text-align: center;
    color: #ffffff;
    letter-spacing: -1.5px;
    max-width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /*text-transform: capitalize!important;*/
}

/* Sous-titre */
.hero-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
    /*max-width: 680px;
    margin-left: auto;
    margin-right: auto;*/
}

/* Boutons d'action */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

/* Bouton primaire */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.45);
}

.hero-buttons .btn-primary:active {
    transform: translateY(0);
}

/* Bouton secondaire */
.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-light:active {
    transform: translateY(0);
}

.hero-buttons .btn i {
    font-size: 18px;
}

/* Tags */
.hero-bottom-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    transform: translateY(-2px);
}

.hero-tag::before {
    content: '✓';
    margin-right: 6px;
    color: #34d399;
    font-weight: 700;
}

/* Flèches vers le bas - PLUS VISIBLES SUR GRANDS ÉCRANS */
.hero-down-arrows {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    margin-top: 8px;
}

.hero-down-arrows i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    animation: arrowDrop 1.8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-down-arrows i:hover {
    color: #34d399;
    transform: translateY(4px);
}

.hero-down-arrows i:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-down-arrows i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes arrowDrop {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Cercles flottants */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    animation: floatCircle1 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    animation: floatCircle2 18s ease-in-out infinite;
}

@keyframes floatCircle1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

@keyframes floatCircle2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 20px) scale(1.15);
    }
}

/* Vague */

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* au lieu de 120px ou 100px */
    z-index: 2;
    overflow: hidden;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes heroTextFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Grands écrans (1200px+) */
@media (min-width: 1200px) {
    .hero {
        min-height: 85vh;
        min-height: 85dvh;
    }

    .hero-content {
        padding: 40px 60px 50px;
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons .btn {
        padding: 16px 40px;
        font-size: 17px;
        min-width: 200px;
    }

    /* Flèches plus grandes et plus visibles sur grands écrans */
    .hero-down-arrows {
        gap: 10px;
        opacity: 1;
        margin-top: 12px;
    }

    .hero-down-arrows i {
        font-size: 26px;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .hero-down-arrows i:hover {
        color: #34d399;
        transform: translateY(4px) scale(1.1);
    }

    .circle-1 {
        width: 500px;
        height: 500px;
        top: -150px;
        right: -100px;
    }

    .circle-2 {
        width: 350px;
        height: 350px;
        bottom: -80px;
        left: -80px;
    }
}

/* Tablettes (769px - 1199px) */
@media (max-width: 1199px) and (min-width: 769px) {
    .hero {
        min-height: 85vh;
        min-height: 85dvh;
    }

    .hero-content {
        padding: 30px 32px 50px;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .hero-buttons .btn {
        padding: 12px 28px;
        font-size: 15px;
        min-width: 160px;
    }

    .hero-down-arrows {
        gap: 8px;
        opacity: 0.9;
    }

    .hero-down-arrows i {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.9);
    }

    .circle-1 {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -40px;
    }

    .circle-2 {
        width: 220px;
        height: 220px;
        bottom: -50px;
        left: -50px;
    }
}

/* Petites tablettes (600px - 768px) */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 0;
        background-position: center 30%;
    }

    .hero-content {
        padding: 20px 24px 40px;
    }

    .hero-text .badge {
        font-size: 12px;
        padding: 8px 18px;
        gap: 8px;
        margin-bottom: 24px;
    }

    .hero-text .badge i {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 28px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 24px;
        font-size: 15px;
        min-width: unset;
    }

    .hero-bottom-tags {
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-down-arrows {
        gap: 6px;
        opacity: 0.7;
    }

    .hero-down-arrows i {
        font-size: 17px;
        color: rgba(255, 255, 255, 0.8);
    }

    .circle-1 {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -40px;
        opacity: 0.5;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
        left: -30px;
        opacity: 0.5;
    }

    .hero-wave svg {
        min-height: 40px;
    }
}

/* Smartphones (320px - 599px) */
@media (max-width: 599px) {
    .hero {
        padding: 80px 0 0;
        min-height: 100vh;
        min-height: 100dvh;
        background-position: center 20%;
    }

    .hero-content {
        padding: 16px 16px 30px;
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-text .badge {
        font-size: 11px;
        padding: 6px 14px;
        gap: 6px;
        margin-bottom: 20px;
        white-space: normal;
        text-align: center;
    }

    .hero-text .badge i {
        font-size: 12px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 14px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-buttons .btn i {
        font-size: 16px;
    }

    .hero-bottom-tags {
        gap: 8px;
        margin-bottom: 16px;
    }

    .hero-tag {
        font-size: 11px;
        padding: 5px 14px;
    }

    .hero-tag::before {
        margin-right: 4px;
    }

    .hero-down-arrows {
        gap: 5px;
        opacity: 0.6;
    }

    .hero-down-arrows i {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.7);
    }

    .circle-1 {
        width: 150px;
        height: 150px;
        top: -40px;
        right: -30px;
        opacity: 0.3;
    }

    .circle-2 {
        width: 120px;
        height: 120px;
        bottom: -20px;
        left: -20px;
        opacity: 0.3;
    }

    .hero-wave svg {
        min-height: 30px;
    }
}

/* Très petits écrans (< 380px) */
@media (max-width: 380px) {
    .hero-content {
        padding: 12px 12px 24px;
    }

    .hero-text .badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .hero-text .badge i {
        font-size: 11px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .hero-bottom-tags {
        gap: 6px;
    }

    .hero-down-arrows i {
        font-size: 13px;
    }
}

/* Support de l'orientation paysage sur mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 0 0;
    }

    .hero-content {
        padding: 12px 24px 30px;
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
    }

    .hero-text .badge {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        max-width: 600px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 10px 20px;
        font-size: 13px;
        max-width: 200px;
    }

    .hero-bottom-tags {
        margin-bottom: 12px;
    }

    .hero-down-arrows i {
        font-size: 14px;
    }

    .circle-1,
    .circle-2 {
        opacity: 0.2;
    }

    .hero-wave svg {
        min-height: 25px;
    }
}

/* Support du dark mode */
@media (prefers-color-scheme: dark) {
    .hero {
        background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.65)), url('../images/heroImg.jpg');
    }
}

/* Support des écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.65)), url('../images/heroImg.jpg');
    }
}

/* Sections */
.section {
  padding: 80px var(--spacing-lg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-xl);
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 36px;
  color: var(--primary);
  transition: all var(--transition);
}

.step:hover .step-icon {
  transform: scale(1.1);
  background-color: var(--primary);
  color: var(--white);
}

.step h3 {
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 28px;
  color: var(--primary);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* Protection */
.protection-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.protection-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.protection-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.protection-item i {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.protection-item h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.protection-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.protection-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lock-icon {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px var(--spacing-lg) 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 16px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .hero {
    padding: 60px var(--spacing-md);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 60px var(--spacing-md);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .protection-content {
    grid-template-columns: 1fr;
  }

  .lock-icon {
    width: 150px;
    height: 150px;
    font-size: 70px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .circle-1, .circle-2, .circle-3 {
    opacity: 0.02;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .feature-card,
  .step {
    padding: var(--spacing-lg);
  }

  .footer {
    padding: 40px var(--spacing-md) 20px;
  }
}


/* ============================================
   SECTION CONTACT - Styles spécifiques
   ============================================ */

/* Grille de contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Carte du formulaire */
.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 6px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    color: #1f2937;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group input:focus + i,
.input-group select:focus + i,
.input-group textarea:focus + i {
    color: #3b82f6;
}

.input-group textarea {
    padding-top: 12px;
    resize: vertical;
    min-height: 120px;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Alerte de succès/erreur */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    font-size: 1.3rem;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes d'informations de contact */
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #10b981;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}

.contact-info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-card p {
    margin: 0;
    font-weight: 500;
    color: #1f2937;
}

.contact-info-card p a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card p a:hover {
    color: #10b981;
}

.contact-info-card small {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}

.contact-social {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-social p {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.contact-social .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-social .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #4b5563;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social .social-links a:hover {
    background: #10b981;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-infos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .contact-social {
        grid-column: span 2;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-infos {
        grid-template-columns: 1fr;
    }

    .contact-social {
        grid-column: span 1;
    }

    .contact-info-card {
        padding: 15px 20px;
    }

    .contact-info-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.2rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 10px 12px 10px 40px;
        font-size: 0.95rem;
    }

    .input-group i {
        left: 12px;
        font-size: 1rem;
    }

    .alert {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        border-left: none;
        border-top: 4px solid #10b981;
    }

    .contact-info-card:hover {
        transform: translateY(-3px);
    }

    .contact-social .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   AMÉLIORATIONS POUR features-grid
   ============================================ */

/* Quand action-card est utilisé dans la section contact */
#contact .action-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 25px;
}

#contact .action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

#contact .action-card i {
    font-size: 2rem;
    color: #3b82f6;
    background: #eff6ff;
    padding: 12px;
    border-radius: 12px;
}

/* Style pour le bouton d'envoi */
#contact .btn-primary {
    background: #10b981;
    color: white;
    border: none;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#contact .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

#contact .btn-primary:active {
    transform: translateY(0);
}

/* Liens dans les cartes */
#contact .action-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact .action-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Espacement du section-header */
#contact .section-header {
    margin-bottom: 20px;
}

/* ============================================
   HOW IT WORKS - STYLES MODERNISÉS
   ============================================ */

/* Container général */
#how-it-works {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px var(--spacing-lg);
}

/* Steps Desktop - Horizontal */
.steps-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-bottom: 40px;
}

.step-card {
    position: relative;
    padding: 0 10px;
}

.step-card-inner {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.step-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.step-card-inner:active {
    transform: scale(0.98);
}

/* Numéro d'étape */
.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.step-card-inner:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Icône */
.step-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.step-card-inner:hover .step-icon {
    transform: scale(1.1) rotate(8deg);
    background: var(--primary);
    color: white;
}

/* Titre */
.step-card-inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.step-card-inner:hover h3 {
    color: var(--primary);
}

/* Description */
.step-card-inner p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Bouton Voir plus */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-see-more:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-see-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-see-more:hover::after {
    transform: translateX(4px);
}

/* Flèches horizontales */
.step-arrow-horizontal {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--gray-300);
    font-size: 28px;
    transition: all 0.3s ease;
}

.step-card:hover .step-arrow-horizontal {
    color: var(--primary);
    transform: translateY(-50%) scale(1.2);
}

.step-card:last-child .step-arrow-horizontal {
    display: none;
}

/* Flèches verticales (mobile) */
.step-arrow-vertical {
    text-align: center;
    padding: 8px 0;
    color: var(--gray-300);
    font-size: 32px;
    transition: all 0.3s ease;
}

.step-card:hover .step-arrow-vertical {
    color: var(--primary);
    transform: scale(1.2);
}

.step-card:last-child .step-arrow-vertical {
    display: none;
}

/* Mobile layout - caché par défaut */
.steps-mobile {
    display: none;
}

/* Animation d'entrée */
.step-card {
    opacity: 0;
    transform: translateY(30px);
    animation: stepFadeIn 0.6s ease forwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODAL ULTRA MODERNE
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* Overlay avec effet glassmorphism */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: overlayFade 0.4s ease;
}

@keyframes overlayFade {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

/* Container principal */
.modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

/* Scrollbar personnalisée */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton fermeture */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg) scale(1.1);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Header avec badge */
.modal-header {
    padding: 40px 40px 24px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 28px 28px 0 0;
}

.modal-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6px 16px 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    letter-spacing: 0.5px;
}

.modal-step-number {
    font-size: 16px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
}

.modal-step-label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icône */
.modal-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -4px;
}

.modal-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    transition: transform 0.4s ease;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Corps du modal */
.modal-body {
    padding: 0 40px 40px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
}

.modal-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    margin: 0 0 28px 0;
    text-align: center;
}

/* Divider avec texte */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 20px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.modal-divider span {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Liste des détails */
.modal-details {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-details li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: default;
}

.modal-details li:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateX(4px);
}

.modal-details li i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.modal-details li:hover i {
    transform: scale(1.2);
}

.modal-details li span {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-btn-primary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}

.modal-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.modal-btn-primary i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.modal-btn-primary:hover i {
    transform: translateX(4px);
}

.modal-btn-secondary {
    padding: 14px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */

@media (max-width: 768px) {
    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-container {
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        animation: modalSlideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        padding: 28px 24px 20px;
        border-radius: 24px 24px 0 0;
    }

    .modal-body {
        padding: 0 24px 28px;
    }

    .modal-icon {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-details li {
        padding: 12px 16px;
    }

    .modal-details li span {
        font-size: 13px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .modal-btn-primary,
    .modal-btn-secondary {
        font-size: 14px;
        padding: 12px 20px;
    }

    .modal-step-badge {
        font-size: 12px;
        padding: 5px 14px 5px 10px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 24px 16px 16px;
    }

    .modal-body {
        padding: 0 16px 24px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn-secondary {
        order: 2;
    }

    .modal-btn-primary {
        order: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes */
@media (max-width: 1024px) {
    .steps-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .step-arrow-horizontal {
        display: none !important;
    }
    
    .step-card-inner {
        min-height: 280px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    #how-it-works {
        padding: 60px var(--spacing-md);
    }
    
    /* Cacher desktop, afficher mobile */
    .steps-desktop {
        display: none !important;
    }
    
    .steps-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .step-card {
        padding: 0;
        width: 100%;
    }
    
    .step-card-inner {
        min-height: auto;
        padding: 24px 20px;
        border-radius: var(--radius-lg);
        margin: 4px 0;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .step-card-inner:hover {
        transform: translateY(-4px);
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .step-card-inner h3 {
        font-size: 16px;
    }
    
    .step-card-inner p {
        font-size: 13px;
    }
    
    .btn-see-more {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .step-arrow-vertical {
        font-size: 28px;
        padding: 4px 0;
    }
    
    /* Modal responsive */
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 18px 20px 12px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .modal-body h4 {
        font-size: 17px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .modal-body ul li {
        font-size: 13px;
        padding: 8px 0 8px 30px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .step-card-inner {
        padding: 20px 16px;
    }
    
    .step-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .step-number {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE - WHY CHOOSE SAFEDEAL
   ============================================ */

/* Tablettes (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* Tablettes petites (600px - 768px) */
@media (max-width: 768px) and (min-width: 600px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

/* Smartphones (moins de 600px) */
@media (max-width: 599px) {
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Très petits écrans (moins de 380px) */
@media (max-width: 380px) {
    .why-grid {
        gap: 12px;
    }
}

/* ============================================
   POP-UP LÉGAL - STYLE UNIQUE
   ============================================ */

/* Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

/* Contenu du pop-up */
.popup-content {
    background: white;
    border-radius: 24px;
    max-width: 1100px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    animation: popupFade 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bouton fermeture */
.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Style du contenu */
.popup-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    padding-right: 40px;
}

.popup-content .popup-divider {
    width: 40px;
    height: 3px;
    background: #10b981;
    margin: 16px 0 24px 0;
    border-radius: 999px;
}

.popup-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 24px 0 12px 0;
}

.popup-content h3:first-of-type {
    margin-top: 0;
}

.popup-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px 0;
}

.popup-content ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.6;
}

.popup-content ul li:last-child {
    border-bottom: none;
}

.popup-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.popup-content .highlight {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.popup-content .highlight p {
    margin: 0;
    color: #1e293b;
    font-weight: 500;
}

.popup-content .meta {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 28px 24px;
        max-height: 85vh;
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-close {
        font-size: 28px;
        top: 12px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .popup-content h2 {
        font-size: 18px;
    }

    .popup-content h3 {
        font-size: 16px;
    }

    .popup-content p {
        font-size: 13px;
    }

    .popup-content ul li {
        font-size: 13px;
        padding: 6px 0 6px 24px;
    }
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: defilement 15s linear infinite;
}

@keyframes defilement {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}