@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+SC:wght@300;400;500&display=swap');

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

:root {
  --navy:        #081321;
  --navy-mid:    #0D1B2A;
  --navy-light:  #142D4D;
  --creme:       #FAF4DA;
  --creme-muted: rgba(250,244,218,0.6);
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --border:      rgba(201,168,76,0.25);
  --border-strong: rgba(201,168,76,0.5);
  --radius:      8px;
}

html, body {
  min-height: 100%;
  background: var(--navy);
  color: var(--creme);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BRUIT DE FOND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── BANDEAU OR CERCLE ── */
.cercle-band {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 7px 0;
  font-weight: 500;
}

/* ── HEADER ── */
.site-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo img { height: 36px; }
.header-title {
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  flex: 1;
}
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-logout {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--creme-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
}
.btn-logout:hover { color: var(--creme); border-color: var(--border-strong); }
.header-email { font-size: 12px; color: var(--creme-muted); }

/* ── BOUTONS ── */
.btn {
  display: inline-block;
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 500; }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--creme); }
.btn-full { width: 100%; }

/* ── HERO (page publique) ── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 18px;
  color: var(--creme-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.hero-sep {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}

/* ── BLOCS 3 COLONNES ── */
.trois-blocs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 48px 0;
}
.bloc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: rgba(20,45,77,0.3);
}
.bloc-card-num {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}
.bloc-card-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.3;
}
.bloc-card-text {
  font-size: 15px;
  color: var(--creme-muted);
  line-height: 1.6;
}

/* ── SECTION TITRE ── */
.section-title {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-heading {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.3;
}

/* ── DASHBOARD SECTIONS ── */
.dashboard-content { padding: 40px 0 80px; display: flex; flex-direction: column; gap: 56px; }

/* ── WEBINAIRE CARD ── */
.webinaire-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(20,45,77,0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.webinaire-date {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.webinaire-titre {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.webinaire-mention {
  font-size: 13px;
  color: var(--creme-muted);
  font-style: italic;
}
.webinaire-actions { margin-left: auto; display: flex; flex-direction: column; gap: 10px; }

/* ── RESSOURCES GRILLE ── */
.ressources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.ressource-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(20,45,77,0.25);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ressource-card:hover { border-color: var(--border-strong); background: rgba(20,45,77,0.5); }
.ressource-cat {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.ressource-titre {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
.ressource-resume { font-size: 13px; color: var(--creme-muted); line-height: 1.5; }
.ressource-type {
  font-size: 11px;
  color: var(--creme-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── REPLAYS ── */
.replay-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--creme-muted);
  font-style: italic;
  font-size: 16px;
}

/* ── FILS DE DISCUSSION ── */
.fils-grid { display: flex; flex-direction: column; gap: 20px; }
.fil-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fil-header {
  padding: 16px 20px;
  background: rgba(20,45,77,0.4);
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.fil-header:hover { background: rgba(20,45,77,0.7); }
.fil-body { padding: 20px; display: none; }
.fil-body.open { display: block; }
.fil-message {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.5;
}
.fil-message:last-of-type { border-bottom: none; }
.fil-message-meta { font-size: 12px; color: var(--creme-muted); margin-top: 6px; }
.fil-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.fil-input {
  background: rgba(20,45,77,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--creme);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}
.fil-input:focus { outline: none; border-color: var(--border-strong); }

/* ── PAGE LOGIN ── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}
.login-box {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  background: rgba(13,27,42,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.login-logo { height: 40px; margin: 0 auto; }
.login-title {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.login-sub { font-size: 15px; color: var(--creme-muted); }
.login-fields { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-label { font-size: 11px; letter-spacing: 0.12em; font-family: 'Cormorant SC', serif; color: var(--gold); display: block; margin-bottom: 6px; }
.login-input {
  width: 100%;
  background: rgba(20,45,77,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--creme);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
}
.login-input:focus { outline: none; border-color: var(--border-strong); }
.login-error {
  color: #e07070;
  font-size: 14px;
  text-align: center;
  display: none;
}
.login-link { font-size: 13px; color: var(--creme-muted); }
.login-link a { color: var(--gold); text-decoration: none; }

/* ── MODALE RESSOURCE ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,19,33,0.92);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  width: 100%;
  max-width: 700px;
  background: var(--navy-mid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--creme-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--creme); }
.modal-cat {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.modal-titre { font-size: 26px; font-weight: 400; margin-bottom: 20px; line-height: 1.3; }
.modal-body { font-size: 16px; line-height: 1.7; color: var(--creme); }
.modal-body p { margin-bottom: 16px; }

/* ── SPLASH ── */
.splash {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s;
}
.splash.hidden { opacity: 0; pointer-events: none; }
.splash-mono {
  font-family: 'Cormorant SC', serif;
  font-size: 48px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 300;
}
.splash-sub {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--creme-muted);
}

/* ── FOOTER ── */
.site-footer {
  margin-top: auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--creme-muted);
}
.site-footer a { color: var(--creme-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .login-box { padding: 36px 24px; }
  .webinaire-card { flex-direction: column; }
  .webinaire-actions { margin-left: 0; }
  .modal-box { padding: 28px 20px; }
}
