:root {
  --dark: #071018;
  --dark-2: #101820;
  --gold: #d9ad58;
  --gold-2: #f1ce78;
  --text: #101419;
  --muted: #5f6772;
  --line: #e8e9ec;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(7, 16, 24, 0.12);
  --section-gap: clamp(36px, 5vw, 64px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}
.section {
  padding: var(--section-gap) 0;
}
.section-dark {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin: 0 0 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 0.92rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #071018;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline-dark {
  border-color: var(--gold);
  color: #071018;
}
.btn-full {
  width: 100%;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 44px);
  transition: 0.25s;
  background: linear-gradient(to bottom, rgba(7, 16, 24, 0.82), transparent);
}
.site-header.is-scrolled {
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.brand img {
  width: 150px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.nav-cta {
  border: 1px solid var(--gold);
  padding: 10px 20px;
}
.burger {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
}
.burger span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 6px;
  border-radius: 3px;
}
.hero {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  padding-bottom: 1em;
  margin-bottom: 1em;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.62) 42%, rgba(7, 16, 24, 0.08));
}
.hero-grid {
  position: relative;
}
.hero-content {
  max-width: 580px;
  padding-top: 60px;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-weight: 900;
}
.hero-text {
  font-size: 0.95rem;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.hero-badges span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  font-size: 0.82rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.content-flow {
  min-width: 0;
}
.contact-card {
  position: sticky;
  top: 80px;
  order: 2;
  margin-top: -70px;
  padding: 28px;
  border: 1px solid rgba(217, 173, 88, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 5;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.lead-form {
  display: grid;
  gap: 10px;
}
.lead-form label span:not(.checkbox span) {
  position: absolute;
  left: -9999px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #d6d9de;
  border-radius: 6px;
  padding: 3px;
  font: inherit;
  font-size: 0.9rem;
}
/* .lead-form textarea {
  rows: 3;
} */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
}
.w-1 {
  width: 5%;
}
.form-status {
  margin: 0;
  font-weight: 700;
}
/* Anti-bot : honeypot caché */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
  tab-index: -1;
}
/* Captcha calcul */
.captcha-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lead-form .captcha-label .captcha-question {
  position: static;
  left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.captcha-label input {
  width: 70px;
  text-align: center;
}
.cards {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card,
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(7, 16, 24, 0.05);
}
.icon {
  font-size: 1.6rem;
}
.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.benefit-list article {
  padding: 16px;
  border-right: 1px solid var(--line);
}
.benefit-list span {
  font-size: 1.8rem;
}
.program {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 28px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.check-list li {
  margin: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}
.program-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.program-gallery img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.program-gallery img:first-child {
  grid-column: 1/-1;
}
.stats {
  padding: 34px;
  border-radius: var(--radius);
  margin-bottom: var(--section-gap);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stats-grid article {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 14px;
}
.stats-grid strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.6rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.final-cta {
  padding: 42px 0;
  background-image: linear-gradient(rgba(7, 16, 24, 0.88), rgba(7, 16, 24, 0.88)), url("../img/centre_formation.png");
  background-size: cover;
  background-position: center;
}
.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-footer {
  padding: 30px 0;
  background: #f7f7f8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-grid img {
  width: 150px;
}
.footer-grid nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.reveal {
  animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 980px) {
  .burger {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 16, 24, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 12px;
  }
  .nav-cta {
    text-align: center;
  }
  .brand img {
    width: 130px;
  }
  .hero {
    min-height: 540px;
    background-position: center;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.54), rgba(7, 16, 24, 0.9));
  }
  .page-layout {
    display: flex;
    flex-direction: column;
  }
  .contact-card {
    position: static;
    width: 100%;
    margin-top: 0;
    order: 3;
    max-height: none;
    overflow-y: visible;
  }
  .content-flow {
    display: contents;
  }
  .section {
    width: 100%;
    order: 2;
  }
  .program {
    grid-template-columns: 1fr;
  }
  .cards-4,
  .benefit-list,
  .stats-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  :root {
    --section-gap: 34px;
  }
  .container {
    width: min(100% - 24px, 1080px);
  }
  .site-header {
    padding: 12px;
  }
  .hero {
    min-height: 520px;
  }
  .hero-content {
    padding-top: 70px;
  }
  .hero-badges {
    display: grid;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .two-cols,
  .cards-4,
  .benefit-list,
  .stats-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .benefit-list article,
  .stats-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stats-grid article {
    border-color: rgba(255, 255, 255, 0.16);
  }
  .contact-card {
    padding: 22px 16px;
    order: 1;
  }
  .program {
    order: 4;
  }
  .advantages {
    order: 3;
  }
  .stats {
    border-radius: 14px;
    padding: 26px 18px;
  }
  .program-gallery {
    grid-template-columns: 1fr;
  }
  .program-gallery img {
    height: 160px;
  }
  .final-cta .btn {
    width: 100%;
  }
}
.docs-link {
  cursor: pointer;
}
.docs-link:hover {
  text-decoration: underline;
}

/* Permet de gérer les niveaux de zoom sur des écrans standard (96dpi) :
* 125% zoom : 120dpi (1.25dppx) -> zoom: 0.8
* 150% zoom : 144dpi (1.5dppx) -> zoom: 0.67
* 
* Ajout d'une tolérance de ±0.02 pour éviter les problèmes d'arrondi sur certains navigateurs
* Cela permet donc de conserver une densité visuelle de 100% même lorsque l'utilisateur a appliqué un zoom de 125% ou 150%
*/

@media screen and (min-resolution: 1.23dppx) and (max-resolution: 1.27dppx) {
  body {
    zoom: 0.8;
    max-width: 125%;
  }
}

@media screen and (min-resolution: 1.48dppx) and (max-resolution: 1.52dppx) {
  body {
    zoom: 0.67;
    max-width: 150%;
  }
}

