/* ========================================================== */
/* STYLE COMPLET - SITE SORMD TIZI-OUZOU                     */
/* MODE DESKTOP (par défaut) + MODE MOBILE (max-width: 650px)*/
/* ========================================================== */

/* ========================================================== */
/* 1. VARIABLES & BASE                                        */
/* ========================================================== */

:root {
    --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;
    --color-footer-bg: #333;
    --color-footer-text: #fff;
    --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);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

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%;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 5px;
}

p {
    margin: 5px;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light-gray {
    background-color: var(--color-background-pale);
}

.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.rounded-corners {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================================== */
/* 2. HEADER & NAVIGATION - DESKTOP                          */
/* ========================================================== */

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-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1em;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    width: 250px;
    white-space: normal;
    font-size: 1em;
    line-height: 1.2;
}

.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;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s;
}

.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);
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--color-background-pale);
    border: 1px solid #ddd;
    padding: 10px 0;
    margin: -5px 0 0 0;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1050;
}

.main-nav .submenu li {
    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;
    border-bottom: none !important;
    white-space: nowrap;
}

.main-nav .submenu a:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.main-nav ul li.has-submenu:hover > .submenu {
    display: block;
}

/* Hamburger et toggle cachés en desktop */
.hamburger,
.submenu-toggle {
    display: none !important;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.mobile-actions {
    display: none !important;
}

/* ========================================================== */
/* 3. BOUTONS                                                 */
/* ========================================================== */

.btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 10px;
    text-decoration: none;
}

.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);
}

.btn.more-news {
    margin-top: 30px;
    display: inline-block;
}

.btn.large {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* ========================================================== */
/* 4. HERO BANNER                                             */
/* ========================================================== */

.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
}

.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;
    padding: 20px;
}

.hero-overlay .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
}

.hero-overlay h1 {
    font-size: 3em;
    font-weight: 700;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.3em;
    color: white !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin: 5px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.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;
}

.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;
}

/* ========================================================== */
/* 5. WELCOME BLOCK & SECTIONS                               */
/* ========================================================== */

.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;
    background-color: var(--color-secondary);
    color: var(--color-white);
    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;
}

.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;
}

/* ========================================================== */
/* 6. NEWS & ACTUALITÉS                                      */
/* ========================================================== */

.news, .actualites, .news-home {
    background-color: var(--color-white);
    padding: var(--padding-page-v) 0;
    text-align: center;
}

.actualites {
    background-color: var(--color-background);
    padding-top: 50px;
    padding-bottom: 50px;
}

.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: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.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;
}

/* ========================================================== */
/* 7. ABOUT US & CONTENT SECTIONS                            */
/* ========================================================== */

.about-us {
    background-color: var(--color-background-pale);
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: flex-start;
    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;
}

.page-content {
    padding-bottom: var(--padding-page-v);
    min-height: 60vh;
}

/* ========================================================== */
/* 8. SANTÉ PUBLIQUE & CARDS                                 */
/* ========================================================== */

.public-health {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-white);
}

.public-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 30px auto;
    max-width: 1000px;
}

.card-public {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #d0e0f0;
}

.card-public h4 {
    color: #8B4789;
    font-size: 1.2rem;
    margin: 15px 0;
}

.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 {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.card-public-link:hover {
    transform: translateY(-8px);
}

.card-public-link:hover .card-public {
    box-shadow: 0 8px 25px rgba(139, 71, 137, 0.3);
    border: 2px solid #8B4789;
}

.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;
}

/* ========================================================== */
/* 9. ORGANISATION - TEAM & COMMISSIONS                      */
/* ========================================================== */

.governance-section {
    padding-top: 100px;
    padding-bottom: 50px;
    background-color: var(--color-background-pale);
    text-align: center;
}

.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: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.team-member {
    flex: 0 0 160px;
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.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;
}

/* ========================================================== */
/* 10. ANNUAIRE                                               */
/* ========================================================== */

.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;
}

.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 input[type="tel"],
.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;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.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;
}

.annuaire-btn.primary {
    background: linear-gradient(135deg, #8B4789 0%, #c595cb 100%);
    color: white;
}

.annuaire-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 71, 137, 0.4);
}

.annuaire-btn.secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.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);
}

.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); }
}

/* ========================================================== */
/* 11. MODALES                                                */
/* ========================================================== */

.modal, .dentist-modal, .image-viewer-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, .dentist-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, .dentist-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, .dentist-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.close, .dentist-modal-close, .image-viewer-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,
.dentist-modal-close:hover,
.image-viewer-close:hover {
    transform: rotate(90deg);
}

.modal-body, .dentist-modal-body {
    padding: 30px;
    line-height: 1.7;
    color: #333;
}

.modal-info-grid, .dentist-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.modal-info-item, .dentist-info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8B4789;
}

.modal-info-label, .dentist-info-label {
    font-weight: 600;
    color: #8B4789;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.modal-info-value, .dentist-info-value {
    font-size: 1.05em;
    color: #333;
}

.dentist-info-full-width {
    grid-column: 1 / -1;
}

.dentist-info-value a {
    color: #8B4789;
    text-decoration: none;
}

.dentist-info-value a:hover {
    color: #6a3567;
    text-decoration: underline;
}

.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-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;
}

/* ========================================================== */
/* 12. IMAGE VIEWER                                           */
/* ========================================================== */

.image-viewer-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

.image-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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;
}

.image-viewer-close {
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-close:hover {
    background: rgba(139, 71, 137, 0.8);
}

.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);
}

.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;
}

.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;
}

/* ========================================================== */
/* 13. CONTACT & FORMULAIRES                                 */
/* ========================================================== */

.contact-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-form-area {
    flex: 2;
}

.contact-info-area {
    flex: 1;
}

.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;
}

.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);
    }
}

.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;
}

/* ========================================================== */
/* 14. FOOTER                                                 */
/* ========================================================== */

footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 40px 50px;
    border-bottom: 1px solid #555;
}

.footer-contact h3, .footer-links h3, .footer-social h3 {
    color: var(--color-white);
    font-weight: bold;
    margin-bottom: 15px;
}

.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;
}

.footer-social {
    text-align: center;
}

.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;
    margin: 0 5px;
}

.social-icon:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.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. COOKIES BANNER                                         */
/* ========================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    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;
    padding-right: 20px;
}

.cookie-link {
    color: #4CAF50;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions .btn.secondary.cookie-decline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

/* ========================================================== */
/* 16. ÉVÉNEMENTS & FEED                                      */
/* ========================================================== */

.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;
    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);
}

/* ========================================================== */
/* 17. UTILITAIRES & MISC                                     */
/* ========================================================== */

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.2em;
    color: #555;
}

section {
    scroll-margin-top: 80px;
}

.info-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
}

.info-block h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid var(--color-primary);
    color: #1565c0;
}

/* Document links dans president message */
.document-links {
    list-style: none;
    padding: 0;
}

.document-links li {
    padding: var(--spacing-sm) 0;
    font-size: 0.9em;
}

.document-links li a {
    display: block;
    color: var(--color-white);
    font-style: italic;
    transition: background-color 0.3s, padding-left 0.3s, color 0.3s;
    font-size: 0.95em;
    text-decoration: underline;
    padding: 8px 0;
}

.document-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    padding-left: 10px;
    text-decoration: none;
    border-radius: 3px;
    color: var(--color-white);
}

/* ========================================================== */
/* MODE MOBILE - MAX-WIDTH: 650PX                            */
/* ========================================================== */

@media (max-width: 650px) {
    
    /* HEADER MOBILE */
    header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .logo-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .logo {
        gap: 10px;
        flex: 1;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.75rem;
        max-width: 150px;
        line-height: 1.15;
    }
    
    /* Hamburger visible */
    /* .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #8B4789;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        margin-left: auto;
    } */
    
    .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #8B4789;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    margin-left: auto;
    align-self: flex-start;
    margin-top: 5px; /* AJOUTEZ cette ligne pour ajuster la position exacte */
    flex-shrink: 0;
}
    /* Cache boutons header en mobile */
    .header-actions {
        display: none !important;
    }
    
    /* Menu navigation mobile */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 999;
        overflow-y: auto;
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin: 0;
    }
    
    .main-nav a {
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    /* Sous-menus accordéon */
    .main-nav .submenu {
        position: static;
        background-color: #f7f7f7;
        padding-left: 20px;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .main-nav li.open .submenu {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .main-nav .has-submenu a {
        position: relative;
        padding-right: 40px;
    }
    
    .submenu-toggle {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    
    .main-nav li.open .submenu-toggle {
        transform: translateY(-50%) rotate(-180deg);
    }
    
    /* Boutons dans menu hamburger */
    .main-nav .mobile-actions {
        display: block !important;
        padding: 20px;
        border-top: 2px solid #eee;
        margin-top: 20px;
        text-align: center;
    }
    
    .main-nav .mobile-actions .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px auto;
    }
    
    /* HERO BANNER MOBILE */
    .hero-banner {
        height: 300px;
    }
    
    .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 {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .cta-group .btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    /* WELCOME & SECTIONS MOBILE */
    .welcome-block {
        margin-bottom: 0;
        padding: 40px 0;
        z-index: auto;
    }
    
    .welcome-content {
        flex-direction: column;
        padding: 15px;
        box-shadow: none;
    }
    
    .president-message {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .president-photo {
        width: 80px;
        height: 80px;
    }
    
    .services {
        padding-top: 50px;
        z-index: auto;
    }
    
    /* GRILLES EN 1 COLONNE */
    .service-cards,
    .news-grid-2x2,
    .news-grid-2x3,
    .public-cards,
    .commission-list-grid,
    .stats-grid,
    .public-cards,
    .features-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column;
        gap: 20px;
    }
    
    .card {
        width: 100%;
        margin: 10px 0;
    }
    
    /* ABOUT CONTENT MOBILE */
    .about-content,
    .contact-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-content .image-block {
        order: 1;
        width: 100%;
    }
    
    .about-content .text-block {
        order: 2;
        width: 100%;
    }
    
    .contact-form-area,
    .contact-info-area {
        width: 100%;
    }
    
    /* TEAM MEMBERS MOBILE */
    .team-grid-container {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        padding: 0 15px;
    }
    
    .team-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto !important;
    }
    
    .team-member {
        width: 100%;
        max-width: 280px;
        padding: 15px 10px;
        margin: 0 auto !important;
    }
    
    .member-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* ANNUAIRE MOBILE */
    .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;
        padding: 20px;
    }
    
    .results-area {
        order: 2 !important;
        padding: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* FOOTER MOBILE */
    .footer-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    /* MODALS MOBILE */
    .modal-content,
    .dentist-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header h2,
    .dentist-modal-header h2 {
        font-size: 1.4em;
        padding-right: 40px;
    }
    
    .modal-info-grid,
    .dentist-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* IMAGE VIEWER MOBILE */
    .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;
    }
    
    /* COOKIES MOBILE */
    .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;
    }
    
    /* UTILITAIRES MOBILE */
    main {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 15px;
    }

/* ========================================================== */
/* STYLES RESPONSIVE - PAGE TÉLÉCHARGEMENT APPLICATION        */
/* À AJOUTER À LA FIN DU FICHIER styles.css EXISTANT         */
/* ========================================================== */

/* Styles de base pour la page de téléchargement (déjà dans le HTML) */
.app-download-page {
    min-height: 70vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.page-header {
    text-align: center;
    color: #6b1b6b;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.page-header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 10px;
}

.page-header p { 
    font-size: 1.2rem; 
    color: #666;
}

.steps-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease;
}

.step {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover { 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.step:last-child { margin-bottom: 0; }

.step-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px;
}

.step-number {
    background: #6b1b6b;
    color: white;
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem; 
    font-weight: bold; 
    flex-shrink: 0;
}

.step-title { 
    font-size: 1.4rem; 
    color: #6b1b6b; 
    font-weight: 600;
    line-height: 1.3;
}

.step-content { 
    margin-left: 65px;
}

.step-description { 
    color: #555; 
    margin-bottom: 20px; 
    line-height: 1.6;
}

.auth-image-container {
    margin-top: 20px;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.auth-image-container img {
    max-width: 100%; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: 350px;
}

.download-button {
    display: inline-flex; 
    align-items: center; 
    gap: 12px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #6b1b6b, #8b2a8b);
    color: white; 
    text-decoration: none; 
    border-radius: 50px;
    font-size: 1.1rem; 
    font-weight: 600; 
    transition: all 0.3s ease;
    cursor: pointer; 
    border: none;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.download-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(107, 27, 107, 0.4);
}

.qr-code-container {
    background: white; 
    padding: 20px; 
    border-radius: 15px;
    text-align: center; 
    border: 3px dashed #6b1b6b;
    margin: 0 auto;
    max-width: 300px;
}

.qr-code-container img { 
    max-width: 250px; 
    width: 100%; 
    cursor: pointer; 
    transition: 0.3s;
}

.qr-code-container img:hover { 
    transform: scale(1.03);
}

.qr-fallback {
    display: none;
    padding: 30px;
    color: #999;
}

.qr-fallback i {
    font-size: 60px;
    margin-bottom: 10px;
}

.info-box { 
    background: #e3f2fd; 
    border-left: 4px solid #2196f3; 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 15px; 
    color: #1565c0; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
}

.info-box i {
    margin-top: 3px;
    flex-shrink: 0;
}

.success-box { 
    background: #e8f5e9; 
    border-left: 4px solid #4caf50; 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 15px; 
    color: #2e7d32; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
}

.success-box i {
    margin-top: 3px;
    flex-shrink: 0;
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin-top: 30px;
}

.feature-item { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon { 
    background: #6b1b6b; 
    color: white; 
    width: 45px; 
    height: 45px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    flex-shrink: 0;
}

.feature-text { 
    color: #333; 
    font-weight: 500; 
    font-size: 0.95rem;
    line-height: 1.4;
}

.qr-modal { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.9); 
    align-items: center; 
    justify-content: center;
    padding: 20px;
}

.qr-modal.active { 
    display: flex;
}

.qr-modal-content {
    text-align: center;
    position: relative;
    max-width: 90%;
}

.qr-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.qr-modal-content img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.qr-modal-content p {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
}

@keyframes fadeInDown { 
    from { opacity: 0; transform: translateY(-30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ========================================================== */
/* RESPONSIVE - TABLETTES (max-width: 768px)                  */
/* ========================================================== */
@media (max-width: 768px) {
    .app-download-page {
        padding: 40px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .steps-card {
        padding: 25px 20px;
    }

    .step {
        padding: 20px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .qr-modal-close {
        top: -40px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
}

/* ========================================================== */
/* RESPONSIVE - MOBILE (max-width: 650px)                     */
/* ========================================================== */
@media (max-width: 650px) {
    /* Forcer l'élimination du scroll horizontal */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .app-download-page {
        padding: 20px 0;
        min-height: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .page-header {
        margin-bottom: 20px;
        padding: 0;
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 10px;
        word-wrap: break-word;
        padding: 0 5px;
    }

    .page-header h1 i {
        display: block;
        margin-bottom: 10px;
        font-size: 2rem;
    }

    .page-header p {
        font-size: 0.9rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    .steps-card {
        padding: 15px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .step {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .step-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .step-title {
        font-size: 0.95rem;
        line-height: 1.3;
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: calc(100% - 50px);
    }

    .step-content {
        margin-left: 0;
        margin-top: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .step-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .download-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        gap: 8px;
        border-radius: 25px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .download-button i {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .info-box,
    .success-box {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        font-size: 0.82rem;
        gap: 8px;
        margin-top: 10px;
        line-height: 1.4;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .info-box i,
    .success-box i {
        font-size: 0.95rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .info-box span,
    .success-box span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
        max-width: calc(100% - 30px);
    }

    .qr-code-container {
        max-width: 100%;
        width: 100%;
        padding: 15px;
        border-width: 2px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .qr-code-container img {
        max-width: 220px;
        width: 100%;
        height: auto;
        display: block;
    }

    .auth-image-container {
        padding: 10px;
        margin-top: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .auth-image-container img {
        max-height: 250px;
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
    }

    .feature-item {
        padding: 12px;
        gap: 10px;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .feature-text {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
        max-width: calc(100% - 50px);
    }

    /* Section titre fonctionnalités */
    .steps-card > div:last-child {
        margin-top: 25px !important;
        padding-top: 20px !important;
        width: 100%;
        max-width: 100%;
    }

    .steps-card > div:last-child h2 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        padding: 0 5px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .steps-card > div:last-child h2 i {
        display: inline-block;
        margin-right: 5px;
    }

    /* Modal QR Code mobile */
    .qr-modal {
        padding: 10px;
    }

    .qr-modal-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
        width: 40px;
        height: 40px;
        background: rgba(107, 27, 107, 0.9);
        position: fixed;
        z-index: 10000;
    }

    .qr-modal-content {
        max-width: 90%;
        width: 90%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .qr-modal-content img {
        max-width: 100%;
        width: 100%;
        max-height: 60vh;
        height: auto;
        border-radius: 12px;
        object-fit: contain;
    }

    .qr-modal-content p {
        font-size: 0.9rem;
        margin-top: 12px;
        padding: 0 10px;
    }
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS (max-width: 400px)        */
/* ========================================================== */
@media (max-width: 400px) {
    .app-download-page {
        padding: 15px 0;
    }

    .container {
        padding: 0 12px;
    }

    .page-header h1 {
        font-size: 1.25rem;
        padding: 0 5px;
    }

    .page-header h1 i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .page-header p {
        font-size: 0.82rem;
    }

    .steps-card {
        padding: 12px;
    }

    .step {
        padding: 12px;
        margin-bottom: 15px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.88rem;
        max-width: calc(100% - 45px);
    }

    .step-description {
        font-size: 0.8rem;
    }

    .download-button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .info-box,
    .success-box {
        padding: 8px;
        font-size: 0.78rem;
    }

    .info-box i,
    .success-box i {
        font-size: 0.9rem;
    }

    .qr-code-container {
        padding: 12px;
    }

    .qr-code-container img {
        max-width: 180px;
    }

    .auth-image-container img {
        max-height: 200px;
    }

    .feature-item {
        padding: 10px;
        gap: 8px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .feature-text {
        font-size: 0.8rem;
        max-width: calc(100% - 42px);
    }

    .steps-card > div:last-child h2 {
        font-size: 1rem !important;
    }

    .qr-modal-close {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* ========================================================== */
/* CORRECTIONS RESPONSIVE MOBILE - PAGE ORGANISATION          */
/* À AJOUTER À LA FIN DU FICHIER styles.css EXISTANT         */
/* ========================================================== */

/* ========================================================== */
/* MODE MOBILE - MAX-WIDTH: 650PX                            */
/* Corrections spécifiques pour la page organisation         */
/* ========================================================== */

@media (max-width: 650px) {
    
    /* ========================================================== */
    /* HERO BANNER - PAGE ORGANISATION                            */
    /* ========================================================== */
    
    .hero-banner {
        height: 250px; /* Réduit pour mobile */
        margin-top: 0;
    }
    
    .hero-overlay {
        padding: 10px;
    }
    
    .hero-overlay h1 {
        font-size: 1.4em !important; /* Taille réduite pour mobile */
        margin-bottom: 8px;
        line-height: 1.3;
        padding: 0 10px;
        word-wrap: break-word;
        color: white !important;
    }
    
    .hero-overlay p {
        font-size: 0.9em;
        margin-bottom: 15px;
        padding: 0 15px;
        line-height: 1.4;
        color: white !important;
    }
    
    /* ========================================================== */
    /* SECTION PRÉSENTATION & ATTRIBUTIONS                       */
    /* ========================================================== */
    
    .welcome-block {
        padding: 30px 0 20px 0 !important;
        margin-bottom: 0;
    }
    
    .welcome-content {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .presentation-text {
        width: 100%;
        order: 1;
    }
    
    .presentation-text h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
        line-height: 1.3;
        color: var(--color-primary);
    }
    
    .presentation-text p {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .presentation-text ul {
        margin-left: 20px;
        font-size: 0.9em;
        padding-left: 5px;
    }
    
    .presentation-text ul li {
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .presentation-text .btn.primary {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95em;
        margin: 15px 0;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        box-sizing: border-box;
    }
    
    /* Documents Clés - Bloc latéral */
    .president-message {
        width: 100%;
        max-width: 100%;
        order: 2;
        padding: 20px 15px;
        margin-top: 10px;
    }
    
    .president-message h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        color: white !important;
    }
    
    .president-message .quote {
        font-size: 0.88em;
        margin-bottom: 12px;
        line-height: 1.4;
        color: white !important;
    }
    
    .president-message .document-links {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .president-message .document-links li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .president-message .document-links li:last-child {
        border-bottom: none;
    }
    
    .president-message .document-links a {
        font-size: 0.88em;
        padding: 8px 5px;
        display: block;
        color: white !important;
        text-decoration: underline;
    }
    
    .president-message .document-links a:hover {
        padding-left: 12px;
        background-color: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }
    
    /* ========================================================== */
    /* GOUVERNANCE - BUREAU RÉGIONAL EXÉCUTIF                    */
    /* ========================================================== */
    
    .governance-section {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
    
    .governance-section h2 {
        font-size: 1.5em !important;
        margin-bottom: 15px;
        padding: 0 15px;
        line-height: 1.3;
        color: var(--color-primary);
    }
    
    .governance-description {
        font-size: 0.9em;
        padding: 0 15px 15px 15px;
        margin-bottom: 20px;
        border-bottom-width: 1px;
        line-height: 1.6;
    }
    
    .governance-description.text-center {
        text-align: center;
    }
    
    .governance-description.mb-5 {
        margin-bottom: 20px;
    }
    
    /* Grille des membres du bureau - MOBILE */
    .team-grid-container {
        width: 100%;
        padding: 0 15px;
        display: flex !important;
        justify-content: center !important;
    }
    
    .team-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
    }
    
    .team-member {
        width: 100%;
        max-width: 320px;
        padding: 20px 15px;
        margin: 0 auto;
        box-sizing: border-box;
        text-align: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    }
    
    .team-member:hover {
        transform: translateY(-3px);
    }
    
    .member-photo {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 12px auto;
        border: 3px solid var(--color-secondary);
        display: block;
    }
    
    .team-member h4 {
        font-size: 1em;
        margin: 10px 0 5px 0;
        line-height: 1.3;
        word-wrap: break-word;
        color: var(--color-text-dark);
    }
    
    .team-member .role {
        font-size: 0.88em;
        font-weight: 600;
        color: var(--color-primary);
        margin: 0;
        line-height: 1.3;
    }
    
    /* ========================================================== */
    /* DÉLÉGUÉS RÉGIONAUX                                        */
    /* ========================================================== */
    
    /* Même style que le bureau - les styles ci-dessus s'appliquent */
    
    /* ========================================================== */
    /* COMMISSIONS SPÉCIALISÉES                                  */
    /* ========================================================== */
    
    .commissions-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .commissions-section h2 {
        font-size: 1.5em !important;
        margin-bottom: 12px;
        padding: 0 15px;
        line-height: 1.3;
        color: var(--color-primary);
    }
    
    .commissions-section .governance-description {
        font-size: 0.9em;
        padding: 0 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .commission-list-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }
    
    .commission-card {
        padding: 18px;
        border-radius: 10px;
        border-top-width: 4px;
    }
    
    .commission-card h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
        line-height: 1.3;
        word-wrap: break-word;
        color: var(--color-primary);
    }
    
    .commission-card .description {
        font-size: 0.85em;
        line-height: 1.5;
        margin-bottom: 12px;
        color: #666;
    }
    
    .commission-card p {
        font-size: 0.88em;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .commission-card p strong {
        font-weight: 600;
    }
    
    .commission-card ul {
        margin-left: 18px;
        font-size: 0.85em;
        padding-left: 5px;
    }
    
    .commission-card ul li {
        margin-bottom: 6px;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    /* ========================================================== */
    /* STATISTIQUES                                              */
    /* ========================================================== */
    
    .stats-section {
        padding: 40px 0 !important;
    }
    
    .stats-section h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
        padding: 0 15px;
        color: var(--color-primary);
    }
    
    .stats-section > .container > p {
        font-size: 0.9em;
        padding: 0 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .stat-item {
        padding: 20px 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .stat-number {
        font-size: 2.5em;
        display: block;
        margin-bottom: 8px;
        color: var(--color-accent-green);
        font-weight: 800;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 1em;
        line-height: 1.3;
        display: block;
        color: var(--color-text-light);
        font-weight: 500;
        margin-top: 10px;
    }
    
    /* ========================================================== */
    /* SECTION FINALE EN BLEU - ADHÉSION                         */
    /* ========================================================== */
    
    /* Cibler la section avec le gradient bleu */
    section[style*="background: linear-gradient(135deg, #004d99"] {
        padding: 30px 15px !important;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] .container {
        padding: 0 10px;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] h2 {
        font-size: 1.3em !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        padding: 0 10px;
        color: white !important;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] p {
        font-size: 0.95em !important;
        margin-bottom: 20px !important;
        padding: 0 10px;
        line-height: 1.5 !important;
        color: white !important;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] a {
        padding: 12px 25px !important;
        font-size: 0.95em !important;
        border-radius: 30px !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 90%;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] a i {
        font-size: 1em;
    }
    
    /* ========================================================== */
    /* CORRECTIONS GÉNÉRALES TEXTE & ESPACEMENT                  */
    /* ========================================================== */
    
    /* Classes utilitaires */
    .mt-30 {
        margin-top: 20px;
    }
    
    .mb-5 {
        margin-bottom: 20px;
    }
    
    .text-center {
        text-align: center;
    }
    
    /* Container général */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Titres généraux */
    h1 {
        font-size: 1.5em;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    h2 {
        font-size: 1.5em;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.2em;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    h4 {
        font-size: 1em;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    /* Paragraphes généraux */
    p {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 12px;
        word-wrap: break-word;
    }
    
    /* Listes générales */
    ul, ol {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    ul li, ol li {
        margin-bottom: 8px;
    }
    
    /* Boutons généraux */
    .btn {
        font-size: 0.9em;
        padding: 10px 18px;
        border-radius: 25px;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
    
    .btn.primary,
    .btn.secondary,
    .btn.accent {
        width: auto;
        max-width: 100%;
        display: inline-block;
    }
    
    /* Main padding */
    main {
        padding-top: 60px;
    }
    
}

/* ========================================================== */
/* RESPONSIVE - TRÈS PETITS ÉCRANS (max-width: 400px)        */
/* ========================================================== */

@media (max-width: 400px) {
    
    /* Hero Banner */
    .hero-banner {
        height: 220px;
    }
    
    .hero-overlay h1 {
        font-size: 1.2em !important;
        padding: 0 5px;
    }
    
    .hero-overlay p {
        font-size: 0.85em;
        padding: 0 10px;
    }
    
    /* Sections */
    .welcome-block {
        padding: 20px 0 15px 0 !important;
    }
    
    .welcome-content {
        padding: 12px;
    }
    
    .presentation-text h2 {
        font-size: 1.25em;
    }
    
    .presentation-text p,
    .presentation-text ul {
        font-size: 0.85em;
    }
    
    .president-message {
        padding: 15px 12px;
    }
    
    .president-message h3 {
        font-size: 1.1em;
    }
    
    .president-message .quote,
    .president-message .document-links a {
        font-size: 0.82em;
    }
    
    /* Gouvernance */
    .governance-section {
        padding-top: 30px !important;
        padding-bottom: 25px !important;
    }
    
    .governance-section h2 {
        font-size: 1.3em !important;
        padding: 0 12px;
    }
    
    .governance-description {
        font-size: 0.85em;
        padding: 0 12px 12px 12px;
    }
    
    .team-grid-container {
        padding: 0 12px;
    }
    
    .team-member {
        max-width: 280px;
        padding: 15px 12px;
    }
    
    .member-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    .team-member h4 {
        font-size: 0.95em;
    }
    
    .team-member .role {
        font-size: 0.82em;
    }
    
    /* Commissions */
    .commissions-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .commissions-section h2 {
        font-size: 1.3em !important;
        padding: 0 12px;
    }
    
    .commission-list-grid {
        padding: 0 12px;
        gap: 15px;
    }
    
    .commission-card {
        padding: 15px;
    }
    
    .commission-card h4 {
        font-size: 1em;
    }
    
    .commission-card .description,
    .commission-card p,
    .commission-card ul {
        font-size: 0.8em;
    }
    
    /* Statistiques */
    .stats-section {
        padding: 30px 0 !important;
    }
    
    .stats-section h2 {
        font-size: 1.3em;
        padding: 0 12px;
    }
    
    .stats-section > .container > p {
        font-size: 0.85em;
        padding: 0 12px;
    }
    
    .stats-grid {
        padding: 0 12px;
        gap: 12px;
    }
    
    .stat-item {
        padding: 15px 12px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .stat-label {
        font-size: 0.95em;
    }
    
    /* Section finale */
    section[style*="background: linear-gradient(135deg, #004d99"] {
        padding: 25px 12px !important;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] h2 {
        font-size: 1.2em !important;
        padding: 0 5px;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] p {
        font-size: 0.88em !important;
        padding: 0 5px;
    }
    
    section[style*="background: linear-gradient(135deg, #004d99"] a {
        padding: 10px 20px !important;
        font-size: 0.88em !important;
        gap: 6px;
    }
    
    /* Container */
    .container {
        padding: 0 12px;
    }
    
}

/* ========================================================== */
/* CORRECTION BOUTONS HERO BANNER - RESPONSIVE                */
/* À ajouter à la fin du fichier styles.css                   */
/* ========================================================== */

/* ========================================================== */
/* MODE DESKTOP (par défaut)                                  */
/* ========================================================== */

/* Groupe de boutons CTA - Desktop */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Pas de retour à la ligne en desktop */
    margin-top: 20px;
}

.cta-group .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
    min-width: auto;
}

/* ========================================================== */
/* MODE MOBILE - MAX-WIDTH: 650PX                            */
/* ========================================================== */

@media (max-width: 650px) {
    
    /* Hero Banner - Ajustements généraux */
    .hero-banner {
        height: 300px;
    }
    
    .hero-overlay {
        padding: 15px 10px;
    }
    
    .hero-overlay .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero-overlay h1 {
        font-size: 1.5em !important;
        margin-bottom: 10px;
        line-height: 1.3;
        padding: 0 5px;
        color: white !important;
        text-align: center;
    }
    
    .hero-overlay p {
        font-size: 0.95em !important;
        margin-bottom: 20px;
        padding: 0 10px;
        line-height: 1.4;
        color: white !important;
        text-align: center;
    }
    
    /* Groupe de boutons CTA - Mobile */
    .cta-group {
        display: flex;
        flex-direction: column; /* Empiler verticalement */
        gap: 12px;
        width: 100%;
        padding: 0 15px;
        align-items: stretch; /* Les boutons prennent toute la largeur */
        margin-top: 15px;
    }
    
    .cta-group .btn {
        width: 100% !important; /* Pleine largeur */
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important; /* Permet le retour à la ligne si nécessaire */
        line-height: 1.3 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        box-sizing: border-box;
        margin: 0 !important; /* Retire les marges individuelles */
    }
    
    /* Bouton "Trouver un Dentiste" */
    .cta-group .btn.primary {
        background-color: var(--color-secondary) !important;
        color: white !important;
        border: 2px solid var(--color-secondary);
        order: 1; /* Premier bouton */
    }
    
    .cta-group .btn.primary:hover {
        background-color: var(--color-primary) !important;
        border-color: var(--color-primary);
    }
    
    /* Bouton "Adhésion & Accès" */
    .cta-group .btn.more-news {
        background-color: #c595cb !important;
        color: white !important;
        border: 2px solid #c595cb;
        order: 2; /* Deuxième bouton */
    }
    
    .cta-group .btn.more-news:hover {
        background-color: #b085bb !important;
        border-color: #b085bb;
    }
    
    /* Icônes dans les boutons */
    .cta-group .btn i {
        font-size: 1em;
        flex-shrink: 0;
    }
}

/* ========================================================== */
/* MODE TABLETTE - MAX-WIDTH: 768PX                          */
/* ========================================================== */

@media (max-width: 768px) and (min-width: 651px) {
    
    /* Hero Banner */
    .hero-banner {
        height: 350px;
    }
    
    .hero-overlay h1 {
        font-size: 2em !important;
    }
    
    .hero-overlay p {
        font-size: 1.1em !important;
    }
    
    /* Boutons en colonne sur tablette aussi */
    .cta-group {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
        max-width: 400px;
        margin: 20px auto 0 auto;
    }
    
    .cta-group .btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 25px !important;
        font-size: 1.05rem !important;
    }
}

/* ========================================================== */
/* TRÈS PETITS ÉCRANS - MAX-WIDTH: 400PX                     */
/* ========================================================== */

@media (max-width: 400px) {
    
    .hero-banner {
        height: 280px;
    }
    
    .hero-overlay {
        padding: 12px 8px;
    }
    
    .hero-overlay h1 {
        font-size: 1.3em !important;
        padding: 0 3px;
    }
    
    .hero-overlay p {
        font-size: 0.88em !important;
        padding: 0 8px;
    }
    
    .cta-group {
        padding: 0 10px;
        gap: 10px;
    }
    
    .cta-group .btn {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
}

/* ========================================================== */
/* SECTION FINALE EN BLEU - RESPONSIVE                       */
/* (Correction aussi pour cohérence)                         */
/* ========================================================== */

@media (max-width: 650px) {
    
    /* Section avec gradient bleu */
    section[style*="linear-gradient(135deg, #004d99"] {
        padding: 30px 15px !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] .container {
        padding: 0 10px;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] h2 {
        font-size: 1.3em !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        padding: 0 5px;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] p {
        font-size: 0.95em !important;
        margin-bottom: 20px !important;
        padding: 0 5px;
        line-height: 1.5 !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] a {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 25px !important;
        font-size: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        box-sizing: border-box;
        margin: 0 auto !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] a i {
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    section[style*="linear-gradient(135deg, #004d99"] {
        padding: 25px 12px !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] h2 {
        font-size: 1.2em !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] p {
        font-size: 0.88em !important;
    }
    
    section[style*="linear-gradient(135deg, #004d99"] a {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* ========================================================== */
/* DEMARCHES PAGE - MOBILE FIX                               */
/* ========================================================== */

@media (max-width: 650px) {

    .about-content {
        flex-direction: column !important;
    }

    .about-content .image-block {
        width: 100% !important;
        min-height: 150px !important;
        order: 2;
    }

    .about-content .text-block {
        width: 100% !important;
        order: 1;
    }

    .about-us {
        overflow-x: hidden !important;
        width: 100% !important;
        padding: 25px 0 !important;
    }

    .about-content .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }

    .about-image {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }

    .service-cards .card {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }}
    /* ========================================================== */
/* MENU HAMBURGER - AMÉLIORATION VISUELLE MOBILE              */
/* ========================================================== */

@media (max-width: 650px) {

    /* Menu plein écran */
    .main-nav {
        padding-top: 70px;
        padding-bottom: 20px;
    }

    /* Items du menu */
    .main-nav ul li a {
        font-size: 1rem;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--color-primary);
        font-weight: 600;
        border-bottom: 1px solid #eee;
    }

    /* Item actif */
    .main-nav ul li a.active {
        background-color: var(--color-background-pale);
        color: var(--color-secondary);
        border-left: 4px solid var(--color-secondary);
    }

    /* Flèche chevron */
    .main-nav ul li a .submenu-toggle {
        font-size: 0.8rem;
        color: var(--color-secondary);
        transition: transform 0.3s ease;
        position: static;
        transform: none;
        pointer-events: none;
    }

    .main-nav li.open a .submenu-toggle {
        transform: rotate(180deg) !important;
    }

    /* Sous-menu */
    .main-nav .submenu li a {
        font-size: 0.9rem;
        padding: 10px 20px 10px 35px;
        color: var(--color-text-dark);
        font-weight: 500;
        border-left: none;
    }

    .main-nav .submenu li a::before {
        content: "→ ";
        color: var(--color-secondary);
    }

    /* Boutons mobile */
    .mobile-actions {
        padding: 20px 15px;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        border-top: 2px solid #eee;
        margin-top: 10px;
    }

    .mobile-actions .btn {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    .mobile-actions .btn-signup {
        background-color: var(--color-secondary) !important;
        color: white !important;
    }

    .mobile-actions .btn-login {
        background-color: var(--color-primary) !important;
        color: white !important;
    }



}