/* ===== VARIABLES ===== */
:root {
    --bleu-fonce: #0a1628;
    --bleu-principal: #1a3a6b;
    --bleu-moyen: #2563eb;
    --bleu-clair: #3b82f6;
    --bleu-tres-clair: #dbeafe;
    --blanc: #ffffff;
    --gris-clair: #f1f5f9;
    --gris-texte: #64748b;
    --or: #f59e0b;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    background: var(--blanc);
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--bleu-clair);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: white;
    border-bottom-color: var(--bleu-clair);
}

.nav-tel {
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    border-bottom: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-tel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== HERO ===== */
#accueil {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-principal) 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

#accueil::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

#accueil::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e7ff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--bleu-principal);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--or);
}

.stat-label {
    font-size: 0.9rem;
    color: #e0e7ff;
    margin-top: 0.5rem;
}

.hero-image {
    display: block;
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    color: white;
}

.hero-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-list i {
    color: #86efac;
}

.hero-zone {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* ===== SECTIONS COMMUNES ===== */
section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--bleu-tres-clair);
    color: var(--bleu-moyen);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--bleu-fonce);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gris-texte);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICES ===== */
#services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    border-radius: 16px 16px 0 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: var(--bleu-tres-clair);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu-moyen);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu-fonce);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--gris-texte);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== TARIFS ===== */
#tarifs {
    background: white;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.tarif-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.tarif-card.popular {
    border-color: var(--bleu-moyen);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tarif-icon {
    font-size: 2.5rem;
    color: var(--bleu-moyen);
    margin-bottom: 1rem;
}

.tarif-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bleu-fonce);
    margin-bottom: 1rem;
}

.tarif-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--bleu-moyen);
    margin-bottom: 0.5rem;
}

.tarif-unit {
    font-size: 0.95rem;
    color: var(--gris-texte);
    margin-bottom: 1.5rem;
}

.tarif-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tarif-features li {
    padding: 0.6rem 0;
    color: var(--bleu-fonce);
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.tarif-features li:last-child {
    border-bottom: none;
}

.tarif-features i {
    color: var(--bleu-moyen);
    margin-right: 0.8rem;
}

.tarif-card.popular .tarif-features i {
    color: #86efac;
}

.tarif-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--gris-texte);
}

.tarif-card.popular .tarif-note {
    color: #93c5fd;
}

.tarifs-extra {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tarif-extra-card {
    background: var(--gris-clair);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tarif-extra-card i {
    color: var(--bleu-moyen);
    font-size: 1.3rem;
    width: 30px;
}

.tarif-extra-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bleu-fonce);
}

.tarif-extra-card p {
    font-size: 0.85rem;
    color: var(--gris-texte);
    margin-top: 2px;
}

.tarif-extra-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--bleu-moyen);
    font-size: 1rem;
    white-space: nowrap;
}

/* ===== CONTACT ===== */
#contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--bleu-tres-clair);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu-moyen);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--gris-texte);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--bleu-fonce);
    font-weight: 500;
    text-decoration: none;
    margin-top: 2px;
    display: block;
    transition: color 0.2s;
}

.contact-value:hover {
    color: var(--bleu-moyen);
}

.contact-form-wrapper {
    background: var(--gris-clair);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bleu-fonce);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--bleu-moyen);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--bleu-principal);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background: var(--bleu-moyen);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bleu-fonce);
    color: #94a3b8;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.85rem;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10,22,40,0.98);
        padding: 1rem 2rem 2rem;
        gap: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .hero-image {
        display: none;
    }

    section {
        padding: 60px 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tarifs-grid {
        grid-template-columns: 1fr;
    }

    .tarif-card.popular {
        transform: scale(1);
    }

    .tarifs-extra {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .scroll-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .tarif-card {
        padding: 1.5rem 1rem;
    }

    .contact-form-wrapper {
        padding: 1.2rem;
    }
}
