/* Landing Simone. Valeurs reprises du design system (docs/marque/simone-design-system.md).
   Bordures encre de 3 px, aucune ombre, un seul bouton « action » visible à la fois. */
@font-face { font-family: "Garet"; src: url("fonts/Garet-Heavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Garet"; src: url("fonts/Garet-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Une couleur par aidant, valeurs du design system (tokens aidant-1 à 3). */
  --aidant-1: #24543E; --aidant-2: #A84B26; --aidant-3: #A8C3A0;
  --papier: #F6F1E7;
  --creme: #EFE7D6;
  --carte: #FFFDF8;
  --encre: #1F2A2E;
  --encre-douce: #4A5558;
  --foret: #2F6B4F;
  --foret-profond: #24543E;
  --action: #A84B26;
  --terracotta: #C8643B;
  --sauge: #A8C3A0;
  --sauge-fond: #E3ECDF;
  --trait: 3px solid var(--encre);
  --rayon: 12px;
  --rayon-l: 16px;
  --titre: Garet, "Atkinson Hyperlegible Next", Verdana, sans-serif;
  --texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --base: 1.25rem; /* 20 px : corps famille des planches */
  --cible: 56px; /* cible-famille */
}
/* Thème sombre : fond forêt profond, textes papier, comme le logo monochrome. */
:root[data-theme="sombre"] {
  --aidant-1: #9CCBB1; --aidant-2: #E08A62; --aidant-3: #5E7D5A;
  --papier: #24543E;
  --creme: #1E4734;
  --carte: #2B5F47;
  --encre: #F6F1E7;
  --encre-douce: #DCE7D6;
  --foret: #A8C3A0;
  --foret-profond: #9CCBB1;
  --sauge-fond: #2F6B4F;
  --fonce: #183A2A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 var(--base)/1.4 var(--texte); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
/* Sur les bandes foncées, le contour encre disparaît : il passe en papier, dans les deux thèmes. */
.annonce :focus-visible, .pros :focus-visible, .final :focus-visible, .tarif-fort :focus-visible { outline-color: #F6F1E7; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
.cadre { width: min(1200px, 100% - 48px); margin-inline: auto; }
.saut { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--encre); color: var(--papier); padding: 12px 20px; border-radius: var(--rayon); }
.saut:focus { left: 8px; }

/* Bandeau d'annonce et en-tête */
.annonce { background: var(--encre); color: var(--papier); font-size: 1rem; }
.annonce .cadre { display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0; }
.annonce a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.entete { position: sticky; top: 0; z-index: 10; background: var(--papier); border-bottom: var(--trait); }
.entete .cadre { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: block; height: 40px; width: auto; }
.logo-sombre, :root[data-theme="sombre"] .logo-clair { display: none; }
:root[data-theme="sombre"] .logo-sombre { display: block; }
.btn-theme { padding: 0; width: var(--cible); }
.btn-theme svg { width: 24px; height: 24px; flex: none; }
:root[data-theme="sombre"] .btn-theme { background: var(--encre); color: #24543E; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { font-weight: 700; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 1rem; }
.nav a:hover { background: var(--sauge-fond); }
.entete-actions { display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--cible); padding: 0 20px; border-radius: var(--rayon); border: var(--trait); font: 700 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer; background: var(--carte); color: var(--encre); white-space: nowrap; }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: #8F3E1E; }
.btn-clair { background: var(--papier); color: var(--encre); margin-top: 28px; }

/* Hero : grande photo, texte posé sur un dégradé encre */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 820px); display: flex; align-items: center; padding: 96px 0; color: #fff; background: #1F2A2E; border-bottom: var(--trait); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 42, 46, 0.92) 0%, rgba(31, 42, 46, 0.78) 34%, rgba(31, 42, 46, 0.25) 62%, rgba(31, 42, 46, 0) 80%); }
.hero-contenu { position: relative; }

.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.02; margin: 0 0 22px; max-width: 11ch; }
.chapo { font-size: 1.5rem; max-width: 34ch; color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.badge { display: block; border-radius: 10px; cursor: not-allowed; }
.badge img { height: 56px; width: auto; }
.liste li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--foret) 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='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.jauge { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 3px; }
.jauge span { display: block; height: 100%; }
.jauge.grande { height: 26px; border-radius: 8px; border: 2px solid var(--encre); background: var(--carte); }
.ui-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-weight: 700; }
.ui-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -6px; }

/* Piliers */

/* Blocs */
.bloc { padding: 96px 0; }
.bloc-sauge { background: var(--sauge-fond); border-block: var(--trait); }
.bloc-creme { background: var(--creme); border-block: var(--trait); }
.surtitre { font-weight: 700; color: var(--foret-profond); margin-bottom: 12px; }
.surtitre.clair { color: var(--sauge); }
.bloc h2, .pros h2, .final h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; }
.texte { margin-top: 18px; max-width: 46ch; }
.liste { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.liste li { display: flex; gap: 12px; align-items: flex-start; }
.liste li::before { margin-top: 3px; }

.etapes { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.etapes li { background: var(--carte); border: var(--trait); border-radius: var(--rayon-l); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--encre); color: var(--papier); font: 800 1.4rem/1 var(--titre); }
.etapes h3 { font-size: 1.5rem; line-height: 1.1; }
.etapes p { font-size: 1em; }
.mini { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--encre); border-radius: var(--rayon); padding: 10px 12px; font-weight: 700; font-size: 1rem; background: var(--papier); }
.avatars { display: flex; }
.avatars img, .avatars i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--papier); color: #fff; font-style: normal; font-size: 13px; margin-right: -8px; }
.avatars img { object-fit: cover; border-color: var(--c); width: 36px; height: 36px; }
.avatars .plus { background: var(--papier); color: var(--encre); border: 2px dashed var(--encre); }
.mini-action { background: var(--action); color: #fff; padding: 6px 10px; border-radius: 8px; }
.mini-oui { background: var(--foret-profond); color: #fff; padding: 6px 16px; border-radius: 8px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.duo-inverse > :first-child { order: 2; }
.duo-img img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-position: 30% 35%; object-fit: cover; border: var(--trait); border-radius: 20px; }
.duo-ui { background: var(--sauge-fond); border: var(--trait); border-radius: 20px; padding: 48px 40px; }
.carte-ui { background: var(--carte); border: var(--trait); border-radius: var(--rayon-l); padding: 24px; }
.ui-titre { font: 800 1.35rem/1.1 var(--titre); margin-bottom: 16px; }
.ui-label { font-weight: 700; font-size: 1rem; margin: 12px 0 6px; }
.ui-leg { font-size: 0.875rem; margin-top: 14px; }
.ui-phrase { margin-top: 14px; font-size: 1em; color: var(--encre-douce); }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; align-items: stretch; }
.tarif { background: var(--carte); border: var(--trait); border-radius: var(--rayon-l); padding: 26px 22px; display: flex; flex-direction: column; }
.tarif h3 { font-size: 1.5rem; }
.prix { font: 800 2.1rem/1 var(--titre); margin-top: 18px; }
.prix small { font: 400 0.95rem var(--texte); }
.prix-an { font-size: 1rem; color: var(--encre-douce); margin-top: 6px; }
.tarif .liste { font-size: 1em; border-top: 2px solid var(--encre); padding-top: 18px; margin-top: 18px; }
.tarif-fort { background: var(--foret-profond); color: #fff; }
.tarif-fort .prix-an { color: #DDE8DA; }
.tarif-fort .liste { border-color: var(--sauge); }
.tarif-fort .liste li::before { background-color: var(--sauge); }
.etiquette { align-self: flex-start; background: var(--sauge); color: var(--encre); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 0.875rem; margin-bottom: 12px; }
.note { margin-top: 18px; font-size: 1rem; color: var(--encre-douce); }

/* Structures */
.pros { background: var(--encre); color: var(--papier); padding: 96px 0; }
.pros .texte { color: #E6E1D6; }
.pros-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pros-liste li { border: 3px solid var(--papier); border-radius: var(--rayon-l); padding: 22px 24px; display: grid; gap: 4px; }
.pros-liste strong { font: 800 1.4rem/1.1 var(--titre); color: var(--sauge); }

/* Questions */
.faq-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--carte); border: var(--trait); border-radius: var(--rayon); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; list-style: none; min-height: var(--cible); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 800 1.6rem/1 var(--titre); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; }

/* Appel final */
.final { background: var(--foret-profond); color: #fff; border-top: var(--trait); padding: 72px 0; }
.final-grille { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.final-logo { width: auto; height: 60px; }
.final p { margin-top: 10px; max-width: 44ch; color: #E3ECDF; }
.final .badges { margin-top: 0; }

/* Pied de page */
.pied { background: var(--papier); border-top: var(--trait); padding: 56px 0 28px; font-size: 1.125rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.pied h2 { font: 800 1.05rem/1.2 var(--titre); margin-bottom: 14px; }
.pied nav, .pied-grille > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pied nav a { text-decoration: none; padding: 4px 0; }
.pied nav a:hover, .pied-grille > div > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pied-marque .signature { color: #24543E; font-weight: 700; font-size: 1rem; margin: 2px 0 0 5px; }
:root[data-theme="sombre"] .pied-marque .signature { color: #F6F1E7; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 2px solid var(--encre); font-size: 0.875rem; color: var(--encre-douce); }

/* Le cercle de l'aîné, repris du pitch deck */
.piliers-grille { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.piliers-grille li { background: var(--carte); border: var(--trait); border-radius: var(--rayon-l); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.piliers-grille strong { font: 800 1.5rem/1.25 var(--titre); }
.piliers-grille span { font-size: 1em; color: var(--encre-douce); }
.cercle { position: relative; margin: 0 auto; width: 100%; max-width: 560px; aspect-ratio: 1; }
.cercle ul { list-style: none; margin: 0; padding: 0; }
.cercle-anneau { position: absolute; inset: 12%; border: 3px dashed var(--encre); border-radius: 50%; }
.cercle-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center; }
.cercle-centre img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 5px solid var(--encre); }
.cercle-centre strong { font: 800 1.5rem/1.1 var(--titre); white-space: nowrap; }
.proche { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; line-height: 1.2; width: 150px; }
.proche img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 5px solid var(--c); margin-bottom: 4px; }
.proche strong, .proche span { background: var(--papier); padding: 0 6px; border-radius: 4px; }
.proche strong { font-size: 1rem; }
.proche span { font-size: 0.8rem; color: var(--encre-douce); }

/* Écrans moyens et petits */
@media (max-width: 1100px) {
  .nav { display: none; }
  .entete-actions { margin-left: auto; }
  .tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .duo, .faq-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .duo-inverse > :first-child { order: 0; }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .final-grille { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 24px; }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bloc, .pros { padding: 72px 0; }
}
@media (max-width: 560px) {
  .cadre { width: calc(100% - 32px); }
  .btn-action { display: none; }
  .logo { height: 32px; }
  .hero { min-height: 0; padding: 280px 0 48px; align-items: flex-end; }
  .hero-photo { height: 340px; object-position: 62% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(31, 42, 46, 0) 0%, rgba(31, 42, 46, 0) 200px, #1F2A2E 340px); }
  .proche { width: 96px; }
  .proche img { width: 54px; height: 54px; border-width: 4px; }
  .proche span { display: none; }
  .cercle-centre img { width: 104px; height: 104px; }
  .cercle-centre strong { font-size: 0.95rem; }
  .piliers-grille { grid-template-columns: minmax(0, 1fr); }
  .tarifs, .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .duo-ui { padding: 24px 18px; }
}

/* Thème sombre : blocs qui gardent un fond foncé fixe */
:root[data-theme="sombre"] .annonce, :root[data-theme="sombre"] .pros, :root[data-theme="sombre"] .final, :root[data-theme="sombre"] .tarif-fort { background: var(--fonce); color: #F6F1E7; }
:root[data-theme="sombre"] .mini-oui, :root[data-theme="sombre"] .num, :root[data-theme="sombre"] .saut { color: #1F2A2E; }
:root[data-theme="sombre"] .annonce a { color: #F6F1E7; }
:root[data-theme="sombre"] .btn-clair { background: #F6F1E7; color: #1F2A2E; }
:root[data-theme="sombre"] .etiquette { color: #1F2A2E; }
