/* ──────────────────────────────────────────────────────────────────────
   Dikra — site de présentation

   Un seul fichier, aucune dépendance, aucun framework. Les couleurs et la
   typographie reprennent celles de l'application pour que le site et le
   produit se ressemblent.
   ────────────────────────────────────────────────────────────────────── */

:root {
  --forest: #13291f;
  --cream: #f6f1e7;
  --cream-2: #ece2d0;
  --ink: #0b0b0a;
  --ember: #c9743c;
  --ember-soft: #e0a06f;

  --on-dark: #f4efe5;
  --on-dark-70: rgba(244, 239, 229, 0.74);
  --on-dark-45: rgba(244, 239, 229, 0.48);
  --on-dark-20: rgba(244, 239, 229, 0.22);
  --on-dark-10: rgba(244, 239, 229, 0.1);
  --on-light: #1a1f1b;
  --on-light-70: rgba(26, 31, 27, 0.72);
  --on-light-45: rgba(26, 31, 27, 0.48);
  --rule-light: rgba(26, 31, 27, 0.14);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1, h2, h3 { font-weight: 400; text-wrap: balance; margin: 0; }

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.25; }

p { margin: 0; }
.lede { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.62; max-width: 48ch; }

/* La signature manuscrite du produit : wordmark et annotations. */
.wordmark {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 104px);
  line-height: 0.92;
  margin: 0 0 14px;
  color: var(--on-dark);
}

.scribble {
  position: absolute;
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.15;
  pointer-events: none;
}

.arrow { position: absolute; width: 78px; height: 62px; }

/* ── boutons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: #b9682f; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--on-dark-20); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }

/* Le bouton « magasin » : une petite ligne au-dessus, le nom en dessous. */
.btn--store { padding: 12px 24px; text-align: start; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.15; }
.btn--store small { font-size: 10.5px; font-weight: 600; opacity: 0.72; }
.btn--store svg { flex-shrink: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.12);
  border: 1px solid var(--on-dark-20);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-dark-70);
}

.pill--quiet { background: transparent; }

/* ── navigation ─────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--on-dark-10);
}

.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font-family: var(--hand); font-weight: 700; font-size: 28px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--on-dark-70); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav__links a:hover { color: var(--on-dark); }
.nav__cta { padding: 10px 20px; font-size: 14px; }

/* `.nav__links a` (0,1,1) l'emporte sur `.btn--light` (0,1,0), si bien que le
   texte du bouton restait crème sur un fond crème — illisible. Cette règle
   (0,2,1) rend la couleur au bouton. */
.nav__links a.nav__cta { color: var(--ink); }
.nav__links a.nav__cta:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--on-dark-20);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--on-dark);
}

@media (max-width: 920px) {
  .nav__links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--on-dark-10);
    padding: 8px var(--gutter) 18px;
  }
  .nav__links[hidden] { display: none; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--on-dark-10); }
  .nav__links .btn { margin-top: 14px; }
  .nav__toggle { display: inline-flex; }
}

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }

.hero__bed { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 80% at 72% 22%, rgba(201, 116, 60, 0.2), transparent 60%),
    linear-gradient(100deg, rgba(11, 11, 10, 0.94) 22%, rgba(11, 11, 10, 0.66) 58%, rgba(11, 11, 10, 0.82));
}

.hero__in {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  /* Vertical seulement : cet élément porte aussi .wrap, dont le padding
     horizontal est la gouttière de page. Un raccourci `padding: X 0 Y` la
     remettrait à zéro et le texte toucherait le bord sur téléphone. */
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero .eyebrow { color: var(--on-dark-70); }
.hero .lede { color: var(--on-dark-70); margin-top: 16px; max-width: 42ch; }
.hero h1 { color: var(--on-dark); max-width: 17ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero__art { position: relative; }

.scribble--hero { color: var(--on-dark); top: 5%; right: 0; width: 9.5em; text-align: center; }
.arrow--hero { color: var(--on-dark-70); top: 3.1em; right: 5.4em; transform: scaleX(-1); }

@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .scribble--hero, .arrow--hero { display: none; }
}

/* ── maquette téléphone ─────────────────────────────────────────────── */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 610;
  margin: 0 auto;
  border-radius: 40px;
  border: 1px solid rgba(244, 239, 229, 0.18);
  padding: 9px;
  background: linear-gradient(160deg, #262626, #0f0f0f 58%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: var(--ink); }

.phone::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.22);
  z-index: 2;
}

.phone--sm { max-width: 224px; aspect-ratio: 224 / 456; border-radius: 32px; padding: 7px; }
.phone--sm img { border-radius: 26px; }
.phone--sm::before { width: 62px; height: 4px; top: 13px; }

/* ── sections ───────────────────────────────────────────────────────── */

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--on-dark); }

.section--forest .eyebrow { color: var(--ember-soft); }
.section--forest .lede { color: var(--on-dark-70); }
.section--cream .eyebrow { color: var(--ember); }
.section--cream .lede { color: var(--on-light-70); }

.head { max-width: 640px; margin-bottom: clamp(34px, 4.5vw, 52px); }
.head .lede { margin-top: 16px; }

/* ── pourquoi / expérience : art + texte ────────────────────────────── */

.why { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.why--flip .why__copy { order: -1; }
.why__art { position: relative; }
.why__copy .lede { margin-top: 16px; margin-bottom: 34px; }

/* ── polaroids ──────────────────────────────────────────────────────── */

.polas { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 10px 44px; }

.pola {
  margin: 0;
  background: #fffdf8;
  padding: 9px 9px 30px;
  border-radius: 3px;
  box-shadow: 0 18px 34px -18px rgba(26, 31, 27, 0.48);
}

/* `height: auto` est indispensable : l'attribut height="520" du HTML rend
   la hauteur définie, aspect-ratio est alors ignoré et object-fit découpe
   une bande étroite dans la photo. */
.pola img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-2); }

.pola--1 { transform: rotate(-5deg); }
.pola--2 { transform: rotate(3.4deg) translateY(18px); }
.pola--3 { transform: rotate(2.2deg) translateY(-8px); }
.pola--4 { transform: rotate(-3deg) translateY(10px); }

.scribble--why { color: var(--on-light); bottom: -4px; left: 0; width: 8.5em; }
.arrow--why { color: var(--on-light-45); bottom: 2.4em; left: 7.4em; }

/* ── grille de fonctionnalités ──────────────────────────────────────── */

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.feat__item { display: flex; gap: 14px; align-items: flex-start; }
.feat__item h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.feat__item p { font-size: 14px; line-height: 1.55; color: var(--on-light-70); }

.feat__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(201, 116, 60, 0.12);
  color: var(--ember);
}

.feat--compact { gap: 22px 26px; }

@media (max-width: 920px) {
  .why { grid-template-columns: 1fr; }
  .why--flip .why__copy { order: 0; }
  .feat { grid-template-columns: 1fr; gap: 22px; }
  .scribble--why, .arrow--why { display: none; }
}

/* ── étapes ─────────────────────────────────────────────────────────── */

.steps__wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(34px, 5vw, 60px); align-items: center; }
.steps__copy .lede { margin-top: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step { position: relative; }

.step__badge {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  z-index: 2;
}

.step__icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--on-dark-20);
  display: grid;
  place-items: center;
  color: var(--on-dark);
  margin-bottom: 16px;
}

/* Le trait entre deux étapes : décoratif, retiré dès que la grille casse. */
.step:not(:last-child) .step__icon::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 70px;
  width: calc(100% - 4px);
  height: 1px;
  background: var(--on-dark-20);
}

.step h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--on-dark-70); }

@media (max-width: 1040px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .step:not(:last-child) .step__icon::after { display: none; }
}

@media (max-width: 920px) { .steps__wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── deux téléphones ────────────────────────────────────────────────── */

.duo { position: relative; display: flex; justify-content: center; padding: 10px 0 24px; }
.duo__back { transform: translateX(26%) rotate(4deg); }
.duo__front { transform: translateX(-26%) rotate(-3deg); position: relative; z-index: 2; }

.scribble--duo { color: var(--on-light); top: 36%; left: 0; width: 7em; }
.arrow--duo { color: var(--on-light-45); top: 2.4em; left: 4.4em; }

.sticky {
  position: absolute;
  right: 0;
  bottom: 2%;
  max-width: 11em;
  padding: 14px 16px;
  background: #f6ddd0;
  color: #5a3522;
  border-radius: 4px;
  font-family: var(--hand);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.18;
  transform: rotate(-3deg);
  box-shadow: 0 14px 26px -16px rgba(26, 31, 27, 0.45);
}

@media (max-width: 920px) {
  .duo__back { transform: translateX(20%) rotate(4deg); }
  .duo__front { transform: translateX(-20%) rotate(-3deg); }
  .scribble--duo, .arrow--duo { display: none; }
  .sticky { position: static; margin: 18px auto 0; max-width: 16em; transform: rotate(-1.5deg); }
}

/* ── bandeau d'appel ────────────────────────────────────────────────── */

.band { position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark); text-align: center; background: var(--forest); }
.band__bed { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 11, 10, 0.76), rgba(12, 26, 20, 0.86));
}

.band__in { padding: clamp(56px, 7vw, 92px) var(--gutter); }
.band .eyebrow { color: var(--on-dark-70); }
.band h2 { max-width: 16ch; margin: 0 auto; }

.band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.band__note {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-70);
  max-width: 54ch;
  margin-inline: auto;
}

/* ── faq ────────────────────────────────────────────────────────────── */

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule-light); padding: 4px 0; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 24px;
  color: var(--ember);
  line-height: 1;
}

.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 40px 22px 0; font-size: 15.5px; line-height: 1.68; color: var(--on-light-70); }

/* ── emplacements publicitaires ─────────────────────────────────────
   Masqués tant qu'aucun identifiant AdSense n'est renseigné : un cadre
   gris vide au milieu d'une page est pire que pas de publicité. */

.ad { margin: clamp(28px, 4vw, 48px) 0; min-height: 90px; }
.ad[hidden] { display: none; }

/* ── pied de page ───────────────────────────────────────────────────── */

.foot { background: var(--ink); color: var(--on-dark); padding: 52px 0 38px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { color: var(--on-dark-70); text-decoration: none; font-size: 14px; }
.foot__links a:hover { color: var(--on-dark); }
.foot__sign { font-family: var(--hand); font-weight: 500; font-size: 22px; color: var(--ember-soft); }

.foot__note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-10);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-45);
  text-transform: uppercase;
}

/* ── lien d'évitement ───────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { left: 8px; }

/* La barre collante ne doit pas couvrir le titre visé par une ancre. */
[id] { scroll-margin-top: 84px; }
