@font-face {
    font-family: 'Minion-pro';
    src: url('MinionPro-Regular.otf');
    font-weight: 400;
    font-style: normal;
}



/* 1. Reset Global & Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Base Document */
html {
    /* Éviter les sauts de mise en page sur mobile */
    -webkit-text-size-adjust: 100%;


    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Minion-pro', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;
    background-color: #ffffff;
    min-height: 100vh;

    /* iOS */
    scroll-snap-type: y mandatory;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* 5. Nettoyage Formulaires (si vous mettez un contact) */
input, button, textarea, select {
    font: inherit;
}

/* 6. Accessibilité : Contour visible au clavier mais discret */
:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

p{margin-bottom: 5px;
    line-height: normal;}











main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0px;
}

header{
    position: absolute;
    width: 400px;
    height: 120px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 30px;
}

header img{
    height: 100%;
    margin: 0 auto;
}

header #logo-complement{
    position: absolute;
    right: -80px;
    top: 90px;
    display: flex;
    align-items: center;
    font-family: "Courier New";
}



.suffix {
    height: 2rem; /* Hauteur d'une ligne à modifier aussi sur le script js */
    overflow: hidden;
}

.suffix:after{
    content: "";
    position: absolute; top: 0; bottom: 0; left: -10px; right: -10px;
    box-shadow: inset 0px 0px 11px 2px #ffffff;
}

.suffix-slot {
    display: flex;
    flex-direction: column;
    transition: transform 2s cubic-bezier(0, 0, 1, 1);

}

.suffix-slot span {
    height: 2rem;
    display: flex;
    align-items: center;
}

#col1 span{
    justify-content: start;
}

.preffix {
    margin: 0px;
}














section{
    position: relative;
    max-width: 562px;
    margin: 0 auto;
    align-content: center;
    height: calc(100vh);

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#portfolio{
    padding: 150px 0;
}


#img-frame{
    height: 100%;
    align-content: center;
}

#img-frame img{
    max-height: 100%;
    width: auto;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
    user-select: none;
}

#img-control{
    position: absolute;
    display: flex;
    width: 95vw;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;   
}

#img-control div{
    width: 50%;
}













.container-section {
    position: relative;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    width: 200%; /* Deux blocs de 100% côte à côte */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 50px;
}

#position, #a-propos{
    box-sizing: border-box;
    text-align: justify;
    flex-shrink: 0;
}


@media (max-height: 750px) {
    header{
        height: 90px;
    }
    header #logo-complement{
        right: -60px;
        top: 70px;
    }
}

@media (max-width: 768px) {
    body{
        margin: 0;
        padding: 0 10px;
        font-size: 14px;
    }
    header{
        margin-top: 15px;
        height: 65px;
        width: 100%;
    }
    section{
        padding: 0 20px;
        height: 100lvh;
        /* height: 100vh; */
        overflow-y: auto;
        /* background-color: blue; */
    }
    #img-control{
        width: 100%;
    }
    #logo-complement{
        left: 50%;
        transform: translateX(-50%);
        top: auto !important;
        justify-content: center;
    }
}



#img-control{
    /* Supprime le rectangle bleu au clic sur mobile */
    -webkit-tap-highlight-color: transparent;
    
    /* Sécurité supplémentaire pour certains navigateurs */
    outline: none;
    
    user-select: none;
    -webkit-user-select: none;
}