:root {
  --orange: #E87722;
  --orange-dark: #c96a1d;
  --turquoise: #2B9EB3;
  --turquoise-dark: #238a9c;
  --dark: #1a1a1a;
  --gray: #555;
  --light-gray: #888;
  --bg: #FAFAF8;
  --max-width: 1400px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
}

.sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Container centré à 1400px */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; width: 100%; }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo avec SVG */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}
.nav-logo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-icon {
  transform: rotate(15deg);
}
/* Masquer l'ancien point */
.nav-logo-dot { display: none; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); transition: 0.3s; }

/* Main centré */
main { max-width: var(--max-width); margin: 0 auto; width: 100%; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.5rem; }
.hero-badge-dots { display: flex; gap: 6px; }
.hero-badge-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; }
.hero-badge-line { width: 30px; height: 3px; background: var(--turquoise); }

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}
.hero-title-orange { color: var(--orange); }
.hero-title-turquoise { color: var(--turquoise); }

.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-secondary:hover { background: var(--dark); color: #fff; }

/* Hero decoration */
.hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.15;
  pointer-events: none;
}
.hero-deco-circle { position: absolute; border-radius: 50%; border: 2px solid var(--turquoise); }
.hero-deco-circle:nth-child(1) { width: 100%; height: 100%; animation: pulse 4s ease-in-out infinite; }
.hero-deco-circle:nth-child(2) { width: 70%; height: 70%; top: 15%; left: 15%; animation: pulse 4s ease-in-out infinite 0.5s; }
.hero-deco-circle:nth-child(3) { width: 40%; height: 40%; top: 30%; left: 30%; animation: pulse 4s ease-in-out infinite 1s; }

@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }

/* Sections */
.section { padding: 5rem 2rem; }
.section-dark { background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); color: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.section-desc { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* Publications Grid */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.pub-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pub-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.pub-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--turquoise) 100%);
  position: relative;
}
.pub-card-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.95);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pub-card-tag-orange { color: var(--orange); }
.pub-card-tag-turquoise { color: var(--turquoise); }

.pub-card-content { padding: 1.5rem; }
.pub-card-date { font-size: 0.8rem; color: var(--light-gray); margin-bottom: 0.5rem; }
.pub-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; }
.pub-card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.pub-card-title a:hover { color: var(--orange); }
.pub-card-excerpt { font-size: 0.95rem; color: var(--gray); line-height: 1.6; }

/* Thématiques */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.theme-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}
.theme-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.theme-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.theme-icon svg {
  width: 26px;
  height: 26px;
}
.theme-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.theme-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* CTA Section */
.cta {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--orange) 0%, #d06a1a 100%);
  color: #fff;
}
.cta-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.cta-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: var(--dark); color: #fff; }

/* Footer */
.footer { background: var(--dark); color: #fff; padding: 4rem 2rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }

/* Footer logo avec SVG */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-logo-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.footer-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.25rem; color: var(--turquoise); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  }
  .nav-links.active { right: 0; }

  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

@media (max-width: 640px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-deco { display: none; }
  .section { padding: 3.5rem 1.5rem; }
  .publications-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 1.25rem; }
}

/* Animations */
.animate { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* pages internes : padding plus compact */
.page-hero { min-height: auto; padding: 8rem 2rem 3rem; }
