@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: 850px;
    margin: 0 auto 60px auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.titlePresentation {
    text-align: center;
    color: #0044cc;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

a.FlecheRedirection {
    display: inline-block;
    margin: 20px;
    font-weight: 600;
    color: #0044cc;
    text-decoration: none;
}

a.FlecheRedirection i {
    margin-right: 6px;
}

.codeSection {
    margin-top: 25px;
    padding: 15px;
    background-color: #0066ff;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 102, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.codeSection:hover {
    background-color: #004ac1;
}

#code, #noCode {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 1.4rem;
    color: #003399;
    margin-bottom: 15px;
    border-left: 4px solid #0044cc;
    padding-left: 10px;
}

h3 {
    font-size: 1.2rem;
    color: #0044cc;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin: 10px 0;
    font-size: 1.05rem;
}

ul, ol {
    margin: 15px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .titlePresentation {
        font-size: 1.6rem;
    }

    .codeSection {
        font-size: 1rem;
        padding: 12px;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
    }
}

/* Slide toggle animation */
.slide-toggle {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.slide-toggle.open {
    max-height: 2000px;
    opacity: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Rotation animation for arrow */
.codeSection i {
    transition: transform 0.3s ease;
}

.codeSection.active i {
    transform: rotate(180deg);
}


