/* ===== VARIABLES ET RESET ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #3b82f6;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* ===== CONTENEUR ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BANNIÈRE HEADER ===== */
.banner-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2847 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--secondary-color);
}

.banner-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.banner-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: slideInLeft 0.8s ease-out;
}

.banner-text {
    flex: 1;
    animation: slideInRight 0.8s ease-out;
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-tagline {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== HEADER ET NAVIGATION ===== */
.header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo-mini {
    height: 40px;
    width: auto;
}

.brand-info-mini h1 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: 700;
}

.logo {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px);
}

/* ===== HERO SECTION ===== */ 
.hero {
    background: url('./bannier.jpeg') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== SECTION PRESENTATION ===== */
.presentation {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.presentation-text h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.advantages-list {
    list-style: none;
    margin: 20px 0;
}

.advantages-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-light);
}

.advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.presentation-features {
    display: grid;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.services-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.services-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.services-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary-color);
}

.service-card:hover .service-illustration {
    animation: float 0.6s ease-in-out infinite;
}

.service-icon {
    width: 240px;
    height: 180px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-illustration {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-details {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.service-details li {
    color: var(--accent-color);
    font-size: 0.9rem;
    padding: 5px 0;
    font-weight: 500;
}

.services-note {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.services-note h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p.small {
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
    margin-top: 3px;
}

.availability {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 30px;
}

.availability h3 {
    margin-bottom: 10px;
}

/* ===== FORMULAIRE CONTACT ===== */
.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #16a34a;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-section a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Bannière responsive */
    .banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .banner-logo {
        height: 80px;
    }

    .banner-text h1 {
        font-size: 2rem;
    }

    .banner-tagline {
        font-size: 1rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .banner-header {
        padding: 40px 20px;
    }

    /* Header responsive */
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 60px 0;
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .presentation-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .brand-info-mini h1 {
        font-size: 1.1rem;
    }

    .section-header h2,
    .services-intro h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .services-intro,
    .section-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    /* Bannière très petit écran */
    .banner-logo {
        height: 60px;
    }

    .banner-text h1 {
        font-size: 1.5rem;
    }

    .banner-tagline {
        font-size: 0.9rem;
    }

    .banner-subtitle {
        font-size: 0.85rem;
    }

    .banner-header {
        padding: 30px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .logo-mini {
        height: 30px;
    }

    .brand-info-mini h1 {
        font-size: 1rem;
    }

    .main-nav ul {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .cta-section,
    .services-note {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }
    @media (max-width: 768px) {
        .hero {
            padding: 60px 0;
            min-height: 300px;
        }
    
        .hero-content h2 {
            font-size: 1.8rem;
        }
    }
    
    @media (max-width: 480px) {
        .hero {
            padding: 40px 0;
            min-height: 250px;
        }
    
        .hero-content h2 {
            font-size: 1.4rem;
        }
    
        .hero-content p {
            font-size: 1rem;
        }
    }
}
