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

:root {
  --blue-deep: #0d1b2a;
  --blue-mid: #1b263b;
  --blue-light: #d0d8e0;
  --blue-pale: #f4f7f9;
  --accent: #ED7D31;
  --green: #70AD47;
  --grey-dark: #2C2C2C;
  --grey-mid: #595959;
  --grey-light: #f4f7f9;
  --white: #FFFFFF;
  --nav-h: 60px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(13,27,42,0.10);
  --shadow-hover: 0 8px 40px rgba(13,27,42,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.65;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #0d1b2a;
  border-bottom: none;
  display: flex; align-items: center;
  padding: 0 28px;
  z-index: 1000;
  gap: 0;
}

.nav-back {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-right: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-back:hover { color: rgba(255,255,255,0.8); }

.nav-brand {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  margin-right: auto;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 0.1rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.dropdown { position: relative; }

/* Pont invisible : comble l'espace entre le lien et le sous-menu
   pour que la souris puisse descendre sans perdre le survol */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  width: 100%; height: 10px;
}

.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  margin-top: 8px;
  background: #1b263b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── LAYOUT ── */
main { padding-top: var(--nav-h); }

section {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section.full-width {
  max-width: 100%;
  padding: 5rem 0;
}

/* ── HERO ── */
#home {
  height: 280px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: linear-gradient(rgba(13,27,42,0.55), rgba(13,27,42,0.55)),
              url('Nat.jpg') center/cover no-repeat;
  color: white;
  padding: 0 2.5rem;
  max-width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#home::before { display: none; }

.hero-inner {
  max-width: 1100px;
  width: 92%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-visual {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  z-index: 2;
}
.hero-visual img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

/* ── Action bar below hero ── */
.hero-actions-bar {
  background: #1b263b;
  padding: 14px 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: white;
  padding: 8px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 13px;
  transition: background 0.2s;
}
.hero-btn-primary:hover { background: #d46a20; }
.hero-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: 13px;
  transition: background 0.2s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.25);
}

#home h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: normal;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
}

/* stats not shown in compact hero */
#home .stats-row,
#home .hero-actions { display: none; }

#home .hero-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.stats-row {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}

.stat-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SECTION TITLES ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--grey-mid);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── DIVIDER ── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--blue-light);
  margin: 0;
}

/* ── MISSION CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.card-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; color: var(--grey-mid); line-height: 1.6; }

/* ── PROCESS STEPS ── */
.steps {
  display: flex; gap: 0; margin-top: 2rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 24px; left: 24px; right: 24px;
  height: 2px; background: var(--blue-light);
  z-index: 0;
}
.step {
  flex: 1; text-align: center;
  position: relative; z-index: 1;
  padding: 0 1rem;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--blue-deep);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--blue-light);
}
.step h4 { font-size: 0.9rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.4rem; }
.step p { font-size: 0.8rem; color: var(--grey-mid); }

/* ── EQUIPMENT ── */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.equipment-card {
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.equipment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.equipment-img {
  height: 160px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--blue-light);
}

.equipment-body { padding: 1.25rem; }
.equipment-body h3 { font-size: 1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.4rem; }
.equipment-body p { font-size: 0.85rem; color: var(--grey-mid); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.7rem; font-weight: 600;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── STATS / BILAN ── */
.bilan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bilan-stat {
  background: var(--blue-deep);
  color: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.bilan-stat .big { font-family: 'DM Serif Display', serif; font-size: 2.8rem; line-height: 1; margin-bottom: 0.5rem; }
.bilan-stat .lbl { font-size: 0.8rem; font-weight: 500; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.chart-box {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.chart-box h4 { font-size: 0.9rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1rem; }

.bar-item { margin-bottom: 0.75rem; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--grey-mid); margin-bottom: 0.3rem; }
.bar-track { background: var(--blue-light); border-radius: 4px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--blue-mid); transition: width 0.6s ease; }
.bar-fill.accent { background: var(--accent); }
.bar-fill.green { background: var(--green); }

/* ── PROJECT CARDS ── */
.project-card {
  display: grid;
  grid-template-columns: 40% 60%;
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: var(--shadow-hover); }

.project-img {
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--blue-light);
  flex-direction: column;
  gap: 0.5rem;
}

.project-img img {
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
}


.project-img span { font-size: 2rem; }

.project-body { padding: 1.5rem 1.75rem; }
.project-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.4rem; }
.project-body .hashtags { font-size: 0.75rem; color: var(--blue-mid); font-style: italic; margin-bottom: 0.75rem; }
.project-body p { font-size: 0.875rem; color: var(--grey-mid); line-height: 1.65; }

/* ── JOURNAL TABLE ── */
.journal-filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--blue-light);
  border-radius: 100px;
  background: white;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-mid);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue-deep);
  color: white;
  border-color: var(--blue-deep);
}

.journal-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.journal-table th {
  background: var(--blue-deep);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.journal-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--blue-light);
  color: var(--grey-mid);
  vertical-align: top;
}
.journal-table tr:nth-child(even) td { background: var(--blue-pale); }
.journal-table tr:hover td { background: var(--blue-light); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-design { background: #E3F0FF; color: var(--blue-deep); }
.badge-cut { background: #FFF3E0; color: #C85A00; }
.badge-phys { background: #E8F5E9; color: #2E7D32; }
.badge-disc { background: #F3E5F5; color: #6A1B9A; }
.badge-promo { background: #FFF8E1; color: #F57F17; }
.badge-other { background: #ECEFF1; color: #546E7A; }

/* ── FOOTER ── */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  padding: 3rem 2.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: white; margin-bottom: 0.5rem; }
.footer-sub { font-size: 0.85rem; opacity: 0.65; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-copy { width: 100%; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; opacity: 0.5; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .bilan-grid { grid-template-columns: 1fr 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .steps::before { display: none; }
  .stats-row { gap: 1rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
