/* ========================================
   STYLE PRO - Bleu & Orange
   Animations CSS fluides
======================================== */

:root {
  --blue: #0d3b66;
  --blue-dark: #082a4a;
  --blue-light: #1a5f9e;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-light: #fb923c;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
  --shadow-hover: 0 8px 30px rgba(13, 59, 102, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ========== HEADER ========== */
header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(13, 59, 102, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.4s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  gap: 2rem;
}

/* Logo - espace réservé */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo {
  height: 52px;
  width: auto;
  max-width: 580px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* .logo { */
  /* height: 52px; */
  /* width: auto; */
  /* max-width: 180px; */
  /* object-fit: contain; */
  /* transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); */
/* } */

.logo:hover {
  transform: scale(1.36);
}

/* Navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

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

.nav-list a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.06);
}

.nav-list a:hover::after {
  width: 60%;
}

.nav-list a.active {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

.nav-list a.active::after {
  width: 60%;
}

/* ========== MAIN CONTENT ========== */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 3rem;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.content-card:hover {
  box-shadow: var(--shadow-hover);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for children */
.content-card h1,
.content-card h2,
.content-card p,
.content-card .btn {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content-card h1 { animation-delay: 0.1s; }
.content-card h2 { animation-delay: 0.2s; }
.content-card p  { animation-delay: 0.3s; }
.content-card .btn { animation-delay: 0.4s; }

h1 {
  color: var(--blue-light);
  
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--blue);
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem;
  text-align: center;
}

h3 {
  color: var(--orange);
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem;
  text-align: center;
}

p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  background: var(--orange-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
  box-shadow: 0 6px 16px rgba(13, 59, 102, 0.25);
}

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

.card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1.6rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.35s; }
.card:nth-child(4) { animation-delay: 0.45s; }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--orange-light);
}

.card h3 {
  /* color: var(--blue); */
  
  color: var(--blue);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
footer {
  background: var(--blue);
  color: white;
  padding: 1.6rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 160px;
}

.footer-left {
  text-align: left;
  opacity: 0.9;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.footer-container a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer-container a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.footer-container a:hover {
  color: var(--orange-light);
}

.footer-container a:hover::after {
  width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .nav-list a {
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
  }

  .content-card {
    padding: 1.8rem 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    width: 100%;
  }
}

/* Smooth page load */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageLoad 0.4s ease;
}

/* Focus accessible */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ========== GALERIE VIDÉOS ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.video-item {
  background: var(--gray-50);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--orange-light);
}

/* Vidéos locales */
.video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: cover;
}

/* YouTube responsive */
.youtube-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 0.7rem 0.9rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  background: white;
}

/* Responsive vidéos */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
