/* ============================================================
   Academy Light — Design System
   ============================================================ */

:root {
  --c-navy: #1C244B;
  --c-navy-dark: #131934;
  --c-gold: #C7A252;
  --c-gold-dark: #b08e3e;
  --c-cream: #F7FBFC;
  --c-bg-light: #F1F4FD;
  --c-text: #1C244B;
  --c-text-muted: #5b6478;
  --c-border: #e3e8f0;
  --c-white: #ffffff;
  --c-black: #000000;

  --font-heading: 'Spectral', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --gap: 1.5rem;

  --shadow-sm: 0 2px 6px rgba(28, 36, 75, 0.06);
  --shadow-md: 0 6px 18px rgba(28, 36, 75, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 36, 75, 0.12);

  --header-h: 90px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-gold); }
ul, ol { padding-left: 1.25rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--navy { background: var(--c-navy); color: var(--c-cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--c-cream); }
.section--cream { background: var(--c-bg-light); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn--primary { background: var(--c-gold); color: var(--c-cream); box-shadow: 0 4px 14px rgba(199, 162, 82, 0.35); }
.btn--primary:hover { background: var(--c-gold-dark); color: var(--c-cream); box-shadow: 0 6px 20px rgba(199, 162, 82, 0.45); transform: translateY(-1px); }
.btn--secondary { background: var(--c-bg-light); color: var(--c-navy); }
.btn--secondary:hover { background: var(--c-white); color: var(--c-navy); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost:hover { background: var(--c-navy); color: var(--c-cream); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  min-height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.site-logo img { max-height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}
.site-nav__menu a {
  color: var(--c-navy);
  font-weight: 500;
  position: relative;
  padding: .5rem 0;
  white-space: nowrap;
}
.site-nav__menu > li { white-space: nowrap; }
.site-nav__menu a:hover { color: var(--c-gold); }
.site-nav__menu .menu-item-has-children > a::after {
  content: "▾";
  margin-left: .35rem;
  font-size: .8em;
  opacity: .7;
}
/* Sub-menu (dropdown) */
.site-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.site-nav__menu .menu-item-has-children { position: relative; }
.site-nav__menu .menu-item-has-children:hover > .sub-menu,
.site-nav__menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__menu .sub-menu a {
  display: block;
  padding: .55rem 1rem;
  font-weight: 400;
  white-space: nowrap;
}
.site-nav__menu .sub-menu a:hover { background: var(--c-bg-light); }

.site-header__cta { flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-navy); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--c-navy); }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after  { top:  8px; }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-white); flex-direction: column; align-items: stretch; padding: 2rem 1.5rem; gap: 1rem; transform: translateX(100%); transition: transform .25s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav__menu { flex-direction: column; gap: 0; }
  .site-nav__menu > li { border-bottom: 1px solid var(--c-border); }
  .site-nav__menu a { padding: 1rem 0; display: block; }
  .site-nav__menu .sub-menu { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; padding: 0 0 .5rem 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero-wrapper { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.hero {
  background: var(--c-navy);
  color: var(--c-cream);
}
.hero--card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.hero__title { color: var(--c-cream); margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.hero__lead { color: rgba(247, 251, 252, 0.85); font-size: 1.05rem; margin-bottom: 2rem; }

.hero__list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.hero__list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .65rem;
  color: rgba(247, 251, 252, 0.95);
  font-weight: 500;
}
.hero__list--icons li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c-gold);
}

.hero__media {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  max-height: 480px;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 2rem; }
  .hero__media { order: 2; }
  .hero__media img { max-height: 320px; }
}

/* ============================================================
   Cards (services / formations / etc.)
   ============================================================ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.card h3 { margin: 0 0 .5rem; }
.card p { color: var(--c-text-muted); margin: 0 0 1rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-navy);
  color: rgba(247, 251, 252, 0.85);
  padding: 4rem 0 1.5rem;
}
.site-footer h4 { color: var(--c-cream); font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: rgba(247, 251, 252, 0.85); }
.site-footer a:hover { color: var(--c-gold); }
.site-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: .5rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(247, 251, 252, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(247, 251, 252, 0.6);
}
.site-footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(247, 251, 252, 0.08); display: inline-flex; align-items: center; justify-content: center; }
.site-footer__social a:hover { background: var(--c-gold); color: var(--c-navy); }
@media (max-width: 900px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ============================================================
   Sticky phone CTA
   ============================================================ */
.sticky-phone {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  background: var(--c-gold);
  color: var(--c-cream);
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.sticky-phone:hover { background: var(--c-gold-dark); color: var(--c-cream); transform: translateY(-2px); }
.sticky-phone svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .sticky-phone span { display: none; } .sticky-phone { padding: .85rem; } }

/* ============================================================
   Page content (Gutenberg blocks)
   ============================================================ */
.page-content { max-width: 800px; margin-inline: auto; }
.page-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.page-content blockquote {
  border-left: 4px solid var(--c-gold);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--c-text-muted);
}
.page-header { padding: 4rem 0 2rem; background: var(--c-bg-light); margin-bottom: 3rem; }
.page-header h1 { margin: 0; }
.page-header__breadcrumb { color: var(--c-text-muted); font-size: .9rem; margin-bottom: .5rem; }

/* ============================================================
   Blog / archive
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__thumb { aspect-ratio: 16/10; background: var(--c-bg-light); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; }
.post-card__meta { color: var(--c-text-muted); font-size: .85rem; margin-bottom: .5rem; }
.post-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.post-card h3 a { color: var(--c-navy); }
.post-card h3 a:hover { color: var(--c-gold); }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Form (contact)
   ============================================================ */
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row--2 { grid-template-columns: 1fr; } }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-white);
  color: var(--c-text);
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .9rem; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-line {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c-bg-light);
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
}
.contact-line:hover { background: var(--c-white); box-shadow: var(--shadow-sm); color: var(--c-navy); }
.contact-line strong { color: var(--c-gold); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .95rem; }
.alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert--error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 95;
  max-width: 380px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.cookie-banner.hidden { display: none; }
.cookie-banner h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--c-navy); }
.cookie-banner p { font-size: .85rem; color: var(--c-text-muted); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: .5rem; }
.cookie-banner__actions .btn { flex: 1; padding: .55rem .75rem; font-size: .85rem; }

/* ============================================================
   Home — sections specifiques
   ============================================================ */
.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-gold);
  color: var(--c-cream);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  margin-bottom: .75rem;
  border-left: 3px solid var(--c-gold);
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}
.why-list li {
  background: var(--c-white);
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 24px;
  height: 24px;
  background: var(--c-gold);
  color: var(--c-cream);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
@media (max-width: 700px) {
  .why-list { grid-template-columns: 1fr; }
}

.intervenant__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-bg-light);
  margin-bottom: 1rem;
}
.intervenant__role {
  color: var(--c-gold);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.testimonial {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 0;
  border: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -.5rem;
  left: .75rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--c-gold);
  line-height: 1;
  opacity: .35;
}
.testimonial p {
  font-style: italic;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--c-navy);
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
