@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

/* Définit la largeur totale de la page */
html {
    width: 100%;
}

/* Style général du corps de la page */
body {
    width: 100%;
    overflow-x: hidden; /* Empêche le défilement horizontal */
    margin: 0; /* Supprime la marge par défaut */
    background-image: url("../medias/commun/Paix.jpg"); /* Image de fond */
    background-repeat: no-repeat; /* Ne répète pas l'image */
    background-size: cover; /* L'image couvre toute la page */
    background-position: center; /* Centre l'image */
}

/* Style général pour toutes les images */
img {
    max-width: 100%; /* Empêche l'image de dépasser son conteneur */
    height: auto; /* Garde les proportions */
    display: block; /* Supprime l'espace sous l'image */
}

/* Style de l'image dans l'en-tête */
.header-bg img {
    width: 95%;
    height: auto;
    display: block;
}

/* Barre de navigation — uniforme avec le footer */
nav {
    background-color: var(--couleur-secondaire-fonce);
    position: sticky; /* Reste en haut lors du défilement */
    top: 0;
    z-index: 1000; /* Passe au-dessus des autres éléments */
    width: 100%;
    min-height: 80px;
    display: flex; /* Utilise flexbox */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
}

/* Conteneur du menu */
nav .container {
    width: min(900px, 100%); /* Largeur maximale */
    margin: 0 auto; /* Centre le conteneur */
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* Espace entre les liens */
}

/* Liens du menu */
nav a {
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    min-height: 44px;
    border-radius: 12px; /* Coins arrondis */
    color: black;
    text-decoration: none; /* Supprime le soulignement */
    font-weight: bold;
    white-space: nowrap;
}

/* Style du lien actif */
nav a.active {
    background-color: #1abc9c;
}

/* Effet au survol des liens */
nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Police et centrage des titres h1 — surcharge style-mini.css */
h1 {
    font-family: "Dancing Script", cursive;
    text-align: center;
}

/* Texte et accroche des pages */
#main .container > p,
#main .container p {
    font-size: 1.2rem;
    text-align: center;
    margin: 10px 0 20px 0;
}

/* Texte de la page Gestion */
.texte-gestion {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 15px;
}

/* Couleur d'un titre */
.titre {
    color: #1abc9c;
}

/* Supprime l'ombrage de coin relevé de style-mini.css */
.unenote:after {
    display: none;
}

/* Bloc d'un mémo — uniforme avec les autres bulles */
.unenote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Texte du mémo */
.unenote p {
    color: black;
    font-weight: bold;
}

/* Date du mémo */
.unenote .date {
    font-size: 1rem;
    font-weight: bold;
    color: black;
}

/* Style général des boutons */
.bouton {
    background-color: #1abc9c;
    color: white;
}

/* Effet hover sur les boutons */
.bouton:hover {
    background-color: #16a085;
}

/* Conteneur principal du site */
.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 20px;
}

/* Zone d'en-tête — image post-its masquée, espace supprimé */
header .header-bg {
    display: none;
}

/* Compense l'espace laissé par la suppression des post-its */
header .logo {
    padding: 25px 15px;
}

/* Mise en page de la section À propos */
.apropos-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 20px 0;
}

/* Carte gauche — photo + nom */
.apropos-carte {
    background-color: var(--couleur-principale-pale, #4F9D9B);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    color: white;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Photo circulaire dans la carte */
.apropos-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin: 0 auto 16px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Nom dans la carte */
.apropos-carte h2 {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 8px 0 6px 0;
}

/* Sous-titre dans la carte */
.apropos-carte p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

/* Bloc texte À propos */
.apropos-texte {
    flex: 1;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

/* Texte du bloc À propos */
.apropos-texte p {
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
    margin: 0 0 12px 0;
}

/* Titre du bloc À propos */
.apropos-texte h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f6d6d;
    text-align: left;
}

/* Lien du bouton détails */
.btn-details {
    color: black;
}

/* Centre le contenu du mémo */
.centre-memo {
    text-align: center;
    width: 100%;
    font-weight: bold;
}

/* Bulle d'affichage du mémo */
.memo-bulle {
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);

    box-shadow: 0 12px 30px rgba(0,0,0,0.25);

    text-align: center;
    margin: 30px auto;
}
.memo-bulle #form{

        font-size: 1.2rem;
        text-align: center;
        margin: 10px 0 20px 0;

}

/* Titre de la bulle mémo */
.memo-bulle h2 {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Texte de la bulle mémo */
.memo-bulle p {
    margin: 10px 0;
    font-weight: bold;
}

/* Bloc principal du formulaire contact */
.bloc-contact{
    max-width:640px;
    margin:0 auto;
    padding:30px 40px;

    background:rgba(255,255,255,0.9);
    border-radius:10px;

    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

/* Titre du formulaire */
.bloc-contact h1{
    margin-top:0;
    color:#1b7f7f;
}

/* Texte d'introduction du formulaire */
.texte-contact{
    margin-bottom:30px;
    font-size:18px;
}

/* Grille du formulaire */
.formulaire-contact{
    display:grid;
    gap:18px;
}

/* Ligne avec deux champs */
.ligne-double{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* Style des champs du formulaire */
.formulaire-contact input,
.formulaire-contact textarea{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:16px;
}

/* Zone de texte */
textarea{
    min-height:140px;
}

/* Bouton envoyer */
.bouton-envoyer{
    background:#57a6a6;
    color:white;
    border:none;
    padding:12px 24px;
    border-radius:4px;
    font-size:16px;
    cursor:pointer;
    width:140px;
}

/* Ajoute une étoile rouge devant un champ obligatoire */
label.requis::before{
    content:"* ";
    color:red;
}

/* Zone contenant les boutons */
.boutons-contact{
    text-align:center;
    margin-top:25px;
}

/* Style d'un bouton lien */
.boutons-contact .bouton{
    display:inline-block;
    text-decoration:none;
}

/* Message d'erreur général (PHP) */
.message-erreur {
    color: #c0392b;
    background-color: #fdecea;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 10px 0;
    font-weight: bold;
}

/* Message d'avertissement (aucune donnée) */
.message-avertissement {
    color: #7d6608;
    background-color: #fef9e7;
    border: 1px solid #f1c40f;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 10px 0;
}

/* Message d'erreur de formulaire */
.message-erreur-formulaire {
    color: red;
    font-size: 14px;
    margin: 4px 0 0 0;
    min-height: 18px;
}

/* Contrôle en erreur */
.controle-erreur {
    border: 2px solid red !important;
}

/*Alignement uniformément des colonnes du tableau */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    text-align: left;
    padding: 8px 16px;
}


/* Variante large de la bulle — utilisée pour les tableaux (memos.php) */
.memo-bulle-liste {
    max-width: 900px;
    text-align: left;
}

/* En-tête du tableau */
.memo-bulle-liste th {
    background-color: #1abc9c;
    color: white;
    font-weight: bold;
    padding: 10px 16px;
}

/* Lignes alternées du tableau */
.memo-bulle-liste tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Survol des lignes */
.memo-bulle-liste tbody tr:hover {
    background-color: rgba(26, 188, 156, 0.12);
}

/* Colonne icône — centrée (1re colonne du tableau memos.php) */
.memo-bulle-liste td:nth-child(1),
.memo-bulle-liste th:nth-child(1) {
    text-align: center;
    font-size: 1.2rem;
    width: 60px;
}

/* Formulaire d'ajout de mémo — même mise en page que formulaire-contact */
#formulaire-memo {
    display: grid;
    gap: 18px;
}

/* Labels du formulaire mémo */
#formulaire-memo label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

/* Champs texte et date du formulaire mémo */
#formulaire-memo input[type="text"],
#formulaire-memo input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Groupe de boutons radio — icônes sur plusieurs lignes propres */
.groupe-icones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* Chaque option radio avec son icône */
.groupe-icones label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Adaptation du menu sur mobile */
@media (max-width: 600px) {
    nav {
        min-height: auto;
        padding: 10px 0;
    }

    nav .container {
        width: 100%;
        margin: 0;
        padding: 0 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    nav a {
        width: auto;
        padding: 10px 14px;
        min-height: 40px;
        text-align: center;
    }
}