/* =========================================================
EN PLATEAU — LAYOUT.CSS
Socle typographique et visuel verrouillé
Mise à jour — hiérarchie éditoriale conservée
Direction : éditorial premium, sobre, contrasté
========================================================= */

:root {
  --ep-ink: #1f1a17;
  --ep-ink-soft: #4f4640;
  --ep-ink-muted: #756a63;

  --ep-paper: #fffaf6;
  --ep-paper-soft: #f8f3ea;
  --ep-white: #fffdf9;

  --ep-accent: #5f574f;
  --ep-accent-soft: #756b61;
  --ep-accent-deep: #332d28;

  --ep-line: rgba(47, 40, 34, 0.12);
  --ep-line-strong: rgba(47, 40, 34, 0.20);

  --ep-black: #111111;
  --ep-black-soft: #171717;
  --ep-charcoal: #23252a;
  --ep-charcoal-soft: #2d3036;
  --ep-grey-deep: #3a3d44;
  --ep-grey-mid: #5a5d63;

  --ep-dark-line: rgba(255, 255, 255, 0.14);
  --ep-dark-line-strong: rgba(255, 255, 255, 0.24);

  --ep-dark-text: rgba(255, 255, 255, 0.96);
  --ep-dark-text-soft: rgba(255, 255, 255, 0.78);
  --ep-dark-text-muted: rgba(255, 255, 255, 0.58);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-ui: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1280px;
  --container-reading: 860px;
  --header-height: 84px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 84px;
  --space-10: 104px;

  --transition-fast: 0.18s ease;
  --transition-base: 0.24s ease;
}

/* ---------- RESET ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: 60vh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

::selection {
  background: rgba(95, 87, 79, 0.14);
}

/* ---------- CONTAINERS ---------- */

.container {
  width: min(calc(100% - 56px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.container-reading {
  width: min(calc(100% - 56px), var(--container-reading));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- TYPO ---------- */

body,
p,
li,
input,
textarea,
select {
  font-family: var(--font-body);
}

button,
.site-header__cta,
.mobile-top-link,
.mobile-secondary-link,
.cookie-btn {
  font-family: var(--font-ui);
}

h1,
h2,
h3,
h4 {
  color: var(--ep-ink);
}

.hero-title,
.section-head h2,
.card h3,
.footer-signature,
.mobile-menu-title,
.statut-block__header h2,
.conversation-shell__title,
.doctrine-panel h3,
.pull-quote h3,
.four-step h3,
.lecture-step h3,
.conversation-angle-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-kicker,
.section-kicker,
.card-label,
.footer-title,
.small-caps,
.desktop-editorial-nav__link,
.four-step__index,
.conversation-shell__meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-header__cta {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.11;
  text-wrap: balance;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.18vw, 1.05rem);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ep-ink-soft);
  margin-bottom: 14px;
}

.hero-meta,
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--ep-ink-muted);
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.75vw, 2.35rem);
  line-height: 1.17;
  text-wrap: balance;
  margin-bottom: 14px;
}

.section-kicker,
.hero-kicker,
.footer-title,
.card-label,
.small-caps,
.four-step__index,
.conversation-shell__meta {
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ep-accent);
}

.section-intro {
  max-width: 860px;
  font-size: clamp(1rem, 1.02vw, 1.05rem);
  line-height: 1.72;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ep-ink-soft);
}

.section-footnote {
  max-width: 920px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ep-ink-muted);
}

.micro-footnote,
.hero-footnote,
.legal-footnote {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ep-ink-muted);
}

.page-centered-copy {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.page-centered-copy p {
  color: var(--ep-ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  letter-spacing: 0;
}

/* ---------- LINKS ---------- */

.link,
.editorial-link,
.hero-link,
.footer-col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.link::after,
.editorial-link::after,
.hero-link::after,
.footer-col a::after,
.site-header__cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: rgba(95, 87, 79, 0.52);
  transition: background var(--transition-fast), height var(--transition-fast);
}

.link:hover::after,
.editorial-link:hover::after,
.hero-link:hover::after,
.footer-col a:hover::after,
.site-header__cta:hover::after {
  background: var(--ep-accent);
}

.link--primary {
  font-weight: 600;
}

.link--primary::after {
  height: 2px;
  background: var(--ep-accent);
}

.link--secondary {
  opacity: 0.72;
}

.link--micro {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- BUTTON ROWS ---------- */

.programme-link-row,
.hero-actions,
.inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}

.programme-link-row {
  justify-content: center;
  margin-top: 24px;
}

/* ---------- GENERIC SECTIONS ---------- */

.hero,
.home-section,
.inner-section {
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.hero {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.light,
.soft,
.inner-section {
  background: var(--ep-paper);
}

.section-head {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 34px;
}

.section-head--centered,
.section-head--narrow {
  text-align: center;
}

.section-head--centered .section-intro,
.section-head--centered .section-footnote {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 42px;
  height: 2px;
  margin-top: 18px;
  background: rgba(95, 87, 79, 0.78);
}

.section-head--centered .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- GENERIC CARDS ---------- */

.card {
  position: relative;
  background: rgba(251, 248, 242, 0.7);
  border: 1px solid var(--ep-line);
  padding: 28px 24px 22px;
}

.card::before {
  display: none;
}

.card h3 {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.card p {
  color: var(--ep-ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* ---------- DARK SECTIONS ---------- */

.home-section--dark,
.inner-section--dark {
  background: var(--ep-charcoal);
  color: var(--ep-dark-text);
}

.home-section--dark::before,
.inner-section--dark::before {
  background: var(--ep-dark-line);
}

.home-section--dark h2,
.home-section--dark h3,
.home-section--dark .section-head h2,
.home-section--dark .conversation-shell__title,
.home-section--dark .doctrine-panel h3,
.home-section--dark .card h3,
.inner-section--dark h2,
.inner-section--dark h3 {
  color: var(--ep-dark-text);
}

.home-section--dark .section-intro,
.home-section--dark .card p,
.home-section--dark .conversation-shell__intro,
.home-section--dark .conversation-angle-card__function,
.home-section--dark .doctrine-panel p,
.home-section--dark .lecture-step p,
.inner-section--dark .section-intro {
  color: var(--ep-dark-text-soft);
}

.home-section--dark .section-kicker,
.home-section--dark .conversation-shell__meta,
.home-section--dark .four-step__index,
.inner-section--dark .section-kicker {
  color: #d8d0c4;
}

.home-section--dark .section-footnote,
.home-section--dark .conversation-angle-card__roles,
.home-section--dark .lecture-note,
.home-section--dark .access-note,
.home-section--dark .selection-subnote,
.home-section--dark .cadre-note,
.inner-section--dark .section-footnote {
  color: var(--ep-dark-text-muted);
}

.home-section--dark .divider,
.inner-section--dark .divider {
  background: rgba(240, 200, 187, 0.85);
}

.home-section--dark .link,
.home-section--dark .editorial-link,
.home-section--dark .hero-link,
.inner-section--dark .link {
  color: var(--ep-dark-text);
}

.home-section--dark .link::after,
.home-section--dark .editorial-link::after,
.home-section--dark .hero-link::after,
.inner-section--dark .link::after {
  background: rgba(255, 255, 255, 0.36);
}

.home-section--dark .link:hover::after,
.home-section--dark .editorial-link:hover::after,
.home-section--dark .hero-link:hover::after,
.inner-section--dark .link:hover::after {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- DARK / MID PANELS ---------- */

.card--dark,
.panel--dark,
.box--dark {
  background: var(--ep-charcoal);
  border: 1px solid var(--ep-dark-line);
  color: var(--ep-dark-text);
}

.card--dark h3,
.panel--dark h3,
.box--dark h3 {
  color: var(--ep-dark-text);
}

.card--dark p,
.panel--dark p,
.box--dark p {
  color: var(--ep-dark-text-soft);
}

.card--dark .link,
.panel--dark .link,
.box--dark .link {
  color: var(--ep-dark-text);
}

.card--dark .link::after,
.panel--dark .link::after,
.box--dark .link::after {
  background: rgba(255, 255, 255, 0.34);
}

.card--dark .link:hover::after,
.panel--dark .link:hover::after,
.box--dark .link:hover::after {
  background: rgba(255, 255, 255, 0.88);
}

.card--mid,
.panel--mid,
.box--mid {
  background: #4b4f56;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.card--mid h3,
.panel--mid h3,
.box--mid h3 {
  color: #ffffff;
}

.card--mid p,
.panel--mid p,
.box--mid p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.98);
}

.site-header__inner {
  width: min(calc(100% - 44px), var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 26px;
}

.site-header__left,
.site-header__right {
  display: flex;
  align-items: center;
}

.site-header__right {
  justify-content: flex-end;
  gap: 18px;
}

.site-brand {
  min-height: 62px;
  max-width: none;
}

.site-brand--text {
  display: inline-flex;
  align-items: center;
}

.site-brand__wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fffaf6;
  white-space: nowrap;
}

.site-brand__logo {
  display: none;
}

.desktop-editorial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.desktop-editorial-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 250, 246, 0.78);
}

.desktop-editorial-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: transparent;
  transition: background var(--transition-fast);
}

.desktop-editorial-nav__link:hover,
.desktop-editorial-nav__link.is-active {
  color: #fffdf9;
}

.desktop-editorial-nav__link:hover::after,
.desktop-editorial-nav__link.is-active::after {
  background: rgba(255, 250, 246, 0.82);
}

.site-header__cta {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fffdf9;
}

.site-header__cta::after {
  background: rgba(255, 250, 246, 0.42);
}

.site-header__cta:hover::after {
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fffaf6;
  transition: all var(--transition-base);
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- MOBILE MENU ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  overflow-y: auto;
  background: #111111;
  color: var(--ep-dark-text);
  padding: 20px 22px 32px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-head,
.mobile-menu-primary,
.mobile-menu-actions,
.mobile-secondary {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fffaf6;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fffaf6;
  cursor: pointer;
}

.mobile-menu-primary,
.mobile-secondary {
  display: grid;
  gap: 6px;
}

.mobile-menu-actions,
.mobile-secondary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-top-link,
.mobile-secondary-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.mobile-top-link--cta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fffdf9;
}

/* ---------- FOOTER ---------- */

.footer {
  background: #111111;
  color: #fffaf6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 0;
}

.footer-grid {
  width: min(calc(100% - 44px), var(--container));
  margin: 0 auto;
  display: grid;
  gap: 30px;
  align-items: start;
}

.footer-grid--simple {
  grid-template-columns: 1.35fr 0.95fr 0.9fr 0.9fr;
}

.footer-title {
  margin-bottom: 12px;
  color: rgba(255, 250, 246, 0.72);
}

.footer-signature {
  font-size: 0.98rem;
  line-height: 1.38;
  color: #fffdf9;
  margin-bottom: 10px;
}

.footer p,
.footer li {
  font-size: 13px;
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.68);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: #fffaf6;
}

.footer-col a::after {
  background: rgba(255, 250, 246, 0.38);
}

.footer-col a:hover::after {
  background: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  width: min(calc(100% - 44px), var(--container));
  margin: 30px auto 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html:not(.reveal-ready) .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- ACCESSIBILITY ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 250, 246, 0.48);
  outline-offset: 2px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1180px) {
  .footer-grid--simple {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .desktop-editorial-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    width: min(calc(100% - 28px), var(--container));
    min-height: 78px;
  }

  .site-brand__wordmark {
    font-size: 1.66rem;
  }

  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--container));
  }
}

@media (max-width: 780px) {
  .container,
  .container-reading {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero,
  .home-section,
  .inner-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero-title {
    font-size: clamp(2rem, 8.4vw, 3.1rem);
    line-height: 1.11;
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 6.4vw, 2.35rem);
  }

  .programme-link-row,
  .hero-actions,
  .inline-nav {
    justify-content: flex-start;
  }

  .section-head,
  .section-head--centered,
  .section-head--narrow,
  .section-head h2,
  .section-intro,
  .section-footnote,
  .page-centered-copy {
    text-align: left;
  }

  .footer-grid--simple {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   COOKIES
   Pop-up de consentement + lien footer
========================================================= */

[hidden] {
  display: none !important;
}

.cookie-overlay[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

html.cookies-open,
body.cookies-open {
  overflow: hidden;
}

/* lien-bouton dans footer / pages */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-col .link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fffaf6;
}

.footer-col .link-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: rgba(255, 250, 246, 0.38);
  transition: background var(--transition-fast);
}

.footer-col .link-button:hover::after {
  background: rgba(255, 255, 255, 0.85);
}

/* overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.56);
  backdrop-filter: blur(2px);
  z-index: 1400;
}

/* modal wrapper */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1401;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.cookie-modal__inner {
  width: min(100%, 680px);
  background: var(--ep-paper);
  border: 1px solid var(--ep-line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 28px 28px 24px;
  pointer-events: auto;
}

.cookie-modal__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-accent);
  margin-bottom: 12px;
}

.cookie-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.17;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ep-ink);
  margin-bottom: 14px;
}

.cookie-modal__text {
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ep-ink-soft);
  margin-bottom: 12px;
}

.cookie-modal__text--small {
  font-size: 0.86rem;
  color: var(--ep-ink-muted);
}

.cookie-modal__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ep-ink);
}

.cookie-modal__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: rgba(95, 87, 79, 0.52);
  transition: background var(--transition-fast);
}

.cookie-modal__link:hover::after {
  background: var(--ep-accent);
}

/* panel */
.cookie-modal__panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ep-line);
  display: grid;
  gap: 16px;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-ink);
  margin-bottom: 4px;
}

.cookie-toggle__help {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ep-ink-soft);
}

/* switch */
.switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__slider {
  position: absolute;
  inset: 0;
  background: rgba(47, 40, 34, 0.18);
  border: 1px solid rgba(47, 40, 34, 0.14);
  transition: var(--transition-base);
}

.switch__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  transition: var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.switch input:checked + .switch__slider {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(22px);
}

.switch--disabled {
  opacity: 0.72;
}

.switch--disabled input {
  cursor: default;
}

/* actions */
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ep-line-strong);
  background: transparent;
  color: var(--ep-ink);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.46);
}

.cookie-btn--primary {
  background: #111111;
  border-color: #111111;
  color: #fffdf9;
}

.cookie-btn:hover {
  border-color: var(--ep-accent);
}

.cookie-btn--primary:hover {
  background: #000000;
  border-color: #000000;
}

/* responsive */
@media (max-width: 780px) {
  .cookie-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .cookie-modal__inner {
    width: 100%;
    padding: 22px 20px 18px;
  }

  .cookie-toggle {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
  }
/* COOKIES — design En Plateau */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(4px);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cookie-modal[hidden],
.cookie-overlay[hidden] {
  display: none !important;
}

.cookie-modal__inner {
  width: min(100%, 520px);
  padding: 30px 32px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(17, 17, 17, .96);
  color: #f0ece6;
  box-shadow: none;
}

.cookie-modal__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ep-accent-soft, #d8d0c4);
}

.cookie-modal__kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.cookie-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f0ece6;
}

.cookie-modal__text {
  margin: 0;
  max-width: 440px;
  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(240, 236, 230, .78);
}

.cookie-modal__panel {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--ep-accent, #5f574f);
  background: rgba(255, 255, 255, .04);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-toggle__label {
  margin-bottom: 4px;
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.05rem;
  line-height: 1.3;
  color: #f0ece6;
}

.cookie-toggle__help {
  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: .86rem;
  line-height: 1.55;
  color: rgba(240, 236, 230, .66);
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 26px;
}

.cookie-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-btn--primary {
  border: 1px solid var(--ep-accent, #5f574f);
  background: var(--ep-accent, #5f574f);
  color: #ffffff;
}

.cookie-btn--secondary {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #f0ece6;
}

.cookie-btn--ghost {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(240, 236, 230, .72);
}

.cookie-btn:hover {
  opacity: .9;
}

/* Switch cookies */

.switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: .18s ease;
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #f0ece6;
  transition: .18s ease;
}

.switch input:checked + .switch__slider {
  background: var(--ep-accent, #5f574f);
  border-color: var(--ep-accent, #5f574f);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(22px);
}

@media (max-width: 640px) {
  .cookie-modal {
    align-items: end;
    padding: 14px;
  }

  .cookie-modal__inner {
    width: 100%;
    padding: 24px 20px;
  }

  .cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
  }
}
