:root {
  /* Neutres pour fonds */
  --color-bg-light: #EDEDE9;
  --color-bg-medium: #F5EBE0;
  --color-surface: #FFFFFF;

  /* Couleurs d’accent / composants */
  --color-accent-1: #D6CCC2;
  --color-accent-2: #E3D5CA;
  --color-accent-3: #D5BDAF;

  /* Texte */
  --color-text: #333333;
  /* gris foncé pour le contraste */
  --color-text-muted: #666666;
  /* gris moyen pour les sous-titres */
  --bg-color: #f1f1f1;
	--card-width: 300px;
	--card-height: 400px;
	--black: #080808;
	--white: #fafafa;
	--frame-color: rgba(8, 8, 8, 0.8);
	--transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	--transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-feature-settings: "salt" 1, "ss01" 1, "ss02" 1;
	color: var(--black);
}

html {
  /* tous les scrolls d’ancrage/html seront animés en “smooth” */
  scroll-behavior: smooth;
}


body {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--color-text);
}


p,
li,
.subtitle {
  color: var(--color-text-muted);
}

a,
.btn,
.sidebar-icon:hover {
  color: var(--color-accent-2);
}

.btn,
.sidebar-icon {
  background-color: var(--color-accent-1);
  transition: background-color .3s;
}

.btn:hover,
.sidebar-icon:hover {
  background-color: var(--color-accent-3);
}

.absolute {
  position: absolute;
  top: 50px !important;
  inset: 0;
  justify-content: center;
  display: inline-block;
  flex-direction: row;
}

.justify-center {
  justify-content: center;
}

/* ========================================
   FULLSCREEN OVERLAY
   ======================================== */
/* === Overlay === */
/* === Overlay === */
#loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #d3cdc6;
  z-index: 9999;
  transition: opacity 1.2s ease;
  opacity: 1;
}
#loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* === Wave text === */
.wave-text {
  display: flex;
  gap: 0.5em; /* espace entre les mots */
}

.wave-text span {
  display: inline-block;
  margin: 0;
  padding: 0;
  animation: wave 1s infinite alternate;
}
@keyframes wave {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   2. Link Reset
   Remove underlines and inherit color for key links
   ========================================================================== */
.btn-cv a,
.carte-projet a,
.carte-projet a h3,
.carte-projet a p {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   4. Navbar
   --------------------------------------------------------------------------
   4.1 Default – transparent, centered with underline
   4.2 Scrolled – vertical “drawer” on right
   ========================================================================== */

/* ==========================================================================
   4. Navbar
   --------------------------------------------------------------------------
   4.1 Default – transparent, centered with underline
   4.2 Scrolled – vertical “drawer” on right
   ========================================================================== */

/* ============================================
   NAVBAR → SIDEBAR au scroll
   ============================================ */

/* ——— 1) Style par défaut : barre horizontale ——— */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 1rem 0;
  z-index: 1000;
}
#main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main-nav li a {
  position: relative;
  color: #4b3a3a;
  text-decoration: none;
  font-weight: bold;
}
#main-nav li a .sidebar-icon {
  display: none;      /* on cache l’icône en mode horizontal */
}
#main-nav li a .nav-text {
  display: inline-block;
}

/* (facultatif) souligner l’item actif */
#main-nav li a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 40%;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

/* ——— 2) Quand on scroll → on bascule en “scrolled” ——— */
#main-nav.scrolled {
  /* on passe en barre verticale fixe à gauche */
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: auto;
  background: transparent;
}
#main-nav.scrolled ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
#main-nav.scrolled ul:hover {
  opacity: 1;
}

/* ——— 3) Inverser texte ↔ icônes en mode vertical ——— */
#main-nav.scrolled li a .nav-text {
  display: none;     /* plus de texte */
}
#main-nav.scrolled li a .sidebar-icon {
  display: block;    /* on montre l’icône */
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  border-radius: 50%;
  overflow: hidden;
}

/* ——— 4) Cercle “glassmorphism” autour des icônes ——— */
#main-nav.scrolled li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}
#main-nav.scrolled li:hover a {
  background: rgba(255,255,255,0.35);
  transform: translateX(0.2rem);
}


/* ==========================================================================
   6. Hero 
   ========================================================================== */
.hero {
  /* prends presque tout l’écran */
  min-height: 91vh;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100vw;
  height: 200px;
  transform: rotate(2deg);
  transform-origin: top left;
  z-index: -1;
}

.slogan {
  font-size: 1.2em;
  font-style: italic;
  color: #a0522d;
}

/* les spans n’ont PAS d’animation tant que .animate n’est pas sur le parent */
.word-by-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

/* on décale chaque mot de 0.3s */
.word-by-word.animate span:nth-child(1) {
  animation-delay: 0.3s;
}

.word-by-word.animate span:nth-child(2) {
  animation-delay: 0.6s;
}

.word-by-word.animate span:nth-child(3) {
  animation-delay: 0.9s;
}

/* etc. selon ton nombre de mots… */

/* keyframes inchangés */
@keyframes wordFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* style par défaut : mots invisibles et décalés */
.word-by-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  margin-right: 0.25em;
}

/* ================
   About
   ================ */
.about-section.persona {
  padding: 4em 2em;
  background: var(--color-bg-light);
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* IMAGE à gauche */
.about-image {
  flex: 0 0 400px;
}

.about-image img {
  width: 105%;
  height: 500px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 7rem 7rem 0rem 4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* TEXTE à droite */
.about-content {
  flex: 1;
  margin-left: 70px;
}

.about-title {
  font-size: 2.5rem;
  margin: 0;
  color: var(--color-text);
}

.about-meta {
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-left: 1rem;
}

/* Citation */
.about-quote {
  margin: 1rem 0 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent-2);
  font-style: italic;
  color:#8b0000;
  line-height: 1.5;
}

/* Sous-titres */
.about-content h3 {
  margin-top: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-bg-medium);
  padding-bottom: 0.25em;
}

/* Paragraphes */
.about-content p {
  margin-top: 0.5em;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin: 0 auto 2rem;
    max-width: 300px;
  }

  .about-content h3 {
    border: none;
  }
}

/* ==========================================================================
   7. Sections & Typography
   --------------------------------------------------------------------------
   Alternate backgrounds for visual rhythm
   ========================================================================== */
section {
  padding: 4em 2em;
}

h2 {
  margin-bottom: 1em;
  font-size: 2em;
  color: #8b0000;
  border-left: 5px solid #8b0000;
  padding-left: 1em;
}


/* ==========================================================================
   Section “Compétences”
   --------------------------------------------------------------------------
   Trois catégories : Front-end | Back-end | Outils & Méthodologies
   ========================================================================== */
.competences-section {
  max-width: 1200px;  /* ou la largeur de votre choix */
  margin: 0 auto;     /* centre la section */
  padding: 4em 2em;
  text-align: center; /* centre votre h2 et le texte inline */
}

.competences-section h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.competences-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2em;
}

/* Conteneur des 3 catégories */
.competences-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Chaque catégorie a son titre et sa grille */
.competences-category {
  flex: 1 1 300px;
  max-width: 350px;
}

/* Titre de catégorie */
/* Titre de catégorie (Front-end / Back-end / Outils & Méthodologies) */
.competences-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent-1);
  display: inline-block;
  padding-bottom: 0.25rem;
}


/* grille interne des cartes */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

.competence-card {
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;             /* texte en blanc pour le contraste */
  transition: transform .3s;
}
.competence-card:hover {
  transform: translateY(-4px);
}

/* Couleurs officielles des logos */
.html5        { background: #e34f26d0; }
.css3         { background: #1573b6c7; }
.javascript   { background: #f7de1ea9; color: #000; } /* texte noir si nécessaire */
.reactjs      { background: #61dafbb7; color: #000; }
.nodejs       { background: #339933b9; }
.python       { background: #3777abcc; }
.postgresql   { background: #336791bd; }
.docker       { background: #2496edd0; }
.git          { background: #f04e32c8; }
.cicd         { background: #0052ccd3; } /* exemple pour CI/CD */
.scrum        { background: #4caf4fd4; } /* vert pour Agile/Scrum */
.linux        { background: #000000ca; }

/* Responsive (2 colonnes sur petits écrans) */
@media (max-width: 768px) {
  .competences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ================================
   Section Éducation & Experiences
   ================================ */
.edu-exp-section {
  padding: 4rem 1rem;
}
.edu-exp-section .container {
  max-width: 1000px;
  margin: 0 auto;
}
.edu-exp-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* colonnes */
.edu-col,
.exp-col {
  flex: 1 1 300px;
}

/* Titres de colonne */
.edu-col h3,
.exp-col h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #8b0000;
}
/* si tu veux deux couleurs différentes */
.exp-col h3 { color: #8b0000;
 }

/* Timeline List */
.timeline {
  margin: 0;
  padding: 0;
}
.timeline .item {
  display: flex;
  margin-bottom: 2rem;
}
.timeline .date {
  flex: 0 0 100px;
  font-weight: bold;
  color: var(--color-accent-3);
}
.timeline .details {
  flex: 1;
  margin-left: 1rem;
}
.timeline .details ul {
  margin: .5rem 0 0 1rem;
  padding: 0;
  list-style-type: disc;
}
.timeline .details li {
  margin-bottom: .5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .edu-exp-row {
    flex-direction: column;
  }
  .timeline .item {
    flex-direction: column;
  }
  .timeline .date {
    margin-bottom: .5rem;
  }
}


/* 2) Chaque “item” prend toute la place *
/* ==========================================================================
   8. Project Gallery
   ========================================================================== */
.galerie-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

/* Carte projet : fond neutre issu de tes variables */
.carte-projet {
  background-color: var(--color-surface);
  border: 1px solid var(--color-bg-medium);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.3s;
}

/* Effet au survol : couleur d’accent légère */
.carte-projet:hover {
  background-color: var(--color-accent-1);
  transform: translateY(-4px);
}

/* Image en haut de la carte (pas de changement si tu veux garder l’image entière) */
.carte-projet img {
  display: block;
  width: 100%;
  height: 200px;              /* adapte si besoin */
  object-fit: cover;
  border-bottom: 1px solid var(--color-bg-medium);
}

/* Titre et description conservent leurs couleurs, mais tu peux les pousser un peu */
.carte-projet h3 {
  color: var(--color-text);
}
.carte-projet p {
  color: var(--color-text-muted);
}

/* Variante : un léger dégradé d’accent */
.carte-projet.gradient {
  background: linear-gradient(
    135deg,
    var(--color-accent-1) 0%,
    var(--color-accent-2) 100%
  );
}


.card-system {
	display: flex;
	justify-content: center;
	max-width: 1200px;
}

.deconstructed-card {
	position: relative;
	width: var(--card-width);
	height: var(--card-height);
	cursor: pointer;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	transform-style: preserve-3d;
}

.card-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.typographic-card .card-background {
	background: var(--white);
	z-index: 0;
}

.letter-matrix {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.word-fragment {
	position: relative;
	font-size: 4rem;
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 0.9;
	color: var(--black);
	margin: 0.1em 0;
}

.letter {
	display: inline-block;
	position: relative;
	transition: all var(--transition-slow);
}

.letter-particle {
	position: absolute;
	width: 3px;
	height: 3px;
	background: var(--black);
	opacity: 0;
	pointer-events: none;
	transition: all var(--transition-slow);
}

.letter-shadow {
	position: absolute;
	top: 0;
	left: 0;
	color: transparent;
	-webkit-text-stroke: 1px var(--black);
	opacity: 0;
	transform: translate(0, 0);
	transition: all var(--transition-slow);
}

.glyph-grid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.03;
	pointer-events: none;
	overflow: hidden;
}

.glyph {
	position: absolute;
	font-family: "Space Mono", monospace;
	font-size: 10px;
	color: var(--black);
	opacity: 0;
	transition: opacity var(--transition-slow);
}

.card-frame {
	z-index: 3;
	pointer-events: none;
}

.frame-path {
	fill: none;
	stroke: var(--frame-color);
	stroke-width: 1;
	stroke-dasharray: 1520;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-content {
	z-index: 2;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.content-fragment {
	position: relative;
	overflow: hidden;
}

.fragment-heading {
	margin-top: auto;
}

.content-text {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--black);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
	transform: translateY(0);
	opacity: 0.7;
}

.content-subtext {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	margin-top: 0.5rem;
	color: var(--black);
	opacity: 0.5;
	transform: translateY(0);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.fragment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 2rem;
}

.meta-line {
	width: 40px;
	height: 1px;
	background-color: var(--black);
	transform: scaleX(0.5);
	transform-origin: left;
	transition: transform var(--transition-fast);
}

.meta-text {
	font-family: "Space Mono", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	opacity: 0.6;
	transform: translateX(0);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.fragment-body {
	max-width: 85%;
	margin: 1.5rem 0;
}

.fragment-body .content-text {
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	opacity: 0.6;
}

.fragment-cta {
	margin-top: auto;
	overflow: visible;
}

.cta-link {
	text-decoration: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
}

.cta-box {
	position: absolute;
	top: 0;
	left: -10px;
	width: calc(100% + 20px);
	height: 100%;
	background-color: var(--black);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-fast);
}

.cta-text {
	position: relative;
	font-family: "Space Mono", monospace;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--black);
	transition: color var(--transition-fast);
	transform: translateX(0);
	opacity: 0.7;
	transition: transform var(--transition-fast), opacity var(--transition-fast),
		color var(--transition-fast);
}

.site-link {
	position: fixed;
	bottom: 30px;
	right: 30px;
	font-family: "Space Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--black);
	opacity: 0.4;
	transition: opacity var(--transition-fast);
}

.site-link:hover {
	opacity: 0.8;
}

.deconstructed-card:hover .content-text,
.deconstructed-card:hover .content-subtext {
	transform: translateY(0);
	opacity: 1;
	transition-delay: 0.05s;
}

.deconstructed-card:hover .fragment-body .content-text {
	transition-delay: 0.1s;
	opacity: 1;
}

.deconstructed-card:hover .meta-text {
	transform: translateX(0);
	opacity: 1;
	transition-delay: 0.15s;
}

.deconstructed-card:hover .meta-line {
	transform: scaleX(1);
	transition-delay: 0.05s;
}

.deconstructed-card:hover .cta-text {
	transform: translateX(0);
	opacity: 1;
	transition-delay: 0.2s;
}

.deconstructed-card:hover .cta-link:hover .cta-box {
	transform: scaleX(1);
}

.deconstructed-card:hover .cta-link:hover .cta-text {
	color: var(--white);
}

.typographic-card:hover .letter {
	color: transparent;
	-webkit-text-stroke: 1px var(--black);
}

.typographic-card:hover .letter-shadow {
	opacity: 0.3;
}

.typographic-card:hover .glyph {
	opacity: 1;
}

@media (max-width: 768px) {
	:root {
		--card-width: 280px;
		--card-height: 380px;
	}

	.card-content {
		padding: 20px;
	}

	.content-text {
		font-size: 1.8rem;
	}

	.word-fragment {
		font-size: 3rem;
	}
}

/* ==========================================================================
   10. Language Badges
   --------------------------------------------------------------------------
   Tiny dots with tooltips
   ========================================================================== */
.languages {
  display: flex;
  gap: 0.5em;
  margin: 0.5em 1em;
}

.lang {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  cursor: default;
}

/* Data-lang color mapping (case-insensitive) */
.lang[data-lang="nodejs" i] {
  background: #70a861;
}

.lang[data-lang="expressjs" i] {
  background: #000000;
}

.lang[data-lang="reactjs" i] {
  background: #61dafb;
}

.lang[data-lang="dart" i] {
  background: #0175c2;
}

.lang[data-lang="c++" i] {
  background: #00599c;
}

.lang[data-lang="cmake" i] {
  background: #064f8c;
}

.lang[data-lang="java" i] {
  background: #b07219;
}

.lang[data-lang="javafx" i] {
  background: #2c2255;
}

.lang[data-lang="javascript" i] {
  background: #f7df1e;
}

.lang[data-lang="docker" i] {
  background: #2496ed;
}

.lang[data-lang="bash" i] {
  background: #4eaa25;
}

.lang[data-lang="virtualbox" i] {
  background: #183a61;
}

.lang[data-lang="css" i] {
  background: #5599fe;
}

.lang[data-lang="trello" i] {
  background: #5599fe;
}

.lang[data-lang="mongodb" i] {
  background: #000000;
}



/* Tooltip on hover */
.lang::after {
  content: attr(data-lang);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lang:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  nav ul {
    justify-content: center;
  }

  .hero {
    padding: 6em 1em 3em;
  }

  /* Simplify drawer on mobile: hide or convert to top menu */
  #main-nav.scrolled ul {
    display: none;
  }
}

/* =========================================
   Modals en overlay — cachés par défaut
   ========================================= */
/* 1) Cadre du  & centré en horizontal, aligné en haut + padding */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: flex-start;
  /* on colle en haut */
  justify-content: center;
  padding-top: 2rem;
  /* espace sous le haut de l’écran */
  z-index: 2000;
}

/* 2) Modal-content : max-height + scroll interne */
.modal-content {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  /* **clé** : on limite à 80% de la hauteur de la fenêtre */
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 1.5rem;
}

/* quand on ajoute .show, on affiche en flex centré */
.modal.show {
  display: flex;
}

/* bouton fermer */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color .2s;
}

.modal-close:hover {
  color: #c71585;
}

/* =====================
   Modal Glassmorphism
   ===================== */
.modal-content.vm-modal {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  background-color: #EDEDE9;
}

/* En-tête */
.vm-header {
  text-align: center;
}

.vm-icon {
  width: 60px;
  margin-bottom: 0.5rem;
}

.vm-header h2 {
  margin: 0.25em 0;
}

.vm-status {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

/* Badges */
.vm-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25em 0.6em;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: bold;
}

.badge.bash {
  background: #4eaa25;
  color: #fff;
}

.badge.virtualBox {
  background: #183a61;
  color: #fff;
}

.badge.java {
  background: #b07219;
  color: #fff;
}

.badge.javafx {
  background: #2c2255;
  color: #fff;
}

.badge.docker {
  background: #2496ed;
  color: #fff;
}

.badge.dart {
  background: #0175c2;
  color: #fff;
}

.badge.css {
  background: #5599fe;
  color: #fff;
}

.badge.javascript {
  background: #f7df1e;
  color: #fff;
}

.badge.trello {
  background: #5599fe;
  color: #fff;
}

.badge.bash {
  background: #4eaa25;
  color: #fff;
}

.badge.nodejs {
  background: #70a861;
  color: #fff;
}

.badge.reactjs {
  background: #61dafb;
  color: #fff;
}

.badge.expressjs {
  background: #000000;
  color: #fff;
}

.badge.mongodb {
  background: #000000;
  color: #4eaa25;
}



/* Description */
.vm-desc {
  text-align: center;
  margin: 1rem 0;
  line-height: 1.5;
}

/* Listes de points */
.vm-points {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 1em 0;
}

.vm-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5em;
}

.vm-positive li i {
  color: #4CAF50;
}

.vm-negative li i {
  color: #E74C3C;
}

/* Note perso */
.vm-note {
  font-style: italic;
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Bouton GitHub */
.vm-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #24292e;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 32px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
  margin: 0 auto;
}

.vm-cta i {
  font-size: 1.1em;
}

.vm-cta:hover {
  background: #444d56;
}

/* Fermer */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #c71585;
}




/* ==========================================================================
   Project Detail Pages
   ========================================================================== */

/* 1. Navigation “Retour” */
.detail-nav {
  padding: 1rem 2rem;
}

.detail-nav a {
  color: #c71585;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-nav a:hover {
  color: #8b0000;
}

/* 2. Conteneur principal */
.detail-projet {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  opacity: 0;
  /* invisible au départ */
  transition: opacity 0.6s ease;
  /* fade-in */
}

/* 3. Titre du projet */
.detail-projet h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

/* 4. Description */
.detail-projet p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* 5. Image illustrative */
.detail-projet img {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 6. Badges de langages (reuse des classes existantes) */
.detail-projet .languages {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* 7. Apparition automatique au chargement */
body.projet-loaded .detail-projet {
  opacity: 1;
}

/* ==========================================================================
   8. Carrousels d’expériences
   ========================================================================== */
.exp-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.exp-block--reverse {
  flex-direction: row-reverse;
}

.exp-text,
.carousel-wrapper {
  flex: 1 1 300px;
}

/* ==========================================================================
   Section “Parcours Académique”
   --------------------------------------------------------------------------
   Timeline verticale épurée
   ========================================================================== */
.parcours-section {
  padding: 4em 2em;
  background: var(--color-bg-medium);
  text-align: center;
}

.parcours-section h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

.parcours-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2em;
}

.parcours-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2em;
}

/* la ligne verticale */
.parcours-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1em;
  width: 2px;
  height: 100%;
  background: var(--color-accent-1);
}

.parcours-item {
  position: relative;
  margin-bottom: 2.5em;
  display: flex;
  align-items: flex-start;
}

/* le cercle repère */
.parcours-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  background: var(--color-accent-2);
  border: 2px solid var(--color-accent-3);
  border-radius: 50%;
}

/* date */
.parcours-date {
  flex: 0 0 120px;
  text-align: right;
  font-weight: bold;
  color: var(--color-text);
  margin-right: 1em;
}

/* contenu de l’étape */
.parcours-content {
  flex: 1;
  text-align: left;
}

.parcours-content h3 {
  margin: 0 0 0.3em;
  font-size: 1.25rem;
  color: var(--color-text);
}

.parcours-content p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .parcours-timeline {
    padding-left: 1em;
  }

  .parcours-timeline::before {
    left: 0.5em;
  }

  .parcours-item {
    flex-direction: column;
    padding-left: 1.5em;
  }

  .parcours-item::before {
    left: 0.5em;
  }

  .parcours-date {
    text-align: left;
    margin-bottom: 0.3em;
  }
}


/* ==========================================================================
   Section “Centres d’intérêt”
   --------------------------------------------------------------------------
   Grille d’icônes avec légende
   ========================================================================== */
.interets-section {
  padding: 4em 2em;
  text-align: center;
  background: var(--color-bg-surface, #fff);
}

.interets-section h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

.interets-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2em;
}

.interets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.interet-card {
  background: var(--color-accent-1);
  border-radius: 12px;
  padding: 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.interet-card i {
  font-size: 1.75rem;
  color: var(--color-accent-3);
  margin-bottom: 0.5rem;
}

.interet-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.interet-card:hover {
  background: var(--color-accent-2);
  transform: translateY(-4px);
}

/* Responsive mobile */
@media (max-width: 600px) {
  .interets-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}


/* ==========================================================================
   9. Contact Form & Email Badge
   ========================================================================== */
/* ============================
   Section Contact “Say hello” 
   ============================ */
.contact-section {
  background: #c3c3bf;        /* fond sombre */
  color: #F5F5DC;             /* texte clair */
  padding: 4rem 1rem;         
  position: relative;
}
.contact-section .contact-container {
  max-width: 600px;
  margin: 0 auto;
}
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.contact-section .contact-btn {
  display: inline-block;
  background: #e7e5e5;
  color: #252627;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1rem;
  transition: background .3s;
  margin-bottom: 2rem;
}
.contact-section .contact-btn:hover {
  background: #fff;
}

/* Icônes réseaux sociales */
.contact-section .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-section .social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color .3s;
}
.contact-section .social-icons a:hover {
  color: #c71585;
}

/* Bouton “scroll to top” */
.contact-section .scroll-to-top {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.contact-section .scroll-to-top:hover {
  background: #333333;
  color: #fff;
}

/* ==============================
   Footer
   ============================== */
footer {
  background-color: var(--color-bg-medium);
  padding: 2rem 1rem;
  color: var(--color-text-muted);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  margin: 0 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-social {
  margin-bottom: 1rem;
}

.footer-social a {
  margin: 0 0.5rem;
  color: var(--color-accent-2);
  font-size: 1.25rem;
  transition: color .3s;
}

.footer-social a:hover {
  color: var(--color-accent-3);
}

footer p {
  font-size: 0.875rem;
  margin: 0;
}