@media (max-width: 575px) {
  .flags {
    height: 2.5em;
    width: 2.5em;
  }
  .sceneamb-sm {
    padding: 3em;
  }

}

@media (min-width: 576px) {
  .flags {
    height: 2.75em;
    width: 2.75em;
  }
  .sceneamb-sm {
    padding: 3em;
  }

}

@media (min-width: 768px) {
  .flags {
    height: 2.2em;
    width: 2.2em;
  }

}

@media (min-width: 992px) {}

@media (min-width: 1200px) {}

@media (min-width: 1400px) {}

/* =========================================
   GENERAL RULES
   ========================================= */

   /* Appliqué à tous les éléments traduisibles */
[data-i18n] {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

/* Classe temporaire pendant le switch */
.lang-switching {
  opacity: 0 !important;
}

.statements {
  line-height: 1.35;
  color: #777777;
  font-weight: 300;
  text-align: center;
}

.highlight {
  background-color: var(--emphasis, #5f8188);
  padding-left: 18px;
  padding-right: 18px;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.25;
  color: #ffffff;
  font-weight: 500;
}

.paddingtopbottom {
  padding-top: 8em;
  padding-bottom: 8em;
}

.menushadow {
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
.buttonshadow {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.shadowcolors {
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
.shadowcolors-SM {
  box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
}

/* =========================================
   WELCOME PANEL
   ========================================= */

.svg-shaped-bg {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.shape-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

#leisureImage {
  opacity: 0;
}

#leisureText {
  opacity: 0;
  position: absolute;
}


#morphShape {
  width: 250px;
  height: 258px;
}

@media (min-width: 768px) {
  #morphShape {
    width: 350px;
    height: 362px;
  }

  #shapeImage {
    clip-path: url(#clipPath-md);
  }
}

@media (min-width: 1400px) {
  #morphShape {
    width: 450px;
    height: 465px;
  }

  #shapeImage {
    clip-path: url(#clipPath-lg);
  }
}

/* =========================================
   Text rotator au revoir
   ========================================= */

   @keyframes flip3D {
    0% {
      transform: rotateX(90deg) translateY(-15px);
      opacity: 0;
    }
    /* Le texte apparaît très vite et reste stable un court instant */
    20%, 80% {
      transform: rotateX(0deg) translateY(0);
      opacity: 1;
    }
    100% {
      transform: rotateX(-90deg) translateY(15px);
      opacity: 0;
    }
  }
  
  .rotator-variable {
    display: inline-block;
    perspective: 1000px;
    /* Durée passée à 1.5s pour doubler la vitesse */
    animation: flip3D 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    
    /* On fixe l'épaisseur à 300 */
    font-weight: 300; 
    font-variation-settings: "wght" 300;
    
    min-width: 250px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }


/* =========================================
   text rotator haut de document
   ========================================= */

.text-rotater {
  display: inline-block;
  overflow: hidden;
  /* Cache le mot lorsqu'il est en bas */
  vertical-align: bottom;
  /* Ajustez la hauteur de ligne selon votre design h2 statements */
  height: 1.2em;
  line-height: 1.2em;
}

.t-rotate {
  display: inline-block;
  will-change: transform, opacity;
  /* Transition fluide pour la descente ET la remontée */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease-in-out;
  /* État initial : centré et visible */
  transform: translateY(0);
  opacity: 1;
}

/* État quand le mot est en bas et invisible */
.t-rotate.is-hidden {
  transform: translateY(100%);
  /* Descend de toute sa hauteur */
  opacity: 0;
}

/* État caché : cette fois on monte vers le haut */
.t-rotate.is-hidden-up {
  transform: translateY(-100%);
  opacity: 0;
}


/* =========================================
   DRIVING EXPERIENCE -002
   ========================================= */

/* --- LE CONTENEUR DOCK (ZÉRO PADDING) --- */
.brand-dock-002 {
  background-color: #f2f2f2;
  border: 2px solid #f2f2f2; /* Le stroke de 2px */
  padding: 2px; /* + bordure de 2px = 4px, comme le sélecteur semaine / weekend */
  border-radius: 8px;
  display: inline-flex;
  position: relative;
  z-index: 1;
  
  /* Optionnel : pour s'assurer que la bordure ne "mange" pas l'espace intérieur */
  box-sizing: border-box; 
}

/* L'élément qui se déplace */
.nav-indicator-002 {
  position: absolute;
  top: 2px;
  left: 0;
  width: 65px; /* Même largeur qu'un bouton */
  height: 65px; /* Même hauteur */
  background-color: #fb6A4A;
  border-radius: 6px; /* Suit l'arrondi du dock */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1; /* Passe derrière les logos */
}

/* --- LES BOUTONS LOGOS ULTRA-COMPACTS --- */
.btn-brand-002 {
  width: 65px; 
  height: 65px;
  padding: 5px;
  background: transparent !important; /* Plus de fond sur les boutons */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.logo-svg-002 {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0.2);
  transition: filter 0.3s ease;
}

/* Changement de couleur du logo quand le bouton est "actif" */
.btn-brand-002.active-brand-002 .logo-svg-002 {
  filter: brightness(0) invert(1);
}

.btn-brand-002.active-brand-002 .logo-svg-002 {
  filter: brightness(0) invert(1);
  /* Logo blanc pur sur le fond rose/gris */
  transform: scale(1.05);
}

/* Hover sur les boutons non-actifs */
.btn-brand-002:not(.active-brand-002):hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.btn-brand-002:not(.active-brand-002):hover .logo-svg-002 {
  filter: brightness(0);
  /* Devient noir pur au survol */
}

/* Adaptabilité mobile */
@media (max-width: 768px) {
  .btn-brand-002 {
    width: 40px;
    height: 40px;
    padding: 0px;
  }
  .nav-indicator-002 {
    width: 40px; /* Même largeur qu'un bouton */
    height: 40px; /* Même hauteur */
  }

  .brand-dock-002 {
    border-radius: 8px;
  }
}

/* --- SCÈNE : plus large que le .container, les images sont le sujet --- */
.exp-stage {
  width: min(100% - 2rem, 1480px);
  margin-inline: auto;
  padding: 3rem 0 0;
}

.brand-dock-002 {
  margin-bottom: 2.5rem;
}

/* L'indicateur est piloté en JS (left / width) : pas de transition CSS */
.nav-indicator-002 {
  transition: none;
}

/* --- GRILLE : mobile = une colonne, tablette = 1 grande + 2 petites, desktop = 2/3 + 1/3 --- */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.exp-grid > * {
  min-width: 0;   /* une tuile ne doit jamais déborder de sa colonne */
}

@media (min-width: 576px) {
  .exp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .exp-tile--hero {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .exp-grid {
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
  }
  .img-wrapper-002.exp-tile--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;   /* la grande image prend la hauteur des deux petites */
    align-self: stretch;
  }
}

/* --- TUILE --- */
.img-wrapper-002 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1120 / 800;   /* format des visuels : pas de saut de mise en page au changement */
  border-radius: 1.25rem;
  background-color: rgba(0, 0, 0, 0.12);
  isolation: isolate;
  cursor: zoom-in;
}

.exp-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Calque de l'image entrante, révélé par le rideau (voir animations.js) */
.exp-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --- LÉGENDE : un mot, discret ---
   MASQUÉES pour l'instant : supprimer la ligne « display: none » ci-dessous pour les réafficher. */
.exp-caption {
  display: none;
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .exp-layer { transition: none; }
}


/**
 * bascule des couleurs
 */

/* --- CONFIGURATION DES COULEURS DYNAMIQUES -002 --- */
#drivingexp-002 {
  /* Valeurs par défaut au chargement */
  --bg-section: #b4bac4;
  --text-main: #416985;
  --bg-highlight: #7c9da3;
  --text-highlight: #ffffff;

  background-color: var(--bg-section);
  /* Transition douce pour toutes les propriétés de couleur */
  transition: background-color 0.8s ease-in-out;
}

#statement-002 {
  color: var(--text-main);
  transition: color 0.8s ease-in-out;
}

#highlight-002 {
  background-color: var(--bg-highlight);
  color: var(--text-highlight);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  transition: background-color 0.8s ease-in-out, color 0.8s ease-in-out;
}


/* =========================================
   STYLE DES PANNEAUX DE CONTENU -003
   ========================================= */

/* --- CONFIGURATION GLOBALE --- */
:root {
  --font-main-003: 'League Spartan', sans-serif;
}

/* --- STYLE DES BOUTONS --- */
.btn-step-003 {
  font-family: var(--font-main-003);
  background-color: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Transition fluide pour la transformation et l'ombre */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;

  cursor: pointer;
  outline: none;
}

/* On garde un état spécifique pour le bouton actif 
 pour qu'il ne "saute" pas si on le survole alors qu'il est déjà sélectionné */
 .btn-step-003.active-003 {
  background-color: #fb6A4A;
  transform: translateY(-5px);
  /* Légèrement soulevé pour montrer la sélection */
}

/* Effet au survol (Hover) */
.btn-step-003:hover {
  /* Translation vers le haut sur l'axe Y */
  transform: translateY(-5px);

  /* On ajoute une ombre portée plus diffuse pour accentuer l'effet de hauteur */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.icon-003 {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 32px !important;
  margin-bottom: 12px;
  color: #333;
}

.title-003 {
  font-size: 0.8rem;
  font-weight: 700;
  /* Spartan est superbe en gras */
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  color: #222;
}

/* --- STYLE DES PANNEAUX --- */
.panel-item-003 {
  font-family: var(--font-main-003);
  height: 50vh;
  min-height: 280px;
  border-radius: 30px;
  /* Bordures plus rondes pour matcher les icônes */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  overflow: hidden;
}

.panel-active-003 {
  flex-grow: 10;
  flex-basis: 65%;
  padding: 40px;
}

.panel-inactive-003 {
  flex-grow: 1;
  flex-basis: 5%;
  opacity: 0.4;
}

.panel-content-003 {
  text-align: center;
  width: 100%;
}

.panel-icon-003 {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
  /* Icône remplie pour le panneau actif */
  font-size: 70px !important;
  color: #000;
  margin-bottom: 15px;
}

.panel-title-003 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

.panel-list-003 {
  display: inline-block;
  text-align: left;
  padding: 0;
  list-style: none;
}

.panel-list-003 li {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  align-items: center;
}

.panel-list-003 li::before {
  content: "•";
  margin-right: 10px;
  font-size: 1.8rem;
  color: #000;
}

/* --- COULEURS PASTELS --- */
.panel-color-1-003 {
  background-color: #006f9e40;
}

.panel-color-2-003 {
  background-color: #00889c40;
}

.panel-color-3-003 {
  background-color: #00a18a40;
}

.panel-color-4-003 {
  background-color: #39b55f40;
}

.panel-color-5-003 {
  background-color: #9ebf3040;
}

.panel-color-6-003 {
  background-color: #fbbb2d40;
}

/* --- AJUSTEMENTS POUR L'ANIMATION --- */

.panel-item-003 {
  /* ... tes styles précédents ... */

  /* Animation de la largeur avec amorti (Cubic Bezier) */
  transition: flex-grow 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    flex-basis 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

/* On force le contenu à ne pas créer de scroll horizontal pendant l'animation */
.panel-content-003 {
  transition: opacity 0.3s ease;
  min-width: 300px;
  /* Empêche le texte de se compresser bizarrement */
  white-space: nowrap;
}

/* État Inactif : plus discret */
.panel-inactive-003 {
  flex-grow: 1;
  flex-basis: 5%;
  opacity: 0.3;
  cursor: pointer;
}

/* État Actif : expansion */
.panel-active-003 {
  flex-grow: 10;
  flex-basis: 65%;
  opacity: 1;
}


.panel-inactive-003 {
  cursor: pointer;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.panel-inactive-003:hover {
  opacity: 0.8;
  /* Petit feedback visuel au survol */
}

/* --- STYLE DES BOUTONS AVEC TRANSLATION --- */



/* =========================================
   DESIGN TO CODE PROGRESSION -004
   ========================================= */


  /* Conteneur transparent */
  .conteneur-transparent {
    background-color: #e3e1e1;
    border-radius: 2em;
    border : 0px solid #7d735930;
}

/* Style des tablettes */
.tablette {
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    color: #333;
    text-align: center;
}

/* Fond uniquement pour la tablette centrale */
.tablette.milieu {
    background-color: #7c9da3; 
    --s: 3em; /* control the shape */
    clip-path: polygon(0 0,calc(100% - var(--s)) 0,100% 50%,calc(100% - var(--s)) 100%,0 100%,var(--s) 50%);
}



/* Style des éléments internes */
.tablette-icone {
    font-size: 5em;
    margin-bottom: 0.1em;
    color: #555;
}

.tablette-titre {
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 0.5em;
    color: #777777;
}

.tablette-texte {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    line-height: 1.4;
    color: #424242;
    font-weight: 500;
}

/*    TABLETTE VERTICALE       */

.chevron {
  --s: 2em; /* control the shape (can be percentage) */
  clip-path: polygon(0 0,50% calc(0% + var(--s)),100% 0,100% calc(100% - var(--s)),50% 100%,0 calc(100% - var(--s)));
}

.tablette-verticale-grande {
  background-color: #e3e1e1;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.tablette-section {
  padding: 20px;
  text-align: center;
}

.tablette-flèche {
  padding: 10px 20px !important;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablette-content {
  width: 100%;
}

.tablette-titre {
  font-weight: bold;
  margin-bottom: 8px;
}

.tablette-texte {
  margin-bottom: 15px;
  line-height: 1.4;
}

.tablette-pictos {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/*   MISSIONS UIDEV   */

.missions-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 1em;
  box-sizing: border-box;
  border-radius: 16px;
}

.missions-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.missions-item:hover .missions-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 1;
}

.missions-bullets li {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style-type: none;
  padding: 0.3em 0;
  text-align: center;
}

.missions-item:hover .missions-bullets li {
  opacity: 1;
  transform: translateY(0);
}

.missions-item:hover .missions-bullets li:nth-child(1) { transition-delay: 0.1s; }
.missions-item:hover .missions-bullets li:nth-child(2) { transition-delay: 0.2s; }
.missions-item:hover .missions-bullets li:nth-child(3) { transition-delay: 0.3s; }
.missions-item:hover .missions-bullets li:nth-child(4) { transition-delay: 0.4s; }
.missions-item:hover .missions-bullets li:nth-child(5) { transition-delay: 0.5s; }
.missions-item:hover .missions-bullets li:nth-child(6) { transition-delay: 0.6s; }


/* =========================================
   MENU ACHIEVEMENTS -005
   ========================================= */


/* --- CONFIGURATION DES TAILLES RESPONSIVES --- */
:root {
  /* La taille "Carrée" de l'image active */
  --size-active-005: 80px; 
  /* La taille "Contractée" des autres (50% de la largeur active) */
  --size-collapsed-005: calc(var(--size-active-005) / 2); 
}

@media (min-width: 768px) {
  :root { 
      --size-active-005: 100px; 
      --size-collapsed-005: calc(var(--size-active-005) / 2);
  }
}

@media (min-width: 992px) {
  :root { 
      --size-active-005: 150px; 
      --size-collapsed-005: calc(var(--size-active-005) / 2);
  }
}

/* --- LE CONTENEUR PARENT --- */
/* --- LE CONTENEUR PARENT --- */
.image-accordion-005 {
  background-color: #f2f2f2;
  border-radius: 10px;
  
  /* On passe en GRID pour un contrôle total */
  display: inline-grid;
  /* On crée 5 colonnes qui s'adaptent au contenu */
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  
  /* L'ESPACE RÉEL */
  padding: 4px !important; 
  gap: 4px;
  
  align-items: center;
  overflow: hidden;
  
  /* On laisse le contenu dicter la largeur */
  width: auto;
  height: auto;
  
  box-sizing: content-box; /* On change le mode de calcul */
  transition: all 0.3s ease;
}

/* --- LE BOUTON/VIGNETTE --- */
.btn-accordion-005 {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  margin: 0;
  
  /* Tailles dynamiques */
  width: var(--size-collapsed-005);
  height: var(--size-active-005);
  border-radius: 6px;
  
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-accordion-005.active-005 {
  width: var(--size-active-005);
}

/* --- L'IMAGE --- */
.img-accordion-005 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}

/* --- ÉTAT : L'IMAGE SÉLECTIONNÉE (ACTIVE) --- */
.btn-accordion-005.active-005 {
  /* Elle devient carrée (prend sa largeur active) */
  width: var(--size-active-005);
  border-radius: 8px; /* Tes coins arrondis de 8px */
  flex-grow: 1; /* Elle prend l'espace disponible si besoin */
}

.btn-accordion-005.active-005 .img-accordion-005 {
  opacity: 1; /* 100% opacité */
}

/* --- ÉTAT : AU SURVOL (HOVER) --- */
/* Règle complexe : On survole un bouton qui N'EST PAS actif */
.image-accordion-005:hover .btn-accordion-005:not(.active-005):hover {
  width: var(--size-active-005); /* Il devient carré */
  border-radius: 8px;
  opacity: 1;
}

.image-accordion-005:hover .btn-accordion-005:not(.active-005):hover .img-accordion-005 {
  opacity: 1;
}

/* --- L'ASTUCE : RÉDUIRE L'ACTIVE AU SURVOL D'UNE AUTRE --- */
/* Quand on survole le menu, si un bouton N'EST PAS survolé ET qu'il est actif... */
.image-accordion-005:hover .btn-accordion-005.active-005:not(:hover) {
  width: var(--size-collapsed-005); /* ...il se contracte temporairement */
  border-radius: 6px;
}

.image-accordion-005:hover .btn-accordion-005.active-005:not(:hover) .img-accordion-005 {
  opacity: 0.25; /* ...et perd son opacité */
}

/* --- LE TITRE -005 --- */
.title-container-005 {
  height: 40px;
  overflow: hidden;
  margin-top: 14px;
  pointer-events: none; /* Le texte ne doit pas bloquer la souris */
}

#accordion-title-005 {
  color: #777777;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease;
}

/* Classe d'animation déclenchée par JS */
#accordion-title-005.up {
  transform: translateY(-100%); /* Remonte hors du champ */
  opacity: 0;
  will-change: transform, opacity; /* Prévient le navigateur pour optimiser le rendu */
  pointer-events: none; /* Empêche le texte de capturer des événements de souris par erreur */
}

/* --- RAPPEL STABILITÉ ACCORDÉON --- */
.image-accordion-005 {
  /* Largeur fixe calculée : 1 active (100%) + 4 collapses (50% x 4) + gaps + paddings */
  /* En lg : 100px + (50px * 4) + (4px * 4) + 4px = 320px environ */
  /* On utilise min-width et max-width pour garantir qu'il ne bouge pas d'un pixel */
  min-width: calc(var(--size-active-005) + (var(--size-collapsed-005) * 4) + 24px);
  max-width: calc(var(--size-active-005) + (var(--size-collapsed-005) * 4) + 24px);
  background-color: #f2f2f2;
  padding: 2px;
  border-radius: 10px;
  display: inline-flex;
  gap: 4px;
}

/* --- CONTENEUR GLOBAL DES CONTENUS --- */
.achievements-container-005 {
  position: relative;
  width: 100%;
  /* La hauteur suit le panneau actif (posée par le JS) : la page glisse au lieu de sauter */
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start; /* sinon le panneau actif est étiré/écrasé à la hauteur fixée */
  overflow: clip;
  overflow-clip-margin: 24px;
}

.btn-accordion-005:focus-visible {
  outline: 2px solid #fb6A4A;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .achievements-container-005 { transition: none; }
}

/* --- STYLE DE CHAQUE DIV DE RÉALISATION --- */
.achievements-005 {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  
  /* On les superpose pour un fondu propre */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* --- ÉTAT ACTIF --- */
.active-content-005 {
  opacity: 1;
  visibility: visible;
  position: relative; /* La div active redonne sa hauteur au parent */
}

/* =========================================
   COCKPITS DIVERSITY -006
   ========================================= */

   /*   surfaces agrandissables pour modules  */

  .surfaces-container {
    display: flex;
    height: max(320px, var(--panel-ref-h, min(75vh, 46vw))); /* même hauteur que le panneau 1 */
    width: 100%;
    gap: 0.5em; /* Pas d'espace entre les surfaces */
    overflow: hidden; /* Pour éviter les débordements */
    align-items: stretch; /* Étire les surfaces sur toute la hauteur */
  }
  
  .surface {
    flex: 1; /* Répartition égale de l'espace */
    transition: flex 0.5s ease; /* Animation douce pour la largeur */
    overflow: hidden; /* Cache les débordements */
    position: relative; /* Pour le positionnement des images */
  }
  
  .surface-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit toute la surface */
    opacity: 0.5; /* Opacité réduite par défaut */
    transition: opacity 0.3s ease; /* Animation douce pour l'opacité */
  }
  
  .surface:hover {
    flex: 2; /* Agrandit la surface au survol */
  }
  
  .surface:hover .surface-img {
    opacity: 1; /* Montre clairement l'image au survol */
  }
  
  .surface:not(:hover) {
    flex: 0.2; /* Réduit les autres surfaces */
  }
  
  /*    SCENE COLORS AMB   */
.amb-container {
  height: max(320px, var(--panel-ref-h, min(75vh, 46vw))); /* même hauteur que le panneau 1 */
}
.amb-row {
  height: 100%;
}
/* marges internes proportionnées à la hauteur réduite (remplace le 8em en ligne) */
#sceneamb {
  padding: clamp(1.5em, 4vw, 4.5em) !important;
}
.amb-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
}
.amb-col-left img {
  max-width: 100%;
  max-height: 8%;
  object-fit: contain;
  margin: 0px 0;
}
.amb-col-right {
  background-color: #898059; /* Exemple de couleur de fond, à adapter */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 2em;
}
.amb-col-right img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.amb-thumb {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.amb-thumb-lg:hover {
  transform: translateX(10px);
}

.thumb-sm:hover {
  cursor: pointer;
}

.bigamb {
  transition: opacity 0.5s ease-in-out;
}
#sceneamb {
  transition: background-color 1s ease;
}

#sceneamb {
  position: relative;
  overflow: hidden;
}

.bigamb {
  transition: opacity 0.3s ease-in-out;
}

/*   GRILLE DETAIL  */

.parent-grille {
	display: grid;
	grid-gap: 0.25em;
	grid-template-columns: auto auto auto auto auto;
	justify-content: space-evenly;

  }
  .zone1 {
	grid-column: 1/6;
	grid-row: 1;
	flex: 0 0 auto;
  }
  .zone2 {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zone3 {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zone4 {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zone5 {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zone6 {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zoneA {
	grid-column: 2/5;
	grid-row: 1;
	flex: auto auto auto;
  }
  .zoneB {
	grid-column: auto;
	grid-row: 1;
	flex: auto auto auto;
  }
  .zoneC {
	grid-column: auto;
	grid-row: 1;
	flex: auto auto auto;
  }
  .zoneD {
	grid-column: 2/5;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zoneE {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }
  .zoneF {
	grid-column: auto;
	grid-row: 2;
	flex: auto auto auto;
  }

  .custom-img {
    width: 100%;
    object-fit: cover;
  }

  /* =========================================
   BrandID -007
   ========================================= */

/* --- LE CONTENEUR DOCK (ZÉRO PADDING) --- */
.brand-dock-007 {
  background-color: #f2f2f2;
  border: 2px solid #f2f2f2; /* Le stroke de 2px */
  padding: 2px; /* + bordure de 2px = 4px, comme le sélecteur semaine / weekend */
  border-radius: 8px;
  display: inline-flex;
  position: relative;
  z-index: 1;
  
  /* Optionnel : pour s'assurer que la bordure ne "mange" pas l'espace intérieur */
  box-sizing: border-box; 
}

/* L'élément qui se déplace */
.nav-indicator-007 {
  position: absolute;
  top: 2px;
  left: 0;
  width: 65px; /* Même largeur qu'un bouton */
  height: 65px; /* Même hauteur */
  background-color: #fb6A4A;
  border-radius: 6px; /* Suit l'arrondi du dock */
  transition: none; /* piloté en JS (left / width), comme le menu de la section 2 */
  z-index: -1; /* Passe derrière les logos */
}

/* --- LES BOUTONS LOGOS ULTRA-COMPACTS --- */
.btn-brand-007 {
  width: 65px; 
  height: 65px;
  padding: 5px;
  background: transparent !important; /* Plus de fond sur les boutons */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.logo-svg-007 {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0.2);
  transition: filter 0.3s ease;
}

/* Changement de couleur du logo quand le bouton est "actif" */
.btn-brand-007.active-brand-007 .logo-svg-007 {
  filter: brightness(0) invert(1);
}

.btn-brand-007.active-brand-007 .logo-svg-007 {
  filter: brightness(0) invert(1);
  /* Logo blanc pur sur le fond rose/gris */
  transform: scale(1.05);
}

/* Hover sur les boutons non-actifs */
.btn-brand-007:not(.active-brand-007):hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.btn-brand-007:not(.active-brand-007):hover .logo-svg-007 {
  filter: brightness(0);
  /* Devient noir pur au survol */
}

/* Adaptabilité mobile */
@media (max-width: 768px) {
  .btn-brand-007 {
    width: 40px;
    height: 40px;
    padding: 0px;
  }
  .nav-indicator-007 {
    width: 40px; /* Même largeur qu'un bouton */
    height: 40px; /* Même hauteur */
  }

  .brand-dock-007 {
    border-radius: 8px;
  }
}

.image-overlay-007 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  border-radius: 2em; /* Pour matcher l'image */
  transition: opacity 0.4s ease, background-color 0.8s ease;
}

/* Classe utilitaire pour l'animation */
.overlay-active {
  opacity: 1 !important;
}

/* L'image elle-même a un petit fade pour la douceur */
.img-fluid {
  transition: opacity 0.3s ease;
}

  /* =========================================
   videos -008
   ========================================= */

   .video-card-008 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
  }
  
  /* CURSEURS */

/* État : Prêt à lire (Play) */
.video-card-008:hover { 
  /* Assure-toi que le chemin vers le dossier est correct */
  cursor: url('images/play-icon.png') 16 16, pointer !important; 
}

/* État : En lecture (Pause) */
.video-card-008.is-playing:hover { 
  cursor: url('images/pause-icon.png') 16 16, pointer !important; 
}

/* On garde impérativement ceci pour éviter que les enfants ne bloquent le curseur */
.video-card-008 * {
  pointer-events: none;
}

/* On maintient la sécurité pour les enfants */
.video-card-008 * {
  pointer-events: none;
}

/* IMPÉRATIF : Empêcher les éléments enfants de bloquer le curseur */
.video-card-008 * {
  pointer-events: none;
}
  
  /* ÉLÉMENTS VISUELS */
  .video-element-008 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0; 
    transition: opacity 0.5s ease;
  }
  
  .poster-008 {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Pour que le clic traverse toujours vers le conteneur */
  }
  
  .logo-overlay-008 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 25%;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
/* =========================================
   videos 
   ========================================= */
  
  /* Dès que la vidéo a été lancée une fois */
  .video-card-008.has-started .video-element-008 {
    opacity: 1; /* La vidéo reste visible, même si .is-playing est retiré */
  }
  
  .video-card-008.has-started .poster-008,
  .video-card-008.has-started .logo-overlay-008 {
    opacity: 0; /* Le poster et le logo disparaissent définitivement */
    visibility: hidden;
  }
  
  /* Cache le poster et le logo DEFINITIVEMENT après le premier play */
.video-card-008.has-started .poster-008,
.video-card-008.has-started .logo-overlay-008 {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

/* Affiche la vidéo après le premier play */
.video-card-008.has-started .video-element-008 {
  opacity: 1;
}


/* From Uiverse.io by ClawHack1 */ 
/* Genel stil */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin: 10px;
}

/* Giriş stil */
.toggle-switch .toggle-input {
  display: none;
}

/* Anahtarın stilinin etrafındaki etiketin stil */
.toggle-switch .toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 24px;
  background-color: #2196F3;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Anahtarın yuvarlak kısmının stil */
.toggle-switch .toggle-label::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background-color: #fff;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

/* Anahtarın etkin hale gelmesindeki stil değişiklikleri */
.toggle-switch .toggle-input:checked + .toggle-label {
  background-color: #4CAF50;
}

.toggle-switch .toggle-input:checked + .toggle-label::before {
  transform: translateX(16px);
}

/* Light tema */
.toggle-switch.light .toggle-label {
  background-color: #BEBEBE;
}

.toggle-switch.light .toggle-input:checked + .toggle-label {
  background-color: #9B9B9B;
}

.toggle-switch.light .toggle-input:checked + .toggle-label::before {
  transform: translateX(6px);
}

/* Dark tema */
.toggle-switch.dark .toggle-label {
  background-color: #4B4B4B;
}

.toggle-switch.dark .toggle-input:checked + .toggle-label {
  background-color: #717171;
}

.toggle-switch.dark .toggle-input:checked + .toggle-label::before {
  transform: translateX(16px);
}

/* =========================================
   popup images big 
   ========================================= */

/* La classe à ajouter sur tes éléments pour activer le curseur */


.fullscreen-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.popup-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2em; /* Tes coins arrondis spécifiques */
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.close-popup {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.close-popup:hover { transform: scale(1.1); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.popup-active { overflow: hidden; }

/* ==========================================================================
   SECTIONS 2 & 3 · DESIGN-TO-CODE (d2c) + COMPÉTENCES (skill)
   Version minimaliste : pas de cartes, des filets fins et de la typographie.
   Remplacent les anciennes classes .tablette*, .chevron,
   .conteneur-transparent et .missions-* (plus utilisées dans index.html).
   ========================================================================== */

#design-to-code,
#competences {
  --d2c-accent: #5f8188;      /* variante assombrie de #7c9da3 (contraste texte blanc) */
  --d2c-orange: #fb6A4A;
  --d2c-text: #424242;
  --d2c-text-soft: #5f5f5f;   /* remplace #777 : meilleur contraste sur fond gris */
  --d2c-line: #cfcdcd;
}

/* Marge latérale garantie (le .container du build Bootstrap n'a pas de padding) */
#design-to-code > .container,
#competences > .container {
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: clip; /* contient les gouttières négatives des .row */
}


/* =========================================
   SECTION 2 · DESIGN-TO-CODE  (d2c)
   ========================================= */

.d2c-section {
  background-color: #e3e1e1;
}

.d2c-heading {
  text-align: center;
}

@media (min-width: 992px) {
  .d2c-heading {
    text-align: right;
  }
}

.d2c-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--d2c-text-soft);
}

.d2c-text {
  color: var(--d2c-text);
}

.d2c-domains {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--d2c-text-soft);
}

.d2c-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d2c-text-soft);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--d2c-line);
}

/* --- Chiffres clés : une ligne de chiffres séparés par des filets --- */
.d2c-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 4.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--d2c-line);
  border-bottom: 1px solid var(--d2c-line);
  row-gap: 1.5rem;
}

.d2c-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1rem;
}

.d2c-stat:nth-child(even) {
  border-left: 1px solid var(--d2c-line);
}

@media (min-width: 992px) {
  .d2c-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .d2c-stat + .d2c-stat {
    border-left: 1px solid var(--d2c-line);
  }
}

.d2c-stat-value {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--d2c-text);
}

.d2c-stat-label {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--d2c-text-soft);
}

/* --- Principes : texte seul, petit trait bleu (couleur d'emphase) --- */
.d2c-principles {
  margin-bottom: 4.5rem;
}

.d2c-principle-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--d2c-text);
  margin: 0 0 0.5rem;
}

.d2c-principle-title::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 0.9rem;
  background-color: var(--emphasis);
}

.d2c-principle p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--d2c-text-soft);
  margin: 0;
}

/* --- Chaîne de production --- */
.d2c-flow {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--d2c-line);
  border-radius: 1rem;
  overflow: hidden;
}

.d2c-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.d2c-step-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--d2c-text);
  margin: 0 0 0.25rem;
}

.d2c-step p {
  margin: 0;
  line-height: 1.4;
  color: var(--d2c-text-soft);
}

/* Étape centrale : chevron vers le bas sur mobile… */
.d2c-step--core {
  --s: 1.5rem;
  position: relative;
  isolation: isolate;
  background-color: #ffffff;   /* le blanc continue sous la flèche : plus de bords verticaux visibles */
  padding: calc(2rem + var(--s)) 1.5rem;
}

.d2c-step--core::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--d2c-accent);
  clip-path: polygon(0 0, 50% var(--s), 100% 0,
                     100% calc(100% - var(--s)), 50% 100%, 0 calc(100% - var(--s)));
}

.d2c-step--core .d2c-step-title,
.d2c-step--core p {
  color: #ffffff;
}

/* …flèche vers la droite à partir de lg */
@media (min-width: 992px) {
  .d2c-flow {
    grid-template-columns: 1fr 1.15fr 1fr;
  }

  .d2c-step--core {
    --s: 2rem;
    padding: 2rem calc(1.5rem + var(--s));
  }

  .d2c-step--core::before {
    clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 50%,
                       calc(100% - var(--s)) 100%, 0 100%, var(--s) 50%);
  }
}

.d2c-step--core .d2c-deliverables {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.d2c-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.d2c-flags img {
  width: 1.75rem;
  height: 1.75rem;
}


/* =========================================
   SECTION 3 · COMPÉTENCES  (skill)
   ========================================= */

.skills-section {
  background-color: #efeeee;
}

.skill {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #c4c2c2;
}

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

.skill-step {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--emphasis);
}

.skill-icon {
  font-size: 28px;
  color: var(--d2c-text-soft);
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--d2c-text);
  margin: 0;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--d2c-text);
}

.skill-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--d2c-text-soft);
}

/* Exemple calé en bas de colonne : les 4 colonnes restent alignées */
.skill-example {
  margin: auto 0 0;
  min-height: calc(4.35em + 0.9rem); /* 3 lignes : filets alignés d'une colonne à l'autre */
  padding-top: 0.9rem;
  border-top: 1px dashed #c4c2c2;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--d2c-text-soft);
}

.skill-example strong {
  color: var(--d2c-text);
  font-weight: 600;
}


/* ==========================================================================
   SÉLECTEURS SEGMENTÉS (langue FR | EN  et  semaine | weekend)
   Un indicateur élastique glisse sous le bouton actif (voir makeSeg, animations.js)
   ========================================================================== */

.seg {
  --seg-accent: #424242;
  position: relative;
  display: inline-flex;
  padding: 4px;
  background-color: #f2f2f2;
  border-radius: 10px;
  isolation: isolate;
}

.seg-btn {
  position: relative;
  z-index: 1;
  min-width: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #5f5f5f;
  cursor: pointer;
  transition: color 0.25s ease;
}

.seg-btn.is-active { color: #ffffff; }
.seg-btn:not(.is-active):hover { color: #2f2f2f; }
.seg-btn:focus-visible { outline: 2px solid var(--seg-accent); outline-offset: 2px; }

.seg-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 7px;
  background-color: var(--seg-accent);
  transition: background-color 0.9s ease;
}

.seg-lang { --seg-accent: #fb6A4A; }
.seg-lang .seg-indicator { box-shadow: 0 2px 8px rgba(251, 106, 74, 0.45); }
.seg-lang .seg-btn { min-width: 2.5rem; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.seg-mood { --seg-accent: var(--mood-accent); box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px; }
.seg-mood .seg-btn { padding: 0.5rem 1.4rem; }

.lang-slot { flex: 1; display: flex; justify-content: center; }
@media (min-width: 768px) { .lang-slot { justify-content: flex-start; } }


/* ==========================================================================
   HERO : portrait, humeur « semaine / weekend »
   ========================================================================== */

:root {
  /* Deux couleurs, deux rôles :
     --emphasis  = bleu, pour mettre un texte en valeur (pastilles, chiffres, repères)
     --clickable = orange, réservé à ce sur quoi on peut cliquer (boutons, sélecteurs) */
  --emphasis: #5f8188;
  --clickable: #fb6A4A;
  --mood-shape: #7c9da3;
  --mood-pill: var(--emphasis);
  --mood-accent: var(--clickable);
}
html[data-mood="weekend"] {
  --mood-shape: #f08a5d;
}

.hero-portrait { overflow: visible; }

/* La forme colorée dépasse très légèrement du portrait et suit la métamorphose avec un temps de retard */
#bgShape {
  fill: var(--mood-shape);
  transition: fill 0.9s ease;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.035);
}

/* Les deux textes occupent la même cellule ; seul l'actif est visible */
.mood-stage {
  position: relative;
  display: grid;
  width: 100%;
}
.mood-text {
  grid-area: 1 / 1;
  align-self: center;
  position: relative;
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
}
.mood-text.is-active { visibility: visible; pointer-events: auto; }

.mood-lines { margin: 0; }
.ml { display: block; overflow: hidden; padding: 0.08em 0; margin: -0.08em 0; }
.ml-i { display: block; will-change: transform; }

.mood-lines .text-rotater { display: inline-block; }

/* La pastille est un élément unique qui glisse d'un texte à l'autre */
.pill-ghost {
  position: absolute;
  z-index: 0;
  left: 0; top: 0; width: 0; height: 0;
  border-radius: 4px;
  background-color: var(--mood-pill);
  pointer-events: none;
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, height 0.35s ease, background-color 0.9s ease;
}
.mood-text .pill-text { background-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .pill-ghost, #bgShape, .seg-indicator { transition: none; }
}


/* ==========================================================================
   CONTACT + PIED DE PAGE
   ========================================================================== */

.contact-section { background-color: #e3e1e1; }
.contact-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-left: 1rem; padding-right: 1rem; }

.contact-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #5f5f5f;
  text-align: center;
}
.contact-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: #3fa06b;
  box-shadow: 0 0 0 0 rgba(63, 160, 107, 0.5);
  animation: contact-pulse 2.4s ease-out infinite;
}
@keyframes contact-pulse {
  70%, 100% { box-shadow: 0 0 0 0.6rem rgba(63, 160, 107, 0); }
}

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1.25rem;
}
.contact-address { color: #424242; text-decoration: none; font-weight: 500; }
.contact-address:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #c4c2c2;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: #5f5f5f;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.contact-copy .material-symbols-rounded { font-size: 1.1rem; }
.contact-copy:hover { color: #424242; border-color: #8f8d8d; }
.contact-copy:focus-visible,
.contact-links a:focus-visible,
.footer-links a:focus-visible { outline: 2px solid #fb6A4A; outline-offset: 3px; }
.contact-copy.is-copied { color: #2f7d52; border-color: #2f7d52; background-color: rgba(63, 160, 107, 0.08); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.contact-links[hidden], .contact-links li[hidden] { display: none; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #424242;
  text-decoration: none;
  border-bottom: 1px solid #b5b3b3;
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-links a:hover { color: #000; border-color: #fb6A4A; }
.contact-links .material-symbols-rounded { font-size: 1.1rem; }

/* « Goodbye » : discret, il clôt la page */
.contact-bye { margin-top: 4.5rem; }
.contact-bye .h2 { font-size: 1.5rem; margin: 0; }

.site-footer { padding: 1.25rem 1rem 1.5rem; text-align: center; font-size: 0.9rem; color: #6c757d; }
.site-footer p { margin: 0; }
.footer-links { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.footer-links a { color: #5f5f5f; text-decoration: none; }
.footer-links a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .contact-dot { animation: none; } }


/* Marge sous les panneaux 2 à 5 avant la section contact (le panneau 1 reste collé : sa bande colorée va jusqu'au bord) */
.achievements-005:not(#achievements-005-01) {
  padding-bottom: 4rem;
}


/* Les deux panneaux latéraux de la chaîne (équipe design / développement) ressortent en blanc sur le fond de section */
.d2c-step:not(.d2c-step--core) {
  background-color: #ffffff;
}

/* Page des mentions légales */
.legal-page { background-color: #efeeee; min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 3rem 1rem 4rem; color: #424242; line-height: 1.6; }
.legal-main h1 { font-size: 2rem; font-weight: 400; margin: 1.5rem 0 2rem; color: #424242; }
.legal-main h2 { font-size: 1.1rem; font-weight: 600; margin: 2.25rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid #cfcdcd; color: #424242; }
.legal-main p, .legal-main li { color: #4a4a4a; }
.legal-main a { color: #424242; text-underline-offset: 3px; }
.legal-main a:hover { color: #000; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-back { display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; border-bottom: 1px solid #b5b3b3; padding-bottom: 2px; }
.legal-back:hover { border-color: var(--clickable); }
.legal-todo { background: #fff3cd; padding: 0 0.3em; border-radius: 3px; }
html[lang="fr"] .legal-en, html[lang="en"] .legal-fr { display: none; }
.footer-legal { color: inherit; text-decoration: none; }
.footer-legal:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
