/* Loufti landing — Clairière tokens (docs/design/CLAIRIERE.md), editorial scale. */

@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1D00-1DBF, U+1E00-1E9F; }
@font-face { font-family: "Karla"; font-weight: 400 700; font-display: swap; src: url("fonts/karla-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Karla"; font-weight: 400 700; font-display: swap; src: url("fonts/karla-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1D00-1DBF, U+1E00-1E9F; }

:root {
  --fond: #faf7f1;
  --blanc: #ffffff;
  --creux: #f0eae0;
  --encre: #24271d;
  --encre-douce: #5d5d4f;
  --recul: #8a907c;          /* the « arrière-plan » line: large text, 3.3:1 on --fond */
  --ligne: #e7dfd1;
  --mousse-900: #22301a;
  --mousse-700: #395226;
  --mousse-500: #41632f;
  --mousse-300: #b7c79f;
  --mousse-100: #edf1e5;
  --argile-700: #a44a26;
  --ivoire: #fff3e2;

  --display: "Archivo", system-ui, sans-serif;
  --text: "Karla", system-ui, sans-serif;
  --galet: 60% 40% 55% 45% / 50% 55% 45% 50%;
  --gutter: clamp(16px, 4vw, 56px);
  --page: min(1200px, 100% - 2 * var(--gutter));
  --section: clamp(88px, 10vw, 152px);
  --ombre: 0 2px 4px rgb(34 48 26 / .05), 0 32px 64px -32px rgb(34 48 26 / .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mousse-500); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.sprite { position: absolute; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--blanc); padding: 8px 14px; }

/* Type */
.h2 { margin: 0; font: 700 clamp(34px, 4vw, 54px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.h2--light { color: var(--ivoire); }
.h3 { margin: 0; font: 700 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.lead { margin: 20px 0 0; font-size: clamp(18px, 1.4vw, 20px); color: var(--encre-douce); max-width: 46ch; }

/* The pebble: asymmetric, never a circle, never rotated. */
.galet { display: inline-block; border-radius: var(--galet); background: var(--mousse-500); position: relative; flex: none; }
.galet--logo { width: 30px; height: 30px; }
.galet--logo span, .galet--cta span { position: absolute; right: 17%; bottom: 17%; width: 27%; height: 27%; border-radius: 50%; background: #d9683c; }
.galet--mark { width: 26px; height: 24px; }
.galet--b { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; background: var(--mousse-700); }
.galet--c { border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%; background: var(--mousse-300); }
.galet--cta { width: 56px; height: 56px; background: var(--mousse-300); }

/* Icons always sit in a tinted round pastille (Clairière §4). */
.pastille { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mousse-100); color: var(--mousse-700); }
.pastille svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pastille--lg { width: 48px; height: 48px; }
.pastille--lg svg { width: 22px; height: 22px; }
.pastille--sm { width: 32px; height: 32px; }

/* Buttons: argile once per screen, on the main action only (golden rule 1). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 var(--text); text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.btn--primary { background: var(--argile-700); color: var(--blanc); }
.btn--primary:hover { background: #8f3f1f; }
.btn--quiet { min-height: 44px; padding: 0 20px; font-size: 16px; border: 1.5px solid var(--mousse-300); color: var(--mousse-700); }
.btn--quiet:hover { background: var(--mousse-100); }
.btn--outline { margin-top: 32px; border: 1.5px solid var(--mousse-500); color: var(--mousse-700); }
.btn--outline:hover { background: var(--mousse-100); }
.link { font-weight: 700; color: var(--mousse-700); text-underline-offset: 6px; text-decoration-thickness: 1.5px; text-decoration-color: var(--mousse-300); }
.link:hover { text-decoration-color: currentColor; }

/* Navigation */
.nav { width: var(--page); margin: 0 auto; height: 88px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__word { font: 700 25px/1 var(--display); letter-spacing: -.04em; }
.nav nav { display: flex; gap: 30px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 16px; color: var(--encre-douce); }
.nav nav a:hover { color: var(--encre); }

/* Hero */
.hero { width: var(--page); margin: 0 auto; padding-top: clamp(28px, 4vw, 56px); }
.hero__title { margin: 0; font: 700 clamp(42px, 7vw, 104px)/.96 var(--display); letter-spacing: -.046em; text-wrap: balance; }
.hero__title span { display: block; }
.hero__back { color: var(--recul); }
.hero__row { margin-top: clamp(24px, 2.6vw, 36px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__lead { margin: 0; max-width: 40ch; font-size: clamp(18px, 1.45vw, 20px); color: var(--encre-douce); }
.hero__actions { display: flex; align-items: center; gap: 28px; flex: none; }
.hero__photo { margin-top: clamp(36px, 4.5vw, 64px); border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 7.6; box-shadow: var(--ombre); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(.88) sepia(.05); }
.assure { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 16px; color: var(--encre-douce); }
.assure li { display: flex; align-items: center; gap: 12px; }

/* Promises */
.promises { width: var(--page); margin: 0 auto; padding: var(--section) 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.promise-list { list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; display: grid; gap: 36px; }
.promise-list li { display: grid; grid-template-columns: 26px 1fr; column-gap: 22px; }
.promise-list .galet { grid-row: span 2; margin-top: 5px; }
.promise-list h3 { margin: 0; font: 700 clamp(21px, 1.9vw, 25px)/1.2 var(--display); letter-spacing: -.02em; }
.promise-list p { margin: 8px 0 0; color: var(--encre-douce); max-width: 46ch; }
.promises__photo { border-radius: var(--galet); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--mousse-100); box-shadow: inset 0 0 0 1px rgb(34 48 26 / .06), 0 30px 60px -30px rgb(34 48 26 / .35); }
.promises__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: saturate(.9) sepia(.05); transform: scale(1.12); transform-origin: 50% 100%; }

/* Product tour: the one deep-moss section */
.product { background: var(--mousse-900); color: var(--ivoire); padding: var(--section) 0 clamp(72px, 8vw, 112px); }
.product__head { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.product__lead { margin: 0; color: var(--mousse-300); max-width: 44ch; justify-self: end; }
.tour { width: var(--page); margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tour__tabs { display: grid; gap: 4px; }
.tour__tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px;
  padding: 18px 20px; border-radius: 16px; border-left: 3px solid transparent;
  color: var(--mousse-300); transition: background-color .2s, color .2s;
}
.tour__tabs button strong { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; color: var(--ivoire); opacity: .7; }
.tour__tabs button span { font-size: 15px; line-height: 1.5; display: none; }
.tour__tabs button:hover strong { opacity: 1; }
.tour__tabs button[aria-selected="true"] { background: rgb(255 243 226 / .07); border-left-color: var(--mousse-300); }
.tour__tabs button[aria-selected="true"] strong { opacity: 1; }
.tour__tabs button[aria-selected="true"] span { display: block; }
.tour__tabs button:focus-visible { outline: 3px solid var(--mousse-300); outline-offset: 2px; }
.window { border-radius: 14px; overflow: hidden; background: var(--blanc); box-shadow: 0 50px 100px -40px rgb(0 0 0 / .6); }
.window[hidden] { display: none; }
.chrome { height: 28px; display: flex; gap: 7px; align-items: center; padding: 0 14px; background: #f3eee5; border-bottom: 1px solid #e6dccb; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #dcd2c1; }
.product__note { width: var(--page); margin: 24px auto 0; font-size: 14px; color: var(--mousse-300); opacity: .75; text-align: right; }

/* Families */
.families { width: var(--page); margin: 0 auto; padding: var(--section) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 128px); align-items: center; }
.families__phone { justify-self: center; width: min(316px, 100%); }
.device { position: relative; padding: 11px; background: #1c2017; border-radius: 52px; box-shadow: inset 0 0 0 1.5px #3b4033, 0 2px 4px rgb(34 48 26 / .1), 0 50px 90px -40px rgb(34 48 26 / .55); }
.device::before, .device::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 2px 0 0 2px; background: #2b3024; }
.device::before { top: 120px; height: 34px; }
.device::after { top: 168px; height: 58px; }
.device img { border-radius: 41px; width: 100%; }
.device__island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #0d0f0b; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; max-width: 48ch; }
.ticks li { position: relative; padding-left: 40px; color: var(--encre-douce); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 22px; border-radius: var(--galet); background: var(--mousse-100); box-shadow: inset 0 0 0 2px var(--mousse-300); }
.ticks strong { color: var(--encre); }

/* What the office stops doing */
.saved { background: var(--blanc); border-block: 1px solid var(--ligne); padding: var(--section) var(--gutter); }
.saved .h2 { width: var(--page); margin: 0 auto; max-width: none; }
.saved__grid { list-style: none; width: var(--page); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.saved__grid h3 { margin: 20px 0 0; font: 700 20px/1.25 var(--display); letter-spacing: -.015em; }
.saved__grid p { margin: 10px 0 0; font-size: 16px; color: var(--encre-douce); }

/* Support */
.support { width: var(--page); margin: 0 auto; padding: var(--section) 0; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.support__photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; }
.support__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; filter: saturate(.88) sepia(.05); }
.facts { margin: 36px 0 0; display: grid; gap: 26px; }
.facts dt { display: flex; align-items: center; gap: 14px; font: 700 20px/1.25 var(--display); letter-spacing: -.015em; }
.facts dd { margin: 6px 0 0 50px; color: var(--encre-douce); max-width: 44ch; }

/* Trust */
.trust { width: var(--page); margin: 0 auto; padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 56px); background: var(--mousse-100); border-radius: 28px; }
.trust__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust__list li { display: flex; gap: 16px; align-items: flex-start; }
.trust__list .pastille { background: var(--blanc); }
.trust__list p { margin: 4px 0 0; font-size: 16px; color: var(--encre-douce); }
.trust__list strong { color: var(--encre); }

/* Field */
.field { width: var(--page); margin: 0 auto; padding: var(--section) 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.field__photo { border-radius: var(--galet); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgb(34 48 26 / .35); }
.field__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) sepia(.06); }
.field__text > p:not(.lead) { margin: 20px 0 0; color: var(--encre-douce); max-width: 46ch; }
.field__text strong { color: var(--encre); }

/* FAQ */
.faq { width: var(--page); margin: 0 auto; padding: 0 0 var(--section); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 700 20px/1.3 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pastille svg { transition: transform .25s; }
.faq details[open] summary .pastille svg { transform: rotate(45deg); }
.faq details p { margin: -8px 0 24px; color: var(--encre-douce); max-width: 60ch; }

/* Final call */
.cta { background: var(--mousse-900); padding: var(--section) var(--gutter); }
.cta__inner { width: min(760px, 100%); margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 24px; }
.cta__inner .h2 { max-width: 16ch; }
.cta__inner p { margin: 0; color: var(--mousse-300); max-width: 46ch; }
.cta__inner .btn { margin-top: 8px; }

.foot { width: var(--page); margin: 0 auto; padding: 48px 0 56px; color: var(--encre-douce); font-size: 15px; }
.foot p { margin: 0; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot__links { display: flex; gap: 24px; margin-left: auto; }
.foot__links a { color: var(--mousse-700); text-underline-offset: 4px; }
.foot__small { margin-top: 28px !important; padding-top: 24px; border-top: 1px solid var(--ligne); font-size: 13px; }
.foot__small a { color: inherit; text-underline-offset: 3px; }

/* Narrow screens */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .btn--quiet { margin-left: auto; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__actions { flex-wrap: wrap; }
  .hero__photo { aspect-ratio: 4 / 3.2; border-radius: 20px; }
  .promises, .families, .support, .field, .faq { grid-template-columns: 1fr; }
  .promises__photo, .field__photo { order: -1; max-width: 520px; }
  .support__photo { aspect-ratio: 4 / 3; }
  .product__head { grid-template-columns: 1fr; }
  .product__lead { justify-self: start; }
  .tour { grid-template-columns: 1fr; }
  .tour__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .tour__tabs button[aria-selected="true"] span { display: none; }
  .tour__tabs button { border-left: 0; border-bottom: 3px solid transparent; }
  .tour__tabs button[aria-selected="true"] { border-bottom-color: var(--mousse-300); }
  .saved__grid { grid-template-columns: 1fr 1fr; }
  .trust__list { grid-template-columns: 1fr; }
  .families__phone { width: min(300px, 80%); }
}
@media (max-width: 560px) {
  .saved__grid { grid-template-columns: 1fr; }
  .foot__links { margin-left: 0; }
}
/* Motion — one load sequence, then reveals tied to scrolling (no JS, nothing hidden without support). */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle-in { from { transform: scale(1.07); } }
.hero__back { animation: rise .9s .05s var(--ease) both; }
.hero__front { animation: rise .9s .16s var(--ease) both; }
.hero__lead { animation: rise .9s .3s var(--ease) both; }
.hero__actions { animation: rise .9s .38s var(--ease) both; }
.hero__photo { animation: rise 1.1s .46s var(--ease) both; }
.hero__photo img { animation: settle-in 2.4s .46s var(--ease) both; }
.assure li { animation: fade .8s var(--ease) both; }
.assure li:nth-child(1) { animation-delay: .8s; }
.assure li:nth-child(2) { animation-delay: .9s; }
.assure li:nth-child(3) { animation-delay: 1s; }

/* The pebbles breathe: they change shape, never rotate. */
@keyframes breathe {
  50% { border-radius: 48% 52% 42% 58% / 58% 44% 56% 42%; }
}
.promise-list .galet, .ticks li::before { animation: breathe 7s ease-in-out infinite; }
.promise-list li:nth-child(2) .galet { animation-delay: -2.3s; }
.promise-list li:nth-child(3) .galet { animation-delay: -4.6s; }
.galet--cta { animation: breathe 9s ease-in-out infinite; }

/* Switching tabs */
@keyframes tab-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.window:not([hidden]) { animation: tab-in .5s var(--ease) both; }

.btn { transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { box-shadow: 0 10px 24px -12px rgb(164 74 38 / .7); }

/* Reveals: motion.js marks the page, then each block arrives once as it enters the screen. */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.motion .reveal--zoom { transform: translateY(48px) scale(.96); }
.motion .reveal--photo { transform: scale(.94); transition-duration: 1.1s, 1.3s; }
.motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Legal and error pages */
.nav__end { margin-left: auto; }
.legal { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.legal .h3 { margin-top: 48px; }
.legal p { color: var(--encre-douce); max-width: 64ch; }
.legal a:not(.btn):not(.link) { color: var(--mousse-700); text-underline-offset: 3px; }
.legal__back { margin-top: 48px; }
