/* ===== VARIABLES CSS - THÈME MODERNE ===== */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #f39c12;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f1c40f;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --white: #ffffff;
    --gray: #6c757d;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET ET STYLES DE BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Empêcher tout débordement horizontal */
.inner,
.posts,
article,
section {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== HEADER PRINCIPAL ===== */
#header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

.logo h1 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== NAVIGATION PRINCIPALE ===== */
.navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.nav-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===== CONTENU PRINCIPAL ===== */
#main {
    padding: 2rem 0;
    min-height: 70vh;
}

.inner {
    padding: 0 10px;
}

/* ===== HEADER DE PAGE ===== */
.page-header {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header .logo {
    font-size: 1.4rem;
}

.page-header .logo strong {
    color: var(--secondary);
}

.disciplines-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.disciplines-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== SECTION HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-content h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-content h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-status {
    margin-top: 1.5rem;
}

.hero-image {
    text-align: center;
}

#current-image {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: opacity 0.5s ease;
}

/* ===== SECTIONS ===== */
section {
    margin-bottom: 3rem;
}

.section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

/* ===== ARTICLES ET POSTS ===== */
.posts {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.posts article {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.posts article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.posts article h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.posts article h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.posts article h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== FORMULAIRES ===== */
.login-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    box-sizing: border-box;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: var(--white);
}

/* Formulaires dans les articles */
.posts article form {
    width: 100%;
}

.posts article form input[type="text"],
.posts article form input[type="email"],
.posts article form input[type="password"] {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.posts article form input[type="submit"],
.posts article form button {
    width: 100%;
    max-width: 300px;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-form .form-control {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.search-form button,
.search-form .btn {
    white-space: nowrap;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button,
input[type="submit"] {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 1rem;
}

.button:hover,
input[type="submit"]:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.actions {
    list-style: none;
    margin: 1rem 0;
}

.actions li {
    display: inline-block;
    margin-right: 1rem;
}

/* ===== TABLEAUX ===== */
.table-container,
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--white);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Alignement des colonnes de date pour les tables */
.table-wrapper table th:last-child,
.table-wrapper table td:last-child {
    text-align: right;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 100%;
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e8f4fd;
    transition: var(--transition);
}

.highlight {
    background: #fff3cd !important;
}

.no-data {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 3rem !important;
}

/* Empêcher les débordements d'images */
.image-container,
.hero-image {
    max-width: 100%;
    overflow: hidden;
}

.image-container img,
.hero-image img,
#current-image {
    max-width: 100%;
    height: auto;
}

/* Empêcher les embeds de déborder */
embed {
    max-width: 100%;
    width: 100% !important;
}

/* ===== INDICATEURS DE STATUT ===== */
.status-info {
    text-align: center;
    margin: 1.5rem 0;
}

.status-open,
.status-closed,
.status-maintenance {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
}

.status-open {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
    border: 2px solid var(--success);
}

.status-closed {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.status-maintenance {
    background: rgba(241, 196, 15, 0.15);
    color: var(--warning);
    border: 2px solid var(--warning);
}

/* ===== ALERTES ET MESSAGES ===== */
.alert {
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid;
    font-weight: 600;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: var(--accent);
    color: var(--accent);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border-left-color: var(--warning);
    color: var(--warning);
}

/* ===== BOÎTES D'INFORMATION ===== */
.info-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
    margin: 1.5rem 0;
}

.warning {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning i {
    color: var(--accent);
    font-size: 1.3rem;
}

/* ===== LISTES ===== */
.posts article ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.posts article ul li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}

.posts article ul li:before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0.8rem;
    top: -0.2rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    background: var(--light);
    color: var(--dark);
    border: 1px solid #e0e0e0;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

/* ===== VARIABLES CSS - COULEURS PLUS VIVES ===== */
:root {
    --footer-bg: #2c3e50;
    --footer-border: #3498db;
    --footer-text: #ecf0f1;
    --footer-accent: #f39c12;
    --footer-hover: #2980b9;
}

/* ===== FOOTER REDESIGN ===== */
#footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem 0 0.5rem;
    margin-top: 2rem;
    border-top: 3px solid var(--footer-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: block;
}

.footer-image {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    display: block;
}

.footer-image:hover {
    transform: scale(1.08);
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255,255,255,0.3));
}

/* ===== LIEN SECRET ===== */
.footer-links a.secret-link {
    color: var(--footer-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.4s ease;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Icône presque invisible par défaut */
.secret-icon {
    font-size: 0.7rem;
    opacity: 0.3;
    color: rgba(255,255,255,0.4);
    transition: all 0.4s ease;
    transform: scale(0.8);
}

.fa-eye
{
color: #52A16E ;
	
}

/* Texte du lien */
.link-text {
    transition: all 0.4s ease;
    opacity: 0.8;
}

/* Effet au survol - révélation */
.footer-links a.secret-link:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.footer-links a.secret-link:hover .secret-icon {
    opacity: 1;
    color: var(--footer-hover);
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.footer-links a.secret-link:hover .link-text {
    opacity: 1;
    color: var(--footer-text);
}

/* Effet de pulsation très subtile au survol */
.footer-links a.secret-link:hover .secret-icon::before {
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1.1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Effet de focus pour l'accessibilité */
.footer-links a.secret-link:focus {
    outline: 1px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

.footer-links a.secret-link:focus .secret-icon {
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #footer {
        padding: 0.8rem 0 0.4rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-image {
        height: 30px;
    }
    
    .footer-links a.secret-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        gap: 0.2rem;
    }
    
    .secret-icon {
        font-size: 0.65rem;
    }
    
    .footer-bottom {
        padding-top: 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    #footer {
        padding: 0.6rem 0 0.3rem;
        margin-top: 1rem;
    }
    
    .footer-image {
        height: 25px;
    }
    
    .footer-links a.secret-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .secret-icon {
        font-size: 0.6rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* ===== CONSENTEMENT COOKIES ===== */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    z-index: 2000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

#cookieConsent.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

#closeCookieConsent {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

#closeCookieConsent:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* ===== CONSENTEMENT COOKIES ===== */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    z-index: 2000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

#cookieConsent.show {
    display: block;
    animation: slideUp 0.5s ease;
}

/* CORRECTION UNIQUE POUR LE BOUTON FERMETURE */
#closeCookieConsent {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    width: 80px;  /* Largeur réduite */
    height: 40px; /* Hauteur standard */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
    padding: 0;
    margin: 0;
}

#closeCookieConsent:hover {
    background: #c0392b;
    transform: scale(1.05);
}

#closeCookieConsent span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#closeCookieConsent i {
    font-size: 20px;
    margin: 0;
    padding: 0;
}

/* Les autres styles cookies restent inchangés */
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 70px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0.8rem;
        z-index: 1000;
        border-top: 3px solid var(--primary);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    } 

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.2rem;
        border-radius: var(--border-radius);
        border: 1px solid #f0f0f0;
        background: var(--light);
        font-size: 1rem;
    }

    .nav-menu li a:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: translateX(10px);
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        padding: 2.5rem;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    #header .container {
        padding: 0.8rem 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section,
    .posts article {
        padding: 2rem 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .page-header .logo {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-image {
        height: 60px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Formulaires responsive */
    .posts article form input[type="text"],
    .posts article form input[type="email"],
    .posts article form input[type="password"],
    .posts article form input[type="tel"],
    .posts article form select,
    .posts article form input[type="submit"],
    .posts article form .button {
        width: 100%;
        max-width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form .form-control {
        width: 100%;
        min-width: 100%;
    }
    
    .search-form button,
    .search-form .btn {
        width: 100%;
    }
    
    .btn,
    .button,
    input[type="submit"] {
        width: 100%;
        justify-content: center;
    }
    
    .actions li {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .actions li .button,
    .actions li a {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    /* Tableaux responsive */
    table {
        min-width: 100%;
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    thead {
        display: table-header-group;
    }
    
    tbody {
        display: table-row-group;
    }
    
    th, td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    th {
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Empêcher les liens de déborder */
    a {
        word-break: break-word;
    }
    
    /* Images et embeds responsive */
    img,
    embed {
        max-width: 100%;
        height: auto !important;
    }
    
    /* Légende responsive */
    .legend {
        font-size: 0.85rem;
        padding: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Barres de progression responsive */
    td div[style*="width: 100px"] {
        width: 80px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section,
    .posts article,
    .login-form-container {
        padding: 1.5rem 1rem;
    }
    
    /* Formulaires très petits écrans */
    .posts article form input[type="text"],
    .posts article form input[type="email"],
    .posts article form input[type="password"],
    .posts article form input[type="tel"],
    .posts article form select {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .posts article form input[type="submit"],
    .posts article form .button,
    .button,
    input[type="submit"],
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Tableaux très petits écrans */
    th, td {
        padding: 0.6rem 0.3rem;
        font-size: 0.75rem;
    }
    
    /* Icônes dans les tableaux */
    td i.fa-lg {
        font-size: 1rem !important;
    }
    
    .status-open,
    .status-closed,
    .status-maintenance {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-image {
        height: 50px;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-menu li a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-form .form-control {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Barres de progression très petits écrans */
    td div[style*="width: 100px"],
    td div[style*="width: 80px"] {
        width: 60px !important;
    }
    
    /* Pagination responsive */
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ===== CORRECTION DES CHAMPS DE FORMULAIRE SPÉCIFIQUES ===== */
input[type="tel"],
input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: inherit;
}

input[type="tel"]:focus,
input[type="text"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: var(--white);
}

/* Alignement spécifique pour les champs en ligne */
form input[type="text"],
form input[type="tel"],
form input[type="email"] {
    display: block;
    width: 100%;
}

/* Pour les formulaires avec plusieurs champs sur la même ligne */
@media (min-width: 769px) {
    form input[type="text"],
    form input[type="tel"],
    form input[type="email"] {
        display: inline-block;
        width: calc(50% - 0.5rem);
        margin-right: 1rem;
    }
    
    form input[type="text"]:nth-child(2n),
    form input[type="tel"]:nth-child(2n),
    form input[type="email"]:nth-child(2n) {
        margin-right: 0;
    }
}

/* Style pour le textarea */
textarea {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: var(--white);
}

/* Style pour les selects */
select {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: inherit;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: var(--white);
}

/* Style pour les labels implicites (titres) */
h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Amélioration responsive pour petits écrans */
@media (max-width: 768px) {
    form input[type="text"],
    form input[type="tel"],
    form input[type="email"],
    form select,
    form textarea {
        width: 100%;
        margin-right: 0;
        display: block;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== IMPRESSION ===== */
@media print {
    #header,
    #footer,
    .nav-toggle,
    #cookieConsent {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ===== Reserach tableau etablissement ===== */
/* .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

#searchEtablissement {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#searchInfo {
    transition: all 0.3s ease;
} */
