/* ===========================
   Scroll & Base Styles
   =========================== */
html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
    background-color: rgb(235, 235, 235);
}
h1 {
    text-align: center;
}
.liens {
    text-decoration: none;
    color: black;
}

/* ===========================
   Présentation
   =========================== */
.Titre {
    line-height: 150%;
    font-size: xx-large;
    font-weight: bold;
    text-align: left;
    padding-right: 15%;
    padding-top: 4%;
    padding-left: 0%;
}
.Titre1 {
    line-height: 150%;
    font-weight: bold;
    text-align: left;
}
.Titre2 {
    padding-top: 25px;
    line-height: 108%;
    font-size: 200%;
    font-weight: bold;
    text-align: left;
}

.Titre2-1 {
    padding-top: 10px;
    line-height: 108%;
    font-size: 200%;
    font-weight: bold;
    text-align: left;
}

.Titre3 {
    line-height: 105%;
    padding-top: 15px;
    font-size: xx-large;
    font-weight: bold;
    text-align: left;
}
.IMG_Etudiant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
#IMG_Etudiant {
    padding-top: 40%;
    /* margin-left: 100px; */
    margin-right: 40px;
}

/* Responsive Présentation */
@media (max-width: 1400px) and (min-width: 768px) {
    .IMG_Etudiant {
        display: none;
    }
    .Titre {
        padding: 12%;
    }
    .Titre2 {
        line-height: 108%;
    }
}
@media (max-width: 800px) {
    .Titre {
        padding-right: 0%;
    }
    .IMG_Etudiant {
        display: none;
    }
}

/* ===========================
   Divers
   =========================== */
#Pages {
    width: 100%;
    height: 100%;
    border: none;
}
#DescriptionFormationImg {
    vertical-align: middle;
    position: relative;
    margin: 0;
}
#Customer {
    position: static;
    justify-content: right;
    text-align: right;
}
.arrow {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}
@media (max-width: 600px) {
    .scrolldown {
        display: none;
    }
}

/* ===========================
   Scroll Down Animation
   =========================== */
.scrolldown {
    --color: rgb(0, 0, 0);
    --sizeX: 30px;
    --sizeY: 50px;
    width: var(--sizeX);
    height: var(--sizeY);
    margin-left: calc(var(--sizeX) / 2);
    border: calc(var(--sizeX) / 10) solid var(--color);
    border-radius: 50px;
    box-sizing: border-box;
    margin-bottom: 16px;
    position: absolute;
    left: 51.5%;
    transform: translate(-50%, -50%);
}
.scrolldown::before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: var(--color);
    border-radius: 100%;
    animation: scrolldown-anim 2s infinite;
    box-sizing: border-box;
    box-shadow: 0px -5px 3px 1px #ffffff66;
}
@keyframes scrolldown-anim {
    0% {
        opacity: 0;
        height: 6px;
    }
    40% {
        opacity: 1;
        height: 10px;
    }
    80% {
        transform: translate(0, 20px);
        height: 10px;
        opacity: 0;
    }
    100% {
        height: 3px;
        opacity: 0;
    }
}
.chevrons {
    padding: 6px 0 0 0;
    margin-left: -3px;
    margin-top: 48px;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chevrondown {
    margin-top: -6px;
    position: relative;
    border: solid var(--color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}
.chevrondown:nth-child(odd) {
    animation: pulse 500ms ease infinite alternate;
}
.chevrondown:nth-child(even) {
    animation: pulse 500ms ease infinite alternate 250ms;
}
@keyframes pulse {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

/* ===========================
   Bouton retour en haut
   =========================== */
#myBtn {
    background-image: url('../images/arrow-up-outline.svg');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgb(139, 139, 139);
    cursor: pointer;
    padding: 19px;
    border-radius: 4px;
}

/* ===========================
   Responsive helpers (global)
   =========================== */
/* Make media scale inside their containers */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Central container to keep content readable on large screens */
.container-fluid, .site-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Responsive article grid used on the articles page */
main.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Utility: stack long horizontal layouts on small screens */
@media (max-width: 800px) {
    .Presentation2, .Certifications, .frise_chronologique, .grid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.with-sidebar {
    /* original behavior: content starts after the 75px nav */
    margin-left: 0px;
}

@media (max-width: 768px) {
    .with-sidebar { margin-left: 0 !important; padding-left: 0 !important; }
}

/* On small screens the navigation becomes a top bar (60px).
   Add a top offset so content doesn't appear under the fixed nav. */
@media (max-width: 768px) {
    .with-sidebar { padding-top: 0px; }
}




/* ===========================
   Responsive Présentation
   =========================== */
/* Mise en page principale */
.Presentation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
}

/* Titres responsives avec clamp() — agrandis pour grand écran */
.Titre1 {
    font-size: clamp(1.5rem, 5vw);
}
.Titre2 {
    font-size: clamp(1.2rem, 4vw, 3.5rem);
}
.Titre2-1 {
    font-size: clamp(1.2rem, 7vw, 3.5rem);
}

.Titre3 {
    font-size: clamp(1rem, 3.5vw, 2.5rem);
}

.Titre4 {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

/* Image responsive */
.IMG_Etudiant img {
    max-width: 100%;
    height: auto;
}

/* Ajustement petit écran */
@media (max-width: 600px) {
    .Presentation {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================
   Responsive Présentation 2
   =========================== */

/* Structure principale */
.Presentation2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
}

/* Image responsive */
.IMG_Etudiant img {
    max-width: 100%;
    height: auto;
}

/* Titre principal plus grand sur grand écran */
#TitrePresentation {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    margin-bottom: 0.5rem;
}

/* Paragraphe agrandi sur plein écran */
.Description p {
    font-size: clamp(1rem, 2.8vw, 1.5rem);
    line-height: 1.6;
}

/* Bouton responsive et lisible */
.boutons {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    padding: 0.7em 1.5em;
    border-radius: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boutons:hover {
    background-color: #0056b3;
}

/* Responsive mobile */
@media (max-width: 700px) {
    .Presentation2 {
        flex-direction: column;
        text-align: center;
    }

    .Description {
        margin-top: 1.5rem;
    }
}
