/* =================================================================== */
/* TABLE DES MATIÈRES
/* ===================================================================
/*
/* 1. VARIABLES & RESET
/* 2. COMPOSANTS GLOBAUX
/* 3. STYLES DE PAGES
/* - Page: Accueil (Hero & Blob)
/* - Page: Accueil (Grille Catégories)
/* - Page: À Propos
/* - Page: Contact 
/* - Page: Créations Perso (Masonry)
/* - Page: Détail Projet (Générique)
/* 4. COMPOSANTS RÉUTILISABLES
/* 5. CLASSES UTILITAIRES
/* 6. RESPONSIVE (MEDIA QUERIES)
/*
/* =================================================================== */


/* ======================================== */
/* 1. VARIABLES & RESET                 */
/* ======================================== */

:root {
  /* Couleur d'accentuation */
  --accent-color: #7000ff;

  /* Police principale (via Adobe Fonts) */
  --font-main: "monte-stella", sans-serif;
}

/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* CORRECTION: La règle de snap est RETIRÉE d'ici */
  /* scroll-snap-type: y mandatory; */
}

body {
  font-family: var(--font-main);
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

main {
  flex-grow: 1;
}


/* ======================================== */
/* 2. COMPOSANTS GLOBAUX                */
/* ======================================== */

/* --- HEADER / MENU --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 30px;
  width: auto;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.logo a:hover {
  color: var(--accent-color);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-color);
}

/* --- FOOTER --- */
.site-footer-bottom {
  padding: 30px 20px;
  text-align: center;
  background-color: #f1f1f1;
  border-top: 1px solid #e0e0e0;
  margin-top: 0; 
  /* Le snap-align est ok, il ne s'activera que sur la page index */
  scroll-snap-align: end;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-bottom p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #888;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fdfdfd;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; 
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

#preloader.is-hidden {
  transform: translateY(-100%);
}

.preloader-logo {
  width: 80px;
  height: auto;
  opacity: 0;
  animation: fadeInPulse 1.5s ease-out forwards;
}

@keyframes fadeInPulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- LIGHTBOX --- */
#lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

#lightbox.zoomed-in {
  display: block;
  overflow: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  transition: all 0.3s ease;
  cursor: zoom-in;
}

#lightbox.zoomed-in .lightbox-content {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  margin: 40px auto;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #bbb;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}


/* ======================================== */
/* 3. STYLES DE PAGES                   */
/* ======================================== */

/* --- PAGE: ACCUEIL (HERO & BLOB) --- */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh; 
  text-align: center;
  padding: 20px;
  margin-top: -40px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

#hero-blob {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
    pointer-events: none;
}

.hero-subtitle {
  position: relative; 
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-section .main-title {
  position: relative;
  z-index: 2;
  font-size: 6vw;
  font-weight: 700;
  color: #222;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.hero-subtitle.is-visible,
.hero-section .main-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.main-title .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.main-title:hover .letter:hover {
  transform: translateY(-10px) scale(1.1);
  color: var(--accent-color);
}

.scroll-down-btn {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  text-decoration: none;
  padding: 12px 25px;
  border: 2px solid #ccc;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.scroll-down-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(5px);
}

/* --- PAGE: ACCUEIL (GRILLE CATÉGORIES) --- */
.portfolio-snap-row {
  height: 100svh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  position: relative; 
}

.category-card {
  position: relative;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-basis: 50%;
  max-width: 700px;
  height: 400px;
  min-height: 400px;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.category-card .category-gif-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.category-card h2 {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.category-card:hover::after {
  opacity: 1;
}

.category-card:hover .category-gif-cover {
  opacity: 0.1;
}

.category-card:hover h2 {
  opacity: 1;
  color: #000000;
  text-shadow: none;
}

/* --- PAGE: À PROPOS --- */
.about-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 40px auto;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.about-subtitle {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 30px;
  font-weight: 400;
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.btn-cv-download {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cv-download:hover {
  background-color: #5a00cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skills-section {
  padding-left: 30px;
  border-left: 2px solid #eee;
}

.skills-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #333;
}

.skills-category {
  margin-bottom: 30px;
}

.skills-category h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.skills-category ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skills-category li {
  font-size: 1.1rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; 
  height: 40px;
}

.skill-icon i {
  font-size: 40px; 
  line-height: 1;
  color: var(--accent-color);
}

.skill-icon svg {
  width: 40px; 
  height: 40px;
  stroke: var(--accent-color);
  fill: none; 
}

.skill-icon.svg-fill svg {
  fill: var(--accent-color);
  stroke: none;
}
.skill-icon img {
  width: 40px; 
  height: 40px;
}

/* --- PAGE: CONTACT --- */
.contact-hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 20px;
}
.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
}
.contact-hero p {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.contact-main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 20px auto;
}

.contact-form-wrapper {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.8;
}
.contact-info .email-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}
.contact-info .email-link:hover {
    text-decoration: underline;
}

.subject-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.subject-option {
  background: none;
  border: 2px solid #ccc;
  border-radius: 50px;
  padding: 8px 15px;
  font-family: var(--font-main);
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}
.subject-option:hover,
.subject-option.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form {
  max-width: 100%;
  width: 100%;
}
.contact-form h1 {
  text-align: center;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 5px rgba(112, 0, 255, 0.3);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #5a00cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.success-message {
  display: none; /* Caché par défaut */
  margin-top: 20px;
  padding: 15px;
  background-color: #e6f9e6;
  border: 1px solid #b3e6b3;
  color: #336633;
  border-radius: 5px;
  text-align: center;
}

/* --- PAGE: CRÉATIONS PERSO (MASONRY) --- */
.creation-gallery {
  column-count: 3;
  column-gap: 20px;
  margin-top: 40px;
}

.creation-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-out;
  break-inside: avoid;
}

.creation-item img {
  width: 100%;
  height: auto;
  display: block;
}

.creation-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* --- PAGE: DÉTAIL PROJET (GÉNÉRIQUE) --- */
.project-detail-page {
  margin-top: 20px;
}

.project-detail-page h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  text-align: left;
}

.project-detail-page h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.project-detail-page p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

.project-detail-page .click-instruction {
  text-align: center;
  font-style: italic;
  color: #777;
  margin: 30px 0 40px;
}

.btn-back {
  display: inline-block;
  margin-bottom: 30px;
  color: #777;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: var(--accent-color);
}

.flyer-presentation,
.video-presentation {
  max-width: 900px;
  margin: 0 auto 60px auto;
}


/* ======================================== */
/* 4. COMPOSANTS RÉUTILISABLES          */
/* ======================================== */

/* --- COMP: GALERIE DE PROJETS (PAGES CATÉGORIES) --- */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-item {
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-out;
  border: 1px solid #eee;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.project-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.project-info {
  padding: 20px 25px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.project-info p {
  font-size: 1rem;
  color: #777;
}

/* --- COMP: FLIP CARD (DÉTAIL FLYER) --- */
.flip-card-container {
  perspective: 1000px;
  width: 450px;
  height: 636px;
  margin: 40px auto 50px auto;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* --- COMP: LECTEUR VIDÉO (DÉTAIL VIDÉO) --- */
.video-player-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
}

.video-player-wrapper:has(img) {
  padding-top: 0;
  background-color: transparent;
  box-shadow: none;
}

.video-player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-player-wrapper > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image-lightbox {
  cursor: pointer;
  display: block;
}

/* --- COMP: GRILLE D'IMAGES (PROJETS) --- */
.image-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 20px auto 30px auto;
}

.image-col {
  flex: 1;
  min-width: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: all 0.3s ease-out;
}

.image-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.image-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- COMP: BLOC PROJET CONFIDENTIEL --- */
.confidential-project-notice {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
}

.confidential-project-notice p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  line-height: 1.8;
}

/* --- COMP: BUBBLE TIMELINE --- */
@keyframes levitate {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.bubble-timeline {
  margin-top: 50px;
  position: relative;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bubble-timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.bubble-item {
  position: relative;
  width: 80%;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #eee;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: calc(var(--delay) * 0.1s);
  animation: levitate 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--delay) * -0.5s);
}

.bubble-item:nth-child(4n-3) {
  align-self: flex-start;
}
.bubble-item:nth-child(4n-2) {
  align-self: center;
}
.bubble-item:nth-child(4n-1) {
  align-self: flex-end;
}
.bubble-item:nth-child(4n-0) {
  align-self: center;
}

.bubble-item:hover {
  animation: none;
  transform: translateY(-10px) scale(1.03);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
  cursor: default;
}

.bubble-date {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.bubble-desc {
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}


/* ======================================== */
/* 5. CLASSES UTILITAIRES               */
/* ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}
.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}
.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}
.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}
.animate-on-scroll[style*="--delay: 0;"] {
  transition-delay: 0s;
}
.animate-on-scroll[style*="--delay: 1;"] {
  transition-delay: 0.1s;
}
.animate-on-scroll[style*="--delay: 2;"] {
  transition-delay: 0.2s;
}
.animate-on-scroll[style*="--delay: 3;"] {
  transition-delay: 0.3s;
}
.animate-on-scroll[style*="--delay: 4;"] {
  transition-delay: 0.4s;
}
.animate-on-scroll[style*="--delay: 5;"] {
  transition-delay: 0.5s;
}
.animate-on-scroll[style*="--delay: 6;"] {
  transition-delay: 0.6s;
}
.animate-on-scroll[style*="--delay: 7;"] {
  transition-delay: 0.7s;
}


/* ======================================== */
/* 6. RESPONSIVE (MEDIA QUERIES)        */
/* ======================================== */

@media (max-width: 768px) {

  /* CORRECTION: La règle de snap est RETIRÉE d'ici */
  /*
  html {
    scroll-snap-type: none;
  }
  */

  /* --- Composants Globaux (Mobile) --- */
  .site-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .logo {
    width: auto;
  }

  .container {
    margin-top: 20px;
    padding: 0 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  /* --- Pages (Mobile) --- */
  .hero-section {
    height: 100svh; /* Garde la hauteur pour le hero */
  }

  .hero-section h1 {
    font-size: 12vw;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  #hero-blob {
      display: none;
  }

  /* MODIFIÉ: Comportement du snap-row sur mobile */
  .portfolio-snap-row {
    height: auto; /* Revient à un scroll normal */
    flex-direction: column; /* Empile les cartes */
    padding: 20px 15px;
    gap: 20px;
  }
  
  /* MODIFIÉ: Restaure la taille originale des cartes sur mobile */
  .category-card {
    flex-basis: auto;
    width: 100%;
    height: 280px;
    min-height: 0; /* Annule la hauteur min du desktop */
  }

  .project-gallery {
    gap: 30px;
  }

  .project-detail-page h1 {
    font-size: 2rem;
  }

  .creation-gallery {
    column-count: 2;
    column-gap: 15px;
  }

  /* Page: À Propos (Mobile) */
  .about-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .skills-section {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 2px solid #eee;
  }
  .about-title {
    font-size: 2.5rem;
  }
  
  /* Page: Contact (Mobile) */
  .contact-main-container {
    grid-template-columns: 1fr;
  }
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  .contact-hero p {
    font-size: 1.2rem;
  }

  /* --- Composants (Mobile) --- */
  .flip-card-container {
    width: 100%;
    max-width: 350px;
    height: 495px;
  }

  .image-row {
    flex-direction: column;
    gap: 30px;
  }

  .bubble-timeline {
    padding: 20px 0;
  }

  .bubble-item:nth-child(4n-3),
  .bubble-item:nth-child(4n-2),
  .bubble-item:nth-child(4n-1),
  .bubble-item:nth-child(4n-0) {
    align-self: stretch;
    width: 100%;
    animation-delay: calc(
      var(--delay) * 0.1s
    ) !important;
  }
}