/* ============================================================
   LA PILULE — Improvisation Theatrale Lyon
   Awwwards-level redesign — Warm, theatrical, alive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'VTF Gulax';
  src: url('https://www.lapilule-impro.fr/wp-content/uploads/fonts/Gulax.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #fcecdd;
  --cream-dark: #f3dcc8;
  --cream-light: #fef6ef;
  --red: #b20828;
  --red-light: #d41040;
  --red-glow: rgba(178, 8, 40, 0.12);
  --dark: #1a1210;
  --dark-card: #231c18;
  --dark-light: #2e2520;
  --text-dark: #1a1210;
  --text-dark-muted: #6b5d52;
  --text-light: #fcecdd;
  --text-light-muted: rgba(252, 236, 221, 0.6);
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'VTF Gulax', Georgia, serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(1.5rem, 1rem + 2vw, 3rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--red); color: var(--cream); }
body.menu-open { overflow: hidden; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-muted { color: var(--text-dark-muted); }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  text-align: center;
}

.loader__logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.loader__bar {
  width: 120px;
  height: 2px;
  background: rgba(252, 236, 221, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  background: var(--cream);
  border-radius: 10px;
  animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(26, 18, 16, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s, background 0.3s;
  mix-blend-mode: exclusion;
}

.cursor.hover {
  width: 64px; height: 64px;
  background: rgba(178, 8, 40, 0.08);
  border-color: var(--red);
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

.section--red .cursor, .section--dark .cursor { border-color: rgba(252, 236, 221, 0.3); mix-blend-mode: normal; }
.section--red .cursor-dot, .section--dark .cursor-dot { background: var(--cream); }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none !important; }
  body, button, a { cursor: auto; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem var(--gutter);
  transition: all 0.5s var(--ease);
}

.nav--scrolled {
  background: rgba(252, 236, 221, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.8rem var(--gutter);
  box-shadow: 0 1px 0 rgba(26, 18, 16, 0.06);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { z-index: 201; }
.nav__logo img { border-radius: 50%; transition: transform 0.4s var(--ease); }
.nav__logo:hover img { transform: rotate(10deg) scale(1.05); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dark-muted);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}

.nav__links a:hover { color: var(--text-dark); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--red) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s !important;
}

.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--red-light) !important; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
  padding: 6px;
}

.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-dark);
  transition: all 0.4s var(--ease);
}

.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease);
}

.mobile-menu.open .mobile-menu__links a { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu__links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu__links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__links li:nth-child(4) a { transition-delay: 0.25s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  color: var(--cream);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-light);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn--primary:hover::before { transform: scaleX(1); }
.btn--primary:hover { box-shadow: 0 8px 30px rgba(178, 8, 40, 0.25); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(26, 18, 16, 0.2);
}

.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn--dark {
  background: var(--dark);
  color: var(--cream);
}

.btn--dark:hover { background: var(--dark-light); transform: translateY(-2px); }

.btn--full { width: 100%; justify-content: center; }

.btn-loading { opacity: 0.7; }
.btn-success { background: #27ae60 !important; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero__bg-images {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg-img {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  animation: heroImgIn 1.2s var(--ease) forwards;
}

.hero__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.hero__bg-img--1 {
  width: clamp(160px, 18vw, 280px);
  height: clamp(200px, 22vw, 350px);
  top: 12%;
  left: 6%;
  animation-delay: 0.8s;
  transform: rotate(-3deg);
}

.hero__bg-img--2 {
  width: clamp(140px, 15vw, 240px);
  height: clamp(180px, 20vw, 320px);
  bottom: 15%;
  right: 5%;
  animation-delay: 1s;
  transform: rotate(2deg);
}

.hero__bg-img--3 {
  width: clamp(120px, 14vw, 220px);
  height: clamp(160px, 18vw, 280px);
  top: 18%;
  right: 12%;
  animation-delay: 1.2s;
  transform: rotate(-1deg);
}

@keyframes heroImgIn {
  from { opacity: 0; transform: scale(0.9) rotate(0deg); }
  to { opacity: 0.2; transform: scale(1) var(--rotate, rotate(0deg)); }
}

.hero__bg-img--1 { --rotate: rotate(-3deg); }
.hero__bg-img--2 { --rotate: rotate(2deg); }
.hero__bg-img--3 { --rotate: rotate(-1deg); }

@media (max-width: 768px) {
  .hero__bg-img { display: none; }
}

.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2rem var(--gutter);
}

.hero__overline {
  margin-bottom: 1.5rem;
}

.hero__overline span {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 0.6rem + 0.3vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 7vw, 12rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__title-line { display: block; }

.hero__title-accent {
  color: var(--red);
  font-style: normal;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dark-muted);
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-dark-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(26, 18, 16, 0.06);
  padding: 0.6rem 0;
  background: rgba(252, 236, 221, 0.5);
  backdrop-filter: blur(10px);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee__track span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(5rem, 4rem + 5vw, 10rem) 0;
  position: relative;
}

.section--cream { background: var(--cream); }
.section--red { background: var(--red); color: var(--text-light); }
.section--dark { background: var(--dark); color: var(--text-light); }

.section__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.label-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
}

.section--red .label-num,
.section--dark .label-num,
.section__label--light .label-num {
  color: var(--cream);
  opacity: 0.5;
}

.label-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

.section--red .label-text,
.section--dark .label-text,
.section__label--light .label-text {
  color: var(--text-light-muted);
}

.label-line {
  flex: 1;
  height: 1px;
  background: rgba(26, 18, 16, 0.1);
}

.section--red .label-line,
.section--dark .label-line,
.section__label--light .label-line {
  background: rgba(252, 236, 221, 0.12);
}

/* ============================================================
   NOUS
   ============================================================ */
.nous__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 2rem + 4vw, 7rem);
  align-items: start;
}

.nous__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 3vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  position: sticky;
  top: 100px;
}

.nous__title em {
  color: var(--red);
  font-style: normal;
}

.nous__photo {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 280px;
}

.nous__photo img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}

.nous__photo:hover img { transform: scale(1.03); }

.nous__text {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  color: var(--text-dark-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.nous__text--hero {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.65;
}

.nous__text strong { color: var(--text-dark); font-weight: 600; }

.nous__note {
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: var(--cream-light);
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
}

.nous__note p {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.75;
}

.nous__note strong { color: var(--text-dark); }

@media (max-width: 768px) {
  .nous__layout { grid-template-columns: 1fr; }
  .nous__title, .nous__photo { position: static; }
}

/* ============================================================
   VIBRER
   ============================================================ */
.vibrer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.vibrer__card {
  background: rgba(252, 236, 221, 0.06);
  border: 1px solid rgba(252, 236, 221, 0.1);
  border-radius: 20px;
  padding: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.vibrer__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(252, 236, 221, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.vibrer__card:hover {
  background: rgba(252, 236, 221, 0.1);
  border-color: rgba(252, 236, 221, 0.2);
  transform: translateY(-4px);
}

.vibrer__card:hover::before { opacity: 1; }

.vibrer__card-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.vibrer__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.vibrer__card-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-light-muted);
}

@media (max-width: 600px) {
  .vibrer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SPECTACLES
   ============================================================ */
.spectacles__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.spectacles__heading em {
  color: var(--red);
  font-style: normal;
}

.spectacle {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0;
  border-top: 1px solid rgba(26, 18, 16, 0.08);
}

.spectacle:last-of-type {
  border-bottom: 1px solid rgba(26, 18, 16, 0.08);
}

.spectacle--reverse {
  direction: rtl;
}

.spectacle--reverse > * {
  direction: ltr;
}

.spectacle__visual {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.spectacle__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: grayscale(20%);
}

.spectacle:hover .spectacle__visual img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.spectacle__header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.spectacle__tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--red);
  color: var(--cream);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.spectacle__tag--outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.spectacle__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.spectacle__desc {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.02rem);
  color: var(--text-dark-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.spectacle__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.spectacle__meta-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 0.2rem;
}

.spectacle__meta-value {
  font-size: 0.92rem;
  font-weight: 500;
}

.spectacle__meta-value--accent {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 768px) {
  .spectacle { grid-template-columns: 1fr; }
  .spectacle--reverse { direction: ltr; }
}

/* Photo strip */
.photo-strip {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

.photo-strip__track {
  display: flex;
  gap: 1rem;
  animation: photoScroll 30s linear infinite;
  width: max-content;
}

.photo-strip__track img {
  height: clamp(180px, 15vw, 280px);
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s, transform 0.4s var(--ease);
}

.photo-strip__track img:hover {
  filter: grayscale(0);
  transform: scale(1.03);
}

@keyframes photoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   FORMATIONS
   ============================================================ */
.formations__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.formations__heading em {
  color: var(--red);
  font-style: normal;
}

.formations__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.formation-card {
  background: var(--cream-light);
  border: 1px solid rgba(26, 18, 16, 0.06);
  border-radius: 20px;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 18, 16, 0.08);
  border-color: rgba(26, 18, 16, 0.1);
}

.formation-card:hover::before { transform: scaleX(1); }

.formation-card__level {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.formation-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.formation-card__quote {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--red);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.formation-card__desc {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.formation-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.formation-card__tags li {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  background: rgba(26, 18, 16, 0.04);
  border: 1px solid rgba(26, 18, 16, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

@media (max-width: 700px) {
  .formations__grid { grid-template-columns: 1fr; }
}

/* Entreprise CTA */
.formations__entreprise {
  background: var(--cream-dark);
  border-radius: 20px;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.formations__entreprise h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.formations__entreprise p {
  font-size: 1rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.contact__title em { color: var(--red); font-style: normal; }

.contact__desc {
  font-size: 1.02rem;
  color: var(--text-dark-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact__email {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.contact__email:hover { opacity: 0.7; }

.contact__location {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--cream-light);
  border: 1.5px solid rgba(26, 18, 16, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group input.field-error,
.form-group textarea.field-error {
  border-color: var(--red);
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.form-shake { animation: shake 0.5s ease-out; }

@media (max-width: 768px) {
  .contact__layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(26, 18, 16, 0.08);
  background: var(--cream);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer__logo-img { border-radius: 50%; }

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.footer__sub {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-dark-muted);
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--red); }

.footer__bottom {
  border-top: 1px solid rgba(26, 18, 16, 0.06);
  padding-top: 1.5rem;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-dark-muted);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
