/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1e2a36;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ===== VARIABLES ===== */
:root {
    --primary: #0f3b5c;
    --primary-dark: #082b42;
    --secondary: #e8b86b;
    --gray-light: #f8fafc;
    --gray: #e2e8f0;
    --text-dark: #1e2a36;
    --text-light: #4a5b6e;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

/* Logo et slogan (nouveau style) */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cabinet-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.slogan {
    font-size: 0.65rem;
    color: var(--text-light);
}

/* Ancien style de logo (conservé pour compatibilité) */
.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}
.logo p {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Menu de navigation */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}
nav a:hover, nav a.active {
    color: var(--secondary);
}
.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: background 0.2s;
}
.btn-contact:hover {
    background: var(--primary-dark);
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
}
footer a {
    color: white;
    text-decoration: none;
}
.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* ===== BOUTONS ===== */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
}
.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== SERVICES (cartes) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.service-card p {
    color: var(--text-light);
}
.service-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.service-card a:hover {
    color: var(--secondary);
}

/* ===== ABOUT ===== */
.about {
    background: var(--gray-light);
}
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}
.about-text {
    flex: 1;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}
.about-image {
    flex: 1;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.05);
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.stat {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    color: var(--text-light);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}
.contact-info {
    flex: 1;
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.contact-details {
    margin: 2rem 0;
}
.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.contact-details i {
    width: 24px;
    color: var(--primary);
}
.contact-form {
    flex: 1;
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 20px;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
}
.form-group textarea {
    resize: vertical;
}
button[type="submit"], .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover, .btn-primary:hover {
    background: var(--primary-dark);
}
.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.map-container {
    margin-top: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray);
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.blog-card .date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}
.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}
.testimonial-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-card h4 {
    color: var(--primary);
}

/* ===== SWIPER CARROUSEL ===== */
.swiper {
    padding: 2rem 1rem;
}
.swiper-slide {
    height: auto;
}
.swiper-pagination-bullet-active {
    background: var(--secondary) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100% - 70px);
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        padding: 2rem;
        z-index: 99;
    }
    nav.open {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .container {
        padding: 0 16px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    /* Cacher le texte du logo sur mobile */
    .logo-text {
        display: none;
    }
    .logo img {
        height: 40px;
    }
}
/* Agrandir le champ message du formulaire de contact */
textarea {
    min-height: 150px;
}

/* Uniformiser la largeur du champ message avec les autres champs */
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--gray-light);
    padding: 0.8rem 0;
    margin-bottom: 1rem;
    border-radius: 8px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
