/* ============================================================
   LOUNA BOURCIER — style.css v2
   Mobile-first · Responsive · i18n lang switcher · Design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  /* Palette */
  --bg:          #ede4db;
  --bg-alt:      #EDEAE2;
  --card:        #FFFFFF;
  --card-teal:   #FFFFFF;
  --border:      #dddad1;
  --primary:     #c7b299;
  --primary-dark:#9a8469;
  --pill-bg:     #f7f3ee;
  --text:        #312b2b;
  --text-muted:  #595454;
  --text-light:  #a18e78;

  /* Shadows */
  --shadow:      0 2px 14px rgba(0,0,0,0.07);
  --shadow-hover:0 6px 24px rgba(0,0,0,0.11);

  /* Shape */
  --radius:    12px;
  --radius-sm: 8px;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;

  /* Container */
  --container: 1160px;
  --transition: 0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 600; }
p  { color: var(--text); line-height: 1.7; }

/* ── Pill / Badge ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pill-bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: var(--s3);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(91,163,176,0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--pill-bg);
  transform: translateY(-1px);
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4) 28px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-teal {
  background: var(--card-teal);
  border-radius: var(--radius);
  padding: var(--s4) 28px;
}

/* ── Section spacing ── */
.section    { padding: var(--s6) 0; }
.section-sm { padding: var(--s5) 0; }
.section-header { margin-bottom: var(--s5); }
.section-header h2 { margin-top: 8px; }
.section-header > p { color: var(--text-muted); font-size: 1.02rem; max-width: 660px; margin-top: 10px; }

/* ══════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245,242,236,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s4);
  min-height: 64px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo span { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover        { color: var(--text); background: var(--pill-bg); }
.nav-link.active       { color: var(--primary); background: var(--pill-bg); font-weight: 600; }
.nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Lang switcher ── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: var(--s3);
  border-left: 1px solid var(--border);
  margin-left: var(--s2);
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
  opacity: 0.45;
}
.lang-btn:hover { opacity: 1; background: var(--pill-bg); }
.lang-btn.lang-active {
  opacity: 1;
  border-color: var(--primary);
  background: var(--pill-bg);
}
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ensure flag icons fit nicely inside the small buttons */
.lang-btn img,
.lang-flag {
  display: block;
  width: 1.4rem;
  height: auto;
}

/* ── Burger (SVG icon, no spans) ── */
.burger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
  color: var(--text);
  z-index: 1001;
}
.burger:hover { background: var(--pill-bg); }
.burger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.burger-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.burger-icon-close { display: none; }
.burger[aria-expanded="true"] .burger-icon-menu { display: none; }
.burger[aria-expanded="true"] .burger-icon-close { display: block; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 55fr 45fr;
  overflow: hidden;
}
/* Desktop: content left, image right (hero-content is 2nd in DOM now) */
.hero .hero-content { grid-column: 1; grid-row: 1; }
.hero .hero-image  { grid-column: 2; grid-row: 1; }

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s6) var(--s5) var(--s6) 0;
  max-width: 660px;
  margin: 0 auto 0 max(24px, calc(50vw - 580px));
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--s4);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: var(--s5);
  line-height: 1.72;
}

.hero-btns {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  background: linear-gradient(135deg, #E0EBF0 0%, #C8DCE4 60%, #BAD2DA 100%);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-image::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(91,163,176,0.14);
  bottom: -60px; right: -60px;
  z-index: 0;
}
.hero-image::after {
  content: '';
  position: absolute;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: rgba(210,190,160,0.22);
  top: 40px; right: 40px;
  z-index: 0;
}
.hero-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  text-align: center;
}
.stats-item { min-width: 0; }
.stats-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}
.stats-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Explore grid (quick links) ── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.explore-card {
  text-decoration: none;
  display: block;
  min-width: 0;
}
.explore-card:hover { text-decoration: none; }
.explore-card-icon { font-size: 2rem; margin-bottom: 12px; }
.explore-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}
.explore-card-desc-teal { opacity: 0.85; }
.explore-card-static:hover { transform: none; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: var(--s6) 0 var(--s5);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   PROFIL
══════════════════════════════════════════════════════════ */
.profil-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s6);
  align-items: start;
}
.profil-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profil-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pill-bg), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow);
}
.profil-text p { margin-bottom: var(--s3); font-size: 1.02rem; }

.profil-infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s5);
}
.info-block h4 {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-block li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.info-block li:last-child { border-bottom: none; }

/* ── Valeur ── */
.valeur-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 760px;
  margin: 0 0 var(--s5);
  line-height: 1.75;
}
.valeur-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.valeur-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.valeur-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.valeur-card .ico-big { font-size: 1.8rem; margin-bottom: var(--s3); }
.valeur-card h3 { margin-bottom: 8px; }
.valeur-card p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ── KPI ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px var(--s4);
  box-shadow: var(--shadow);
  text-align: center;
}
.kpi-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.kpi-label { font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; }
.kpi-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Alternance ── */
.alternance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s3);
}
.alternance-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.alternance-block h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: var(--s3); }
.alternance-block ul li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg-alt);
  display: flex;
  gap: 8px;
}
.alternance-block ul li:last-child { border-bottom: none; }
.alternance-block ul li::before { content: '—'; color: var(--primary); flex-shrink: 0; }
.alternance-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-alt);
  flex-wrap: wrap;
}
.alternance-row:last-child { border-bottom: none; }
.alternance-row strong { color: var(--text); min-width: 105px; font-weight: 600; flex-shrink: 0; }

/* ── Compétences ── */
.competences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
.comp-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.comp-block h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--pill-bg);
}
.comp-block li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg-alt);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comp-block li:last-child { border-bottom: none; }
.comp-block li::before {
  content: '';
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}

/* ── Langues ── */
.langues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.langue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px var(--s3);
  box-shadow: var(--shadow);
  text-align: center;
}
.langue-flag  { font-size: 1.7rem; margin-bottom: 8px; }
.langue-name  { font-weight: 700; font-size: 0.93rem; margin-bottom: 4px; }
.langue-level { font-size: 0.8rem; color: var(--text-muted); }
.langue-score { font-size: 0.77rem; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   FORMATION
══════════════════════════════════════════════════════════ */
.formation-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--s6);
  align-items: center;
}
.formation-cards { display: flex; flex-direction: column; gap: var(--s3); }
.formation-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.formation-card:hover { box-shadow: var(--shadow-hover); transform: translateX(3px); }
.formation-card h3  { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.formation-card p   { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.formation-card .badge {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}
.formation-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow);
}
.formation-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════ */
.timeline-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 8px;
}
.timeline-tip {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--s5);
}

.timeline {
  position: relative;
  padding: var(--s3) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  /* use a darker shade instead of the default border variable */
  background: #595454;
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  margin-bottom: var(--s5);
  align-items: start;
}

.timeline-num {
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.timeline-num:hover, .timeline-num.tl-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(91,163,176,0.4);
}

.timeline-content-left  { text-align: right;  padding-right: var(--s4); padding-top: 4px; }
.timeline-content-right { text-align: left;   padding-left: var(--s4);  padding-top: 4px; }

/* odd items: left side visible */
.timeline-item:nth-child(odd) .timeline-content-right { visibility: hidden; pointer-events: none; }
/* even items: right side visible, left hidden */
.timeline-item:nth-child(even) .timeline-content-left  { visibility: hidden; pointer-events: none; }

.timeline-date     { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; }
.timeline-role     { font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.timeline-org      { font-weight: 600; color: var(--primary); font-size: 0.87rem; margin-bottom: 2px; }
.timeline-location { font-size: 0.78rem; color: var(--text-light); margin-bottom: 5px; }
.timeline-desc     { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.timeline-detail {
  display: none;
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin: -16px 0 var(--s3);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  animation: slideDown 0.28s ease;
}
.timeline-detail.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Exp detail sections ── */
.exp-section + .exp-section { border-top: 1px solid var(--border); }
.exp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}
.exp-card-sm {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.exp-card-sm h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.exp-card-sm p  { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.exp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
.richebourg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.exp-two-col ul { list-style: none; padding: 0; }
.exp-two-col ul li {
  padding: 7px 0;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.9rem;
}
.exp-two-col ul li:last-child { border-bottom: none; }
.exp-two-col ul li span { color: var(--primary); }
.livrable-banner {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: var(--s4);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════
   ÉTUDES DE CAS
══════════════════════════════════════════════════════════ */
.cas-list { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); }
.cas-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  transition: all var(--transition);
}
.cas-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.cas-num {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}
.cas-body h3  { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cas-body p   { font-size: 0.87rem; color: var(--text-muted); }
.cas-body .preuve { font-size: 0.76rem; color: var(--primary); font-weight: 600; margin-top: 6px; }

.harley-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s4);
}
.methodo-list h4  { font-weight: 700; margin-bottom: var(--s3); }
.methodo-list ul li {
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg-alt);
  display: flex;
  gap: 8px;
}
.methodo-list ul li:last-child { border-bottom: none; }
.methodo-list ul li::before { content: '•'; color: var(--primary); flex-shrink: 0; }
.reco-list h4    { font-weight: 700; margin-bottom: var(--s3); }
.reco-block {
  border-left: 3px solid var(--primary);
  padding: 10px 0 10px var(--s3);
  margin-bottom: var(--s3);
}
.reco-block h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.reco-block p  { font-size: 0.87rem; color: var(--text-muted); }

.terres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
.terres-card h4 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.terres-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.62; }
.terres-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--s3);
}
.terres-img-wrap {
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--s3);
}
.terres-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.projet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
.projet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.projet-card .ico-emoji { font-size: 1.8rem; margin-bottom: var(--s3); }
.projet-card h4 { font-weight: 700; margin-bottom: var(--s3); }
.projet-card ul li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--bg-alt);
}
.projet-card ul li:last-child { border-bottom: none; }
.projet-card ul li::before { content: '—'; color: var(--primary); flex-shrink: 0; }
.enseignement {
  margin-top: var(--s3);
  padding: 12px var(--s3);
  background: var(--pill-bg);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s6);
  align-items: start;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: var(--s4) 0;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px var(--s3);
  box-shadow: var(--shadow);
}
.contact-card .ico { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card h4   { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.contact-card a { color: var(--primary); text-decoration: underline; }
.objectif-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: var(--s4);
}
.objectif-block h4 { font-family: var(--font-sans); font-weight: 700; margin-bottom: 10px; }
.objectif-block p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }
.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}
.contact-right > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.alternance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.qr-block { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.qr-placeholder {
  width: 200px; height: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow);
}
.qr-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.qr-label { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer a { color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 1280px
══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .hero-content { padding: var(--s5) var(--s5) var(--s5) 0; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablette paysage)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .formation-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .formation-img { height: 260px; max-width: 500px; }
  .profil-grid { grid-template-columns: 200px 1fr; gap: var(--s5); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: var(--s4); }
  .alternance-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-link { padding: 6px 10px; font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 768px (tablette portrait / mobile)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav mobile */
  .burger { display: flex; }
  .nav-lang { display: none; } /* hidden in header on mobile, shown in menu */

  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--s2);
    z-index: 999;
    overflow-y: auto;
    padding: var(--s4) var(--s4) var(--s5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-menu.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
  .nav-menu > li {
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
  }
  .nav-link { font-size: 1rem; padding: 14px 16px; width: 100%; max-width: 280px; text-align: center; box-sizing: border-box; }

  /* Lang switcher inside mobile menu */
  .nav-menu .nav-lang {
    display: flex;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: var(--s3);
    margin-top: var(--s2);
    margin-left: 0;
    gap: var(--s3);
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-menu .lang-btn { font-size: 1.5rem; padding: 8px 12px; }

  /* Hero responsive: photo à droite du texte, padding latéral sur la section */
  main { padding-top: 0; }
  .hero {
    grid-template-columns: 1fr minmax(120px, 38%);
    grid-template-rows: 1fr;
    min-height: auto;
    overflow: visible;
    padding: var(--s5) var(--s4);
    gap: var(--s4);
    align-items: center;
  }
  .hero .hero-content { grid-column: 1; grid-row: 1; }
  .hero .hero-image   { grid-column: 2; grid-row: 1; }
  .hero-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    overflow: visible;
  }
  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    vertical-align: top;
  }
  .hero-content {
    padding: 0;
    margin: 0;
    max-width: none;
    min-width: 0;
  }

  /* Stats & explore grids */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }

  /* Sections */
  .section    { padding: var(--s5) 0; }
  .section-sm { padding: var(--s4) 0; }

  /* Profil */
  .profil-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .profil-photo, .profil-photo-placeholder { max-width: 200px; margin: 0 auto; aspect-ratio: 1/1; }
  .profil-infos-grid { grid-template-columns: 1fr; }

  /* Grids */
  .valeur-grid    { grid-template-columns: 1fr; }
  .alternance-grid { grid-template-columns: 1fr; }
  .competences-grid { grid-template-columns: 1fr; }
  .langues-grid   { grid-template-columns: repeat(2, 1fr); }
  .exp-grid-3     { grid-template-columns: 1fr; }
  .exp-two-col      { grid-template-columns: 1fr; }
  .richebourg-grid  { grid-template-columns: 1fr; }
  .harley-grid    { grid-template-columns: 1fr; gap: var(--s4); }
  .terres-grid    { grid-template-columns: 1fr; }
  .projet-grid    { grid-template-columns: 1fr; }
  .contact-cards     { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .contact-right     { flex-direction: column; align-items: center; }
  .alternance-grid   { grid-template-columns: 1fr; }

  /* Timeline mobile: colonne unique (numéro | contenu) */
  .timeline::before { left: 22px; }

  .timeline-item {
    grid-template-columns: 44px 1fr;
    column-gap: var(--s3);
  }

  /* Numéro toujours en col 1 / rangée 1 */
  .timeline-num {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  /* Détail toujours pleine largeur en rangée 2 */
  .timeline-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: var(--s2);
  }

  /* Items impairs : contenu dans .timeline-content-LEFT → col 2 */
  .timeline-item:nth-child(odd) .timeline-content-left {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 4px 0 0 0;
  }
  .timeline-item:nth-child(odd) .timeline-content-right { display: none !important; }

  /* Items pairs : contenu dans .timeline-content-RIGHT → col 2 */
  .timeline-item:nth-child(even) .timeline-content-left { display: none !important; }
  .timeline-item:nth-child(even) .timeline-content-right {
    grid-column: 2;
    grid-row: 1;
    visibility: visible !important;
    padding-left: 0;
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 480px (mobile S)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --s6: 48px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { grid-template-columns: 1fr minmax(100px, 35%); gap: var(--s3); padding: var(--s4) var(--s3); }
  .hero-image { min-height: 160px; }
  .hero-content { padding: 0; }
  .hero-btns  { flex-direction: column; }
  .hero-btns .btn { width: 100%; }

  .kpi-grid   { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .langues-grid { grid-template-columns: 1fr 1fr; }

  .card { padding: var(--s3) var(--s4); }
  .formation-img { height: 200px; }

  .explore-grid { grid-template-columns: 1fr; }
}

