        @import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@300;400;500;600;700&family=Jost:wght@100;200;300&display=swap');
        @import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&display=swap");
        @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');


:root {

    /* Couleur */
    --fond: #F4F1EE;               /* lin blanchi */
    --fond-secondaire: #ECEAE6;    /* pierre froide */

    --primaire: #722040 ;           /* bordeaux couture */
    --secondaire: #4A0E24;         /* grenat profond */
    --accent: #C4A882;             /* or mat biscuit */

    --texte: #0D0B0C;              /* noir encre */
    --texte-doux: #6E6460;         /* gris terre */
    --texte-clair: #F4F1EE;        /* pour fonds sombres */

    --bordure: #C8C0BA;            /* grège */
    --bordure-fine: #B0A49C;       /* plus marquée */
    --brillance: #EDE8E3;          /* reflet nacré */

    /* Polices */
    --font-titre: 'Cormorant SC', serif;
    --font-corps: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: var(--fond);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
    color: var(--texte);
    letter-spacing: 0.12em;
}





/* Navigation */
.nav_mobile {
    display: none;
}

nav ul {
    position: fixed;
    font-size: 20px;
    list-style: none;
    display: flex;
    gap: 60px;
    opacity: 0;
    padding: 10px;
    border-radius: 3px 3px 10px 10px;

    animation-name: ul-slide;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 0vh exit 230vh;
}

@keyframes ul-slide {
    0% { 
        opacity: 0;
        left: 50%;
        transform: translateX(-50%) scale(1);
    }
    80% { 
        opacity: 0;
        left: 50%;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 1;
        top: 10px;
        position: fixed;
        left: 50%;
        transform: translateX(-50%) scale(1);
        z-index: 9999;
        height: 50px;
        width: auto;
        background-color: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--bordure-fine);
        box-shadow: 0 1px 30px rgba(114, 32, 64, 0.08);
        
    }
}

nav li:hover {
    opacity: 0.7;
}

nav ul li a {
    width: auto;
    color: var(--primaire);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-family: var(--font-corps);
}

/*Mini-player*/
.mini-player {
    position: fixed;
    top: 60px;
    width: 500px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bordure-fine);
    border-radius: 0px 0px 10px 10px;
    font-family: var(--font-corps);
    color: var(--primaire);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 99999;
}

.player_mobile{
    display: none;
}

.player_pc{
    display: block;
}

.mini-player.visible {
    opacity: 1;
    pointer-events: all;
}

.mini-player button {
    border: none;
    background: transparent;
    color: var(--primaire);
    font-size: 16px;
    cursor: pointer;
}

.mini-player button:hover {
    opacity: 0.6;
}

.mini-player #volume {
    width: 70px;
    height: 4px;
    accent-color: var(--primaire);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primaire), var(--accent));
    border-radius: 20px;
}

.mini-player #mini_pause {
    display: none;
}



/* Section Titre */
.titre {
    width: 100%;
    height: 200vh;
    position: relative;
    background: linear-gradient(180deg, #FAF7F5 0%, #F2EBE8 100%);
}

.titre .debut {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 9999;
}

.titre .portfolio {
    background-image: linear-gradient(to right, #4A0E24 5%, #C4A882 60%, #722040 90%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-titre);
    font-size: 90px;
    letter-spacing: 10px;
    font-weight: 300;
    white-space: nowrap;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-70%, -50%);

    animation-name: h1-slide;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 10vh exit 275vh;
}

@keyframes h1-slide {
    0% {
        left: 50%;
        transform: translate(-50%, -50%);
    }
    50% {
        left: 1%;
        top: 65%;
        transform: translate(0%, -50%);
    }
    100% {
        left: 1%;
        transform: translate(0%, -50%);
        opacity: 1;
        top: -40px;
    }
}

.titre h2 {
    font-family: var(--font-titre);
    color:var(--primaire);
    font-size: 70px;
    letter-spacing: 10px;
    font-weight: 300;
    position: absolute;
    top: 90vh;
    left: 60%;
    transform: translate(-80%, -60%);

    animation-name: h2-slide;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 0vh exit 240vh;
}

@keyframes h2-slide {
    from {
        opacity: 0;
        left: 50%;
        transform: translate(-80%, -60%);
    }
    to {
        opacity: 1;
        left: 1%;
        top: 90vh;
        transform: translate(0%, -60%);
    }
}

.scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;

    animation-name: scroll;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 0vh exit 40vh;
}

@keyframes scroll {
    from {
        transform: translateY(0);
        opacity: 1;

    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

.scroll_texte {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primaire);
}

.scroll_ligne {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}




/* Séparations */
.separation {
    height: 1px;
    background: linear-gradient(to right, transparent, #722040, #C4A882, #722040, transparent);
}





/* Présentation */
.presentation {
    width: 100%;
    min-height: 100vh;
    background-color: var(--fond);
}

.portfolio_presentation{
    display: none;
}

.presentation_titre{
    font-family: var(--font-titre);
    color:var(--primaire);
    font-size: 50px;
    letter-spacing: 10px;
    font-weight: 300;
    text-align: center;
    padding-top: 20px;

    animation-name: presentation_titre;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 80vh exit 190vh;
}

@keyframes presentation_titre {
    from {
            opacity: 0;
            transform: scale(0);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
}


.presentation_conteneur {
    scroll-snap-align: start;
    z-index: 10;
    min-height: 100%;
    display: flex;              
    flex-direction: row;
    align-items: flex-start;
    padding: 40px 80px;
    overflow: visible;   
}

.presentation_conteneur .gauche {
    flex: 1; 
    display: block;
    overflow: hidden;
}

.presentation_conteneur .gauche .nom {
    list-style: none;
    border-left: 2px solid var(--primaire);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;

    animation-name: nom;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-timeline: scroll(root);
    animation-range: entry 0vh cover 180vh;
}

@keyframes nom {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.presentation_conteneur .gauche .info {
    list-style: none;
    border-left: 2px solid var(--primaire);
    padding-left: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;

    animation-name: info;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-timeline: scroll(root);
    animation-range: entry 0vh cover 180vh;
}

@keyframes info {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.presentation_conteneur .gauche .info h1 {
    color: var(--primaire);
    font-size: 25px; 
    font-family: var(--font-titre);
    letter-spacing: 0.1em;
    padding-top: 25px;
}

.presentation_conteneur .gauche .info span{
    color: var(--texte-doux);
    font-size:20px;
    padding-left: 12px;
    letter-spacing: 0.1em;
    padding-top: 12px;
}

.presentation_conteneur .gauche .info a{
    text-decoration: none;
    color: var(--secondaire);
}

.presentation_conteneur .gauche .info i {
    color: var(--secondaire);
    font-size: 12px;
}

.presentation_conteneur .image_presentation {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.presentation_conteneur .image_presentation img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: solid 5px var(--secondaire);
    object-fit: cover;
    display: block;

    animation-name: img;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-timeline: scroll(root);
    animation-range: entry 50vh cover 190vh;
}


@keyframes img {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);

    }
}

.presentation_conteneur .badge {
    position: absolute;
    bottom: 4%;
    right: -8%;
    background: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--bordure);
    animation: float 3s ease-in-out infinite;
    min-width: 160px;
}

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

.presentation_conteneur .badge_nom {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primaire); 
    margin-bottom: 4px;
}

.presentation_conteneur .badge_mot {
    color: var(--accent);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-style: italic;
}

.presentation_conteneur .ligne_or {
  height: 1px;
  background-color: var(--accent);
  width: 60px;
  display: inline-block;
  margin-bottom: 5px;
  padding-left: 20px;
}

.presentation_conteneur .badge_etoile {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}







/*Projet*/

.projet_section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--fond);
}

.projet_titre{
    font-family: var(--font-titre);
    color:var(--primaire);
    font-size: 50px;
    letter-spacing: 10px;
    font-weight: 300;
    text-align: center;
    padding-top: 20px;

    animation-name: projet_titre;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 120vh exit 330vh;
}

@keyframes projet_titre {
    from {
            opacity: 0;
            transform: scale(0);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
}

.projet {
    padding: 70px;
    color: var(--texte);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 20px;

    animation-name: projet;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-timeline: scroll(root);
    animation-range: entry 50vh cover 300vh;
}

@keyframes projet {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);

    }
}

.projet_mobile {
    display: none;
}

.projet_pc {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 20px;
}

.projet .travail {
    position: relative;
    width: 380px;
    height: 250px;
    border: 2px solid var(--secondaire);
    border-radius: 10px;
    margin-bottom: 40px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.travail:hover {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 5px;
    padding: 20px;
}

/* Face avant */
.front {
    background-color: var(--fond-secondaire);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.front .titre_projet {
    color: var(--primaire);
    font-family: var(--font-titre);
    text-align: center;
    width: 100%;
    color: var(--primaire);
    font-size: 30px;
    font-family: var(--font-titre);
    letter-spacing: 0.1em;
}

.front img {
    width: 110px;
    object-fit: cover;
    padding-bottom: 20px;
}

.projet .travail .sepa_front {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, #722040, #C4A882, #722040, transparent);
}

/* Face arrière */
.back {
    background-color: var(--secondaire);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
}

.projet .travail .back .nom_projet {
    color: var(--texte-clair);
    text-align: center;
    font-size: 20px;
    font-family: var(--font-titre);
    letter-spacing: 0.1em;
    padding-bottom: 20px;
}

.back .description_projet {
    color: var(--texte-clair);
    font-size: 12px;
    margin-top: 15px;
    line-height: 1.6;
}

.projet .travail .sepa_back {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, #C4A882, #C4A882, #C4A882, transparent);
}

.projet .travail .languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.projet .travail .language {
    width: fit-content;
    padding: 5px 12px;
    border-radius: 15px;
    color: var(--texte-clair);
    font-size: 10px;
    letter-spacing: 0.3em;
    background-color: var(--primaire);
}

/* Personnel */
.personnel_titre{
    font-family: var(--font-titre);
    color:var(--primaire);
    font-size: 50px;
    letter-spacing: 10px;
    font-weight: 300;
    text-align: center;
    margin-top: 20px;

    animation-name: personnel_titre;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 290vh exit 430vh;
}

@keyframes personnel_titre {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.personnel {
    padding: 70px;
    background-color: var(--fond);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.personnel_sous_titre {
    font-family: var(--font-titre);
    font-size: 25px;
    font-weight: 600;
    color: var(--primaire);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.courte_ligne_or {
    height: 1px;
    background: linear-gradient(to right, var(--accent), var(--brillance));
    width: 60px;
    display: block;
    margin-bottom: 20px;
}

/*Personnel haut*/
.personnel_haut {
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 100%;
    margin-bottom: 30px;
    margin-left: 70px;
    gap: 20%;
}

/* passions */
.passion_liste{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.activite{
    padding: 10px 10px;
    background: var(--fond-secondaire);
    border: 1px solid var(--bordure);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondaire);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

.activite:hover {
    background: var(--brillance);
    border-color: var(--accent);
    color: var(--primaire);
    transform: translateY(-2px);
}

/*Personnel bas */
/* Blocs sections personnelles */
.perso_section_bloc {
    padding: 50px 70px;
    background-color: var(--fond);
}

.perso_label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.perso_titre_bloc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 35px;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 10px;
}

.perso_description {
    font-size: 0.88rem;
    color: var(--texte-doux);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Films grid */
.films_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.film_card {
    background: white;
    border: 1px solid var(--bordure);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    overflow: hidden; 
}

.film_card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: var(--film-img);
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.35), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.35), transparent);
    border-radius: 0 10px 10px 0;
}

.film_card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 32, 64, 0.08);
}

.film_icon {
    font-size: 20px;
    color: var(--accent);
}

.film_titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--texte);
}

.film_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.film_genre {
    font-size: 12px;
    font-weight: 500;
    color: var(--primaire);
}

.film_annee {
    font-size: 12px;
    color: var(--texte-doux);
}

/* Dessins grid */
.dessins_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dessin_card {
    background: white;
    border: 1px solid var(--bordure);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.dessin_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(114, 32, 64, 0.1);
}

.dessin_img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--fond);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dessin_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.dessin_titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--texte);
    padding: 10px 15px 5px;
}

.dessin_genre {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0 15px 15px;
    display: block;
    color: var(--primaire);
}
/* Player */
.musique {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    margin-left: 50%;
    margin-top: 60px;
    transform: translateX(-50%);
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(114, 32, 64, 0.12);
    border: 1px solid var(--bordure);
}

.musique .img_musique {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    border: 3px solid var(--primaire);
    animation: vinyl 9s linear infinite;
    animation-play-state: paused;
}

@keyframes vinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.vinyl {
    position: relative;
    display: inline-block;
    border-radius: 50%;
}

.vinyl::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 3px solid var(--primaire);
    background-color: var(--fond);
}

/* Infos */
.musique_infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.musique_titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--texte);
    letter-spacing: 3px;
}

.musique_artiste {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 6;
    text-transform: uppercase;
    color: var(--texte-doux);
}

/* Barre de progression */
.musique_barre{
    width: 100%;
    z-index: 1;
}

.musique input#track {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: linear-gradient(to right, var(--primaire), var(--accent));
    border-radius: 10px;
    border: none;
}

.musique input#track::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primaire);
    cursor: pointer;
    transition: 0.3s;
}

.musique input#track:hover::-webkit-slider-thumb {
    transform: scale(1.4); 
}

.musique_temps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--texte-doux);
    margin-top: 6px;
    letter-spacing: 2px;
}

/* Boutons */
.musique_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 1;
}

.musique_controls button {
    border: none;
    background: transparent;
    color: var(--primaire);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.musique_controls .musique_btn_next:hover {
    color: var(--primaire);
    transform: scale(1.1);
}

.musique_controls 

.musique_btn_play {
    width: 60px;
    height: 60px;
    border-radius: 50% ;
    background: var(--primaire) ;
    color: white ;
    display: flex ;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(114, 32, 64, 0.35), 0 2px 6px rgba(114, 32, 64, 0.2);
    transition: all 0.2s ease ;
}

.musique_btn_play:hover {
    background: var(--secondaire) ;
    transform: scale(1.08) ;
    box-shadow: 0 12px 28px rgba(114, 32, 64, 0.45),0 4px 10px rgba(114, 32, 64, 0.25);
}

/* Animation pulsation quand en lecture */
@keyframes pulse_player {
    0%, 100% { 
        box-shadow: 
            0 20px 60px rgba(114, 32, 64, 0.12),
            0 0 0 0px rgba(114, 32, 64, 0.4);
    }
    50% { 
        box-shadow: 
            0 20px 60px rgba(114, 32, 64, 0.25),
            0 0 0 20px rgba(114, 32, 64, 0);
    }
}

.musique.playing {
    animation: pulse_player 2s ease-in-out infinite;
}



/*Contact*/
.contact {
    min-height: 100vh;
    padding: 50px 70px;
    background-color: var(--secondaire);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact_titre {
    font-family: var(--font-titre);
    font-size: 50px;
    letter-spacing: 10px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    padding-top: 50px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);

    animation-name: contact_titre;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: entry 420vh exit 540vh;
}

@keyframes contact_titre {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact_corps {
    display: flex;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
}

/* Gauche - formulaire */
.contact_gauche {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 35%;
    padding-top: 20px;
}

.contact_haut h2 {
    font-family: var(--font-titre);
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--texte-clair);
    margin-bottom: 8px;
}

.contact_haut p {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact_reseaux {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact_reseaux h2 {
    font-family: var(--font-titre);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--texte-clair);
    margin-bottom: 8px;
}

.reseau_btn {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--bordure);
    font-size: 15px;
    letter-spacing: 0.15em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(200, 192, 186, 0.2);
    transition: color 0.3s, border-color 0.3s;
}

.reseau_btn i {
    font-size: 20px;
    color: var(--accent);
    width: 25px;
    transition: transform 0.3s;
}

.contact_reseaux span {
    color: var(--texte-clair);
}

.reseau_btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.reseau_btn:hover i {
    transform: translateX(4px);
}

.contact_reseaux p {
    color: var(--texte-clair);
    font-size: 18px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 22px; 
    text-align: start;
}

.contact_reseaux .phrase_fin {
    color: var(--accent);
    transition: opacity 0.4s ease;
}

/* Ligne de séparation */
.contact_ligne {
    width: 1px;
    min-height: 400px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    align-self: stretch;
}

/* Droite — formulaire */
.contact_droite {
    flex: 1;
    padding-top: 20px;
}

.contact_droite form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.groupe_input {
    position: relative;
}

.groupe_input input,
.groupe_input textarea {
    width: 100%;
    background: transparent;
    border: none;
    caret-color: var(--texte-clair);
    border-bottom: 1px solid rgba(200, 192, 186, 0.4);
    padding: 12px 0;
    color: var(--texte-clair);
    font-family: var(--font-corps);
    font-size: 15px;
    letter-spacing: 0.08em;
    outline: none;
}

.groupe_input textarea {
    min-height: 120px;
    resize: none;
}

.groupe_input label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--texte-clair);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: top 0.3s, font-size 0.3s, color 0.3s;
    pointer-events: none;
}

.groupe_input input:focus ~ label,
.groupe_input input:not(:placeholder-shown) ~ label,
.groupe_input textarea:focus ~ label,
.groupe_input textarea:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 11px;
    color: var(--accent);
}

.groupe_input input:-webkit-autofill,
.groupe_input textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--secondaire) inset;
    -webkit-text-fill-color: var(--texte-clair);
    transition: background-color 5000s ease-in-out 0s;
}

.btn_envoyer {
    align-self: flex-end;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    font-family: var(--font-corps);
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s, color 0.3s;
    border-radius: 2px;
}

.btn_envoyer:hover {
    background: var(--accent);
    color: var(--secondaire);
}

.btn_envoyer i {
    margin-left: 8px;
}

/* ============================================================
   Grand écran — 1600px et plus
   ============================================================ */
@media screen and (min-width:1600px){

    .titre .portfolio{
        font-size: 120px;
    }

    /*Projet*/
    .projet_pc {
        gap: 80px;
    }

    .projet .travail {
        width: 480px;
        height: 300px;
    }

    .front img {
        width: 150px;
    }

    .projet .travail .back .nom_projet{
        font-size: 25px;
    }

    .back .description_projet {
        font-size: 17px;
    }

    .projet .travail .language {
        font-size: 15px;
    }

    /*Personnel */
    .personnel {
        padding: 200px;
    }

    /*Contact*/
    .contact_titre {
        padding-top:60px ;
    }
}

/* ============================================================
   Mobile — 768px et moins
   ============================================================ */
@media screen and (max-width: 768px) {

    nav ul{
        display: none;

    }

    /* Nav barre mobile */
    .nav_mobile{
        display: flex;
    }

    .sidenav{
        height: 100%;
        width: 250px;
        position: fixed;
        z-index: 999999;
        top:0;
        right:-250px;
        background-color: var(--secondaire);
        padding-top: 60px;
        transition: right 0.5s ease;
    }

    /* Side nav links */
    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: var(--texte-clair);
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover{
        transform: translateX(20px);
    }

    .sidenav ul{
        list-style-type: none;
        padding-top: 10px;
    }

    .sidenav ul li {
        border-bottom: 1px solid rgba(196, 168, 130, 0.2);
    }

    .sidenav ul li a {
        padding: 16px 20px 16px 32px;
        font-family: var(--font-corps);
        font-size: 18px;
        color: var(--texte-clair);
        display: block;
        text-decoration: none;
        letter-spacing: 0.1em;
        transition: all 0.2s ease;
    }

    .sidenav ul li a:hover {
        color: var(--accent);
        padding-left: 40px;
    }

    /* Active */
    .sidenav.active {
        right: 0;
    }

    /* Btn close */
    .sidenav .close {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
    }

    .mobile_header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        padding: 10px 20px;
        background: rgba(244, 241, 238, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--bordure);
    }

    .mobile_portfolio {
        font-family: 'Cormorant Garamond', serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--primaire);
        text-transform: uppercase;
        letter-spacing: 8px;
        display: block;
        line-height: 1.1;
    }

    .mobile_nom {
        font-size: 15px;
        font-weight: 600;
        color: var(--accent);
        display: block;
    }

    /* Icone burger */
    .burger_icone {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 10px;
    }

    .burger_icone span {
        display: block;
        width: 35px;
        height: 5px;
        background-color: var(--secondaire);
    }

    .burger_icone span:nth-child(2) {
        width: 20px;
        background-color: var(--accent);
    }

    /* Mini player */
    .mini-player{
        display: none;
    }

    /* Titre hero */
    .titre {
        height: 0vh;
        display: none;
    }

    /* Présentation */
    .presentation_titre {
        font-size: 34px;
        letter-spacing: 5px;
        animation-range: entry 0vh exit 0vh;
    }

    .presentation_conteneur {
        flex-direction: column-reverse;
        align-items: center;
        padding: 20px 24px;
        gap: 30px;
    }

    .presentation_conteneur .gauche { 
        width: 100%;
    }

    .presentation_conteneur .gauche .info{
        animation-range: entry 0vh exit 0vh;
    }

    .presentation_conteneur .gauche .info h1 { 
        font-size: 20px;
    }
    .presentation_conteneur .gauche .info span { 
        font-size: 15px; 
    }

    .presentation_conteneur .image_presentation img {
        width: 250px;
        height: 250px;
    }

    .presentation_conteneur .badge {
        top: 80%;
        bottom: -5%;
        right: -5%;
        min-width: 220px;
        height: 60px;
        padding: 10px 10px;
        font-size: 15px;
    }

    .presentation_conteneur .badge_nom {
        font-size: 12px; 
    }

    /* Projets */
    .projet {
        padding: 0;
        gap: 0;
    }

    .projet_pc {
        display: none;
    }

    .projet_titre {
        font-size: 34px;
        letter-spacing: 5px; 
        animation-range: entry 0vh exit 0vh;
    }

    .projet_mobile {
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        align-items: center;
        gap: 20px;
    }

    .projet_card {
        background: white;
        border: 1px solid var(--bordure);
        border-radius: 12px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: all 0.3s ease;
        cursor: default;
    }

    .projet_card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(114, 32, 64, 0.1);
        border-color: var(--accent);
    }

    .projet_card_haut {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .projet_card_haut img {
        width: 38px;
        height: 38px;
        object-fit: contain;
        background: rgba(114, 32, 64, 0.06);
        border-radius: 8px;
        padding: 6px;
    }

    .projet_badge {
        margin-left: auto;
        padding: 4px 12px;
        border: 1px solid rgba(196, 168, 130, 0.5);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.05em;
        color: var(--accent);
        background: rgba(196, 168, 130, 0.08);
    }

    .projet_annee {
        font-size: 12px;
        color: var(--texte-doux);
        letter-spacing: 0.05em;
    }

    .projet_card_titre {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--texte);
        letter-spacing: 0.02em;
    }

    .projet_card_description {
        font-size: 13px;
        color: var(--texte-doux);
        line-height: 1.7;
        flex: 1;
    }

    .projet_card_languages {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }

    .projet_card_lang {
        padding: 4px 14px;
        border: 1px solid var(--primaire);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 500;
        color: var(--primaire);
        letter-spacing: 0.1em;
        background: transparent;
        transition: all 0.2s ease;
    }

    .projet_card_lang:hover {
        background: var(--primaire);
        color: white;
    }

    /* Personnel */
    .personnel_titre { 
        font-size: 34px;
        letter-spacing: 5px; 
        animation-range: entry 0vh exit 0vh;
    }
    .personnel { 
        padding: 30px 20px; 
    }

    .personnel_haut {
        margin-left: 0;
        flex-direction: column;
        gap: 20px;
    }

    .perso_section_bloc { padding: 30px 20px; }

    .films_grid {
        grid-template-columns: 1fr; 
    }
    .dessins_grid {
         grid-template-columns: 1fr;
    }

    /* Player musique */
    .musique {
        width: 100%;
        max-width: 340px;
        margin-left: 50%;
        padding: 25px 20px;
    }

    .musique .img_musique {
        width: 160px;
        height: 160px;
    }

    /* Contact */
    .contact {
        padding: 30px 20px;
    }

    .contact .fin{
        display: none;
    }

    .contact_titre {
        font-size: 34px;
        letter-spacing: 5px;
        padding-top: 30px;
        animation-range: entry 0vh exit 0vh;
    }

    .contact_corps {
        flex-direction: column;
        gap: 30px;
    }

    .contact_gauche {
        width: 100%; 
    }

    .contact_ligne {
        width: 100%;
        min-height: 2px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
    }

    .contact_droite {
        width: 100%; 
    }
}

/* ============================================================
   BREAKPOINT PETIT — 480px et moins
   ============================================================ */
@media screen and (max-width: 480px) {

    .portfolio_presentation{
        font-size: 35px;
    }

    .presentation_conteneur .image_presentation img {
        width: 180px;
        height: 180px;
    }

    .projet .travail {
        height: 200px;
    }

    .musique {
        max-width: 100%;
    }
    .musique .img_musique {
        width: 130px; height: 130px;
    }
}