/* Variables — bleu, blanc, rouge ; noir minimal (--ink) */
:root {
  --blue: #0d47a1;
  --blue-mid: #1565c0;
  --blue-soft: #e8f1fb;
  --blue-muted: #5c7aa3;
  --red: #c8102e;
  --red-hover: #a50d26;
  --white: #ffffff;
  --ink: rgba(0, 0, 0, 0.14);
  --ink-strong: rgba(0, 0, 0, 0.55);

  --bg: var(--white);
  --bg-elevated: var(--blue-soft);
  --surface: var(--white);
  --text: var(--blue);
  --text-muted: var(--blue-muted);
  --accent: var(--red);
  --accent-hover: var(--red-hover);
  --accent-blue: var(--blue-mid);
  --accent-blue-hover: #0d47a1;
  --border: rgba(13, 71, 161, 0.12);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4rem;
  --radius: 4px;
  --max: 1100px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.28s;
  --dur-slow: 0.45s;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}

a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  font-size: 0.9em;
  background: var(--bg-elevated);
  color: var(--blue);
  padding: 0.15em 0.4em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px var(--ink);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  transition: color var(--dur) var(--ease-out), letter-spacing var(--dur-slow) var(--ease-out);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--blue-muted);
  letter-spacing: 0.02em;
  max-width: 11.5rem;
  line-height: 1.25;
  transition: color var(--dur) var(--ease-out);
}

.brand:hover .brand-name {
  color: var(--blue-mid);
  letter-spacing: 0.1em;
}

.brand:hover .brand-tagline {
  color: var(--blue);
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(13, 71, 161, 0.35);
  background: var(--white);
  box-shadow: 0 1px 3px var(--ink);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-2deg);
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.2);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-slot.is-empty::after,
.media-slot.is-empty::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(13, 71, 161, 0.04) 8px,
    rgba(13, 71, 161, 0.04) 16px
  );
}

.logo-slot {
  position: relative;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--blue-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue-mid));
  border-radius: 1px;
  transition: width var(--dur-slow) var(--ease-out);
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.nav-toggle:hover {
  transform: scale(1.05);
  border-color: rgba(13, 71, 161, 0.35);
  box-shadow: 0 2px 10px rgba(13, 71, 161, 0.12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--blue);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-header {
    position: relative;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 1.25rem 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media.media-slot.is-empty {
  min-height: 100%;
}

.hero-img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.hero:hover .hero-img,
.hero:hover .hero-video {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--white) 0%,
    rgba(255, 255, 255, 0.88) 42%,
    rgba(232, 241, 251, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.hero-subname {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 1rem;
  max-width: 28ch;
  line-height: 1.35;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--blue);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.btn-outline {
  background: blue;
  color: var(--red);
  border-color: rgba(13, 71, 161, 0.45);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-mid);
  text-decoration: none;
  background: rgba(13, 71, 161, 0.06);
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.12);
}

/* Sections */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-about,
.section-schedule {
  background: var(--bg-elevated);
}

.section-gallery {
  background: var(--bg);
}

.section-contact {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  color: var(--blue);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.values-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.values-list li {
  margin-bottom: 0.5rem;
}

.values-list strong {
  color: var(--text);
}

.about-visual .media-slot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.media-slot {
  position: relative;
  background: var(--surface);
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.fill-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 71, 161, 0.28);
  box-shadow: 0 14px 32px rgba(13, 71, 161, 0.15), 0 4px 12px var(--ink);
}

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

.about-visual .media-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.12);
}

.about-visual .media-slot:hover .fill-img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(13, 71, 161, 0.88));
  color: var(--white);
}

/* Schedule */
.schedule-meta {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .schedule-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.meta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 71, 161, 0.22);
  box-shadow: 0 10px 26px rgba(13, 71, 161, 0.1);
}

.meta-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--red);
}

.meta-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease-out);
}

.schedule-table thead th {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

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

.schedule-table tbody tr:hover td {
  background: rgba(13, 71, 161, 0.06);
}

.schedule-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery-hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.contact-block:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, 0.22);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.1), 0 2px 8px rgba(200, 16, 46, 0.08);
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--red);
}

.contact-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-mid);
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  display: inline-block;
}

.contact-link:hover {
  color: var(--blue);
  transform: translateX(3px);
}

.contact-hint,
.contact-address {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Formulaire d'inscription */
.form-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.form-section h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.form-section > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.form-inscription {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 4px 18px rgba(13, 71, 161, 0.06);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}

.form-group .label-hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-inscription input,
.form-inscription select,
.form-inscription textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.form-inscription input:focus,
.form-inscription select:focus,
.form-inscription textarea:focus {
  outline: none;
  border-color: rgba(13, 71, 161, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.form-inscription textarea {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-check input {
  width: auto;
  margin-top: 0.35rem;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-message {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--ok {
  background: rgba(13, 71, 161, 0.08);
  border: 1px solid rgba(13, 71, 161, 0.25);
  color: var(--blue);
}

.form-message--err {
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.3);
  color: var(--red);
}

.form-message--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: #92400e;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--blue);
  transition: color var(--dur) var(--ease-out), letter-spacing var(--dur-slow) var(--ease-out);
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-muted);
  line-height: 1.3;
  max-width: 22rem;
  transition: color var(--dur) var(--ease-out);
}

.footer-inner:hover .footer-brand {
  color: var(--blue-mid);
  letter-spacing: 0.12em;
}

.footer-inner:hover .footer-tagline {
  color: var(--blue);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--blue-muted);
  transition: color var(--dur) var(--ease-out);
}

.footer-inner:hover .footer-copy {
  color: var(--blue);
}

/* Réduction des animations si demandé par le système */
@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-text,
  .site-nav a,
  .site-nav a::after,
  .nav-toggle,
  .hero-img,
  .hero-video,
  .btn,
  .fill-img,
  .gallery-item,
  .about-visual .media-slot,
  .meta-card,
  .contact-block,
  .contact-link,
  .footer-brand,
  .footer-tagline,
  .footer-copy,
  .schedule-table th,
  .schedule-table td,
  a {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .brand:hover .brand-logo,
  .gallery-item:hover,
  .gallery-item:hover .fill-img,
  .about-visual .media-slot:hover,
  .about-visual .media-slot:hover .fill-img,
  .btn:hover,
  .meta-card:hover,
  .contact-block:hover,
  .hero:hover .hero-img,
  .hero:hover .hero-video,
  .contact-link:hover {
    transform: none !important;
  }

  .site-nav a:hover::after {
    width: 100%;
  }
}




.values-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  margin: 10px 0;
}

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

.schedule-table th,
.schedule-table td {
  border: 1px solid #ccc;
  padding: 10px;
}

.testimonial blockquote {
  font-style: italic;
  margin: 20px 0;
}

.author {
  font-weight: bold;
}

.quick-contact {
  text-align: center;
}

















/* Stats */
.stats {
  background: #111;
  padding: 60px 20px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stats h3 {
  font-size: 2.5rem;
  color: #e50914;
}

/* Programmes */
.program-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.program-card {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.program-card:hover {
  transform: translateY(-10px);
  background: #1a1a1a;
}


/* Philosophie */
.philosophy {
  text-align: center;
  padding: 80px 20px;
  max-width: 800px;
  margin: auto;
}

/* CTA */
.cta-premium {
  background: linear-gradient(45deg, #000, #1a1a1a);
  text-align: center;
  padding: 80px 20px;
}

/* Boutons premium */
.btn-primary {
  background: #e50914;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
}

.btn-outline {
  border: 2px solid #fff;
  padding: 12px 25px;
  border-radius: 30px;
}