:root {
    --primary-color: #ed1c24;
    --secondary-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #666;
    --white: #fff;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.banniere {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 120px;
    margin-bottom: 15px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.description {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Menu de navigation */
.main-nav {
    margin-bottom: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 12px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.main-nav a.active, .main-nav a:hover {
    background-color: var(--primary-color);
}

main {
    flex: 1;
}

/* Styles pour la page de mobilisation */
.content-page {
    line-height: 1.6;
}

/* Styles pour le tract CGT */
.tract-section {
    margin-bottom: 40px;
    text-align: center;
}

.tract-container {
    max-width: 100%;
    margin: 0 auto;
}

.tract-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.tract-cta {
    margin-top: 15px;
    font-weight: bold;
}

.tract-cta a {
    color: var(--primary-color);
    text-decoration: none;
}

.tract-cta a:hover {
    text-decoration: underline;
}

.mobilisation-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.mobilisation-section:last-of-type {
    border-bottom: none;
}

.mobilisation-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mobilisation-section h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.mobilisation-content {
    padding: 0 10px;
}

.mobilisation-content p {
    margin-bottom: 15px;
}

.action-list {
    padding-left: 20px;
}

.action-list li {
    margin-bottom: 10px;
}

.cta-section {
    text-align: center;
    margin: 40px 0 20px;
}

/* Styles pour les vidéos */
.video-container {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.video-container h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Styles pour les affiches */
.affiches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.affiche-item {
    text-align: center;
}

.affiche-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.affiche-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Styles pour les boutons de partage */
.social-share {
    margin: 30px 0;
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.social-share h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-button i {
    margin-right: 8px;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-email {
    background-color: #ea4335;
}

.social-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
    }
    
    .social-button {
        width: 100%;
    }
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[readonly] {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #c41016;
}

footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.admin-link {
    margin-top: 10px;
}

.admin-link a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.8rem;
}

.admin-link a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

#confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.confirmation-content i {
    color: var(--success);
    font-size: 3rem;
    margin-bottom: 15px;
}

.confirmation-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.confirmation-content p {
    margin-bottom: 20px;
}

/* Styles pour la page d'administration */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-nav {
    margin-bottom: 20px;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.admin-nav li {
    flex: 1;
    text-align: center;
}

.admin-nav a {
    display: block;
    padding: 10px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-nav a.active, .admin-nav a:hover {
    background-color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.admin-table th {
    background-color: var(--secondary-color);
    color: var(--white);
}

.admin-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

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

/* Styles pour l'administration des repas */
.admin-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 45%;
}

.stat-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stat-card p {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
}

.export-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .admin-nav ul {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th, .admin-table td {
        padding: 8px 5px;
    }
}

/* Onglets des Unions Locales */
.ul-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

.ul-tab {
    flex: 1;
    min-width: 140px;
    padding: 12px 10px;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px 4px 0 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ul-tab:hover {
    background-color: #e0e0e0;
}

.ul-tab[aria-selected="true"] {
    background-color: var(--primary-color);
    color: var(--white);
}

.ul-panel h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ul-infos {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.ul-form {
    width: 100%;
    height: 900px;
    border: none;
}

.ul-form-pending {
    padding: 25px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Flux RSS cgt.fr */
.rss-section {
    margin-top: 40px;
}

.rss-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.rss-list {
    list-style: none;
    padding: 0;
}

.rss-item {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.rss-item a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

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

.rss-item time {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.rss-item p, .rss-message {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.rss-more {
    margin-top: 15px;
    text-align: right;
}

.ul-form-container .btn-submit {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    text-decoration: none;
}
