/* Style général de la section À propos */
.apropos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    height: 50vh;
    padding: 80px 20px;
    color: white;
    font-family: "Poppins", sans-serif;
}

/* Cercle lumineux autour du logo */
.apropos-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #b400ff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #b400ff;
    box-shadow: 0 0 25px #00ffff, 0 0 50px #b400ff;
    animation: glow 3s infinite alternate;
}

spline-viewer {
    will-change: transform;
    transform: translateZ(0);
}


/* Animation du glow (respiration de lumière) */
@keyframes glow {
    from {
        box-shadow: 0 0 20px #00ffff, 0 0 40px #b400ff;
    }
    to {
        box-shadow: 0 0 40px #00ffff, 0 0 80px #b400ff;
    }
}

/* Texte à côté du logo */
.apropos-text {
    max-width: 500px;
    line-height: 1.6;
}

/* Titre avec effet dégradé */
.apropos-text h2 {
    margin-bottom: 10px;
    font-size: 28px;
    background: linear-gradient(135deg, #00ffff, #b400ff);
    -webkit-background-clip: text; /*Degrader a linterieur des lettre*/
    -webkit-text-fill-color: transparent; /*Couleur texte transparent pour couleur du fond apparait*/
}

/* Paragraphe */
.apropos-text p {
    color: #d4d4d4;
    font-size: 16px;
}


.stats-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: white;
    padding: 40px;
    gap: 60px;
    margin-bottom: 50px;
}

.stats-image img {
    width: 420px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transition: transform 0.4s ease;
}

.stats-image img:hover {
    transform: scale(1.05);
}

.stats-info {
    max-width: 500px;
}

.stats-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #00ffff, #b400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat h3 {
    font-size: 36px;
    font-weight: bold;
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #b400ff;
}

.stat p {
    color: lightgray;
    font-size: 16px;
    margin: 5px 0 0;
}

#formation {
    margin-bottom: 180px;
}

.formation h2 {
    margin-bottom: 4rem;
}

.formation-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
}

.formation-container .formation-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem cyan;
    overflow: hidden;
    display: flex;
}

.formation-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2rem;
    display: block;
}

.formation-box img {
    width: 100%;
    transition: .5s ease;
}

.formation-box img:hover {
    transform: scale(1.1);
}

.formation-box .formation-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .08), cyan);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.5rem 1.2rem;
    gap: 0.5rem;
    overflow: hidden;
    transform: translateY(100%);
    transition: .5s ease;
}

.formation-box:hover .formation-layer {
    transform: translateY(0);

}


.formation-layer h4{
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0;
    word-break: break-word;
    hyphens: auto;
}

.formation-layer p {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    max-height: 3.9rem;
    overflow: hidden;

}

.formation-layer h4, .formation-layer p {
    color: #ff7f50;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #b400ff;
}


.formation-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.0rem;
    height: 3.0rem;
    border-radius: 50%;
    margin-top: 0.3rem;
    flex: 0 0 auto;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.formation-layer a i {
    font-size: 1.2rem;
}

/* Formation detail pages */
.formation-detail {
    padding: 5rem 2rem 7rem;
}

.detail-back {
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: cyan;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.back-link:hover {
    color: #a7a7a7;
}

.detail-hero {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.detail-copy h1 {
    margin: 1rem 0 0.8rem;
    font-size: 3.2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #00ffff, #b400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-lead {
    font-size: 1.1rem;
    color: #d4d4d4;
    max-width: 32rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.detail-media {
    display: grid;
    gap: 1.2rem;
}

.detail-image {
    width: 100%;
    height: auto;
    border-radius: 1.6rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-card {
    padding: 1.1rem 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)) padding-box,
        linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(180, 0, 255, 0.5)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.detail-card h3 {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9ad9ff;
    margin-bottom: 0.4rem;
}

.detail-card p {
    color: #f0f0f0;
    font-size: 1rem;
    margin: 0;
}

.detail-card strong {
    color: cyan;
}

.detail-sections {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.detail-panel {
    padding: 1.6rem 1.8rem;
    border-radius: 1.4rem;
    background: rgba(8, 8, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.12);
}

.detail-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.detail-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.detail-panel li {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    color: #e3e3e3;
    font-size: 0.95rem;
}

.detail-panel .accent {
    color: #ff7f50;
}

.detail-summary {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.summary-card {
    padding: 1.3rem 1.5rem;
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.summary-card h3 {
    font-size: 1.1rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 0.95rem;
    color: #d4d4d4;
    margin: 0;
}

.detail-footer {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 1.6rem 2rem;
    border-radius: 1.4rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.detail-footer strong {
    color: #ff7f50;
}

@media (max-width: 1000px) {
    .detail-hero {
        grid-template-columns: 1fr;
    }
    .detail-sections {
        grid-template-columns: 1fr;
    }
    .detail-summary {
        grid-template-columns: 1fr;
    }
    .detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .detail-copy h1 {
        font-size: 2.4rem;
    }
    .detail-info {
        grid-template-columns: 1fr;
    }
}

.contact {
    text-align: center;
    padding: 5rem 2rem;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: cyan;
    text-shadow: 0 0 10px cyan, 0 0 20px rgba(180, 0, 255, 0.6);
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input, .contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: lightslategrey;
    background-color: rgb(55, 70, 85);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input {
    width: 49%;

}

.contact form textarea {
    resize: none;
}

.contact form #btn-contact {
    margin-top: 2rem;
    cursor: pointer;
    padding: 1rem 2.8rem;
    background: cyan;
    box-shadow: 0 0 1rem cyan;
    font-size: 1.6rem;
    letter-spacing: .1rem;
    font-weight: 600;
    color: rgb(15, 16, 30);
}

@media (max-width: 1100px) {
    .formation-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .apropos,
    .stats-section {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    .stats-image img {
        width: 100%;
        max-width: 420px;
    }
    .stats-info {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    #formation {
        margin-bottom: 90px;
    }
    .formation-container {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }
    .formation-layer h4 {
        font-size: 1.4rem;
    }
    .formation-layer p {
        font-size: 0.95rem;
        max-height: 4.2rem;
    }
    .formation-layer a {
        width: 3rem;
        height: 3rem;
    }
    .formation-layer a i {
        font-size: 1.1rem;
    }
    .contact {
        padding: 3.5rem 1.5rem;
    }
    .contact form .input-box {
        flex-direction: column;
    }
    .contact form .input-box input {
        width: 100%;
    }
}
