/* === PASCAL ANTONIO — shared styles === */

:root {
  --pink: #EE3A7A;
  --yellow: #F4E029;
  --ink: #0E0E0E;
  --paper: #FBF8F3;
  --paper-pure: #ffffff;
  --intensity: 1;
  --font-display: "Archivo Black", "Anton", Impact, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter Tight", "Inter", system-ui, sans-serif;
  --maxw: 1480px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

::selection { background: var(--yellow); color: var(--ink); }

/* ===== Color regimes per page ===== */
body.theme-pink { background: var(--pink); color: var(--ink); }
body.theme-paper { background: var(--paper); color: var(--ink); }
body.theme-ink { background: var(--ink); color: var(--paper); }
body.theme-yellow { background: var(--yellow); color: var(--ink); }

/* ===== Page transition curtain ===== */
.curtain {
  position: fixed; inset: 0;
  z-index: 9000;
  pointer-events: none;
  transform: translateY(-100%);
}
.curtain.in {
  transform: translateY(0);
  transition: transform .55s cubic-bezier(.77,0,.18,1);
}
.curtain.out {
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.77,0,.18,1);
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: inherit;
  border-bottom: 1.5px solid currentColor;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.site-header .brand {
  font-size: 18px;
  display: flex; align-items: center; gap: 10px;
}
.site-header .brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink);
  display: inline-block;
}
body.theme-pink .site-header .brand .dot { background: var(--ink); }
.site-nav {
  display: flex; gap: 28px;
  font-size: 14px;
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color .15s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.7,0,.2,1);
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a:hover {
  color: var(--yellow);
}

/* ===== Burger + mobile nav ===== */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  cursor: pointer;
  z-index: 110;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .25s cubic-bezier(.7,0,.2,1), opacity .15s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  z-index: 105;
  background: var(--ink);
  color: var(--paper);
  padding: 88px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--paper);
}
.mobile-nav li { border-bottom: 1.5px solid var(--paper); }
.mobile-nav a {
  display: block;
  padding: 20px 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--paper);
  transition: background .15s, color .15s, padding .2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--pink);
  color: var(--ink);
  padding-left: 16px;
}
body.theme-pink .site-nav a:hover { color: var(--ink); background: var(--yellow); padding: 4px 8px; margin: -4px -8px;}
body.theme-paper .site-nav a:hover { color: var(--pink); }
body.theme-yellow .site-nav a { color: var(--ink); }
body.theme-yellow .site-nav a:hover { color: var(--pink); background: transparent; padding: 4px 0; margin: 0;}
body.theme-yellow .site-header .brand:hover { color: var(--pink); }
body.theme-yellow .toc a:hover { background: var(--pink); color: var(--ink); }
body.theme-yellow .site-footer ul a:hover { background: var(--pink); color: var(--ink); }
body.theme-yellow ::selection { background: var(--pink); color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1.5px solid currentColor;
  padding: 60px 32px 32px;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.site-footer .ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer h3 { font-size: 13px; opacity: .6; margin-bottom: 16px; letter-spacing: .04em;}
.site-footer .ft-big {
  font-size: clamp(34px, 4vw, 64px);
  line-height: .95;
  letter-spacing: -.03em;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: 15px;}
.site-footer ul a:hover { background: var(--yellow); color: var(--ink); padding: 0 4px;}
.site-footer .meta {
  margin-top: 60px; padding-top: 16px;
  border-top: 1px solid currentColor;
  display: flex; justify-content: space-between; font-size: 12px;
  font-family: var(--font-body); text-transform: none;
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 110px);
  letter-spacing: -.03em;
  padding: 8px 0;
  line-height: 1;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  gap: 40px;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 40px;}
.marquee .star {
  display: inline-block;
  color: var(--yellow);
}
body.theme-pink .marquee .star { color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Common page chrome ===== */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor;
}

.h-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(64px, calc(11vw * var(--intensity)), 220px);
  line-height: .85;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h-display span[style*="background"],
.h-section span[style*="background"] {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
}
.h-section {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.body-l {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 60ch;
}
.body-m {
  font-size: 16px;
  line-height: 1.55;
  max-width: 65ch;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 16px; letter-spacing: .02em;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.btn:hover {
  background: var(--yellow); color: var(--ink);
}
.btn.btn-pink { background: var(--pink); color: var(--ink); border-color: var(--ink);}
.btn.btn-pink:hover { background: var(--yellow); }
.btn.btn-out { background: transparent; color: currentColor; border-color: currentColor;}
.btn.btn-out:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink);}
.btn .arrow { transition: transform .25s;}
.btn:hover .arrow { transform: translateX(4px);}

/* Tags / chips */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid currentColor;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 999px;
}

/* Image placeholder */
.img-ph {
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 8px, transparent 8px 16px), var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  aspect-ratio: 4/5;
}

/* Big numbered list (table of contents style) */
.toc {
  border-top: 1.5px solid currentColor;
}
.toc a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1.5px solid currentColor;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: padding .2s, background .2s;
}
.toc a:hover {
  background: var(--yellow);
  padding-left: 16px; padding-right: 16px;
}
.toc .num { font-size: 18px; opacity: .55; }
.toc .label { font-size: clamp(28px, 3.4vw, 56px); }
.toc .arr { font-size: 22px; }

/* Quote block */
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.1;
  text-wrap: balance;
}

/* Utility */
.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px;}
.col3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;}
/* Aligne le texte de droite avec le titre (h-section) plutôt qu'avec l'eyebrow :
   on décale la 2e colonne de la hauteur de l'eyebrow (ligne + marge). */
@media (min-width: 901px) {
  .col2 > :nth-child(2) { margin-top: calc(13px * 1.2 + 24px); }
}
@media (max-width: 900px) {
  .col2, .col3 { grid-template-columns: 1fr; gap: 32px;}
  .site-footer .ft-grid { grid-template-columns: 1fr; }
  .site-header { padding: 14px 18px;}
  .page { padding: 40px 18px; }
  /* Page ateliers : grilles en styles inline qui ne se replient pas seules */
  .atelier-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .atelier-body { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* Le menu passe en burger dès 1024px : 7 entrées de nav sont trop serrées en dessous */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .burger { display: flex; }
}

/* Le mot animé du hero (accueil) peut se couper en très petit écran : on autorise le retour à la ligne */
@media (max-width: 600px) {
  .h-display span[style*="nowrap"] { white-space: normal !important; }
}

.divider { height: 1.5px; background: currentColor; margin: 80px 0;}

/* YouTube embed */
.yt-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1.5px solid var(--ink); }
.yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mobile responsive tightenings */
@media (max-width: 700px) {
  .h-display { font-size: clamp(34px, 11vw, 90px) !important; overflow-wrap: anywhere; }
  .h-section { font-size: clamp(32px, 9vw, 60px) !important; }
  .h-serif { font-size: clamp(20px, 5vw, 32px) !important; }
  .body-l { font-size: 16px; }
  .page { padding: 32px 16px; }
  .site-footer .ft-big { font-size: clamp(30px, 10vw, 52px); }
  .site-footer { padding: 40px 18px 24px; }
  .marquee { font-size: clamp(28px, 9vw, 60px); }
  .toc a { grid-template-columns: 40px 1fr 24px; gap: 12px; padding: 16px 0; }
  .toc .label { font-size: clamp(22px, 6vw, 32px); }
  .quote { font-size: clamp(22px, 5.5vw, 38px); }
  /* Titres avec nowrap inline (ex. « Une mallette pédagogique ») : autorise le retour à la ligne pour éviter le débordement */
  .h-section span[style*="nowrap"] { white-space: normal !important; }
  /* Pied de page : empile les mentions les unes sous les autres, quasi pleine largeur */
  .site-footer .meta { flex-direction: column; gap: 10px; font-size: 13px; }
  /* Page ateliers : resserre les marges et les cellules d'infos en mobile */
  .atelier-sec { padding: 56px 18px !important; }
  .atelier-stats > div { padding: 14px 10px !important; }
}
@media (max-width: 900px) {
  /* Convert all 2-col / multi-col grids to 1-col */
  section [style*="grid-template-columns"][style*="1.4fr"],
  section [style*="grid-template-columns"][style*="1.2fr"],
  section [style*="grid-template-columns"][style*="1.6fr"],
  section [style*="grid-template-columns"][style*="2fr"],
  section [style*="grid-template-columns: 1fr 1fr"],
  section [style*="repeat(2,"],
  section [style*="repeat(2 ,"],
  section [style*="repeat(3,"],
  section [style*="repeat(3 ,"],
  section [style*="repeat(4,"],
  section [style*="repeat(4 ,"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Release fixed photo-grid heights when stacking */
  section [style*="height: min(70vh"],
  section [style*="height:min(70vh"] {
    height: auto !important;
  }
  /* Tighten inline section paddings on tablet/mobile */
  section[style*="padding"][style*="32px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  /* Inline grid items with right-borders look weird stacked: drop them */
  section [style*="grid-template-columns"] > [style*="border-right"] {
    border-right: none !important;
  }
  /* But keep 2-col image strips intact at 2 cols */
  section [data-keep-grid] { grid-template-columns: revert !important; }
}

@media (max-width: 700px) {
  /* Tighten further on mobile — covers both <section> wrappers and
     inner wrappers that carry the 32px horizontal gutter. */
  section[style*="padding"][style*="32px"],
  section > [style*="padding"][style*="32px"],
  section [style*="padding: 60px 32px"],
  section [style*="padding:60px 32px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  section[style*="100px 32px"],
  section[style*="120px 32px"],
  section[style*="80px 32px 100px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  section[style*="80px 32px 60px"],
  section[style*="80px 32px"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  /* Sticky aside on contact/témoignages becomes static at mobile width */
  section [style*="position: sticky"],
  section [style*="position:sticky"] {
    position: static !important;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
