
/* ========================================================== */
/* 1. CONFIGURATION GLOBALE & TYPOGRAPHIE                     */
/* ========================================================== */

:root {
    /* --- Variables de Couleurs --- */
    --color-primary: #004d99;
    --color-secondary: #6d2077;
    --color-accent-green: #28a745;
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-background: #f8f8f8;
    --color-background-pale: #e9f0f7;
    --color-background-violet: #F9F0FA;
    --color-white: #fff;
    --color-blue: #25c3d9;
    
    /* --- Variables d'Espacement et d'Effets --- */
    --padding-page-v: 30px;
    --spacing-lg: 30px;
    --spacing-md: 20px;
    --spacing-sm: 10px;
    --shadow-subtle: 0 2px 5px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1);

    /* --- Variables du Footer --- */
    --color-footer-bg: #333;
    --color-footer-text: #fff;
}

/* AJOUTER CES DEUX LIGNES EN HAUT DU FICHIER CSS */
#hamburger-btn,
.elegant-header .hamburger {
    display: none !important;
}



/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    height: 100%;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-top: 80px;
    width: 100%;
}
/* --- Typographie --- */
h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 5px;
}

p {
    margin: 5px;
}

/* Lien global */
a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Conteneur */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Décalage du contenu principal dû au header fixe */
main {
    padding-top: 80px;
}

/* Utilitaires */
.bg-light-gray {
    background-color: var(--color-background-pale);
}

.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.rounded-corners {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================================== */
/* 2. EN-TÊTE & NAVIGATION                                    */
/* ========================================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* --- Logo --- */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    margin-right: 12px;
    display: block;
}

.logo .logo-text {
    width: 250px;
    white-space: normal;
    font-size: 1em;
    font-weight: inherit;
    color: inherit;
    line-height: 1.2;
}

/* --- Navigation Principale --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin: 0 15px;
}

.main-nav ul li a {
    display: block;
    padding: 8px 0;
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.3s;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
    background-color: var(--color-background-pale);
}

/* --- Sous-menu déroulant --- */
.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 200px;
    background-color: var(--color-background-pale);
    border: 1px solid #ddd;
    padding: 10px 0 0 0;
    margin: -5px 0 0 0;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.main-nav .submenu li {
    position: static;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.main-nav .submenu li:last-child {
    border-bottom: none;
}


.main-nav .submenu a {
    padding: 10px 15px;
    color: var(--color-text-dark);
    font-weight: normal;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: none !important;
}

.main-nav .submenu a:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
    text-decoration: none;
}

.main-nav ul li.has-submenu:hover > .submenu {
    display: block;
}
/* ========================================================== */
/* 3. BOUTONS (BTN)                                           */
/* ========================================================== */

.btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin: 10px;
}

.btn.primary {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    border: 1px solid var(--color-secondary);
}

.btn.primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-secondary) !important;
    border: 2px solid var(--color-secondary);
    font-weight: 600;
}

.btn.secondary:hover {
    background-color: var(--color-background-pale);
}

.btn.accent {
    background-color: var(--color-accent-green);
    color: var(--color-white) !important;
    border: 1px solid var(--color-accent-green);
    padding: 8px 15px;
}

.btn.accent:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn.login {
    background-color: transparent;
    color: var(--color-secondary) !important;
    border: 1px solid var(--color-secondary);
    padding: 8px 15px;
    font-weight: normal;
}

.btn.login:hover {
    background-color: var(--color-background-pale);
}

.btn.btn-sm {
    padding: 7px 14px;
    font-size: 0.9em;
}

.btn-signup {
    background-color: var(--color-secondary);
    color: white !important;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 2px 8px rgba(109, 32, 119, 0.4);
}

.btn-signup:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: 0 4px 10px rgba(37, 195, 217, 0.6);
    transform: translateY(-1px);
}

.btn-login {
    background-color: var(--color-primary);
    color: white !important;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 77, 153, 0.4);
}

.btn-login:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: 0 4px 10px rgba(37, 195, 217, 0.6);
    transform: translateY(-1px);
}

/* ========================================================== */
/* 4. BANNIÈRE HERO (UNIFIÉE)                                 */
/* ========================================================== */

.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0px;
    margin-top: 0px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-overlay h1,
.hero-banner h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white !important;
}

.hero-overlay p,
.hero-banner p {
    font-size: 1.3em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    color: white !important;
    margin: 5px;
}

/* --- VARIANTE SANS MODE SOMBRE (PAGE ORGANISATION) --- */
.hero-banner.hero-bright .hero-image {
    filter: brightness(90%) !important;
}

.hero-banner.hero-bright::after {
    background: linear-gradient(to bottom, 
                                rgba(0, 0, 0, 0) 0%, 
                                rgba(0, 0, 0, 0.1) 40%, 
                                rgba(0, 0, 0, 0.3) 100%) !important;
}

.hero-banner.hero-bright .hero-overlay h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-banner.hero-bright .hero-overlay p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* ========================================================== */
/* 5. SECTIONS PAGE D'ACCUEIL                                 */
/* ========================================================== */

/* --- WELCOME Block --- */
.welcome-block {
    background-color: var(--color-background-pale);
    padding: 40px 0;
    margin-bottom: -120px;
    z-index: 20;
    position: relative;
}

.welcome-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.presentation-text {
    flex: 2;
}

.president-message {
    flex: 1;
    margin: 0;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: 0px solid var(--color-secondary);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.president-message h3,
.president-message p,
.president-message a {
    color: var(--color-white);
}

.president-message .quote {
    color: var(--color-white);
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.president-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    margin-bottom: 15px;
    position: relative;
}

/* --- SERVICES/MISSIONS --- */
.services {
    padding-top: 150px;
    padding-bottom: 50px;
    background-color: var(--color-background);
    position: relative;
    z-index: 10;
    text-align: center;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
}

.card {
    background-color: var(--color-white);
    border: none;
    border-radius: 8px;
    width: 30%;
    margin: 10px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    padding: 30px 20px;
    overflow: hidden;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image-mission {
    width: 100%;
    height: 150px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.mission-image {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* --- ACTUALITÉS & INFOS --- */
.news {
    background-color: var(--color-white);
    padding: var(--padding-page-v) 0;
    text-align: center;
}

.more-news {
    margin-top: 30px;
    display: inline-block;
}

.news-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px auto;
    max-width: 1000px;
}

.news-grid-2x3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin: 30px auto;
    max-width: 1000px;
}

.news-item-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    background-color: var(--color-white);
    text-align: left;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border-radius: 8px;
}

.news-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
}

.news-image-area {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content-area {
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.news-item {
    text-align: left;
    padding: 20px;
    border-left: 3px solid var(--color-secondary);
    background-color: var(--color-background);
    width: 40%;
    min-width: 250px;
    box-shadow: var(--shadow-subtle);
}

.news-item h4 {
    margin-top: 0;
    color: var(--color-primary);
}

.actualites {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--color-background);
    position: relative;
    z-index: 10;
    text-align: center;
}

/* --- ABOUT US --- */
.about-us {
    background-color: var(--color-background-pale);
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: normal;
    gap: 40px;
}

.about-content .text-block {
    flex: 2;
}

.about-content .image-block {
    flex: 2;
    min-height: 250px;
    border-radius: 8px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- SANTÉ PUBLIQUE --- */
.public-health {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-white);
}

.public-cards {
    justify-content: space-around;
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 30px auto;
    max-width: 1000px;
}

.card-public {
    flex: 1;
    background-color: var(--color-background-pale);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d0e0f0;
}

.card-public h4 {
    color: var(--color-secondary);
}

.card-icon-public {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

/* --- FINAL CTA --- */
.final-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--padding-page-v) 0;
    text-align: center;
}

.final-cta h2 {
    color: var(--color-white);
    margin-bottom: 25px;
}

.final-cta .btn.large {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* ========================================================== */
/* 6. PAGES INTERNES & FORMULAIRES                            */
/* ========================================================== */

.page-content {
    padding-bottom: var(--padding-page-v);
    min-height: 60vh;
}

.search-form, .contact-form {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contact-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-form-area {
    flex: 2;
}

.contact-info-area {
    flex: 1;
}

/* ========================================================== */
/* 7. DOCUMENTS (documents.php)                               */
/* ========================================================== */

.doc-icon {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.doc-icon svg {
    width: 80px;
    height: 80px;
    fill: white;
    opacity: 0.9;
}

/* ========================================================== */
/* 8. ASSOCIATION (association.php)                           */
/* ========================================================== */

.association-hero {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 0;
}

.association-hero h1 {
    color: var(--color-white);
    font-size: 2.8em;
    margin-bottom: 30px;
}

.mission-quote {
    border-left: 5px solid var(--color-accent-green);
    padding-left: var(--spacing-md);
    line-height: 1.5;
    font-style: italic;
    font-size: 1.2em;
    margin: var(--spacing-lg) auto;
    max-width: 800px;
}

.mission-quote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.presentation-dmd {
    padding-top: var(--padding-page-v);
    padding-bottom: var(--padding-page-v);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .presentation-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.presentation-image-block {
    text-align: center;
}

.presentation-image-block .img-responsive {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.presentation-image-block .caption {
    margin-top: var(--spacing-sm);
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9em;
}

.document-links {
    list-style: none;
    padding: 0;
}

.document-links li {
    padding: var(--spacing-sm) 0;
    border-bottom: 0px solid #ddd;
    font-size: 0.9em;
}

.document-links li a {
    display: block;
    color: var(--color-white);  /* Blanc au lieu de bleu */
    font-style: italic;
    transition: background-color 0.3s, padding-left 0.3s, color 0.3s;
    font-size: 0.95em;
    text-decoration: underline;  /* Souligné pour mieux voir */
    padding: 8px 0;  /* Plus d'espace */
}

.document-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);  /* Fond blanc transparent */
    padding-left: 10px;  /* Décalage à gauche */
    text-decoration: none;
    border-radius: 3px;
    color: var(--color-white);  /* Reste blanc */
}

.governance-section {
    padding-top: var(--padding-page-v);
    padding-bottom: var(--padding-page-v);
    text-align: center;
    background-color: var(--color-background-pale);
}

.governance-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
}

.team-grid-container {
    max-width: 25%;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.team-member {
    flex: 0 0 160px;
    text-align: center;
    padding: 0 15px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 15%;
    object-fit: cover;
    margin: 0 auto var(--spacing-sm) auto;
    border: 2px solid var(--color-secondary);
}

.team-member h4 {
    margin: var(--spacing-sm) 0 0 0;
    font-size: 1em;
    color: var(--color-text-dark);
}

.team-member .role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85em;
    margin: 0;
}

.commissions-section {
    padding: 60px 0;
    text-align: center;
}

.commission-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: left;
}

.commission-card {
    background-color: var(--color-background-pale);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--color-primary);
    transition: border-top 0.3s;
}

.commission-card:hover {
    border-top: 5px solid var(--color-secondary);
}

.commission-card h4 {
    color: var(--color-primary);
    margin-top: 0;
    font-size: 1.1em;
}

.stats-section {
    padding: var(--padding-page-v) 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: 800;
    color: var(--color-accent-green);
    line-height: 1;
}

.stat-label {
    margin-top: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: 500;
}

/* ========================================================== */
/* 9. ANNUAIRE (annuaire.php)                                 */
/* ========================================================== */





.banner {
    position: relative;
    height: 400px;
    background: url('../img/annuaire-dentaire3.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
}

.banner-content p {
    font-size: 1.3em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.search-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.search-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.search-form .button-group .annuaire-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form .button-group .annuaire-btn.primary {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
}

.search-form .button-group .annuaire-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 71, 137, 0.4);
}

.search-form .button-group .annuaire-btn.secondary {
    background: #f0f0f0;
    color: #333;border: 1px solid #ddd;
}

.search-form .button-group .annuaire-btn.secondary:hover {
    background: #e8e8e8;
}

.results-area {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.results-area h2 {
    color: #8B4789;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.card-name {
    color: #333;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.badge-numero {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
}

.badge-specialite {
    background: #003d82;
}

.card-info {
    flex: 1;
    margin-bottom: 10px;
}

.info-row {
    margin-bottom: 10px;
    font-size: 14px;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #777;
}

.voir-plus-btn {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.voir-plus-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 71, 137, 0.4);
}

/* Modale Dentiste */
.dentist-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.dentist-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.dentist-modal-header {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.dentist-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.dentist-modal-close {
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.dentist-modal-close:hover {
    transform: rotate(90deg);
}

.dentist-modal-body {
    padding: 30px;
    line-height: 1.7;
    color: #333;
}

.dentist-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dentist-info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8B4789;
}

.dentist-info-label {
    font-weight: 600;
    color: #8B4789;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.dentist-info-value {
    font-size: 1.05em;
    color: #333;
    margin-top: 5px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B4789;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================================== */
/* 10. ÉVÉNEMENTS & ACTUALITÉS (Pages spécifiques)            */
/* ========================================================== */

.feed-item, .event-item {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.feed-item-image, .event-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ========================================================== */
/* 11. MODALES GÉNÉRIQUES (Thème violet unifié)               */
/* ========================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 85%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.close:hover,
.close:focus {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    line-height: 1.7;
    color: #333;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
}

.modal-info-label {
    font-weight: 600;
    color: #8B4789;
    font-size: 0.85em;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.modal-info-value {
    font-size: 1.05em;
    color: #333;
}

.modal-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.badge-gratuit {
    background-color: #d4edda;
    color: #155724;
}

.badge-payant {
    background-color: #fff3cd;
    color: #856404;
}

.modal-description {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #8B4789;
    border-radius: 4px;
    font-size: 1.05em;
}

.modal-description h3 {
    color: #8B4789;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.modal-footer .btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 71, 137, 0.4);
}

/* ========================================================== */
/* 12. CONTACT & DOLÉANCE (Messages de succès)                */
/* ========================================================== */

.success-message {
    background: white;
    color: #333;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease-out;
}

.success-message h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.success-message p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    color: #8B4789;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles spécifiques doléance */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.file-input-wrapper input[type="file"]:hover {
    border-color: #8B4789;
}

.file-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* ========================================================== */
/* 13. ESPACES PATIENTS (Cartes cliquables)                   */
/* ========================================================== */

.card-public-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.card-public-link:hover {
    transform: translateY(-8px);
}

.card-public {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card-public-link:hover .card-public {
    box-shadow: 0 8px 25px rgba(139, 71, 137, 0.3);
    border: 2px solid #8B4789;
}

.card-public h4 {
    color: #8B4789;
    font-size: 1.2rem;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.card-public-link:hover .card-public h4 {
    color: #c595cb;
}

.card-public p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0;
}

.card-icon-public {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-public-link:hover .card-icon-public {
    transform: scale(1.1);
}

.card-arrow {
    display: inline-block;
    font-size: 24px;
    color: #8B4789;
    margin-top: 15px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.card-public-link:hover .card-arrow {
    transform: translateX(5px);
    color: #c595cb;
}

.card-public-link {
    animation: fadeInUp 0.6s ease-out;
}

.card-public-link:nth-child(1) {
    animation-delay: 0.1s;
}

.card-public-link:nth-child(2) {
    animation-delay: 0.2s;
}

.card-public-link:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* ========================================================== */
/* 14. FOOTER                                                  */
/* ========================================================== */

footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 40px 50px;
    border-bottom: 1px solid #555;
}

.footer-contact h3, .footer-links h3 {
    color: var(--color-white);
    font-weight: bold;
}

.footer-contact p, .footer-links a {
    color: var(--color-footer-text);
    margin-bottom: 5px;
    display: block;
}

.footer-links a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

/* Réseaux sociaux */
.footer-social {
    text-align: center;
}

.footer-social h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon i {
    color: white;
}

/* Copyright */
.copyright {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 15px 50px;
    font-size: 0.9em;
    margin: 0;
}

.separator {
    margin: 0 10px;
    color: #666;
}

.link-admin {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.link-admin:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* ========================================================== */
/* 15. VISIONNEUSE D'IMAGES AVEC ZOOM (Actualités & Événements) */
/* ========================================================== */

/* Curseur pour indiquer que les images sont cliquables */
.feed-item-image,
.event-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-item-image:hover,
.event-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Modal de la visionneuse d'images */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

/* Conteneur de l'image */
.image-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image dans la visionneuse */
.image-viewer-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
}

.image-viewer-img.zoomed {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

/* Bouton fermer */
.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-viewer-close:hover {
    transform: rotate(90deg);
    background: rgba(139, 71, 137, 0.8);
}

/* Contrôles de zoom */
.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(139, 71, 137, 0.9);
    transform: scale(1.1);
}

/* Indicateur de zoom */
.zoom-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10001;
}

/* Info de l'image */
.image-info {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    z-index: 10001;
}

.image-info h3 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 18px;
}

.image-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive pour la visionneuse d'images */
@media (max-width: 768px) {
    .image-viewer-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }
    
    .zoom-controls {
        bottom: 20px;
        gap: 10px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .zoom-indicator {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .image-info {
        bottom: 80px;
        padding: 10px 20px;
        max-width: 90%;
    }
    
    .image-info h3 {
        font-size: 16px;
    }
    
    .image-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .image-viewer-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zoom-indicator {
        padding: 6px 12px;
        font-size: 12px;
    }
}
                
/* ========================================================== */
/* 16. MODAL DENTISTE - STYLES ADDITIONNELS                  */
/* ========================================================== */

/* Style pour les éléments qui prennent toute la largeur */
.dentist-info-full-width {
    grid-column: 1 / -1;
}

/* Style pour les liens dans la modal */
.dentist-info-value a {
    color: #8B4789;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dentist-info-value a:hover {
    color: #6a3567;
    text-decoration: underline;
}

/* Style pour le texte multiligne */
.dentist-info-value br {
    margin: 0.5em 0;
}

/* Amélioration de l'espacement pour les champs longs */
.dentist-info-full-width .dentist-info-value {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}


























/* ========================================================== */
/* STYLES GÉNÉRAUX (DESKTOP) */
/* ========================================================== */

/* 1. Masque le BOUTON HAMBURGER (le carré) sur grand écran */
.elegant-header .hamburger {
    display: none !important;
}


/* 2. Masque l'ICÔNE de bascule de sous-menu (la flèche) sur grand écran */
.elegant-header .main-nav .submenu-toggle {
    display: none !important;
}

/* 3. S'assure que le sous-menu s'ouvre au survol sur Desktop (comportement par défaut) */
.elegant-header .main-nav ul li.has-submenu:hover > .submenu {
    /* Assurez-vous d'avoir ici le style d'affichage pour les sous-menus en Desktop (ex: display: block; ou flex) */
    display: block; 
}

/* Vous pourriez ajouter ici d'autres styles spécifiques au Desktop si nécessaire */

/* ========================================================== */
/* MEDIA QUERY (MOBILE - MAX-WIDTH: 768PX) */
/* ========================================================== */
/* @media (max-width: 768px) { */
    @media (max-width: 1309px) {
    /* --- Styles provenant du Mobile (768px) --- */
    .service-cards, .public-cards, .contact-grid, .footer-content, .welcome-content, .about-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
        .search-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        padding: 15px;
    }

 .search-form {
        order: 1 !important;
        position: static !important;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
 .results-area {
        order: 2 !important;
        padding: 20px;
    }
     .results-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
    }

    .card, .news-item, .card-public, .footer-contact, .footer-links {
        width: 100%;
        margin-bottom: 20px;
    }
       .team-grid-container {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }

 .team-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
        max-width: 400px; /* Limite la largeur pour un meilleur centrage */
    }

    .team-member {
        width: 100%;
        max-width: 280px;
        margin-bottom: 25px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .news-item {
        min-width: unset;
    }

    .about-content .image-block {
        order: 1;
        width: 100%;
    }

    .about-content .text-block {
        order: 2;
        flex: auto;
        width: 100%;
    }

    .contact-form-area, .contact-info-area {
        width: 100%;
    }

    .hero-banner {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 2em;
    }

    .hero-overlay {
        padding: 0 10px;
    }

    .welcome-block {
        margin-bottom: 0;
        padding: 40px 0;
        z-index: auto;
    }

    .welcome-content {
        box-shadow: none;
        padding: 15px;
    }

    .services {
        padding-top: 50px;
        z-index: auto;
    }

    .presentation-grid, .team-grid, .commission-list-grid, .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-grid-2x3 {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header h2 {
        font-size: 1.4em;
        padding-right: 40px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .card-public {
        padding: 25px 15px;
    }

    .card-icon-public {
        width: 60px;
        height: 60px;
    }

    .card-public h4 {
        font-size: 1.1rem;
    }

    .card-public p {
        font-size: 0.9rem;
    }

    .cookie-banner {
        padding: 15px 20px;
        flex-direction: column;
    }

    /* --- Styles de l'ancienne section 992px adaptés pour 768px --- */
    /* Ces styles peuvent être nécessaires pour le bon fonctionnement du header/menu mobile. */
    .elegant-header {
        flex-wrap: wrap; 
        justify-content: space-between;
        align-items: center;
        padding-right: 80px; /* Espace pour le bouton hamburger */
    }

    /* 1. Affiche le bouton hamburger sur mobile (maintenant à 768px) */
    #hamburger-btn,
    .elegant-header .hamburger {
        display: block !important; 
        position: absolute; 
        top: 20px; 
        right: 20px;
        z-index: 1010; 
        background: none;
        border: none;
        color: #8B4789; 
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
    }

    /* 2. Masque les boutons d'action quand le menu est OUVERT */
    .elegant-header.menu-open .header-actions {
        display: none !important; 
    }
    
    /* 3. Force les boutons 'header-actions' à s'aligner horizontalement quand le menu est FERMÉ */
    .elegant-header .header-actions {
        display: flex; /* Active Flexbox */
        gap: 10px; 
        margin-left: auto; 
        padding-right: 55px;
    }

    .elegant-header .header-actions .btn {
        flex-shrink: 0; 
    }

    /* --- Styles de la Navigation (Menu Accordéon) --- */

    /* 4. Masque et Positionne le Menu de Navigation complet */
    .elegant-header .main-nav {
        display: none; /* Masqué par défaut */
        position: fixed; 
        top: 0; 
        left: 0;
        width: 100%;
        height: 100vh; 
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000; 
        overflow-y: auto; 
        padding-top: 80px;
    }

    /* Affiche le menu lorsque la classe 'active' est ajoutée par JS */
    .elegant-header .main-nav.active {
        display: block;
    }
    
    /* Stylise la liste des liens en colonne */
    .elegant-header .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .elegant-header .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .elegant-header .main-nav a {
        padding: 15px 20px;
        display: block;
        font-size: 1.2rem;
    }
    
    /* 5. Gestion des Sous-menus (Accordéon) */
    
    /* Masque les sous-menus par défaut */
    .elegant-header .main-nav .submenu {
        position: static; 
        display: block; 
        background-color: #f7f7f7;
        padding-left: 20px;
        height: 0; 
        overflow: hidden; 
        transition: height 0.3s ease-in-out; 
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Règle qui affiche le sous-menu */
    .elegant-header .main-nav li.open .submenu {
        height: auto; 
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    /* 6. Styles de l'Icône de Bascule (Flèche) */
    
    .elegant-header .main-nav .has-submenu a {
        position: relative;
        padding-right: 40px; 
        cursor: pointer; 
    }
    
    /* Affiche et positionne l'icône de sous-menu sur mobile */
    .elegant-header .main-nav .submenu-toggle {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    /* Fait pivoter l'icône quand le menu est ouvert */
    .elegant-header .main-nav li.open .submenu-toggle {
        transform: translateY(-50%) rotate(-180deg);
    }

    /* Styles d'une media query plus petite que 768px */
    @media (max-width: 480px) {
        .hero-banner {
            height: 250px;
        }

        .hero-banner h1,
        .hero-overlay h1 {
            font-size: 1.5em;
        }
    }

    /* --- Styles spécifiques pour la section Organisation (team-member) --- */


    
    .news-grid-2x2 {
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }
    
    .news-grid-2x3 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .news-item-card {
        width: 100%;
        display: flex; 
        flex-direction: column; 
        max-width: none; 
    }
    


      /* NOUVELLE VERSION - Affichage en grille responsive */
    .public-cards {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }
    
    /* Le lien/élément enfant prend toute la largeur disponible */
    .public-cards > .card-public-link { 
        width: 100% !important;
        display: block !important;
    }
    
    /* Contenu de la carte bien centré */
    .card-public {
        width: 100%; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        height: 100%;
    }












    /* ========================================================== */
/* CORRECTION DE LA SECTION PRÉSIDENT EN MODE RESPONSIVE */
/* ========================================================== */

/* Styles généraux pour la section welcome-block */
.welcome-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.presentation-text {
    flex: 1;
}

.president-message {
    flex: 0 0 auto;
    max-width: 400px;
}

/* RESPONSIVE - Tablettes et Mobiles */
@media (max-width: 1309px) {
    
    /* Réorganisation en colonne pour la section welcome */
    .welcome-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px;
    }
    
    /* La carte président prend toute la largeur disponible */
    .president-message {
        width: 100% !important;
        max-width: 500px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Photo du président - taille fixe et centrée */
    .president-photo {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
        border: 4px solid #8B4789;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    /* Titre du message président */
    .president-message h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        color: #8B4789 !important;
        text-align: center !important;
    }
    
    /* Citation/texte du président */
    .president-message .quote {
        text-align: center !important;
        font-style: italic;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px !important;
        padding: 0 15px;
    }
    
    /* Bouton "Lire le message complet" */
    .president-message .btn {
        margin: 15px auto 0 auto !important;
        display: inline-block !important;
    }
    
    /* Texte de présentation - largeur complète */
    .presentation-text {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* RESPONSIVE - Mobiles uniquement */
@media (max-width: 600px) {
    
    /* Photo encore plus petite sur mobile */
    .president-photo {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 15px !important;
    }
    
    /* Titre plus petit */
    .president-message h3 {
        font-size: 1.1rem !important;
    }
    
    /* Texte plus compact */
    .president-message .quote {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
    
    /* Carte président - padding réduit */
    .president-message {
        padding: 15px;
        max-width: 100% !important;
    }

        /* ✅ CENTRAGE DU CONTENEUR EN MOBILE */
    .team-grid-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        padding: 0 15px;
    }
    
    /* ✅ CENTRAGE DE LA GRILLE EN MOBILE */
    .team-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto !important;
    }
    
    .team-member {
        max-width: 100% !important;
        min-width: 260px !important;
        padding: 15px 10px;
        margin: 0 auto !important;
    }
    
    /* Photo encore plus petite sur mobile */
    .member-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Nom : taille réduite mais toujours sur une ligne */
    .team-member .member-name {
        font-size: 1rem !important;
        white-space: nowrap !important;
        padding: 0 5px;
    }
    
    .team-member .member-role {
        font-size: 0.9rem !important;
    }

}

/* RESPONSIVE - Tablettes (entre mobile et desktop) */
@media (min-width: 601px) and (max-width: 1309px) {
    
    .president-photo {
        width: 140px !important;
        height: 140px !important;
    }
    
    .president-message h3 {
        font-size: 1.4rem !important;
    }
    
    .president-message .quote {
        font-size: 1.05rem !important;
    }
}





/* ========================================================== */
/* CORRECTION DE LA BANNIÈRE HERO EN MODE RESPONSIVE */
/* ========================================================== */

/* Styles de base pour la bannière */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-overlay .container {
    text-align: center;
    color: white;
    max-width: 900px;
}

.hero-overlay h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Groupe de boutons CTA */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-group .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ========================================================== */
/* RESPONSIVE - TABLETTES ET MOBILES */
/* ========================================================== */

@media (max-width: 1309px) {
    
    .hero-banner {
        height: 400px;
    }
    
    .hero-overlay h1 {
        font-size: 2em;
        margin-bottom: 12px;
    }
    
    .hero-overlay p {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    /* Boutons - s'empilent en colonne */
    .cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .cta-group .btn {
        width: 100%;
        max-width: 350px;
        padding: 14px 25px;
        font-size: 1rem;
        text-align: center;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    .hero-banner {
        height: 350px;
    }
    
    .hero-overlay {
        padding: 15px;
    }
    
    .hero-overlay h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero-overlay p {
        font-size: 0.95em;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .cta-group {
        gap: 10px;
    }
    
    .cta-group .btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        /* Permet le retour à la ligne si le texte est trop long */
        white-space: normal;
        line-height: 1.3;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS */
/* ========================================================== */

@media (max-width: 400px) {
    
    .hero-banner {
        height: 300px;
    }
    
    .hero-overlay h1 {
        font-size: 1.3em;
    }
    
    .hero-overlay p {
        font-size: 0.9em;
    }
    
    .cta-group .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ========================================================== */
/* AJUSTEMENT DE L'IMAGE POUR MEILLEUR RENDU */
/* ========================================================== */

/* Force l'image à bien couvrir tout l'espace */
@media (max-width: 1309px) {
    .hero-image {
        object-fit: cover;
        object-position: center center;
    }
}

/* Sur mobile, ajuste la position pour mieux cadrer les visages */
@media (max-width: 600px) {
    .hero-image {
        object-position: center 30%;
    }
}



/* Styles de base pour les membres de l'équipe */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #8B4789;
}

/* CORRECTION CRITIQUE : Nom complet sur une seule ligne */
.team-member .member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px 0;
    width: 100%;
    /* Force le texte à rester sur une ligne */
    white-space: nowrap !important;
    /* Cache le débordement */
    overflow: visible !important;
    /* Pas de points de suspension */
    text-overflow: clip !important;
    /* Permet au texte de s'ajuster */
    word-break: keep-all;
}

.team-member .member-role {
    font-size: 1rem;
    color: #8B4789;
    font-weight: 500;
    margin-top: 5px;
}

/* ========================================================== */
/* RESPONSIVE - ADAPTATION DE LA TAILLE DE LA CARTE */
/* ========================================================== */

@media (max-width: 1309px) {
    
    /* La carte s'adapte pour accueillir les noms longs */
    .team-member {
        width: 100% !important;
        max-width: 320px !important;
        min-width: 280px !important;
        padding: 20px 15px;
        margin: 0 auto 20px auto;
    }
    
    /* Photo plus petite en responsive */
    .member-photo {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 12px;
    }
    
    /* Nom : ajuste la taille de police si nécessaire */
    .team-member .member-name {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        line-height: 1.3;
        /* Permet au conteneur de s'élargir si besoin */
        max-width: 100%;
    }
    
    /* Rôle/Grade */
    .team-member .member-role {
        font-size: 0.95rem !important;
        white-space: normal; /* Le rôle peut passer à la ligne si trop long */
        line-height: 1.4;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    .team-member {
        max-width: 100% !important;
        min-width: 260px !important;
        padding: 15px 10px;
    }
    
    /* Photo encore plus petite sur mobile */
    .member-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Nom : taille réduite mais toujours sur une ligne */
    .team-member .member-name {
        font-size: 1rem !important;
        white-space: nowrap !important;
        padding: 0 5px;
    }
    
    .team-member .member-role {
        font-size: 0.9rem !important;
    }
}

/* ========================================================== */
/* GRILLE D'ÉQUIPE - RESPONSIVE */
/* ========================================================== */

@media (max-width: 1309px) {
    
    /* Affichage vertical des membres */
       /* ✅ CENTRAGE DES CARTES - CONTENEUR PRINCIPAL */
    .team-grid-container {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100%;
        padding: 0 15px;
    }
    
    /* Affichage vertical des membres CENTRÉ */
    .team-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto !important;
    }
}
















/* ========================================================== */
/* CORRECTION DE LA PAGE ANNUAIRE EN MODE RESPONSIVE */
/* ========================================================== */

/* Structure de base de l'annuaire */
.annuaire-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Panneau des filtres */
.filtres-panel {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filtres-panel h2 {
    font-size: 1.5rem;
    color: #8B4789;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
}

/* Zone des résultats */
.resultats-panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resultats-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8B4789;
}

.resultats-header h2 {
    font-size: 1.8rem;
    color: #8B4789;
    margin-bottom: 5px;
}

.resultats-count {
    font-size: 1.1rem;
    color: #666;
}

/* Grille des cartes dentistes */
.dentistes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Carte individuelle dentiste */
.dentiste-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dentiste-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(139, 71, 137, 0.2);
}

.dentiste-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #8B4789;
}

.dentiste-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.dentiste-badge {
    display: inline-block;
    background: #8B4789;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px 0;
}

.dentiste-info {
    margin-top: 15px;
    text-align: left;
}

.dentiste-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dentiste-info i {
    color: #8B4789;
    width: 20px;
}

.dentiste-actions {
    margin-top: 15px;
}

/* ========================================================== */
/* RESPONSIVE - TABLETTES ET MOBILES */
/* ========================================================== */

@media (max-width: 1309px) {
    
    /* Passage en colonne unique */
    .annuaire-container {
                display: flex !important;
flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 15px;
    }
    
    /* Filtres en haut, non sticky */
    .filtres-panel {
        position: static !important;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
           order: 1; /* S'affiche en premier */
    }

    .resultats-panel {
        order: 2; /* S'affiche après les filtres */
        padding: 20px;
    }
    
    .filtres-panel h2 {
        font-size: 1.3rem;
    }
    
    /* Boutons de filtres empilés */
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        width: 100%;
    }
    
    /* Panneau résultats */
    .resultats-panel {
        padding: 20px;
    }
    
    .resultats-header h2 {
        font-size: 1.5rem;
    }
    
    /* Grille des dentistes - 2 colonnes sur tablette */
    .dentistes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .dentiste-card {
        padding: 15px;
    }
    
    .dentiste-photo {
        width: 90px;
        height: 90px;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    .annuaire-container {
        padding: 10px;
        gap: 15px;
    }
    
    /* Filtres compacts */
    .filtres-panel {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .filtres-panel h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .filter-group label {
        font-size: 0.95rem;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    /* Résultats compacts */
    .resultats-panel {
        padding: 15px;
    }
    
    .resultats-header {
        margin-bottom: 20px;
    }
    
    .resultats-header h2 {
        font-size: 1.3rem;
    }
    
    .resultats-count {
        font-size: 1rem;
    }
    
    /* Grille en 1 colonne sur mobile */
    .dentistes-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Cartes dentistes optimisées mobile */
    .dentiste-card {
        padding: 15px;
    }
    
    .dentiste-photo {
        width: 80px;
        height: 80px;
    }
    
    .dentiste-card h3 {
        font-size: 1.1rem;
    }
    
    .dentiste-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .dentiste-info p {
        font-size: 0.9rem;
    }
    
    .dentiste-actions .btn {
        width: 100%;
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS */
/* ========================================================== */

@media (max-width: 400px) {
    
    .filtres-panel {
        padding: 15px 10px;
    }
    
    .filtres-panel h2 {
        font-size: 1.1rem;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .resultats-panel {
        padding: 12px;
    }
    
    .resultats-header h2 {
        font-size: 1.2rem;
    }
    
    .dentiste-photo {
        width: 70px;
        height: 70px;
    }
    
    .dentiste-card h3 {
        font-size: 1rem;
    }
}

/* ========================================================== */
/* AMÉLIORATION : BOUTON TOGGLE FILTRES MOBILE */
/* ========================================================== */

/* Bouton pour afficher/masquer les filtres sur mobile */
.toggle-filtres-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: #8B4789;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.toggle-filtres-btn:hover {
    background: #6d3569;
}

.toggle-filtres-btn i {
    margin-left: 8px;
}

@media (max-width: 1309px) {
    
    .toggle-filtres-btn {
        display: block;
    }
    
    /* Masquer les filtres par défaut sur mobile */
    .filtres-panel {
        display: none;
    }
    
    /* Afficher quand la classe "show" est ajoutée */
    .filtres-panel.show {
        display: block;
    }
}

}





/* Mobile spécifique */
@media (max-width: 600px) {
    
    .team-grid-container {
        padding: 0 10px;
    }
    
    .team-grid {
        max-width: 350px;
    }
    
    .team-member {
        max-width: 300px !important;
    }
}





@media (max-width: 1309px) {
    
    /* Structure du header en responsive */
    .elegant-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        gap: 15px;
    }
    
    /* Logo container avec hamburger à l'intérieur */
    .elegant-header .logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        flex: 0 1 auto;
    }
    
    /* Logo et texte */
    .elegant-header .logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px;
    }
    
    /* ✅ HAMBURGER VISIBLE ET POSITIONNÉ APRÈS LE TITRE */
    .elegant-header .hamburger {
      display: block !important;
    position: relative !important;
    background: none;
    border: none;
    color: #8B4789;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1010;
    flex-shrink: 0;
    margin-left:260px !important;
    padding-right: 5px !important;
    }
    
    /* Boutons d'action à droite */
    .elegant-header .header-actions {
        display: flex !important;
        gap: 10px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .elegant-header .header-actions .btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    /* Cache les boutons quand le menu est ouvert */
    .elegant-header.menu-open .header-actions {
        display: none !important;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    .elegant-header {
        padding: 8px 10px !important;
        gap: 10px;
    }
    
    .elegant-header .logo-container {
        gap: 10px;
    }
    
    /* Hamburger taille mobile */
    .elegant-header .hamburger {
        font-size: 1.6rem !important;
        padding: 5px 8px !important;
    }
    
    /* Boutons compacts */
    .elegant-header .header-actions {
        gap: 6px;
    }
    
    .elegant-header .header-actions .btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS */
/* ========================================================== */

@media (max-width: 400px) {
    
    .elegant-header {
        padding: 8px !important;
        gap: 8px;
    }
    
    .elegant-header .logo-container {
        gap: 8px;
    }
    
    /* Hamburger compact */
    .elegant-header .hamburger {
        font-size: 1.5rem !important;
        padding: 4px 6px !important;
    }
    
    /* Boutons ultra-compacts */
    .elegant-header .header-actions .btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
}



@media (max-width: 1309px) {
    
    /* Structure du header en colonne */
    .elegant-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px 15px !important;
        gap: 12px;
    }
    
    /* Première ligne : Logo + Titre + Hamburger */
    .elegant-header .logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        width: 100%;
    }
    
    /* Logo et texte */
    .elegant-header .logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px;
    }
    
    /* Hamburger juste après le titre */
    .elegant-header .hamburger {
        display: block !important;
        position: relative !important;
        background: none;
        border: none;
        color: #8B4789;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px 10px;
        z-index: 1010;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* ✅ DEUXIÈME LIGNE : BOUTONS SOUS LE LOGO À GAUCHE */
    .elegant-header .header-actions {
        display: flex !important;
        gap: 10px;
        width: 100%;
        justify-content: flex-start !important;
        order: 3;
    }
    
    .elegant-header .header-actions .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    /* Cache les boutons quand le menu est ouvert */
    .elegant-header.menu-open .header-actions {
        display: none !important;
    }
    
    /* Menu de navigation */
    .elegant-header .main-nav {
        order: 2;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    .elegant-header {
        padding: 10px !important;
        gap: 10px;
    }
    
    .elegant-header .logo-container {
        gap: 10px;
    }
    
    /* Hamburger taille mobile */
    .elegant-header .hamburger {
        font-size: 1.6rem !important;
        padding: 5px 8px !important;
    }
    
    /* Boutons alignés à gauche sous le logo */
    .elegant-header .header-actions {
        gap: 8px;
    }
    
    .elegant-header .header-actions .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS */
/* ========================================================== */

@media (max-width: 400px) {
    
    .elegant-header {
        padding: 8px !important;
        gap: 8px;
    }
    
    .elegant-header .logo-container {
        gap: 8px;
    }
    
    /* Hamburger compact */
    .elegant-header .hamburger {
        font-size: 1.5rem !important;
        padding: 4px 6px !important;
    }
    
    /* Boutons compacts */
    .elegant-header .header-actions {
        gap: 6px;
    }
    
    .elegant-header .header-actions .btn {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }
}




















@media (max-width: 1309px) {
    
    /* Logo plus petit */
    .elegant-header .logo img {
        height: 45px !important;
        width: auto;
    }
    
    /* Titre sur plusieurs lignes avec taille réduite */
    .elegant-header .logo-text {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        max-width: 180px;
        /* Permet le retour à la ligne */
        white-space: normal !important;
        word-wrap: break-word;
    }
    
    /* Ajustement de l'espacement */
    .elegant-header .logo {
        gap: 10px;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILES UNIQUEMENT */
/* ========================================================== */

@media (max-width: 600px) {
    
    /* Logo encore plus petit sur mobile */
    .elegant-header .logo img {
        height: 35px !important;
    }
    
    /* Titre compact sur mobile */
    .elegant-header .logo-text {
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
        max-width: 150px;
    }
    
    /* Réduction de l'espacement */
    .elegant-header .logo {
        gap: 8px;
    }
    
    /* Ajustement du padding du header */
    .elegant-header {
        padding: 10px 15px !important;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS */
/* ========================================================== */

@media (max-width: 400px) {
    
    /* Logo minimal */
    .elegant-header .logo img {
        height: 30px !important;
    }
    
    /* Titre très compact */
    .elegant-header .logo-text {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        max-width: 130px;
    }
    
    .elegant-header .logo {
        gap: 6px;
    }
}


  


































/* Style pour la Bannière de Cookies */
.cookie-banner {
    /* Positionnement fixe en bas de l'écran, au-dessus du footer (qui n'est pas fixe) */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Utilisation d'un fond de couleur proche de votre thème (e.g., gris foncé/noir semi-transparent) */
    background-color: rgba(30, 30, 30, 0.95);
    color: white; /* Texte en blanc pour un bon contraste */
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* Assurez-vous qu'elle soit au-dessus de tout le contenu */
    text-align: center;
    /* Démarrage caché par défaut (sera affiché par JS si le cookie n'existe pas) */
    display: none; 
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Aligné avec votre conteneur principal */
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: left;
    flex-grow: 1; /* Permet au texte de prendre le plus d'espace */
    padding-right: 20px;
}

.cookie-link {
    color: #4CAF50; /* Couleur d'accentuation (Vert ou une couleur de lien claire) */
    text-decoration: underline;
    font-weight: bold;
}

.cookie-actions {
    display: flex;
    gap: 10px; /* Espace entre les boutons */
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
}

/* Réutilisation des classes de boutons existantes (.btn, .primary, .secondary)
   Vous pourriez ajuster les couleurs des boutons si elles sont trop claires sur ce fond foncé. */

.cookie-actions .btn.primary {
    /* Si votre .btn.primary a une couleur claire, pas de problème. 
       Sinon, on pourrait la rendre plus visible ici. */
}

.cookie-actions .btn.secondary.cookie-decline {
    /* Le bouton de refus doit contraster avec l'acceptation mais ne doit pas être la couleur primaire */
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

/* Media Query pour les petits écrans */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner p {
        padding-right: 0;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
        justify-content: space-around;
    }
}


