/* ═══════════════════════════════════════════
   DURABLE by EdgyCorporation
   Design system repris du site de référence :
   Inter · #0a0a0a sur blanc · radius 0 · bordures #e5e5e5
   ═══════════════════════════════════════════ */

:root {
  --background: #fff;
  --foreground: #0a0a0a;
  --secondary: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --dark: #0a0a0a;
  --dark-border: #262626;
  --dark-muted: #a3a3a3;
  --radius: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Inter Fallback", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  color: var(--foreground);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.nav-logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.nav-logo-sub {
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: none;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, .9); }
.nav.scrolled .nav-cta { background: var(--foreground); color: #fff; }
.nav-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  transition: border-color .2s, background .2s, color .4s;
}
.nav-auth:hover { border-color: #fff; }
.nav.scrolled .nav-auth { border-color: var(--foreground); color: var(--foreground); }
.nav-auth.logged { padding: .3rem .875rem .3rem .3rem; }
.nav-auth img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-menu {
  display: none;
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  min-width: 14rem;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 1rem;
  z-index: 110;
}
.auth-menu.open { display: block; }
.auth-menu p {
  font-size: .8125rem;
  color: var(--muted-foreground);
  margin-bottom: .875rem;
  word-break: break-all;
}
.auth-menu button {
  width: 100%;
  padding: .5rem .875rem;
  background: var(--foreground);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .2s;
}
.auth-menu button:hover { opacity: .85; }
.nav-burger { display: block; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(10, 10, 10, .95);
  backdrop-filter: blur(12px);
}
.nav-mobile.open { display: flex; }
.nav.scrolled .nav-mobile { background: rgba(255, 255, 255, .95); }
.nav-mobile a { font-size: 1rem; font-weight: 500; }

@media (min-width: 768px) {
  .nav-inner { padding: 1.25rem 3rem; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-burger, .nav-mobile { display: none !important; }
}
@media (min-width: 1024px) {
  .nav-inner { padding: 1.25rem 5rem; }
}

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.25) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,.35) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-kicker {
  padding: 0 1.5rem .75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero-title {
  width: 100%;
  font-size: 21vw;
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.04em;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  margin-bottom: -.02em;
}
.hero-title .letter {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .8);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .hero-kicker { padding: 0 3rem 1rem; }
}

/* ══════════ MANIFESTE ══════════ */
.manifesto {
  padding: 8rem 1.5rem;
  text-align: center;
}
.manifesto-title {
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.04em;
}
.manifesto-sub {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.br-desk { display: none; }
@media (min-width: 768px) {
  .manifesto { padding: 11rem 3rem; }
  .br-desk { display: block; }
}

/* ══════════ SECTIONS (base) ══════════ */
.section { padding: 6rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 7rem 3rem; } }
@media (min-width: 1024px) { .section { padding: 8rem 5rem; } }

.section-head { max-width: 52rem; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.section-sub {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 38rem;
}
.section-label--light { color: var(--dark-muted); }
.section-title--light { color: #fff; }
.section-sub--light { color: var(--dark-muted); }

/* ══════════ VILLES ══════════ */
.villes { border-top: 1px solid var(--border); }
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.city-btn {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: background .25s ease, color .25s ease;
  will-change: transform, opacity;
}
.city-btn span {
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color .25s ease;
}
.city-btn:hover { background: var(--secondary); }
.city-btn.active { background: var(--foreground); color: #fff; }
.city-btn.active span { color: var(--dark-muted); }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .city-grid { grid-template-columns: repeat(5, 1fr); } }

/* ══════════ MÉTÉO ACTUELLE ══════════ */
.meteo { border-top: 1px solid var(--border); background: var(--secondary); }
.meteo-empty, .forecast-empty, .sol-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.meteo-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  margin-bottom: 3rem;
}
.meteo-icon svg { width: 72px; height: 72px; stroke-width: 1.25; }
.meteo-temp {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.05em;
  display: flex;
  align-items: flex-start;
}
.meteo-unit {
  font-size: .25em;
  font-weight: 400;
  margin-top: .35em;
  color: var(--muted-foreground);
}
.meteo-desc p:first-child {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.meteo-feels {
  margin-top: .375rem;
  font-size: .9375rem;
  color: var(--muted-foreground);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.stat-card {
  background: var(--background);
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.stat-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.stat-value {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: .375rem;
}
.stat-value em {
  font-style: normal;
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}
.stat-note { font-size: .8125rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }

/* ══════════ SOL (bande sombre) ══════════ */
.sol { background: var(--dark); }
.sol-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
.sol-col-title {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-border);
}
.sol-col-title span {
  font-size: .75rem;
  font-weight: 400;
  color: var(--dark-muted);
  margin-left: .5rem;
}
.sol-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3.5rem;
  align-items: center;
  gap: 1rem;
  padding: .875rem 0;
}
.sol-depth {
  font-size: .8125rem;
  color: var(--dark-muted);
}
.sol-bar {
  height: 2px;
  background: var(--dark-border);
  position: relative;
  overflow: hidden;
}
.sol-bar-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
}
.sol-val {
  font-size: .9375rem;
  font-weight: 500;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sol-verdict {
  border: 1px solid var(--dark-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.sol-verdict-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.sol-verdict-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  letter-spacing: -.01em;
}
@media (min-width: 1024px) {
  .sol-grid { grid-template-columns: 1fr 1fr 1fr; gap: 4rem; }
}

/* ══════════ PRÉVISIONS ══════════ */
.previsions { border-top: 1px solid var(--border); }
.forecast-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.forecast-grid:has(.forecast-empty) { border: none; }
.forecast-card {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background .25s ease;
}
.forecast-card:hover { background: var(--secondary); }
.forecast-day {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.forecast-card svg { width: 34px; height: 34px; stroke-width: 1.4; }
.forecast-temps {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-variant-numeric: tabular-nums;
}
.forecast-max { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.forecast-min { font-size: .9375rem; color: var(--muted-foreground); }
.forecast-meta {
  font-size: .8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
@media (min-width: 640px) { .forecast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .forecast-grid { grid-template-columns: repeat(7, 1fr); } }

/* ══════════ CONSEILS ══════════ */
.conseils { border-top: 1px solid var(--border); background: var(--secondary); }
.advice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.advice-card {
  background: var(--background);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.advice-num {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--foreground);
  font-size: .8125rem;
  font-weight: 600;
}
.advice-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.advice-card p {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.advice-card.alert .advice-num { background: var(--foreground); color: #fff; }
@media (min-width: 768px) { .advice-grid { grid-template-columns: repeat(3, 1fr); } }

/* ══════════ SOL & CULTURES ══════════ */
.cultures { border-top: 1px solid var(--border); }
.cultures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.info-card {
  background: var(--background);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.info-card--dark { background: var(--dark); }
.info-card--dark .info-label { color: var(--dark-muted); }
.info-card--dark .info-text { color: var(--dark-muted); }
.info-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.info-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.info-text {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.crop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.crop-chip {
  padding: .5rem .875rem;
  border: 1px solid var(--foreground);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.crop-chips--invert .crop-chip {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
@media (min-width: 1024px) { .cultures-grid { grid-template-columns: repeat(3, 1fr); } }

/* ══════════ MARCHÉ & ÉCONOMIE ══════════ */
.marche { border-top: 1px solid var(--border); background: var(--secondary); }
.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.chart-box {
  background: var(--background);
  padding: 2rem;
}
.chart-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.chart-title span {
  display: block;
  margin-top: .375rem;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.chart-wrap {
  position: relative;
  height: 300px;
}
.chart-note {
  background: var(--dark);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chart-note .info-label { color: var(--dark-muted); }
.chart-note-big {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: #fff;
}
.chart-note .info-text { color: var(--dark-muted); }
.chart-note .info-text strong { color: #fff; font-weight: 500; }
.chart-disclaimer {
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.chart-note .chart-disclaimer { color: #737373; margin-top: auto; }
.malherbes .chart-disclaimer { margin-top: 2rem; max-width: 42rem; }
@media (min-width: 1024px) {
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-box--wide { grid-column: span 2; }
  .chart-box--wide .chart-wrap { height: 340px; }
}

/* ══════════ MALHERBES ══════════ */
.malherbes { border-top: 1px solid var(--border); }
.weed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}
.weed-grid:not(:empty) { border: 1px solid var(--border); }
.weed-card {
  background: var(--background);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background .25s ease;
}
.weed-card:hover { background: var(--secondary); }
.weed-name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.weed-name em {
  display: block;
  margin-top: .25rem;
  font-size: .8125rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted-foreground);
}
.weed-crops {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.weed-sol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.weed-sol-col span {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .625rem;
  margin-bottom: .625rem;
}
.weed-sol-col--chem span { border: 1px solid var(--foreground); }
.weed-sol-col--bio span { background: var(--foreground); color: #fff; }
.weed-sol-col p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .weed-grid { grid-template-columns: repeat(2, 1fr); }
  .weed-sol { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ══════════ ACADÉMIE ══════════ */
.academie { background: var(--dark); }
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
}
.course-card {
  background: var(--dark);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.course-tag {
  padding: .3rem .75rem;
  background: #fff;
  color: var(--foreground);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.course-level {
  font-size: .75rem;
  color: var(--dark-muted);
  letter-spacing: .04em;
}
.course-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
}
.course-card > p {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--dark-muted);
}
.course-modules {
  border-top: 1px solid var(--dark-border);
}
.course-modules li {
  display: flex;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: .875rem;
  line-height: 1.5;
  color: #d4d4d4;
}
.course-modules li span {
  font-size: .75rem;
  color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  padding-top: .1rem;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .8125rem;
  color: var(--dark-muted);
}
.course-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: .625rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s;
}
.course-cta:hover { background: rgba(255, 255, 255, .88); }
.academy-roadmap {
  margin-top: 3rem;
  border: 1px dashed var(--dark-border);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.academy-roadmap .info-label { color: var(--dark-muted); }
.academy-roadmap p {
  font-size: .9375rem;
  line-height: 1.7;
  color: #d4d4d4;
}
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

/* ══════════ MODALE DE CONNEXION ══════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(4px);
}
.auth-box {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem 2rem;
}
.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  padding: .25rem .5rem;
}
.auth-close:hover { color: var(--foreground); }
.auth-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.auth-sub {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--foreground);
  font-size: .9375rem;
  font-weight: 500;
  transition: background .2s;
}
.btn-google:hover { background: var(--secondary); }
.auth-google-note {
  margin-top: .625rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.auth-google-note a, .policy-check a { text-decoration: underline; text-underline-offset: 2px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--foreground);
}
.auth-field input {
  padding: .75rem .875rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  font: inherit;
  font-size: .9375rem;
  font-weight: 400;
}
.auth-field input:focus { outline: 2px solid var(--foreground); outline-offset: -1px; }
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: .875rem;
}
.policy-check {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  margin: .25rem 0 1rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  cursor: pointer;
}
.policy-check input {
  margin-top: .2rem;
  accent-color: var(--foreground);
  flex: 0 0 auto;
}
.auth-error {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px solid #dc2626;
  color: #dc2626;
  font-size: .8125rem;
  line-height: 1.5;
}
.auth-submit { width: 100%; }
.auth-submit:disabled { opacity: .5; cursor: wait; }
.auth-switch {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted-foreground);
  text-align: center;
}
.auth-switch button {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: .375rem;
}

/* ══════════ PAGE POLITIQUE ══════════ */
.policy-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}
.policy-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.policy-updated {
  font-size: .8125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
}
.policy-page h2 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 2.5rem 0 .875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.policy-page p, .policy-page li {
  font-size: .9375rem;
  line-height: 1.75;
  color: #404040;
  margin-bottom: .75rem;
}
.policy-page ul { margin-left: 1.25rem; list-style: disc; }

/* ══════════ PAGE DE COURS (Academy) ══════════ */
.course-cta--soon {
  margin-top: auto;
  align-self: flex-start;
  padding: .625rem 1.5rem;
  border-radius: 999px;
  border: 1px dashed var(--dark-border);
  color: var(--dark-muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: default;
}
.course-body { background: var(--background); }
.course-nav { position: sticky; }
.course-nav-title {
  display: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.course-back { background: var(--foreground) !important; color: #fff !important; display: inline-block !important; }
@media (min-width: 768px) { .course-nav-title { display: block; } }

.course-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 1.5rem 6rem;
  max-width: 75rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .course-layout { grid-template-columns: 18rem 1fr; padding: 4rem 3rem 8rem; }
  .course-sidebar { position: sticky; top: 6rem; align-self: start; }
}
.course-toc { display: flex; flex-direction: column; margin-top: 1rem; border-top: 1px solid var(--border); }
.toc-item {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  text-align: left;
  padding: .875rem .5rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted-foreground);
  transition: color .2s, background .2s;
}
.toc-item:hover { color: var(--foreground); background: var(--secondary); }
.toc-item.active { color: var(--foreground); background: var(--secondary); }
.toc-item.done { color: var(--foreground); }
.toc-item span { font-size: .6875rem; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.toc-exam.active, .toc-exam:hover { background: var(--foreground); color: #fff; }
.course-progress { margin-top: 2rem; display: flex; flex-direction: column; gap: .625rem; }
.course-progress-bar { height: 2px; background: var(--border); }
#progressFill { height: 100%; width: 0; background: var(--foreground); transition: width .6s ease; }
.course-progress-txt { font-size: .8125rem; color: var(--muted-foreground); }

.chapter h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.75rem;
}
.chapter h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 2.25rem 0 .875rem;
}
.chapter p { font-size: 1rem; line-height: 1.75; color: #404040; margin-bottom: 1rem; }
.chapter ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.chapter li { font-size: 1rem; line-height: 1.75; color: #404040; margin-bottom: .375rem; }
.chapter strong { color: var(--foreground); font-weight: 600; }
.formula {
  font-family: "Courier New", monospace;
  background: var(--secondary);
  border-left: 2px solid var(--foreground);
  padding: 1rem 1.25rem;
  font-size: 1.0625rem !important;
}
.exercises { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.exercises-title { margin-top: 0 !important; }
.exercise {
  border: 1px solid var(--border);
  margin-bottom: .75rem;
}
.exercise summary {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
}
.exercise summary::-webkit-details-marker { display: none; }
.exercise summary span {
  flex: 0 0 auto;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding-top: .2rem;
}
.exercise[open] { background: var(--secondary); }
.exercise p { padding: 0 1.25rem 1.25rem; margin: 0; font-size: .9375rem; }
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.btn-solid {
  padding: .75rem 1.75rem;
  background: var(--foreground);
  color: #fff;
  font-size: .9375rem;
  font-weight: 500;
  transition: opacity .2s;
}
.btn-solid:hover { opacity: .85; }
.btn-ghost {
  padding: .75rem 1.75rem;
  border: 1px solid var(--foreground);
  font-size: .9375rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--foreground); color: #fff; }

/* — Examen — */
.exam-intro { font-size: 1rem; }
.exam-name { margin: 2rem 0; display: flex; flex-direction: column; gap: .5rem; max-width: 26rem; }
.exam-name label { font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.exam-name input {
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 1rem;
  background: var(--secondary);
}
.exam-name input:focus { outline: 2px solid var(--foreground); outline-offset: -1px; }
.exam-name input.err { outline: 2px solid #dc2626; }
.exam-q {
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.exam-q legend {
  display: flex;
  gap: .75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0 .5rem;
}
.exam-q legend span { color: var(--muted-foreground); font-size: .8125rem; padding-top: .15rem; flex: 0 0 auto; }
.exam-opt {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .625rem .5rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: #404040;
  cursor: pointer;
  transition: background .15s;
}
.exam-opt:hover { background: var(--secondary); }
.exam-opt input { accent-color: var(--foreground); }
.exam-result {
  margin-top: 2.5rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  align-items: flex-start;
}
.exam-result.pass { background: var(--dark); color: #fff; }
.exam-result.pass h3 { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; }
.exam-result.pass p { color: var(--dark-muted); }
.exam-result.pass .btn-solid { background: #fff; color: var(--foreground); margin-top: .75rem; }
.exam-result.fail { border: 1px solid var(--foreground); }
.exam-result.fail h3 { font-size: 1.5rem; font-weight: 500; }
.exam-result.fail p { color: var(--muted-foreground); }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding: 4rem 1.5rem;
}
.footer-brand { grid-column: span 2; }
.footer-logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.footer-col h4 {
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: .75rem; }
.footer-col a {
  font-size: .875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}
.footer-col a:hover { color: var(--foreground); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 5rem 3rem; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { padding: 1.5rem 3rem; }
}
@media (min-width: 1024px) {
  .footer-inner { padding: 5rem 5rem; }
  .footer-bottom { padding: 1.5rem 5rem; }
}
