/* =====================================
   HERO MOBILE
===================================== */
@media (max-width: 768px) {

  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero {
    height: auto;    
    padding: 16px;
    align-items: flex-start;
  }

  .hero-conteneur {
    height: 900px;
    min-height: calc(110svh - 32px);
    border-radius: 24px;
    padding: 20px 20px 36px 20px;
    justify-content: space-between;
    gap: 0;
    background-image: url("../images/autres/fond-nav-responsive.png");
    background-position: center top;
    background-size: 70vw 45px;
    background-repeat: no-repeat;
    overflow: visible;
  }

  /* ----- NAV burger ----- */
  .hero-nav {
    position: relative;
    top: -2.5vh;
    width: 40px;
    height: 35px;
    border-radius: 10px;
    background-image: none;
    background-color: var(--blue-2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    align-self: center;
    cursor: pointer;
    z-index: 100;
  }

  .hero-nav a {
    display: none;
  }

  .hero-nav::after {
    content: '';
    display: block;
    width: 22px;
    height: 16px;
    background-color: var(--white-1);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect y='0' width='22' height='2.5' rx='1.25'/%3E%3Crect y='6.75' width='22' height='2.5' rx='1.25'/%3E%3Crect y='13.5' width='22' height='2.5' rx='1.25'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect y='0' width='22' height='2.5' rx='1.25'/%3E%3Crect y='6.75' width='22' height='2.5' rx='1.25'/%3E%3Crect y='13.5' width='22' height='2.5' rx='1.25'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: opacity 0.2s ease;
  }

  /* État ouvert : icône X */
  .hero-nav.is-open::after {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cline x1='2' y1='2' x2='20' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='20' y1='2' x2='2' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cline x1='2' y1='2' x2='20' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='20' y1='2' x2='2' y2='20' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  /* ----- TITRE ----- */
  .hero-titre {
    font-size: 2.6rem !important;
    line-height: 1;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    width: 95%;
  }

  .hero-highlight {
    font-size: 2.6rem;
    padding: 0.2rem 0.4em;
    border-width: 2px;
  }

  .dot, .dot-rose {
    width: 11px;
    height: 11px;
  }

  .tl { top: -7px;  left: -7px; }
  .tr { top: -7px;  right: -7px; }
  .bl { bottom: -7px; left: -7px; }
  .br { bottom: -7px; right: -7px; }

  /* ----- CARTES ----- */
  .hero-cartes {
    width: 100%;
    height: 260px;
    position: relative;
    margin-top: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .carte {
    width: 110px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  }

  .carte-1 { left: 15%; top: 0%; transform: rotate(-22deg);}
  .carte-2 { left: 45%; top: 0%; transform: rotate(-14deg);}
  .carte-3 { left: 0%; top: 30%; transform: rotate(-6deg);}
  .carte-4 { left: 30%; top: 30%; transform: rotate( 2deg);}
  .carte-5 { left: 60%; top: 30%; transform: rotate( 10deg);}
  .carte-6 { left: 15%; top: 60%; transform: rotate( 18deg);}
  .carte-7 { left: 45%; top: 60%; transform: rotate( 26deg);}

  .carte:hover { transform: inherit; }

  /* ----- DESCRIPTION ----- */
  .infoshero {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-description {
    font-size: 1.1rem;
    line-height: 1.2;
    max-width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .mobile-break {
    display: block;
    height: 20px;
  }

  /* Ajoute un espace entre les deux phrases sans toucher au HTML */
  .hero-description br {
    display: block;
    content: '';
    margin-top: 12px;
  }

  /* ----- BOUTONS ----- */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
  }

  .btn {
    width: 85%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 20px;
  }

  .icon-arrow {
    width: 14px;
    height: 14px;
  }
}

/* =====================================
   MENU MOBILE OVERLAY
   (actif uniquement en mobile via JS)
===================================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-menu-overlay.is-open {
  display: block;
  pointer-events: all;
}

/* Fond flouté */
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
  opacity: 1;
}

/* Panneau blanc qui slide depuis le haut */
.mobile-menu-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: var(--white-1);
  border-radius: 28px;
  padding: 28px 28px 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(-30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header du panneau */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu-logo {
  font-family: var(--font-brockman);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--black-1);
  letter-spacing: -0.02em;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-0);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-2);
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--blue-1);
  color: white;
}

/* Liens nav */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--black-1);
  font-family: var(--font-brockman);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  padding: 14px 0;
  border-bottom: 1px solid var(--blue-0);
  transition: color 0.2s ease;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: var(--blue-1);
}

.mobile-menu-link-arrow {
  width: 20px;
  height: 20px;
  opacity: 0.3;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* CTA bas du menu */
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-cta .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
}


/* SECTION 2 RESPONSIVE */ 

@media (max-width: 768px) {

  /* ----- SECTION ----- */
  .section-2 {
    height: auto;
    padding: 40px 0 40px 0;
    align-items: flex-start;
  }

  .container-s2 {
    gap: 0;
    align-items: center;
    height: auto;
  }

  /* ----- BLOC TEXTE ----- */
  .s2-top-text {
    height: auto;
    padding: 0 24px;
    gap: 8px;
    margin-bottom: 28px;
    text-align: center;
    align-items: center;
  }

  .s2-sub {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    width: 70%;
  }

  /* H2 mobile */
  .s2-top-text .h2-desktop {
    font-size: 2rem;
    line-height: 1.1;
    text-align: center;
  }

  .s2-highlight {
    font-size: 2rem;
    padding: 0.06em 0.2em;
    border-width: 2px;
    border-radius: 4px;
  }

  /* Dots sur le highlight entreprise */
  .s2-highlight .dot-rose {
    width: 11px;
    height: 11px;
  }
  .s2-highlight .dot-rose.tl { top: -7px;  left: -7px; }
  .s2-highlight .dot-rose.tr { top: -7px;  right: -7px; }
  .s2-highlight .dot-rose.bl { bottom: -7px; left: -7px; }
  .s2-highlight .dot-rose.br { bottom: -7px; right: -7px; }

  .s2-intro {
    font-size: 1rem;
    line-height: 1.45;
    margin-top: 12px;
    max-width: 100%;
    text-align: center;
    opacity: 0.85;
  }

  /* ----- ZONE CARTES : scroll snap ----- */
  .s2-slider-area {
    height: auto;
    width: 100%;
    overflow-x: scroll;
    overflow-y: visible;
    padding: 20px 0 20px 24px;
    display: flex;
    align-items: flex-start;
    /* Scroll snap natif */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .s2-cards-track {
    display: flex;
    gap: 16px;
    height: auto;
    /* Padding droite pour voir le bord de la carte suivante */
    padding-right: 40px;
  }

  /* ----- CARTE ----- */
  .s2-card {
    flex: 0 0 calc(100vw - 64px); /* ~90% largeur, laisse dépasser la suivante */
    height: auto;
    padding: 12px;
    padding-bottom: 16px;
    border-width: 2px;
    border-radius: 4px;
    /* Scroll snap : chaque carte se cale */
    scroll-snap-align: start;
  }

  .pink-theme { transform: rotate(-1deg); }
  .blue-theme { transform: rotate(1deg); }

  /* Image de la carte : grande, bien visible */
  .card-img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 16px;
    flex-shrink: 0;
  }

  /* Dots de la carte */
  .s2-card .dot {
    width: 11px;
    height: 11px;
  }
  .tl-card { top: -7px;  left: -7px; }
  .tr-card { top: -7px;  right: -7px; }
  .bl-card { bottom: -7px; left: -7px; }
  .br-card { bottom: -7px; right: -7px; }

  /* Contenu texte carte */
  .card-content h3 {
    font-size: 1.4rem;
    line-height: 1.15;
    margin: 12px 0 10px;
  }

  .card-content p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .tag {
    font-size: 0.85rem;
    padding: 4px 14px;
  }

  /* ----- NAVIGATION FLÈCHES ----- */
  .s2-nav {
    width: 150px;
    height: 65px;        
    padding-top: 10px;
    padding-left: 5px;
    border-radius: 999px;
    background-color: #FBFBFB;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    margin-top: 10px;
  }

  .nav-arrow img {
    width: 80px;
    height: 80px;
  }
}


/* SECTION 3 RESPONSIVE : LES ONGLETS */
@media (max-width: 768px) {

  /* ================================
     SECTION 3 — STRUCTURE GLOBALE
  ================================ */
  .section-3 {
    padding: 40px 0 48px 0;
    height: auto;
  }

  .container-s3 {
    width: 100%;
    padding: 0 20px;
    height: auto;
  }

  .s3-header {
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .s3-sub {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    width: 68%;
  }

  .s3-header .h2-desktop {
    font-size: 1.75rem;
    line-height: 1.15;
    text-align: center;
    width: 90%;
  }

  .s3-highlight.blue {
    font-size: 1.75rem;
    padding: 0.05em 0.18em;
    border-width: 2px;
  }

  .s3-highlight.blue .dot {
    width: 10px;
    height: 10px;
  }
  .s3-highlight.blue .dot.tl { top: -6px; left: -6px; }
  .s3-highlight.blue .dot.tr { top: -6px; right: -6px; }
  .s3-highlight.blue .dot.bl { bottom: -6px; left: -6px; }
  .s3-highlight.blue .dot.br { bottom: -6px; right: -6px; }

  /* ================================
     NAVIGATION ONGLETS
  ================================ */
  .s3-tabs-nav {
    justify-content: flex-start;
    gap: 8px;
    padding: 0 0 12px 0;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ================================
     CONTENEUR ONGLETS — hauteur fixe 100svh
  ================================ */
  .s3-content-wrapper {
    height: 800px;
    min-height: 0;
    border-radius: 20px;
    margin-top: 16px;
    width: 100%;
    overflow: hidden; /* pas de scroll global */
  }

  /* Tous les onglets : hauteur 100%, pas de scroll */
  .tab-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* ================================
     ONGLET 1 — VIDÉO
  ================================ */
  #video {
    border-radius: 20px;
    padding: 0 !important;
    overflow: hidden;
  }

  .video-hero {
    width: 100%;
    height: 100%;
    min-height: 0;
    background-size: cover;
    background-position: center;
  }

  .video-overlay {
    height: 100%;
    width: 100%;
  }

  .video-badge {
    font-size: 0.8rem;
    padding: 10px 20px;
    text-align: center;
    max-width: 80%;
  }

  /* ================================
     ONGLET 2 — QUI SUIS-JE
  ================================ */
  .slide-inner {
    flex-direction: column;
    height: 100%;
    padding: 20px 20px 0;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
  }

  /* Ligne graphique arrière-plan */
  .deco-line {
    display: block;
    position: absolute;
    bottom: 0;
    left: -40px;
    width: 600%;
    z-index: 1;
    pointer-events: none;
  }

  .deco-name { display: none; }

  /* Portrait collé en bas */
  .portrait-nolan {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-height: none;
    bottom: 0;
    height: 500px;
    z-index: 4;
    margin: 0;
  }

  /* Contenu texte */
  .slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding-top: 0;
  }

  .col-text {
    width: 100%;
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  /* 1. Card objectif */
  .info-card.i-large {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    border-radius: 16px;
  }

  .card-tag {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .pink-num {
    font-size: 1.8rem;
    line-height: 1;
  }

  .tag-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .p-perso {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  /* 2. Métriques côte à côte */
  .metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .info-card.mini {
    width: 100%;
    height: auto;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .pink-stat {
    font-size: 1.8rem;
    line-height: 1;
  }

  /* ================================
     ONGLET 3 — COMPÉTENCES MEMORY
  ================================ */
  .memory-container {
    flex-direction: column;
    height: 100%;
    padding: 20px 20px 24px;
    gap: 16px;
    align-items: center;
    overflow: hidden; /* pas de scroll */
  }

  .memory-info {
    width: 100%;
    text-align: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-bottom: 20px;
  }

  .memory-info .h3-desktop-2 {
    font-size: 1.2rem;
    line-height: 1.25;
    text-align: center;
  }

  .memory-info .p-desktop-1 {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
  }

  .btn-memory {
    font-size: 0.8rem;
    padding: 10px 22px;
  }

  /* Grille memory : 6 colonnes × 3 lignes, sans scroll */
  .memory-game {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
  }

  /* Les cartes s'adaptent à la grille, ratio préservé */
  .memory-card {
    width: 100%;
    aspect-ratio: 1 / 1.6;
  }

  /* ================================
     ONGLET 4 — PARCOURS
  ================================ */
  #parcours.tab-content {
    padding: 0;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .parcours-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    gap: 0;
    overflow: hidden;
  }

  .position-h3 {
    position: static;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: center;
    padding: 20px 20px 14px;
    /* hauteur fixe pour que la frise calcule le reste */
    flex-shrink: 0;
  }

  .position-h3 br { display: none; }

  /* Frise : prend TOUT l'espace vertical restant après le titre */
  .frise-container {
    position: static;
    /* PAS de flex:1 sur le container lui-même — on le dimensionne explicitement */
    width: 100%;
    /* hauteur = tout ce qui reste après le titre (~80px) */
    height: calc(100% - 80px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  }

  .frise-container::-webkit-scrollbar { display: none; }

  .frise-img {
    max-width: none;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }
  
  .frise-img {
    content: url('../images/autres/frisechronomobile.png');
  }


  /* ================================
     ONGLET 5 — EXPÉRIENCES
  ================================ */
  #exp.tab-content {
    height: 100%;
    overflow: hidden;
  }

  .exp-inner {
    flex-direction: column;
    height: 100%;
    padding: 20px 16px 20px;
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
  }

  .exp-card-wrapper {
    width: 100%;
    gap: 10px;
    flex-shrink: 0;
  }

  .h3-exp-title {
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: center;
  }

  .h3-exp-title br { display: none; }

  /* Carte la plus large possible */
  .exp-info-card {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    gap: 8px;
    box-sizing: border-box;
  }

  .exp-tags {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tag-exp {
    font-size: 0.7rem;
    padding: 3px 9px;
  }

  .exp-main-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .exp-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #555;
  }

  .exp-progress-container {
    margin: 4px 0;
  }

  .exp-progress-labels {
    font-size: 0.62rem;
  }

  .exp-footer {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    padding-top: 10px;
  }

  .footer-item img {
    width: 14px;
  }

  /* Map sous la carte — taille réduite pour tenir */
  .exp-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
  }

  .map-relative-wrapper {
    height: 100%;
  }

  .map-img {
      height: 100%; 
      width: 100%;
      margin-bottom: -25px;
  }

  /* Points plus gros pour le touch */
  .map-point {
    width: 34px;
    height: 34px;
  }

  .map-point.active {
    width: 42px;
    height: 42px;
  }

  /* ================================
     ONGLET 6 — PASSIONS
  ================================ */
  #passions.tab-content {
    height: 100%;
    overflow: hidden;
  }

  .passions-static-container {
    padding: 42px 0 24px;
    gap: 40px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
  }

  .p-titre-slide {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-top: 0;
    flex-shrink: 0;
    text-align: center;
    padding: 0 20px;
  }

  .p-titre-slide br { display: none; }

  /* Carousel horizontal */
  .passions-cards-row {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 20px 8px 20px;
    flex-shrink: 0;
    /* Dégradé bord droit pour signaler le scroll */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .passions-cards-row::-webkit-scrollbar { display: none; }

  /* Carte : grande, carrée, scroll snap */
  .passion-card {
    flex-shrink: 0;
    width: 72vw;
    height: 72vw;
    max-width: 320px;
    max-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.13);
    cursor: pointer;
    /* Suppression de toutes les rotations */
    transform: none !important;
    transition: box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
  }

  .passion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  /* Carte active : légère mise en avant */
  .passion-card.active {
    box-shadow: 0 20px 48px rgba(0,0,0,0.22);
    transform: none !important;
  }

  .passion-card.active img {
    transform: scale(1.04);
  }

  /* Voile : plus subtil, seulement sur les inactives */
  .passion-card .card-overlay {
    opacity: 0;
  }

  .passion-card:not(.active) .card-overlay {
    opacity: 0.45;
    background: rgba(0,0,0,0.45);
  }

  /* Supprime les classes de rotation desktop */
  .cp1, .cp2, .cp3, .cp4, .cp5 { transform: none !important; }
  .cp1.active, .cp2.active, .cp3.active,
  .cp4.active, .cp5.active { transform: none !important; }

  /* Zone texte sous le carousel */
  .passion-text-zone {
    max-width: 100%;
    text-align: center;
    flex-shrink: 0;
    padding: 0 20px;
    margin-bottom: 0;
  }

  #passion-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  #passion-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--black-1);
    opacity: 0.8;
  }
}


/* SECTION 4 RESPONSIVE : LE SLIDER */

@media (max-width: 768px) {

  .section-4-magic {
    height: 37vh;
    max-height: 400px;
  }

  .magic-carousel-container {
    height: 260px;
  }

  .magic-track-wrapper {
    gap: 12px;
  }

  .magic-track {
    gap: 10px;
    animation-duration: 20s; /* un peu plus rapide sur mobile */
  }

  .m-tag {
    font-size: 0.72rem;
    padding: 8px 14px;
    border-width: 1px;
  }

  /* L'image centrale — légèrement réduite */
  .magic-divider-wrapper {
    height: 110%;
  }

  .magic-line {
    height: 90%;
  }

  .magic-shadow {
    height: 130%;
  }
}


/* SECTION 5 RESPONSIVE : LES PROJETS */


@media (max-width: 768px) {

  /* ================================
     SECTION 5 — STRUCTURE
  ================================ */
  .section-5 {
    padding: 40px 0 48px 0;
  }

  .container-s5 {
    width: 100%;
    padding: 0 20px;
    gap: 24px;
  }

  /* ================================
     HEADER
  ================================ */
  .s5-header {
    text-align: center;
    margin-bottom: 12px;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .s5-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    width: 70%;

  }

  .s5-header .h2-desktop {
    font-size: 1.75rem;
    line-height: 1.15;
    text-align: center;
  }

  /* Highlight "vie" */
  .s2-highlight.pink {
    font-size: 1.75rem;
    padding: 0.05em 0.18em;
    border-width: 2px;
  }

  .s2-highlight.pink .dot-rose {
    width: 10px;
    height: 10px;
  }
  .s2-highlight.pink .dot-rose.tl { top: -6px; left: -6px; }
  .s2-highlight.pink .dot-rose.tr { top: -6px; right: -6px; }
  .s2-highlight.pink .dot-rose.bl { bottom: -6px; left: -6px; }
  .s2-highlight.pink .dot-rose.br { bottom: -6px; right: -6px; }

  /* ================================
     SLIDER — scroll snap horizontal
  ================================ */
  .s5-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    display: flex;
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Dégradé bord droit */
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
  }

  .s5-slider::-webkit-scrollbar { display: none; }

  /* ================================
     CARTE — colonne verticale
  ================================ */
  .project-card {
    flex: 0 0 calc(100vw - 56px); /* quasi pleine largeur */
    height: auto;
    padding: 16px;
    scroll-snap-align: start;
    border-width: 2px;
    /* Désactive le hover scale sur mobile */
    transform: none !important;
  }

  .project-card:hover {
    transform: none !important;
  }

  /* Dots de la carte */
  .dot-blue, .dot-rose {
    width: 11px;
    height: 11px;
  }

  .tl-proj { top: -7px;  left: -7px; }
  .tr-proj { top: -7px;  right: -7px; }
  .bl-proj { bottom: -7px; left: -7px; }
  .br-proj { bottom: -7px; right: -7px; }

  /* Layout interne : colonne */
  .card-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    height: auto;
  }

  /* Image : pleine largeur, format 16/9 */
  .card-image-box {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 13;
    border-radius: 10px;
  }

  /* Texte : pleine largeur */
  .card-text-box {
    flex: none;
    width: 100%;
    gap: 10px;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .card-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 14px;
    color: #555;
  }

  .btn-view-project {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    gap: 10px;
  }

  .icon-arrow {
    width: 14px;
    height: 14px;
  }

  /* ================================
     CONTRÔLES
  ================================ */
  .s5-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
  }

  /* Flèches — même style que section 2 */
  .s5-controls .s2-nav {
    width: 150px;
    height: 65px;
    padding-top: 10px;
    padding-left: 5px;
    border-radius: 999px;
    background-color: #FBFBFB;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
  }

  .s5-controls .nav-arrow img {
    width: 80px;
    height: 80px;
  }

  /* Bouton "Voir l'intégralité" */
  .btn-all-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid var(--pink-2);
    color: var(--pink-2);
    font-family: var(--font-brockman);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
  }

  .btn-all-projects:hover {
    background: var(--pink-2);
    color: white;
  }
}

/* SECTION 6 RESPONSIVE SLIDER PARTENAIRES */

@media (max-width: 768px) {

  .section-6 {
    height: auto;
    padding: 48px 0;
  }

  .container-s6 {
    width: 100%;
  }

  .s6-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .s6-header .s3-sub {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }

  .s6-header .h2-desktop {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .s3-highlight.blue {
    font-size: 1.75rem;
    padding: 0.05em 0.18em;
    border-width: 2px;
  }

  /* Logos plus compacts */
  .logo-track {
    gap: 36px;
    animation-duration: 28s; /* légèrement plus rapide sur petit écran */
  }

  .logo-item {
    width: 90px;
    height: 50px;
  }
}




/* CTA ET FOOTER RESPONSIVE */
@media (max-width: 768px) {

  /* ================================
     CTA SECTION
  ================================ */
  .cta-section {
    padding: 40px 20px 80px;
    border-radius: 0 0 32px 32px;
    background-color: #F9F7F8;
    position: relative;
    z-index: 2;
  }

  .contact-card {
    padding: 32px 24px 40px;
    border-radius: 28px;
    box-shadow: 0 3px 12px rgba(0, 18, 81, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 500px;
  }

  .s-sub {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
    width: 70%;
  }

  .cta-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 16px 0 20px;
  }

  .pink-box {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .pink-box .dot-rose {
    width: 10px;
    height: 10px;
  }
  .pink-box .dot-rose.tl-proj { top: -6px;  left: -6px; }
  .pink-box .dot-rose.tr-proj { top: -6px;  right: -6px; }
  .pink-box .dot-rose.bl-proj { bottom: -6px; left: -6px; }
  .pink-box .dot-rose.br-proj { bottom: -6px; right: -6px; }

  /* Items contact : colonne centrée */
  .cta-grid {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }

  .cta-item {
    font-size: 0.95rem;
    gap: 10px;
  }

  .cta-item img {
    width: 20px;
    height: 20px;
  }

  /* Bouton : masque le texte original, injecte "Contactez-moi !" */
  .btn-outline {
    padding: 14px 32px;
    font-size: 0;        /* masque le texte original */
    width: auto;
    display: inline-block;
  }

  .btn-outline::after {
    content: 'Contactez-moi !';
    font-size: 1rem;
    font-family: var(--font-brockman);
    font-weight: 700;
  }

  /* Bulle Nolan repositionnée bas-droite */
  .curseurnolan {
    position: absolute;
    width: 100px;
    bottom: 85px;
    right: 40px;
  }

  /* ================================
     FOOTER
  ================================ */
  main {
    overflow: visible !important;
  }

  .footer-reveal {
    height: 54vw;
    position: sticky;
    bottom: 0;
    z-index: 1;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .footer-content {
    margin-top: -10vw;
  }

  .footer-content p {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .legal {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 4px;
  }

  /* "nolan" au lieu de "nolan bossard" */
  .giant-txt {
    font-size: 22vw;
    bottom: -28vw;
    font-size: 0; /* masque le texte original */
  }

  .giant-txt::after {
    left: -53vw;
    content: 'nolan';
    font-size: 170px;
    font-weight: 900;
    position: absolute;
    bottom: -85px;
  }
}


.footer-reveal .legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-reveal .legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.giant-txt {
    pointer-events: none;
}

/* ================================
   SCROLLBAR PERSONNALISÉE
================================ */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--blue-2) transparent;
}

/* Chrome / Safari / Edge */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-2);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-1);
}

/* ================================
   SÉLECTION DE TEXTE
================================ */
::selection {
    background: var(--pink-2);
    color: var(--white-1);
}

/* Pour Firefox */
::-moz-selection {
    background: var(--pink-2);
    color: var(--white-1);
}

/* ================================
   CURSEUR PERSONNALISÉ
================================ */
*, body {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--blue-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--blue-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, border-color 0.2s ease, background 0.2s ease;
    opacity: 0.6;
}

/* Hover sur éléments cliquables : anneau se remplit */
.cursor-ring.is-hovering {
    width: 52px;
    height: 52px;
    background: rgba(0, 56, 253, 0.08);
    border-color: var(--blue-1);
    opacity: 1;
}

/* Hover sur éléments roses (boutons primaires) */
.cursor-ring.is-pink {
    border-color: var(--pink-2);
    background: rgba(226, 48, 139, 0.08);
}

.cursor-dot.is-pink {
    background: var(--pink-2);
}