/* index.css de la place des grèves*/

:root {
    --rouge: #a51c30;
    --rouge-fonce: #7f1525;
    --texte: #222;
    --fond: #f5f5f3;
    --blanc: #ffffff;
    --bordure: #ddd;
    height: 100%;
}

strong {
  display: block;
}

@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);
    /* font-family: Arial, sans-serif; */
    line-height: 1.5;
}

    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 {
        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
   Ne modifie pas la grille desktop.
   ========================================================= */


/* =========================================================
   TABLETTE
   ========================================================= */

@media (min-width: 701px) and (max-width: 1000px) {

    main {
        padding: 25px 15px;
    }

    /* Les deux textes d'introduction passent l'un sous l'autre */

    .tableau {
        grid-template-columns: 1fr;
    }

    .tableau > div {
        grid-column: 1;
    }

    .case1,
    .case2 {
        grid-row: auto;
    }

    /* Formulaire en deux colonnes */

    form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    /* Personnel */

    .case3 {
        grid-column: 1;
        grid-row: 1;
    }

    /* Dates */

    .case4 {
        grid-column: 2;
        grid-row: 1;
        margin-top: 15px;
    }

    /* Bouton */

    .case5 {
        grid-column: 1 / 3;
        grid-row: 2;

        margin-top: 0;
    }

    /* Résultats */

    .case8 {
        grid-column: 1 / 3;
        grid-row: 3;

        margin-top: 0;
    }

    /* Collaborateurs */

    .case6 {
        grid-column: 1;
        grid-row: 4;

        margin-top: 0;
    }

    /* Dons */

    .case7 {
        grid-column: 2;
        grid-row: 4;

        margin-top: 0;
    }

    /* Footer */

    footer {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .colonne-footer:last-child {
        grid-column: 1 / 4;
    }
}


/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media (max-width: 700px) {

    /* -----------------------------------------------------
       CONTENU
       ----------------------------------------------------- */

    main {
        width: 100%;
        padding: 15px 10px;
    }


    /* -----------------------------------------------------
       HEADER
       
       IMPORTANT :
       on ne touche PAS à l'animation existante.
       ----------------------------------------------------- */

    header {
        height: 60px;
    }

    header > h1 {
        font-size: 1.4rem;
    }


    /* -----------------------------------------------------
       INTRODUCTION
       ----------------------------------------------------- */

    .tableau {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tableau > div {
        width: 100%;
        box-sizing: border-box;
    }

    .case1,
    .case2 {
        grid-column: auto;
        grid-row: auto;
    }


    /* -----------------------------------------------------
       FORMULAIRE
       
       On abandonne uniquement la grille sur téléphone.
       ----------------------------------------------------- */

    form {
        display: flex;
        flex-direction: column;
        gap: 12px;

        width: 100%;
    }

    form > div {
        width: 100%;
        box-sizing: border-box;

        margin-top: 0;
    }


    /* -----------------------------------------------------
       ORDRE DES BLOCS
       ----------------------------------------------------- */

    .case3 {
        order: 1;
    }

    .case4 {
        order: 2;
    }

    .case5 {
        order: 3;
    }

    .case8 {
        order: 4;
    }

    .case6 {
        order: 5;
    }

    .case7 {
        order: 6;
    }


    /* -----------------------------------------------------
       ANNULATION DES POSITIONS DE LA GRILLE DESKTOP
       ----------------------------------------------------- */

    .case3,
    .case4,
    .case5,
    .case6,
    .case7,
    .case8 {
        grid-column: auto;
        grid-row: auto;
    }


    /* -----------------------------------------------------
       PERSONNEL
       ----------------------------------------------------- */

    .deroulant {
        width: 100%;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       DATES
       ----------------------------------------------------- */

    .case4 label p {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .case4 input[type="date"] {
        width: 100%;
        margin-bottom: 8px;
    }


    /* -----------------------------------------------------
       BOUTON RECHERCHE
       ----------------------------------------------------- */

    .case5 {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    #btnRecherche {
        display: block;

        width: 100%;
        height: 54px;
        min-height: 54px;

        font-size: 1.05rem;
    }


    /* -----------------------------------------------------
       RÉSULTATS
       ----------------------------------------------------- */

    .case8 {
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .case8 h3 {
        font-size: 1.6rem;
    }


    /* -----------------------------------------------------
       COLLABORATEURS
       ----------------------------------------------------- */

    .case6 {
        overflow: visible;
    }


    /* -----------------------------------------------------
       DONS
       ----------------------------------------------------- */

    .case7 {
        overflow: visible;
    }

    .case7 img {
        max-width: 130px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    footer {
        display: flex;
        flex-direction: column;
        gap: 10px;

        padding: 15px 10px;
    }

    .colonne-footer {
        width: 100%;
    }

    .colonne-footer img {
        max-width: 100px;
    }
}


/* =========================================================
   TRÈS PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 400px) {

    main {
        padding: 10px 8px;
    }

    header {
        height: 55px;
    }

    header > h1 {
        font-size: 1.2rem;
    }

    .tableau > div,
    form > div {
        padding: 10px;
    }

    p {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}



