/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
}


a {
    text-decoration: none;
}
.container {
	padding: 20px;	
	
}
.message {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.success {
    color: green;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.error {
    color: red;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
header {
    position: sticky;/*fixe*/
    top: 0;
    /*background-color: white;  ou une autre couleur pour éviter la transparence */
    z-index: 1000; /* s'assurer qu'il passe au-dessus du reste */
}
/* En-tête jaune avec date */
.header-banner {
    background-color: #ffff00;/*jaune*/
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
	color: black;
}

.header-banner a {
    color: #333;
}

/* En-tête principal avec logo et navigation */
.main-header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding-left: 20px;
}

.logo img {
    height: 40px;
}

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

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.main-nav a:hover {
    color: #ffff00;
}

/* Section héros avec image de fond */
.hero-section {
    background-image: url('img/photo_migrants.png');
    background-size: cover;
    background-position: center;
    color: white;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Titre avec l'acronyme */
.acronym {
    padding: 20px;
    text-align: center;
    font-size: 24px;
    background-color: white;
	
}
.acronym-bold28 {
	font-weight: bold;
	font-size: 28px
}
.acronym-bold22 {
	font-weight: bold;
	font-size: 22px
}
.acronym-bold18 {
	font-weight: bold;
	font-size: 18px
}

/* Section citation */
.quote-section {
    background-color: #1e6991;
    color: white;
    padding: 20px;
    text-align: center;
}

.quote {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 10px;
}

.quote-author {
    font-size: 14px;
    text-align: right;
    padding-right: 20%;
}

/* Styles pour les formulaires  */

.form-container {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
	font-size: 1.2em;
}

.form-title {
    font-size: 20px;
    color: #333;
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important pour que le padding n'affecte pas la largeur totale */
}

.submit-button {
    background-color: #007bff; /* Couleur de votre thème */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #0056b3; /* Couleur plus foncée au survol */
}

.checkbox-group {
    display: flex;
    flex-direction: column; /* Les checkboxes les uns en dessous des autres */
}

.checkbox {
    margin-bottom: 5px;
}

/* Styles spécifiques (exemple) */
.login-form {
    width: 300px;
    margin: 0 auto;
}
/* Section d'information */
.info-section {
    background-color: white;
    padding: 20px;
    margin: 0;
}

.info-section h2 {
    color: #1e6991;
    font-size: 18px;
}

.info-section p {
    text-align: justify;
    line-height: 1.5;
}

/* Section contact */
.contact-section {
    background-color: #000306;
    color: white;
    padding: 20px;
}

.contact-section h3 {
    text-align: center;
    margin-top: 0;
}

.address {
    text-align: center;
    margin-bottom: 20px;
}

/* Section aide */
.help-section {
    background-color: #1e6991;
    color: white;
    padding: 20px;
}

.help-section h3 {
    margin-top: 0;
}

.help-section p {
    line-height: 1.5;
}

/* Section cartes du monde */
.world-map {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #f5f5f5;
}

.world-map img {
    height: 150px;
    margin: 0 10px;
}

/* Galerie photos */
.photo-gallery {
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne si nécessaire */
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    gap: 20px; /* Espacement entre les images */
    padding: 20px 0;
    background-color: #1e6991;
}

.photo-gallery img {
    width: auto; /* Largeur automatique pour conserver les proportions */
    max-width: 100%; /* Ne pas dépasser la largeur du conteneur */
    height: auto; /* Hauteur automatique pour conserver les proportions */
    max-height: 250px; /* Hauteur maximale */
    object-fit: contain; /* Conserve les proportions sans rognage */
}
.photo img {
    width: auto; /* Largeur automatique pour conserver les proportions */
    max-width: 100%; /* Ne pas dépasser la largeur du conteneur */
    height: auto; /* Hauteur automatique pour conserver les proportions */
    object-fit: contain; /* Conserve les proportions sans rognage */
}

/* Pied de page */
.footer {
    background-color: white;
    padding: 20px;
    text-align: center;
}

.footer img {
    max-width: 150px;
}

/* Bannière cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    z-index: 1000;
}

.cookie-buttons {
    display: flex;
}

.cookie-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #1e6991;
    color: white;
    border: none;
    cursor: pointer;
}

.cookie-buttons button:hover {
    background-color: #154c69;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo {
        padding-left: 0;
        margin-bottom: 10px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px;
    }
    
    .hero-section {
        height: 200px;
    }
    
    .hero-text {
        font-size: 28px;
    }
    
    .acronym-title {
        font-size: 20px;
    }
    
    .cookie-banner {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 10px;
    }
    
    .world-map {
        flex-direction: column;
        align-items: center;
    }
    
    .world-map img {
        margin: 10px 0;
    }
    
    .photo-gallery {
        flex-direction: row; /* Conserve l'alignement en ligne */
        flex-wrap: wrap; /* Permet toujours le passage à la ligne */
    }
    
    .photo-gallery img {
        width: 45%; /* Largeur relative pour s'adapter à l'écran */
        margin: 10px 0;
    }
}
/* Pour les très petits écrans */
@media screen and (max-width: 480px) {
		.photo-gallery img {
        width: 90%; /* Presque toute la largeur sur très petits écrans */
    }
	    .main-header {
        flex-direction: column;
        padding: 10px 0;
    }
}
/* Ajouts au fichier styles.css pour la page "nous.php" */

/* Section info banner (siège social) */
.info-banner {
    background-color: #1e6991;
    color: white;
    padding: 20px;
    text-align: center;
}

.info-banner h2 {
    margin: 20px 0 10px 0;
    font-size: 18px;
}

.info-banner p {
    margin: 10px 0 25px 0;
    font-style: italic;
}

/* Section objectifs */
.objectives-section {
    background-color: white;
    padding: 20px;
    margin: 0;
}

.objectives-section h2 {
    color: #1e6991;
    font-size: 18px;
    margin-bottom: 15px;
}

.objectives-section p {
    text-align: justify;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Section membres du bureau */
.bureau-section {
    background-color: #1e6991;
    color: white;
    padding: 20px;
    text-align: center;
}

.bureau-section h2 {
    margin-bottom: 20px;
}

.bureau-members {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bureau-members li {
    margin-bottom: 10px;
}

/* Section conseil d'administration */
.ca-section {
    background-color: #1e6991;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 2px;
}

.ca-section h2 {
    margin-bottom: 20px;
}

.ca-members {
    line-height: 1.8;
}

/* Media queries pour la mosaic en version mobile */
@media screen and (max-width: 768px) {
    .mosaic-container {
        width: 95%;
        grid-gap: 5px;
    }
    
    .bureau-members li {
        padding: 0 10px;
    }
    
    .ca-members {
        padding: 0 10px;
    }
}

/* Styles pour le menu utilisateur */
.user-menu {
    position: relative;
}

.user-button {
    background-color: #2a5e8a;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-button:hover {
    background-color: #1e4e75;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #333;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.user-menu-dropdown a:hover {
    background-color: #444;
}

.dropdown-logout-form {
    margin: 0;
    padding: 0;
}

.dropdown-logout-button {
    width: 100%;
    background-color: #c33;
    color: white;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-logout-button:hover {
    background-color: #a22;
}

/* Adaptation responsive */
@media screen and (max-width: 768px) {
    .user-menu-dropdown {
        right: -50px; /* Ajustement pour les petits écrans */
    }
}

/* Styles pour la section contact */
.contact-section {
    background-color: #1e6991;
    
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-info {
    margin-top: 15px;
}

.contact-info p, .contact-info address {
    margin: 10px 0;
    line-height: 1.6;
}

.contact-info a {
    color: #ffff00;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.contact-info h4 {
    margin: 15px 0 10px 0;
    font-size: 16px;
}

address {
    font-style: normal;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
}
/* Gestion des documents*/

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.documents-table th, .documents-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
	background-color: #629cad;
}

.documents-table th {
    
}

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

.document-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.document-link:hover {
    background-color: #45a049;
}


/* Nouvelles règles pour la page Adhésion/Don */

.options-section {
    background-color: #f5f5f5;
    padding: 40px 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.option-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.option-card h3 {
    color: #1e6991;
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
}

.option-card p {
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.option-btn {
    display: inline-block;
    background-color: #1e6991;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.option-btn:hover {
    background-color: #154c69;
    color: #ffff00;
}

.option-btn.secondary {
    background-color: transparent;
    border: 2px solid #1e6991;
    color: #1e6991;
}

.option-btn.secondary:hover {
    background-color: #1e6991;
    color: white;
}

.separator {
    height: 2px;
    background-color: #eee;
    margin: 40px 0;
    border: none;
}

.section-anchor {
    scroll-margin-top: 100px; /* Pour compenser le header sticky */
}