/* prive.css */

:root {
    --rouge: #a51c30;
    --rouge-fonce: #7f1525;
    --texte: #222;
    --fond: #f5f5f3;
    --blanc: #ffffff;
    --bordure: #ddd;
    height: 100%;
}


@font-face {
    font-family: "Bebas Neue";
    src: url("BebasNeue-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--fond);
    color: var(--texte);
    line-height: 1.5;

    display: flex;
    flex-direction: column;
}

    header {
        background-color: var(--rouge);
        color: white;
        font-family: "Bebas Neue", sans-serif;
        max-width: 100%;
        overflow: hidden;
        height: 70px;
        display: flex;
        align-items: center;
    }

    header a {
        color: white;
        text-decoration: none;
    }

    header > h1 {
        display: inline-block;
        padding-right: 1em;
        padding-left: 100%;
        white-space: nowrap;
        animation: defilement-rtl 15s infinite linear;
    }

    main {
        flex: 1;
        max-width: 1200px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 30px 20px;
    }

        .tableau {
            display: grid;
            width: 100%;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .tableau > div {
            background-color: var(--blanc);
            border: 1px solid var(--bordure);
            padding: 10px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

            .case1 {
                grid-column: 1 / 2;
           }

            .case2 {
                grid-column: 2 / 3;
            }
        
        form {
            display: grid;
            width: 100%;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-template-rows: repeat(4, 1fr);
            gap: 16px;
        }

        form > div {
            min-width: 0;
            background-color: var(--blanc);
            border: 1px solid var(--bordure);
            padding: 10px;
            margin-top: 15px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }
    
            .case3 {
                grid-column: 1 / 2;
                grid-row: 1 /3;
            }

                .deroulant {
                    width: 100%;
                    max-width: 100%;
                    box-sizing: border-box;
                }

            .case4 {
                grid-column: 1 / 2;
                grid-row: 3 / 5;
                margin-top: 0;
            }

                .deroulant,
                input[type="date"] {
                    box-sizing: border-box;
                    width: 100%;
                    padding: 10px 12px;
                    border: 1px solid #bbb;
                    border-radius: 5px;
                    background-color: white;
                    font-size: 1rem;
                }

            .case5 {
                grid-column: 2 / 4;
                grid-row: 1 / 2;
                padding: 0;
                border : none;
            }

                #btnRecherche {
                    display: block;
                    width: 100%;
                    height: 100%;
                    min-height: 50px;

                    border: 0;
                    border-radius: 6px;

                    background-color: var(--rouge);
                    color: white;

                    font-size: 1.1rem;
                    font-weight: bold;

                    cursor: pointer;
                    transition: background-color 0.2s ease;
                }

                #btnRecherche:hover {
                    background-color: var(--rouge-fonce);
                }

            .case6 { /* Collabs */
                grid-column: 4 / 5;
                grid-row: 1 / 3;
                overflow: auto;
            }

            .case7 { /* Dons */
                text-align: center;
                grid-column: 4 / 5;
                grid-row: 3 / 5;
                margin-top: 0;
                overflow: auto;
            }

            .case7 img {
                display: block;
                max-width: 100px;
                width: 100%;
                height: auto;
                margin: 15px auto;
            }

            .case8 { 
                grid-column: 2 / 4;
                grid-row: 2 / 5;
                margin-top: 0;
                overflow: auto;
            }

            .case8 h3 {
                font-family: "Bebas Neue", sans-serif;
                font-size: 1.8rem;
                color: var(--rouge-fonce);
                border-bottom: 2px solid var(--rouge);
                padding-bottom: 8px;
            }

        footer {
            box-sizing: border-box;
            display: grid;
            text-align: center;
            align-items: center;
            background-color: var(--rouge-fonce);
            grid-template-columns: repeat(5, 1fr);
            border: 1px solid black;
        }

        footer a {
            color: white;
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        .colonne-footer img {
            display: block;
            max-width: 120px;
            max-height: 60px;
            width: auto;
            height: auto;
            margin: 0 auto;
        }

@keyframes defilement-rtl {
  0% {
    transform: translate3d(0,0,0);    
  }
  100% {
    transform: translate3d(-100%,0,0);  
  }
}

h1 {
  text-align: center;
  color: white;
}

h2,
h3 {
    color: var(--rouge-fonce);
}

h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
}

h3 {
    margin-top: 0;
}

h4 {
	color: white;
}	

p {
    color: var(--texte);
    line-height: 1.6;
}

button {
  color: black;
}

label {
  color: black;
}

.liens-collaborateurs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================================================
   RESPONSIVE DESIGN
   Ordinateurs, tablettes et smartphones
   ================================================== */


/* ---------- Règles générales ---------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    width: 100%;
    min-width: 0;
}


/* ---------- Bandeau supérieur ---------- */

header {
    width: 100%;
    min-width: 0;
    height: 70px;
}

header > h1 {
    flex-shrink: 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}


/* ---------- Titres ---------- */

h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}


/* ---------- Accordéons ---------- */

.fr-accordion {
    width: 100%;
    min-width: 0;
    margin: 20px 0;
}

.fr-accordion__title {
    margin: 0;
}

.fr-accordion__btn {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;

    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;

    border: 1px solid var(--bordure);
    border-radius: 5px;

    background-color: var(--blanc);
    color: var(--rouge-fonce);

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;
}

.fr-accordion__btn:hover {
    background-color: #f0e6e8;
}

.fr-accordion__btn:focus-visible {
    outline: 3px solid var(--rouge);
    outline-offset: 3px;
}

.fr-collapse {
    min-width: 0;
    overflow-wrap: break-word;
    line-height: 1.7;
}


/* ---------- Listes ---------- */

main ol,
main ul {
    padding-left: 1.5rem;
}

main li {
    margin-bottom: 0.4rem;
}


/* ---------- Pied de page ---------- */

footer {
    width: 100%;
    min-width: 0;
    padding: 12px;
    gap: 10px;
}

.colonne-footer {
    min-width: 0;
    overflow-wrap: break-word;
}

.colonne-footer h4 {
    margin: 8px 0;
}

.colonne-footer img {
    max-width: 120px;
    width: 100%;
    height: auto;
}


/* ==================================================
   TABLETTES
   Largeur maximale : 900 px
   ================================================== */

@media screen and (max-width: 900px) {

    /* Contenu principal */

    main {
        padding: 25px 18px;
    }

    /* Pied de page : trois colonnes */

    footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Si d'autres pages utilisent cette grille */

    .tableau {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    form > div {
        min-width: 0;
    }

    .case3,
    .case4,
    .case5,
    .case6,
    .case7,
    .case8 {
        grid-column: auto;
        grid-row: auto;
    }

    .case5 {
        padding: 10px;
    }

    #btnRecherche {
        min-height: 50px;
    }
}


/* ==================================================
   SMARTPHONES
   Largeur maximale : 600 px
   ================================================== */

@media screen and (max-width: 600px) {

    /* Contenu principal */

    main {
        padding: 20px 14px;
    }

    /* Bandeau supérieur */

    header {
        height: 60px;
    }

    header > h1 {
        font-size: 1.6rem;
        padding-left: 100%;
    }

    /* Titres */

    h2 {
        font-size: 1.5rem;
    }

    /* Texte */

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Accordéons */

    .fr-accordion {
        margin: 16px 0;
    }

    .fr-accordion__btn {
        padding: 12px;
        font-size: 1rem;
    }

    .fr-collapse {
        line-height: 1.7;
    }

    /* Pied de page : deux colonnes */

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 8px;
        gap: 8px;
    }

    .colonne-footer {
        padding: 4px;
    }

    .colonne-footer h4 {
        font-size: 0.9rem;
    }

    .colonne-footer img {
        max-width: 100px;
    }

    /* Grilles éventuellement présentes sur d'autres pages */

    .tableau {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .case1,
    .case2 {
        grid-column: auto;
    }

    form {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }

    .case3,
    .case4,
    .case5,
    .case6,
    .case7,
    .case8 {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
    }

    form > div {
        padding: 10px;
    }

    .case5 {
        padding: 0;
    }

    #btnRecherche {
        min-height: 48px;
    }

}


/* ==================================================
   TRÈS PETITS ÉCRANS
   Largeur maximale : 360 px
   ================================================== */

@media screen and (max-width: 360px) {

    main {
        padding: 16px 10px;
    }

    header > h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .colonne-footer img {
        max-width: 90px;
    }

}

