/* ================================================
   VARIABLES - Couleurs École Jeanne d'Arc
   ================================================ */
:root {
  /* Palette officielle */
  --bleu-ecole: #00467f;
  --bleu-jda: #2c5aa0;        /* ← AJOUTÉ */
  --bleu-clair: #2ea3f2;
  --bleu-vif: #3366ff;
  --turquoise: #79C8C8;
  --orange-jda: #ff6600;      /* ← AJOUTÉ */
  
  --gris-texte: #666666;
  --gris-fonce: #333333;
  --noir: #000000;
  --gris-bg: #f4f4f4;
  --blanc: #ffffff;
  
  /* Typographie */
  --font-principale: 'Open Sans', Arial, sans-serif;
  --font-size-base: 14px;
  --line-height: 1.7em;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Ombres */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ================================================
   RESET & BASE
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-principale);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--gris-texte);
  background-color: var(--blanc);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ================================================
   TYPOGRAPHIE
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--bleu-ecole);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
  text-align: justify;
}

a {
  color: var(--bleu-clair);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--bleu-vif);
  text-decoration: underline;
}

strong {
  font-weight: 700;
  color: var(--noir);
}

/* ================================================
   HEADER - Identique au site école
   ================================================ */
.header {
  background: var(--blanc);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Compensation pour le header fixe */
body {
  padding-top: 140px;
}

main {
  position: relative;
  z-index: 1;
}

.top-bar {
  background: var(--gris-bg);
  padding: var(--spacing-xs) 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #ddd;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: var(--spacing-sm);
  color: var(--gris-fonce);
}

.top-bar-left a {
  color: var(--bleu-ecole);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-apel {
  height: 60px;
  width: auto;
}

.logo-ecole {
  height: 70px;
  width: auto;
}

/* ================================================
   NAVIGATION - Style École
   ================================================ */
.nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav a {
  color: var(--gris-fonce);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--bleu-ecole);
  text-decoration: none;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bleu-clair);
}

/* ================================================
   BANNIÈRE IMAGE
   ================================================ */
.hero-image {
  width: 100%;
  margin-top: 120px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--bleu-ecole);
}

.section:nth-child(even) {
  background: var(--gris-bg);
}

/* ================================================
   VALIDATION GOOGLE
   ================================================ */
.validation-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid var(--bleu-clair);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.validation-box h3 {
  color: var(--bleu-ecole);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.validation-box ul {
  list-style: none;
  padding-left: 0;
}

.validation-box li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: start;
  gap: var(--spacing-xs);
}

.validation-box li::before {
  content: "✓";
  color: var(--bleu-vif);
  font-weight: bold;
  font-size: 1.2em;
}

/* ================================================
   CARTE CALENDRIER
   ================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.calendar-item {
  background: var(--blanc);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--bleu-clair);
}

.calendar-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.calendar-date {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--bleu-ecole);
}

.calendar-date strong {
  background: var(--turquoise);
  color: var(--blanc);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: center;
}

.calendar-date span {
  font-size: 0.9rem;
  color: var(--gris-fonce);
}

.calendar-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--bleu-ecole);
}

.calendar-item p {
  color: var(--gris-texte);
  margin-bottom: var(--spacing-md);
}

.calendar-link {
  color: var(--bleu-clair);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.calendar-link:hover {
  color: var(--bleu-vif);
}

/* ================================================
   BADGES
   ================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-date {
  background: var(--turquoise);
  color: var(--blanc);
}

.badge-status {
  background: var(--bleu-vif);
  color: var(--blanc);
}

/* ================================================
   PRÉSENTATION APEL
   ================================================ */
.apel-intro {
  background: var(--blanc);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin: var(--spacing-md) 0;
}

.apel-intro h2 {
  color: var(--bleu-ecole);
  border-bottom: 3px solid var(--turquoise);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.apel-missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.mission-card {
  background: var(--gris-bg);
  padding: var(--spacing-md);
  border-radius: 8px;
  border-left: 4px solid var(--bleu-clair);
}

.mission-card h3 {
  color: var(--bleu-ecole);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

/* ================================================
   BUREAU - Cartes membres
   ================================================ */
.bureau-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.bureau-card {
  background: var(--blanc);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--bleu-clair);
}

.bureau-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bureau-card h3 {
  color: var(--bleu-ecole);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.bureau-card .nom {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: var(--spacing-sm);
}

.bureau-card .email {
  color: var(--gris-fonce);
  font-size: 0.9rem;
}

.placeholder-text {
  color: var(--bleu-vif);
  font-style: italic;
  font-size: 0.85rem;
}

/* ================================================
   PAGES DÉTAIL OPÉRATION
   ================================================ */
.operation-header {
  background: linear-gradient(135deg, var(--bleu-jda) 0%, #1a4d8f 100%);
  color: white;
  padding: 40px 0 30px;
  margin-bottom: 0 !important;
}

.operation-header + .section {
  padding-top: 30px !important;
}

.operation-intro {
  font-size: 1.2rem;
  margin-top: 15px;
  opacity: 0.95;
  font-weight: 500;
  line-height: 1.6;
}

.back-link {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 1;
  text-decoration: none;
}

.operation-date {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* ================================================
   BOUTONS - PRIORITÉ MAXIMALE
   ================================================ */
a.btn,
a.btn-primary,
.operations-grid a.btn-primary,
#stands-grid a.btn-primary,
button.btn,
button.btn-primary {
  display: inline-block !important;
  background: #ff6600 !important;
  background-color: #ff6600 !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border: none !important;
  cursor: pointer !important;
}

a.btn:hover,
a.btn-primary:hover,
button.btn:hover,
button.btn-primary:hover {
  background: #d55a00 !important;
  background-color: #d55a00 !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
  text-decoration: none !important;
}

a.btn:visited,
a.btn-primary:visited,
a.btn:link,
a.btn-primary:link {
  color: white !important;
}

/* ================================================
   GRILLES OPÉRATIONS
   ================================================ */
.operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.operation-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.operation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.operation-card .operation-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.operation-card .operation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.operation-card:hover .operation-image img {
  transform: scale(1.05);
}

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

.operation-card h3 {
  color: var(--bleu-jda);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.operation-card p {
  color: var(--gris-texte);
  margin-bottom: 1rem;
  text-align: left;
}

/* ================================================
   GALERIE PHOTOS
   ================================================ */
.operation-gallery {
  padding: 2rem 0;
  background: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ================================================
   RÔLES
   ================================================ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.role-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--orange-jda);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.role-card h3 {
  color: var(--bleu-jda);
  margin-bottom: 1rem;
}

.role-card ul {
  list-style: none;
  padding: 0;
}

.role-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.role-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-jda);
  font-weight: bold;
}

/* ================================================
   PLANNING
   ================================================ */
.operation-planning-link {
  text-align: center;
  padding: 3rem 0;
}

.planning-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.planning-table table {
  width: 100%;
  border-collapse: collapse;
}

.planning-table th {
  background: var(--bleu-jda);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
}

.planning-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.planning-table tr:last-child td {
  border-bottom: none;
}

.planning-table tr:hover {
  background: #f8f9fa;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #79C8C8;
  color: #333333;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #00467f;
  margin-bottom: 1rem;
  border-bottom: 2px solid #00467f;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: #333333;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #00467f;
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 70, 127, 0.3);
  color: #00467f;
  font-size: 0.875rem;
}

/* ================================================
   MENU BURGER MOBILE
   ================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--bleu-ecole);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .hero-image {
    margin-top: 140px;
  }
  
  .hero-image img {
    max-height: 250px;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: var(--spacing-xs) 0;
  }

  .logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
  }

  .logo-apel {
    display: none;
  }
  
  .logo-ecole {
    height: 45px;
    width: auto;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
  }

  .nav.active {
    max-height: 300px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav li {
    border-bottom: 1px solid var(--gris-bg);
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .nav a {
    display: block;
    padding: 1rem var(--spacing-md);
    color: var(--gris-fonce);
    font-size: 1rem;
  }

  .nav a:hover,
  .nav a.active {
    background-color: var(--gris-bg);
    color: var(--bleu-ecole);
  }

  body.menu-open {
    overflow: hidden;
  }
  
  .planning-table {
    overflow-x: auto;
  }
  
  .planning-table table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-base: 13px;
  }
  
  .hero-image img {
    max-height: 180px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* ================================================
   UTILITAIRES
   ================================================ */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
