:root {
    --gutter: clamp(20px, 5.56vw, 80px);
    --section-y: clamp(56px, 8vw, 100px);
}

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

body {
    font-family: 'Jost', sans-serif;
}

.hello {
    color: #F5CBD7;
    /*border: red solid 3px;*/
    width: 50%;
    font-size: 2rem;
    text-align: center;
    margin-top: 100px;
}

.lola{
    font-family: 'Kapakana', sans-serif;
    font-size: 10rem;
    line-height: 1;
    position: relative;
}

.droite{
    /*border: red solid 3px;*/
    width: 50%;
margin-top: 100px;
    align-items: center;
    text-align: center;
}

.photo_lola{
    width: 400px;
}

.container {
    display: flex;
}

.hello, .droite {
    flex: 1;
    padding: 20px;
  }

.message1 {
    text-align: center;
    margin-top: 70px;
    transition-delay: 0.1s;
}

.message1 img {
    width: 150px;
}

.message1, .message2, .message3, .message4, .message5 {
    margin: 150px 0;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.message1.visible, .message2.visible, .message3.visible, .message4.visible, .message5.visible {
    opacity: 1;
    transform: translateY(0);
}

.message2 {
    /*border: red solid 3px;*/
    margin-left: 50px;
    margin-top: -150px;
    transition-delay: 0.1s;
}

.message3 {
    margin-left: 60px;
    margin-top: -150px;
    transition-delay: 0.2s;
}

.message4 {
    margin-left: 60px;
    margin-top: -130px;
    transition-delay: 0.3s;
}

.message5 {
    margin-left: 80px;
    margin-top: -120px;
    transition-delay: 0.4s;
}

.message2 img {
    width: 390px;
}

.message3 img {
    width: 530px;
}

.message4 img {
    width: 270px;
}

.message5 img {
    width: 150px;
}

.message5-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 20%;
    transform: translateY(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.message5-popup.visible {
    display: block;
}

.message5-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.message5-overlay.visible {
    display: block;
}

.container {
      position: relative;
      height: 90vh;
    }

    .folder {
      position: fixed;
      top: 50%;
      left: 10%;
      transform: translate(0, -50%) scale(0.5);
      transition: none;
      z-index: 10;
    }

    .folder-icon {
      width: 300px;
      position: relative;
    }

    .folder-icon::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 0;
      width: 60px;
      height: 20px;
      background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
      border-radius: 8px 8px 0 0;
    }

.myportfolio{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:100vh;
}

.dossier_container{
    position:relative;
    width:400px;
    max-width:80vw;
}

.dossier{
    width:100%;
    display:block;
    position:relative;
    z-index:1;
}

.portfolio{
    position:absolute;

    top:-15%;
    left:-10%;    

    z-index:2;

    font-family:'Italianno', cursive;
    font-weight:100;
    font-size:clamp(4rem,12vw,15rem);
    line-height:0.8;
    padding: 10px;

    opacity:0;
    transform:translateY(20px);
    transition:opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

/* masque devant */
.dossier_masque{
    position:absolute;
border-radius: 20px;
    top:60px;
    left:0;
    width:99%;
    z-index:3;
}

.welcome{
    font-family:'Judson', serif;
    font-weight:100;
    font-style:italic;
    font-size:clamp(2rem,5vw,6rem);
    margin-bottom: 100px;
    opacity:0;
    transform:translateY(20px);
    transition:opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}
    .welcome.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio.visible {
  opacity: 1;
  transform: translateY(0);
}

.nom{

    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
}

.photo2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 70px auto;
  min-height: 500px;
  padding: 20px;
}

/* ── Photo ── */
.p2-photo {
  width: clamp(600px, 80vw, 1100px);
  height: auto;
  position: relative;
  z-index: 5;

  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease-out,
              transform 0.8s cubic-bezier(.2,.8,.2,1);
}

.p2-photo.p2-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Labels ── */
.p2-label {
  position: absolute;
  width: clamp(120px, 15vw, 260px);
  height: auto;

  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease-out,
              transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.p2-label.p2-visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Positions desktop */
.p2-label.top-left    { left: 5%;  top: 10%; }
.p2-label.bottom-left { left: 5%;  bottom: 10%; }
.p2-label.top-right   { right: 5%; top: 10%; }
.p2-label.bottom-right{ right: 5%; bottom: 10%; }

/* ── Delay (effet cascade) ── */
#p2-lbl1 { transition-delay: 0.1s; }
#p2-lbl2 { transition-delay: 0.2s; }
#p2-lbl3 { transition-delay: 0.3s; }
#p2-lbl4 { transition-delay: 0.4s; }

.marron {
    background-color: #422D28;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 200px;
}

.left {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
}

.formation {
    width: 70%;
    transform: rotate(-5deg) translateY(100px);
margin-top: -80px;
    opacity: 0;
    
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.épingle1 {
    width: 25%;
    transform: rotate(-5deg) translateY(100px);
    margin-left: 100px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-right: 100px;
    z-index: 1;
    margin-top: -300px;
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.certification {
    width: 70%;
transform: rotate(5deg) translateY(100px);
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
margin-top: -30px;

}

.épingle2 {
    width: 27%;
    transform: rotate(5deg) translateY(100px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-top: -80px;
    margin-left: 80px;
    z-index: 1;
}


.épingle2.visible, .certification.visible {
    opacity: 1;
    transform: rotate(5deg) translateY(0);
}

.formation.visible, .épingle1.visible{
    opacity: 1;
    transform: rotate(-5deg) translateY(0);
}

#introVideo{
    width: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.hello video {
    width: 70%;
}



.skills-section {
  display: flex;
  align-items: center;
  background-color: #F8F8F8;
height: fit-content;
min-height: 90vh;
}

.skills-col-left {
  width: 40%;
  position: relative;
}

.tampons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
}

.skills-col-left img {
  position: relative;
  margin-left: 20px;
}

.skills-col-left h1 {
  margin-bottom: 60px;
  line-height: 1;
  margin-left: 50Px;
}

.skills-col-left .mes {
  font-size: 6rem;
  color: #3b2b23;
  font-family: 'Judson', serif;
font-style: italic;
font-weight: 100;
}

.skills-col-left .skills {
  font-size: 8rem;
  color: #f2b6c6;
  font-weight: bold;
  font-family: 'Keania One', sans-serif;
font-weight: 100;
}

.asset-skill-1 {
 grid-column: 1 / 2; 
 grid-row: 1 / 2;
  width: 60%;
  margin-left: 10px;
}

.asset-skill-2 {
  grid-column: 2 / 3;
   grid-row: 1 / 2;
  width: 100%;
  margin-left: -20px;
}

.asset-skill-3 {
  grid-column: 3 / 4;
   grid-row: 1 / 2;
  width: 93%;
}

.asset-skill-4 {
grid-column: 1 / 2;
 grid-row: 2 / 3;
  width: 90%;

}

.asset-skill-5 {
grid-column: 2 / 3;
 grid-row: 2 / 3;
  width: 80%;
  margin-left: 15px;
  margin-top: 10px;
}

.asset-skill-6 {
 grid-column: 3 / 4;
  grid-row: 2 / 3;
  width: 80%;
}

.skills-col-right {
  width: 60%;
}

.asset-passport {
  width: 95%;
margin-top: 50px;
transform: rotate(4deg);
margin-left: 10px;
}

.skill-transform {
  display: inline-block;
  position: relative;
  transform: rotate(4deg) translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  
}

@media (hover: hover) {
.skill-transform:hover {
  transform: rotate(4deg) translateY(-8px);
}
}

.skill-transform::after {
  content: attr(data-label);
  position: absolute;
  left: 65%;
  top: 90%;
  transform: translateX(-50%) rotate(-4deg);
  display: block;
  width: max-content;
  text-align: center;
  white-space: pre-wrap;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  color: gray;
}

@media (hover: hover) {
.skill-transform:hover::after {
  opacity: 1;
}
}

.asset-skill-1 img,
.asset-skill-2 img,
.asset-skill-3 img,
.asset-skill-4 img,
.asset-skill-5 img,
.asset-skill-6 img {
  width: 100%; 
}


.signet1 {
    background-color: #422D28;
  color: #F5CBD7;
  padding: 10px 20px;
  width: fit-content;
  border-radius: 0 40px 40px 0;
  font-size: 1rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.signet2 {
    background-color: #422D28;
  color: #F5CBD7;
  padding: 10px 20px;
  width: fit-content;
  border: #f2b6c6 solid 2px;
  border-left: none;
  border-radius: 0 40px 40px 0;
  font-size: 1rem;
  font-weight: 600;
position: sticky;
  top: 0;
  z-index: 100;
}

 .siteweb {
    background-color: #F5CBD7;
    height: fit-content;
    min-height: 150vh;
    position: relative;
}

.siteweb h1 {
    font-family: 'Just Me Again Down Here', cursive;
    text-transform: uppercase;
    font-size: 6rem;
    font-weight: 100;
    text-align: center;
}

.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px; /* espace entre les deux projets */
        padding: 0 80px; /* marge sur les côtés */
}

.left_site {
    width: 45%;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.right_site {
    width: 50%; /* réduit la largeur de l'image */
    display: flex;
    justify-content: flex-end;
}

.right_site img {
    width: 100%;
    max-width: 550px; /* limite la taille max de l'image */
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

.réseaux {
    position: relative;
    width: 100%;
}

.bg-reseaux {
    width: 100%;
    display: block;
    object-fit: cover;
}

.reseaux-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.réseaux1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    align-items: center;
}

.video_reseaux {
    position: absolute;
    left: 15.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 18%;
    border-radius: 10px;
}

.video_reseaux video {
    width: 100%;
    border-radius: 12px;
}

.text_reseaux {
    position: absolute;
    left: 55%;
    top: 70%;
    width: 35%;
    padding-right: 3%;
    position: relative;
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    line-height: 1.5;
}

.text_reseaux::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #e24b7b;
    border-radius: 2px;
}

.luna {
    position: relative;
    width: 100%;
}

.bg-luna {
    width: 100%;
    display: block;
    object-fit: cover;
}

.luna-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bulle-container {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    text-align: center;
    cursor: pointer;
    width: 45vw;
    max-width: 700px;
}

.bulle {
    width: 70%;
    min-width: 200px;
    max-width: 1000px;
    transition: width 0.3s ease;
    animation: flotter 3s ease-in-out infinite;
    display: block;
    margin: 0 auto;
    transform-origin: center center;
    will-change: transform;
}

@keyframes flotter {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.survole {
    position: absolute;
    padding: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Judson', serif;
    font-weight: 100;
    font-style: italic;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
}

.text_luna {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    color: black;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: clamp(0.7rem, 1.1vw, 0.95rem);
}

@media (hover: hover) {
.bulle-container:hover .bulle {
    width: 45vw;
    max-width: 700px;
    animation: none;
}

.bulle-container:hover .survole {
    opacity: 0;
}

.bulle-container:hover .text_luna {
    opacity: 1;
}
}

.montage-wrapper {
    position: relative;
    background-color: #422D28;
}

.Montage {
    position: relative;
    color: #F5CBD7;
    height: auto; /* ← plus de 200vh fixe */
    padding-bottom: 50px;
}

.montage-site {
    display: flex;
    flex-wrap: wrap; /* ← responsive */
    gap: 20px;
    padding: 20px;
}

.right_montage_site,
.left_montage_site {
    flex: 1;
    min-width: 280px;
    position: relative;
    padding: 50px;

    display: flex;
    flex-direction: column;   /* garde le texte en colonne */
    justify-content: center;  /* centre verticalement */
    align-items: center;      /* centre horizontalement */
    text-align: center;       /* centre le texte */
}

.right_montage_site video,
.left_montage_site video {
    max-width: 100%;
    height: auto;
}

.tele {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    margin-top: -30px;
    max-width: 100%; /* ← plus de dépassement */
    height: auto;
    display: block;
}

.link_montage {
  text-decoration: underline;
  font-weight: bold;
  color: #f2b6c6;
  position: relative;
  left: 40%;
    transform: translate(-60%);
    text-align: center;
top: -40px;
}

.court_metrage {
    position: absolute;
    width: 450px;
    bottom: 13%;
    left: 32%;
    z-index: 0;
}

.pause2 {
    height: 50px;
    width: 50px;
    background-color: #f2b6c6;
    position: absolute;
    right: 85%;
    top: 6%;
    border-radius: 30px;
    border: solid #422D28 2px;
    font-size: 1rem;
}

.pause3 {
    height: 50px;
    width: 50px;
    background-color: #f2b6c6;
    position: absolute;
    top: 10%;
    right: 4%;
    border-radius: 30px;
    border: solid #422D28 2px;
    font-size: 1rem;
}

.Montage h2 {
    text-align: center;
    padding-bottom: 50px;
}

.Motiondesign {
    position: relative;
}

.motiondesign1 {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: fit-content;
    min-height: 50vh;
}

.colonne {
    flex: 1;
    min-width: 280px;
}

.colonne video {
    width: 200px;
    margin-left: 200px;
    border-radius: 100px;
    max-width: 100%; 
}

.colonne p {
    width: 500px;
    margin-right: 200px;
    text-align: center;
}


        .about-content {
            background: rgba(255, 255, 255, 0.6);
            padding: 50px;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            line-height: 1.8;
            font-size: 1rem;
            color: #555;
            width: 70%;
            margin: auto;
        }

        .audience-section {
            background: #422D28;
            padding: 100px 20px;
        }

        .audience-title {
            font-size: 3.5rem;
            font-weight: 700;
            color: #fff;
            text-align: center;
            margin-bottom: 60px;
            text-transform: uppercase;
            letter-spacing: 5px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            font-family: "Jost";
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .card {
            background: #f2b6c6;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
            transform: rotate(var(--card-rotation));
            transition: all 0.3s ease;
            border: 3px solid #f5f1e8;
        }

        .card:nth-child(1) { --card-rotation: -2deg; }
        .card:nth-child(2) { --card-rotation: 1deg; }
        .card:nth-child(3) { --card-rotation: -1deg; }

        .card:hover {
            transform: rotate(0deg) translateY(-10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .card-icon {
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #4a4a4a;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .card-text {
            color: #666;
            line-height: 1.6;
            font-size: 1rem;
        }

        footer {
            background: #2a2a2a;
            color: #fff;
            text-align: center;
            padding: 40px 20px;
            font-size: 0.875rem;
            letter-spacing: 2px;
        }

        .interview-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  gap: 40px;
}

.interview-media iframe {
  height: 385px; 
  border-radius: 15px;
}

.interview-content {
  width: 50%;
}

.interview-media {
  width: 50%;
  text-align: center;
}

.interview-media img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 15px;
}

.interview-link {
  text-decoration: underline;
  font-weight: bold;
  color: black;
}

.interview {
  background-color: pink;
}

.interview-section--reverse {
  text-align: left;
}

.interview-media video {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 70px;
}

.glass-button {
  padding: 15px 35px;
  border: 2px solid #f2b6c6;
  border-radius: 30px;
  background: rgba(255, 182, 193, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f2b6c6;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: rgba(255, 182, 193, 0.4);
  transform: translateY(-3px);
}

.colonne h2 {
  width: 500Px;
    margin-right: 200px;
    margin-top: 100px;
    text-align: center;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.popup-content {
  background: #fff;
  max-width: 600px;
  width: 90%;
margin-left: 30%;
margin-top: 5%;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  font-family: Jost, sans-serif;
  max-height: 80vh;
  overflow-y: auto;

}

.popup-content h2 {
  margin-top: 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.ML {
  text-decoration: none;
  color: white;
}

.ML:hover{
  text-decoration: underline;
}

.projet-video-wrapper {
  position: relative;
  width: 100%;
  height: 75vh;
}

.projet-video-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projet-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projet-cercle {
  position: absolute;
  bottom: -90px;
  right: 5%;
  width: clamp(220px, 28vw, 380px);
  height: clamp(220px, 28vw, 380px);
  background-color: #3b2020;
  border-radius: 50%;
  border: 6px solid pink;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
  color: white;
  z-index: 10;
}

.projet-auteur {
  font-size: clamp(10px, 1.2vw, 13px);
  margin: 0 0 4px;
  opacity: 0.85;
}

.projet-titre {
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: bold;
  margin: 0 0 6px;
}

.projet-technique {
  font-size: clamp(9px, 1vw, 12px);
  margin: 0;
  opacity: 0.85;
  line-height: 1.4;
}

.projet-description {
  font-size: clamp(9px, 1vw, 11px);
  margin: 8px 0 0;
  line-height: 1.5;
  opacity: 0.9;
}

.projet-texte {
  width: 100%;
  margin: 0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.8;
  background-color: #3b2020;
  color: white;
  padding: 120px 8% 60px;
  box-sizing: border-box;
}

.charte-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 35px 100px;
  max-width: 100%;
  margin: 0 auto;
  background-color: #f2b6c6;
}

.charte-section.reverse {
  flex-direction: row-reverse;
}

.charte-text {
  flex: 1;
  min-width: 0;
}

.charte-text h2 {
  margin-bottom: 1rem;
}

.charte-pdf {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-controls button {
  padding: 0.4rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

.pdf-controls button:hover {
  background: #f0f0f0;
}

.charte-pdf canvas {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.photo{
  background-color: #f2b6c6;
}

.photo-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  background-color: #3b2020;
  padding-bottom: 50px;
}

/* VIDEO */
.photo-video {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.photo-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16; /* format vertical */
  object-fit: cover;
  border-radius: 20px;
}

.photo-texte {
  flex: 1;
  min-width: 260px;
  max-width: 500px;
  display: flex;
  flex-direction: column;   /* 👈 IMPORTANT */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.photo-texte p {
  font-size: 16px;
  line-height: 1.6;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  font-size: 20px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: black;
  transition: width 0.3s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}


.skill-transform.active { transform: rotate(4deg) translateY(-8px); }
.skill-transform.active::after { opacity: 1; }

.bulle-container.active .bulle {
    width: 45vw;
    max-width: 700px;
    animation: none;
}
.bulle-container.active .survole   { opacity: 0; }
.bulle-container.active .text_luna { opacity: 1; }


/* ═══════════════════════════════════════════════════════════
   TABLETTE  (≤ 1100px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {

    html, body {
        overflow-x: hidden; /* fallback */
        overflow-x: clip;   /* évite tout scroll horizontal sans casser le sticky */
    }
    img, video, iframe, canvas { max-width: 100%; }

    .marron { padding: 0 var(--gutter); }
    .skills-section { padding: 0 var(--gutter); }
    .skills-col-left h1 { margin-left: 0; }
    .site { padding: 0 var(--gutter); }
    .montage-site { padding: 20px max(0px, calc(var(--gutter) - 50px)); }
    .charte-section { padding: 35px var(--gutter); }
    .projet-texte { padding: 120px var(--gutter) 60px; }
    .photo-bottom { padding: 0 var(--gutter) 50px; }
    .interview-section { padding: 30px var(--gutter); }
    .audience-section { padding: 100px var(--gutter); }
    .cards-container { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
    footer { padding: 40px var(--gutter); }

    /* Formation / certification : moins d'écart entre les deux */
    .marron { gap: 60px; }

    /* Motion design : on centre au lieu des marges fixes de 200px */
    .motiondesign1 {
        align-items: center;
        gap: 40px;
        padding: 40px var(--gutter);
    }
    .colonne video {
        display: block;
        height: auto;
        margin: 0 auto;
    }
    .colonne h2,
    .colonne p {
        width: auto;
        max-width: 500px;
        margin-right: 0;
    }
    .colonne h2 { margin-top: 0; }

    /* Mentions légales centrées */
    .popup-content { margin: 10vh auto 0; }

    /* Réseaux : texte lisible */
    .text_reseaux { font-size: 0.9rem; }

    /* Photographie : le cercle garde une taille lisible,
       il chevauche toujours le bas de la vidéo */
    .projet-video-wrapper {
        height: auto;
        background-color: #3b2020;
    }
    .projet-video-inner { height: 60vh; }
    .projet-cercle {
        position: relative;
        bottom: auto;
        right: auto;
        width: 360px;
        height: 360px;
        margin: -120px var(--gutter) 0 auto;
        padding: 36px 44px;
    }
    .projet-auteur      { font-size: 12px; }
    .projet-titre       { font-size: 16px; }
    .projet-technique   { font-size: 11px; }
    .projet-description { font-size: 10.5px; line-height: 1.45; }
    .projet-texte { padding-top: 40px; }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE  (≤ 768px)
   Même contenu, même ordre, mêmes animations :
   les colonnes passent simplement les unes sous les autres.
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Hero ───────────────────────────────────────── */
    .container:has(.hello) {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 100svh;
        padding: var(--section-y) var(--gutter) 0;
    }
    .hello,
    .droite {
        width: 100%;
        flex: none;
        margin-top: 0;
        padding: 0;
    }
    .hello { font-size: 1.4rem; }
    .lola  { font-size: 6.5rem; }
    .hello video { width: 80%; }
    #introVideo {
        width: 70%;
        max-width: 300px;
        margin-top: 24px;
    }

    /* ── Messages iMessage ──────────────────────────── */
    .message1 img { width: 110px; }
    .message2, .message3, .message4 { margin-left: calc(var(--gutter) - 8px); }
    .message5 { margin-left: var(--gutter); }
    .message2 img { width: 78%; max-width: 390px; }
    .message3 img { width: 92%; max-width: 530px; }
    .message4 img { width: 55%; max-width: 270px; }
    .message5 img { width: 110px; }

    .message5-popup {
        left: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        max-width: calc(100% - 2 * var(--gutter));
    }

    /* Dossier qui suit le scroll : trajet plus court en mobile */
    .folder-icon { width: min(300px, 46vw); }
    .container:not(:has(.hello)) { height: 20svh; }

    /* ── Welcome to my Portfolio ────────────────────── */
    .myportfolio {
        min-height: 0;
        padding: var(--section-y) var(--gutter);
    }
    .welcome { margin-bottom: 60px; }
    .dossier_container { width: min(400px, 75vw); }
    .portfolio {
        font-size: clamp(4.5rem, 22vw, 6.5rem);
        left: -8%;
    }
    .dossier_masque { top: 17%; border-radius: 12px; }
    .nom { font-size: 1.5rem; }

    /* ── Photo + étiquettes ─────────────────────────── */
    .photo2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "l1    l3"
            "photo photo"
            "l2    l4";
        align-items: center;
        min-height: 0;
        margin-bottom: 0;
        padding: var(--section-y) var(--gutter);
        row-gap: 0;
    }
    /* Photo recadrée sur le cadre dessiné, centrée */
    .p2-photo {
        grid-area: photo;
        justify-self: center;
        width: 100%;
        max-width: 420px;
        aspect-ratio: 3248 / 4500;
        object-fit: cover;
        object-position: 45.4% 50%;
    }
    .p2-label {
        position: relative;
        inset: auto !important;
        width: 100%;
        max-width: 220px;
        z-index: 6;
    }
    #p2-lbl1 { grid-area: l1; justify-self: start; margin-bottom: -6%; }
    #p2-lbl3 { grid-area: l3; justify-self: end;   margin-bottom: -6%; }
    #p2-lbl2 { grid-area: l2; justify-self: start; margin-top: -6%; }
    #p2-lbl4 { grid-area: l4; justify-self: end;   margin-top: -6%; }

    /* ── Formation / Certification ──────────────────── */
    .marron {
        flex-direction: column;
        justify-content: center;
        height: auto;
        gap: 40px;
        padding: var(--section-y) var(--gutter);
    }
    .right,
    .left {
        width: 100%;
        align-items: center;
    }
    .formation,
    .certification {
        width: 88%;
        margin: 0;
    }
    /* Pince posée sur le haut de la feuille, comme sur ordinateur */
    .épingle1,
    .épingle2 {
        width: 26%;
        margin: 0 0 -17% 0;
        position: relative;
        z-index: 2;
    }
    .épingle1 { margin-left: 12%; }   /* légèrement à droite, comme sur ordinateur */
    .épingle2 { margin-left: 4%; margin-bottom: -6%; }

    /* ── Mes skills ─────────────────────────────────── */
    .skills-section {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        gap: 40px;
        padding: var(--section-y) var(--gutter);
    }
    .skills-col-left,
    .skills-col-right { width: 100%; }
    .skills-col-left h1 { margin-bottom: 30px; }
    .skills-col-left .mes    { font-size: 3.5rem; }
    .skills-col-left .skills { font-size: 4.5rem; }
    .tampons-grid {
        gap: 28px 12px;
        align-items: center;
        justify-items: center;
    }
    .skills-col-left img { margin-left: 0; }
    .asset-skill-1, .asset-skill-2, .asset-skill-3,
    .asset-skill-4, .asset-skill-5, .asset-skill-6 {
        margin: 0;
    }
    .asset-skill-1 { width: 62%; }
    .asset-skill-2 { width: 100%; }
    .asset-skill-3 { width: 92%; }
    .asset-skill-4 { width: 100%; }
    .asset-skill-5 { width: 82%; }
    .asset-skill-6 { width: 72%; }
    .skill-transform::after {
        font-size: 0.7rem;
        left: 50%;
        top: 100%;
        z-index: 5;
        background: #F8F8F8;
        padding: 2px 4px;
        border-radius: 4px;
    }
    /* Libellés des colonnes de bord alignés vers l'intérieur */
    .asset-skill-1::after, .asset-skill-4::after {
        left: 0;
        transform: rotate(-4deg);
        text-align: left;
    }
    .asset-skill-3::after, .asset-skill-6::after {
        left: auto;
        right: 0;
        transform: rotate(-4deg);
        text-align: right;
    }
    .asset-passport { margin: 0; width: 100%; }

    /* ── Projets site web ───────────────────────────── */
    .siteweb {
        min-height: 0;
        padding-bottom: var(--section-y);
    }
    .siteweb h1 {
        font-size: 3.8rem;
        padding: 10px var(--gutter) 30px;
    }
    .site {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 0;
    }
    .site + .site { margin-top: 56px; }
    .left_site,
    .right_site { width: 100%; }
    .right_site {
        order: -1;            /* image toujours au-dessus du texte */
        justify-content: center;
    }
    .left_site { font-size: 0.95rem; }
    .left_site a { word-break: break-all; }

    /* ── Réseaux sociaux ───────────────────────────────
       On zoome dans le visuel Instagram : la vidéo reste
       placée dans le cadre, le texte passe en dessous.   */
    .réseaux {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden; /* fallback */
        overflow: clip;   /* clip ne casse pas le position: sticky du tag */
        background: #e8b1c3;
    }
    .reseaux-content,
    .réseaux1 { display: contents; }
    .bg-reseaux {
        grid-area: 1 / 1;
        width: 360%;
        max-width: none;
        margin-left: -38.9%;
    }
    .réseaux .signet1 {
        grid-column: 1;
        grid-row: 1 / span 2;   /* le tag reste collé sur toute la section */
        align-self: start;
        z-index: 3;
    }
    .video_reseaux {
        grid-area: 1 / 1;
        position: relative;
        left: 16.9%;
        top: auto;
        transform: none;
        align-self: center;
        width: 64.8%;
    }
    .text_reseaux {
        grid-area: 2 / 1;
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        margin: 0 var(--gutter) var(--section-y);
        padding-right: 16px;
        font-size: 0.95rem;
    }

    /* ── Luna Yoga ─────────────────────────────────────
       Le visuel est recadré sur le profil Instagram,
       la bulle passe dessous (tap = survol).            */
    .luna {
        overflow: hidden;
        overflow: clip;
        background: #f6ebee;
        padding-bottom: var(--section-y);
    }
    .bg-luna {
        width: 292%;
        max-width: none;
        margin-left: -85.8%;
    }
    .luna-content { position: static; }
    .bulle-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: min(100%, 360px);
        margin: 10px auto 0;
    }
    .bulle {
        width: 72%;
        min-width: 0;
    }
    .bulle-container.active .bulle {
        width: 100%;
        max-width: none;
    }
    .survole { font-size: 0.95rem; width: 70%; }
    .text_luna {
        width: 72%;
        padding: 0;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    /* ── Montage ────────────────────────────────────── */
    .Montage { padding-bottom: var(--section-y); }
    .montage-site {
        flex-direction: column;
        gap: 20px;
        padding: 20px var(--gutter);
    }
    .right_montage_site,
    .left_montage_site {
        min-width: 0;
        width: 100%;
        padding: 0;
    }
    .right_montage_site { order: -1; }   /* vidéo au-dessus du texte */
    .right_montage_site video { width: 100%; border-radius: 8px; }
    .pause2,
    .pause3 {
        width: 40px;
        height: 40px;
        top: 10px;
        right: auto;
        left: 10px;
        z-index: 2;
    }
    .pause3 { left: auto; right: 10px; }
    .tele {
        width: calc(100% - 2 * var(--gutter));
        margin-top: 20px;
    }
    .Montage h2 {
        padding: 20px var(--gutter) 10px;
        font-size: 1.2rem;
    }
    .link_montage {
        display: block;
        left: 0;
        top: 0;
        transform: none;
        padding: 0 var(--gutter);
        word-break: break-all;
    }

    /* ── Motion design ──────────────────────────────── */
    .motiondesign1 {
        flex-direction: column;
        min-height: 0;
        gap: 24px;
        padding: 40px var(--gutter) var(--section-y);
    }
    .colonne {
        min-width: 0;
        width: 100%;
    }
    .colonne video { width: 160px; }
    .colonne h2,
    .colonne p { max-width: none; }
    .colonne h2 { margin-bottom: 10px; }

    /* ── Chartes graphiques ─────────────────────────── */
    .charte-section,
    .charte-section.reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 40px var(--gutter);
    }
    .charte-pdf { order: -1; }   /* PDF au-dessus du texte */
    .charte-section:last-child { padding-bottom: var(--section-y); }

    /* ── Photographie ───────────────────────────────── */
    .projet-video-wrapper {
        height: auto;
        background-color: #3b2020;
    }
    .projet-video-inner { aspect-ratio: 4 / 3; height: auto; }
    .projet-cercle {
        position: relative;
        bottom: auto;
        right: auto;
        width: min(100%, 360px);
        height: auto;
        aspect-ratio: 1;
        margin: -70px auto 0;
        padding: 36px 44px;
    }
    .projet-auteur      { font-size: 12px; }
    .projet-titre       { font-size: 16px; }
    .projet-technique   { font-size: 11px; }
    .projet-description { font-size: 10.5px; line-height: 1.45; }
    .projet-texte {
        padding: 40px var(--gutter);
        font-size: 15px;
    }
    .photo-bottom {
        flex-direction: column;
        gap: 40px;
        padding: 0 var(--gutter) var(--section-y);
    }
    .photo-video,
    .photo-texte {
        min-width: 0;
        width: 100%;
    }
    .photo-video { max-width: 340px; }
    .photo-texte { max-width: none; }

    /* ── Interview ──────────────────────────────────── */
    .interview { padding-bottom: var(--section-y); }
    .interview-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 30px var(--gutter);
    }
    .interview-content,
    .interview-media { width: 100%; }
    .interview-section .interview-media { order: -1; }   /* vidéo au-dessus */
    .interview-media iframe {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .interview-title { margin-bottom: 8px; }

    /* ── Ils parlent de moi ─────────────────────────── */
    .audience-section { padding: var(--section-y) var(--gutter); }
    .audience-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 40px;
    }
    .cards-container { gap: 28px; }
    .card { padding: 28px 24px; }
    .card-icon { font-size: 2.2rem; margin-bottom: 12px; }
    .buttons-wrapper {
        flex-direction: column;
        gap: 16px;
        margin-top: 50px;
    }
    .glass-button {
        width: 220px;
        text-align: center;
    }

    /* ── Texte ferré à gauche ────────────────────────
       (titres d'affiche, bulle, cercle, boutons et footer restent centrés) */
    .right_montage_site,
    .left_montage_site,
    .photo-texte {
        align-items: flex-start;
        text-align: left;
    }
    .Montage h2,
    .colonne h2,
    .colonne p,
    .interview-section--reverse,
    .charte-text {
        text-align: left;
    }
    .photo-texte br:first-of-type { display: none; } /* évite un trou sous le titre */
    .photo-texte h2 { margin-bottom: 12px; }

    /* ── Footer & mentions légales ──────────────────── */
    footer { padding: 32px var(--gutter); }
    .popup { overflow-y: auto; }
    .popup-content {
        width: calc(100% - 2 * var(--gutter));
        margin: 6vh auto;
        padding: 30px 22px;
    }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE : ALIGNEMENTS
   - Textes de lecture (paragraphes + leur titre) : ferrés à gauche
   - Titres d'affiche, images, vidéos, boutons : centrés
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Blocs de texte ferrés à gauche */
    .left_site,
    .text_reseaux,
    .left_montage_site,
    .right_montage_site p,
    .Montage h2,
    .link_montage,
    .colonne h2,
    .colonne p,
    .charte-text,
    .projet-texte,
    .photo-texte,
    .interview-content,
    .card,
    .popup-content {
        text-align: left;
    }
    .left_montage_site,
    .photo-texte { align-items: flex-start; }

    /* La colonne vidéo du montage reste centrée */
    .right_montage_site { align-items: center; }

    /* Lien du court-métrage sous son titre, sur la même marge */
    .link_montage { display: block; }

    /* Titres d'affiche et éléments visuels centrés */
    .hello,
    .droite,
    .myportfolio,
    .siteweb h1,
    .audience-title,
    footer {
        text-align: center;
    }
    /* Logo Konbini : même forme de pilule que sur ordinateur (logo non rogné) */
    .colonne video {
        margin: 0 auto;
        width: 160px;
        height: 288px;
    }
    .charte-pdf { align-items: center; }

    /* Bulle Luna : texte mieux réparti, et texte ouvert contenu dans la bulle */
    .survole { width: 82%; text-wrap: balance; }
    .bulle-container.active .bulle {
        width: 122%;
        margin-left: -11%;
    }
    .text_luna {
        width: 66%;
        font-size: 0.74rem;
        line-height: 1.4;
    }
    .photo-bottom { align-items: center; }
    .buttons-wrapper { align-items: center; }
}
