/* ===== Design system — CS Le Succès ===== */
:root {
  --navy: #0f1b3c;
  --navy-2: #16244e;
  --red: #c8102e;
  --red-dark: #a30d25;
  --cream: #f7f3e9;
  --paper: #ffffff;
  --ink: #1e2433;
  --muted: #5c6478;
  --line: #e7e1d2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 60, 0.1);
  --font-display: "Fraunces", serif;
  --font-body: "Outfit", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}
h3 {
  font-size: 1.22rem;
}
p.lead {
  font-size: 1.12rem;
  color: var(--muted);
}
section {
  padding: 78px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}
.section-head {
  max-width: 640px;
  margin-bottom: 42px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head.center .eyebrow::before {
  display: none;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* Header */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.84rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a {
  color: #fff;
  opacity: 0.9;
}
.topbar a:hover {
  opacity: 1;
}
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.brand b {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--navy);
  line-height: 1.2;
  display: block;
}
.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 1.55rem;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
}
.nav-links a:hover {
  color: var(--red);
}
.nav-links a.active {
  color: var(--red);
  border-color: var(--red);
}
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 8px;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1rem 22px 1.4rem;
}
.mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active {
  color: var(--red);
}
.mobile-menu.open {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  max-height: 880px;
  height: 84vh;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center 65%;
}
.hero .veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 27, 60, 0.93) 30%,
    rgba(15, 27, 60, 0.55) 70%,
    rgba(15, 27, 60, 0.35)
  );
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 {
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  color: #f5c84b;
}
.hero p {
  max-width: 46ch;
  margin: 1.2rem 0 2rem;
  color: #e8e4d8;
  font-size: 1.13rem;
}
.hero .badge-year {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.6);
  color: #ffd9df;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.3rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 84px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  color: #fff;
}
.page-hero p {
  color: #c9cfe2;
  max-width: 60ch;
  margin-top: 0.9rem;
  font-size: 1.1rem;
}
.page-hero .eyebrow {
  color: #f5c84b;
}
.page-hero .eyebrow::before {
  background: #f5c84b;
}
.page-hero::after {
  content: "LE SUCCÈS";
  position: absolute;
  right: -30px;
  bottom: -46px;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Signature : bandeau résultats façon bâche peinte */
.banderole {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 30px 26px;
  position: relative;
  transform: rotate(-0.6deg);
  border: 1px solid #ece6d6;
}
.banderole::before,
.banderole::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 88px;
  height: 24px;
  background: rgba(200, 16, 46, 0.18);
  transform: rotate(-4deg);
}
.banderole::before {
  left: 26px;
}
.banderole::after {
  right: 26px;
  transform: rotate(4deg);
}
.banderole .titre {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.banderole ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.banderole li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.banderole li .tick {
  color: var(--red);
  font-weight: 800;
  font-family: var(--font-display);
}
.banderole li .exam {
  color: var(--navy);
}
.banderole li .score {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
}
.banderole li:nth-child(even) .score {
  color: var(--navy);
}

/* Bande de stats */
.stats-band {
  background: var(--navy);
  color: #fff;
  padding: 46px 0;
}
.stats-band .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  color: #fff;
}
.stat .num sup {
  font-size: 0.45em;
  color: #f5c84b;
}
.stat .lbl {
  color: #adb6cf;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* Cartes */
.cards {
  display: grid;
  gap: 26px;
}
.cards.c2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.cards.c3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards.c4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid #efe9da;
}
.card .ico {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.09);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.card-img {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #efe9da;
}
.card-img img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}
.card-img .body {
  padding: 22px 24px 26px;
}
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}
.badge.navy {
  background: var(--navy);
}
.pill {
  display: inline-block;
  background: rgba(15, 27, 60, 0.07);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin: 0.15rem 0.2rem 0.15rem 0;
}

/* Split media/texte */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}
.split .media .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(15, 27, 60, 0.85);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.checklist li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Tableau résultats */
.table-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  border: 1px solid #efe9da;
}
table.resultats {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.resultats th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table.resultats td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.resultats tr:last-child td {
  border-bottom: 0;
}
table.resultats td.annee {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  white-space: nowrap;
}
.score-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: 1.25rem;
}
.score-chip small {
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  display: block;
  margin-top: -2px;
}

/* Lauréats */
.laureat {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #efe9da;
  text-align: center;
}
.laureat img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.laureat .body {
  padding: 20px 18px 24px;
}
.laureat .note {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--red);
  line-height: 1;
}
.laureat .nom {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.4rem;
}
.laureat .det {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Dortoirs */
.dortoirs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.dortoir {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dortoir::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.25);
}
.dortoir .cap {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
}
.dortoir .lbl {
  color: #adb6cf;
}

/* Timeline (journée / itinéraire) */
.timeline {
  list-style: none;
  position: relative;
  margin-top: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 48px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline .dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-display);
}
.timeline b {
  color: var(--navy);
}
.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
}
.timeline li.warn .dot {
  background: #b98a00;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.gallery a {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: block;
}
.gallery img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.gallery a:hover img {
  transform: scale(1.05);
}
.gallery .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(15, 27, 60, 0.85));
  color: #fff;
  font-size: 0.85rem;
  padding: 26px 14px 12px;
}
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 27, 60, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 10px;
}

/* Formulaire */
.form-grid {
  display: grid;
  gap: 18px;
}
.form-grid .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.35rem;
}
input,
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
}
input:focus,
textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: transparent;
}
.hp {
  position: absolute;
  left: -9999px;
}

/* Footer */
footer.site {
  background: var(--navy);
  color: #c9cfe2;
  padding: 64px 0 0;
  margin-top: 0;
}
footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 48px;
}
footer h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
footer a {
  display: block;
  padding: 0.22rem 0;
  color: #c9cfe2;
}
footer a:hover {
  color: #fff;
}
footer .brandf {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}
footer .brandf img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}
footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slogan {
  font-style: italic;
  color: #f5c84b;
  font-family: var(--font-display);
}

/* CTA finale */
.cta-final {
  background: linear-gradient(120deg, var(--red), #8f0a20);
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-final h2 {
  color: #fff;
}
.cta-final p {
  color: #ffd9df;
  max-width: 50ch;
}

/* Détails repliables */
details {
  background: var(--paper);
  border: 1px solid #efe9da;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
details + details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
}
details[open] summary::after {
  content: "–";
}
details .body {
  margin-top: 0.8rem;
  color: var(--muted);
}

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 404 */
.err {
  min-height: 72vh;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 60px 22px;
}
.err .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
}
.err h1 {
  color: #fff;
  margin: 0.2rem 0 0.8rem;
}
.err p {
  color: #c9cfe2;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  footer .grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: block;
  }
}
@media (max-width: 560px) {
  section {
    padding: 56px 0;
  }
  footer .grid {
    grid-template-columns: 1fr;
  }
  .form-grid .row2 {
    grid-template-columns: 1fr;
  }
  .cta-final {
    padding: 40px 28px;
  }
}
