/* =========================================================
   Khadidiatou Bah — Portfolio
   Palette : Marine (toge de graduation) + Or (cordon) + Crème
   ========================================================= */

:root{
  --navy: #0d1b3a;
  --navy-2: #16274e;
  --navy-soft: #1f3566;
  --gold: #c9a24d;
  --gold-light: #e7cd8f;
  --cream: #faf7f1;
  --cream-2: #f2ece0;
  --white: #ffffff;
  --ink: #1a1e2a;
  --ink-soft: #565c6c;
  --line: #e7e1d4;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 6px 16px rgba(13,27,58,.08);
  --shadow-md: 0 14px 40px rgba(13,27,58,.14);
  --shadow-lg: 0 26px 70px rgba(13,27,58,.22);
  --radius: 18px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
section[id]{ scroll-margin-top: 84px; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll{ overflow: hidden; height: 100vh; }
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
.container{ width:100%; max-width: 1180px; margin:0 auto; padding: 0 28px; }

h1,h2,h3{ font-family: var(--serif); color: var(--navy); margin:0; line-height:1.15; }

/* ---------- Reveal on scroll (base state) ---------- */
.reveal{ opacity:0; transform: translateY(36px); }
.reveal.is-visible{
  animation: revealUp .9s cubic-bezier(.16,.8,.28,1) forwards;
}
@keyframes revealUp{
  to{ opacity:1; transform: translateY(0); }
}

/* Variantes directionnelles, pour des entrées plus élégantes et variées */
.reveal-left{ transform: translateX(-52px); }
.reveal-left.is-visible{ animation-name: revealLeft; }
@keyframes revealLeft{ to{ opacity:1; transform: translateX(0); } }

.reveal-right{ transform: translateX(52px); }
.reveal-right.is-visible{ animation-name: revealRight; }
@keyframes revealRight{ to{ opacity:1; transform: translateX(0); } }

.reveal-scale{ transform: translateY(24px) scale(.9); }
.reveal-scale.is-visible{ animation-name: revealScale; }
@keyframes revealScale{ to{ opacity:1; transform: translateY(0) scale(1); } }

/* Cascade — délais échelonnés sur les grilles de cartes */
.skills-cols .skills-card:nth-child(1).is-visible{ animation-delay:0s; }
.skills-cols .skills-card:nth-child(2).is-visible{ animation-delay:.14s; }
.skills-cols .skills-card:nth-child(3).is-visible{ animation-delay:.28s; }

.formation-grid .formation-card:nth-child(1).is-visible{ animation-delay:0s; }
.formation-grid .formation-card:nth-child(2).is-visible{ animation-delay:.16s; }

.gallery-grid .gallery-item:nth-child(1).is-visible{ animation-delay:0s; }
.gallery-grid .gallery-item:nth-child(2).is-visible{ animation-delay:.1s; }
.gallery-grid .gallery-item:nth-child(3).is-visible{ animation-delay:.2s; }
.gallery-grid .gallery-item:nth-child(4).is-visible{ animation-delay:.3s; }

.contact-grid-cards .contact-card:nth-child(1).is-visible{ animation-delay:0s; }
.contact-grid-cards .contact-card:nth-child(2).is-visible{ animation-delay:.13s; }
.contact-grid-cards .contact-card:nth-child(3).is-visible{ animation-delay:.26s; }

.apropos-side .side-card:nth-child(1).is-visible{ animation-delay:0s; }
.apropos-side .side-card:nth-child(2).is-visible{ animation-delay:.13s; }
.apropos-side .side-card:nth-child(3).is-visible{ animation-delay:.26s; }

.timeline-item:nth-child(1).is-visible{ animation-delay:0s; }
.timeline-item:nth-child(2).is-visible{ animation-delay:.15s; }
.timeline-item:nth-child(3).is-visible{ animation-delay:.3s; }

/* Petit "pop" du médaillon de la timeline à l'arrivée */
.timeline-item.is-visible .timeline-dot{
  animation: dotPop .5s cubic-bezier(.34,1.56,.64,1) .25s backwards;
}
@keyframes dotPop{ from{ transform: scale(.3); opacity:0; } to{ transform: scale(1); opacity:1; } }

/* =========================================================
   INTRO — séquence d'ouverture (~15s)
   ========================================================= */
#intro{
  position: fixed; inset:0; z-index: 9999;
  background: var(--navy);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  clip-path: inset(0% 0% 0% 0%);
}
.intro-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 700px at 18% 15%, rgba(201,162,77,.20), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, rgba(31,53,102,.55), transparent 60%),
    linear-gradient(160deg, #0a1530 0%, #0d1b3a 45%, #14274e 100%);
}
.intro-grid{
  position:absolute; inset:0; opacity:.15;
  background-image:
    linear-gradient(rgba(231,205,143,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,205,143,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 120px 60px, 120px 60px; }
}

.intro-content{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center;
  text-align:center; color:var(--cream);
  padding: 0 20px;
}

.intro-photo-wrap{
  position:relative; width:168px; height:168px; margin-bottom:34px;
  opacity:0; transform: scale(.4);
}
.intro-photo{
  width:168px; height:168px; border-radius:50%;
  overflow:hidden; position:relative; z-index:2;
  box-shadow: 0 0 0 6px rgba(250,247,241,.08), var(--shadow-lg);
  clip-path: circle(0% at 50% 50%);
}
.intro-photo img{ width:100%; height:100%; object-fit:cover; }
.intro-ring{
  position:absolute; inset:-14px; width:196px; height:196px;
  transform: rotate(-90deg);
}
.intro-ring circle{
  fill:none; stroke: var(--gold); stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray: 654; stroke-dashoffset: 654;
}
.intro-spark{
  position:absolute; width:6px; height:6px; border-radius:50%;
  background: var(--gold-light); opacity:0;
  box-shadow: 0 0 12px 2px var(--gold-light);
}
.intro-spark.s1{ top:-6px; right:14px; }
.intro-spark.s2{ bottom:6px; left:-10px; }
.intro-spark.s3{ bottom:-8px; right:38px; }

.intro-name{
  font-family: var(--serif); font-weight:600; color: var(--cream);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing:.01em; margin:0;
}
.intro-name-mask{ display:block; overflow:hidden; line-height:1.15; }
.intro-name-line{
  display:inline-block; transform: translateY(112%);
  white-space:nowrap;
}
.intro-name-gold{ color: var(--gold-light); }

.intro-role{
  margin: 18px 0 0; font-family: var(--sans); font-weight:500;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing:.09em; text-transform:uppercase;
  color: rgba(250,247,241,.75);
  opacity:0; transform: translateY(16px);
}
.intro-role span{ color: var(--gold-light); }

.intro-slogan{
  margin: 22px 0 0; font-family: var(--serif); font-style:italic;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: var(--gold-light);
  opacity:0; transform: translateY(14px);
  position:relative; padding-top:22px;
}
.intro-slogan::before{
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:46px; height:1px; background: rgba(231,205,143,.6);
}

.intro-loader{
  margin-top:44px; width:220px; opacity:0;
}
.intro-loader-bar{
  width:100%; height:2px; background: rgba(250,247,241,.15);
  border-radius:2px; overflow:hidden;
}
.intro-loader-bar span{
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.intro-skip{
  position:absolute; bottom:28px; right:28px; z-index:5;
  background:transparent; border:1px solid rgba(250,247,241,.3);
  color: rgba(250,247,241,.8); font-family:var(--sans); font-size:.82rem;
  padding:9px 16px; border-radius:30px; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  opacity:0; transition: all .25s ease;
}
.intro-skip:hover{ border-color: var(--gold-light); color: var(--gold-light); }
.intro-skip.is-shown{ opacity:1; }

body.intro-locked{ overflow:hidden; height:100vh; }

/* Repli sans JS d'animation (GSAP indisponible / mouvement réduit) :
   affiche directement l'état final avec une simple transition CSS. */
.intro-photo-wrap,
.intro-name-line,
.intro-role,
.intro-slogan{ transition: opacity .8s ease, transform .8s ease; }
.intro-photo{ transition: clip-path 1s ease; }

#intro.intro-fallback .intro-photo-wrap{ opacity:1; transform:scale(1); }
#intro.intro-fallback .intro-photo{ clip-path: circle(100% at 50% 50%); }
#intro.intro-fallback .intro-name-line{ transform: translateY(0); }
#intro.intro-fallback .intro-role,
#intro.intro-fallback .intro-slogan{ opacity:1; transform: translateY(0); }
#intro.is-done{ pointer-events:none; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding: 20px 0;
  transition: all .35s ease;
}
.site-header.scrolled{
  padding:12px 0; background: rgba(250,247,241,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:38px; height:38px; border-radius:50%;
  background: var(--navy); color: var(--gold-light);
  font-family: var(--serif); font-weight:700; font-size:.95rem;
  display:flex; align-items:center; justify-content:center;
}
.brand-name{
  font-family: var(--serif); font-weight:600; font-size:1.05rem; color: var(--navy);
}
.site-header:not(.scrolled) .brand-name{ color: var(--white); }
.site-header:not(.scrolled) .brand-mark{ background: rgba(255,255,255,.14); color: var(--gold-light); }

.main-nav{ display:flex; align-items:center; gap:30px; }
.nav-link{
  font-size:.92rem; font-weight:500; color: var(--white);
  position:relative; padding:4px 0; transition: color .2s ease;
}
.site-header.scrolled .nav-link{ color: var(--ink); }
.nav-link::after{
  content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.nav-link.nav-cta{
  background: var(--gold); color: var(--navy) !important; font-weight:600;
  padding:9px 18px; border-radius:30px;
}
.nav-link.nav-cta::after{ display:none; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
  position:relative; z-index:600;
}
.nav-toggle span{ width:24px; height:2px; background: var(--white); transition: all .25s ease; }
.site-header.scrolled .nav-toggle span{ background: var(--navy); }
.nav-toggle.is-active span{ background: var(--white); }
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  background: linear-gradient(155deg, #0a1530 0%, #0d1b3a 42%, #1a2f5c 100%);
  overflow:hidden; padding: 140px 0 80px;
}
.hero-grid{
  position:absolute; inset:0; opacity:.12;
  background-image:
    linear-gradient(rgba(231,205,143,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,205,143,.5) 1px, transparent 1px);
  background-size: 54px 54px;
}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-size:.82rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color: var(--gold-light); margin:0 0 18px;
}
.hero-title{
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); color: var(--white); font-weight:600;
}
.hero-title span{ color: var(--gold-light); font-style:italic; }
.hero-role{
  margin:20px 0 0; font-size:1.15rem; color: rgba(250,247,241,.85); font-weight:500;
}
.hero-role .dot{ color: var(--gold); margin:0 6px; }
.hero-slogan{
  margin:14px 0 0; font-family: var(--serif); font-style:italic; font-size:1.2rem;
  color: var(--gold-light);
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-top:34px; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:40px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; cursor:pointer; transition: all .25s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy); }
.btn-primary:hover{ background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline{ border-color: rgba(250,247,241,.35); color: var(--white); }
.btn-outline:hover{ border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }
.btn-gold{ background: var(--gold); color: var(--navy); margin-top:36px; }
.btn-gold:hover{ background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-stats{ display:flex; gap:40px; margin-top:50px; }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-family: var(--serif); font-size:2.1rem; color: var(--gold-light); font-weight:700; }
.stat-label{ font-size:.78rem; color: rgba(250,247,241,.65); line-height:1.4; margin-top:4px; }

.hero-photo{ position:relative; display:flex; justify-content:center; }
.hero-photo-inner{ position:relative; display:inline-block; }
.hero-photo-frame{
  position:relative; width:min(360px, 80vw); aspect-ratio: 3/4;
  border-radius: 22px; overflow:hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(250,247,241,.12);
}
.hero-photo-frame img{ width:100%; height:100%; object-fit:cover; }
.hero-badge{
  position:absolute; left:16px; bottom:16px;
  background: rgba(13,27,58,.75); backdrop-filter: blur(6px);
  color: var(--gold-light); font-size:.78rem; font-weight:600;
  padding:9px 14px; border-radius:30px; display:flex; align-items:center; gap:8px;
  border: 1px solid rgba(231,205,143,.3);
}
.hero-photo-ring{
  position:absolute; top:-26px; right:-26px; width:150px; height:150px;
  border: 1.5px solid rgba(231,205,143,.35); border-radius:50%; z-index:-1;
  animation: ringPulse 4.5s ease-in-out infinite;
}
@keyframes ringPulse{
  0%,100%{ transform:scale(1); opacity:.4; }
  50%{ transform:scale(1.08); opacity:.75; }
}

/* Badges de compétences flottants autour du portrait */
.hero-float-badge{
  position:absolute; z-index:3;
  display:flex; align-items:center; gap:8px;
  background: rgba(13,27,58,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(231,205,143,.35);
  border-radius:30px; padding:10px 16px;
  font-size:.78rem; font-weight:600; color: var(--white);
  white-space:nowrap; box-shadow: 0 10px 26px rgba(5,10,25,.4);
  animation: badgeFloat 3.6s ease-in-out infinite;
}
.hero-float-badge i{ color: var(--gold-light); font-size:.95rem; }
.hero-float-badge.fb-1{ top:6%; left:-18px; animation-delay:0s; }
.hero-float-badge.fb-2{ top:6%; right:-18px; animation-delay:.5s; }
.hero-float-badge.fb-3{ bottom:20%; left:-30px; animation-delay:1s; }
.hero-float-badge.fb-4{ bottom:20%; right:-24px; animation-delay:1.5s; }
@keyframes badgeFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-9px); }
}

.scroll-cue{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(250,247,241,.4); border-radius:20px;
  z-index:2;
}
.scroll-cue span{
  position:absolute; top:7px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background: var(--gold-light);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue{
  0%{ opacity:1; top:7px; } 70%{ opacity:0; top:22px; } 100%{ opacity:0; top:7px; }
}

/* =========================================================
   SECTIONS — commun
   ========================================================= */
.section{ padding: 110px 0; }
.section-head{ max-width:640px; margin: 0 auto 56px; text-align:center; }
.section-head .eyebrow{ color: var(--gold); justify-content:center; }
.section-head h2{ font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-sub{ margin:14px 0 0; color: var(--ink-soft); font-size:1.02rem; }
.section-head.light h2{ color: var(--white); }
.section-head.light .section-sub{ color: rgba(250,247,241,.7); }

/* ---------- À propos ---------- */
.apropos{ background: var(--white); }
.apropos-grid{ display:grid; grid-template-columns: 1.5fr 1fr; gap:60px; align-items:start; }
.apropos-text .lead{ font-size:1.2rem; font-weight:500; color: var(--navy); line-height:1.55; }
.apropos-text p{ color: var(--ink-soft); line-height:1.85; font-size:1rem; }
.apropos-langues{ margin-top:30px; display:flex; flex-direction:column; gap:18px; }
.langue-top{ display:flex; justify-content:space-between; font-size:.88rem; font-weight:600; color: var(--navy); margin-bottom:7px; }
.langue-top span:last-child{ color: var(--ink-soft); font-weight:400; }
.langue-bar{ height:6px; background: var(--cream-2); border-radius:6px; overflow:hidden; }
.langue-bar span{
  display:block; height:100%; width:0; border-radius:6px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width 1.4s cubic-bezier(.16,.8,.28,1);
}
.langue-bar span.animate{ width: var(--w); }

.apropos-side{ display:flex; flex-direction:column; gap:18px; }
.side-card{
  display:flex; align-items:flex-start; gap:16px;
  background: var(--cream); border:1px solid var(--line);
  border-radius: var(--radius); padding:22px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.side-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.side-card i{ font-size:1.3rem; color: var(--gold); margin-top:3px; }
.side-card div{ display:flex; flex-direction:column; gap:3px; }
.side-card strong{ font-family: var(--serif); color: var(--navy); font-size:1.02rem; }
.side-card span{ color: var(--ink-soft); font-size:.9rem; }

/* ---------- Compétences ---------- */
.competences{ background: var(--cream-2); }
.skills-cols{ display:grid; grid-template-columns: repeat(3, 1fr); gap:26px; }
.skills-card{
  background: var(--white); border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
}
.skills-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.skills-card-visual{ position:relative; height:160px; overflow:hidden; border-bottom:3px solid var(--gold); }
.skills-card-visual img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .7s cubic-bezier(.16,.8,.28,1);
}
.skills-card:hover .skills-card-visual img{ transform: scale(1.09); }
.skills-card-visual::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,27,58,0) 45%, rgba(13,27,58,.35));
}
.skills-card-body{ padding: 28px 30px 32px; }
.skills-card-head{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.skills-card-head i{
  width:46px; height:46px; border-radius:50%; background: var(--navy); color: var(--gold-light);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.skills-card:hover .skills-card-head i{ transform: rotate(-8deg) scale(1.08); }
.skills-card-head h3{ font-size:1.12rem; }
.skills-list li{
  display:flex; align-items:center; gap:12px; padding:10px 0;
  border-bottom: 1px dashed var(--line); color: var(--ink); font-size:.95rem;
}
.skills-list li:last-child{ border-bottom:none; }
.skills-list i{ color: var(--gold); width:18px; text-align:center; }

/* ---------- Expérience — timeline ---------- */
.experience{ background: var(--white); }
.experience-visual{
  position:relative; max-width:820px; margin:0 auto 50px;
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md);
}
.experience-visual img{ width:100%; height:260px; object-fit:cover; display:block; }
.experience-visual figcaption{
  position:absolute; inset:auto 0 0 0; padding:20px 26px;
  background: linear-gradient(0deg, rgba(13,27,58,.92), transparent);
  color: var(--cream); font-size:.95rem; font-weight:500; font-style:italic;
  display:flex; align-items:center; gap:10px;
}
.experience-visual figcaption i{ color: var(--gold-light); font-style:normal; }
.timeline{ position:relative; max-width:820px; margin:0 auto; }
.timeline::before{
  content:""; position:absolute; left:23px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--gold), var(--line));
}
.timeline-item{ position:relative; padding-left:70px; margin-bottom:44px; }
.timeline-item:last-child{ margin-bottom:0; }
.timeline-dot{
  position:absolute; left:0; top:0; width:48px; height:48px; border-radius:50%;
  background: var(--navy); color: var(--gold-light); display:flex; align-items:center; justify-content:center;
  font-size:1.05rem; box-shadow: 0 0 0 6px var(--cream);
  z-index:2;
}
.timeline-card{
  background: var(--cream); border:1px solid var(--line); border-radius: var(--radius);
  padding:26px 28px; transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-card:hover{ transform: translateX(6px); box-shadow: var(--shadow-sm); }
.timeline-date{
  display:inline-block; font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--gold); background: rgba(201,162,77,.12); padding:5px 12px; border-radius:20px; margin-bottom:12px;
}
.timeline-card h3{ font-size:1.2rem; margin-bottom:4px; }
.timeline-org{ font-weight:600; color: var(--navy); margin:0 0 12px; font-size:.92rem; }
.timeline-card p:not(.timeline-org):not(.timeline-date){ color: var(--ink-soft); line-height:1.7; font-size:.94rem; margin:0; }

/* ---------- Formation ---------- */
.formation{ background: var(--cream-2); }
.formation-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:26px; max-width:900px; margin:0 auto; }
.formation-card{
  background: var(--white); border-radius: var(--radius); padding:32px;
  box-shadow: var(--shadow-sm); text-align:center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.formation-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.formation-card i{
  width:58px; height:58px; border-radius:50%; margin: 0 auto 18px;
  background: var(--navy); color: var(--gold-light); font-size:1.4rem;
  display:flex; align-items:center; justify-content:center;
}
.formation-card h3{ font-size:1.12rem; margin:14px 0 8px; }
.formation-card .timeline-org{ font-size:.88rem; }

/* ---------- Galerie ---------- */
.galerie{ background: var(--white); }
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:22px; }
.gallery-item{
  position:relative; margin:0; border-radius: var(--radius); overflow:hidden;
  aspect-ratio: 3/4; cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s cubic-bezier(.16,.8,.28,1);
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item figcaption{
  position:absolute; inset:auto 0 0 0; padding:18px 16px 14px;
  background: linear-gradient(0deg, rgba(13,27,58,.92), transparent);
  color: var(--cream); font-size:.84rem; font-weight:500;
  display:flex; align-items:center; gap:8px;
  transform: translateY(8px); opacity:.92;
}
.gallery-item figcaption i{ color: var(--gold-light); }

.lightbox{
  position:fixed; inset:0; background: rgba(10,15,30,.94); z-index:2000;
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; visibility:hidden; transition: opacity .3s ease;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:88vh; border-radius:10px; box-shadow: var(--shadow-lg); }
.lightbox-close{
  position:absolute; top:28px; right:32px; background: rgba(250,247,241,.1); border: 1px solid rgba(250,247,241,.25);
  color: var(--cream); width:44px; height:44px; border-radius:50%; cursor:pointer; font-size:1.1rem;
  display:flex; align-items:center; justify-content:center; transition: all .2s ease;
}
.lightbox-close:hover{ background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- Contact ---------- */
.contact{
  position:relative; background: linear-gradient(160deg, #0a1530, #14274e);
  padding: 110px 0; overflow:hidden;
}
.contact-grid{
  position:absolute; inset:0; opacity:.1;
  background-image:
    linear-gradient(rgba(231,205,143,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,205,143,.5) 1px, transparent 1px);
  background-size: 54px 54px;
}
.contact-inner{ position:relative; z-index:2; text-align:center; }
.contact-grid-cards{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; max-width:920px; margin: 0 auto;
}
.contact-card{
  background: rgba(250,247,241,.06); border:1px solid rgba(250,247,241,.14);
  border-radius: var(--radius); padding:30px 22px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  transition: all .3s ease;
}
.contact-card:hover{ background: rgba(250,247,241,.1); transform: translateY(-6px); border-color: var(--gold); }
.contact-card i{ font-size:1.5rem; color: var(--gold-light); margin-bottom:6px; }
.contact-card span{ font-size:.8rem; color: rgba(250,247,241,.6); text-transform:uppercase; letter-spacing:.08em; }
.contact-card strong{ color: var(--white); font-weight:600; font-size:.98rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); padding: 26px 0; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:.85rem; color: rgba(250,247,241,.55);
}
.footer-inner a{ color: var(--gold-light); display:flex; align-items:center; gap:7px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-actions, .hero-stats{ justify-content:center; }
  .hero-photo{ order:-1; margin-bottom:20px; }
  .apropos-grid{ grid-template-columns:1fr; }
  .skills-cols{ grid-template-columns:1fr; max-width:520px; margin:0 auto; }
  .experience-visual img{ height:200px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid-cards{ grid-template-columns:1fr; }
  .main-nav{
    position:fixed; top:0; right:-100%; height:100vh; width:min(320px,80%);
    background: var(--navy); flex-direction:column; justify-content:center; align-items:flex-start;
    padding: 40px; gap:26px; transition: right .35s ease; z-index:400;
  }
  .main-nav.is-open{ right:0; box-shadow: var(--shadow-lg); }
  .main-nav .nav-link{ color: var(--white) !important; font-size:1.1rem; }
  .nav-toggle{ display:flex; }
}
@media (max-width: 640px){
  .section{ padding:80px 0; }
  .formation-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap:14px; }
  .hero-stats{ gap:26px; }
  .intro-photo-wrap{ width:128px; height:128px; }
  .intro-photo{ width:128px; height:128px; }
  .intro-ring{ width:150px; height:150px; inset:-11px; }
  .hero-photo-ring{ display:none; }
  .hero-float-badge{ font-size:.68rem; padding:7px 12px; gap:6px; }
  .hero-float-badge i{ font-size:.82rem; }
  .hero-float-badge.fb-1{ left:-8px; }
  .hero-float-badge.fb-2{ right:-8px; }
  .hero-float-badge.fb-3{ left:-14px; }
  .hero-float-badge.fb-4{ right:-10px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
