/* Quoteo · page de présentation. Couleurs reprises de l'app (Palette.swift, ModuleStyle.swift). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --canvas: #FBF7F1;
  --surface: #FFFFFF;
  --line: #EFE7DC;
  --ink: #2B2622;
  --ink-2: #6E655C;
  --action: #FF8A5B;
  --on-action: #2B2622;
  --bezel: #1E1B18;
  --ombre: 0 1px 2px rgb(43 38 34 / .04), 0 12px 32px -12px rgb(43 38 34 / .18);
  --rayon: 28px;

  /* fond de carte / encre forte, par module */
  --courses: #FCE3C8;    --courses-i: #8A4A14;
  --calendrier: #D9E4FB; --calendrier-i: #2D4A91;
  --taches: #D6F0E0;     --taches-i: #22663F;
  --poubelles: #D3EEEC;  --poubelles-i: #1F5E59;
  --notes: #FFF1B8;      --notes-i: #6E5606;
  --repas: #FFE3D3;      --repas-i: #8E3A1A;
  --budget: #E6F0C2;     --budget-i: #41580A;
  --sport: #FAD6E8;      --sport-i: #87285B;
  --corps: #CFF1E5;      --corps-i: #156247;
  --documents: #ECE4D8;  --documents-i: #594830;
  --adresses: #DCE4EC;   --adresses-i: #35495D;
  --vehicule: #F6E3B4;   --vehicule-i: #6F4F07;
  --cave: #F2D4DC;       --cave-i: #761F37;
  --projets: #E0DEFA;    --projets-i: #423897;
  --frigo: #DDF1F9;      --frigo-i: #1D5F7E;
  --recettes: #FAD9D9;   --recettes-i: #8A3333;
  --routines: #EBDDF7;   --routines-i: #59338A;
  --vert: #2F8A57;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1B1815;
    --surface: #26221E;
    --line: #3A342E;
    --ink: #F5EFE8;
    --ink-2: #B8AEA3;
    --action: #FF9E76;
    --on-action: #2B2622;
    --bezel: #0B0A09;
    --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);

    --courses: #513218;    --courses-i: #FFD2AA;
    --calendrier: #252F49; --calendrier-i: #C3D3FA;
    --taches: #213C2A;     --taches-i: #B5E8C8;
    --poubelles: #203834;  --poubelles-i: #B0E6E1;
    --notes: #443711;      --notes-i: #FBE38A;
    --repas: #512C1D;      --repas-i: #FFC9AE;
    --budget: #343F17;     --budget-i: #D8EB9C;
    --sport: #4C2136;      --sport-i: #F8BBDA;
    --corps: #1C3C32;      --corps-i: #A6EBD3;
    --documents: #3A332A;  --documents-i: #E8D9C2;
    --adresses: #27313B;   --adresses-i: #C6D5E4;
    --vehicule: #463813;   --vehicule-i: #F4D995;
    --cave: #46202B;       --cave-i: #F5B9C9;
    --projets: #2C294B;    --projets-i: #CDC8FA;
    --frigo: #203841;      --frigo-i: #B3E2F5;
    --recettes: #4B2624;   --recettes-i: #F6BDBD;
    --routines: #372744;   --routines-i: #DCC6F2;
    --vert: #5BC48A;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h1, h2 { font-weight: 900; }
p { margin: 0; }

.conteneur { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--canvas); padding: .6rem 1rem; border-radius: 12px; font-weight: 800;
}
.evitement:focus { top: 1rem; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.marque { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.marque img { width: 42px; height: auto; border-radius: 10px; }
.entete__nav { display: flex; align-items: center; gap: .35rem 1.1rem; }
.lien-nav { font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap; padding: .5rem .2rem; }
.lien-nav:hover { text-decoration: underline; }
.bouton-test {
  font-size: .875rem; font-weight: 900; text-decoration: none; white-space: nowrap;
  color: var(--on-action); background: var(--action);
  padding: .5rem 1rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.bouton-test:hover { text-decoration: underline; }

/* Bloc d'ouverture */
.hero {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: 2.5rem 3.5rem;
}
.hero__logo { width: 132px; height: auto; margin-bottom: 1.25rem; border-radius: 30px; }
.hero h1 { font-size: clamp(2.15rem, 7.4vw, 3.9rem); max-width: 15ch; }
.hero__chapo { margin-top: 1.1rem; font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink-2); max-width: 34rem; }
.hero__chapo strong { color: var(--ink); font-weight: 800; }
.hero__ecran { margin: 0; justify-self: center; }

.cta { margin-top: 1.9rem; display: grid; gap: .9rem; justify-items: start; }
.cta__note { color: var(--ink-2); font-size: .975rem; }
.cta__note a { color: var(--ink); font-weight: 800; }

.bouton {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
}
.bouton svg { width: 22px; height: 22px; fill: currentColor; }
.bouton--principal { background: var(--action); color: var(--on-action); box-shadow: 0 10px 24px -10px rgb(255 138 91 / .8); }
a.bouton--principal:hover { filter: brightness(1.04); text-decoration: underline; }

/* Cadre d'iPhone en CSS */
.iphone {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 462 / 1000;
  padding: 11px;
  border-radius: 54px;
  background: var(--bezel);
  box-shadow:
    0 0 0 2px #4A433D,
    0 0 0 3.5px #2A2622,
    0 40px 70px -30px rgb(43 38 34 / .55);
}
.iphone::before { /* île dynamique */
  content: ""; position: absolute; z-index: 1;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 29%; height: 3.4%; border-radius: 999px; background: #000;
}
.iphone img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; }

/* Sections */
.section { padding-block: 3.5rem; }
.section h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
.section__intro { margin-top: .7rem; color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; }
.sous-titre { margin-top: 2.4rem; margin-bottom: 1rem; font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: .6rem; }

/* Grille de cartes pastel, comme l'accueil de l'app */
.grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.carte {
  --fond: var(--courses); --encre: var(--courses-i);
  background: var(--fond);
  border-radius: var(--rayon);
  padding: 1.05rem 1.05rem 1.2rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.carte__icone {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--surface); color: var(--encre);
  display: grid; place-items: center; margin-bottom: .55rem;
}
.carte__icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.carte h4 { font-size: 1.2rem; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.carte p { font-size: .95rem; line-height: 1.45; color: var(--encre); font-weight: 600; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .02em;
  padding: .18rem .55rem; border-radius: 999px;
  background: var(--surface); color: var(--encre, var(--ink));
}
.badge--nouveau { background: var(--action); color: var(--on-action); }

.carte--courses    { --fond: var(--courses);    --encre: var(--courses-i); }
.carte--calendrier { --fond: var(--calendrier); --encre: var(--calendrier-i); }
.carte--taches     { --fond: var(--taches);     --encre: var(--taches-i); }
.carte--poubelles  { --fond: var(--poubelles);  --encre: var(--poubelles-i); }
.carte--notes      { --fond: var(--notes);      --encre: var(--notes-i); }
.carte--repas      { --fond: var(--repas);      --encre: var(--repas-i); }
.carte--budget     { --fond: var(--budget);     --encre: var(--budget-i); }
.carte--sport      { --fond: var(--sport);      --encre: var(--sport-i); }
.carte--corps      { --fond: var(--corps);      --encre: var(--corps-i); }
.carte--documents  { --fond: var(--documents);  --encre: var(--documents-i); }
.carte--adresses   { --fond: var(--adresses);   --encre: var(--adresses-i); }
.carte--vehicule   { --fond: var(--vehicule);   --encre: var(--vehicule-i); }
.carte--cave       { --fond: var(--cave);       --encre: var(--cave-i); }
.carte--projets    { --fond: var(--projets);    --encre: var(--projets-i); }
.carte--frigo      { --fond: var(--frigo);      --encre: var(--frigo-i); }
.carte--recettes   { --fond: var(--recettes);   --encre: var(--recettes-i); }
.carte--routines   { --fond: var(--routines);   --encre: var(--routines-i); }
.carte--neutre     { --fond: color-mix(in srgb, var(--action) 20%, var(--surface)); --encre: var(--ink); }

/* Captures */
.section--ecrans { background: var(--surface); border-block: 1px solid var(--line); }
.ecrans { margin-top: 2.5rem; display: grid; gap: 3rem; justify-items: center; }
.ecrans figure { margin: 0; display: grid; gap: 1.1rem; justify-items: center; }
.ecrans figcaption { color: var(--ink-2); font-weight: 700; text-align: center; max-width: 18rem; }

/* Atouts du foyer */
.atouts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.atouts li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rayon);
  padding: 1.25rem;
}
.atout__icone {
  flex: none; width: 48px; height: 48px; border-radius: 16px;
  background: color-mix(in srgb, var(--action) 22%, var(--surface)); color: var(--ink);
  display: grid; place-items: center;
}
.atout__icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.atouts h3 { font-size: 1.15rem; font-weight: 900; }
.atouts p { margin-top: .3rem; color: var(--ink-2); }

/* Appel final */
.appel {
  margin-block: 1rem 4rem; padding: 2.75rem 1.5rem;
  background: var(--courses); border-radius: 36px; text-align: center;
  display: grid; justify-items: center; gap: 1rem;
}
.appel__tuile { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; background: #FBF7F1; box-shadow: var(--ombre); }
.appel__tuile img { width: 80px; height: auto; }
.appel h2 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); }
.appel p { max-width: 34rem; color: var(--courses-i); font-weight: 600; }
.appel .bouton { margin-top: .4rem; }
.appel p.appel__contact { font-size: .95rem; }
.appel__contact a { color: var(--ink); font-weight: 800; }

/* Pied de page */
.pied { border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.pied__barre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.6rem 2.2rem; }
.pied a { color: var(--ink); font-weight: 700; }

/* Tablette et plus */
@media (min-width: 720px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .carte { padding: 1.35rem 1.35rem 1.5rem; }
  .ecrans { grid-template-columns: repeat(2, auto); justify-content: center; gap: 4rem; }
  .atouts { grid-template-columns: repeat(3, 1fr); }
  .atouts li { flex-direction: column; }
}

/* Bureau */
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 3rem; padding-block: 4rem 5rem; }
  .hero__logo { width: 112px; }
  .iphone { width: 310px; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-block: 4.5rem; }
}

/* Petits écrans : cartes plus serrées */
@media (max-width: 380px) {
  .grille { gap: .65rem; }
  .carte { padding: .9rem .9rem 1rem; }
  .carte p { font-size: .9rem; }
}

/* Feuille de route : frise verticale sur mobile, trois colonnes sur grand écran */
.feuille { scroll-margin-top: 4.5rem; }
.etapes {
  --rail: 15px;
  list-style: none; margin: 2.2rem 0 0; padding: 0 0 0 calc(var(--rail) * 2 + .6rem);
  position: relative; display: grid; gap: 2.4rem;
}
.etapes::before { /* le rail de la frise */
  content: ""; position: absolute; left: calc(var(--rail) - 1.5px); top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--vert), var(--action) 50%, var(--line));
}
.etape { position: relative; }
.etape__tete { margin-bottom: 1rem; }
.etape__repere {
  position: absolute; left: calc(-1 * (var(--rail) + .6rem) - 11px); top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--canvas); border: 4px solid var(--repere, var(--ink-2));
}
.etape--disponible { --repere: var(--vert); }
.etape--disponible .etape__repere { background: var(--vert); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vert) 25%, transparent); }
.etape--preparation { --repere: var(--action); }
.etape--plus-tard { --repere: var(--ink-2); }
.etape__tete h3 { font-size: 1.35rem; font-weight: 900; }
.etape__tete p { color: var(--ink-2); font-weight: 600; margin-top: .15rem; }

.feuille__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.feuille__item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: .85rem .95rem;
}
.feuille__icone {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  background: var(--fond); color: var(--encre); display: grid; place-items: center;
}
.feuille__icone svg, .feuille__pastilles svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feuille__item h4 { font-size: 1.05rem; font-weight: 900; }
.feuille__item p { color: var(--ink-2); font-size: .94rem; line-height: 1.45; margin-top: .1rem; }
.feuille__pastilles { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.feuille__pastilles li {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--fond); color: var(--encre);
}
.feuille__pastilles svg { width: 18px; height: 18px; }
.etape--plus-tard .feuille__item { background: transparent; border-style: dashed; }

@media (min-width: 980px) {
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 2.4rem 0 0; }
  .etapes::before { /* le rail devient horizontal */
    left: 11px; right: 11px; top: 9px; bottom: auto; width: auto; height: 3px;
    background: linear-gradient(90deg, var(--vert), var(--action) 50%, var(--line));
  }
  .etape__repere { left: 0; top: -2.4rem; }
  .etape { padding-top: .2rem; }
}

/* Petits écrans : l'en-tête garde le logo seul */
@media (max-width: 480px) {
  .marque span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .entete__nav { gap: .7rem; }
  .lien-nav { font-size: .9rem; }
  .bouton-test { padding: .5rem .85rem; font-size: .84rem; }
}

/* Écran d'accueil reconstruit dans le téléphone (mêmes cartes et couleurs que l'app).
   Dessiné en « points » d'iPhone : 1em = 10 pt, l'écran fait 44em de large et suit la taille du cadre. */
.iphone--accueil { container-type: inline-size; }
.ec {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 43px; background: var(--canvas); color: var(--ink);
  font-size: calc(100cqw / 44); line-height: 1.2;
  --ec-bandeau: #2B2622; --ec-bandeau-texte: #FFFFFF; --ec-bandeau-2: #D8D1C8;
}
@media (prefers-color-scheme: dark) {
  .ec { --ec-bandeau: #F5EFE8; --ec-bandeau-texte: #2B2622; --ec-bandeau-2: #6E655C; }
}
.ec b, .ec small { display: block; }
.ec-icone svg, .ec-bandeau svg, .ec-onglets svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.ec-statut { flex: none; height: 5.6em; display: flex; align-items: center; justify-content: space-between; padding: .6em 3.4em 0 4.6em; }
.ec-statut span { font-size: 1.7em; font-weight: 800; letter-spacing: -.01em; }
.ec-statut svg { width: 6.6em; height: auto; }

.ec-tete { flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 1em 2em 0; }
.ec-tete small { font-size: 1.4em; font-weight: 700; color: var(--ink-2); }
.ec-tete b { font-size: 3.1em; font-weight: 900; letter-spacing: -.02em; margin-top: .1em; }
.ec-avatars { display: flex; padding-bottom: .4em; }
.ec-avatars span {
  font-size: 1.4em; font-weight: 900; width: 2.9em; height: 2.9em; margin-left: -.7em;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--c); border: .18em solid var(--canvas);
}

.ec-bandeau {
  flex: none; margin: 1.8em 2em 0; padding: 1.3em 1.4em;
  display: flex; align-items: center; gap: 1.2em;
  background: var(--ec-bandeau); color: var(--ec-bandeau-texte); border-radius: 1.8em;
}
.ec-bandeau__icone { flex: none; width: 3.8em; height: 3.8em; border-radius: 1.2em; background: #FFD84D; color: #2B2622; display: grid; place-items: center; }
.ec-bandeau__icone svg { width: 2em; height: 2em; }
.ec-bandeau div { flex: 1; min-width: 0; }
.ec-bandeau b { font-size: 1.5em; font-weight: 900; }
.ec-bandeau small { font-size: 1.3em; font-weight: 700; color: var(--ec-bandeau-2); margin-top: .15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-chevron { flex: none; width: 1.7em; height: 1.7em; stroke-width: 2.6 !important; }

.ec-fenetre {
  flex: 1; min-height: 0; overflow: hidden; margin-top: 1.4em; padding-top: 1em;
  -webkit-mask-image: linear-gradient(transparent, #000 1.4em, #000 calc(100% - 1.4em), transparent);
          mask-image: linear-gradient(transparent, #000 1.4em, #000 calc(100% - 1.4em), transparent);
}
.ec-defile { animation: ec-defile 42s linear infinite; will-change: transform; }
@keyframes ec-defile { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero__ecran:hover .ec-defile { animation-play-state: paused; }

.ec-grille {
  list-style: none; margin: 0; padding: 0 2em 1.2em;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2em;
}
.ec-carte {
  min-height: 12em; padding: 1.4em; border-radius: 2.2em;
  display: flex; flex-direction: column; background: var(--c);
}
.ec-icone { width: 4em; height: 4em; border-radius: 1.4em; background: var(--surface); color: var(--s); display: grid; place-items: center; }
.ec-icone svg { width: 2.2em; height: 2.2em; }
.ec-carte b { margin-top: auto; padding-top: 1em; font-size: 1.75em; font-weight: 900; letter-spacing: -.01em; }
.ec-carte small { font-size: 1.4em; font-weight: 800; color: var(--d); margin-top: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (prefers-color-scheme: dark) {
  .ec-carte, .ec-avatars span { background: var(--cd); }
  .ec-icone, .ec-carte small { color: var(--c); }
  .ec-avatars span { color: var(--c); }
}

.ec-onglets {
  flex: none; position: relative; height: 9.6em; padding-top: .9em;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  background: var(--surface); border-top: 1px solid var(--line);
}
.ec-onglets::after { /* barre d'accueil d'iPhone */
  content: ""; position: absolute; left: 50%; bottom: .9em; transform: translateX(-50%);
  width: 14em; height: .5em; border-radius: 1em; background: var(--ink);
}
.ec-onglets span { display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: 1.1em; font-weight: 900; color: var(--ink-2); }
.ec-onglets svg { width: 2.2em; height: 2.2em; }
.ec-onglets .actif { color: var(--ink); }
.ec-onglets .actif path { fill: currentColor; stroke: none; }
.ec-onglets .ec-plus {
  width: 4.9em; height: 4.9em; margin: -1.6em auto 0; justify-content: center;
  border-radius: 50%; background: var(--action); color: #2B2622;
}
.ec-onglets .ec-plus svg { stroke-width: 2.8; }

/* Sans animation : la grille se fait défiler à la main. */
@media (prefers-reduced-motion: reduce) {
  .ec-defile { animation: none; }
  .ec-fenetre { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .ec-grille--copie { display: none; }
}
