/* ==========================================================================
   Kalyros v1 — feuille de style unique (remplace w3.css + 3 feuilles de couleurs)
   Mobile-first, sans dépendance externe. Polices auto-hébergées.
   ========================================================================== */

/* --- Polices (auto-hébergées : pas d'appel à Google Fonts) ---------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2");
}

/* --- Variables ------------------------------------------------------------ */
:root {
  --bg: #fbfbfb;
  --ink: #111;
  --muted: #6b6b6b;
  --dark: #0f0f0f;
  --line: #e4e4e4;
  --radius: 32px;
  --gutter: clamp(16px, 2.8vw, 40px);   /* marge extérieure des gros blocs arrondis */
  --pad: clamp(20px, 5vw, 72px);        /* padding intérieur des sections */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid #7a5af8;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 24px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 1.125rem; font-weight: 400; line-height: 1.2;
  cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #333; }
.btn:active { transform: scale(.98); }
.btn .icon { font-size: 2.25rem; }
.btn--sm { font-size: 1rem; padding: 10px 10px 10px 18px; }
.btn--sm .icon { font-size: 1.75rem; }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background-color .2s ease;
}
.round-btn:hover { background: #f0f0f0; }
.round-btn .icon { font-size: 1.5rem; }
.round-btn--dark { background: var(--ink); color: #fff; }
.round-btn--dark:hover { background: #333; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--gutter);
  border-radius: var(--radius);
  min-height: min(853px, calc(100svh - 2 * var(--gutter)));
  min-height: min(853px, calc(100dvh - 2 * var(--gutter)));
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: center;
}
.hero > picture { position: absolute; inset: 0; z-index: -1; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.hero--page { min-height: clamp(260px, 38vh, 400px); }

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(14px, 2.4vw, 36px) clamp(18px, 3vw, 48px);
}
.brand { grid-column: 1; justify-self: start; display: inline-flex; }
.brand img { height: 22px; width: auto; }
.topbar__end { grid-column: 3; justify-self: end; display: flex; gap: 12px; }

.nav-pill { grid-column: 2; display: none; background: #fff; padding: 8px; border-radius: 999px; gap: 4px; }
.nav-pill a {
  padding: 8px 18px; border-radius: 999px; font-size: 1.125rem;
  text-decoration: none; transition: background-color .2s ease;
}
.nav-pill a:hover { background: #f0f0f0; }

.topbar__cal { display: none; }
@media (min-width: 900px) {
  .nav-pill { display: flex; }
  .topbar__cal { display: inline-flex; }
  .topbar__burger { display: none; }
}

.hero__body { align-self: center; padding: 0 clamp(16px, 4vw, 64px); }
.hero h1 {
  margin: 0 auto;
  max-width: 17em;
  font-size: clamp(2.25rem, 1.05rem + 4.6vw, 4rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -.01em;
}
.hero h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero h1 .light { font-weight: 200; }
.hero h1 strong { font-weight: 600; }
.hero__lead {
  margin: clamp(20px, 3vw, 36px) auto 0;
  max-width: 44em;
  font-size: clamp(.9375rem, .8rem + .6vw, 1.25rem);
  font-weight: 300;
}
.hero__title-page {
  margin: 0 auto; font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -.01em;
}
.hero__cta { display: flex; justify-content: center; padding: 0 16px clamp(36px, 6vw, 88px); }

/* Menu mobile */
.menu {
  position: fixed; z-index: 100; top: 16px; right: 16px; left: 16px;
  padding: 12px 24px 20px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  animation: menu-in .25s ease;
}
.menu[hidden] { display: none; }
.menu__close { display: flex; justify-content: flex-end; }
.menu__close button {
  background: none; border: 0; padding: 8px; cursor: pointer; color: #e53935; font-size: 2rem; line-height: 0;
}
.menu a {
  display: block; padding: 14px 0; font-size: 1.125rem; text-decoration: none;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }

/* --- Sections génériques --------------------------------------------------- */
.section-title {
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
}

/* Problème */
.problem { padding: clamp(48px, 8vw, 96px) var(--pad); text-align: center; }
.problem h2 {
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -.01em;
}
.problem h2 span { display: block; }
.problem p {
  margin: clamp(24px, 3vw, 40px) auto 0; max-width: 40em;
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem); font-weight: 300;
}

/* Pack Visibilité Totale */
.pack {
  background: var(--dark); color: #fff; text-align: center;
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.pack h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 600; line-height: 1.15; }
.pack__intro { margin-top: 12px; font-weight: 300; }
.pack__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px clamp(24px, 4vw, 64px);
  max-width: 1200px; margin: clamp(40px, 6vw, 72px) auto 0;
  text-align: left;
}
.pack__item { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; }
.pack__item h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.pack__item p { margin-top: 8px; font-weight: 300; color: rgba(255, 255, 255, .82); }
@media (min-width: 600px) { .pack__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pack__grid { grid-template-columns: repeat(3, 1fr); } }

/* Process */
.process {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  max-width: 1500px; margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
@media (min-width: 900px) {
  .process { grid-template-columns: minmax(0, 9fr) minmax(0, 10fr); gap: clamp(32px, 4vw, 64px); }
}
.process h2 { font-size: clamp(1.75rem, 1rem + 3vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.process__lead { margin: 8px 0 20px; font-weight: 300; font-size: 1.125rem; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(28px, 4vw, 56px); }
.steps li {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 120px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
}
.steps__n { font-size: 1.5rem; line-height: 1.2; color: var(--muted); }
.steps__t { font-weight: 600; line-height: 1.25; }
@media (min-width: 600px) {
  .steps { gap: 16px; }
  .steps li { min-height: 180px; padding: 24px; border-radius: var(--radius); }
  .steps__n { font-size: 2rem; }
  .steps__t { font-size: 1.25rem; }
}
.process__img img {
  width: 100%; height: clamp(300px, 46vw, 630px);
  object-fit: cover; border-radius: var(--radius);
}

/* FAQ */
.faq { max-width: 980px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--pad); }
.faq h2 { text-align: center; padding-bottom: clamp(16px, 3vw, 32px); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 48px 20px 0;
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  font-size: 1.75rem; color: var(--muted);
}
.faq summary .icon--minus { display: none; }
.faq details[open] summary .icon--plus { display: none; }
.faq details[open] summary .icon--minus { display: block; }
.faq details p {
  max-width: 44em; padding-bottom: 24px;
  color: var(--muted); font-size: clamp(.9375rem, .9rem + .3vw, 1.125rem);
}
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .4s ease, content-visibility .4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* Bandeau final (chevauche le haut du footer) */
.cta {
  position: relative; z-index: 2;
  width: min(1250px, calc(100% - 2 * var(--gutter)));
  margin: clamp(40px, 7vw, 96px) auto -80px;
  padding: clamp(24px, 4vw, 56px);
  background: #fff url("../img/cta-bg.webp") center / cover no-repeat;
  border-radius: var(--radius);
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
}
.cta .btn { margin-top: clamp(16px, 2.5vw, 28px); }
@media (min-width: 900px) {
  .cta { text-align: left; min-height: 341px; display: flex; flex-direction: column; justify-content: center; }
  .cta h2 { max-width: 22em; }
  .cta .btn { align-self: flex-start; }
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  margin: var(--gutter);
  padding: clamp(40px, 6vw, 72px) var(--pad) 28px;
  background: #111; color: #fff; border-radius: var(--radius);
  text-align: center;
}
.cta + .footer { padding-top: calc(80px + clamp(32px, 5vw, 64px)); }
.footer__brand { font-size: 1.75rem; font-weight: 700; text-decoration: none; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 20px; }
.footer a { text-decoration: none; transition: color .2s ease; }
.footer a:hover { color: #a3a3a3; }
.footer__about { max-width: 34em; margin: 24px auto 0; font-size: .875rem; color: rgba(255, 255, 255, .85); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  margin-top: clamp(32px, 5vw, 56px); font-size: .875rem;
}

/* --- Page mentions légales --------------------------------------------------- */
.legal { max-width: 980px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad); font-size: 1.125rem; }
.legal section + section { margin-top: clamp(32px, 5vw, 56px); }
.legal h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 20px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
.legal dt { font-weight: 700; margin-top: 12px; }
.legal dd ul { list-style: disc; padding-left: 1.25em; }
@media (min-width: 700px) {
  .legal dl { grid-template-columns: max-content 1fr; }
  .legal dt { margin-top: 0; }
}

/* --- Page 404 ---------------------------------------------------------------- */
.notfound { max-width: 40em; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad); text-align: center; }
.notfound p { margin: 16px 0 28px; font-weight: 300; font-size: 1.125rem; }
