/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2c5f8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3d5f;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5f 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255,255,255,0.2);
     color: #1a3d5f !important; /* On force le texte en bleu foncé sur le fond blanc */
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.2rem;
    color: #1a3d5f;
    margin-bottom: 20px;
}

.location-change {
    font-size: 1.1rem;
    color: #2c5f8d;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.1rem;
    color: #555;
}

/* ==========================================
   MAIN SERVICES
   ========================================== */
.main-services {
    padding: 50px 0;
    background-color: white;
}

.main-services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2c5f8d;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-highlight h3 {
    color: #1a3d5f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-highlight.special {
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5f 100%);
    color: white;
    border-left: 4px solid #ffc107;
}

.service-highlight.special h3 {
    color: white;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5f8d;
    margin: 10px 0;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c5f8d;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a3d5f;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: white;
}

/* ==========================================
   SPECIALTIES SECTION
   ========================================== */
.specialties {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.specialties h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1a3d5f;
    margin-bottom: 50px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.specialty-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.specialty-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.specialty-card h3 {
    color: #2c5f8d;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.specialty-card ul {
    margin: 15px 0 15px 20px;
}

.specialty-card li {
    margin-bottom: 8px;
}

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 60px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text h2 {
    color: #1a3d5f;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text h3 {
    color: #2c5f8d;
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.highlight {
    font-size: 1.1rem;
    color: #2c5f8d;
    font-weight: 500;
    margin-bottom: 20px;
}

.therapy-list,
.pricing {
    margin: 15px 0 15px 20px;
}

.therapy-list li,
.pricing li {
    margin-bottom: 10px;
}

/* ==========================================
   QUICK CONTACT
   ========================================== */
.quick-contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5f 100%);
    color: white;
}

.quick-contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffc107;
}

.contact-item a {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: #ffc107;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5f 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: 60px 0;
}

.intro-content {
    margin-bottom: 50px;
}

.featured-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #1a3d5f;
    font-size: 2rem;
    margin: 40px 0 20px;
}

.content-section h3 {
    color: #2c5f8d;
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================
   PHOBIAS SPECIFIC
   ========================================== */
.phobia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.phobia-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5f8d;
}

.phobia-card h3 {
    color: #1a3d5f;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Steps */
.steps {
    margin: 30px 0;
}

.step {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5f8d;
}

.step h4 {
    color: #1a3d5f;
    margin-bottom: 10px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid #2c5f8d;
}

.benefit-item h3 {
    color: #1a3d5f;
    margin-bottom: 10px;
}

/* Session Info */
.session-info,
.session-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.session-content ul {
    margin: 15px 0 15px 25px;
}

.session-content li {
    margin-bottom: 8px;
}

/* Testimonials */
.testimonials {
    margin: 50px 0;
}

.testimonial {
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #2c5f8d;
    margin: 20px 0;
    font-style: italic;
}

.testimonial cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: #2c5f8d;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
}

.cta-section h2 {
    color: #1a3d5f;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-box h3 {
    color: #1a3d5f;
    margin-bottom: 15px;
}

.note {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 15px;
}

/* ==========================================
   AUTISM SPECIFIC
   ========================================== */
.autism-header {
    background: linear-gradient(135deg, #5a67d8 0%, #434190 100%);
}

.characteristics-grid,
.principles,
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.characteristic,
.principle,
.advantage {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.characteristic h4,
.principle h4,
.advantage h3 {
    color: #1a3d5f;
    margin-bottom: 10px;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.service-autism {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #5a67d8;
}

.service-autism h3 {
    color: #434190;
    margin-bottom: 15px;
}

.service-autism ul {
    margin-left: 20px;
}

.service-autism li {
    margin-bottom: 8px;
}

/* Journey Steps */
.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.journey-step {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.journey-step h3 {
    color: #1a3d5f;
    margin-bottom: 10px;
}

/* FAQ */
.faq-items,
.faq-grid {
    margin: 30px 0;
}

.faq-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5f8d;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #1a3d5f;
    margin-bottom: 10px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    color: #2c5f8d;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5f8d;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Map */
.map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.map-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.access-info {
    text-align: center;
    margin-top: 30px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: #1a3d5f;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffc107;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    opacity: 0.9;
}

.footer-section a:hover {
    color: #ffc107;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/*
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .specialty-grid,
    .phobia-grid,
    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
*/

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* --- Base Mobile (Cache le menu par défaut) --- */
@media (max-width: 768px) {
    .logo h1 { font-size: 1.5rem; }

    /* Masquer la liste de liens */
    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Fond blanc du menu mobile */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 10px 0;
        gap: 0; /* On retire l'espace entre les éléments pour le mobile */
    }

    /* --- LA CORRECTION EST ICI --- */
    nav ul li a {

        display: block;
        width: 100%;
        padding: 15px 0;
        border-radius: 0;
        background-color: #1a3d5f;
    }

    /* Afficher le menu quand la classe 'active' est ajoutée */
    nav ul.active {
        display: flex !important;
        
    }
   

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Le bouton Hamburger */
    .mobile-menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        margin-left: auto; /* Aligne le bouton à droite */
    }

    .mobile-menu-icon span {
        height: 3px;
        width: 100%;
        background-color: #ffffff; /* Couleur des barres en blanc pour contraster avec le header bleu */
        border-radius: 10px;
        transition: 0.3s ease;
    }
     .txtbleu{ color: #1a3d5f !important; /* On force le texte en bleu foncé sur le fond blanc */}
}

/* --- Cache le bouton sur PC --- */
@media (min-width: 769px) {
    .mobile-menu-icon {
        display: none;
    }
    nav ul {
        display: flex; /* Votre affichage horizontal habituel */
    }
}
