/* ==========================================
   1. CSS Reset & Custom Properties
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /*Couleurs du site de base:
  --primary: #387cea;
  --primary-dark: #1d4ed8;*/
  --primary: #c1121f;
  --primary-dark: #780000;
  --text: #1f2937;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

/* ==========================================
   2. Base Elements & Typography
   ========================================== */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section-title {  
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.5rem;

  position: relative;
  border-bottom: none;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 40%;
  height: 3px;

  background: var(--primary);
  border-radius: 3px;
}

/* ==========================================
   3. Layout & Containers
   ========================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-container{
  width: 100%;
  max-width: 1000px;      
  margin: 0 auto;         
  padding: 0 var(2rem);
}

main {
  flex: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section {
  padding: 4rem 2rem;
}

/* ==========================================
   4. Components
   ========================================== */
/* Header */
.header {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}


/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;

  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.5rem;
}

.logo-image{
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;

  display: inline-block;
  text-align: center;
  line-height: 1.2;
  white-space: normal;

  position: relative;
}

/* Effet hover + actif */
.nav-link:hover,
.nav-link.active {
  text-decoration: none;
}

/* petit trait animé en dessous */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.panel {
  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(8px);

  border-radius: 20px;

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06),
    0 2px 10px rgba(0,0,0,0.04);

  padding: 2rem;

  margin-bottom: 2.5rem;
}

p {
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: linear-gradient(to right, var(--primary), #ae0000);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  position: relative;
  text-align: center;
  color: white;
}

.footer-socials {
  position: absolute;
  right: 2rem;
  bottom: 0;
  display: flex;
  gap: 1rem;
}

.footer-socials img {
  width: 30px;
  height: 30px;
  transition: 0.3s;
  opacity: 0.85;
}

.footer-socials img:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* ==========================================
   5. Media Queries
   ========================================== */
@media (max-width: 768px) {
  /* Layout & Containers */
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  /* Navigation mobile */
  .nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 100%;
    right: 0;

    width: 100%;
    background: var(--primary-dark);

    padding: 1rem 0;
    border-radius: 0 0 12px 12px;

    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  .nav-list.show {
    display: flex;
  }

  .footer-socials {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
  

}


/* ========================================
   6. Divers
   ======================================== */

/* Sponsors bar */
.sponsors-bar {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.sponsors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.sponsors-container img {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: 0.3s;
}

.sponsors-container img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Affichage navigation */
.nav-collapsed .nav-list {
  display: none;
}

.nav-collapsed .nav-list.show {
  display: flex;
}

.nav-collapsed .menu-toggle {
  display: block;
}

.nav-list.show {
  display: flex !important;
}

/* ========================================
   7. Animations
   ======================================== */

.panel {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}