/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- CSS Variables for Professional Theme --- */
:root {
    --primary-color: #007bff; /* Un bleu professionnel et confiant */
    --primary-color-dark: #0056b3;
    --secondary-color: #f8f9fa; /* Fond clair et propre */
    --text-color: #343a40; /* Gris foncé pour le texte */
    --heading-color: #003366; /* Bleu marine pour les titres */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* --- Global Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Éviter le scroll horizontal */
}

/* Images responsive par défaut */
img {
    max-width: 100%;
    height: auto;
}

main {
    flex-grow: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 600;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--secondary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    gap: 2rem;
}

.logo-container {
    flex-shrink: 0; /* Prevents the logo from shrinking */
    flex-basis: auto;
}

.logo {
    height: 50px; /* Adjust the height as needed */
    width: auto;
}

header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* SOS Médecin dans le header */
.header-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sos-medecin {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    background: none;
    -webkit-text-fill-color: var(--primary-color);
}

nav#main-nav {
    flex-shrink: 0;
}

header nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav > ul > li {
    position: relative;
    list-style: none;
}

header nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Dropdown Menu Styles - Desktop Only */
@media (min-width: 769px) {
    .dropdown {
        position: relative;
    }

    .dropdown > a {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .dropdown > a:hover {
        background: rgba(0, 86, 179, 0.08);
    }

    .dropdown-arrow {
        font-size: 0.65rem;
        transition: transform 0.3s ease;
        display: inline-block;
        margin-left: 0.2rem;
    }

    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        min-width: 260px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
        border-radius: 16px;
        padding: 1rem 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 9999;
        border: 2px solid rgba(0, 86, 179, 0.1);
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 0;
    }

    .dropdown-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 1rem 1.8rem;
        color: var(--text-color);
        border-bottom: none !important;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
    }
    
    .dropdown-menu a::before {
        content: '→';
        position: absolute;
        left: 1rem;
        opacity: 0;
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    .dropdown-menu a:hover {
        background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
        color: white !important;
        padding-left: 2.5rem;
        transform: translateX(5px);
    }
    
    .dropdown-menu a:hover::before {
        opacity: 1;
        left: 1.2rem;
    }
    
    .dropdown-menu li:first-child a {
        border-radius: 12px 12px 0 0;
    }
    
    .dropdown-menu li:last-child a {
        border-radius: 0 0 12px 12px;
    }
}

/* --- Hamburger Menu --- */
.menu-toggle-button {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    order: 2; /* Assure que le menu hamburger reste à droite */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--heading-color);
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.menu-toggle-button.is-active .hamburger-icon {
    background-color: transparent;
}
.menu-toggle-button.is-active .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle-button.is-active .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 51, 102, 0.8)), url('../images/stuff.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-brand {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
}

.hero-brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px;
    object-fit: contain;
}

#hero h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    opacity: 0.95;
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: #e63946 !important; /* Rouge pour l'attention */
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    animation: shake-animation 3s infinite;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.cta-button:hover {
    background-color: #d62828 !important; /* Rouge plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* WhatsApp button specific styles */
.cta-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
}

.cta-whatsapp:hover {
    background-color: #128c7e !important;
}

/* CTA Icon */
.cta-icon {
    font-size: 1.3em;
    margin-right: 5px;
    vertical-align: middle;
}

svg.cta-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Hero CTA Buttons Container */
.hero-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

/* Ensure animation works with flexbox */
.hero-cta-buttons .cta-button {
    will-change: transform;
}

/* --- Quick Contact Buttons --- */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.quick-contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-contact-btn {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.quick-contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.quick-contact-btn .icon {
    font-size: 1.2rem;
}

.quick-contact-btn img.icon {
    width: 20px;
    height: 20px;
}


/* --- Services Preview Section --- */
#services-preview {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--secondary-color);
}

#services-preview h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Updated service card styles */
.service-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid white;
    box-shadow: var(--box-shadow);
    padding: 15px;
    object-fit: scale-down;
    margin: 0 auto 1rem auto;
    display: block;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Generic Container & Page Header --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

#page-header {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

#page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- About Page Specific Styles --- */
#about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.mission-image img {
    width: 100%;
    max-height: 225px !important; /* Drastically reduced size as requested */
    height: auto;
    object-fit: cover; /* Prevents image distortion */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

/* --- Services Page Specific Styles --- */
#services-list {
    padding: 4rem 0;
}

.service-detail-card {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3.5rem;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--primary-color);
    padding-top: 180px; /* Espace pour la très grande icône */
}

.service-icon-large {
    /* COPIE EXACTE de service-icon mais EN ÉNORME */
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background-color: var(--secondary-color) !important;
    border: 6px solid white !important;
    box-shadow: var(--box-shadow) !important;
    padding: 30px !important;
    object-fit: scale-down !important;
    
    /* Positioning IDENTIQUE à service-icon */
    position: absolute !important;
    top: -100px !important; /* Débordement énorme */
    left: 50% !important;
    transform: translateX(-50%) !important; /* Center horizontally */
    
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: block;
}

.service-icon-large:hover {
    transform: translateX(-50%) scale(1.05) !important;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-detail-content p {
    margin-bottom: 1.5rem;
}

.service-detail-content ul {
    list-style: disc;
    padding-left: 20px;
}

.service-detail-content ul li {
    margin-bottom: 0.5rem;
}

/* Reverse layout for even cards */
.service-detail-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Contact Page Specific Styles --- */
#contact-content {
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form h3, .contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-info a {
    color: var(--text-color);
}
.contact-info a:hover {
    color: var(--primary-color);
}

#map {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* --- Animation Classes --- */
.service-card, .value-card, .service-detail-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe animation for the call button */
@keyframes shake-animation {
  /* Quick shake for ~0.5s every 3 seconds */
  0%, 17%, 100% { 
    transform: translateX(0);
  }
  2%, 6%, 10%, 14% { 
    transform: translateX(-8px) rotate(-1deg);
  }
  4%, 8%, 12%, 16% { 
    transform: translateX(8px) rotate(1deg);
  }
  /* Pause for the rest of the duration */
}


/* --- Floating Action Buttons --- */
.floating-contact-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    background-color: var(--primary-color-dark);
}

.fab.whatsapp {
    background-color: #25D366;
}
.fab.whatsapp:hover {
    background-color: #128C7E;
}

.fab img {
    width: 30px;
    height: 30px;
}

.fab .phone-icon {
    font-size: 26px;
}

/* --- App Promotion Section --- */
#app-promo {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    margin-top: 2rem;
}

.app-promo-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.app-promo-text {
    flex: 1;
}

.app-promo-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.app-promo-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.app-download-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-btn img {
    height: 50px; /* Adjust size as needed */
    width: auto; /* Maintain aspect ratio */
    transition: transform var(--transition-speed) ease;
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

.app-promo-image {
    flex: 1;
    text-align: center;
}

.app-promo-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Limit image height */
}

/* --- Legal Content Page (Terms, Privacy) --- */
#legal-content {
    padding: 4rem 0;
    max-width: 800px; /* Narrower for better readability */
}

#legal-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}


/* --- Footer --- */
footer {
    background-color: var(--heading-color);
    color: white;
    margin-top: auto;
}

/* Footer SEO Section */
.footer-seo-section {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    color: var(--text-color);
}

.footer-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.footer-seo-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.footer-cities-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-cities-list li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-cities-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-quartiers-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6c757d;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 2rem 5%;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #f8f9fa;
    margin: 0 10px;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Taille de police minimale pour la lisibilité */
    body {
        font-size: 16px; /* Minimum pour éviter le zoom automatique sur iOS */
    }
    
    /* Padding global pour éviter que le contenu touche les bords */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header {
        flex-wrap: wrap;
        padding: 0.8rem 5%;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background: white;
        z-index: 10000;
    }
    
    .menu-toggle-button {
        order: 1; /* Menu hamburger à gauche */
    }
    
    .logo-container {
        order: 2; /* Logo à droite */
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center; /* SOS MÉDECIN centré */
    }
    
    .sos-medecin {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
        font-weight: 900;
        color: var(--primary-color);
    }
    
    /* Ajouter un padding-top au main pour compenser le header fixe */
    main {
        padding-top: 120px;
    }
    
    nav#main-nav {
        order: 4;
    }

    /* --- Mobile Navigation --- */
    nav#main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
        z-index: 9998;
        overflow-y: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    nav#main-nav.mobile-menu-open {
        transform: translateX(0);
    }

    header nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
        width: 100%;
        padding: 0 2rem;
    }
    
    header nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    header nav a {
        font-size: 1.2rem;
        padding: 1.2rem 1rem;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: none !important;
        color: var(--heading-color);
        font-weight: 600;
    }
    
    header nav a.active {
        color: var(--primary-color);
        background: rgba(0, 123, 255, 0.08);
    }

    .menu-toggle-button {
        display: block;
        z-index: 9999;
        position: relative;
    }
    
    /* Overlay pour fermer le menu en cliquant à l'extérieur */
    nav#main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    nav#main-nav.mobile-menu-open::before {
        opacity: 1;
        visibility: visible;
    }
    
    /* Dropdown mobile - afficher en liste simple */
    .dropdown {
        width: 100%;
    }
    
    .dropdown > a {
        background: rgba(0, 123, 255, 0.05);
        font-weight: 700;
        color: var(--primary-color);
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: rgba(0, 123, 255, 0.02) !important;
        min-width: auto !important;
        width: 100%;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .dropdown-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu a {
        font-size: 1.05rem !important;
        padding: 1rem 2rem !important;
        margin: 0 !important;
        background: transparent !important;
        color: #495057 !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        font-weight: 500 !important;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        color: var(--primary-color) !important;
        background: rgba(0, 123, 255, 0.08) !important;
        padding-left: 2.5rem !important;
    }


    /* --- General Layout Adjustments --- */
    .hero-brand {
        font-size: 2.8rem;
        letter-spacing: 2px;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-brand-logo {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .app-promo-container {
        flex-direction: column;
        text-align: center;
    }

    .app-download-buttons {
        justify-content: center;
    }

    /* Stack multi-column layouts */
    .mission-section,
    .service-detail-card,
    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .service-detail-card {
        padding-top: 150px; /* Add space for the much bigger overflowing icon on mobile */
        align-items: center;
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .service-detail-card:nth-child(even) {
        flex-direction: column; /* Ensure it stacks correctly */
    }

    .service-icon-large {
        /* MOBILE - ÉNORME comme service-icon */
        width: 180px !important;
        height: 180px !important;
        border-radius: 50% !important;
        background-color: var(--secondary-color) !important;
        border: 6px solid white !important;
        box-shadow: var(--box-shadow) !important;
        padding: 25px !important;
        object-fit: scale-down !important;
        
        /* Position ABSOLUE comme sur home */
        position: absolute !important;
        top: -90px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        align-self: center;
    }

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

    /* Adjust font sizes for readability */
    h3 {
        font-size: 1.8rem;
    }
    
    /* Footer SEO - Mobile Responsive */
    .footer-seo-section {
        padding: 2rem 1rem;
    }
    
    .footer-seo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-seo-column h3 {
        font-size: 1.2rem;
    }
    
    .footer-cities-list li {
        margin-bottom: 0.8rem;
    }
    
    .footer-cities-list li a {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    .footer-quartiers-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    /* Floating buttons mobile */
    .floating-buttons {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    /* Touch targets - minimum 44x44px pour iOS */
    button, a, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Boutons CTA plus grands sur mobile */
    .cta-button, .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Hero CTA buttons on mobile - déjà en colonne par défaut */
    .hero-cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Navigation links plus espacés */
    header nav a {
        padding: 1rem 0.5rem;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   RÉSEAUX SOCIAUX FOOTER
   ============================================ */
.footer-social {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-social h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.social-links a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.15);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.social-links svg {
    width: 48px;
    height: 48px;
    display: block;
}

/* Responsive réseaux sociaux */
@media (max-width: 768px) {
    .footer-social {
        padding: 2rem 0;
    }
    
    .footer-social h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .social-links {
        gap: 1.2rem;
    }
    
    .social-links svg {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-links svg {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.faq-category {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-category h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--heading-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: #ffffff;
}

.faq-item.active .faq-question::after {
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    padding: 1.5rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 3rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

.faq-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: #ffffff;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.faq-cta h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #25D366;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-category {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-category h2 {
        font-size: 1.4rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
        padding-right: 3rem;
    }
    
    .faq-answer p, .faq-answer ul, .faq-answer ol {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
    }
    
    .faq-cta h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
