/* ==========================================================================
   GLOBAL.CSS — Charte unifiée Compagnie Deuxième Étoile à Gauche
   Inspirée des pages contact, spectacle.php#spectacle1 et test/Atelier
   ========================================================================== */

:root {
  --navy-950: #01000e;
  --navy-900: #031946;
  --navy-800: #033163;
  --navy-700: #033975;
  --gold-star: #f6c445;
  --green-action: #1c8a14;
  --green-action-hover: #156e0f;
  --red-action: #c91d1d;
  --red-action-hover: #a11515;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #f1f5f9;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-light: #d1d5db;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(3, 25, 70, 0.08);
  --shadow-hover: 0 12px 30px rgba(3, 25, 70, 0.14);

  --font-heading: 'Alice', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --container-max: min(1400px, 94vw);
  --container-narrow: min(1140px, 94vw);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.46;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-800);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-star);
  outline-offset: 2px;
}

/* Lien d'évitement accessibilité */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy-900);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   TYPOGRAPHIE UNIFIÉE (style contact + spectacle + test)
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  margin-top: 0;
}

.page-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 2rem;
}

.section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  text-align: center;
  margin: 2.5rem 0 1.25rem;
}

.lead-prose p {
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.48;
  text-align: left;
  margin: 0 0 0.78rem;
}

@media (min-width: 768px) {
  .lead-prose p {
    text-align: justify;
  }
}

/* ==========================================================================
   HEADER ÉTOILÉ RESPONSIVE
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(167deg, var(--navy-950) 0%, var(--navy-700) 73%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(1, 0, 14, 0.25);
}

.header-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#shooting-stars,
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stars {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='90' viewBox='0 0 220 90'%3E%3Ccircle cx='18' cy='22' r='1.1' fill='%23fff' opacity='.85'/%3E%3Ccircle cx='54' cy='64' r='0.9' fill='%23fff' opacity='.55'/%3E%3Ccircle cx='96' cy='16' r='1.3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='138' cy='48' r='1' fill='%23fff' opacity='.65'/%3E%3Ccircle cx='178' cy='24' r='1.2' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='204' cy='72' r='0.9' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='74' cy='42' r='0.8' fill='%23f6c445' opacity='.7'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.55; }
}

.header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand-logo {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.32rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--gold-star);
}

.brand-prefix-short {
  display: none;
}

@media (max-width: 580px) {
  .brand-prefix-long {
    display: none;
  }
  .brand-prefix-short {
    display: inline;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.55rem 0.72rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--gold-star);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: #ffffff;
  border: 2px solid var(--navy-900);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 120;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.dropdown-menu a:hover {
  background-color: var(--bg-soft);
  color: var(--navy-800);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--gold-star);
}

/* Burger Mobile */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-drawer {
  background: #06142e;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-list > li > a,
.mobile-group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.mobile-submenu {
  list-style: none;
  margin: 0.4rem 0 0 1.65rem;
  padding: 0;
}

.mobile-submenu a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-socials {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-socials a {
  color: var(--gold-star);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
}

/* ==========================================================================
   CONTENEURS, CARTES ET GRILLES RESPONSIVES
   ========================================================================== */

.page-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.page-wrapper--narrow {
  max-width: var(--container-narrow);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
}

.card-framed {
  background-color: var(--bg-card);
  border: 3px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card);
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.two-col-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .two-col-layout,
  .two-col-equal {
    grid-template-columns: 1fr;
  }

  /* Sur petit écran, ne jamais commencer une page par une image seule */
  .spectacle-main-col {
    display: flex;
    flex-direction: column;
  }
  .spectacle-main-col .spectacle-poster {
    order: 2;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
  .spectacle-main-col > section:first-of-type {
    order: 1;
  }
  .spectacle-main-col > section:not(:first-of-type) {
    order: 3;
  }
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   BOUTONS UNIFIÉS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--navy-800);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--navy-900);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-outline:hover {
  background-color: var(--navy-900);
  color: #ffffff;
}

.btn-green {
  background-color: var(--green-action);
  color: #ffffff;
}

.btn-green:hover {
  background-color: var(--green-action-hover);
  color: #ffffff;
}

.btn-red {
  background-color: var(--red-action);
  color: #ffffff;
}

.btn-red:hover {
  background-color: var(--red-action-hover);
  color: #ffffff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   GALERIES PHOTOS, VIDÉO ET SLIDERS
   ========================================================================== */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.photo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .photo-grid,
  .photo-grid--3 {
    grid-template-columns: 1fr;
  }
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: #0b1324;
  aspect-ratio: 3 / 2;
}

.photo-card--portrait {
  aspect-ratio: 4 / 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.03);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #000000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Slider / Carrousel accessible */
.carousel-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.carousel-slide--spectacle img {
  max-height: 520px;
}

.carousel-slide--creation img {
  max-height: 460px;
  cursor: pointer;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(3, 25, 70, 0.78);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--navy-900);
}

.carousel-arrow--prev {
  left: 0.65rem;
}

.carousel-arrow--next {
  right: 0.65rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.carousel-dot[aria-selected="true"] {
  background: var(--navy-800);
  transform: scale(1.2);
}

/* ==========================================================================
   PARTENAIRES & PRESSE
   ========================================================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  margin-top: 1.5rem;
}

.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 110px;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.partner-tile img {
  max-height: 62px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   PAGE ACCUEIL (Agenda + Carrousel)
   ========================================================================== */

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
}

.home-highlights-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.highlight-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   AGENDA & ÉVÉNEMENTS
   ========================================================================== */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--navy-800);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.event-line {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
}

.event-date {
  font-weight: 700;
  color: var(--navy-900);
}

.event-title {
  font-weight: 700;
  color: var(--text-main);
}

.event-location {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.event-separator {
  margin: 0.75rem 0 0.25rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border-light);
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (max-width: 580px) {
  .event-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.season-card {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.season-heading {
  font-size: 1.3rem;
  color: var(--navy-900);
  border-right: 5px solid var(--navy-800);
  padding-right: 1rem;
  margin: 0;
}

@media (max-width: 720px) {
  .season-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .season-heading {
    border-right: 0;
    border-bottom: 3px solid var(--navy-800);
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
}

/* ==========================================================================
   SPECTACLE (#spectacle1)
   ========================================================================== */

.spectacle-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.spectacle-poster img {
  width: 100%;
  display: block;
}

.distribution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.96rem;
}

.distribution-list strong {
  color: var(--navy-900);
}

.distribution-production {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 2px dashed var(--border-light);
  text-align: center;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* ==========================================================================
   ATELIERS & TÉMOIGNAGES (3 max par ligne, centrés sur la page)
   ========================================================================== */

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.citation-card {
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  border-left: 4px solid var(--navy-800);
}

@media (max-width: 960px) {
  .citation-card {
    flex: 0 1 calc(50% - 0.75rem);
  }
}

@media (max-width: 640px) {
  .citation-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.citation-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text-main);
}

.citation-card figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.92rem;
}

/* ==========================================================================
   COMPAGNIE (Équipe centrée & Modales)
   ========================================================================== */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.team-card {
  flex: 0 1 245px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.15rem;
}

@media (max-width: 560px) {
  .team-card {
    flex: 1 1 100%;
    max-width: 340px;
  }
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
}

.team-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.team-role {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT & FORMULAIRES (style contact.php diffusé)
   ========================================================================== */

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid #6b7280;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(3, 49, 99, 0.16);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #34d399;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* ==========================================================================
   MODALES ACCESSIBLES
   ========================================================================== */

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(1, 0, 14, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 3px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.modal-panel--lightbox {
  max-width: 900px;
}

.modal-panel img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: var(--radius-sm);
  margin: 0.75rem auto;
  display: block;
}

.modal-panel .modal-bio-text {
  text-align: left;
  margin-top: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--navy-900);
  color: #ffffff;
}

.lightbox-caption {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER PARTAGÉ (3 colonnes + ciel étoilé + retour haut)
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy-900);
  color: var(--gold-star);
  transform: translateY(-2px);
}

.site-footer {
  position: relative;
  background: linear-gradient(167deg, var(--navy-950) 0%, var(--navy-700) 80%);
  color: #ffffff;
  margin-top: 3rem;
  overflow: hidden;
}

.footer-stars-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-stars {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Ccircle cx='24' cy='28' r='1' fill='%23fff' opacity='.75'/%3E%3Ccircle cx='78' cy='82' r='1.2' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='132' cy='34' r='0.9' fill='%23fff' opacity='.85'/%3E%3Ccircle cx='186' cy='94' r='1.1' fill='%23fff' opacity='.55'/%3E%3Ccircle cx='216' cy='42' r='1' fill='%23f6c445' opacity='.7'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .footer-brand {
    flex-direction: column;
    align-items: center;
  }
}

.footer-logo {
  width: 88px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--gold-star);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-tagline,
.footer-location {
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.footer-nav ul,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav a:hover,
.footer-contact-link:hover {
  color: var(--gold-star);
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .footer-nav a,
  .footer-contact-link,
  .footer-socials {
    justify-content: center;
  }
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-star);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-star);
  text-decoration: underline;
}

/* ==========================================================================
   ANIMATIONS LÉGÈRES SUR TOUTES LES PAGES
   ========================================================================== */

.card,
.card-framed {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-ready.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect des préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
