@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --bleu: #1E3A8A;
  --or: #CA8A04;
  --creme: #FAF7F0;
  --encre: #1F2937;
  --violet: #6B21A8;
  --max-width: 1180px;
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--encre);
  background: var(--creme);
  background-image:
    linear-gradient(180deg, rgba(30, 58, 138, 0.03) 0%, transparent 120px),
    radial-gradient(ellipse at 100% 0%, rgba(107, 33, 168, 0.04) 0%, transparent 45%);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--bleu);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}
a:hover { color: var(--violet); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--bleu);
  line-height: 1.28;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 2.25rem 0 1rem; }
h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; margin: 1.25rem 0 0.6rem; color: var(--encre); }

.chapitre-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
}

.roman-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.roman-heading .numeral {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--or);
  flex-shrink: 0;
  min-width: 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--creme);
  border-bottom: 2px solid var(--bleu);
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-block { display: flex; align-items: center; gap: 0.75rem; }

.logo-sigil {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu);
  text-decoration: none;
  line-height: 1.2;
}
.logo span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  opacity: 0.75;
  margin-top: 0.15rem;
  max-width: 16rem;
}
.logo:hover { color: var(--violet); }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.main-nav a {
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--encre);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--bleu);
  border-bottom-color: var(--or);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--bleu);
  color: var(--bleu);
  padding: 0.4rem 0.65rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.header-cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bleu);
  color: var(--creme);
  border: 1px solid var(--bleu);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.header-cta:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--encre);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bleu);
  color: var(--creme);
  border: 2px solid var(--bleu);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.btn:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--encre);
  transform: translateY(-2px);
}

.btn-or {
  background: var(--or);
  border-color: var(--or);
  color: var(--encre);
}
.btn-or:hover {
  background: #B45309;
  border-color: #B45309;
  color: var(--creme);
}

.btn-outline {
  background: transparent;
  color: var(--bleu);
  border-color: var(--bleu);
}
.btn-outline:hover {
  background: var(--bleu);
  color: var(--creme);
}

main { padding-top: var(--header-h); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero-chapitre {
  background: linear-gradient(135deg, var(--bleu) 0%, #1e40af 55%, var(--violet) 100%);
  color: var(--creme);
  padding: 4rem 0 4.5rem;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-chapitre h1 { color: var(--creme); }
.hero-chapitre .chapitre-label { color: var(--or); }

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  opacity: 0.95;
}

.hero-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  border-left: 3px solid var(--or);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgba(250, 247, 240, 0.92);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-vitrine img {
  border: 3px solid var(--or);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.vitrine-legende {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.85;
  line-height: 1.55;
}

/* Trust strip */
.trust-strip {
  background: var(--encre);
  color: var(--creme);
  padding: 0.85rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  text-align: center;
}

/* Dialectic thesis-antithesis */
.dialectic-section {
  padding: 3.5rem 0;
}

.dialectic-section.alt { background: rgba(30, 58, 138, 0.04); }

.dialectic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.dialectic-col {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
}

.thesis-col {
  border-top: 4px solid var(--bleu);
}

.antithesis-col {
  border-top: 4px solid var(--violet);
}

.dialectic-col .col-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.thesis-col .col-tag { color: var(--bleu); }
.antithesis-col .col-tag { color: var(--violet); }

.synthese-band {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.12), rgba(107, 33, 168, 0.08));
  border-left: 4px solid var(--or);
}

.synthese-band h3 {
  font-family: 'Playfair Display', serif;
  color: var(--bleu);
  margin-top: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.seminar-card {
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.1);
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.seminar-card:hover {
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.12);
  transform: translateY(-3px);
}

.seminar-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--or);
  margin-bottom: 0.35rem;
}

.seminar-card h3 { margin-top: 0; color: var(--bleu); }

/* Page hero */
.page-hero {
  background: var(--bleu);
  color: var(--creme);
  padding: 3rem 0;
}

.page-hero h1 { color: var(--creme); }
.page-hero p { max-width: 680px; opacity: 0.92; }

.section-band { padding: 3rem 0; }
.section-band.alt { background: rgba(30, 58, 138, 0.04); }

.section-intro { max-width: 720px; margin-bottom: 1.5rem; }

/* FAQ */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid rgba(30, 58, 138, 0.15);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-family: 'Playfair Display', serif;
  color: var(--bleu);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--or);
  flex-shrink: 0;
}

.faq-item.open h3::after { content: '−'; }

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem 0;
}

.contact-details dl { margin-top: 1rem; }
.contact-details dt {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--bleu);
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-details dd { margin-left: 0; margin-top: 0.25rem; }

.form-panel {
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.12);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--encre);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(30, 58, 138, 0.25);
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  background: var(--creme);
  color: var(--encre);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.consent-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.consent-row input { width: auto; margin-top: 0.3rem; }
.consent-row label { font-size: 0.92rem; line-height: 1.55; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}
.form-status.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid #16a34a; color: #166534; }
.form-status.err { background: rgba(239, 68, 68, 0.1); border: 1px solid #dc2626; color: #991b1b; }

/* Legal prose */
.legal-prose h2 { margin-top: 2rem; }
.legal-prose h3 { margin-top: 1.5rem; }
.legal-prose p, .legal-prose li { margin-bottom: 0.75rem; }
.legal-prose ul { margin-left: 1.5rem; margin-bottom: 1rem; }

.disclaimer-box {
  background: rgba(202, 138, 4, 0.1);
  border: 2px solid var(--or);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--encre);
  color: rgba(250, 247, 240, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--or);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-footer a { color: rgba(250, 247, 240, 0.85); }
.site-footer a:hover { color: var(--or); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(250, 247, 240, 0.15);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.75;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--encre);
  color: var(--creme);
  padding: 1.25rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

#cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.5rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid var(--or);
  background: transparent;
  color: var(--creme);
  transition: background 0.25s, color 0.25s;
}

.cookie-actions button:hover {
  background: var(--or);
  color: var(--encre);
}

#cookie-accept-all { background: var(--or); color: var(--encre); }
#cookie-accept-all:hover { background: #B45309; border-color: #B45309; color: var(--creme); }

#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(31, 41, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#cookie-modal.show { opacity: 1; visibility: visible; }

.cookie-modal-panel {
  background: var(--creme);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border: 2px solid var(--bleu);
}

.cookie-modal-panel h3 {
  font-family: 'Playfair Display', serif;
  color: var(--bleu);
  margin-top: 0;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.12);
}

/* Reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-chapitre {
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 50vh;
}

.error-chapitre h1 { color: var(--violet); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .dialectic-grid,
  .contact-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.5rem; padding: 0.5rem 0; }

  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-section { opacity: 1; transform: none; transition: none; }
}
