/*
    Description : Cette page présente le CSS de la page compétition.
    Auteur      : Louisa Perelli
    Date        : 16.01.2026
*/
/* ============================= */
/* competition.html */
/* ============================= */

.competition {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* ============================= */
/* GRID PRINCIPALE */
/* ============================= */

.boxtotal {
    display: flex;
    flex-direction: column;
    gap: 140px;
}

/* ============================= */
/* BOXES */
/* ============================= */

.box0,
.box1,
.boxi {
    max-width: 700px;
    padding: 35px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #faf4ff 100%);
    color: #555;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Barre décorative */
.box0::before,
.box1::before,
.boxi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 6px;
    background: linear-gradient(90deg, #6c308f, #f056d9);
    border-radius: 0 0 6px 6px;
}

/* Hover */
.box0:hover,
.box1:hover,
.boxi:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(67, 35, 85, 0.25);
}

/* ============================= */
/* POSITIONNEMENT SPÉCIFIQUE */
/* ============================= */

/* Box 1 : gauche */
.box0 {
    align-self: flex-start;
}

/* Bloc image + box 2 : droite */
.ffg {
    display: flex;
    gap: 40px;
    align-items: stretch; /* même hauteur image / box */
    align-self: flex-end;
}

/* Box 2 */
.box1 {
    max-width: 600px;
}

/* Box 3 : centrée */
.boxi {
    align-self: center;
    margin-top: 40px;
}

/* ============================= */
/* IMAGE */
/* ============================= */

.imgffg {
    width: 900px;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(67, 35, 85, 0.15);
}

/* ============================= */
/* TEXTE */
/* ============================= */

.box0 h3,
.box1 h3,
.boxi h3 {
    font-size: 2.3rem;
    margin-bottom: 22px;
    color: #432355;
}

.box0 p,
.box1 p,
.boxi p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ============================= */
/* BOUTONS CONCOURS */
/* ============================= */

.boutonconcours {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(45deg, #ffffff, #6c308f);
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px 10px 0 0;
}

.boutonconcours a {
    color: #ffffff;
    text-decoration: none;
}

.boutonconcours:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 28px rgba(108, 48, 143, 0.35);
    background: linear-gradient(45deg, #6c308f, #f1f1f1);
}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box0,
.box1,
.boxi {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.box1 { animation-delay: 0.2s; }
.boxi { animation-delay: 0.4s; }

/* ----------------------------- */
/* TABLETTE : max-width 1200px */
/* ----------------------------- */
@media screen and (max-width: 1200px) {

    .competition {
        padding: 40px 20px;
        gap: 50px;
        align-items: flex-end; /* tout aligné à droite */
    }

    /* Boutons concours */
    .boutonconcours {
        padding: 10px 22px;
        font-size: 0.95rem;
        margin: 0 0 20px 0; /* aligné à droite */
    }

    #boutonconcours1,
    #boutonconcours2 {
        margin: 0 0 20px 0;
    }

    /* Section FFG */
    .ffg {
        flex-direction: column;
        align-items: flex-end; /* image et box alignées à droite */
        gap: 30px;
    }

    /* Boxes */
    .boxtotal {
        gap: 45px;
        align-items: flex-end; /* tout à droite */
    }

    .box0,
    .box1,
    .boxi {
        max-width: 100%;
        padding: 25px;
        margin: 0; /* suppression marges centrées */
        align-self: flex-end; /* alignement droit */
    }

    .box0 h3,
    .box1 h3,
    .boxi h3 {
        font-size: 1.7rem;
    }

    /* Image */
    .imgffg {
        width: 90%;
        max-width: 700px;
        margin: 0; /* alignée à droite */
        border-radius: 18px;
    }
}

/* ----------------------------- */
/* MOBILE : max-width 430px */
/* ----------------------------- */
@media screen and (max-width: 430px) {

    .competition {
        padding: 30px 15px;
        gap: 40px;
        align-items: flex-end; /* tout aligné à droite */
    }

    /* Boutons */
    .boutonconcours {
        padding: 9px 18px;
        font-size: 0.85rem;
        border-radius: 8px;
        margin: 0 0 15px 0; /* aligné à droite */
    }

    /* Boxes */
    .box0,
    .box1,
    .boxi {
        padding: 20px 18px;
        border-radius: 12px;
        margin: 0; /* suppression marges centrées */
        align-self: flex-end; /* alignement droit */
    }

    .box0 h3,
    .box1 h3,
    .boxi h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .box0 p,
    .box1 p,
    .boxi p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Image */
    .imgffg {
        display: none;
    }

    /* Ligne décorative */
    .box0::before,
    .box1::before,
    .boxi::before {
        width: 60px;
        height: 4px;
    }

    /* Hover désactivé (mobile friendly) */
    .box0:hover,
    .box1:hover,
    .boxi:hover,
    .boutonconcours:hover,
    .imgffg:hover {
        transform: none;
        box-shadow: none;
        background: linear-gradient(145deg, #ffffff 0%, #faf4ff 100%);
    }
}
