/* ==========================================================
   Vos rêves vous accompagnent — feuille de style
   Couleurs et polices modifiables dans :root
   ========================================================== */

:root {
  --white: #ffffff;
  --grey: #dcdcde;          /* fond de « Mon univers » */
  --night: #2a282c;         /* bandeau du bas */
  --ink: #232126;
  --ink-soft: #5c5760;
  --line: #e6e1de;
  --accent: #c2266e;        /* magenta des boutons */
  --accent-dark: #9e1d59;
  --radius: 4px;
  --max: 1140px;
  --gutter: clamp(16px, 6vw, 96px);

  --display: "Great Vibes", cursive;   /* titres */
  --hand: "Caveat", cursive;           /* petites annotations */
  --body: "Roboto", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 300 17px/1.7 var(--body);
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Typographie ---------- */
.kicker {
  margin: 0 0 .6rem;
  font: 600 1.45rem/1.2 var(--hand);
  color: var(--accent);
}
.title {
  margin: 0 0 .8rem;
  font: 400 clamp(2.8rem, 5.4vw, 4rem)/1.2 var(--display);
}
.title-accent { color: var(--accent); }
.prose p { margin: 0 0 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 1.8rem;
  font: 500 1rem/1 var(--body);
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--night); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; text-decoration: none; }
.brand-logo { flex: none; width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font: 500 1.1rem var(--body); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { position: relative; font-size: .95rem; text-decoration: none; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 2px; background: var(--accent); transition: right .25s;
}
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: .55rem 1rem; color: #fff; background: var(--accent); border-radius: var(--radius); }
.nav-cta:hover { background: var(--accent-dark); }
.menu-btn { display: none; }

/* ---------- Accueil ---------- */
.hero {
  min-height: calc(78svh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem var(--gutter);
  text-align: center;
}
.hero-title {
  max-width: 18ch;
  margin: 0 0 2.2rem;
  font: 400 clamp(3.4rem, 8vw, 6.4rem)/1.08 var(--display);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); }
.section-grey { background: var(--grey); }

/* ---------- Démarche ---------- */
.intro { max-width: 62ch; margin: 0 auto 3.5rem; text-align: center; }
.etapes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
  max-width: var(--max); margin: 0 auto; padding: 0; list-style: none;
}
.etape { text-align: center; }
.etape-img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.4rem; border-radius: var(--radius); }
.etape h3 { margin: 0 0 .4rem; font: 400 2.4rem/1.2 var(--display); }
.etape h4 { margin: 0 0 .7rem; font: 600 1.45rem/1.2 var(--hand); color: var(--accent); }
.etape p { margin: 0; color: var(--ink-soft); }

/* ---------- Mon univers ---------- */
.univers { overflow: hidden; }
.univers-grid {
  display: grid; grid-template-columns: minmax(220px, 380px) 1fr; align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max); margin: 0 auto;
}
.portrait { position: relative; margin: 0; }
.encre {
  /* éclaboussure d'encre qui s'enroule autour de la photo, côté gauche */
  position: absolute; left: -9%; top: -33%;
  width: 180%; max-width: none;
  transform-origin: 33% 42%;
  transform: rotate(145deg);
  pointer-events: none;
}
.portrait-img {
  position: relative;
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; clip-path: circle(48.5%);
}
.univers .btn { min-width: 220px; margin-top: .6rem; }
.quote {
  position: relative;
  margin: 1.6rem 0 1.8rem;
  padding: 0 0 0 2.2rem;
  font: 400 clamp(1.9rem, 3vw, 2.4rem)/1.25 var(--display);
}
.quote::before {
  content: "\201C";
  position: absolute; left: 0; top: -.35em;
  font: 700 3.4rem/1 Georgia, serif;
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
  color: #fff;
  background: var(--night);
}
.contact p { max-width: 62ch; margin: 0 auto 2rem; color: #dcd8dd; }
.contact .btn { min-width: 240px; }

/* ---------- Pied de page ---------- */
.footer { padding: 2.5rem 16px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.footer p { margin: .2rem 0; }
.footer-logo { width: 80px; margin: 0 auto .6rem; }
.small { font-size: .82rem; }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-btn { display: grid; flex: none; gap: 6px; padding: .6rem; background: none; border: 0; cursor: pointer; }
  .menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 60px 0 auto 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.2rem;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s;
  }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0 !important; }
  .brand-name { font-size: .95rem; }

  .etapes { grid-template-columns: 1fr; max-width: 420px; gap: 3rem; }
  .univers-grid { grid-template-columns: 1fr; text-align: center; }
  .quote { padding: 0; }
  .quote::before { position: static; display: block; margin-bottom: -.3em; }
  .portrait { max-width: 240px; margin: 2.5rem auto 4rem; }
}
