/* ============================================================
   L'ACADÉMIE DES GUERRIÈRES — STYLES GLOBAUX
   ============================================================ */

/* -------- VARIABLES -------- */
:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-orange: #f19f00;
  --color-orange-dark: #c98300;
  --color-dark: #111111;
  --color-darker: #0a0a0a;
  --color-gray: #888888;
  --color-gray-light: #e5e5e5;
  --color-placeholder: #222222;
  --color-cream: #f5f1ea;

  --font-base: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --container-max: 1200px;
  --container-padding: 24px;

  --header-height: 80px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* -------- TYPOGRAPHIE -------- */
.text-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--color-orange);
}

h1, .h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-gray);
}

/* -------- LAYOUT -------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section-darker {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section-light {
  background-color: var(--color-white);
  color: var(--color-black);
}

.section-orange {
  background-color: var(--color-orange);
  color: var(--color-black);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* -------- BOUTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-black);
}

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

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

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

.btn-outline-dark:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

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

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

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------- BADGE -------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  background-color: var(--color-orange);
  color: var(--color-black);
}

.badge-outline {
  background-color: transparent;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.badge-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* -------- CARDS -------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-gray-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-dark {
  background-color: var(--color-dark);
  border: 1px solid #222;
  color: var(--color-white);
}

.card-dark:hover {
  box-shadow: 0 20px 40px rgba(241, 159, 0, 0.1);
  border-color: var(--color-orange);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-orange);
  color: var(--color-black);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.card-icon svg, .card-icon i {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 16px 0;
  color: var(--color-orange);
}

.card-cta {
  margin-top: auto;
  padding-top: 24px;
}

/* -------- GRID -------- */
.grid {
  display: grid;
  gap: 32px;
}

.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: 968px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* -------- PLACEHOLDER IMAGE -------- */
.placeholder-img {
  background-color: var(--color-placeholder);
  color: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  width: 100%;
}

/* -------- HEADER / NAVIGATION -------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-black);
  color: var(--color-white);
  z-index: 100;
  border-bottom: 1px solid #1a1a1a;
  transition: background-color var(--transition-base);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-logo .logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-logo span {
  display: inline-block;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-orange);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-orange);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  position: relative;
  transition: all var(--transition-base);
}

.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-base);
}

.menu-toggle .bar::before { top: -8px; }
.menu-toggle .bar::after { top: 8px; }

.menu-toggle.is-open .bar {
  background-color: transparent;
}

.menu-toggle.is-open .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

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

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-black);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .main-nav a {
    font-size: 1.25rem;
  }

  .main-nav .btn {
    width: 100%;
    margin-top: 16px;
  }
}

/* -------- FOOTER -------- */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 32px;
  border-top: 1px solid #1a1a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-brand .site-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-gray);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-orange);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-gray);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* -------- HERO GENERIC -------- */
.hero {
  padding: calc(var(--header-height) + 80px) 0 100px;
  background-color: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-image {
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-placeholder);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-simple {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.hero-simple h1 {
  margin-bottom: 16px;
}

.hero-simple .lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
}

/* -------- QUOTE -------- */
.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-block .quote {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  color: var(--color-white);
}

.quote-block .quote::before {
  content: '"';
  color: var(--color-orange);
}

.quote-block .quote::after {
  content: '"';
  color: var(--color-orange);
}

.quote-author {
  font-size: 0.95rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 24px;
}

/* -------- TESTIMONIALS -------- */
.testimonial-card {
  background-color: var(--color-dark);
  border: 1px solid #222;
  padding: 32px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.testimonial-card .stars {
  color: var(--color-orange);
  display: flex;
  gap: 2px;
}

.testimonial-card .stars svg {
  fill: var(--color-orange);
  stroke: var(--color-orange);
}

.testimonial-card .quote {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-card .author-name {
  font-weight: 700;
  color: var(--color-white);
}

.testimonial-card .author-meta {
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* -------- ACCORDÉON FAQ -------- */
.faq-item {
  border-bottom: 1px solid #222;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.section-light .faq-answer p {
  color: var(--color-gray);
}

.section-light .faq-item {
  border-bottom-color: var(--color-gray-light);
}

/* -------- CTA SECTION -------- */
.cta-section {
  background-color: var(--color-orange);
  color: var(--color-black);
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section .lead {
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 32px;
}

.cta-section .note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
}

/* -------- ANIMATIONS -------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* -------- UTILITIES -------- */
.text-center { text-align: center; }
.text-orange { color: var(--color-orange); }
.text-white { color: var(--color-white); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.no-scroll {
  overflow: hidden;
}

/* -------- LISTE COCHES -------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* -------- PRICING / OFFER BANNER -------- */
.offer-banner {
  background-color: var(--color-dark);
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--color-white);
}

.offer-banner .offer-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-orange);
}

/* -------- STATS -------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}

.stat-item .stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   REFONTE — SCAFFOLDING GLOBAL
   Ajouté lors de la refonte graphique : smooth scroll Lenis,
   transition de page, garde mouvement réduit. Chargé sur toutes
   les pages, sans effet tant que les libs ne tournent pas.
   ============================================================ */

/* -------- Smooth scroll Lenis -------- */
html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }

.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.lenis.lenis-stopped { overflow: hidden; }

/* -------- Transition de page (View Transitions API) --------
   Crossfade léger entre les pages. Dégradation propre : les
   navigateurs sans support font une navigation classique. -------- */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-old(root) { animation-name: adg-vt-out; }
::view-transition-new(root) { animation-name: adg-vt-in; }

@keyframes adg-vt-out { to { opacity: 0; } }
@keyframes adg-vt-in { from { opacity: 0; } }

/* -------- Mouvement réduit : on coupe les animations non essentielles -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PARTAGE — bouton flottant + panneau (js/share.js)
   ============================================================ */
.share-root {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90; /* sous le header et le menu mobile (100), au-dessus du grain (60) */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.share-root.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.share-fab {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
  padding: 0 14px;
  background: var(--color-dark);
  color: var(--color-orange);
  border: 1px solid rgba(241, 159, 0, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 14px;
  transition: gap 0.25s ease, border-color 0.25s ease;
}

.share-fab svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.share-fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-cream);
  transition: max-width 0.25s ease;
}

.share-fab:hover {
  gap: 8px;
  border-color: var(--color-orange);
}

.share-fab:hover .share-fab-label {
  max-width: 90px;
}

.share-panel {
  position: absolute;
  left: 0;
  bottom: 56px;
  min-width: 190px;
  padding: 8px;
  background: var(--color-dark);
  border: 1px solid rgba(241, 159, 0, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.share-panel.is-open {
  display: flex;
}

.share-option {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--color-cream);
  text-decoration: none;
}

.share-option:hover {
  background: rgba(241, 159, 0, 0.12);
  color: var(--color-orange);
}

.share-copy.is-copied span {
  color: var(--color-orange);
}

.share-fab:focus-visible,
.share-option:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .share-root,
  .share-fab,
  .share-fab-label {
    transition: none;
  }
}
