/* Couleurs : celles de docs/brief.md §2.1, rien d'autre. Jamais d'ombre, jamais de dégradé ; deux graisses (400, 500). */
:root {
  --page: #FFFFFF;
  --carte: #FFFFFF;
  --act1-fond: #BFD3C7;
  --act1-texte: #1C2A24;
  --act2-fond: #D2E1D8;
  --act2-texte: #2E3D37;
  --eteint-fond: #E1E9E5;
  --eteint-texte: #5F6F67;
  --accent: #55917F;
  --accent-f: #427564;
  --neutre: #F2F7F4;
  --teinte: #E4EFE9;
  --p1: #12211C;
  --p2: #4A5D56;
  --p2-fond: #243330;
  --sep: #E1E9E5;
  --bord: #C4CFCA;
}

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('polices/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('polices/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('polices/open-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('polices/open-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--p1); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-f); outline-offset: 3px; }

.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 680px; }
.evitement { position: absolute; left: 16px; top: -64px; background: var(--carte); color: var(--p1); padding: 10px 16px; border-radius: 16px; z-index: 10; border: 0.5px solid var(--sep); }
.evitement:focus { top: 12px; }

/* En-tête */
.entete { background: var(--page); position: sticky; top: 0; z-index: 5; border-bottom: 0.5px solid var(--sep); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mot { font-family: 'Open Sans', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 26px; color: var(--p1); letter-spacing: -0.2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 16px; text-decoration: none; font-size: 15px; color: var(--p2); }
.nav a:hover { background: var(--neutre); color: var(--p1); }
.nav .nav-action { background: var(--act1-fond); color: var(--act1-texte); font-weight: 500; margin-left: 8px; }
.nav .nav-action:hover { background: var(--act2-fond); }

/* Accroche */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); line-height: 1.1; letter-spacing: -0.8px; }
.chapeau { margin-top: 22px; max-width: 30em; font-size: 18px; color: var(--p2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.actions-centre { justify-content: center; }
.lien-discret { color: var(--accent-f); font-weight: 500; text-decoration: none; }
.lien-discret:hover { text-decoration: underline; text-underline-offset: 4px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; font-size: 16px; font-weight: 500; text-decoration: none; }
.bouton-1 { background: var(--act1-fond); color: var(--act1-texte); }
.bouton-2 { background: var(--act2-fond); color: var(--act2-texte); }
.bouton-1:hover, .bouton-2:hover { background: var(--teinte); }

/* Bouton « App Store » (désactivé tant que l'application n'est pas publiée) */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--eteint-fond); color: var(--eteint-texte); cursor: not-allowed; }
.store-texte { display: flex; flex-direction: column; font-size: 18px; font-weight: 500; line-height: 1.1; }
.store-texte small { font-size: 11px; font-weight: 400; }

/* Téléphone : un cadre dans lequel viendra une capture de l'application */
.hero-visuel { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.telephone { position: relative; width: min(280px, 70vw); aspect-ratio: 1206 / 2622; border: 9px solid var(--p1); border-radius: 46px; background: var(--carte); overflow: hidden; }
.ecran { height: 100%; background: var(--neutre); }
.ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.trait { position: absolute; inset: 0; width: 100%; height: 100%; }
.bulle { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teinte); color: var(--accent); }
.bulle-1 { right: 2%; top: 20%; }
.bulle-2 { left: 4%; bottom: 14%; }

/* Sections */
.section { padding: 80px 0; }
.section-teinte { background: var(--neutre); }
.section-centre { text-align: center; }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -0.5px; }
.sous-titre { margin-top: 16px; color: var(--p2); font-size: 18px; }
.note { margin-top: 14px; font-size: 14px; color: var(--p2); }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; text-align: center; }
.etapes li { padding: 8px 20px; }
.icone { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teinte); color: var(--accent-f); }
.etapes h3 { font-size: 20px; margin: 18px 0 8px; }
.etapes p { color: var(--p2); }

.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.duo-texte p { margin-top: 18px; color: var(--p2); font-size: 18px; }
.duo-texte .note { font-size: 14px; }
.duo-visuel { display: flex; justify-content: center; }
.duo-inverse .duo-texte { order: 2; }
.duo-inverse .duo-visuel { order: 1; }

.sur-titre { font-size: 13px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent-f); margin-bottom: 10px; }
.duo-texte .sur-titre { margin-top: 0; font-size: 13px; color: var(--accent-f); }
.liste { margin-top: 24px; display: grid; gap: 12px; }
.liste li { display: flex; gap: 12px; align-items: flex-start; color: var(--p1); }
.liste li svg { flex: none; margin-top: 3px; color: var(--accent-f); }
.centre { text-align: center; }

/* Questions fréquentes */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--carte); border: 0.5px solid var(--bord); border-radius: 22px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-f); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--p2); }

/* Adresse e-mail à copier */
.adresse { margin-top: 20px; color: var(--p2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.adresse strong { font-weight: 500; color: var(--p1); user-select: all; }
.copier { font: inherit; font-size: 14px; font-weight: 500; color: var(--accent-f); background: var(--carte); border: 0.5px solid var(--bord); border-radius: 16px; padding: 6px 14px; cursor: pointer; }
.copier:hover { background: var(--teinte); }
.copie { min-width: 8em; text-align: left; font-size: 14px; color: var(--accent-f); }

/* Pages légales */
.page { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.5px; }
.prose h2 { font-size: 22px; letter-spacing: -0.3px; margin: 40px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--p2); }
.prose p { margin: 10px 0; }
.prose ul { margin: 10px 0; padding-left: 22px; list-style: disc; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--p1); font-weight: 500; }
.prose a { color: var(--accent-f); text-underline-offset: 3px; }
.maj { margin-top: 10px; font-size: 14px; }
.provisoire { margin: 24px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--teinte); color: var(--p1) !important; font-size: 15px; }
.a-completer { padding: 1px 8px; border: 1px dashed var(--accent-f); border-radius: 8px; background: var(--teinte); color: var(--accent-f); font-size: 14px; }

/* Pied */
.pied { padding: 40px 0 28px; font-size: 13px; color: var(--p2); border-top: 0.5px solid var(--sep); }
.pied-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied-liens a { text-decoration: none; font-size: 14px; }
.pied-liens a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 0.5px solid var(--sep); }

@media (max-width: 820px) {
  .trait, .bulle { display: none; }
  .hero-grille, .duo { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 24px 0 48px; }
  .duo-inverse .duo-texte, .duo-inverse .duo-visuel { order: 0; }
  .etapes { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .nav li:nth-child(-n+4) { display: none; }
  .actions .bouton, .actions .store { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tableaux des pages légales (politique de confidentialité) : défilent à l'intérieur de leur cadre sur un petit écran. */
.tableau-defilant { overflow-x: auto; margin: 16px 0; border: 1px solid var(--sep, rgba(0, 0, 0, 0.12)); border-radius: 12px; }
.tableau-defilant:focus-visible { outline: 2px solid var(--accent-f); outline-offset: 2px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--sep, rgba(0, 0, 0, 0.1)); color: var(--p2); }
.prose th { color: var(--p1); font-weight: 500; background: var(--neutre); }
.prose tr:last-child td { border-bottom: 0; }

/* Petit écran : chaque ligne du tableau devient une fiche, avec le nom de la colonne devant chaque valeur. */
@media (max-width: 720px) {
  .tableau-defilant { overflow-x: visible; border: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; min-width: 0; width: 100%; }
  .prose thead { position: absolute; left: -9999px; }
  .prose tr { border: 1px solid var(--sep); border-radius: 12px; margin: 0 0 12px; padding: 4px 0; }
  .prose td { border: 0; padding: 6px 14px; }
  .prose td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--p1); }
}
