:root {
  --beige-doré: #C6AC8E;
  --beige-light: #e8d5b8;
  --night: #080808;
  --white-smoke: #F2F4F3;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: #080808;
  color: var(--white-smoke);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  min-height: 100vh;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

footer {
  text-align: center;
  color: rgba(242,244,243,0.3);
  padding: 1.5rem;
  font-size: 0.8rem;
}

/* ================================================
   VUE GRILLE
   ================================================ */

.collection-header {
  text-align: center;
  padding: 52px 20px 40px;
}

.collection-header h2 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--white-smoke);
  margin: 0 0 12px;
}

.collection-subtitle {
  font-size: 0.78rem;
  color: rgba(198,172,142,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.collection-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige-doré), transparent);
  margin: 22px auto 0;
}

/* GRILLE 12 DOMAINES */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* CARTE DOMAINE */
.domain-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(198,172,142,0.13);
  border-radius: 18px;
  padding: 40px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  text-decoration: none;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,172,142,0.28), transparent);
}

.domain-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(198,172,142,0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 40px rgba(198,172,142,0.04);
  background: rgba(255,255,255,0.05);
}

.domain-icon-img {
  width: 55%;
  height: 90px;
  object-fit: contain;
  opacity: 0.88;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.domain-card:hover .domain-icon-img {
  transform: scale(1.1) translateY(-3px);
  opacity: 1;
}

.domain-name {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198,172,142,0.8);
  text-align: center;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.domain-card:hover .domain-name {
  color: var(--beige-light);
}

/* ================================================
   VUE COURS
   ================================================ */

/* Flèche retour */
.back-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(198,172,142,0.15);
  border-radius: 10px;
  padding: 10px 18px;
  color: rgba(198,172,142,0.7);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin: 32px 0 36px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.back-arrow:hover {
  border-color: rgba(198,172,142,0.4);
  color: var(--beige-doré);
  background: rgba(198,172,142,0.05);
}

.back-arrow-icon {
  font-size: 1.1rem;
}

/* Header cours */
.cours-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(198,172,142,0.1);
  margin-bottom: 24px;
}

.cours-header-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.9;
  flex-shrink: 0;
}

.cours-header h2 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  color: var(--white-smoke);
}

/* Barre progression */
.progress-bar-container {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  margin: 18px 0 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #C6AC8E, #e8d5b8);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: rgba(198,172,142,0.45);
  margin: 0 0 36px;
  text-transform: uppercase;
}

/* Liste vidéos */
.videos-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

/* Module */
.video-module {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(198,172,142,0.11);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.video-module::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,172,142,0.22), transparent);
}

.video-module.completed {
  border-color: rgba(198,172,142,0.28);
}

/* Header module */
.module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(198,172,142,0.07);
}

.module-number {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(198,172,142,0.35);
  min-width: 34px;
  line-height: 1;
  transition: color 0.3s;
}

.video-module.completed .module-number {
  color: var(--beige-doré);
}

.module-meta { flex: 1; }

.module-meta h3 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
  color: var(--white-smoke);
  letter-spacing: 0.01em;
}

/* Bouton check */
.module-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(198,172,142,0.2);
  background: transparent;
  color: rgba(198,172,142,0.3);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-check:hover {
  border-color: var(--beige-doré);
  color: var(--beige-doré);
  background: rgba(198,172,142,0.08);
}

.module-check.done {
  background: var(--beige-doré);
  border-color: var(--beige-doré);
  color: #1a1410;
}

/* Vidéo */
.video-wrapper {
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Section PDF */
.pdf-section {
  margin-top: 44px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(198,172,142,0.14);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.pdf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,172,142,0.28), transparent);
}

.pdf-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.pdf-info { flex: 1; }

.pdf-info h3 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0 0 5px;
  color: var(--white-smoke);
}

.pdf-info p {
  font-size: 0.78rem;
  color: rgba(242,244,243,0.38);
  margin: 0;
  line-height: 1.5;
}

.pdf-download-btn {
  padding: 11px 22px;
  background: linear-gradient(135deg, #C6AC8E 0%, #e8d5b8 50%, #C6AC8E 100%);
  background-size: 200% 200%;
  border-radius: 10px;
  color: #1a1410;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(198,172,142,0.18);
}

.pdf-download-btn:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(198,172,142,0.28);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .domains-grid { grid-template-columns: 1fr; gap: 14px; }
  .domain-card { padding: 28px 14px 24px; }
  .pdf-card { flex-direction: column; text-align: center; gap: 14px; }
  .module-header { padding: 14px 16px; gap: 12px; }
  .module-meta h3 { font-size: 0.87rem; }
}