/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
    min-height: 70px;
    overflow: hidden;
    position: relative;
}

.nav-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 2.5rem;
    gap: 0.75rem;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    position: absolute;
    left: calc(50% + 3rem);
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-login-btn {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-left: 1rem;
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Masquer la scrollbar sur WebKit */
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu li {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche la compression des éléments */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00b4d8;
    background-color: transparent;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #00b4d8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Section Hero */
.hero {
    background: white;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
}

.hero-logo {
    height: 350px;
    width: auto;
    margin-bottom: 2rem;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #023e8a;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    text-shadow: none;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0077b6, #023e8a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Bouton de connexion dans la navigation */
.nav-login-btn {
    background: linear-gradient(135deg, #00b4d8, #0077b6) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: none !important;
    margin-top: 3px !important;
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #0077b6, #023e8a) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Responsive pour le bouton de connexion */
@media (max-width: 768px) {
    .nav-login-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* En-têtes de pages */
.page-header {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
    color: white;
    padding: 4rem 3rem 2rem;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px 15px 0 0;
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: #00b4d8;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* En-têtes de pages dans le contenu (pages DB) */
.container .page-header {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
    color: white;
    margin: 0;
    padding: 3rem 3rem 2rem 3rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.container .page-header:first-child {
    margin-top: 0;
}

.container .page-header h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.container .page-header h1 i {
    color: #00b4d8;
}

.container .page-header p {
    color: white;
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenu principal */
.content {
    padding: 4rem 0;
    min-height: 50vh;
}

/* Ajustement pour les pages avec en-tête (actualités, galerie) */
.content .page-header:first-child + .container {
    padding-top: 4rem;
}

.page-content {
    background: white;
    padding: 2rem 3rem 3rem 3rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-content h1 {
    color: #023e8a;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.page-content h2 {
    color: #0077b6;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.page-content h3 {
    color: #0077b6;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.4rem;
}

.page-content h4 {
    color: #023e8a;
    margin: 1.2rem 0 0.6rem;
    font-size: 1.2rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content a {
    color: #0077b6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #023e8a;
    text-decoration: none;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content li a {
    color: #0077b6;
    text-decoration: underline;
}

.page-content li a:hover {
    color: #023e8a;
}

.page-content strong {
    color: #023e8a;
    font-weight: 600;
}

/* Style pour le contenu des articles */
/* Contenu des articles */
.article-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #023e8a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-content h1 {
    font-size: 2rem;
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #0077b6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.article-content strong {
    color: #023e8a;
    font-weight: 600;
}

.article-content a {
    color: #0077b6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #023e8a;
}

/* Grille d'articles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-card h3 {
    color: #023e8a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #023e8a;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Section actualités récentes */
.recent-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.recent-posts h2 {
    text-align: center;
    color: #023e8a;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Section tous les articles (page actualités) */
.all-posts {
    margin-top: 2rem;
}

.post-date {
    color: #0077b6 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date i {
    font-size: 0.8rem;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
}

.no-posts h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-posts p {
    margin: 0;
    font-size: 1rem;
}

/* Message d'état vide uniforme */
.empty-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.empty-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-message h3 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.5rem;
}

.empty-message p {
    margin: 0;
    font-size: 1rem;
}

/* Article complet */
.single-post {
    padding: 2rem 0;
}

.breadcrumb-container {
    background: #f8f9fa;
    padding: 1rem 3rem;
    border-bottom: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0077b6;
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.post-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.post-header h1 {
    color: #023e8a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-image {
    margin: 2rem 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation et partage des articles */
.post-navigation {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation .btn-secondary {
    background-color: #0077b6;
    color: white;
    border: 1px solid #0077b6;
}

.post-navigation .btn-secondary:hover {
    background-color: #005a8b;
    border-color: #005a8b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    font-weight: 600;
    color: #666;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.post-share a:hover {
    transform: translateY(-2px);
}

.post-share a[href*="facebook"] {
    background: #1877f2;
}

.post-share a[href*="twitter"] {
    background: #1da1f2;
}

/* Image d'article */
.post-image {
    margin: 2rem 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Métadonnées d'article */
.post-meta {
    margin-top: 1rem;
}

.post-meta .date {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.post-meta .excerpt {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Fil d'ariane amélioré */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.6);
}

/* Galerie photos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.8;
}

/* Modal pour galerie - Classes spécifiques pour éviter les conflits */
.gallery-modal {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    overflow: auto !important;
}

.gallery-modal-content {
    position: relative !important;
    margin: 5% auto !important;
    display: block !important;
    width: 90% !important;
    max-width: 800px !important;
    text-align: center !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.gallery-modal-content img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain !important;
    border-radius: 10px 10px 0 0 !important;
}

.gallery-modal-info {
    background: white !important;
    padding: 1.5rem !important;
    border-radius: 0 0 10px 10px !important;
}

.gallery-modal-info h3 {
    color: #023e8a !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.5rem !important;
}

.gallery-modal-info p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.gallery-modal .close {
    position: absolute !important;
    top: 15px !important;
    right: 35px !important;
    color: white !important;
    font-size: 40px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    transition: color 0.3s ease !important;
}

.gallery-modal .close:hover,
.gallery-modal .close:focus {
    color: #00b4d8 !important;
    text-decoration: none !important;
}

.close:hover {
    color: #00b4d8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #00b4d8;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #00b4d8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00b4d8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
/* Écrans moyens - tablettes et petits desktops */
@media (max-width: 1200px) {
    .navbar .container {
        padding: 0 1.2rem;
        gap: 1.2rem;
    }
    
    .nav-brand {
        margin-right: 2rem;
    }
    
    .nav-menu {
        left: calc(50% + 2rem);
        gap: 0.75rem;
    }
    
    .nav-login-btn {
        margin-left: 0.8rem;
    }
    
    .nav-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
}

@media (max-width: 968px) {
    .navbar .container {
        gap: 1rem;
    }
    
    .nav-brand {
        margin-right: 1.5rem;
    }
    
    .nav-menu {
        left: calc(50% + 0.25rem);
        gap: 0.5rem;
    }
    
    .nav-login-btn {
        margin-left: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .nav-brand .logo {
        height: 32px;
    }
}

/* Écrans petits - mobiles */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        position: relative;
    }
    
    .nav-brand {
        flex: none;
        display: flex;
        align-items: center;
        margin-right: 0;
        gap: 0.75rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-login-btn {
        background: white !important;
        color: #1e3c72 !important;
        padding: 12px 24px !important;
        border-radius: 25px !important;
        margin-top: 1rem;
    }
    
    .nav-menu li {
        list-style: none;
    }
    
    .nav-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        text-align: center;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger {
        display: flex;
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 1001;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }
    
    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(0px, 0px);
        position: absolute;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0px, 0px);
        position: absolute;
    }.hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-logo {
        height: 280px;
    }
    
    .breadcrumb-container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-logo {
        height: 220px;
        margin-bottom: 1.5rem;
    }    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content,
.post-card,
.gallery-item {
    animation: fadeIn 0.6s ease-out;
}

/* Style pour les formulaires dans l'admin */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tables pour l'admin */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Messages d'alerte */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Styles pour les pages de profil */
.profile-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #f8f9fa;
}

.tab-button.active {
    background-color: #00b4d8;
    color: white;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-form .form-group.full-width {
    grid-column: 1 / -1;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
}

.profile-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.profile-form input,
.profile-form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

.profile-form small {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Styles pour les inscriptions */
.registrations-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.registration-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.registration-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.registration-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.registration-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-inscrit,
.status-confirmed {
    background-color: rgba(83, 197, 83, 0.473);
    color: #99ff8f;
    font-weight: 600;
}

.status-liste_attente,
.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-annule,
.status-cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.registration-details {
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #555;
}

.detail-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #00b4d8;
}

.event-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.type-piscine,
.type-training {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-sortie,
.type-outing {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.type-formation,
.type-reunion,
.type-autre,
.type-event {
    background-color: #fff3e0;
    color: #f57c00;
}

.registration-description {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #00b4d8;
}

.registration-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.registration-actions {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #495057;
}

@media (max-width: 768px) {
    .profile-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .registration-actions {
        justify-content: stretch;
    }
    
    .registration-actions .btn {
        flex: 1;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.15s ease-out;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal.closing {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.15s ease-in;
}

.modal-content {
    background-color: white;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@keyframes flashIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: brightness(3);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        filter: brightness(1.5);
    }
    60% {
        transform: translate(-50%, -50%) scale(0.98);
        filter: brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
}

@keyframes flashOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
        filter: brightness(2);
    }
    40% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.95);
        filter: brightness(2.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
        filter: brightness(4);
    }
}

.modal.show .modal-content {
    animation: flashIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal.closing .modal-content {
    animation: flashOut 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-5px);
    opacity: 0;
    transition: all 0.15s ease-out 0.05s;
}

.modal.show .modal-header {
    transform: translateY(0);
    opacity: 1;
}

.modal.closing .modal-header {
    transform: translateY(-15px) scale(1.1);
    opacity: 0;
    filter: brightness(2);
    transition: all 0.1s ease-in;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.2s ease-out;
    transform: rotate(0deg);
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(180deg) scale(1.2);
}

.modal-body {
    padding: 2rem;
    transform: translateY(5px);
    opacity: 0;
    transition: all 0.15s ease-out 0.1s;
}

.modal.show .modal-body {
    transform: translateY(0);
    opacity: 1;
}

.modal.closing .modal-body {
    transform: translateY(10px) scale(0.9);
    opacity: 0;
    filter: brightness(1.8);
    transition: all 0.12s ease-in 0.02s;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #00b4d8;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.12s ease-out;
}

.modal.show .detail-section:nth-child(1) {
    transition-delay: 0.15s;
    transform: scale(1);
    opacity: 1;
}

.modal.show .detail-section:nth-child(2) {
    transition-delay: 0.18s;
    transform: scale(1);
    opacity: 1;
}

.modal.show .detail-section.full-width {
    transition-delay: 0.21s;
    transform: scale(1);
    opacity: 1;
}

.modal.closing .detail-section {
    transform: scale(0.8);
    opacity: 0;
    filter: brightness(2.2);
    transition: all 0.08s ease-in;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.detail-section:hover h3 {
    color: #00b4d8;
}

.detail-section h3 i {
    color: #00b4d8;
    transition: transform 0.2s ease-out;
}

.detail-section:hover h3 i {
    transform: scale(1.2) rotate(5deg);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.detail-row:hover {
    background-color: rgba(0, 180, 216, 0.05);
    margin: 0 -0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 120px;
    transition: color 0.2s ease;
}

.detail-row:hover .detail-label {
    color: #00b4d8;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
}

.event-description,
.event-notes {
    color: #555;
    line-height: 1.6;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.event-description:hover,
.event-notes:hover {
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.1);
    border-color: #00b4d8;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e9ecef;
    transform: translateY(5px);
    opacity: 0;
    transition: all 0.15s ease-out 0.24s;
}

.modal.show .modal-footer {
    transform: translateY(0);
    opacity: 1;
}

.modal.closing .modal-footer {
    transform: translateY(15px) scale(1.05);
    opacity: 0;
    filter: brightness(1.5);
    transition: all 0.1s ease-in 0.05s;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .modal.show .modal-content {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Articles responsive */
    .article-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    .post-navigation {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .post-share {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-height: 600px) {
    .modal-content {
        max-height: 95vh;
        margin: 2.5vh auto;
    }
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Styles pour la galerie */
.gallery-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.gallery-grid .gallery-item {
    cursor: pointer !important;
    user-select: none;
}

.gallery-grid .gallery-item * {
    pointer-events: none;
}

.gallery-grid .gallery-item {
    pointer-events: auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #0077be;
    color: #0077be;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0077be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
}

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

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,119,190,0.9), rgba(0,77,158,0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff; /* force pure white */
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
}

.gallery-info p {
    margin: 0 0 1.2rem 0;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 70ch; /* improves readability */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

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

.gallery-zoom:hover {
    background: white;
    color: #0077be;
    transform: scale(1.1);
}

/* Override earlier generic .gallery-overlay i rule so icons inside the
   circular .gallery-zoom stay centered by flexbox (prevent absolute
   positioning from removing the icon from the flex flow). */
.gallery-overlay .gallery-zoom i {
    position: static;
    transform: none;
    display: inline-block;
    line-height: 1;
    margin: 0;
}

/* Slightly reduce overlay content size on very small screens so it doesn't
   overwhelm the image and remains readable. */
@media (max-width: 480px) {
    .gallery-info h4 {
        font-size: 1.25rem;
        letter-spacing: 0.2px;
    }

    .gallery-info p {
        font-size: 0.95rem;
        max-width: 45ch;
    }

    .gallery-zoom {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

.no-images {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-images-content i {
    font-size: 4rem;
    color: #0077be;
    margin-bottom: 2rem;
}

.no-images-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-images-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 2rem;
    text-align: center;
}

.lightbox-info h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.lightbox-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-info h4 {
        font-size: 1.2rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-info {
        padding: 1rem;
    }
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}