/* ===========================
   Variables et Thème Global
   =========================== */
:root {
    --primary-color: #007BFF;
    --primary-dark: #0056b3;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-light: #dee2e6;
    --white: #ffffff;
    --success-color: #198754;
    --danger-color: #dc3545;
}

/* ===========================
   Typographie
   =========================== */
* {
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===========================
   Navigation / Header
   =========================== */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    letter-spacing: -1px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ===========================
   Section Titles
   =========================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0 !important;
    border-bottom: 1px solid var(--border-light);
}

.hero-section h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 80px 0 !important;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 2;
}

/* ===========================
   Services Section
   =========================== */
.services-section {
    padding: 80px 0 !important;
    background-color: var(--light-gray);
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto;
}

.service-card h5 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: 80px 0 !important;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    padding: 1.2rem;
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-gray);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.accordion-item {
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0 !important;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #1a1a1a !important;
    color: var(--white);
    border-top: 1px solid var(--border-light);
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: #999;
    font-size: 0.95rem;
}

footer a {
    color: #999;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===========================
   Contact Page Styles
   =========================== */
.contact-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0 !important;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: var(--white);
}

.form-control:invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

/* Contact Info Cards */
.contact-info-card {
    padding: 2rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-card p {
    margin: 0;
    color: var(--text-muted);
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--primary-dark);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .nav-link {
        margin-left: 0;
        padding-bottom: 0.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .cta-section {
        padding: 40px 0 !important;
    }

    footer {
        padding: 3rem 0 !important;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        width: 100%;
    }

    .contact-info-card {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease backwards;
}

.contact-info-card {
    animation: fadeInUp 0.6s ease backwards;
}

/* ===========================
   Utilities
   =========================== */
.text-danger {
    color: var(--danger-color) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.sticky-top {
    top: 0;
    z-index: 1020;
}

/* Print Styles */
@media print {
    .navbar, footer, .cta-section {
        display: none;
    }
}
