/* =========================================
   DESIGN SYSTEM "EXCELLENCE & PRESTIGE"
   ========================================= */
:root {
  /* Palette Royale / Académique */
  --color-primary: #0A192F;
  /* Bleu Nuit Profond (Fondations, Rigueur) */
  --color-primary-light: #172A45;
  --color-brand-green: #00C04C;
  /* Vert de l'école (Vie, Croissance) */
  --color-brand-green-dark: #008F39;
  --color-gold: #D4AF37;
  /* Or (Excellence, Prestige) */
  --color-gold-light: #F3E5AB;

  --color-text-dark: #1E293B;
  --color-text-light: #F8FAFC;
  --color-bg-cream: #FDFBF7;
  /* Fond crème très luxueux, moins agressif que blanc pur */
  --color-white: #FFFFFF;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  --shadow-elegant: 0 15px 35px rgba(10, 25, 47, 0.1);
  --shadow-glow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* =========================================
   HEADER (Navigation)
   ========================================= */
.navbar-prestige {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-prestige.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 25, 47, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 55px;
  transition: transform 0.3s;
  background: white;
  padding: 2px;
  border-radius: 8px;
}

.brand-title {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: -2px;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-family: var(--font-body);
  color: var(--color-text-light);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold) !important;
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #AA8015 100%);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-gold 2s infinite;
  /* Action clignotante/captivante */
}

@keyframes pulse-gold {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
  animation: none;
  /* Stop pulse on hover */
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: all 0.6s;
  animation: shine 3s infinite;
  /* Effet de brillance continue */
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}


.btn-outline-gold {
  background: transparent;
  color: var(--color-gold) !important;
  border: 2px solid var(--color-gold);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.3s;
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-white) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}


/* =========================================
   HERO SECTIONS
   ========================================= */
.hero-fullscreen {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-page {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(0, 143, 57, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding-top: 80px;
}

.hero-surtitle {
  font-family: var(--font-body);
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 5px;
}

.hero-title {
  font-size: 4.5rem;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-page .hero-title {
  font-size: 3.5rem;
}

.hero-title i {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-style: italic;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-page .hero-title {
    font-size: 2.5rem;
  }
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   MOTIFS DE FOND ET TEXTURES
   ========================================= */
.pattern-bg {
  background-color: var(--color-bg-cream);
  background-image: radial-gradient(rgba(10, 25, 47, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 100px 0;
}

.white-section {
  background-color: var(--color-white);
  padding: 100px 0;
}

.dark-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 192, 76, 0.05) 0%, transparent 60%);
  z-index: 0;
}

/* =========================================
   TITRES DE SECTION
   ========================================= */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-surtitle {
  color: var(--color-brand-green);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 10px;
}

.dark-section .section-surtitle {
  color: var(--color-gold);
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.dark-section .section-title {
  color: var(--color-white);
}

.title-separator {
  width: 80px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
}

.title-separator.left {
  margin: 0;
}

/* =========================================
   CARTES PRESTIGE
   ========================================= */
.card-prestige {
  background: var(--color-white);
  border-radius: 0;
  padding: 40px 30px;
  height: 100%;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.card-prestige:hover {
  transform: translateY(-10px);
  border-top-color: var(--color-gold);
  box-shadow: var(--shadow-elegant);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: inline-block;
}

.card-prestige h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card-prestige p {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* =========================================
   IMAGES EDITEUR
   ========================================= */
.image-prestige {
  box-shadow: var(--shadow-elegant);
  border: 4px solid var(--color-white);
  transition: all 0.4s ease;
}

.image-prestige:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}


/* =========================================
   TIMELINE (PRESTIGE)
   ========================================= */
.timeline-prestige {
  border-left: 2px solid var(--color-gold);
  padding-left: 30px;
  margin-left: 10px;
}

.timeline-item-prestige {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item-prestige::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-gold);
}

.timeline-year-prestige {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.timeline-text-prestige {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  opacity: 0.8;
}

/* =========================================
   GALERIE DYNAMIQUE (Mosaïque)
   ========================================= */
.gallery-collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-container {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  aspect-ratio: 4/3;
  margin-bottom: 0;
  cursor: pointer;
}

.gallery-container a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-container::after {
  content: '\F52A';
  /* Icône Loupe */
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.7);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  transition: all 0.4s;
  z-index: 2;
  pointer-events: none;
  /* TRÈS IMPORTANT : permet de cliquer sur l'image en dessous */
}

.gallery-container:hover::after {
  opacity: 1;
}

.gallery-container:hover .gallery-img {
  transform: scale(1.1);
}

@media(max-width: 992px) {
  .gallery-collage {
    column-count: 2;
  }
}

@media(max-width: 576px) {
  .gallery-collage {
    column-count: 1;
  }
}

/* =========================================
   RESPONSIVE DESIGN PRESTIGE & MOBILE
   ========================================= */
@media (max-width: 991px) {
  .hero-fullscreen {
    min-height: 500px;
    height: auto;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
  }

  .hero-page {
    min-height: 350px;
    height: auto;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .card-prestige {
    padding: 30px 20px;
  }

  .navbar-prestige {
    background: rgba(10, 25, 47, 0.98);
  }

  /* Menu Mobile */
  .navbar-collapse {
    background: rgba(10, 25, 47, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-page .hero-title {
    font-size: 1.8rem !important;
  }

  .hero-surtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Espacements réduits sur mobile */
  .white-section,
  .dark-section,
  .pattern-bg {
    padding: 60px 0;
  }

  .section-title-wrapper {
    margin-bottom: 40px;
  }

  /* Footer Mobile */
  .footer-royal {
    padding-top: 50px;
    text-align: center;
  }

  .brand-group {
    justify-content: center;
  }

  .footer-contact li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  .bottom-bar {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  /* Tableaux */
  .table-prestige th,
  .table-prestige td {
    padding: 12px;
    font-size: 0.85rem;
  }
}

/* =========================================
   TABLEAUX / LISTES / FORMS PRESTIGE
   ========================================= */
.table-prestige {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-prestige th {
  background: var(--color-primary);
  color: var(--color-gold);
  padding: 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: left;
}

.table-prestige td {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.form-prestige .form-control,
.form-prestige .form-select {
  border-radius: 4px;
  border: 1px solid rgba(10, 25, 47, 0.1);
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-prestige .form-control:focus,
.form-prestige .form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  background: #fff;
}

.form-prestige {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-prestige label {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* =========================================
   FOOTER
   ========================================= */
.footer-royal {
  background: linear-gradient(rgba(10, 25, 47, 0.94), rgba(10, 25, 47, 0.94)), url('../img/excursion.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 4px solid var(--color-gold);
}

.footer-royal h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact i {
  color: var(--color-brand-green);
  font-size: 1.2rem;
}

.bottom-bar {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Bouton WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}