/* ============ Tokens ============ */
:root{
  --cream: #fdfef5;
  --cream-dim: #f7f8ea;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --pink: #c72c66;
  --pink-deep: #a11f52;
  --pink-light: #f6c9da;
  --lime: #e7edc0;
  --lime-deep: #d3dd9b;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

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

ul{ margin: 0 0 1em; padding-left: 1.2em; }
ul li{ margin-bottom: .5em; color: var(--ink-soft); }
ul li::marker{ color: var(--pink); }

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

/* subtle film-grain overlay for a premium, tactile feel */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Layout helpers ============ */
.section{ padding: clamp(64px, 10vw, 120px) 24px; }
.section-inner{ max-width: var(--max-w); margin: 0 auto; }
.center{ text-align: center; }
.kicker{
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .9em;
}
.kicker.center{ display:block; }
.section-sub{
  max-width: 620px;
  font-size: 1.05rem;
}
.section-sub.center{ margin-left: auto; margin-right: auto; }

/* ============ Header ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 254, 245, .8);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(26,26,46,.06);
}
.header-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo{
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.logo span{ color: var(--pink); font-style: italic; }
.nav{ display: flex; gap: 28px; }
.nav a{
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--pink);
  transition: right .3s var(--ease);
}
.nav a:hover{ color: var(--ink); }
.nav a:hover::after{ right: 0; }

/* ============ Buttons ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary{
  background: var(--pink);
  color: var(--cream);
  box-shadow: 0 6px 20px -6px rgba(199,44,102,.55);
}
.btn-primary:hover{
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(199,44,102,.6);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: rgba(26,26,46,.16);
}
.btn-ghost:hover{
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-outline{
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}
.btn-outline:hover{
  background: var(--pink);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn-small{ padding: 9px 18px; font-size: .85rem; }
.btn-large{ padding: 16px 34px; font-size: 1.05rem; }

/* ============ Hero ============ */
.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-blob{
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(38% 45% at 22% 28%, rgba(231,237,192,.85), transparent 70%),
    radial-gradient(42% 50% at 82% 20%, rgba(246,201,218,.75), transparent 70%),
    radial-gradient(50% 55% at 50% 90%, rgba(199,44,102,.10), transparent 70%);
  filter: blur(40px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-2%, 2%) scale(1.05); }
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--ink);
}
.hero h1 em{
  font-style: italic;
  color: var(--pink);
}
.hero-sub{
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.scroll-cue{
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(26,26,46,.3);
  border-radius: 100px;
  z-index: 1;
}
.scroll-cue span{
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--pink);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ opacity: 0; }
  100%{ transform: translateY(14px); opacity: 0; }
}

/* ============ Qui suis-je ============ */
.chi-sono{ background: var(--cream); }
.two-col{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.portrait{ position: sticky; top: 110px; }
.portrait-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-svg{ position: absolute; inset: 0; width: 100%; height: 100%; }
.p-ring{ fill: none; stroke: var(--lime-deep); stroke-width: 1.5; }
.p-shape{ fill: var(--pink-light); opacity: .9; }
.p-line{ fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; }
.portrait-initial{
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.5rem;
  color: var(--ink);
}

.chi-sono-text h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pullquote{
  margin: 2em 0;
  padding: 28px 32px;
  background: var(--lime);
  border-radius: var(--radius);
  position: relative;
}
.pullquote p{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}
.signature{
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ============ Corsi ============ */
.corsi{ background: var(--cream-dim); }

/* Chaque famille de cours : un titre de sous-section, puis sa fiche */
.course-group{ margin-bottom: 56px; }
.course-group:last-of-type{ margin-bottom: 0; }
.course-group-head{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px 4px;
  text-align: left;
}
.course-group-head h3{
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  margin-bottom: .15em;
}
.course-group-sub{
  margin: 0;
  font-size: .95rem;
}

/* Ce qui est commun aux deux formules, dit une seule fois */
.included{
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 26px 24px;
  background: var(--lime);
  border-radius: var(--radius);
  text-align: center;
}
.included h3{
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1em;
}
.included ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.included li{
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-size: .92rem;
  color: var(--ink);
}
.included li::before{
  content: "✓";
  color: var(--pink);
  font-weight: 700;
}

.pricing-footnote{
  margin: 32px 0 0;
  font-size: .82rem;
  color: rgba(26,26,46,.45);
}

.course-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(26,26,46,.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 10px 30px -16px rgba(26,26,46,.15);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.course-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(26,26,46,.22);
  border-color: rgba(199,44,102,.25);
}
.badge{
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--pink);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.course-icon{ font-size: 2rem; }
.course-head h3{ margin-top: .3em; font-size: 1.4rem; }
.course-tagline{ font-size: .92rem; margin-bottom: 0; }
/* Fiche technique : ce qui se compare d'une carte à l'autre */
.course-specs{
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(26,26,46,.09);
}
.spec-row{
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 3px 0;
}
.spec-label{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,26,46,.42);
}
.spec-value{
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.spec-note{
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.spec-note a{ color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }

.course-block{ margin-top: 22px; }
.course-block h4{
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .7em;
}
.course-block ul{ font-size: .92rem; }
.course-note{
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
}
.course-note-link{ font-size: .85rem; margin-top: -.3em; }
.course-note-link a{ color: var(--pink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.pricing{
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed rgba(26,26,46,.14);
}
.pricing-group{ margin-bottom: 14px; }
.pricing-group:last-child{ margin-bottom: 0; }
.pricing-group-title{
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4em;
}
.price-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .92rem;
  padding: 4px 0;
  color: var(--ink-soft);
}
.price-tag s{ color: rgba(26,26,46,.4); margin-right: .4em; font-weight: 400; }
.price-tag{ font-weight: 700; color: var(--pink-deep); }

.course-cta{ margin-top: 28px; width: 100%; }

/* Fiche large : le récit à gauche, les faits et le prix à droite */
.course-card.wide{
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
}
.course-wide-main > .course-block:first-child,
.course-wide-main > *:first-child{ margin-top: 0; }
.course-lead{
  font-size: 1.02rem;
  margin-bottom: 0;
}
.course-wide-side{
  position: relative;
  padding: 26px 24px;
  background: var(--cream-dim);
  border: 1px solid rgba(26,26,46,.07);
  border-radius: calc(var(--radius) - 4px);
}
.course-wide-side .course-specs{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.course-wide-side .pricing{ margin-top: 0; }
.pricing-detail{
  margin: 10px 0 0;
  font-size: .82rem;
  color: rgba(26,26,46,.5);
}

/* ============ Contatti ============ */
.contatti{ background: var(--ink); }
.contatti .kicker{ color: var(--lime); }
.contatti h2{ color: var(--cream); }
.contatti .section-sub{ color: rgba(253,254,245,.7); margin-left: auto; margin-right: auto; }
.contact-actions{
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contatti .btn-primary{
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 6px 24px -6px rgba(231,237,192,.35);
}
.contatti .btn-primary:hover{
  background: var(--lime-deep);
  color: var(--ink);
}
.contatti .btn-ghost{
  color: var(--cream);
  border-color: rgba(253,254,245,.3);
}
.contatti .btn-ghost:hover{
  border-color: var(--lime);
  color: var(--lime);
}
.icon-instagram{
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.contact-note{ color: rgba(253,254,245,.5); font-size: .9rem; }

/* ============ Footer ============ */
.site-footer{
  padding: 28px 24px;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid rgba(253,254,245,.08);
}
.site-footer p{
  margin: 0;
  color: rgba(253,254,245,.45);
  font-size: .82rem;
}

/* ============ Reveal-on-scroll ============ */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-blob{ animation: none; }
  .scroll-cue span{ animation: none; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; gap: 40px; }
  .portrait{ position: static; width: 160px; margin: 0 auto; }
  .course-card.wide{ grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px){
  .nav{ display: none; }
  .header-inner{ padding: 14px 18px; }
  .section{ padding: 56px 18px; }
  .hero{ min-height: 92vh; padding-top: 100px; }
  .hero-actions{ flex-direction: column; width: 100%; }
  .hero-actions .btn{ width: 100%; }
  .course-card{ padding: 28px 22px; }
  .course-card.wide{ padding: 26px 20px; }
  .course-wide-side{ padding: 22px 18px; }
  .course-group{ margin-bottom: 44px; }
  .course-group-head{ gap: 12px; }
  .included{ padding: 22px 20px; }
  .included ul{ flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; }
  .spec-row{ grid-template-columns: 5.2em 1fr; gap: 10px; }
}
