/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-deep: #0a2540;
  --blue-mid: #1a4d7a;
  --blue-soft: #e8f1f8;
  --accent: #f4a261;
  --accent-dark: #e76f51;
  --text: #1a1f2e;
  --text-soft: #5a6478;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-deep);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue-deep);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--blue-deep);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
}

.logo-text em {
  color: var(--accent-dark);
  font-style: normal;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--blue-deep); }

.main-nav a.active {
  color: var(--blue-deep);
  font-weight: 700;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-deep);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a2540 0%, #1a4d7a 60%, #2c6ba0 100%);
  color: #fff;
  padding: 110px 0 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244, 162, 97, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding-bottom: 80px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--blue-deep);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 111, 81, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Stats */
.hero-stats {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.link-arrow {
  font-weight: 600;
  color: var(--blue-mid);
  transition: color 0.2s, gap 0.2s;
}

.link-arrow:hover { color: var(--accent-dark); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.about-text .link-arrow { display: inline-block; margin-top: 12px; }

.about-visual {
  display: grid;
  gap: 16px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 { margin-bottom: 8px; color: var(--blue-deep); }
.about-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ===== CARTES ARTICLES / VIDÉOS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--blue-soft);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-media img { transform: scale(1.06); }

.card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--blue-deep);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 700;
  color: var(--blue-mid);
  font-size: 0.9rem;
}

.card-link:hover { color: var(--accent-dark); }

/* Vidéo play */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 37, 64, 0.35);
  transition: background 0.3s;
}

.card:hover .video-play { background: rgba(10, 37, 64, 0.5); }

.video-play::after {
  content: '▶';
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0a2540, #1a4d7a);
  color: #fff;
  padding: 80px 0 70px;
}

.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .eyebrow { color: var(--accent); }
.page-sub {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  font-size: 1.05rem;
}

/* ===== FILTRES ===== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover { border-color: var(--blue-mid); color: var(--blue-mid); }

.filter-btn.active {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}

/* ===== GALERIE PHOTO ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--blue-soft);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.photo-item:hover img { transform: scale(1.08); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-item:hover .photo-overlay { opacity: 1; }

.photo-overlay p {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox p {
  color: #fff;
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== DOCUMENTS ===== */
.doc-list {
  display: grid;
  gap: 16px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-item:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow);
}

.doc-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.doc-info { flex: 1; }
.doc-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.doc-info p { color: var(--text-soft); font-size: 0.9rem; }

.doc-download {
  flex-shrink: 0;
  padding: 11px 24px;
  background: var(--blue-deep);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.doc-download:hover { background: var(--accent-dark); }

/* ===== CITATION ===== */
.quote-section {
  background: var(--blue-deep);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.4;
}

.quote-section cite {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== CTA ===== */
.cta-section { background: var(--bg-alt); }

.cta-inner {
  text-align: center;
  max-width: 700px;
}

.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { color: var(--text-soft); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.logo-footer { color: #fff; margin-bottom: 18px; }
.logo-footer .logo-icon { background: var(--accent); color: var(--blue-deep); }

.footer-desc { font-size: 0.92rem; line-height: 1.7; max-width: 340px; }

.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== MESSAGES VIDES ===== */
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  padding: 60px 20px;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }

  .hero { padding-top: 70px; }
  .hero-content { padding-bottom: 60px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc-item { flex-direction: column; align-items: flex-start; }
  .doc-download { width: 100%; text-align: center; }
}