@media (max-width: 700px) {
  .close-lightbox-btn {
    top: 10px !important;
    bottom: auto !important;
    right: 10px !important;
    left: auto !important;
  }
}
.close-lightbox-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 80px;
  height: 80px;
  background: #fff;
  color: #23272b;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 3px solid #e0e0e0;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  outline: none;
  border-style: solid;
}
/* CLAPET CINÉMA ACTION (levé, effet 3D) */

.clapet-action-container {
  max-width: 560px;
  margin: 48px auto 36px auto;
  perspective: 1200px;
}
.clapet-action-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: rotateX(32deg) translateY(-18px);
  transform-origin: bottom center;
  z-index: 2;
  position: relative;
}
.clapet-action-bar {
  width: 90%;
  height: 14px;
  background: repeating-linear-gradient(135deg, #fff 0 16px, #23272b 16px 32px);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.clapet-action-body {
  background: #23272b;
  border-radius: 0 0 18px 18px / 0 0 18px 18px;
  box-shadow: 0 6px 32px rgba(42,42,42,0.13);
  padding: 28px 28px 18px 28px;
  position: relative;
  z-index: 1;
  min-height: 340px;
  border: none;
}
.clapet-action-body h2 {
  color: #fff;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1.18rem;
  margin-bottom: 18px;
  text-align: left;
}
.clapet-action-video {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.clapet-action-video iframe {
  width: 100%;
  height: 315px;
  border: none;
  display: block;
}
@media (max-width: 700px) {
  .clapet-action-container {
    margin: 18px 2vw 18px 2vw;
    max-width: 99vw;
  }
  .clapet-action-body {
    padding: 12px 6px 12px 6px;
    min-height: 0;
  }
  .clapet-action-top {
    transform: rotateX(24deg) translateY(-8px);
  }
  .clapet-action-bar {
    height: 9px;
  }
  .clapet-action-body h2 {
    font-size: 1.01rem;
  }
  .clapet-action-video iframe {
    height: 180px;
  }
}
/* Conteneur audio extrait court-métrage */
.audio-extrait-container {
  background: #23272b;
  border-radius: 14px;
  padding: 18px 18px 12px 18px;
  margin: 12px 0 0 0;
  box-shadow: 0 2px 12px rgba(42,42,42,0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Texture hachurée diagonale */
  position: relative;
  overflow: hidden;
}
.audio-extrait-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 12px);
}
.audio-extrait-container audio {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.audio-extrait-container audio {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 8px;
}
.extrait-highlight {
  background: #7A9BB8;
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px 2px 10px;
  font-weight: 600;
  margin-left: 6px;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(122,155,184,0.10);
}
@media (max-width: 700px) {
  .extrait-highlight {
    font-size: 0.98em;
    padding: 2px 6px 2px 6px;
  }
}
.masking-tape {
  width: 110px;
  height: 28px;
  background: repeating-linear-gradient(135deg, #e0d7c3 0 12px, #f7f3e9 12px 24px);
  border-radius: 12px 18px 8px 18px / 10px 18px 12px 18px;
  box-shadow: 0 2px 8px rgba(122,155,184,0.10);
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%) rotate(-4deg);
  z-index: 2;
  border: 1.5px solid #e5e0d6;
  opacity: 0.92;
}
.postit-court-metrage {
  position: relative;
}
@media (max-width: 700px) {
  .masking-tape {
    width: 70px;
    height: 18px;
    top: -10px;
  }
}
/* Bloc court-métrage style post-it créatif */
.postit-court-metrage {
  background: #f9f7f3;
  border: none;
  border-radius: 18px 38px 18px 38px / 28px 18px 38px 18px;
  box-shadow: 0 4px 18px rgba(122,155,184,0.10);
  padding: 32px 28px 24px 28px;
  margin: 40px auto 32px auto;
  max-width: 480px;
  text-align: left;
  font-family: 'Indie Flower', cursive, system-ui, -apple-system;
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}
.postit-court-metrage h2 {
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1.25rem;
  color: #2a2a2a;
  margin-bottom: 10px;
  text-align: left;
}
.postit-court-metrage p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.6;
}
.postit-court-metrage audio {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #f7f3e9;
  box-shadow: 0 2px 8px rgba(200,149,107,0.08);
  margin-top: 10px;
}
@media (max-width: 700px) {
  .postit-court-metrage {
    padding: 14px 6px 14px 6px;
    margin: 18px 2vw 18px 2vw;
    max-width: 99vw;
    font-size: 0.98rem;
  }
  .postit-court-metrage h2 {
    font-size: 1.02rem;
  }
  .postit-court-metrage p {
    font-size: 0.98rem;
  }
}
/* Bloc court-métrage DA musicien */
.bloc-musicien {
  background: linear-gradient(135deg, #fffbe9 70%, #B8857A 100%);
  border: 2.5px solid #C8956B;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(200,149,107,0.13), 0 2px 0 #7A9BB8 inset;
  padding: 38px 38px 28px 38px;
  margin: 48px auto 36px auto;
  max-width: 540px;
  text-align: left;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  position: relative;
  overflow: hidden;
}
.bandeau-musicien {
  background: linear-gradient(90deg, #C8956B 60%, #7A9BB8 100%);
  color: #fff;
  font-family: 'Portmanteau', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 24px 10px 18px;
  border-radius: 16px 16px 0 0;
  margin: -38px -38px 24px -38px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(200,149,107,0.10);
}
.icon-musicien {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10));
}
.titre-bandeau-musicien {
  font-size: 1.1em;
  font-family: 'Portmanteau', serif;
  letter-spacing: 1.5px;
}
.titre-musicien {
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1.35rem;
  color: #2a2a2a;
  margin-bottom: 10px;
  text-align: left;
}
.highlight-titre-musicien {
  background: linear-gradient(90deg, #7A9BB8 0%, #fffbe9 100%);
  color: #C8956B;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Portmanteau', serif;
}
.desc-musicien {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.6;
}
.audio-musicien {
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 0;
  display: block;
}
.audio-musicien audio {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #f7f3e9;
  box-shadow: 0 2px 8px rgba(200,149,107,0.08);
}
@media (max-width: 700px) {
  .bloc-musicien {
    padding: 16px 6px 16px 6px;
    margin: 18px 2vw 18px 2vw;
    max-width: 99vw;
    font-size: 0.98rem;
  }
  .bandeau-musicien {
    font-size: 0.98rem;
    padding: 8px 10px 8px 10px;
    margin: -16px -6px 18px -6px;
    border-radius: 12px 12px 0 0;
  }
  .titre-musicien {
    font-size: 1.02rem;
  }
  .desc-musicien {
    font-size: 0.98rem;
  }
  .audio-musicien {
    max-width: 100%;
  }
}
/* Bloc court-métrage DA créatif */
.bloc-court-metrage-da {
  background: #fffbe9;
  border: 2.5px solid #7A9BB8;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(122,155,184,0.13), 0 2px 0 #C8956B inset;
  padding: 38px 38px 28px 38px;
  margin: 48px auto 36px auto;
  max-width: 540px;
  text-align: left;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  position: relative;
  overflow: hidden;
}
.bandeau-court-metrage {
  background: linear-gradient(90deg, #7A9BB8 60%, #C8956B 100%);
  color: #fff;
  font-family: 'Portmanteau', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 24px 10px 18px;
  border-radius: 16px 16px 0 0;
  margin: -38px -38px 24px -38px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(122,155,184,0.10);
}
.icon-film {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10));
}
.titre-bandeau {
  font-size: 1.1em;
  font-family: 'Portmanteau', serif;
  letter-spacing: 1.5px;
}
.bloc-court-metrage-da h2 {
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1.35rem;
  color: #2a2a2a;
  margin-bottom: 10px;
  text-align: left;
}
.highlight-titre {
  background: linear-gradient(90deg, #C8956B 0%, #fffbe9 100%);
  color: #7A9BB8;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Portmanteau', serif;
}
.desc-court-metrage {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.6;
}
.audio-court-metrage {
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 0;
  display: block;
}
.audio-court-metrage audio {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #f7f3e9;
  box-shadow: 0 2px 8px rgba(122,155,184,0.08);
}
@media (max-width: 700px) {
  .bloc-court-metrage-da {
    padding: 16px 6px 16px 6px;
    margin: 18px 2vw 18px 2vw;
    max-width: 99vw;
    font-size: 0.98rem;
  }
  .bandeau-court-metrage {
    font-size: 0.98rem;
    padding: 8px 10px 8px 10px;
    margin: -16px -6px 18px -6px;
    border-radius: 12px 12px 0 0;
  }
  .bloc-court-metrage-da h2 {
    font-size: 1.02rem;
  }
  .desc-court-metrage {
    font-size: 0.98rem;
  }
  .audio-court-metrage {
    max-width: 100%;
  }
}
/* Bloc court-métrage DA + responsive */
.bloc-court-metrage {
  background: #fffbe9;
  border: 2px solid #7A9BB8;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(122,155,184,0.10), 0 1.5px 0 #C8956B inset;
  padding: 32px 36px 28px 36px;
  margin: 40px auto 32px auto;
  max-width: 540px;
  text-align: left;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
}
.bloc-court-metrage h2 {
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-size: 1.5rem;
  color: #2a2a2a;
  margin-bottom: 12px;
  text-align: left;
}
.bloc-court-metrage p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 18px;
}
.bloc-court-metrage audio {
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 0;
  display: block;
}
@media (max-width: 700px) {
  .bloc-court-metrage {
    padding: 18px 10px 18px 10px;
    margin: 24px 8px 24px 8px;
    max-width: 98vw;
    font-size: 1rem;
  }
  .bloc-court-metrage h2 {
    font-size: 1.1rem;
  }
  .bloc-court-metrage p {
    font-size: 1rem;
  }
  .bloc-court-metrage audio {
    max-width: 100%;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding:0;

}/* Police Portmanteau (locale) */
@font-face {
  font-family: 'Portmanteau';
  src: url('fonts/portmanteau/Portmanteau-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Police Trajan Pro (locale) */
@font-face {
  font-family: 'Trajan Pro';
  src: url('fonts/trajan-pro/TrajanPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trajan Pro';
  src: url('fonts/trajan-pro/TrajanPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Police Give You Glory (locale) */
@font-face {
  font-family: 'Give You Glory';
  src: url('fonts/Give_You_Glory/GiveYouGlory-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


body {
  background: url(textures/collagebackground.jpg) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  text-align: center !important;
  overflow-x: hidden;
}

/* Titres h1 : Portmanteau pour "Photomontage" et "Sites web" */
h1 {
  text-align: center;
  font-size: 4rem;
  margin-top: 2rem;
  color: #333;
  font-family: 'Portmanteau', serif, system-ui, -apple-system;
  font-weight: 400;
}

/* Titre h2 : Trajan Pro pour la description */
h2 {
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-weight: 400;
  text-align: center;
  font-size: 1.8rem;
  color: #333;
  margin: 2rem 0;
}

/* Titre h3 : Trajan Pro pour "Déplacez mes projets..." */
h3 {
  text-align: center;
  font-size: 2rem;
  margin-top: 2rem;
  color: #333;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
  font-weight: 400;
}

.caption {
  font-size: 2rem;
  margin-top: 0.5rem;
  color: #666;
}

.polaroid {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.2);
}
.polaroid > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 350px;      /* réduit de 520px à 350px */
  object-fit: contain;
}
.item {
  width: 100%;
  display: block;          /* inline-block + pourcent posait problème */
  margin-top: 2rem;
}

.item:hover .polaroid:before {
  content: "";
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 90%;
  width: 90%;
  bottom: 0%;
  right: 5%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.35s;
}

.bouton-retour {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px 0;
  padding: 14px 36px 18px 24px;
  background: #f7f3e9;
  box-shadow: 0 12px 32px -8px #aaa, 0 2px 0 #e0e0e0 inset;
  color: #444;
  letter-spacing: 1px;

  border: none;
  border-radius: 0 32px 0 32px / 0 40px 0 40px;

  font-family: "Indie Flower", "Comic Sans MS", cursive, sans-serif;
  font-size: 1.2em;

  text-align: left;
  position: absolute;
  top: 8px;
  left: 32px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  z-index: 10;

  /* Effet de bord déchiré en bas */
  clip-path: polygon(
    0% 4%,
    3% 0%,
    7% 3%,
    12% 0%,
    18% 4%,
    23% 0%,
    28% 3%,
    33% 0%,
    38% 4%,
    43% 0%,
    48% 3%,
    53% 0%,
    58% 4%,
    63% 0%,
    68% 3%,
    73% 0%,
    78% 4%,
    83% 0%,
    88% 3%,
    93% 0%,
    97% 4%,
    100% 0%,
    100% 8%,
    97% 12%,
    100% 18%,
    97% 23%,
    100% 28%,
    97% 33%,
    100% 38%,
    97% 43%,
    100% 48%,
    97% 53%,
    100% 58%,
    97% 63%,
    100% 68%,
    97% 73%,
    100% 78%,
    97% 83%,
    100% 88%,
    97% 93%,
    100% 97%,
    96% 100%,
    92% 97%,
    88% 100%,
    84% 97%,
    80% 100%,
    76% 97%,
    72% 100%,
    68% 97%,
    64% 100%,
    60% 97%,
    56% 100%,
    52% 97%,
    48% 100%,
    44% 97%,
    40% 100%,
    36% 97%,
    32% 100%,
    28% 97%,
    24% 100%,
    20% 97%,
    16% 100%,
    12% 97%,
    8% 100%,
    4% 97%,
    0% 100%,
    0% 92%,
    3% 88%,
    0% 84%,
    3% 80%,
    0% 76%,
    3% 72%,
    0% 68%,
    3% 64%,
    0% 60%,
    3% 56%,
    0% 52%,
    3% 48%,
    0% 44%,
    3% 40%,
    0% 36%,
    3% 32%,
    0% 28%,
    3% 24%,
    0% 20%,
    3% 16%,
    0% 12%,
    3% 8%
  );
}

.fleche-retour {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s;
}

body {
  height: 100%;
  cursor: url(curseur-perso.png) 8 8, auto;
}

.bordure-1 {
  width: 100%;            /* utiliser 100% pour éviter le scroll horizontal */
  height: min(1600px, 120vh); /* espace de drag plus grand */
  position: relative;
  overflow: visible;       /* permettre ombres et rotations visibles */
  touch-action: none;      /* évite le scrolling pendant le drag sur mobile */
  padding-bottom: 40px;    /* un peu d'air en bas pour le drag */
}

.card {
  position: absolute;
  width: 420px;
  height: auto;            /* was: 100% */
  transform: translate3d(0, 0, 0);
}

/* Cartes au format paysage réduites */
.card.landscape { width: 450px; }
.card.landscape .polaroid > img { max-height: 400px; }

/* Cartes portrait : optimisation de l'espace blanc */
.card:not(.landscape) { width: 350px; }
.card:not(.landscape) .polaroid { 
  padding: 0.8rem; /* Réduit le padding de 1rem à 0.8rem */
}
.card:not(.landscape) .polaroid > img { 
  max-height: 400px; /* Augmente légèrement la hauteur max */
  object-fit: contain; /* Affiche l'image entière sans coupure */
}

/* Transitions : animer left/top quand la carte n'est pas en train d'être draggée */
.bordure-1 .card {
  transition: left 0.18s ease, top 0.18s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.card.dragging { transition: none; }

.card:focus {
  outline: none;
  box-shadow: none;
}

/* Déplacement plus naturel */
.card { cursor: grab; }
.card.dragging { cursor: grabbing; z-index: 999; }

/* (optionnel) Limiter le texte sélectionné pendant le drag */
.bordure-1, .card {
  user-select: none;
  -webkit-user-select: none;
}

/* ========================================
   RESPONSIVE DESIGN
   Parfait au-dessus de 600px
   Version mobile à partir de 900px et moins
   ======================================== */

/* Desktop et tablette (901px et plus) - Version parfaite */
@media (min-width: 901px) {
  body {
    padding: 0;
  }
  
  .bouton-retour {
    position: absolute;
    top: 8px;
    left: 32px;
    z-index: 10;
  }
  
  h1 {
    margin-top: 100px; /* Espace pour le bouton retour */
    font-size: 4rem;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  .card { 
    width: auto; 
  }
  
  .bordure-1 { 
    height: auto; 
  }
}

/* Tablette (601px à 900px) - Responsive parfait */
@media (min-width: 601px) and (max-width: 900px) {
  body {
    padding: 10px;
    background: url(textures/collagebackground.jpg) no-repeat center top fixed;
    background-size: cover;
    min-height: 100vh;
  }
  
  .bouton-retour {
    position: absolute;
    top: 8px;
    left: 20px;
    z-index: 10;
    padding: 12px 28px 16px 20px;
    font-size: 1.1em;
  }
  
  h1 {
    margin-top: 80px;
    font-size: 3.5rem;
  }
  
  h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .card { 
    width: 85vw; 
    margin: 15px;
  }
  
  .bordure-1 { 
    height: auto;
    padding: 20px;
  }
}

/* Mobile (600px et moins) - Version mobile */
@media (max-width: 600px) {
  body {
    padding: 15px 10px;
    text-align: center;
    background: url(textures/collagebackground.jpg) no-repeat center top fixed;
    background-size: cover;
    min-height: 100vh;
  }
  
  .bouton-retour {
    position: relative;
    display: block;
    margin: 20px auto;
    padding: 10px 24px 14px 18px;
    font-size: 1em;
    left: auto;
    top: auto;
  }
  
  h1 {
    margin-top: 20px;
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .card { 
    width: 95vw;
    margin: 10px auto;
  }
  
  .bordure-1 { 
    height: auto;
    padding: 15px;
  }
  
  .polaroid {
    padding: 0.8rem;
  }
  
  .polaroid > img {
    max-height: 250px;
  }
}




/* Section d'animation : CSS valide (remplacement du SCSS imbriqué) */
.animate {
  margin: 20px auto;
  padding-top: 4rem;
  background-color: #eee;
  transition: filter 0.5s cubic-bezier(0.17, 0.67, 0.78, 0.72), max-width 0.5s cubic-bezier(0.17, 0.67, 0.78, 0.72);
  filter: grayscale(1);
  overflow: hidden;
  max-width: 100%;
}
.animate.active {
  max-width: 1680px;
  filter: grayscale(0);
}
.animate img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  transform: none;
}

/* Règles pour les sections .row/.container (restauration du comportement original)
   Le conteneur change de max-width et passe de grayscale à couleur quand il reçoit
   la classe .active. L'image est positionnée en absolu, très grande, et centrée
   avec transform: translate(-50%,-50%) pour donner l'effet de zoom lors de l'agrandissement. */
.row {
  width: 100%;
  margin: 200px 0;
}

.container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  height: 720px;
  margin: 20px auto;
  background-color: #eee;
  transition: filter 0.5s cubic-bezier(0.17, 0.67, 0.78, 0.72), max-width 0.5s cubic-bezier(0.17, 0.67, 0.78, 0.72);
  filter: grayscale(1);
  overflow: hidden;
}

.container.active {
  max-width: 1680px;
  filter: grayscale(0);
}

.container img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1440px;
  transform: translate(-50%, -50%);
}

/* Bouton "Voir plus" sur les cartes */
.view-project-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.card:hover .view-project-btn {
  opacity: 1;
  transform: translateY(0);
}

.view-project-btn:hover {
  background: rgba(0, 0, 0, 1);
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  width: 900px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-body {
  display: flex;
  height: 100%;
  min-height: 500px;
}

.lightbox-image-container {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-info {
  flex: 1;
  padding: 2.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-info h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: 'Portmanteau', serif, system-ui, -apple-system;
  color: #FFD700;
}

.lightbox-info p {
  margin: 0 0 2rem 0;
  line-height: 1.8;
  opacity: 0.95;
  font-size: 1.1rem;
}

.software-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 600;
  font-family: 'Trajan Pro', serif, system-ui, -apple-system;
}

.software-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.software-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.software-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
}

/* Responsive lightbox */
@media (max-width: 900px) {
  .lightbox-content {
    width: 95vw;
    height: 90vh;
    border-radius: 15px;
  }
  
  .lightbox-body {
    flex-direction: column;
    min-height: auto;
  }
  
  .lightbox-image-container {
    flex: none;
    padding: 1.5rem;
  }
  
  .lightbox-image {
    max-height: 300px;
  }
  
  .lightbox-info {
    flex: none;
    padding: 1.5rem 2rem 2rem;
  }
  
  .lightbox-info h2 {
    font-size: 1.5rem;
  }
  
  .lightbox-info p {
    font-size: 1rem;
  }
  
  .lightbox-close {
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

/* ========================================
   STYLES SPÉCIFIQUES POUR LA PAGE PHP
   ======================================== */

/* Galerie générale */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.gallery a:hover {
    transform: scale(1.05);
}

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Galerie PHP avec style polaroid */
.php-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.php-gallery .projet-item {
    /* Style polaroid pour PHP */
    background: #fff;
    padding: 15px 15px 5px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        0 6px 20px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

.php-gallery .projet-item:nth-child(even) {
    transform: rotate(2deg);
}

.php-gallery .projet-item:nth-child(3n) {
    transform: rotate(-1deg);
}

.php-gallery .projet-item:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 10;
}

.php-gallery .projet-item img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
}

.php-gallery .projet-title {
    padding: 10px 5px 15px;
    font-family: 'Indie Flower', cursive;
    font-size: 1rem;
    color: #444;
    text-align: center;
    background: white;
    margin: 0;
    writing-mode: horizontal-tb;
}

.php-gallery .projet-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Effet scotch pour plus de réalisme */
.php-gallery .projet-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Variantes d'angles pour le scotch */
.php-gallery .projet-item:nth-child(2n)::before {
    transform: translateX(-50%) rotate(5deg);
}

.php-gallery .projet-item:nth-child(3n)::before {
    transform: translateX(-50%) rotate(-5deg);
}

/* ========================================
   MACBOOK INSTRUCTION TEXT
   ======================================== */

.macbook-instruction {
  font-family: 'Give You Glory', cursive, ui-rounded, system-ui, -apple-system;
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.5;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

/* MacBook instruction - Desktop seulement */
@media (min-width: 901px) {
  .macbook-instruction {
    position: absolute;
    left: 2%;
    transform: translateY(80px);
    text-align: left;
    z-index: 10;
  }
  
  .macbook-instruction::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 150px;
    height: 3px;
    background-color: #666;
  }
  
  .macbook-instruction::before {
    content: '';
    position: absolute;
    bottom: -21px;
    left: calc(50% + 150px);
    width: 0;
    height: 0;
    border-left: 12px solid #666;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
}

/* Pour les écrans en dessous de 1700px : texte centré sous le H1, sans flèche */
@media (max-width: 1699px) {
  .macbook-instruction {
    position: static;
    transform: none;
    text-align: center;
    margin: 20px auto;
    left: auto;
  }
  
  .macbook-instruction::before,
  .macbook-instruction::after {
    display: none;
  }
}

/* ========================================
   MACBOOK DISPLAY
   ======================================== */

.macbook {
  padding-top: 20px;
  padding-bottom: 20px;
  margin: 0 auto;
  max-width: 800px;

}

.screen {
  background: #000;
  border-radius: 3% 3% 0.5% 0.5% / 5%;
  margin: 0 auto;
  /* for aspect ratio */
  position: relative;
  width: 80%;
}

.screen:before {
  border: 2px solid #cacacc;
  border-radius: 3% 3% 0.5% 0.5% / 5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8) inset, 0 0 1px 2px rgba(255, 255, 255, 0.3) inset;
  content: "";
  display: block;
  /* for aspect ratio ~67:100 */
  padding-top: 67%;
}

.screen:after {
  content: "";
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  position: absolute;
  bottom: 0.75%;
  left: 0.5%;
  padding-top: 1%;
  width: 99%;
}

.viewport {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  margin: 4.3% 3.2%;
  background: #333;
  cursor: pointer;
}

/* Images dans le viewport */
.viewport-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.viewport-image.active {
  display: block;
}

/* Sur mobile : image scrollable en taille réelle */
@media (max-width: 900px) {
  .viewport-image {
    position: static;
    height: auto;
    min-height: 100%;
  }
}

.base {
  /* for aspect ratio */
  position: relative;
  width: 100%;
}

.base:before {
  content: "";
  display: block;
  /* for aspect ratio ~33:1000*/
  padding-top: 3.3%;
  /* stylin */
  background: linear-gradient(#eaeced, #edeef0 55%, #fff 55%, #8a8b8f 56%, #999ba0 61%, #4B4B4F 84%, #262627 89%, rgba(0, 0, 0, .01) 98%);
  border-radius: 0 0 10% 10%/ 0 0 50% 50%;
}



.notch {
  background: #ddd;
  border-radius: 0 0 7% 7% / 0 0 95% 95%;
  box-shadow: -5px -1px 3px rgba(0, 0, 0, 0.2) inset, 5px -1px 3px rgba(0, 0, 0, 0.2) inset;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3.5%;
  z-index: 2;
  /* for aspect ratio */
  position: relative;
  width: 14%;
}

.notch:before {
  content: "";
  display: block;
  /* for aspect ratio ~1:10 */
  padding-top: 10%;
}

/* Screenshot Hover Scroll Additions */
.macbook .viewport {
  transition: background-position 5s ease-in-out;
  background-position: 0 0;
  background-size: 100% auto;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar visible sur mobile */
@media (max-width: 900px) {
  .macbook .viewport {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Style de la scrollbar pour webkit (Chrome, Safari) */
  .macbook .viewport::-webkit-scrollbar {
    width: 8px;
  }
  
  .macbook .viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  
  .macbook .viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
  }
  
  .macbook .viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }
}

.macbook:hover .viewport {
  background-position: 0 100%;
}

.macbook .viewport:after {
  background: radial-gradient(circle at right bottom, transparent 75%, rgba(255, 255, 255, 0.05) 75%, transparent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

html,
body {
  height: 100%;
  cursor: url(curseur-perso.png) 8 8, auto;
  
}

/* ===== MODAL LIGHTBOX RESPONSIVE ===== */

/* Tablettes et petits écrans : empiler l'image en haut et les infos en bas */
@media (min-width: 500px) and (max-width: 800px) {
  #simple-lightbox {
    padding: 0 !important;
  }
  
  #simple-lightbox > div {
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    gap: 0 !important;
  }
  
  /* Image en haut avec marges */
  #simple-lightbox > div > div:first-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-height: 65vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 40px !important;
    background: transparent !important;
  }
  
  #simple-lightbox > div > div:first-child img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Styles spécifiques pour images en portrait */
  #simple-lightbox > div.portrait-mode > div:first-child {
    max-height: 55vh !important;
    padding: 20px 40px !important;
  }
  
  #simple-lightbox > div.portrait-mode > div:first-child img {
    max-width: 60% !important;
  }
  
  /* Carré blanc en bas - avec marges et espacement */
  #simple-lightbox > div > div:last-child {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 300px !important;
    max-width: 90% !important;
    max-height: none !important;
    padding: 30px 25px !important;
    margin: 25px auto 30px auto !important;
    border-radius: 0 !important;
    overflow-y: visible !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    text-align: left !important;
  }
  
  #simple-lightbox h2 {
    font-size: 26px !important;
  }
  
  #simple-lightbox h3 {
    font-size: 15px !important;
  }
  
  #simple-lightbox p {
    font-size: 16px !important;
  }
  
  /* Bouton fermer plus gros et blanc */
  #simple-lightbox span[onclick="closeLightbox()"] {
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    color: #2a2a2a !important;
    font-size: 36px !important;
    top: 20px !important;
    right: 20px !important;
  }
}

/* Sur mobile : empiler l'image en haut et les infos en bas */
@media (max-width: 770px) {
  #simple-lightbox {
    padding: 0 !important;
  }
  
  #simple-lightbox > div {
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    gap: 0 !important;
  }
  
  /* Image en haut avec marges */
  #simple-lightbox > div > div:first-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-height: 65vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: transparent !important;
  }
  
  #simple-lightbox > div > div:first-child img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Carré blanc en bas - avec marges comme sur l'image */
  #simple-lightbox > div > div:last-child {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    padding: 25px 20px !important;
    margin: 25px 20px 20px 20px !important;
    border-radius: 0 !important;
    overflow-y: visible !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  }
  
  #simple-lightbox h2 {
    font-size: 24px !important;
  }
  
  #simple-lightbox h3 {
    font-size: 14px !important;
  }
  
  #simple-lightbox p {
    font-size: 15px !important;
  }
  
  /* Bouton fermer plus gros et blanc */
  #simple-lightbox span[onclick="closeLightbox()"] {
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    color: #2a2a2a !important;
    font-size: 36px !important;
    top: 15px !important;
    right: 15px !important;
  }
}

/* Animation d'ouverture de la modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#simple-lightbox > div {
  animation: modalFadeIn 0.3s ease-out;
}

/* Effet hover sur le bouton fermer */
#simple-lightbox span[onclick="closeLightbox()"]:hover {
  background: #444 !important;
  transform: rotate(90deg) !important;
}
