
.tooltip-content.tooltip-left {
  left: auto !important;
  right: 100% !important;
  top: 50%;
  transform: translateY(-60%);
}

.tooltip-content.tooltip-right {
  left: 0 !important;
  right: auto !important;
  top: 50% !important;
  transform: none !important;
}

/* Sections principales avec grain léger */

#presentation,
#bagages,
#itineraire,
#projets,
#passeport-portfolio,
#contact {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-sizing: border-box;
  z-index: 0;
}

/* Dégradés colorés (existants, à ajuster si besoin) */
#presentation {
  background: linear-gradient(135deg, #a6d48f 0%, #ffffff 50%, #c9e5af 100%);
  padding: 80px 20px;
}

#bagages {
  background: linear-gradient(315deg, #82c3b0 0%, #ffffff 50%, #a6d8c6 100%);
  padding: 80px 20px;
}

#itineraire {
  background: linear-gradient(135deg, #9baedc 0%, #ffffff 50%, #bfcdee 100%);
  padding: 80px 20px;
}

#projets {
  background: linear-gradient(315deg, #b996bb 0%, #fdf6fc 50%, #d3b7d6 100%);
  padding: 80px 20px;
}

#passeport-portfolio {
  background: linear-gradient(135deg, #e9825f 0%, #fff7f0 50%, #f7ad92 100%);
  padding: 80px 20px;
}

#contact {
  background: linear-gradient(315deg, #f4d978 0%, #fffdea 50%, #fbf4a9 100%);
  padding: 80px 20px;
}

/* Effet grain léger sur toutes les sections via pseudo-élément */
#presentation::after,
#bagages::after,
#itineraire::after,
#projets::after,
#passeport-portfolio::after,
#contact::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 3px 3px;
  border-radius: 20px;
  z-index: 1;
}

/* =============================
   FOOTER CONTACT
============================= */
.footer-contact {
  color: var(--bg-light);
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 500;
  line-height: 0.1;
}

/* Styles des boutons "En savoir plus" dans les fenêtres de la timeline */

.link-voir-plus {
  color: var(--accent-yellow);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.link-voir-plus:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* Fenêtres modales */
.popup-detail {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.popup-detail.active {
  display: flex;
}

.popup-inner {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
}

/* Bouton de fermeture */
.btn-close {
  background-color: var(--accent-red);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* =============================
    GLOBAL STYLES
============================= */

/* Import Google Fonts Nunito Sans et Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&family=Montserrat&display=swap');

/* Application des polices */
h1 {
  font-family: 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

h2 {
  font-family: 'Montserrat', sans-serif;
}

body,
p,
h3,
h4,
h5,
h6 {
  font-family: 'Nunito Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

:root {
  --main-blue: #001827;
  --accent-red: #D14556;
  --accent-red-dark: #9D2D3B;
  --accent-yellow: #E2C764;
  --bg-light: #F4F1EB;
  --gray-light: #E6EBF0;
  --accent-green: #3AA884;
}

/* =============================
    RESET & BASE
============================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg-light);
  color: #1A1F71;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a,
.burger,
.bagage-icon {
  transition: all 0.3s ease;
}

/* =============================
    HEADER
============================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--main-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  z-index: 999;
}

header.scrolled {
  background: var(--bg-light);
}

header.scrolled nav.nav-links {
  display: none;
}

/* Monogramme */
.monogramme img#monogramme {
  height: 45px;
  transition: all 0.3s ease;
}

/* Navigation Links */
nav.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 500;
  color: var(--bg-light);
  font-size: 15px;
}

nav.nav-links a img.menu-icon {
  width: 22px;
  height: 22px;
}

header.scrolled nav.nav-links a {
  color: #1A1F71;
}

header.scrolled nav.nav-links a img.menu-icon {
  filter: invert(1);
}

/* Burger Menu */
.burger {
  display: none;
  width: 45px;
  height: 45px;
  background-color: var(--main-blue);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger-icon {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}

/* Show burger only when scrolled */
header.scrolled .burger {
  display: flex;
}

section {
  width: 100%;
  padding: 40px 20px 60px 20px;
  position: relative;
  box-sizing: border-box;
  background: none;
}

/* Headings */
/* Les styles de titres sont conservés, mais la police est désormais contrôlée en tête de fichier */
h1,
h2,
h3 {
  margin-bottom: 12px;
}

h1 {
  font-size: 36px;
  text-align: center;
}

h2 {
  font-size: 28px;
  text-align: center;
  color: #1A1F71;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-yellow);
  margin: 10px auto 20px auto;
  border-radius: 5px;
}

h3 {
  font-size: 22px;
  text-align: center;
  color: var(--accent-yellow);
}

/* Title Block */
.title-block {
  background: transparent;
  box-shadow: none;
  margin-top: 80px;
  text-align: center;
}

.title-block p {
  font-size: 16px;
  color: #3b3b3b;
}

.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =============================
    MOBILE MENU
============================= */
#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 50, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 998;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  color: var(--bg-light);
  font-size: 24px;
}

/* =============================
    HERO
============================= */
/* HERO SECTION with blurred/opacity background using pseudo-element */
.hero-section {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 60px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(225, 245, 255, 0.25), rgba(235, 250, 255, 0.25)), url('Images/Avion.png') no-repeat center center;
  background-size: cover;
  mix-blend-mode: lighten;
  opacity: 0.15;
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

/* .hero-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); 
  filter: blur(4px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
} */

/* .hero-section::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: auto;
  background-image: url('Images/Avion.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
} */

/* === HERO OVERLAY ASSOMBRISSANT & FLOU === */
/* Remove previous hero-section::before and ::after overlays for clarity */

@keyframes bg-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Ensure above hero-section::after background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  margin: 0px;
  animation: fadeInDown 1s ease forwards;
}

.hero-section h1 {
  font-size: 3rem;
  color: #1A1F71;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.signature {
  font-family: 'Pacifico', cursive;
  /* (ou autre effet signature) */
  font-size: 1.6rem;
  color: var(--accent-yellow);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 3rem;
  color: #1A1F71;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-red);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-red-dark);
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.intitule-pro {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 15px;
  text-align: center;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-slogan {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3b3b3b;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  text-align: center;

  /* Animation */
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.8s;
  /* Délai pour que le slogan arrive après l'intitulé */
  opacity: 0;
  /* Commence invisible */
}

/* =============================
    HERO ILLUSTRATION (SVG AVION)
============================= */

.hero-illustration {
  display: none;
}

.hero-illustration img.flight-path {
  width: 100%;
  height: auto;
}

/* =============================
   PRESENTATION
============================= */

/* =============================
   PRESENTATION
============================= */
/* PRESENTATION Pastel oblique gradient */
/* Alternance d’angle de dégradé pour les sections principales */
#presentation {
  background: linear-gradient(135deg, #a6d48f 0%, #ffffff 50%, #c9e5af 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

/* Card styles for presentation section */
.presentation-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 50px 30px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Grid layout for presentation items */
.presentation-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

/* Individual presentation items */
.presentation-item {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 350px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 1px solid #e0dbe8;
  /* violet pastel discret */
}

/* Remove left border for the first item */
.presentation-item:first-child {
  border-left: none;
}

/* Hover effect for presentation items */
.presentation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Heading styles for presentation items */
.presentation-item h3 {
  font-size: 20px;
  color: #0e2c38;
  margin-bottom: 15px;
}

/* Text styles for presentation items */
.presentation-item p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* =============================
   SUBTITLE GLOBAL STYLE
============================= */
.subtitle {
  font-size: 1.2rem;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 40px;
  text-align: center;
  color: var(--accent-green);
}

/* =============================
   BAGAGES PROFESSIONNELS
============================= */
.bagages-section {
  display: flex;
  justify-content: center;
  background: linear-gradient(rgba(58, 181, 143, 0.4), rgba(114, 191, 68, 0.4)),
    url('Images/Fond_projet.png') no-repeat center center;
  background-size: cover;
  margin-bottom: 0;
  /* mis à 0 */
  /* padding-bottom supprimé */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  z-index: 0;
}

.bagages-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
}

.bagages-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
}

.bagages-card {
  background: white;
  border-radius: 20px;
  padding: 50px 30px;
  max-width: 1280px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  z-index: 2;
  position: relative;
}

.bagages-card h2 {
  font-size: 2.2rem;
  color: #1A1F71;
  margin-bottom: 10px;
}

/* Removed section-specific subtitle font and color: unified by .subtitle */

#bagages {
  background: linear-gradient(315deg, #82c3b0 0%, #ffffff 50%, #a6d8c6 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

.bagages-circle-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 0 auto;
  background-color: transparent;
  /* Couleur douce */
}

.center-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: spin 60s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Les icônes placées en cercle */
.bagage-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  /* ajustez si besoin */
  text-align: center;
  /* 1) on centre l’élément,
     2) on tourne suivant son index,
     3) on décale sur le cercle,
     4) on redresse l’icône */
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translate(250px) rotate(calc(var(--i) * -60deg));
  z-index: 2;
}

.bagage-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
}

.bagage-icon p {
  font-size: 14px;
  color: #1A1F71;
  margin: 0;
}

.bagage-icon {
  opacity: 0;
  transform: scale(0);
  transition: transform .3s ease, opacity .3s ease;
}

.bagage-icon.active {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translate(250px) rotate(calc(var(--i) * -60deg));
}

/* =============================
   ITINERAIRE
============================= */

#itineraire {
  background: linear-gradient(135deg, #9baedc 0%, #ffffff 50%, #bfcdee 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

/* 1. Centrage et espacement du bloc titre + sous‑titre */
#itineraire .itineraire-card>div:first-child {
  text-align: center;
  margin-bottom: 40px;
  /* espace sous le sous‑titre */
}

/* 2. Reprise du style de h2 (titre) des autres sections */
#itineraire .itineraire-card h2 {
  font-size: 2.2rem;
  /* même taille que les autres */
  color: #1A1F71;
  margin-bottom: 10px;
  /* écarter légèrement du sous‑titre */
}

#itineraire .itineraire-card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-yellow);
  margin: 10px auto 20px auto;
  /* séparateur vert centré */
  border-radius: 5px;
}

/* Removed section-specific subtitle font and color: unified by .subtitle */
#itineraire .itineraire-card .subtitle {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.itineraire-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 50px 30px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

/* Section Itineraire : z-index confirmé pour permettre l'affichage du fond */
/* Nouvelle superposition pour #itineraire */
#projets {
  background: linear-gradient(315deg, #b996bb 0%, #fdf6fc 50%, #d3b7d6 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

/* #itineraire::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  z-index: 0;
  pointer-events: none;
} */

.itineraire-card {
  position: relative;
  z-index: 2;
}

.box-timline {
  width: 100%;
  height: 1500px;
  /* AENLEVER APRES*/
  background: #f1F1F1;
  position: relative;
  padding: 80px 0 250px 0;
}

.ligne {
  height: 1112px;
  width: 8px;
  position: relative;
  margin: 0 auto;
  background: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}

.r1 {
  top: 200px;
}

.r2 {
  top: 329px;
}

.r3 {
  top: 458px;
}

.r4 {
  top: 587px;
}

.r5 {
  top: 716px;
}

.r6 {
  top: 845px;
}

.r7 {
  top: 974px;
}

.r8 {
  top: 1103px;
}

.r9 {
  top: 1232px;
}

/* =============================
   ITINERAIRE
============================= */

.box {
  color: #001827;
  width: 400px;
  min-height: 100px;
  padding: 10px;
  border-radius: 12px;
  height: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

/* Couleur de bordure pour les expériences (rouge foncé) */
.box.e {
  border-left: 5px solid #7A1F29;
}

/* Couleur de bordure pour les formations (jaune) */
.box.f {
  border-left: 5px solid var(--accent-yellow);
}

.b1 {
  top: 200px;
  left: calc(50% - 270px);
}

.b2 {
  top: 329px;
  left: calc(50% + 270px);
}

.b3 {
  top: 458px;
  left: calc(50% - 270px);
}

.b4 {
  top: 587px;
  left: calc(50% - 270px);
}

.b5 {
  top: 716px;
  left: calc(50% + 270px);
}

.b6 {
  top: 845px;
  left: calc(50% - 270px);
}

.b7 {
  top: 974px;
  left: calc(50% + 270px);
}

.b8 {
  top: 1103px;
  left: calc(50% - 270px);
}

.b9 {
  top: 1232px;
  left: calc(50% - 270px);
}

.box p {
  line-height: 20px;
  font-size: 18px;
  margin: 5px 0 8px 0;
  margin-left: 15px;
}

.box h3 {
  font-size: 18px;
  /* réduction depuis 20px */
}

.circle-e {
  width: 24px;
  height: 24px;
  background: #7A1F29;
  border-radius: 50%;
  border: 4px solid white;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
}

.circle-f {
  width: 24px;
  height: 24px;
  background: var(--accent-yellow);
  border-radius: 50%;
  border: 4px solid white;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
}

/* Couleurs personnalisées pour les titres */
.e h3 {
  color: #7A1F29;
}

.f h3 {
  color: var(--accent-yellow);
}

/* =============================
    PROJETS
============================= */

.projets-card h2 {
  font-size: 2.2rem;
  color: #1A1F71;
  margin-bottom: 10px;
}

/* Removed section-specific subtitle font and color: unified by .subtitle */

.projets_subtitle {
  padding-bottom: 50px;
}

.projets-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 50px 30px;
  max-width: 1280px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.projets-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.projet-item {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.projet-item h3 {
  font-size: 18px;
  /* réduction depuis 20px */
  color: #0e2c38;
  margin-bottom: 10px;
}

.projet-item ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: #444;
  text-align: left;
}

.projet-item ul li {
  margin-bottom: 8px;
}


/* =============================
    PASSPORT / PORTFOLIO
============================= */
#passeport-portfolio {
  background: linear-gradient(135deg, #e9825f 0%, #fff7f0 50%, #f7ad92 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

.section-card h2 {
  font-size: 2.2rem;
  color: #1A1F71;
  margin-bottom: 10px;
}



/* Removed section-specific subtitle color: unified by .subtitle */


.section-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 50px 30px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.double-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.double-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 500px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.double-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.double-card h3 {
  font-size: 20px;
  /* réduction depuis 22px */
  color: #0e2c38;
  margin-bottom: 15px;
}

.double-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

.btn-download {
  background-color: var(--accent-red);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
}

.btn-download:hover {
  background-color: var(--accent-red-dark);
}

/* =============================
    FOOTER
============================= */
footer {
  text-align: center;
  padding: 60px 20px 40px 20px;
  background: var(--main-blue);
}

footer p {
  color: var(--bg-light);
  font-size: 14px;
  margin-top: 20px;
}

/* =============================
    RESPONSIVE
============================= */


@media screen and (max-width: 768px) {
  nav.nav-links {
    display: none;
  }

  header.scrolled nav.nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .bagages-circle-container {
    height: 300px;
  }

  .center-symbol {
    width: 100px;
    height: 100px;
  }

  .bagage-icon.active {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translate(120px) rotate(calc(var(--i) * -60deg));
  }
  
}

@media screen and (max-width: 1000px) {

  .ligne {
    position: relative;
    left: 200px;
  }

  .rond {
    left: calc(50% + 200px);
  }

  .box {
    left: calc(50% - 50px);
    width: 300px;
  }

  .box p {
    line-height: 10px;
    font-size: 13px;
    margin: 10px 0 20px 0;
  }

  .box h3 {
    font-size: 14px;
  }

}

/* =============================
   UTILITAIRES
============================= */
.accent-yellow {
  color: var(--accent-yellow);
}

.bg-accent-yellow {
  background-color: var(--accent-yellow);
}




/* =============================
   FOOTER SOCIAL ICONS
============================= */
.footer-social {
  margin-bottom: 30px;
}

.footer-social p {
  color: var(--bg-light);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-social a {
  display: inline-block;
  margin: 0 18px;
}

.footer-social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.3);
}


/* =============================
   BAGAGES TOOLTIP CONTENT
============================= */
.tooltip-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 99999;
  display: none;
  flex-direction: column;
  text-align: left;
  animation: fadeIn 0.4s ease-in-out;
  backdrop-filter: blur(6px);
  max-width: 300px;
  pointer-events: auto;
}

.tooltip-content.visible {
  display: flex !important;
}

/* Réactive l’affichage des tooltips au survol uniquement si elles ne sont pas déjà ouvertes (.visible) */
.bagage-icon:hover .tooltip-content:not(.visible),
.tooltip-content:hover:not(.visible) {
  display: flex !important;
}

/* Désactive le hover natif sur les tooltips pour éviter les conflits */
/* Removed empty ruleset: .bagage-icon:hover .tooltip-content */

.tooltip-content.tooltip-top {
  bottom: 95%;
  top: auto;
}

.tooltip-content strong {
  color: var(--main-blue);
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
}

.tooltip-content p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.bagage-icon:hover {
  z-index: 1000;
}



/* =============================
   PORTFOLIO / PASSEPORT BACKGROUND
============================= */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  padding: 0;
  border: none;
  z-index: 99999;
  /* Increased to ensure it floats above all */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(30px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.scroll-to-top:hover img {
  transform: scale(1.1);
}

/* =============================
   CTA BUTTONS VARIANTS
============================= */
/* Unified CTA styles */
.cta-principal {
  background-color: var(--accent-red);
  color: white;
}

.cta-principal:hover {
  background-color: var(--accent-red-dark);
  color: white;
}

.cta-secondaire {
  background-color: var(--accent-yellow);
  color: #1A1F71;
}

.cta-secondaire:hover {
  background-color: #d1b750;
  color: #1A1F71;
}

.cta-subtil {
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--accent-yellow);
  color: #1A1F71;
}

/* Différenciation plus forte pour les titres h3 dans les sections concernées */
#presentation .presentation-item h3,
#bagages .bagages-card h3,
#itineraire .box h3,
#projets .projet-item h3,
#passeport-portfolio .double-card h3 {
  color: #1A1F71;
}

/* =============================
   MODAL POPUP LISTS (popup-inner ul)
============================= */
.popup-inner ul {
  list-style-position: outside;
  /* puces hors du bloc de texte */
  padding-left: 25px;
  /* espace pour décaler les puces */
  text-align: left;
  /* alignement du texte à gauche */
}

.popup-inner ul li {
  margin-bottom: 8px;
}

.popup-inner h3 {
  margin-bottom: 15px;
  /* léger espacement sous le titre */
}

/* =============================
   CONTACT SECTION
============================= */
#contact {
  background: linear-gradient(315deg, #f4d978 0%, #fffdea 50%, #fbf4a9 100%);
  padding: 80px 20px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

/* ============================================
   NAVIGATION EN NUNITO SANS (spécifique)
===============================================*/
nav.nav-links a {
  font-family: 'Nunito Sans', sans-serif !important;
  font-style: normal !important;
  font-weight: 600;
}

/* ============================================
   NOM JOHAN CHATELLIER EN h1 SANS ITALIQUE
===============================================*/
.hero-section h1 {
  font-style: normal !important;
  font-family: 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

@media screen and (max-width: 430px) {
  body {
    line-height: 1.3;
  }

  .hero-section {
    padding: 50px 20px;
  }

  .popup-inner {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-sizing: border-box;
    padding: 20px;
  }

  /* 2. Réintègre l’axe vertical .ligne sur mobile */
  .ligne {
    position: absolute;
    top: 40px;
    height: calc(100% - 60px);
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #1A1F71;
    z-index: -1;
  }

  /* 4. Décale verticalement les blocs .box-timeline pour aligner avec les points .rond */
  .box-timeline {
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
  }

  /* 3. Réintègre les cercles .rond centrés sur l’axe vertical (restaure le style desktop) */
  .rond {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 5px solid #1A1F71;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  /* 1. Empilement fluide des blocs .box, structure fluide et scrollable */
  .box {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 90%;
    margin: 0 auto 30px auto;
    z-index: 1;
    /* Pour éviter collision avec .ligne/.rond */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* assure le contexte pour .rond position: absolute */
  }

  .box.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Ajout du point intégré à chaque bloc .box */
  .box {
    position: relative;
  }
  .box .rond {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 5px solid #1A1F71;
    border-radius: 50%;
    z-index: 2;
  }

  /* Masquer les ronds globaux positionnés hors .box */
  .rond:not(.box .rond) {
    display: none;
  }

  .itineraire-card {
    padding-bottom: 40px;
  }

  /* Réduction de la marge du sous-titre dans la section itinéraire */
  #itineraire .itineraire-card .subtitle {
    margin: 0;
  }

  /* Supprime la marge basse du bloc titre+sous-titre dans itinéraire en mobile */
  #itineraire .itineraire-card > div:first-child {
    margin-bottom: 0;
  }

  /* ============================
     TOOLTIP CONTENT MOBILE FIX
  ============================ */
  .tooltip-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    max-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    display: none !important;
    /* Only show when .visible */
    flex-direction: column;
    text-align: left;
    pointer-events: auto;
  }

  .tooltip-content.visible {
    display: flex !important;
  }

  /* Correction pour tooltip-left : ancrage à gauche de l’icône, sans recentrage */
  .tooltip-content.tooltip-left {
    right: calc(100% + 6px) !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

}
/* =============================
   CROIX DE FERMETURE MODALE
============================= */

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  z-index: 10000;
}

.projets-double-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.projet-double-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 30px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.projet-double-card .projet-visuel {
  flex: 0 0 300px;
  max-width: 100%;
}

.projet-double-card .projet-visuel img.img-projet {
  border-radius: 12px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.projet-double-card .projet-texte {
  flex: 1;
  min-width: 250px;
}

.projet-double-card .projet-texte h3 {
  font-size: 22px;
  color: #1A1F71;
  margin-bottom: 15px;
}

.projet-double-card .projet-texte ul {
  list-style: none;
  padding-left: 0;
  font-size: 15px;
  color: #444;
  margin-bottom: 20px;
}

.projet-double-card .projet-texte ul li {
  margin-bottom: 10px;
}

.projet-double-card .cta-button {
  display: inline-block;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .projet-double-card {
    text-align: center;
  }

  .projet-double-card .projet-texte {
    text-align: center;
  }

  .projet-double-card .projet-texte ul {
    text-align: left;
  }
}

/* Correction spécifique du bouton e-mail mal centré */
a[href^="mailto:"] {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}