/* GraphoZen — feuille de style */

:root {
  --teal: #0e93a8;
  --teal-dark: #0a7383;
  --teal-soft: #e5f4f6;
  --navy: #2b3467;
  --ink: #33395a;
  --muted: #5d6384;
  --orange: #d4672a;
  --blue: #4f74a6;
  --cream: #fbfaf6;
  --paper-line: #c9dcef;
  --paper-margin: #ef8f8f;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(43, 52, 103, .25);
  --script: "Dancing Script", "Segoe Script", cursive;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 112px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
strong { color: var(--navy); font-weight: 700; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.script { font-family: var(--script); font-weight: 700; }
.title { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: .35em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800;
  color: var(--teal-dark); margin-bottom: .4em;
}
.lead { font-size: 1.2rem; color: var(--navy); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 147, 168, .7); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: #6bbfcc; color: var(--navy); font-size: .9rem; font-weight: 700; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 28px; padding: 6px 0; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--navy); text-decoration: none; }
.topbar__link:hover { text-decoration: underline; }
.topbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.nav { background: var(--teal); box-shadow: 0 4px 18px -10px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: #fff; }
.logo__text { font-family: var(--script); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.logo__text span { margin-left: .12em; }
.logo__pen { width: 56px; height: 36px; margin-top: -6px; }
.logo__ink { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.logo__barrel { fill: var(--navy); }
.logo__band { fill: #f2c94c; }
.logo__nib { fill: #f2c94c; }

.nav__menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: .55em .85em; border-radius: 999px; color: #fff;
  text-decoration: none; font-weight: 700; font-size: .98rem; white-space: nowrap;
}
.nav__menu a:hover { background: rgba(255,255,255,.15); }
.nav__menu .nav__cta { background: #fff; color: var(--teal-dark); }
.nav__menu .nav__cta:hover { background: var(--navy); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -8px; }
.nav__bars::after { top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal); padding: 8px 16px 18px;
    box-shadow: 0 16px 24px -12px rgba(0,0,0,.35);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: .8em 1em; font-size: 1.05rem; }
  .nav__menu .nav__cta { margin-top: 8px; text-align: center; }
  .nav { position: relative; }
}
@media (max-width: 560px) {
  .topbar__inner { justify-content: center; gap: 16px; font-size: .82rem; }
  .topbar__inner { gap: 12px; font-size: .78rem; }
  .topbar svg { width: 15px; height: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(107,191,204,.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(200,245,220,.6), transparent 60%),
    var(--cream);
  padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 100px);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { margin-bottom: .6em; }
.hero__title .script { display: block; font-size: clamp(3.6rem, 9vw, 6.2rem); line-height: 1; color: var(--navy); }
.hero__sub { display: block; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; color: var(--muted); margin-top: .5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__note { margin-top: 1em; font-weight: 700; color: var(--orange); }

.hero__visual { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%;
  border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow);
}
.hero__visual::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 46%; aspect-ratio: 1;
  border-radius: 50%; background: #f7d9b8; z-index: 0;
}
.hero__loops {
  position: absolute; left: -30%; bottom: -6%; width: 140%; z-index: 2; pointer-events: none;
}
.hero__loops path { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; opacity: .55; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(280px, 75%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 4vw, 50px); }
.section__intro { color: var(--muted); }

/* Qui suis-je : page de cahier Seyès */
.about { background: #fff; }
.about__inner { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: center; }
.paper {
  position: relative;
  padding: clamp(28px, 4vw, 50px) clamp(24px, 4vw, 50px) clamp(24px, 4vw, 40px) clamp(48px, 7vw, 90px);
  background-color: #fdfdfb;
  background-image:
    linear-gradient(90deg, transparent calc(clamp(32px, 5vw, 64px) - 1px), var(--paper-margin) calc(clamp(32px, 5vw, 64px) - 1px), var(--paper-margin) calc(clamp(32px, 5vw, 64px) + 1px), transparent calc(clamp(32px, 5vw, 64px) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--paper-line) 31px 32px);
  border-radius: 6px;
  box-shadow: var(--shadow), 0 0 0 1px #ebeef4;
  line-height: 32px;
}
.paper p { margin-bottom: 32px; }
.paper p:last-child { margin-bottom: 0; }
.paper .title { line-height: 1.1; margin-bottom: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li {
  background: var(--teal-soft); border-radius: var(--radius); padding: 18px 22px;
  color: var(--muted); font-weight: 600; line-height: 1.35;
}
.facts__big { display: block; font-family: var(--script); font-weight: 700; font-size: 2rem; color: var(--teal-dark); line-height: 1.1; }
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* La graphothérapie */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media { margin: 0; position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 60% 50%; }
.split__media::after {
  content: ""; position: absolute; inset: auto -16px -16px auto; width: 55%; height: 45%;
  border-radius: var(--radius); background: var(--teal-soft); z-index: -1;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media img { aspect-ratio: 4/3; }
}

/* Quand consulter */
.consult { background: linear-gradient(110deg, #d5f7e3 0%, #b9e2ec 50%, #a9c6fb 100%); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.55rem; font-weight: 700; }
.card--child h3 { color: var(--orange); }
.card--teen h3 { color: var(--blue); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .55em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a7383' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.consult__foot { text-align: center; max-width: 820px; margin: 36px auto 0; font-weight: 600; color: var(--navy); }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }

/* Bilan */
.bilan { background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: var(--cream); border-radius: var(--radius);
  padding: 58px 24px 24px; border-top: 5px solid var(--teal); font-size: .98rem;
}
.step:nth-child(2) { border-color: var(--blue); }
.step:nth-child(3) { border-color: var(--orange); }
.step:nth-child(4) { border-color: var(--navy); }
.step__num {
  position: absolute; top: -26px; left: 24px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: var(--shadow);
  font-family: var(--script); font-size: 2rem; font-weight: 700; color: var(--navy);
}
.step h3 { font-size: 1.15rem; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* Atelier */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery li { overflow: hidden; border-radius: 14px; }
.gallery__wide { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__wide { grid-column: span 2; grid-row: auto; }
}

/* Avant / après */
.temoignages { background: var(--teal-soft); }
.beforeafter { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 18px; }
.beforeafter li { break-inside: avoid; margin-bottom: 18px; }
.beforeafter a { display: block; border-radius: 14px; overflow: hidden; background: #fff; padding: 8px; box-shadow: var(--shadow); transition: transform .2s ease; }
.beforeafter a:hover { transform: translateY(-3px); }
.beforeafter img { border-radius: 8px; width: 100%; }

/* Vidéos */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.video h3 { margin-top: 14px; font-size: 1.15rem; }
.video p { color: var(--muted); margin: 0; }
.video__play, .video iframe {
  display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video__play { position: relative; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease, transform .4s ease; }
.video__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; translate: -50% -50%;
  border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") 55% 50%/46% no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s ease;
}
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__play:hover::after { transform: scale(1.08); }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.tarifs { background: var(--teal-soft); border-radius: var(--radius); padding: 28px 30px; }
.tarifs h3 { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.tarifs dl { margin: 0; }
.tarifs dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed #a9d6dd; }
.tarifs dl > div:first-child { border-top: 0; }
.tarifs dt { font-weight: 800; color: var(--teal-dark); }
.tarifs dd { margin: 0; color: var(--navy); font-weight: 600; }
.tarifs small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.adresse { font-style: normal; margin-top: 28px; padding-left: 4px; line-height: 1.6; }
.adresse__brand { display: block; font-size: 2rem; color: var(--navy); }
.adresse__links { display: flex; flex-direction: column; margin-top: 10px; font-weight: 700; word-break: break-word; }

.form { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.4rem; }
.form label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 16px; }
.form label span { color: var(--teal); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .75em .9em; font: inherit; font-weight: 400;
  color: var(--ink); background: #fff; border: 1.5px solid #d9dde8; border-radius: 10px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,147,168,.18); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__error { color: #b3261e; font-weight: 700; }
.form__hint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* Remboursement */
.rembourse__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.rembourse .title { font-size: clamp(2rem, 4vw, 2.8rem); }
.mutuelles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mutuelles li {
  background: #fff; border: 1.5px solid #d6e9ec; border-radius: 999px; padding: .4em 1em;
  font-weight: 700; color: var(--navy); font-size: .95rem;
}
@media (max-width: 860px) { .rembourse__inner { grid-template-columns: 1fr; } }

/* Pied de page */
.footer { background: var(--navy); color: #cfd3ea; padding: 44px 0 36px; text-align: center; }
.footer__brand { display: block; font-size: 2.4rem; color: #fff; margin-bottom: 6px; }
.footer p { margin: 0 0 .4em; }
.footer__small { font-size: .85rem; opacity: .75; }

/* Retour en haut */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 24, 48, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn {
  position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__btn:hover { background: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
