/* ═══════════════════════════════════════════════════════════════
   Laurent Libois — style.css
   ───────────────────────────────────────────────────────────────
   TABLE DES MATIÈRES
   0.  Animations & propriété CSS Houdini
   1.  Variables (couleurs, espacements)
   2.  Reset & base
   3.  Barre de progression de lecture
   4.  Navigation
   5.  Hero (section plein écran)
   6.  Ticker défilant
   7.  Sections (commun à toutes)
   8.  01 · À propos
   9.  02 · Expériences (carte + timeline)
   10. 03 · Diplômes
   11. 04 · Compétences
   12. 05 · Loisirs (bento grid)
   13. Footer
   14. Carte Leaflet
   15. Icônes (skill, diplôme, loisirs)
   16. Responsive (≤900px, ≤600px)
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   0 · ANIMATIONS & PROPRIÉTÉ HOUDINI
   ───────────────────────────────────────────────────────────────
   --ba est une propriété CSS animable (Houdini @property).
   Elle permet d'animer le dégradé tournant sur la carte profil.
   Navigateurs anciens l'ignorent proprement.
═══════════════════════════════════════════════════════════════ */
@property --ba { syntax:'<angle>'; initial-value:0deg; inherits:false; }

@keyframes borderSpin  { to { --ba: 360deg; } }               /* rotation bordure carte profil */
@keyframes shimmer     { to { background-position: 200% center; } } /* dégradé animé sur le nom */
@keyframes pulse       { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:.4} } /* point clignotant hero */
@keyframes photoPulse  { 0%,100%{box-shadow:0 0 0 4px #fff,0 0 0 9px rgba(37,99,235,.25)} 50%{box-shadow:0 0 0 4px #fff,0 0 0 16px rgba(37,99,235,.12)} } /* halo photo profil */
@keyframes bounce      { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} } /* flèche "défiler" */
@keyframes ticker      { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} } /* bande défilante */
@keyframes blink       { 0%,100%{opacity:1} 50%{opacity:0} }   /* curseur typewriter */
@keyframes fadeSlideUp { from{opacity:0;transform:translate(-50%,12px)} to{opacity:1;transform:translate(-50%,0)} } /* hint scroll */


/* ═══════════════════════════════════════════════════════════════
   1 · VARIABLES — PALETTE & ESPACEMENTS
   ───────────────────────────────────────────────────────────────
   ► Pour changer la couleur principale : modifiez --blue
   ► Pour changer l'arrière-plan des sections alt : modifiez --bg
   ► --r = border-radius global des cartes (16px)
   ► --nav-h = hauteur de la barre de navigation (64px)
═══════════════════════════════════════════════════════════════ */
:root {
  /* Arrière-plans */
  --bg:     #f4f8ff;   /* sections alternées (gris-bleu très clair) */
  --bg2:    #ffffff;   /* sections principales (blanc pur) */

  /* Palette bleue principale */
  --navy:   #0d1f3c;   /* textes foncés, titres */
  --blue:   #2563eb;   /* couleur principale (liens, badges, accents) */
  --blue-l: #60a5fa;   /* bleu clair (hero, dégradés) */
  --blue-xl:#bfdbfe;   /* bleu très clair (scrollbar) */

  /* Accents secondaires */
  --purple: #7c3aed;   /* violet (dégradés, bordure carte profil) */
  --cyan:   #38bdf8;   /* cyan (dégradés shimmer) */

  /* Textes & bordures */
  --muted:  #6b84a8;   /* texte secondaire (dates, lieux, descriptions) */
  --text:   #1e3050;   /* texte principal */
  --border: #dce8f5;   /* bordures des cartes */

  /* Layout */
  --nav-h:  64px;      /* hauteur barre nav — synchronisée avec le padding-top du hero */
  --r:      16px;      /* border-radius commun aux cartes */
}


/* ═══════════════════════════════════════════════════════════════
   2 · RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Inter', sans-serif; background: var(--bg2); color: var(--text); overflow-x: hidden; }

/* Scrollbar fine (Chrome/Edge) */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--blue-xl); border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════════
   3 · BARRE DE PROGRESSION (haut de page)
   ───────────────────────────────────────────────────────────────
   Largeur animée via JS (main.js, section 1).
   Pour la masquer : mettre display:none sur #pbar.
═══════════════════════════════════════════════════════════════ */
#pbar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(to right, var(--blue), var(--purple), var(--cyan));
  transition: width .08s linear; pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   4 · NAVIGATION
   ───────────────────────────────────────────────────────────────
   Transparente sur le hero, devient blanche au scroll (.solid).
   La classe .solid est ajoutée par JS (main.js, section 2).
   ► Pour changer les liens : modifier index.html, div.nav-links
═══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background .35s, box-shadow .35s;
}
/* État après scroll — fond blanc semi-transparent */
#nav.solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

/* Logo "Laurent LIBOIS" */
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
  color: #fff; text-decoration: none;
  transition: color .3s;
}
#nav.solid .nav-logo        { color: var(--navy); }
.nav-logo span              { color: var(--blue-l); }   /* "LIBOIS" en bleu */
#nav.solid .nav-logo span   { color: var(--blue); }

/* Liens de navigation */
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); text-decoration: none;
  transition: color .2s; position: relative;
}
#nav.solid .nav-links a { color: var(--muted); }

/* Soulignement animé au survol / lien actif */
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; right: 0;
  height: 2px; background: linear-gradient(to right, var(--blue), var(--purple));
  border-radius: 1px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:hover,
.nav-links a.active              { color: rgba(255,255,255,.95); }
#nav.solid .nav-links a:hover,
#nav.solid .nav-links a.active   { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after       { transform: scaleX(1); }

/* ── Hamburger button ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
#nav.solid .nav-burger span { background: var(--navy); }

/* Burger → croix (animation globale) */
#nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════════════════════════
   5 · HERO — SECTION PLEIN ÉCRAN
   ───────────────────────────────────────────────────────────────
   Photo de fond : img/hero.jpg
   ► Pour changer la photo : remplacer img/hero.webp
   ► Pour ajuster le point focal : modifier background-position
     ex. "center 30%" = cadre légèrement vers le haut
   ► L'overlay sombre est le ::before (dégradé réglable)
═══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 3px);   /* espace pour la nav fixe */
  position: relative; overflow: hidden;
  background: url('../img/hero.webp') center 40% / cover no-repeat;
  display: flex; align-items: center;
}
/* Parallax sur desktop uniquement (désactivé mobile = performance) */
@media (min-width: 900px) {
  #hero { background-attachment: fixed; }
}
/* Overlay sombre pour lisibilité du texte sur la photo */
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    140deg,
    rgba(8,18,40,.92)  0%,
    rgba(13,31,60,.82) 45%,
    rgba(37,99,235,.28) 100%
  );
}

/* Silhouette montagnes décorative (SVG inline dans index.html) */
.hero-mtn {
  position: absolute; bottom: 0; left: 0; right: 0;
  pointer-events: none; opacity: .14; z-index: 1;
}

/* Indicateur "Défiler" en bas du hero */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.4); z-index: 2;
  animation: fadeSlideUp .8s ease 2.2s both;
}
.scroll-chevron {
  width: 16px; height: 16px;
  border-right: 1.5px solid rgba(255,255,255,.4);
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}

/* Grille 2 colonnes : texte gauche | carte profil droite */
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1120px; width: 100%; margin: 0 auto;
  padding: clamp(2rem,4vw,4rem) clamp(1.5rem,5vw,4rem) clamp(3rem,6vw,6rem);
  display: grid; grid-template-columns: 1fr 360px;
  gap: 3rem; align-items: center;
}

/* ── Colonne gauche ── */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-l); margin-bottom: 1.8rem;
}
/* Point pulsant avant la localisation */
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-l); animation: pulse 2s ease-in-out infinite;
}

/* Titre "Laurent LIBOIS." — taille fluide entre 3.2rem et 6rem */
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700; color: #fff;
  line-height: .9; letter-spacing: -.04em;
  margin-bottom: .9rem;
}
/* "LIBOIS." en dégradé animé */
.hero-name em {
  font-style: normal; display: block;
  background: linear-gradient(90deg, var(--blue-l) 0%, #a78bfa 40%, var(--cyan) 70%, var(--blue-l) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 5s linear infinite;
}

/* Typewriter — rôles animés (configurés dans main.js, section 4) */
.hero-tw {
  font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.5);
  margin-bottom: 1.4rem; min-height: 1.4em;
  display: flex; align-items: center; gap: .3rem;
}
.tw-dash       { color: var(--blue-l); }
#typewriter    { color: rgba(255,255,255,.75); }
.tw-cur        { width: 2px; height: 1em; background: var(--blue-l); border-radius: 1px; animation: blink .8s step-end infinite; }

/* Paragraphe de présentation */
.hero-desc {
  font-size: .95rem; line-height: 1.8; color: rgba(255,255,255,.55);
  max-width: 500px; margin-bottom: 2.5rem;
}
.hero-desc strong { color: rgba(255,255,255,.85); font-weight: 500; }

/* Boutons réseaux sociaux */
.hero-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-socials a {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .04em;
  padding: .44rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); text-decoration: none;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  transition: all .2s; will-change: transform;
}
.hero-socials a:hover {
  border-color: var(--blue-l); color: #fff;
  background: rgba(37,99,235,.25);
  box-shadow: 0 4px 16px rgba(37,99,235,.2);
}
.hero-socials a svg { width: 13px; height: 13px; fill: currentColor; }

/* ── Colonne droite — carte profil avec bordure tournante ── */
.profile-card-wrap {
  position: relative; border-radius: 22px; padding: 2px;
  isolation: isolate; display: inline-block; width: 100%;
}
/* Bordure dégradée animée (Houdini --ba) */
.profile-card-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 22px; z-index: -1;
  --ba: 0deg;
  background: conic-gradient(from var(--ba), var(--blue) 0%, var(--purple) 25%, var(--cyan) 50%, var(--blue) 75%);
  animation: borderSpin 5s linear infinite; opacity: .6;
}
.profile-card {
  background: rgba(13,31,60,.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 20px; padding: 2rem; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}

/* Photo de profil — fichier : img/laurent_libois.webp */
.photo-ring {
  width: 250px; height: 250px; border-radius: 50%;
  display: block; margin: 0 auto 1.2rem;
  background: url('../img/laurent_libois.webp') center / cover,
              linear-gradient(135deg, var(--blue), var(--purple));
  animation: photoPulse 3.5s ease-in-out infinite;
}

.card-role { display: inline-block; background: var(--blue); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .85rem; border-radius: 20px; margin-bottom: .7rem; }
.card-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: .4rem; }
.card-loc  { font-size: .72rem; color: rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; gap: .3rem; }
.card-loc svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.card-divider { width: 100%; height: 1px; background: rgba(255,255,255,.1); margin: 1.2rem 0; }

/* Statistiques animées (data-target dans le HTML, animées par JS main.js section 5) */
.card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.cstat      { background: rgba(255,255,255,.06); border-radius: 10px; padding: .75rem .3rem; border: 1px solid rgba(255,255,255,.06); }
.cstat-n    { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--blue-l), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cstat-l    { font-size: .57rem; color: rgba(255,255,255,.35); margin-top: .25rem; line-height: 1.3; }


/* ═══════════════════════════════════════════════════════════════
   6 · TICKER DÉFILANT
   ───────────────────────────────────────────────────────────────
   ► Pour changer les mots : modifier les .tick-item dans index.html
   ► Vitesse : changer "30s" dans animation: ticker 30s
   ► Les éléments sont doublés dans le HTML pour l'effet infini
═══════════════════════════════════════════════════════════════ */
.ticker {
  background: var(--navy);
  overflow: hidden; white-space: nowrap; padding: .8rem 0;
  position: relative; border-top: 1px solid rgba(255,255,255,.04);
}
/* Fondu sur les bords gauche/droit */
.ticker::before,
.ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; }
.ticker::before { left:  0; background: linear-gradient(to right, var(--navy), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--navy), transparent); }
.ticker-track {
  display: inline-flex; gap: 2.5rem; align-items: center;
  animation: ticker 30s linear infinite; will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.tick-item { font-size: .63rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); flex-shrink: 0; }
.tick-sep  { color: var(--blue); font-size: .45rem; }


/* ═══════════════════════════════════════════════════════════════
   7 · SECTIONS — COMMUN
   ───────────────────────────────────────────────────────────────
   .section     = section normale (fond blanc)
   .section.alt = section alternée (fond --bg gris-bleu clair)
   .section-inner = conteneur centré max 960px
═══════════════════════════════════════════════════════════════ */
.section       { padding: 5.5rem clamp(1.5rem,5vw,4rem); position: relative; overflow: hidden; }
.section.alt   { background: var(--bg); }
.section-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }

/* Numéro de section en filigrane (ex: "02" en arrière-plan) */
.sec-num {
  position: absolute; right: clamp(1rem,4vw,3rem); top: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem,13vw,11rem); font-weight: 700;
  color: var(--blue); opacity: .035; line-height: 1;
  pointer-events: none; user-select: none; letter-spacing: -.04em;
}

/* Sous-titre de section (ex: "02 · Expériences") — animé par IntersectionObserver */
.s-eyebrow {
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.16,1,.3,1);
}
.s-eyebrow.on     { clip-path: inset(0 0% 0 0); }
.s-eyebrow::before{ content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 1px; flex-shrink: 0; }

/* Titre principal de section */
.s-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--navy); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 2.8rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.16,1,.3,1);
}
.s-title.on  { opacity: 1; transform: none; }
.s-title em  { color: var(--blue); font-style: normal; }  /* mot en bleu dans le titre */

/* Blocs animés au scroll — classe .ab (animated block)
   Ajoutées à tous les éléments à révéler.
   La classe .on est ajoutée par IntersectionObserver (main.js section 6).
   .from-l = entre depuis la gauche, .from-r = depuis la droite */
.ab        { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.34,1.56,.64,1); }
.ab.from-l { transform: translateX(-28px) scale(.97); }
.ab.from-r { transform: translateX(28px)  scale(.97); }
.ab.on     { opacity: 1; transform: none; }


/* ═══════════════════════════════════════════════════════════════
   8 · 01 · À PROPOS
═══════════════════════════════════════════════════════════════ */
/* Grille 2 colonnes : texte | statistiques */
.about-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }

.about-text p        { font-size: .94rem; line-height: 1.85; color: var(--muted); margin-bottom: 1rem; }
.about-text p strong { color: var(--text); font-weight: 500; }

/* Tags colorés sous le texte */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.chip  {
  font-size: .7rem; font-weight: 500; padding: .3rem .85rem; border-radius: 20px;
  background: rgba(37,99,235,.07); color: var(--blue);
  border: 1px solid rgba(37,99,235,.15);
  transition: transform .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,.15); }

/* Cartes statistiques (24 ans, 8 hôtels, 30+ saisons) */
.stat-cards { display: flex; flex-direction: column; gap: .8rem; }
.stat-card  {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 12px rgba(37,99,235,.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.stat-card:hover { transform: translateX(6px); box-shadow: 0 6px 24px rgba(37,99,235,.1); }
.stat-n {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-size: .73rem; color: var(--muted); margin-top: .2rem; }


/* ═══════════════════════════════════════════════════════════════
   9 · 02 · EXPÉRIENCES — TIMELINE
   ───────────────────────────────────────────────────────────────
   Structure d'une carte d'expérience :
   ┌─────────────────────────────────────┐
   │ tc-title    → Intitulé du poste     │  ← ligne 1
   │ tc-company ................. tc-badge│  ← ligne 2
   │ tc-location ............... tc-date │  ← ligne 3
   └─────────────────────────────────────┘

   Groupes (tg) = périodes de carrière
   tg-label = intitulé du groupe (ex: "Hôtellerie de Luxe")
   Le point sur la ligne verticale est généré par tg-label::before
═══════════════════════════════════════════════════════════════ */
.tl-wrap { position: relative; padding-left: 1.5rem; }

/* Ligne verticale bleue animée au scroll */
.tl-line {
  position: absolute; left: 7px; top: 8px;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--blue-xl) 100%);
  border-radius: 1px;
  transition: height 1.8s cubic-bezier(.16,1,.3,1);
}
.tl-line.on { height: calc(100% - 16px); }

/* Groupe d'expériences */
.tg { margin-bottom: 2.4rem; }
.tg-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem; position: relative; padding-left: .8rem;
}
/* Pastille sur la timeline */
.tg-label::before {
  content: ''; position: absolute; left: -.95rem; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18);
  transition: box-shadow .3s;
}
.tg:hover .tg-label::before { box-shadow: 0 0 0 7px rgba(37,99,235,.1); }

/* Carte d'expérience individuelle */
.tc {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: .95rem 1.2rem; margin-bottom: .45rem;
  display: flex; flex-direction: column; gap: .28rem;
  transition: box-shadow .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.tc:hover { box-shadow: 0 6px 30px rgba(37,99,235,.1); transform: translateX(6px) translateY(-1px); }

/* Ligne 1 — intitulé du poste */
.tc-title   { font-size: .88rem; font-weight: 600; color: var(--navy); }

/* Lignes 2 & 3 — paires gauche/droite */
.tc-row     { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }

/* Ligne 2 gauche — nom de l'employeur */
.tc-company { font-size: .74rem; color: var(--blue); flex: 1; min-width: 0; }

/* Ligne 3 gauche — ville + drapeau */
.tc-location     { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--muted); flex: 1; min-width: 0; }
.tc-location img { display: block; flex-shrink: 0; }   /* drapeaux : img/flags/ */

/* Droite — date (ex: "Sept. 2024 → Aujourd'hui") */
.tc-date  { font-size: .67rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* Droite — badge de contrat (CDI / CDD) */
.tc-badge {
  display: inline-block; flex-shrink: 0;
  font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(37,99,235,.08); color: var(--blue);
  padding: .1rem .48rem; border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   10 · 03 · DIPLÔMES
   ───────────────────────────────────────────────────────────────
   Grille 2×2. Chaque diplôme a :
   - diploma-header : bandeau coloré avec icône + année + niveau
   - diploma-body   : nom, sous-titres, badge mention
   ► Pour ajouter un diplôme : copier un bloc .diploma dans index.html
     et choisir une classe couleur parmi : d-bac, d-bts, d-intl, d-uk
   ► Pour créer une nouvelle couleur : ajouter .d-xxx .diploma-header { background: ... }
═══════════════════════════════════════════════════════════════ */
/* align-items:stretch = toutes les cartes à la même hauteur dans la grille */
.diploma-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; align-items: stretch; }
.diploma {
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 2px 16px rgba(37,99,235,.06);
  border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  /* flex column : permet à diploma-body de s'étirer jusqu'en bas */
  display: flex; flex-direction: column;
}
.diploma:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(37,99,235,.14); }

/* En-tête coloré */
.diploma-header {
  height: 120px; position: relative;
  display: flex; align-items: flex-end; padding: 1rem;
}
/* Couleurs par diplôme — modifier le dégradé pour personnaliser */
.d-bac  .diploma-header { background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%); }   /* bleu → violet */
.d-bts  .diploma-header { background: linear-gradient(135deg, #0d2240 0%, #2563eb 70%, #38bdf8 100%); } /* marine → cyan */
.d-intl .diploma-header { background: linear-gradient(135deg, #064e3b 0%, #0891b2 100%); }   /* vert → bleu-vert */
.d-uk   .diploma-header { background: linear-gradient(135deg, #0a1628 0%, #c8102e 100%); }   /* marine → rouge UK */

/* Grande année en filigrane */
.diploma-year  { position: relative; z-index: 1; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.25); line-height: 1; letter-spacing: -.04em; }
/* Badge niveau (ex: "Bac +2") en haut à droite */
.diploma-level { position: absolute; top: .8rem; right: .8rem; z-index: 1; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.15); color: #fff; padding: .25rem .65rem; border-radius: 20px; backdrop-filter: blur(6px); }

/* flex:1 = le corps s'étire pour que toutes les cartes aient la même hauteur */
.diploma-body  { background: var(--bg2); padding: 1.2rem 1.3rem; flex: 1; }
.diploma-name  { font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.3; margin-bottom: .35rem; }
.diploma-sub   { font-size: .72rem; color: var(--muted); line-height: 1.55; }

/* Drapeau inline dans diploma-sub > strong */
.diploma-sub strong img { vertical-align: middle; position: relative; top: -1px; margin-left: .3rem; }

/* Badge mention (ex: "Mention Assez Bien") */
.diploma-badge {
  display: inline-block; margin-top: .6rem;
  font-size: .62rem; font-weight: 600;
  background: rgba(37,99,235,.08); color: var(--blue);
  padding: .2rem .65rem; border-radius: 20px;
}


/* ═══════════════════════════════════════════════════════════════
   11 · 04 · COMPÉTENCES — GRILLE DE TAGS
   ───────────────────────────────────────────────────────────────
   7 catégories en grille 2 colonnes.
   ► Pour ajouter un tag : ajouter un <span class="skill-tag"> dans index.html
   ► Pour ajouter une catégorie : copier un bloc .skill-cat
   ► La 7e catégorie (Langues) occupe la moitié droite de la dernière ligne
═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   11 · 04 · COMPÉTENCES — AVEC EMOJIS/IMAGES
═══════════════════════════════════════════════════════════════ */
.web-popup-content{
  position: relative;
  width: 90%;
  height: 90%;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
}

#popupFrame{
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Couleurs pour chaque catégorie (1 à 7) */
.skill-cat:nth-of-type(1) {
  --cat-primary: #2563eb;
  --cat-secondary: #60a5fa;
  --cat-light: rgba(37, 99, 235, 0.07);
  --cat-border: rgba(37, 99, 235, 0.18);
  --cat-glow: rgba(37, 99, 235, 0.15);
}

.skill-cat:nth-of-type(2) {
  --cat-primary: #7c3aed;
  --cat-secondary: #a78bfa;
  --cat-light: rgba(124, 58, 237, 0.07);
  --cat-border: rgba(124, 58, 237, 0.18);
  --cat-glow: rgba(124, 58, 237, 0.15);
}

.skill-cat:nth-of-type(3) {
  --cat-primary: #0891b2;
  --cat-secondary: #38bdf8;
  --cat-light: rgba(8, 145, 178, 0.07);
  --cat-border: rgba(8, 145, 178, 0.18);
  --cat-glow: rgba(8, 145, 178, 0.15);
}

.skill-cat:nth-of-type(4) {
  --cat-primary: #c8102e;
  --cat-secondary: #ef4444;
  --cat-light: rgba(200, 16, 46, 0.07);
  --cat-border: rgba(200, 16, 46, 0.18);
  --cat-glow: rgba(200, 16, 46, 0.15);
}

.skill-cat:nth-of-type(5) {
  --cat-primary: #10b981;
  --cat-secondary: #34d399;
  --cat-light: rgba(16, 185, 129, 0.07);
  --cat-border: rgba(16, 185, 129, 0.18);
  --cat-glow: rgba(16, 185, 129, 0.15);
}

.skill-cat:nth-of-type(6) {
  --cat-primary: #f59e0b;
  --cat-secondary: #fbbf24;
  --cat-light: rgba(245, 158, 11, 0.07);
  --cat-border: rgba(245, 158, 11, 0.18);
  --cat-glow: rgba(245, 158, 11, 0.15);
}

.skill-cat:nth-of-type(7) {
  --cat-primary: #8b5cf6;
  --cat-secondary: #a78bfa;
  --cat-light: rgba(139, 92, 246, 0.07);
  --cat-border: rgba(139, 92, 246, 0.18);
  --cat-glow: rgba(139, 92, 246, 0.15);
}

/* Style commun à toutes les cartes */
.skill-cat {
  background: linear-gradient(135deg, var(--cat-light), white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Fond animé au survol */
.skill-cat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--cat-primary), var(--cat-secondary));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.skill-cat:hover::before {
  opacity: 0.07;
}

/* Bordure supérieure animée */
.skill-cat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cat-primary), var(--cat-secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.skill-cat:hover::after {
  transform: scaleX(1);
}

.skill-cat:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px var(--cat-glow);
  border-color: var(--cat-border);
}

/* Titre coloré avec effet de soulignement dégradé */
.skill-cat-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cat-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.skill-cat-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--cat-primary), var(--cat-secondary));
  border-radius: 1px;
}

/* Style pour les emojis/images (remplace les icônes SVG) */
.skill-cat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* Taille adaptée pour les emojis */
  transition: all 0.3s;
}

/* Tags colorés avec effet de survol */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.32rem 0.75rem;
  background: var(--cat-light);
  border: 1px solid var(--cat-border);
  color: var(--cat-primary);
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cat-light), transparent);
  transition: left 0.5s;
}

.skill-tag:hover {
  background: var(--cat-primary);
  color: white;
  border-color: var(--cat-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--cat-glow);
}

.skill-tag:hover::before {
  left: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   12 · 05 · LOISIRS — PASSION GRID (3 × 3 uniforme)
   ───────────────────────────────────────────────────────────────
   Chaque carte = photo (hcard-img) + zone texte (hcard-body)
   9 cartes : ski, vtt, rando, plongée, vidéo, voyages, sport, tech, bidule
   ► Pour changer une photo : modifier background-image dans index.html
═══════════════════════════════════════════════════════════════ */
.passion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

/* Carte générique */
.hcard {
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  background: #0d1f3c;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  text-decoration: none; color: inherit;
}
.hcard:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,.3); }
/* L'ancien overlay plein-carte est désactivé */
.hcard::before { display: none; }

/* ── Zone photo ──────────────────────────────── */
.hcard-img {
  height: 155px; flex-shrink: 0; position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Léger assombrissement en bas de la photo (raccord avec la zone texte) */
.hcard-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(5,10,25,.55) 100%);
}
/* Teintes légères spécifiques à chaque catégorie */
.hcard-ski .hcard-img::before    { background: linear-gradient(to bottom, rgba(30,60,160,.06) 40%, rgba(5,12,40,.62) 100%); }
.hcard-rando .hcard-img::before  { background: linear-gradient(to bottom, rgba(10,60,30,.06) 40%, rgba(3,22,12,.62) 100%); }
.hcard-yt .hcard-img::before     { background: linear-gradient(to bottom, rgba(80,15,15,.06) 40%, rgba(30,4,4,.62) 100%); }
.hcard-voy .hcard-img::before    { background: linear-gradient(to bottom, rgba(10,60,80,.06) 40%, rgba(3,18,30,.62) 100%); }
.hcard-sport .hcard-img::before  { background: linear-gradient(to bottom, rgba(15,40,100,.06) 40%, rgba(4,10,35,.62) 100%); }
.hcard-tech .hcard-img::before   { background: linear-gradient(to bottom, rgba(8,28,60,.06) 40%, rgba(2,8,22,.62) 100%); }
.hcard-vtt .hcard-img::before    { background: linear-gradient(to bottom, rgba(10,70,25,.06) 40%, rgba(3,20,8,.62) 100%); }
.hcard-plongee .hcard-img::before{ background: linear-gradient(to bottom, rgba(5,80,110,.06) 40%, rgba(2,15,30,.62) 100%); }
.hcard-bidule .hcard-img::before { background: linear-gradient(to bottom, rgba(100,40,8,.06) 40%, rgba(22,8,3,.62) 100%); }

/* ── Zone texte (fond uni, lisibilité garantie) ── */
.hcard-body {
  padding: .85rem 1.1rem .95rem;
  flex: 1;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Contenu texte */
.hcard-inner { /* conservé pour compatibilité */ }
.ht { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .28rem; font-family: 'Space Grotesk', sans-serif; }
.hd { font-size: .72rem; color: rgba(255,255,255,.58); line-height: 1.6; margin-top: .14rem; }

/* Étiquette de catégorie (dans .hcard-img) */
.hcard-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.85);
  padding: .25rem .65rem; border-radius: 20px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
}
/* Petite flèche ↗ sur les cartes cliquables (<a>) */
a.hcard .hcard-tag::after { content: ' ↗'; opacity: .65; }


/* ═══════════════════════════════════════════════════════════════
   13 · FOOTER
═══════════════════════════════════════════════════════════════ */
footer       { background: var(--navy); padding: 3rem clamp(1.5rem,5vw,4rem); }
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem;
}
.f-name      { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; }
.f-name span { background: linear-gradient(90deg, var(--blue-l), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.f-loc       { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .6rem; line-height: 1.7; }
.f-links     { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: .5rem; }
.f-links a   { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--blue-l); }
.f-copy      { font-size: .63rem; color: rgba(255,255,255,.14); margin-top: .6rem; }


/* ═══════════════════════════════════════════════════════════════
   14 · CARTE LEAFLET
   ───────────────────────────────────────────────────────────────
   Fond de carte : CartoDB Positron (tuiles légères, labels FR)
   Configuré dans index.html dans le bloc <script> Leaflet.
   ► Pour changer la hauteur : modifier height sur #xp-map
   ► Les marqueurs custom sont en .map-marker (créés par JS)
   ► Les popups sont stylés via .map-popup et ses enfants
═══════════════════════════════════════════════════════════════ */
#xp-map {
  height: 500px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(37,99,235,.08);
}

/* Séparateur carte → timeline */
.map-to-tl {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0; color: var(--muted); font-size: .68rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.map-to-tl::before, .map-to-tl::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Légende des catégories */
.map-legend  { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-bottom: 1.2rem; }
.ml-item     { display: flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 500; color: var(--muted); }
.ml-dot      { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }

/* Popup Leaflet personnalisé */
.leaflet-popup-content-wrapper { border-radius: 12px !important; border: 1px solid var(--border) !important; box-shadow: 0 8px 32px rgba(37,99,235,.12) !important; padding: 0 !important; overflow: hidden !important; }
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip     { display: none !important; }
.map-popup      { padding: .9rem 1.1rem; min-width: 200px; }
.map-popup-cat  { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
.map-popup-name { font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: .25rem; }
.map-popup-desc { font-size: .72rem; color: var(--muted); line-height: 1.5; margin-bottom: .3rem; }
.map-popup-year { font-size: .62rem; font-weight: 600; background: rgba(37,99,235,.08); color: var(--blue); display: inline-block; padding: .18rem .6rem; border-radius: 20px; }

/* Filtre colorimétrique sur les tuiles (harmonisation avec la palette bleue) */
#xp-map .leaflet-tile-pane { filter: saturate(0.75) brightness(1.03) hue-rotate(8deg); }

/* Indication "utilise 2 doigts" sur mobile */
.map-touch-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(13,31,60,.88); color: #fff;
  padding: .5rem 1.3rem; border-radius: 24px; font-size: .78rem; font-weight: 500;
  pointer-events: none; z-index: 1000; opacity: 0; transition: opacity .35s;
  white-space: nowrap; border: 1px solid rgba(37,99,235,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

/* Marqueur de carte personnalisé */
.map-marker {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.map-marker:hover { transform: scale(1.25); }
.map-marker svg   { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }


/* ═══════════════════════════════════════════════════════════════
   15 · ICÔNES — SKILL / DIPLÔME / LOISIRS
   ───────────────────────────────────────────────────────────────
   Trois contextes d'icônes SVG dans le site :
   A) .skill-cat-icon  — carré bleu dans les cartes compétences
   B) .diploma-icon    — carré blanc translucide dans les diplômes
   C) .hcard-logo      — carré flouté dans les cartes loisirs
═══════════════════════════════════════════════════════════════ */

/* A) Icône compétences */
.skill-cat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(37,99,235,.07); border: 1px solid rgba(37,99,235,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; transition: background .25s, box-shadow .25s;
}
.skill-cat:hover .skill-cat-icon { background: rgba(37,99,235,.13); box-shadow: 0 4px 14px rgba(37,99,235,.12); }
.skill-cat-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* B) Icône diplôme */
.diploma-icon {
  position: relative; z-index: 1;
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
}
.diploma-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* C) Logo loisirs */
.hcard-logo {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.hcard:hover .hcard-logo   { background: rgba(255,255,255,.2); }
.hcard-logo svg            { width: 22px; height: 22px; }
/* Variante YouTube (fond rouge) */
.hcard-logo-yt             { background: rgba(255,0,0,.18); border-color: rgba(255,80,80,.25); }

/* Boutons magnétiques (JS main.js section 9) */
.mag { will-change: transform; }


/* ═══════════════════════════════════════════════════════════════
   16 · RESPONSIVE
   ───────────────────────────────────────────────────────────────
   ≤900px  : tablette / paysage mobile
   ≤600px  : mobile portrait
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero : 1 colonne (carte profil passe sous le texte) */
  .hero-inner         { grid-template-columns: 1fr; }
  .profile-card-wrap  { max-width: 320px; margin: 0 auto; }

  /* À propos : 1 colonne */
  .about-layout       { grid-template-columns: 1fr; }

  /* Diplômes : déjà en 2 colonnes, on garde */
  .diploma-grid       { grid-template-columns: 1fr 1fr; }

  /* Compétences : 1 colonne */
  .skill-grid         { grid-template-columns: 1fr; }

  /* Passion grid loisirs : 2 colonnes en tablette */
  .passion-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint        { display: none; }
}

@media (max-width: 600px) {
  /* Hero plein écran — svh/dvh excluent la barre d'adresse du navigateur mobile */
  #hero { min-height: 100svh; min-height: 100dvh; }

  /* Navbar non sticky sur mobile — disparaît au scroll */
  #nav { position: absolute; }

  /* Liens masqués par défaut, burger visible */
  .nav-links          { display: none; }
  .nav-burger         { display: flex; }

  /* Dropdown flottant à droite sous le bouton */
  #nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    right: clamp(1rem, 5vw, 1.5rem);
    width: 210px;
    background: rgba(10,22,48,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    padding: 6px 0;
    z-index: 600;
    animation: dropIn .18s ease;
  }
  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  #nav.nav-open .nav-links a {
    padding: 12px 20px;
    font-size: .82rem;
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.07);
    letter-spacing: .08em;
  }
  #nav.nav-open .nav-links a:last-child { border-bottom: none; }
  #nav.nav-open .nav-links a:hover     { color: #fff; }

  /* Diplômes : 1 colonne */
  .diploma-grid       { grid-template-columns: 1fr; }

  /* Passion grid loisirs : 1 colonne en mobile */
  .passion-grid { grid-template-columns: 1fr; }

  /* Photo plus compacte en mobile */
  .hcard-img { height: 130px; }

  /* Timeline — réduction légère des tailles de fonte */
  .tc-title    { font-size: .84rem; }
  .tc-company  { font-size: .72rem; }
  .tc-location { font-size: .67rem; }
  .tc-date     { font-size: .63rem; }
}
/* ═══════════════════════════════════════════════════════════════
   17 · POPUPS & MODALS
   ───────────────────────────────────────────────────────────────
   • .img-popup     — overlay générique (image + iframe)
   • .xp-modal      — popup détail expérience
═══════════════════════════════════════════════════════════════ */

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

/* ── Overlay de base ── */
.img-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  display: none; justify-content: center; align-items: center;
  z-index: 99999; padding: 20px; box-sizing: border-box;
  animation: fadeIn .2s ease;
}

/* ── Image popup ── */
.img-popup > img {
  max-width: 100%; max-height: calc(100vh - 40px);
  object-fit: contain; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.close-popup {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 32px; cursor: pointer; z-index: 2; transition: .2s;
}
.close-popup:hover { transform: scale(1.15); }

/* ── Web / iframe popup ── */
.web-popup-content {
  position: relative; width: 90vw; max-width: 1100px; height: 80vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.web-popup-content iframe { width: 100%; height: 100%; border: none; }
.img-popup-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  border-radius: 50%; width: 36px; height: 36px;
  font-size: 18px; cursor: pointer; z-index: 2; transition: .2s;
}
.img-popup-close:hover { background: rgba(0,0,0,.9); }

/* ── Popup expérience ── */
.xp-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: none; justify-content: center; align-items: center;
  z-index: 9000; padding: 20px; box-sizing: border-box;
  animation: fadeIn .2s ease;
}
.xp-modal-box {
  background: #fff; border-radius: 20px; padding: 32px;
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.xp-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: #6b7280; transition: .2s;
}
.xp-close:hover { color: #111; transform: scale(1.15); }
.xp-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.xp-head img {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 10px; border: 1px solid #e5e7eb;
  background: #f9fafb; padding: 6px; flex-shrink: 0;
}
.xp-job     { font-size: 1.08rem; font-weight: 700; color: #111827; line-height: 1.3; }
.xp-company { font-size: .88rem; color: #6b7280; margin-top: 4px; }
.xp-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.xp-meta span {
  font-size: .8rem; color: #6b7280;
  background: #f3f4f6; padding: 4px 12px; border-radius: 20px;
}
.xp-content h4 {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #9ca3af; margin: 0 0 6px;
}
.xp-content p { font-size: .9rem; color: #374151; line-height: 1.65; margin: 0 0 18px; }
.xp-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 10px 22px;
  background: var(--blue, #2563eb); color: #fff;
  border-radius: 10px; font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: .2s;
}
.xp-link:hover { opacity: .88; transform: translateY(-1px); }

/* Curseur + hover sur les cartes timeline cliquables */
/* Curseur + hover sur les cartes timeline cliquables */
.tc[data-company-desc] { cursor: pointer; }
.tc[data-company-desc]:hover { background: rgba(37,99,235,.05); }
