/* =========================================================
   STYLES.CSS — ASSOCIATION-DOUNIA
   Version nettoyée et harmonisée
   ========================================================= */

/* ============================= */
/* RÉGLAGES GÉNÉRAUX             */
/* ============================= */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style-type: none;
}


/* ============================= */
/* LIENS                         */
/* ============================= */

a {
    text-decoration: underline;
    color: #0645ad;
}

a:hover {
    color: #c0392b;
}


/* ============================= */
/* NAVIGATION                    */
/* ============================= */
/* ============================= */
/* NAVIGATION                    */
/* ============================= */

nav {
    overflow: hidden;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.9;
    padding: 8px 5px;
    z-index: 1000;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    font-size: 1.3em;
    float: none;
    text-decoration: none;
}

header li a {
    text-decoration: underline;
    color: white;
    display: block;
    text-align: center;
    padding: 6px 10px;
    white-space: nowrap;
}

/* Bouton "hamburger" : masqué sur grand écran, affiché seulement en mobile */
.menu-toggle {
    display: none;
}
/* ============================= */
/* ZONE CENTRALE                 */
/* ============================= */

div#centre main {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ============================= */
/* ACCUEIL                       */
/* ============================= */

#imagePrincipale {
    background: url(./images/PubPourSite/acceuil.webp) no-repeat fixed 50% 50%;
    background-size: cover;
    margin: 0;
    padding: 10px;
    height: 1000px;
    width: 100%;
}


/* ============================= */
/* SECTIONS GÉNÉRALES            */
/* ============================= */

section {
    background-color: antiquewhite;
    padding: 30px;
    box-sizing: border-box;
}

section h2 {
    font-size: 2em;
    text-align: center;
    text-decoration: underline;
    color: tomato;
}

p {
    padding: 5px 8%;
    box-sizing: border-box;
}


/* ========================================================= */
/* PRÉSENTATION                                               */
/* ========================================================= */

#presentation {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Image principale */

#presentation .presentation-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

#presentation .presentation-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}


/* Liens */

#presentation .presentation-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    margin: 8px 0 15px 0;
}

#presentation .presentation-links a {
    display: inline-block;
    padding: 5px 12px;
    color: #0645ad;
    font-weight: bold;
    text-decoration: none;
}

#presentation .presentation-links a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.bouton-espace-saisie {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #146c3a;
    color: #ffffff !important;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
    transition: background 0.2s ease, transform 0.2s ease;
}

.bouton-espace-saisie:hover {
    background: #0f572e;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* Vocaux */

#presentation .vocaux {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    margin: 10px auto 5px auto;
    box-sizing: border-box;
}

#presentation .vocal {
    width: 360px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

#presentation .vocal h4 {
    margin: 0 0 8px 0;
    color: #222;
}

#presentation .vocal audio {
    display: block;
    width: 100%;
}


/* Texte */

#presentation .presentation-texte {
    width: 100%;
    margin-top: 5px;
    padding: 0;
    text-align: left;
    line-height: 1.5;
    box-sizing: border-box;
}

#presentation .presentation-texte p {
    margin: 0 0 10px 0;
    padding: 5px 8%;
}


/* ========================================================= */
/* RÉALISATIONS                                               */
/* ========================================================= */

section#realiser {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 30px 0;
    background-color: rgba(198, 220, 221, 0.897);
    box-sizing: border-box;
}

section#realiser div.realise {
    width: 33.33%;
    text-align: center;
    box-sizing: border-box;
    padding: 0 10px;
}

section#realiser div img {
    display: block;
    width: 90%;
    height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

section#realiser img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}

section#realiser div p {
    margin: 5px 0 10px 0;
    padding: 10px;
    font-size: 1em;
    text-align: left;
}

section#realiser div h4 {
    font-size: 1em;
    text-align: center;
    text-decoration: underline;
    color: darkred;
}

section#realiser div h3 {
    font-size: 17px;
    margin: 15px 10px 0;
    text-align: center;
}


/* ========================================================= */
/* PROJETS                                                    */
/* ========================================================= */

section#projets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 30px 0;
    background-color: rgba(198, 220, 221, 0.897);
    box-sizing: border-box;
}

section#projets div.travail {
    width: 33.33%;
    text-align: center;
    box-sizing: border-box;
    padding: 0 10px;
}

section#projets div img {
    display: block;
    width: 90%;
    height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

section#projets img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}

section#projets div h3 {
    font-size: 17px;
    margin: 15px 10px 0;
    color: rgb(250, 10, 10);
    text-align: center;
}


/* .........les proces intentes contre la mairie de dogodouman...........--> */

section#proces{

    display:inline-flex;
    background-color: rgba(247, 244, 209, 0.897);
    padding: 90px 0px 0px 0;
    justify-content:space-evenly;
    flex-wrap: wrap;
    width: 100%;
    margin: 5px;
    padding: 30px;
}

section#proces div.jugement{
    float: left;
    width: 33.33%;
    text-align: center;  
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.8);
}

section#proces span{
    clear: both;
    padding-top: 90px;
}
section#proces div img{
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);   
    width: 90%;
    height: 200px;
}

section#proces div p{
    margin: 5px 0px 10 10;
    padding: 10px;
    font-size: 1em;
    text-align: center;

}

section#proces a{
    font-size: 15px;
    margin: 20px 10px 0;
    text-decoration: underline;
    color: brown;
}

/* <!-- Les lettres officielles.............-> */

section#lettres{

    display:inline-flex;
    background-color: rgba(227, 242, 243, 0.911);
    padding: 90px 0px 0px 0;
    justify-content:space-evenly;
    flex-wrap: wrap;
    width: 100%;
    margin: 5px;
    padding: 30px;
}

section#lettres div.lettre{
    float: left;
    width: 33.33%;
    text-align: center;  
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.8);
}

section#lettres span{
    clear: both;
    padding-top: 90px;
}
section#lettres div img{
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);   
    width: 90%;
    height: 200px;
}

section#lettres div p{
    margin: 5px 0px 10 10;
    padding: 10px;
    font-size: 1em;
    text-align: center;

}
section#lettres a{
    font-size: 15px;
    margin: 20px 10px 0;
    text-decoration: underline;
    color: brown;
}


/* ========================================================= */
/* INFORMATIONS                                                */
/* ========================================================= */

section#infos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 30px 0;
    background-color: rgba(198, 220, 221, 0.897);
    box-sizing: border-box;
}

section#infos div.info {
    width: 33.33%;
    text-align: center;
    padding: 0 10px 30px;
    box-sizing: border-box;
}

section#infos div img {
    display: block;
    width: 90%;
    height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

section#infos div img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}

section#infos div p {
    margin: 5px 0;
    padding: 10px;
    font-size: 1em;
    text-align: left;
}

section#infos div h4 {
    font-size: 1em;
    text-align: center;
    text-decoration: underline;
    color: darkred;
}

section#infos div h3 {
    font-size: 17px;
    margin: 15px 10px 0;
    color: crimson;
    text-align: center;
}


/* ========================================================= */
/* VIDÉOS — l'habillage complet vit désormais dans le bloc     */
/* <style> de index.php (classes .video-section / .video),    */
/* pour rester cohérent avec le diaporama. Les anciennes       */
/* règles "section#videos div ..." ont été retirées : leur     */
/* sélecteur avec #videos passait devant les nouvelles classes */
/* (largeur forcée à 48%, hauteur fixe 300px, titre en rouge). */
/* ========================================================= */


/* ========================================================= */
/* VOCAUX                                                      */
/* ========================================================= */

section#vocaux {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    padding: 30px;
    margin: 0;
    background-color: rgba(233, 212, 28, 0.897);
    box-sizing: border-box;
}

section#vocaux div.vocal {
    width: 360px;
    height: auto;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

section#vocaux div p {
    margin: 5px 0;
    padding: 10px;
    font-size: 1em;
}

section#vocaux div h4 {
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    color: darkred;
}


/* ========================================================= */
/* PUBLICITÉS                                                   */
/* ========================================================= */

section#pubs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;
    margin: 0;
    padding: 25px 25px 30px 25px;

    background-color: rgba(198, 220, 221, 0.897);

    box-sizing: border-box;
}


/* Titre */

section#pubs h2 {
    flex: 0 0 100%;
    width: 100%;

    text-align: center !important;

    font-size: 32px;

    margin: 0 0 25px 0;
    padding: 0;

    box-sizing: border-box;
}


/* Chaque publicité */

section#pubs div.pub {
    flex: 0 0 33.33%;
    width: 33.33%;

    padding: 0 10px;
    margin: 0 0 25px 0;

    text-align: center;

    box-sizing: border-box;
}


/* Images */

section#pubs div.pub img {
    display: block;

    width: 90%;
    max-width: 100%;
    height: 200px;

    margin: 0 auto;

    object-fit: cover;

    border-radius: 15px;

    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);

    box-sizing: border-box;
}


/* Titres sous les images */

section#pubs div.pub h3 {
    width: 90%;
    margin: 10px auto 0 auto;
    text-align: center;
    font-size: 17px;
}


/* Paragraphes */

section#pubs div.pub p {
    width: 90%;
    margin: 5px auto;
    padding: 0;
    text-align: center;
}


/* Survol */

section#pubs div.pub img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}


/* ========================================================= */
/* GALERIE                                                      */
/* ========================================================= */

section#galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 30px 0;
    background-color: rgba(198, 220, 221, 0.897);
    box-sizing: border-box;
}

section#galerie div.photo {
    width: 33.33%;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

section#galerie div img {
    display: block;
    width: 90%;
    height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 5px 8px 5px 4px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

section#galerie div img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}

section#galerie div h3 {
    font-size: 17px;
    margin: 15px 10px 0;
    text-align: center;
}


/* ========================================================= */
/* CONTACT                                                      */
/* ========================================================= */

section#contact {
    background-color: #d7d8cf;
    padding: 60px 20px;
    text-align: center;
}

section#contact form {
    width: 100%;
    max-width: 600px;
    margin: auto;
    background-color: #a6ff00;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

button {
    border: none;
    background-color: rgb(180, 224, 231);
    cursor: pointer;
    border-radius: 8px;
}

section#contact button {
    width: 30%;
    min-height: 40px;
    max-width: 600px;
    margin: auto;
    background-color: #d4db0c;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    font-size: 1.2em;
}

button:hover {
    background-color: rgb(219, 221, 86);
    color: aliceblue;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}


/* ========================================================= */
/* FOOTER                                                       */
/* ========================================================= */

section#footer {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background-color: #a6ff00;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

#copryrightEtIcon {
    display: flex;
    margin-bottom: 10px;
    padding: 10px 10%;
}

#copyright {
    width: 50%;
    text-align: left;
    color: rgba(7, 5, 5, 0.795);
    font-size: 1.2em;
}

#icons {
    width: 50%;
    text-align: center;
}

#icons a {
    display: inline-block;
    padding: 10px 5px;
    font-size: 3em;
    color: rgba(235, 19, 19, 0.932);
}

#icons a:hover {
    transform: scale(1.2);
    transition: 0.3s ease-in-out;
}


/* ========================================================= */
/* TABLETTE                                                     */
/* ========================================================= */

@media (max-width: 992px) {

    nav a {
        font-size: 1em;
    }

    section {
        padding: 3em 1em;
    }
}


/* ========================================================= */
/* MOBILE                                                       */
/* ========================================================= */

@media (max-width: 700px) {

    body {
        width: 100%;
        overflow-x: hidden;
        /* Réserve la hauteur de la barre de menu (fermée) pour que
           le contenu ne soit jamais caché derrière, puisque nav
           est en position fixe. */
        padding-top: 54px;
    }

    /* =========================================================
       MENU DE NAVIGATION — VERSION MOBILE (bouton hamburger)
       ========================================================= */

    nav {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 8px 10px;
    }

    .menu-toggle {
        display: block;
        width: 42px;
        height: 38px;
        background: #146c3a;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    /* Le menu complet est masqué par défaut : c'est lui qui
       cachait tout le contenu de la page avant l'ajout du
       bouton hamburger. */
    header ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: calc(100vh - 54px);
        overflow-y: auto;
        margin-top: 10px;
        padding-bottom: 15px;
    }

    /* Affiché uniquement quand on clique sur le bouton hamburger */
    header ul.menu-ouvert {
        display: flex;
    }

    header li {
        width: 100%;
    }

    header li a {
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }


    /* Présentation */

    #presentation {
        width: 100%;
    }

    #presentation .presentation-image img {
        width: 100%;
    }

    #presentation .vocaux {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #presentation .vocal {
        width: 90%;
    }

    #presentation .presentation-links {
        flex-direction: column;
        gap: 10px;
    }

    #presentation .presentation-links a {
        width: 90%;
        text-align: center;
    }


    /* Publicités */

    section#pubs {
        width: 100%;
        padding: 20px 10px;
    }

    section#pubs h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    section#pubs div.pub {
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
        margin-bottom: 25px;
    }

    section#pubs div.pub img {
        width: 90%;
        height: auto;
    }


    /* Réalisations */

    section#realiser div.realise {
        width: 100%;
    }


    /* Projets */

    section#projets div.travail {
        width: 100%;
    }


    /* Procès */

    section#proces div.jugement {
        width: 100%;
    }


    /* Lettres */

    section#lettres div.lettre {
        width: 100%;
    }


    /* Informations */

    section#infos div.info {
        width: 100%;
    }


    /* Galerie */

    section#galerie div.photo {
        width: 100%;
    }


    /* Vidéos */

    section#videos div {
        width: 100%;
    }


    /* Vocaux */

    section#vocaux div.vocal {
        width: 90%;
    }


    /* Titres */

    section h2 {
        font-size: 1.6em;
    }


    /* Paragraphes */

    section p {
        padding: 0;
    }
/* ========================================================= */
/* Contact                                                */
/* ========================================================= */
   
    section#contact button {
        width: 80%;
    }


    /* Footer */

    section#footer {
        width: 90%;
        margin: 20px auto;
    }

    #copryrightEtIcon {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    #copyright,
    #icons {
        width: 100%;
        text-align: center;
    }
}


/* ========================================================= */
/* PETITS ÉCRANS                                                */
/* ========================================================= */

@media (max-width: 480px) {

    nav ul.menu-ouvert {
        align-items: stretch;
    }

    section {
        padding: 2em 1em;
    }

    section h2 {
        font-size: 1.4em;
    }

    section p {
        padding: 0;
    }
}


.piece-jointe {
    background: #f8f8f8;
    border: 1px dashed #777;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.piece-jointe > label {
    display: block;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.fichier-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
}

.fichier-ligne label {
    min-width: 85px;
    font-weight: bold;
}

.fichier-ligne input[type="file"] {
    flex: 1;
}

.info-fichiers {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

/* =========================================================
   CONTACT — PIÈCES JOINTES
   ========================================================= */
section#contact .piece-jointe {
    width: 100%;
    background: #f8f8f8;
    border: 1px dashed #777;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-sizing: border-box;
}
section#contact .piece-jointe > label {
    display: block;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}
section#contact .fichier-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    box-sizing: border-box;
}
section#contact .fichier-ligne label {
    min-width: 85px;
    font-weight: bold;
}
section#contact .fichier-ligne input[type="file"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
}
section#contact .info-fichiers {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    padding: 0;
}
section#contact .erreur-fichiers {
    color: #b00020;
    font-weight: bold;
    margin: 10px 0 0;
    padding: 0;
    text-align: center;
}
@media (max-width: 700px) {
    section#contact .fichier-ligne {
        flex-direction: column;
        align-items: stretch;
    }
    section#contact .fichier-ligne label {
        min-width: 0;
        text-align: left;
    }
}
