/* Styles communs du site — valeurs reprises des maquettes (Claude Design, « Gus — landing & configuration »). */
:root {
  --creme: #FFF8EC; --encre: #1B1F3B; --encre-2: #3B4066; --gris: #4A5563;
  --jaune: #FFC93C; --jaune-fonce: #F2A71F; --corail: #FF8A6B; --menthe: #D3F1E3;
  --sable: #EADFC8; --sable-clair: #F4EEE2; --miel: #FFEFC2; --ligne: #E4E8E4; --fond-carte: #F8FAF8;
  --lien: #2A2F6B;
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --texte: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--creme); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; }
a { color: var(--lien); }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--titre); letter-spacing: -0.03em; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
       text-decoration: none; color: var(--encre); background: var(--sable-clair); }
.btn-jaune { background: var(--jaune); font-weight: 800; }
.btn-nuit { background: var(--encre); color: #fff; }
.btn-nuit:hover { color: #fff; }
.btn-lien { background: transparent; color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.btn-grand { width: 100%; min-height: 60px; font-size: 18px; font-weight: 800; background: var(--jaune);
             box-shadow: 0 4px 0 var(--encre); }
.btn-grand:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--encre); }
.btn[disabled] { cursor: not-allowed; opacity: .55; }
.btn-bientot { background: var(--sable-clair); color: var(--gris); font-weight: 600; cursor: default; }

/* ---------- Parcours d'inscription (écrans A1 à A5) ---------- */
.ecran { max-width: 430px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
         padding: max(56px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)); }
.etape { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.barre { display: flex; align-items: center; gap: 12px; }
.retour { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center;
          cursor: pointer; color: var(--encre); flex: none; }
.progres { display: flex; gap: 6px; flex: 1; }
.progres span { height: 4px; flex: 1; border-radius: 4px; background: var(--sable); }
.progres span.fait { background: var(--encre); }
.compteur { font-weight: 800; font-size: 14px; }
.ecran h1 { font-size: 32px; line-height: 1.05; font-weight: 800; }
.dialogue { display: flex; align-items: flex-end; gap: 10px; }
.dialogue svg { flex: none; }
.bulle { background: #fff; border-radius: 18px 18px 18px 6px; padding: 14px 16px; font-size: 16px; line-height: 1.4;
         font-weight: 500; box-shadow: 0 1px 2px rgba(27,31,59,.08); }
.bienvenue { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.bienvenue h1 { font-size: 44px; }
.bienvenue p { margin: 0; font-size: 18px; color: var(--encre-2); }
.rassure { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.compte { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 14px 22px; border-radius: 18px;
          border: 2px solid var(--encre); background: #fff; color: var(--encre); font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.compte strong { font-size: 17px; }
.compte span { font-size: 13px; color: var(--encre-2); }
.compte.principal { background: var(--encre); color: #fff; }
.compte.principal span { color: #C3C7E6; }
.compte.bientot { cursor: default; opacity: .6; }
.compte .etiquette { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--gris); }
.note { background: var(--menthe); border-radius: 18px; padding: 16px; font-size: 14px; }
.note p { margin: 4px 0 0; }
.choix { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: #fff;
         border: 2px solid var(--ligne); cursor: pointer; }
.choix:has(input:checked) { background: var(--miel); border-color: var(--encre); }
.choix input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--encre); flex: none; }
.choix strong { font-size: 17px; }
.choix span { display: block; font-size: 14px; color: var(--encre-2); }
.pastille { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--jaune);
            font-size: 12px; font-weight: 800; vertical-align: 2px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--encre); }
.option .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 22px; }
.option strong { display: block; font-size: 16px; }
.option .ico svg { color: var(--encre); }
.option .texte { flex: 1; min-width: 0; }
.option .texte span { display: block; font-size: 13px; color: var(--encre-2); }
.option .droite { margin-left: auto; }
.option input[type=time] { font: inherit; font-weight: 700; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--sable); background: var(--creme); }
.erreur { background: #FBE6E3; color: #9B2C1F; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.champ { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--sable); font: inherit;
         font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--encre); }
.pied { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* Écran A5 : l'accueil */
.entete-accueil { display: flex; align-items: center; gap: 12px; }
.entete-accueil strong { display: block; font-size: 17px; }
.entete-accueil span { font-size: 13px; color: var(--encre-2); }
.entete-accueil .reglages { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--encre); }
.carte { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.carte h3 { font-family: var(--texte); letter-spacing: 0; font-size: 16px; font-weight: 700; }
.carte p { margin: 0; font-size: 14px; color: var(--encre-2); }
.carte .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.carte.faite { opacity: .65; }
.tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-agenda { background: #E3EAF8; color: #24479A; }
.tag-mails { background: #FDF1D9; color: #7A5200; }
.tag-proches { background: #FFD3C4; color: #9B2C1F; }
.tag-papiers, .tag-argent { background: #EFE6F8; color: #5B3392; }
.tag-gus { background: var(--menthe); color: #1D6B33; }
.liste-mails { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.liste-mails li { padding: 8px 10px; background: var(--fond-carte); border-radius: 12px; }
.suggestion { border: 1.5px dashed var(--sable); border-radius: 20px; padding: 16px; font-size: 14px; }
.discussion { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.msg.moi { align-self: flex-end; background: var(--encre); color: #fff; border-bottom-right-radius: 6px; }
.msg.lui { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.saisie { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 max(12px, env(safe-area-inset-bottom));
          background: var(--creme); box-shadow: 0 -1px 0 var(--sable); }
.saisie input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff;
                box-shadow: 0 0 0 1.5px var(--sable); font: inherit; font-size: 15px; color: var(--encre); }
.micro { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--jaune); display: grid; place-items: center;
         box-shadow: 0 3px 0 var(--encre); cursor: pointer; color: var(--encre); flex: none; }
.micro.ecoute { background: var(--corail); }
.bandeau { background: var(--encre); color: #fff; border-radius: 18px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.bandeau .btn { margin-left: auto; flex: none; }

/* ---------- Pages larges (réglages, mon espace) ---------- */
.haut { background: #fff; border-bottom: 1px solid var(--ligne); }
.haut .contenu { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 800; font-size: 22px;
          color: var(--encre); text-decoration: none; letter-spacing: -0.03em; }
.haut nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.haut nav a { color: var(--encre-2); text-decoration: none; }
.haut nav a[aria-current] { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }
.contenu { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.intro { padding: 48px 0 24px; }
.intro h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1; font-weight: 800; }
.intro p { color: var(--encre-2); font-size: 18px; max-width: 60ch; }
.grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-bottom: 64px; }
@media (max-width: 900px) { .grille { grid-template-columns: 1fr; } }
.bloc { background: #fff; border: 1px solid var(--ligne); border-radius: 24px; padding: 28px; margin-bottom: 24px; }
.bloc-titre { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.bloc-titre .num { width: 32px; height: 32px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center;
                   font-weight: 800; font-size: 14px; flex: none; margin-top: 4px; }
.bloc-titre h2 { font-size: 24px; font-weight: 700; }
.bloc-titre p { margin: 2px 0 0; font-size: 14px; color: var(--gris); }
.styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.style { text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding: 20px; border-radius: 18px;
         font: inherit; color: var(--encre); cursor: pointer; background: #fff; border: 2px solid var(--ligne); }
.style[aria-pressed=true] { background: var(--miel); border-color: var(--lien); }
.style strong { font-family: var(--titre); font-size: 20px; }
.style span { font-size: 14px; color: var(--gris); }
.groupe { margin: 24px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.groupe h3 { font-family: var(--texte); letter-spacing: 0; font-size: 16px; font-weight: 700; }
.groupe span { font-size: 13px; color: var(--gris); }
.appli { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--fond-carte);
         border: 1px solid #EEF1EE; margin-bottom: 8px; flex-wrap: wrap; }
.appli .lettre { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; }
.appli .nom { flex: 1; min-width: 180px; }
.appli .nom strong { display: block; font-size: 15px; }
.appli .nom span { font-size: 13px; color: var(--gris); }
.appli .etat { font-size: 13px; font-weight: 700; color: #1D6B33; }
.niveaux { display: inline-flex; background: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: 3px; }
.niveaux button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px;
                  border-radius: 999px; cursor: pointer; color: var(--gris); }
.niveaux button[aria-pressed=true] { background: var(--encre); color: #fff; }
.gardefous { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gardefou { background: var(--creme); border-radius: 16px; padding: 16px; font-size: 13px; color: var(--gris); }
.gardefou strong { display: block; color: var(--encre); font-size: 15px; margin-bottom: 8px; }
.gardefou input { width: 110px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #C9D1CB; font: inherit; font-size: 16px; }
.panneau { background: var(--encre); color: #fff; border-radius: 24px; padding: 24px; position: sticky; top: 24px; }
.panneau .surtitre { color: var(--jaune); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.panneau h2 { font-size: 24px; margin: 6px 0 4px; }
.panneau .mode { font-size: 14px; color: #C3C7E6; margin: 0 0 16px; }
.panneau ul { list-style: none; margin: 0 0 16px; padding: 16px; border-radius: 16px; border: 1px dashed #4A5079; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.panneau ul li::before { content: "✓ "; color: var(--jaune); font-weight: 800; }
.panneau .garanties span { display: flex; gap: 8px; align-items: flex-start; }
.panneau .garanties svg, .gardefou strong svg { flex: none; margin-top: 2px; }
.panneau .garanties { background: #2A2F55; border-radius: 16px; padding: 14px 16px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.panneau .btn { width: 100%; }
.panneau .info { font-size: 13px; color: #C3C7E6; margin: 12px 0 0; }
.panneau .info code { color: #fff; word-break: break-all; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td, .table th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.table th { font-size: 12px; color: var(--gris); font-weight: 700; }
.vide { color: var(--gris); font-size: 14px; padding: 12px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--encre); color: #fff;
         padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 10; }
.texte-page { max-width: 72ch; padding: 48px 24px 80px; margin: 0 auto; }
.texte-page h1 { font-size: 40px; margin-bottom: 24px; }
.texte-page h2 { font-size: 22px; margin: 32px 0 8px; }
.texte-page .a-completer { background: var(--miel); padding: 2px 6px; border-radius: 6px; }

/* ---------- Landing : adaptation mobile (la maquette est dessinée en 1440 px) ---------- */
@media (max-width: 760px) {
  .landing [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .landing [style*="font-size: 72px"], .landing [style*="font-size: 64px"] { font-size: 44px !important; }
  .landing [style*="font-size: 56px"], .landing [style*="font-size: 52px"], .landing [style*="font-size: 48px"] { font-size: 34px !important; }
  .landing [style*="padding: 96px"], .landing [style*="padding: 120px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.regles{list-style:none;padding:0;margin:0}
.liste-mails a { color: inherit; text-decoration: none; display: block; }
.liste-mails a:hover { text-decoration: underline; }
.fenetre{border:2px solid var(--encre);border-radius:20px;padding:22px;max-width:440px;width:calc(100% - 32px);background:#fff;color:var(--encre)}
.fenetre::backdrop{background:rgba(27,31,59,.45)}
.fenetre h2{margin:0 0 10px;font-size:22px}
.fenetre ol{padding-left:20px;margin:0 0 14px;font-size:15px;line-height:1.5}
.champ-cle{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-weight:700;font-size:14px}
.champ-cle input{font:inherit;font-weight:400;padding:10px 12px;border-radius:12px;border:1.5px solid #C9D1CB}
.erreur{color:#9B2C1F;font-weight:700}

/* champ secret masqué sans déclencher le trousseau (qui proposerait le vrai mot de passe Apple) */
.masque { -webkit-text-security: disc; }

/* Connexions rangées comme l'App Store (maquettes D1 à D3) */
.cat-bulle { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.cat-bulle > div { flex: 1; background: var(--creme); border-radius: 22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.cat-bulle strong { font-size: 18px; }
.cat-bulle span { color: var(--encre-2); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cat-pt { width: 9px; height: 9px; border-radius: 50%; background: #2E9E5B; }
.cat-panneau { background: var(--miel); border-radius: 26px; padding: 16px 18px 18px; margin-bottom: 16px; }
.cat-surtitre { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #7A5200; margin: 0 0 10px; }
.fiche .cat-surtitre { color: #7A6A4F; margin: 18px 0 8px; }
.cat-sugg { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.cat-sugg-un { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cat-sugg-un > span { color: #7A5200; font-size: 13px; }
.cat-sugg-logo { background: none; border: 0; padding: 0; cursor: pointer; }
.cat-sugg-btn { min-height: 40px; width: 100%; padding: 0 10px; margin-top: 6px; box-shadow: 0 3px 0 var(--encre); }
.cat-filtres { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.cat-filtre { flex: none; border: 1.5px solid var(--sable); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--encre); }
.cat-filtre.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.cat-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 18px 8px; margin-top: 14px; }
.cat-case { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--encre); }
.cat-logo-wrap { position: relative; display: inline-flex; }
.cat-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 22%; border: 1px solid #F1E6D6; box-shadow: 0 2px 6px rgba(29,32,64,.06); font-weight: 800; overflow: hidden; }
.cat-logo img { object-fit: contain; }
.cat-logo.estompe { opacity: .45; }
.cat-nom { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.cat-nom.estompe { color: var(--gris); }
.cat-coche { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; background: #2E9E5B; color: #fff; border: 2px solid var(--creme); display: inline-flex; align-items: center; justify-content: center; }
.cat-pastille { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--sable-clair); color: var(--encre-2); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cat-pastille.jaune { background: var(--jaune); color: var(--encre); bottom: auto; top: -10px; }
.cat-ico { display: inline-flex; }
.cat-sous { color: var(--encre-2); font-size: 14px; margin: 8px 0 0; }
.cat-sous.centre { text-align: center; }
.cat-ok { color: #1D6B33; display: inline-flex; }
.fiche { max-width: 460px; width: calc(100% - 24px); background: var(--creme); }
.fiche-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.fiche-tete > div { flex: 1; }
.fiche-tete h2 { margin: 0 0 6px; font-size: 28px; }
.fiche-puces { display: flex; gap: 6px; flex-wrap: wrap; }
.fiche-puce { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.fiche-puce.bleu { background: #DCE6F7; color: #2A4A8A; } .fiche-puce.vert { background: var(--menthe); color: #1D6B33; }
.fiche-puce.jaune { background: var(--jaune); color: var(--encre); } .fiche-puce.gris { background: var(--sable-clair); color: var(--gris); }
.fiche-fermer { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer; align-self: flex-start; }
.fiche-question, .fiche-action { display: flex; width: 100%; justify-content: center; border-radius: 999px; min-height: 56px; font-size: 17px; box-shadow: 0 4px 0 var(--encre); margin-bottom: 14px; }
.fiche-reponse { background: #fff; border-radius: 18px; padding: 12px 16px; margin: 0 0 14px; white-space: pre-line; }
.fiche-nuit { background: var(--encre); color: #fff; border-radius: 26px; padding: 18px 20px; margin-bottom: 14px; }
.fiche-nuit-t { display: block; color: var(--jaune); font-weight: 800; letter-spacing: .05em; font-size: 14px; margin-bottom: 8px; }
.fiche-stat { display: flex; flex-direction: column; margin-top: 6px; }
.fiche-stat strong { font-family: var(--titre); font-size: 32px; line-height: 1.1; }
.fiche-stat span, .fiche-nuit p { color: #C3C7E6; }
.fiche-nuit p { color: #fff; margin: 10px 0 0; font-size: 17px; }
.fiche-neutre { background: var(--sable-clair); color: var(--gris); box-shadow: none; align-items: center; font-weight: 700; }
.fiche-bloc ul { list-style: none; margin: 0; padding: 2px 16px; background: #fff; border-radius: 18px; }
.fiche-bloc li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #F1E6D6; }
.fiche-bloc li:last-child { border-bottom: 0; }
.fiche-acces { background: #fff; border-radius: 18px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fiche-acces span { color: var(--encre-2); font-size: 14px; text-align: right; }
.fiche-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--encre-2); font-size: 14px; }
.fiche-deco { color: #9B2C1F; font-weight: 700; text-decoration: none; }
.grille > div { min-width: 0; }
.fiche-acces strong { white-space: nowrap; }
