/* ============================================================
   IMPULSE ACADEMY — CSS COMMUN
   Palette signature : Rouge #d32f2f | Bleu #1a237e | Vert #00796B | Violet #4a148c
   ============================================================ */

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

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rouge:   #d32f2f;
  --rouge2:  #e53935;
  --rouge3:  #ef5350;
  --bleu:    #1a237e;
  --bleu2:   #2244AA;
  --vert:    #00796B;
  --vert2:   #00897B;
  --violet:  #4a148c;
  --violet2: #6a1b9a;
  --blanc:   #ffffff;
  --gris:    #f5f5f5;
  --dark:    #0a0a0f;

  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;

  --glass-bg:     rgba(255,255,255,0.88);
  --glass-border: rgba(255,255,255,0.4);
  --glass-blur:   blur(18px);
  --shadow-card:  0 15px 40px rgba(0,0,0,0.28);
  --shadow-hover: 0 22px 55px rgba(0,0,0,0.38);

  --gradient-sig: linear-gradient(90deg, var(--rouge) 0%, var(--bleu2) 33%, var(--vert) 66%, var(--violet) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- SCROLLBAR STYLISÉE ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 15, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--rouge) 0%,
    var(--bleu2) 35%,
    var(--vert) 70%,
    var(--violet) 100%
  );
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--rouge3) 0%,
    var(--bleu) 35%,
    var(--vert2) 70%,
    var(--violet2) 100%
  );
}

/* ============================================================
   NAVBAR — Blanche pour se marier avec le logo IMPULSE
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  /* #FAFAFA = couleur exacte du fond du logo PNG IMPULSE ACADEMY,
     pour un raccord parfait sans halo visible */
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.35s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0,0,0,0.10);
}

/* LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* MENU */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--bleu);
  background: rgba(26,35,126,0.05);
}

.nav-link.active {
  color: var(--bleu);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--gradient-sig);
  border-radius: 2px;
}

/* CTA NAV — fond blanc + contour dégradé RGB (effet premium)
   Technique: double background — le contour dégradé est peint dans la zone
   "border-box" et le fond blanc dans la zone "padding-box", ce qui laisse
   apparaître le dégradé uniquement sur la bordure de 2px. */
.nav-cta {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1a1a2e;
  padding: 9px 18px;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, filter 0.25s ease;
  margin-left: 0.6rem;
  flex-shrink: 0;
  border: 3px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--gradient-sig) border-box;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  color: var(--bleu);
  filter: saturate(1.1);
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 999;
  padding: 1.2rem 1.5rem;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: 8px;
  display: block;
  color: #333;
}

.nav-mobile .nav-link:hover {
  background: rgba(26,35,126,0.05);
  color: var(--bleu);
}

.nav-mobile .nav-cta {
  margin: 0.6rem 0 0;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER — Blanc, structuré en colonnes, avec logo IMPULSE et Qualiopi
   ============================================================ */
.footer-sig {
  /* #FAFAFA = couleur exacte du fond du logo PNG IMPULSE ACADEMY,
     pour un raccord parfait sans halo visible */
  background: #fafafa;
  color: #333;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 4rem 2.5rem 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col { min-width: 0; }

.footer-col-brand .footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  background: var(--bleu);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a2e;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-sig);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

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

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.footer-contact li i {
  color: var(--bleu);
  width: 16px;
  padding-top: 3px;
  flex-shrink: 0;
}

.footer-contact a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--bleu); }

.footer-qualiopi {
  max-width: 160px;
  height: auto;
  display: block;
  margin-top: 0.5rem;
  /* Le blanc opaque du PNG se fond dans le #fafafa du footer */
  mix-blend-mode: multiply;
}

/* Bas de footer */
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: #888;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--bleu); }
.footer-legal span { color: #ccc; }

/* ============================================================
   HERO COMMUN
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 2.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* BARRE VERTICALE COLORÉE */
.hero-accent-bar {
  width: 6px;
  height: 80px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

/* BADGE PAGE */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
}

/* TITRES HERO */
.hero-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* GRID CARTES */
.cards-grid {
  display: grid;
  gap: 1.4rem;
}

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

/* CARTE GLASSMORPHISM */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
  color: #1a1a2e;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* BORDURE COLORÉE GAUCHE */
.glass-card.border-rouge  { border-left: 4px solid var(--rouge); }
.glass-card.border-vert   { border-left: 4px solid var(--vert); }
.glass-card.border-bleu   { border-left: 4px solid var(--bleu2); }
.glass-card.border-violet { border-left: 4px solid var(--violet); }

/* INTÉRIEUR CARTE */
.card-inner {
  padding: 1.5rem 1.6rem;
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card-icon.bg-rouge  { background: var(--rouge); }
.card-icon.bg-vert   { background: var(--vert); }
.card-icon.bg-bleu   { background: var(--bleu2); }
.card-icon.bg-violet { background: var(--violet); }

.card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.84rem;
  color: #444;
  line-height: 1.55;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 0.7rem;
  color: #fff;
}

.card-tag.tag-rouge  { background: var(--rouge); }
.card-tag.tag-vert   { background: var(--vert); }
.card-tag.tag-bleu   { background: var(--bleu2); }
.card-tag.tag-violet { background: var(--violet); }

/* PUBLIC LABEL */
.card-public {
  font-size: 0.76rem;
  color: #666;
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.card-public i { color: #999; margin-top: 2px; flex-shrink: 0; }

/* BOUTON CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0.92;
}

.btn-cta.btn-sig   { background: var(--gradient-sig); }
.btn-cta.btn-rouge  { background: linear-gradient(135deg, var(--rouge), var(--rouge3)); }
.btn-cta.btn-vert   { background: linear-gradient(135deg, var(--vert), var(--vert2)); }
.btn-cta.btn-bleu   { background: linear-gradient(135deg, var(--bleu), var(--bleu2)); }
.btn-cta.btn-violet { background: linear-gradient(135deg, var(--violet), var(--violet2)); }

/* SECTION PRINCIPALE */
.page-section {
  padding: 5rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.anim-fadeup    { animation: fadeInUp   0.7s ease both; }
.anim-fadeleft  { animation: fadeInLeft 0.7s ease both; }
.anim-scalein   { animation: scaleIn    0.6s ease both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.2rem; height: 70px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-img { height: 42px; }
  .nav-mobile { top: 70px; }

  .hero-content { padding: 3rem 1.2rem 2rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }

  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4 { grid-template-columns: 1fr; }

  .page-section { padding: 3rem 1.2rem; }

  .footer-sig { padding: 3rem 1.2rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.92rem; }
}
