.banner-alert {
    background-color: black;
    color: red;
    text-align: center;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.banner-alert a{
    text-decoration: none;
    color: red;
    font-weight: bold;
}

.close-banner {
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
}

.banner-alert {
    animation: fadeInDown 0.7s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.stats-section {
    background-image: url('../img/background-pattern.png');
    background-color: rgba(13, 13, 13, 0.85); /* Ajoute un léger voile foncé */
    position: relative;
    width: 100%; /* Prend toute la largeur */
    text-align: center;
    padding: 50px 0;
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0.7;
    z-index: 0;
}

.container-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 75px;
    margin-right: 75px;
}

.container-realisation {
    padding: 75px;
}

.stats {
    display: flex;
    flex-direction: column;
}

.stat-item {
    color: #efc500;
}

.stat-item h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    animation: bounce 2s infinite ease-in-out;
}

.stat-item p {
    font-size: 16px;
    color: #f1f1f1;
}

.agency-info {
    max-width: 800px;
    text-align: left;
}

.agency-description {
    margin-top: 15px;
    color: #f1f1f1;
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;
}

.agency-title {
    color: #efc500;
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
}

.arrow {
    margin-top: 10px;
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.creative {
    display: flex;
    align-items: center;
}

/* Animation de fade-in et slide-up */
.animated {
    animation: fadeInUp 1s ease-in-out forwards;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsivité pour tablettes */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 0 30px; /* Ajustement de la marge */
    }

    .agency-info {
        text-align: center;
    }
}

/* Responsivité pour mobiles */
@media (max-width: 600px) {
    .stats-section {
        padding: 30px 10px;
    }

    .container-stats {
        display: flex;
        flex-direction: column;
        margin-left: 18px!important;
        margin-right: 18px!important;
    }

    .stats {
        gap: 20px;
    }

    .stat-item h2 {
        font-size: 28px;
    }

    .stat-item p {
        font-size: 16px;
    }

    .agency-title {
        font-size: 26px;
    }

    .agency-description {
        font-size: 16px;
        text-align: justify;
    }

    .arrow {
        height: 50px;
        margin-right: 5px;
    }

    .creative {
        justify-content: center;
    }
}

/** SECTION AUDIT **/
.free-audit{
    background-color: #111;
}




/* Description sous le titre */
.info-projects {
    color: #f1f1f1;
    margin-top: 10px;
}

/* Grille des projets */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Carte projet */
.project-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #000000;
}

.device-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}

/* 📱 Ajustement de la Mobile Frame pour un look iPhone */
.mobile-frame {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 120px;
    border-radius: 18px;
    border: 4px solid black; /* ajusté pour desktop */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: black;
}

/* Image Mobile */
.mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* 🖥️ Frame Desktop */
.desktop-frame {
    position: relative;
    width: 100%;
    max-width: 450px; /* Ajustement de la taille pour le desktop */
    border-radius: 10px;
    border: 2px solid black; /* Bordure plus épaisse */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image Desktop */
.desktop-frame img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Remplissage fluide */
    border-radius: 8px;
}


.realisations{
    background-color: black;
}

/* Nom du projet */
.project-card .project-name {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #efc500;
}

/* Lien Découvrir */
.project-card .discover-btn {
    text-decoration: none;
    color: #f1f1f1;
    font-size: 16px;
    display: inline-block;
    margin-top: 10px;
    background-color: #000000;
}

/* Effet au survol */
.project-card:hover .desktop-frame {
    transform: translateY(-5px);
}
.project-card:hover .mobile-frame {
    transform: translateY(-8px);
}

.project-logo {
    width: 150px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    margin: 10px auto;
    display: block;
    background: #222;
    padding: 10px;
}

/* 🌍 RESPONSIVE DESIGN */

/* Tablette */
@media (max-width: 1024px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .info-projects {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .projects {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card{
        padding:0;
        max-width: 350px; /* Centrage et taille uniforme */
    }


    .info-projects {
        font-size: 16px;
        text-align: justify;
    }

    #typewriter-title {
        font-size: 20px;
    }

    .container-realisation{
        display: flex;
        flex-direction: column;
    }

    .audit-container{
        display: flex;
        flex-direction: column;
        align-content: center;
    }

}

/* 🌍 Tablette */
@media (max-width: 1024px) {

    .container-realisation{
        padding: 25px!important;
    }

    .mobile-frame {
        width: 85px;
        height: 150px;
        bottom: -15px;
        right: -10px;
    }
}

/* 📱 Mobile */
@media (max-width: 768px) {
    .projects {
        flex-direction: column;
        align-items: center;
        gap:30px;
    }


    .mobile-frame {
        width: 65px;
        height: 130px;
        bottom: 0;
        right: 0;
        border: 1px solid black;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .mobile-frame img {
        border-radius: 13px;
    }
}

