/*
    Description : Cette page présente le CSS de la page introduction.
    Auteur      : Louisa Perelli
    Date        : 16.01.2026
*/

/* ============================= */
/* introduction.html */
/* ============================= */

/* CONTAINER PRINCIPAL */
.container {
    max-width: 1100px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 20px;
    position: relative;
}

/* BOXES */
.box {
    background: linear-gradient(145deg, #ffffff 0%, #f7f4fb 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Ligne décorative en haut de la box */
.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100px;
    background: linear-gradient(90deg, #6c308f, #f056d9);
    border-radius: 0 0 6px 6px;
}

/* TITRES */
.box h3 {
    color: #432355;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.box:hover h3 {
    color: #6c308f;
}

/* PARAGRAPHES */
.box p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Effet de zoom */
.box:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(67, 35, 85, 0.2);
    background: linear-gradient(145deg, #fdf6fb 0%, #f5eaff 100%);
}

/* LOGO DANS BOX 4 */
.logoengin {
    margin-top: 30px;
    text-align: center;
}

.logoengin img {
    height: 70px;
    transition: transform 0.3s ease;
}

.logoengin img:hover {
    transform: scale(1.1);
}

/* ANIMATION AU SCROLL */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
}

.box:nth-child(2) {
    animation-delay: 0.3s;
}

.box:nth-child(3) {
    animation-delay: 0.4s;
}

.box:nth-child(4) {
    animation-delay: 0.5s;
}


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

    /* CONTAINER */
    .container {
        padding: 0 15px;
        gap: 40px;
        margin: 40px auto;
    }

    /* BOXES */
    .box {
        padding: 25px;
    }

    .box::before {
        width: 80px;
        height: 5px;
    }

    /* TITRES */
    .box h3 {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    /* PARAGRAPHES */
    .box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* LOGO DANS BOX 4 */
    .logoengin img {
        height: 60px;
    }
}

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

    /* CONTAINER */
    .container {
        padding: 0 10px;
        gap: 30px;
        margin: 30px auto;
    }

    /* BOXES */
    .box {
        padding: 20px;
    }

    .box::before {
        width: 60px;
        height: 4px;
    }

    /* TITRES */
    .box h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    /* PARAGRAPHES */
    .box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* LOGO DANS BOX 4 */
    .logoengin img {
        height: 50px;
    }
}
