:root {
  --primary: #6b9bff;
  --primary-dark: #6bffd6;
  --primary-light: #e8d5f7;
  --secondary: #2c3e50;
  --secondary-dark: #1a252f;
  --accent: #9b51e0;
  --accent-light: #f3e5ff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --color-orange: #ff7a18;
  --color-green:  #218838;
  --bg: #ffffff;
  --white: #ffffff;
  --border: #ecf0f1;
  --success: #27ae60;
  --gradient-primary: linear-gradient(135deg, #9b51e0 0%, #7c3db3 100%);
  --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-accent: linear-gradient(135deg, #9b51e0 0%, #c471ed 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(155, 81, 224, 0.2);
  --radius: 8px;
  --radius-sm: 4px;
  --spacing: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --brand: #1e6fbf;
  --brand-dark: #145c9a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: transparent;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
}

.nav-link i {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  
  vertical-align: middle;
}


/* --- Bouton Devis Spéciale --- */

.btn-devis-special {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 30px;
  padding: 10px 18px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  will-change: transform;
}

/* subtle sheen like .btn-primary but with the blue brand */
.btn-devis-special::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.btn-devis-special:hover::before,
.btn-devis-special:focus::before {
  left: 100%;
}

.btn-devis-special:hover,
.btn-devis-special:focus {
  background: var(--brand-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30,111,191,0.3);
  filter: brightness(0.95);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn-devis-special,
  .btn-devis-special::before {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Bouton Hygiène --- */
.btn.btn-hygiene,
.btn-hygiene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: #ff7a18;
  border: 2px solid rgba(255, 122, 24, 0.3);
  border-radius: 25px;
  width: fit-content;
  height: 48px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  will-change: transform, background-color, color;
}

/* Hover / focus (matches your inline handlers) */
.btn.btn-hygiene:hover,
.btn.btn-hygiene:focus,
.btn-hygiene:hover,
.btn-hygiene:focus {
  background-color: #ff7a18;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn.btn-hygiene,
  .btn-hygiene {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Bouton Diététique --- */
.btn.btn-dietetique,
.btn-dietetique {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
   border-radius: 25px;
  height: 48px;
  background-color: transparent;
  color: #218838;
  border: 2px solid rgba(33, 136, 56, 0.3);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  will-change: transform, background-color, color;
}

.btn.btn-dietetique:hover,
.btn.btn-dietetique:focus,
.btn-dietetique:hover,
.btn-dietetique:focus {
  background-color: #218838;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .btn.btn-dietetique,
  .btn-dietetique {
    transition: none !important;
    transform: none !important;
  }
}


/* accessibility focus */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  border-radius: 30px;
  padding: 10px 18px;
  position: relative;
  overflow: hidden;
}

/* subtle sheen */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(155, 81, 224, 0.3);
}

/* Secondary (gradient by default) */
.btn-secondary {
  background: linear-gradient(135deg, #6b9bff, #6bffd6);
  color: #071330;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: none;
  box-shadow: 0 8px 24px rgba(107, 155, 255, 0.12);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
  box-shadow: 0 12px 28px rgba(107, 155, 255, 0.18);
}


/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Sizes / helpers */
.btn-large {
  min-height: 56px;
  font-size: 18px;
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 6);
}
.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-devis-special::before,
  .btn-primary::before {
    transition: none !important;
    animation: none !important;
  }
}

/* Animation classes pour scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO SECTION — style France Évolution Pro */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 5rem 1.5rem;
}


@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

.hero-background {
  /* subtler hero background */
  background: linear-gradient(135deg, rgba(107,155,255,0.6) 0%, rgba(107,255,214,0.4) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Texte à gauche */
.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #17202A;
  line-height: 1.2;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.hero-text p {
  color: #3c4a56;
  font-size: 1.125rem;
  margin: 1rem 0 2rem;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out 0.2s forwards;
}



/* CTA hero */
.hero-cta {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out 0.4s forwards;
}

/* Statistiques */
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out 0.6s forwards;
}
.hero-stats .avatars {
  display: flex;
}
.hero-stats .avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 2px 4px rgba(23, 32, 42, 0.1);
}
.hero-stats span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #17202A;
}
.hero-stats small {
  display: block;
  color: #3c4a56;
  font-size: 0.875rem;
}


@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-images {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 550px;
}

.img-left {
  width: 60%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(23, 32, 42, 0.06);
  transform: translateY(40px);
  margin-right: -80px;
}

.hero-main {
  position: relative;
  height: 550px;
  display: flex;
  align-items: flex-start;
}

.img-right {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.1);
}

/* Carte "15 EXPERTS" */
.hero-pros-card {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: pulse-card 3s ease-in-out infinite;
}

@keyframes pulse-card {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.08);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(155, 81, 224, 0.15);
  }
}

.hero-pros-card strong {
  font-size: 1rem;
  color: #9b51e0;
}

.hero-pros-card span {
  font-size: 0.875rem;
  color: #17202A;
  line-height: 1.1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero-cta a {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-images {
    justify-content: center;
    margin-top: 2rem;
    min-height: 450px;
  }

  .img-left {
    width: 70%;
    height: 380px;
    transform: none;
    margin-right: -40px;
  }

  .img-right {
    width: 80%;
    height: 450px;
  }

  .hero-main {
    height: 450px;
  }

  .hero-pros-card {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-text h1 { 
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem;
  }

  .hero-cta {
    gap: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero-stats .avatars {
    justify-content: center;
  }

  /* Make visual area stack images in a single column */
  .hero-images {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-main {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* keep positioned so the pros card can be absolutely placed over the second image */
    position: relative;
  }

  /* Force images to be full-width of their container and keep aspect ratio */
  .img-left,
  .img-right {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0;
    transform: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }

  .img-left img,
  .img-right img,
  .hero-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .img-left {
    margin-right: 0;
  }

  /* Keep the "15 EXPERTS" card visible over the second image */
  .hero-pros-card {
    /* keep compact layout but place it over the visual area */
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0.6rem 0.8rem;
    position: absolute;
    /* anchor to the bottom-right of the visual container so it sits on the second image */
    bottom: 12px;
    right: 50px;
    z-index: 30;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(23, 32, 42, 0.08);
    margin-top: 0;
  }

  .hero-pros-card svg {
    width: 28px;
    height: 28px;
  }

  .hero-pros-card strong {
    font-size: 0.9rem;
  }

  .hero-pros-card span {
    font-size: 0.8rem;
  }
}



/* apparition animations for formation cards */
.formations-grid .formation-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.formations-grid .formation-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .formations-grid .formation-card,
  .formations-grid .formation-card.is-visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 3);
}
.hero-title {
  font-size: clamp(28px, 5.5vw, 76px);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.05;
  margin: 0;
}

/* Medium screens: slightly smaller and tighter */
@media (max-width: 900px) {
  .hero-title {
    font-size: clamp(24px, 6.5vw, 56px);
    line-height: 1.08;
    text-align: center;
  }
}

/* Small screens: ensure legibility and avoid overflow */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(20px, 8.5vw, 40px);
    line-height: 1.12;
    text-align: center;
    word-break: break-word;
  }
}

.hero-image-vertical {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--spacing) * 4);
  height: 100%;
  width: 100%;
  align-self: stretch;
}

/* large / primary image */
.hero-image-large img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 5 / 6;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

/* secondary / small image */
.hero-image-small video {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

/* Tablet adjustments */
@media (max-width: 900px) {
  .hero-image-vertical {
    gap: calc(var(--spacing) * 3);
    align-items: center;
  }

  .hero-image-large img {
    max-width: 300px;
  }

  .hero-image-small img,
  .hero-image-small video {
    max-width: 300px;
  }
}

/* Mobile: stack images vertically and make them fluid */
@media (max-width: 600px) {
  .hero-image-vertical {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    padding: 0;
  }

  .hero-image-large img,
  .hero-image-small img,
  .hero-image-small video {
    max-width: 250px;
    width: 250px;
    height: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.06);
  }

  /* even smaller variants if you want the small image to be noticeably tinier */
  .hero-image-small img,
  .hero-image-small video {
    max-width: 250px;
    width: 250px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
  font-weight: 700;
  line-height: 1.3;
    letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: clamp(32px, 5vw, 42px);
  margin-bottom: calc(var(--spacing) * 2);
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: calc(var(--spacing) * 2);
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
  margin-bottom: calc(var(--spacing) * 1.5);
}

p {
  line-height: 1.6;
  margin-bottom: calc(var(--spacing) * 2);
}

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

a:hover {
  color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(155, 81, 224, 0.3);
}

.btn-secondary {
  background-color: transparent;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  min-height: 56px;
  font-size: 18px;
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 6);
}

.btn-block {
  width: 100%;
}

.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 100;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: calc(var(--spacing) * 3);
}

.logo {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.logo:hover {
  color: var(--primary);
}

.logo-text {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(var(--spacing) * 1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 4);
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: calc(var(--spacing) * 1) 0;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}



@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--secondary);
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: calc(var(--spacing) * 4);
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: calc(var(--spacing) * 2);
  flex-wrap: wrap;
  justify-content: space-around;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-cta-index {
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image:hover img {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.section {
  padding: calc(var(--spacing) * 10) 0;
}

.section-title {
  margin-bottom: calc(var(--spacing) * 2);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
}

.features {
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 4);
}

.feature-card {
  text-align: center;
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    135deg,
    rgba(155, 81, 224, 0.05) 0%,
    rgba(196, 113, 237, 0.05) 100%
  );
}

.feature-icon {
  margin: 0 auto calc(var(--spacing) * 2);
}

.feature-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 1);
}

.feature-text {
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: calc(var(--spacing) * 4);
}

.theme-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.theme-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

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

.theme-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.theme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.theme-content {
  padding: calc(var(--spacing) * 3);
}

.theme-icon {
  margin-bottom: calc(var(--spacing) * 2);
}

.theme-title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing) * 1.5);
}

.theme-description {
  color: var(--text-light);
  margin-bottom: calc(var(--spacing) * 2);
}

.theme-features {
  list-style: none;
  margin-bottom: calc(var(--spacing) * 3);
}

.theme-features li {
  padding: calc(var(--spacing) * 1) 0;
  padding-left: calc(var(--spacing) * 3);
  position: relative;
  color: var(--text-light);
}

.theme-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.seo-title{
  max-width: 900px;
  margin: 0 auto  calc(var(--spacing) * 4);
}



.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner .cta-content {
  opacity: 0;
  transform: translateY(30px);
}

.cta-banner::before {
 content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-banner .cta-title,
.cta-banner .cta-text {
  color: var(--white);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  margin-bottom: calc(var(--spacing) * 2);
}

.cta-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: calc(var(--spacing) * 4);
}

.testimonials {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing) * 4);
}

.testimonial-card {
  background-color: var(--white);
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(107,155,255,0.18), 0 6px 18px rgba(30,111,191,0.08);
  background: linear-gradient(180deg, rgba(107,155,255,0.04), rgba(30,111,191,0.02));
  border-left-color: var(--primary);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--text);
}

.testimonial-author {
  color: var(--text-light);
  font-size: 14px;
}

.testimonial-author strong {
  color: var(--text);
  font-size: 16px;
  display: block;
  margin-bottom: calc(var(--spacing) * 0.5);
}

.seo-text {
  background-color: #f8f9fa;
}

.seo-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

.seo-content p {
  margin-bottom: calc(var(--spacing) * 2.5);
}

.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: calc(var(--spacing) * 8) 0 calc(var(--spacing) * 4);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(155, 81, 224, 0.3),
    transparent
  );
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing) * 4);
  margin-bottom: calc(var(--spacing) * 4);
}

.footer-title {
  color: var(--white);
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 2);
}

.footer-subtitle {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 2);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: calc(var(--spacing) * 1);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: calc(var(--spacing) * 3);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.floating-contact {
  position: fixed;
  bottom: calc(var(--spacing) * 3);
  right: calc(var(--spacing) * 3);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 1);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 3);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(155, 81, 224, 0.3);
  transition: all var(--transition);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(155, 81, 224, 0.5);
  }
}

.floating-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(155, 81, 224, 0.4);
  animation: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition);
}

.drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(23, 32, 42, 0.5);
  backdrop-filter: blur(4px);
}

.drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing) * 3);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 1;
}

.drawer-title {
  font-size: 24px;
  margin: 0;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(var(--spacing) * 1);
  color: var(--text-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.drawer-close:hover {
  color: var(--text);
}

.drawer-form {
  padding: calc(var(--spacing) * 3);
}

.form-group {
  margin-bottom: calc(var(--spacing) * 3);
}

.form-group label {
  display: block;
  margin-bottom: calc(var(--spacing) * 1);
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: calc(var(--spacing) * 1.5);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-checkbox {
  display: flex;
  gap: calc(var(--spacing) * 1.5);
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  flex-shrink: 0;
  margin-top: 4px;
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.section.themes {
  padding: 80px 20px;
  background-color: var(--bg);
  font-family: inherit;
  color: var(--text);
}

.section.themes .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.section.themes .section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 10000px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ====== GRILLE ASYMÉTRIQUE ====== */
.formations-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.formation-column {
  display: flex;
  height: 100%;
  justify-content: space-around;
  flex-direction: column;
  gap: 1rem;
}

/* ====== STYLE DES CARTES ====== */
.formation-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}

.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ====== GRANDE CARTE (verticale) ====== */
.formation-card.large {
  flex-direction: column;
}

.formation-image-top {
  height: 350px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.formation-image-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.formation-image-top img {
  width: 92%;
  height: 92%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: auto;
}

.formation-card.large:hover .formation-image-top img {
  -webkit-transform: scale(1.04) translateZ(0);
  transform: scale(1.04) translateZ(0);
}

/* ====== CARTES HORIZONTALES ====== */
.formation-card.horizontal {
  flex-direction: row;
  align-items: stretch;
}
.formation-image-side {
  width: 180px;
  flex: 0 0 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px;
  
}

.formation-image-side img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: auto;
}

.formation-card.horizontal:hover .formation-image-side img {
  -webkit-transform: scale(1.04) translateZ(0);
  transform: scale(1.04) translateZ(0);
}

/* ====== CONTENU DES CARTES ====== */
.formation-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.formation-duration {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.formation-title {
    font-size: 1.7rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.15;
}

.formation-card.horizontal .formation-title {
  font-size: 1.4rem;
}

.formation-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}
/* ====== BOUTON TRANSPARENT (violet) ====== */
.btn-transparent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: var(--accent);
  border: 2px solid rgba(155, 81, 224, 0.3);
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
  background-color: transparent;
  border-radius: 25px;
  height: 48px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  will-change: transform, background-color, color;
}

/* Ensure hover/focus use the purple accent (override later rules if needed) */
.btn-transparent:hover,
.btn-transparent:focus {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px);
}


.btn-transparent:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ====== COULEURS DES CARTES ====== */
.formations-grid .formation-card[data-index="0"] {
  background: linear-gradient(
    135deg,
    rgba(155, 81, 224, 0.12) 0%,
    rgba(155, 81, 224, 0.22) 100%
  );
}

.formations-grid .formation-card[data-index="1"] {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.12) 0%,
    rgba(255, 152, 0, 0.22) 100%
  );
  height: 45%;
}

.formations-grid .formation-card[data-index="2"] {
  background: linear-gradient(
    135deg,
    rgba(0, 150, 136, 0.12) 0%,
    rgba(0, 150, 136, 0.22) 100%
  );
  height: 45%;
}
/* ====== RESPONSIVE ====== */

/* Tablettes */
@media (max-width: 900px) {
  .formations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .formation-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .formation-card.horizontal {
    flex-direction: row;
  }

  .formation-image-side {
    width: 160px;
  }

  .formation-content {
    padding: 20px;
  }

  .formation-title {
    font-size: 1.5rem;
  }

  .formation-card.horizontal .formation-title {
    font-size: 1.3rem;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  .section.themes {
    padding: 60px 16px;
  }

  .section.themes .section-title {
    font-size: 2rem;
  }

  .section.themes .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .formations-grid {
    gap: 1.5rem;
  }

  .formation-column {
    gap: 1.5rem;
  }

  .formation-card.horizontal {
    flex-direction: column;
  }

  .formation-image-top {
    height: 200px;
  }

  .formation-image-side {
    width: 100%;
    height: 180px;
  }

  .formation-content {
    padding: 20px;
  }

  .formation-duration {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .formation-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .formation-card.horizontal .formation-title {
    font-size: 1.3rem;
  }

  .formation-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .btn-transparent {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

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

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: calc(var(--spacing) * 2);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: calc(var(--spacing) * 2) 0;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--spacing) * 8) 0 calc(var(--spacing) * 6);
  }

  .hero-image {
    order: -1;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing) * 3);
  }

  .modern-cards {
    grid-template-columns: 1fr;
  }

  .modern-cards .modern-card:first-child {
    grid-row: span 1;
  }

  .floating-contact {
    bottom: calc(var(--spacing) * 2);
    right: calc(var(--spacing) * 2);
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
  }

  .floating-contact span {
    display: none;
  }

  .drawer-content {
    max-width: 100%;
  }

  .section {
    padding: calc(var(--spacing) * 6) 0;
  }

  .stats-section {
    padding: calc(var(--spacing) * 8) 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .modern-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats-section {
  /* darker, moodier gradient (purple -> deep navy -> near-black) */
  background: linear-gradient(
    120deg,
    rgba(53, 51, 111, 0.96) 0%,
    rgba(25, 34, 59, 0.97) 50%,
    rgba(30, 51, 69, 0.99) 100%
  );
  color: var(--white);
  padding: calc(var(--spacing) * 12) 0;
  position: relative;
  overflow: hidden;
}

/* subtle textured + dark overlay to push the look further toward the dark side */
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.02), transparent 12%),
    radial-gradient(circle at 90% 80%, rgba(0,0,0,0.25), transparent 25%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35));
  pointer-events: none;
  mix-blend-mode: multiply;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing) * 6);
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: calc(var(--spacing) * 4);
  background: rgba(255, 255, 255, 0.081);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107,155,255,0.2),
    transparent
  );
  transition: left 0.8s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: var(--primary 0.3);
  border-color: var(--primary);
}

.stat-number {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: calc(var(--spacing) * 2);
  display: block;
}

.stat-label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 2);
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: calc(var(--spacing) * 4);
  align-items: start;
}

.modern-cards .modern-card:first-child {
  grid-row: span 2;
}

@media (max-width: 968px) {
  .modern-cards {
    grid-template-columns: 1fr;
  }

  .modern-cards .modern-card:first-child {
    grid-row: span 1;
  }
}

.modern-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  border: 1px solid var(--border);
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.modern-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .modern-card-image img {
  transform: scale(1.08);
}

.modern-card-badge {
  position: absolute;
  top: calc(var(--spacing) * 2);
  right: calc(var(--spacing) * 2);
  background: var(--primary);
  color: var(--white);
  padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2.5);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-sm);
}

.modern-card-content {
  padding: calc(var(--spacing) * 3);
}

.modern-card-title {
  font-size: 22px;
  margin-bottom: calc(var(--spacing) * 1.5);
  color: var(--text);
  font-weight: 700;
}

.modern-card-description {
  color: var(--text-light);
  margin-bottom: calc(var(--spacing) * 2);
  line-height: 1.6;
}

.modern-card-features {
  list-style: none;
  margin-bottom: calc(var(--spacing) * 3);
  padding: 0;
}

.modern-card-features li {
  padding: calc(var(--spacing) * 1) 0;
  padding-left: calc(var(--spacing) * 3);
  position: relative;
  color: var(--text);
  font-size: 15px;
}

.modern-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.training-sessions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
  margin-top: calc(var(--spacing) * 4);
}

.session-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: calc(var(--spacing) * 3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.session-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.session-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.session-box:hover::before {
  transform: scaleY(1);
}

.session-type {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 1.5);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: calc(var(--spacing) * 2);
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 1.5);
}

.info-row {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
  color: var(--text);
  font-size: 15px;
}

.info-row svg {
  flex-shrink: 0;
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.info-row strong {
  font-weight: 600;
  min-width: 60px;
}

.session-box .btn {
  margin-top: calc(var(--spacing) * 3);
  width: 100%;
  font-size: 14px;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Logo dans la nav */
    .nav .logo {
      display: flex;
      align-items: center;
      margin-right: auto; /* pousse le menu à droite */
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
    }

    /* Image du logo */
    .nav .logo img {
      display: block;
      height: 60px;     /* taille par défaut */
      max-height: 80px;
      width: auto;
      max-width: 300px;
      object-fit: contain;
      transition: transform 150ms ease, opacity 150ms ease;
    }

    /* Focus accessible pour clavier */
    .nav .logo:focus {
      outline-offset: 4px;
      border-radius: 6px;
    }

    /* Interaction légère au survol */
    .nav .logo:hover img,
    .nav .logo:focus img {
      transform: scale(1.03);
      opacity: 0.98;
    }

    /* Adaptation mobile */
    @media (max-width: 768px) {
      .nav .logo img {
        height: 48px;
        max-width: 140px;
      }
    }

    @media (max-width: 420px) {
      .nav .logo img {
        height: 36px;
        max-width: 120px;
      }
    }
