@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&display=swap');

:root {
    --fond: #c7e1e4;
    --carte: #02343F;
    --texte: #ffffff;
    --accent: #c4fcff;
}


body {
    margin: 0;
    background: linear-gradient(135deg, #c7e1e4, #e5f3f4);
    color: var(--carte);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
}

em {
    color: var(--accent);
}

/* Logo ESGI de redirection */

header {
    display: flex;
    justify-content: left;
    margin:0;    
}

.logo_header {
    width: 12.5rem;
    max-width: 90%;
    display: block;
    transition: transform 0.25s ease;
}


/* Présentation de l'équipe */

.equipe {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 30px;

    background-color: var(--carte);
    color: var(--texte);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;

    text-align: center;
    font-family: "Roboto Condensed", sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    box-shadow: 0 10px 30px rgba(2, 52, 63, 0.15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.equipe:hover {
    box-shadow: 0 20px 40px rgba(2, 52, 63, 0.25);
    transform: translateY(-0.625rem);
    background-color: #011d23;
}

.emblem {
    width: 18.75rem;
    max-width: 45%;
    margin: 5px 0;
    transition: transform 0.25s ease;
}

.emblem:hover {
    transform: scale(1.3);
}

button {
    display: flex;
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
    justify-content: center;
}

.paragraph {
    width: min(650px, 90%);
    margin: 0;
}

.devise {
    margin: 5px 0 0;
    font-size: 1.1rem;
}


/* Grille pour les pastilles*/

.grille {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 30px 40px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}


/* Les pastilles */

.Bloc-personne {
    min-height: 20.625rem;
    padding: 1.75rem 1.375rem;

    background-color: var(--carte);
    color: var(--texte);

    border-radius: 18px;

    text-align: center;
    font-family: "Roboto Condensed", sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;

    box-shadow: 0 0.375rem 1.125rem rgba(2, 52, 63, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.Bloc-personne:hover {
    background-color: #011d23;
    transform: translateY(-6px);
    box-shadow: 0 0.75rem 1.5625rem rgba(2, 52, 63, 0.25);
}

.Bloc-personne h3 {
    margin: 0.25rem 0 0;
    font-size: 1.3rem;
}

.Bloc-personne p {
    margin: 0;
    font-size: 0.95rem;
}


/* Photos pour les pastilles */

.photo-profil {
    width: 6.5625rem;
    height: 6.5625rem;

    border-radius: 50%;
    object-fit: cover;

    border: 0.1875rem solid var(--accent);

    transition: transform 0.25s ease, border-color 0.25s ease;
}

.photo-profil:hover {
    border-color: var(--texte);
    transform: scale(1.15);
}


/* Footer */

footer {
    background-color: #02343F;
    color: white;
    padding: 3.125rem 8%;
    margin-top: 3.125rem;
}

.grille-3-colonnes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.4375rem;
    max-width: 75rem;
    margin: 0 auto;
}

.colonne {
    padding-top: 0.9375rem;}
.colonne2{
    padding: 0.625rem;
    margin-top: 1.25rem;
}

.h3 {
    font-size: 1.375rem;
    margin-top: 1.875rem;
    color: white;
}

.colonne h4 {
    font-size: 0.875rem;
    
    color: white;
}

.p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: white;
}

#loutre {
    width: 6.25rem;
    margin-left: 11.25rem;
}


/* animation de tempete */

/* Effet de clic sur le logo */
button:active .emblem {
    transform: scale(0.9);
}

/* la pluie */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;

    /* petites gouttes + traits */
    background-image:
        repeating-linear-gradient(
            105deg,
            transparent 0px,
            transparent 18px,
            rgba(255, 255, 255, 0.75) 19px,
            rgba(255, 255, 255, 0.75) 20px,
            transparent 21px,
            transparent 32px
        );

    background-size: 55px 55px;
    opacity: 0;
}

/* La pluie tombe pendant la tempête */
body.tempete::before {
    opacity: 0.75;
    animation: pluie 0.35s linear infinite;
}

@keyframes pluie {
    from {
        background-position: 0 -100px;
    }

    to {
        background-position: -40px 100vh;
    }
}

/* les gouttes */

body.tempete::before {
    background-image:
        repeating-linear-gradient(
            105deg,
            transparent 0px,
            transparent 12px,
            rgba(255, 255, 255, 0.7) 13px,
            rgba(255, 255, 255, 0.7) 15px,
            transparent 16px,
            transparent 28px
        ),
        repeating-linear-gradient(
            105deg,
            transparent 0px,
            transparent 35px,
            rgba(255, 255, 255, 0.45) 36px,
            rgba(255, 255, 255, 0.45) 38px,
            transparent 39px,
            transparent 65px
        );

    background-size: 45px 45px, 90px 90px;

    animation: pluie 0.35s linear infinite;
}

/* les éclairs */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 101;
    pointer-events: none;

    background: white;
    opacity: 0;
}

/* les flashs */
body.tempete::after {
    animation: eclair 3s;
}

@keyframes eclair {
    0%, 10%, 15%, 30%, 35%, 100% {
        opacity: 0;
    }

    11%, 14% {
        opacity: 0.8;
    }

    31%, 34% {
        opacity: 1;
    }
}

/* logo qui saute */

body.tempete .emblem {
    animation: logo-tempete 2s;
}

@keyframes logo-tempete {
    0%, 100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1) rotate(-3deg);
    }

    20% {
        transform: scale(1.05) rotate(3deg);
    }

    30% {
        transform: scale(1.1) rotate(-2deg);
    }

    40% {
        transform: scale(1);
    }
}