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

:root {
  --c-bg: #F7F5F0;
  --c-surface: #FFFFFF;
  --c-border: rgba(0,0,0,0.08);
  --c-border-med: rgba(0,0,0,0.14);
  --c-text: #1A1917;
  --c-text-2: #6B6860;
  --c-text-3: #A09E98;
  --c-accent: #2D4A8A;
  --c-accent-light: #E8EDF7;
  --c-accent-2: #C8501A;
  --c-accent-2-light: #FAF0EB;
  --c-green: #1A6B45;
  --c-green-light: #E6F4EE;
  --nav-h: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --transition: 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

h1,h2,h3,h4,h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; font-weight: 500; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { color: var(--c-text-2); line-height: 1.7; }

img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--c-text-2);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--c-text);
  background: rgba(0,0,0,0.05);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--c-accent);
  background: var(--c-accent-light);
  font-weight: 500;
}

.nav-links .has-sub { position: relative; }

.nav-links .has-sub:hover .sub-menu,
.nav-links .has-sub:focus-within .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.has-sub::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px; /* couvre le gap de 8px + marge */
}

.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition);
}

.sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--c-text-2);
  white-space: nowrap;
}

.sub-menu a:hover {
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1e3870;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-text-2);
  border: 1px solid var(--c-border-med);
}

.btn-outline:hover {
  background: rgba(0,0,0,0.04);
  color: var(--c-text);
}

.btn-sm { font-size: 12.5px; padding: 6px 14px; }

/* ── LAYOUT ── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.section-header { margin-bottom: 40px; }
.section-header p { margin-top: 10px; max-width: 540px; }

/* ── HERO ── */
.hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-accent);
  background: var(--c-accent-light);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 16px; }

.hero-desc {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-accent-light);
  display: flex;
  align-items: center;
  justify-content: font;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--c-accent);
  justify-content: center;
  margin-bottom: 14px;
}

.hero-card h3 { font-size: 1rem; margin-bottom: 4px; }
.hero-card p { font-size: 13px; color: var(--c-text-2); margin-bottom: 16px; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.hero-stat-val {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--c-text);
}

.hero-stat-lbl {
  font-size: 11px;
  color: var(--c-text-3);
}

/* ── CARDS ── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border-med);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.card h3 { margin-bottom: 6px; }
.card p { font-size: 13.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-blue { background: var(--c-accent-light); color: var(--c-accent); }
.badge-orange { background: var(--c-accent-2-light); color: var(--c-accent-2); }
.badge-green { background: var(--c-green-light); color: var(--c-green); }
.badge-gray { background: rgba(0,0,0,0.06); color: var(--c-text-2); }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 48px 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--c-text-3);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--c-text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text-2); }
.breadcrumb span { color: var(--c-text-3); }

/* ── NEWS ── */
.news-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 12px; color: var(--c-text-3); min-width: 72px; padding-top: 2px; }
.news-content h4 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.news-content p { font-size: 13px; }

/* ── PUB ── */
.pub-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all var(--transition);
  margin-bottom: 12px;
}
.pub-item:hover { box-shadow: var(--shadow); border-color: var(--c-border-med); }
.pub-item h4 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.pub-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pub-meta span { font-size: 12px; color: var(--c-text-3); }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--c-bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 32px;
  border: 1px solid var(--c-border);
  width: fit-content;
}

.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  padding: 7px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--c-border-med);
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-surface);
  box-shadow: 0 0 0 2px var(--c-accent);
}
.tl-item h4 { font-family: 'Syne',sans-serif; font-weight:600; font-size:0.9rem; margin-bottom:3px; }
.tl-date { font-size:12px; color:var(--c-text-3); margin-bottom:4px; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--c-text); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border-med);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(45,74,138,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
.footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

.footer p { font-size: 13px; }
.footer h5 { font-family: 'Syne',sans-serif; font-weight:600; font-size:0.85rem; color:#fff; margin-bottom:14px; letter-spacing:0.04em; text-transform:uppercase; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size:13px; color:rgba(255,255,255,0.55); text-decoration:none; transition:color var(--transition); }
.footer ul a:hover { color:#fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 12px; }

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-val {
  font-family: 'Syne',sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--c-text);
}

.stat-lbl { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

/* ── ACCORDION ── */
.accordion-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--c-surface);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-family: 'Syne',sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.accordion-header:hover { background: var(--c-bg); }

.accordion-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
}

.accordion-item.open .accordion-body { display: block; }

/* ── VIDEO CARD ── */
.video-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.video-thumb {
  aspect-ratio: 16/9;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card-body { padding: 16px; }
.video-card-body h4 { font-family:'Syne',sans-serif; font-weight:600; font-size:0.9rem; margin-bottom:4px; }
.video-card-body p { font-size:12.5px; }

/* ── BLOG ── */
.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.blog-card-img {
  aspect-ratio: 16/7;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-card-body p { font-size: 13px; }
.blog-meta { display:flex; gap:12px; margin-bottom:10px; }
.blog-meta span { font-size:11.5px; color:var(--c-text-3); }

/* ── CV TABLE ── */
.cv-table { width:100%; border-collapse: collapse; }
.cv-table td { padding: 10px 14px; font-size: 13.5px; vertical-align: top; }
.cv-table td:first-child { width: 120px; font-size: 12px; color: var(--c-text-3); white-space: nowrap; }
.cv-table tr { border-bottom: 1px solid var(--c-border); }
.cv-table tr:last-child { border-bottom: none; }

/* ── SEARCH ── */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-med);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 24px;
}
.search-box input { border: none; outline: none; font-family:'DM Sans',sans-serif; font-size:14px; flex:1; background:transparent; color:var(--c-text); }

/* ── ALERT ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: var(--c-green-light); color: var(--c-green); border: 1px solid rgba(26,107,69,0.15); }
.alert-info { background: var(--c-accent-light); color: var(--c-accent); border: 1px solid rgba(45,74,138,0.15); }

/* ── MOBILE ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--c-text);
  margin-left: auto;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 40px 20px 32px; }

  .mobile-nav {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
  }

  .mobile-nav a {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--c-text);
    text-decoration: none;
    border-radius: 6px;
  }

  .mobile-nav a:hover { background: var(--c-bg); }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.25,0.46,0.45,0.94) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── UTILS ── */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--c-text-2); }
.text-center { text-align: center; }
.w-full { width: 100%; }

.divider { height: 1px; background: var(--c-border); margin: 32px 0; }

.highlight-bar {
  display: inline-block;
  position: relative;
}
.highlight-bar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--c-accent-light);
  z-index: -1;
  border-radius: 2px;
}
