/* ══════════════════════════════════════════════════════════════════════
   ESPACE D'ÉQUIPE WIRLO — styles de la porte et du tableau de bord
   Créé le 03/11/2026. Charte Wirlo : papier blanc, encre brun-noir,
   vert sapin ; Newsreader (titres) + Work Sans (texte). Aéré (demande
   de Gwen). La bulle et l'éditeur de capture ont leur feuille : bulle.css.
   ----------------------------------------------------------------------
   1. Polices et couleurs      5. Accueil
   2. Base                     6. Cartes, listes, fil
   3. Porte d'entrée           7. Aperçu du site
   4. Entête et onglets        8. Fenêtres, fichiers, réglages, téléphone
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Polices et couleurs ───────────────────────────────────────── */
@font-face { font-family: "Newsreader"; src: url("/assets/polices/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/polices/work-sans-latin-500-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/polices/work-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --papier: #FBFAF7;
  --blanc: #FFFFFF;
  --teinte: #F1EEE9;
  --encre: #26221E;
  --encre-douce: #5E574F;
  --trait: #E2DDD6;
  --sapin: #2F6048;
  --sapin-clair: #E3EEE8;
  --rouge: #C2410C;
  --rouge-clair: #FDEBDD;
  --jaune: #B7791F;
  --jaune-clair: #FBF0D9;
  --bleu: #2B4C7E;
  --bleu-clair: #E3EAF5;
  --w1: #2F6048;
  --w2: #A1542B;
  --w3: #2B4C7E;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(38, 34, 30, .05), 0 8px 24px rgba(38, 34, 30, .06);
  --ombre-haute: 0 2px 4px rgba(38, 34, 30, .06), 0 18px 40px rgba(38, 34, 30, .12);
}

/* ── 2. Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 500 17px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--sapin); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sapin); outline-offset: 2px; border-radius: 6px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.lien-evitement:focus { left: 8px; }
[hidden] { display: none !important; }

.message { padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; }
.message.erreur { background: var(--rouge-clair); color: #7C2D12; }
.message.ok { background: var(--sapin-clair); color: #1E4231; }

.bouton-principal, .bouton, .bouton-doux, .bouton-lien {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bouton-principal { background: var(--encre); color: #fff; }
.bouton-principal:hover { background: var(--sapin); transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton { background: var(--blanc); color: var(--encre); border: 1.5px solid var(--trait); }
.bouton:hover { border-color: var(--encre); }
.bouton-doux { background: var(--teinte); color: var(--encre); }
.bouton-doux:hover { background: var(--trait); }
.bouton-lien { background: none; color: var(--sapin); padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.bouton-danger { color: var(--rouge); }

/* Avatars : une couleur par membre (classes, pas de style dans le HTML : CSP) */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font: 600 1rem/1 var(--serif); background: var(--encre); }
.av-w1 { background: var(--w1); }
.av-w2 { background: var(--w2); }
.av-w3 { background: var(--w3); }
.av-site { background: var(--encre); }
.avatar-s { width: 32px; height: 32px; font-size: .95rem; }
.avatar-m { width: 44px; height: 44px; font-size: 1.15rem; }
.avatar-l { width: 84px; height: 84px; font-size: 2.2rem; }
.avatar-xl { width: 104px; height: 104px; font-size: 2.8rem; margin: 0 auto 18px; }

/* ── 3. Porte d'entrée ────────────────────────────────────────────── */
.porte { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--sapin-clair), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, var(--jaune-clair), transparent 55%), var(--papier); }
.porte-carte { width: min(560px, 100%); background: var(--blanc); border-radius: 28px; padding: clamp(28px, 6vw, 56px); box-shadow: var(--ombre-haute); text-align: center; }
.porte-marque { font: 600 1.5rem/1 var(--serif); margin: 0 0 28px; }
.porte-marque span, .eq-marque span { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sapin); background: var(--sapin-clair); padding: 5px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.porte-intro { color: var(--encre-douce); margin: 0 0 28px; }
.porte-form { text-align: left; }
.porte-form label { display: block; font-weight: 600; margin: 0 0 8px; }
.qui { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qui-choix { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: 20px; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.qui-choix:hover { background: var(--teinte); transform: translateY(-2px); }
.qui-choix input { position: absolute; opacity: 0; pointer-events: none; }
.qui-choix:has(input:checked) { border-color: var(--encre); background: var(--teinte); }
.qui-choix:has(input:focus-visible) { outline: 3px solid var(--sapin); outline-offset: 2px; }
.qui-prenom { font-weight: 600; }
#form-entrer.choisi .qui-choix:not(:has(input:checked)) { opacity: .5; }
.porte-code { display: none; }
.porte-code.ouvert, .porte-form:not(#form-entrer) .porte-code { display: block; animation: monter .25s ease; }
.porte-code .bouton-principal, .porte-form > .bouton-principal { width: 100%; margin-top: 18px; }
.porte-code .bouton-lien { width: 100%; margin-top: 10px; font-size: .95rem; }
.champ-code { display: flex; gap: 8px; }
.champ-code input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 2px solid var(--trait); border-radius: 14px; font-size: 1.2rem; letter-spacing: .02em; background: var(--blanc); }
.champ-code input:focus { border-color: var(--encre); outline: none; }
.oeil { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--trait); background: var(--blanc); font-size: 1.3rem; }
.oeil[aria-pressed="true"] { background: var(--teinte); }
.aide { color: var(--encre-douce); font-size: .9rem; margin: 8px 0 0; }
@keyframes monter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 4. Entête et onglets ─────────────────────────────────────────── */
.eq-entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.eq-marque { font: 600 1.4rem/1 var(--serif); color: var(--encre); text-decoration: none; white-space: nowrap; }
.eq-onglets { display: flex; gap: 4px; flex: 1; justify-content: center; }
.eq-onglets button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 600; color: var(--encre-douce); }
.eq-onglets button:hover { background: var(--teinte); color: var(--encre); }
.eq-onglets button.actif { background: var(--encre); color: #fff; }
.pastille { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rouge); color: #fff; font: 700 .75rem/1 var(--sans); animation: battre 1.6s ease-in-out 2; }
@keyframes battre { 50% { transform: scale(1.18); } }
.eq-moi { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 10px 6px 6px; border-radius: 999px; font-weight: 600; }
.eq-moi:hover { background: var(--teinte); }
.bandeau-bienvenue { margin: 0; padding: 14px 20px; text-align: center; background: var(--sapin-clair); color: #1E4231; font-weight: 600; }

.eq-contenu { width: min(1180px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 96px; }
.eq-chargement { color: var(--encre-douce); text-align: center; padding: 80px 0; }
.eq-titre { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.eq-titre p { margin: 0; color: var(--encre-douce); max-width: 60ch; }

/* ── 5. Accueil ───────────────────────────────────────────────────── */
.accueil-haut { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; margin-bottom: 40px; }
.salut { background: var(--encre); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.salut::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--sapin); opacity: .55; }
.salut h1 { font-size: clamp(2rem, 4vw, 2.8rem); position: relative; z-index: 1; }
.salut p { color: #D6D0C8; margin: 0; max-width: 42ch; position: relative; z-index: 1; }
.equipe-carte { background: var(--blanc); border-radius: 28px; padding: 28px; box-shadow: var(--ombre); }
.equipe-carte h2 { font-size: 1.2rem; margin-bottom: 18px; }
.membre-ligne { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.membre-ligne + .membre-ligne { border-top: 1px solid var(--trait); }
.membre-ligne small { display: block; color: var(--encre-douce); font-weight: 500; }
.membre-ligne b { font-weight: 600; }
.en-ligne { width: 10px; height: 10px; border-radius: 50%; background: #22A06B; margin-left: auto; box-shadow: 0 0 0 4px #DDF4E8; }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.action { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 26px; border-radius: 24px; border: 0; background: var(--blanc); box-shadow: var(--ombre); transition: transform .18s ease, box-shadow .18s ease; }
.action:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--ombre-haute); }
.action-icone { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; }
.action:nth-child(1) .action-icone { background: var(--rouge-clair); }
.action:nth-child(2) .action-icone { background: var(--jaune-clair); }
.action:nth-child(3) .action-icone { background: var(--bleu-clair); }
.action b { font: 600 1.25rem/1.2 var(--serif); }
.action span:last-child { color: var(--encre-douce); font-size: .95rem; }

.compteurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.compteur { background: var(--teinte); border-radius: 20px; padding: 20px 22px; }
.compteur strong { display: block; font: 600 2.2rem/1 var(--serif); margin-bottom: 6px; }
.compteur span { color: var(--encre-douce); font-size: .95rem; }

/* ── 6. Cartes, listes, fil ───────────────────────────────────────── */
.fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fil li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; }
.fil li.nouveau { background: var(--jaune-clair); }
.fil li button.fil-ouvrir { all: unset; cursor: pointer; display: block; flex: 1; min-width: 0; }
.fil li button.fil-ouvrir:focus-visible { outline: 3px solid var(--sapin); outline-offset: 4px; border-radius: 6px; }
.fil-texte { overflow-wrap: anywhere; }
.fil-texte q { color: var(--encre-douce); }
.fil-quand { display: block; color: var(--encre-douce); font-size: .85rem; margin-top: 2px; }
.fil-vide, .vide { color: var(--encre-douce); background: var(--teinte); border-radius: 20px; padding: 32px; text-align: center; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtres button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--blanc); font-weight: 600; font-size: .95rem; }
.filtres button.actif { background: var(--encre); color: #fff; border-color: var(--encre); }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.carte { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.carte.cliquable, .cliquable { cursor: pointer; }
.carte.cliquable:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte-image { position: relative; aspect-ratio: 16 / 10; background: var(--teinte); overflow: hidden; }
.carte-image .wb-rendu { position: absolute; inset: 0; }
.carte-corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte-texte { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-pied { display: flex; align-items: center; gap: 10px; margin-top: auto; color: var(--encre-douce); font-size: .9rem; }
.carte-pied .avatar { width: 26px; height: 26px; font-size: .8rem; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--teinte); white-space: nowrap; }
.etiquette.page { background: var(--bleu-clair); color: var(--bleu); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.etiquette.important { background: var(--rouge-clair); color: var(--rouge); }
.st-a_faire, .st-nouvelle { background: var(--jaune-clair); color: #7A4E0E; }
.st-en_cours, .st-retenue { background: var(--bleu-clair); color: var(--bleu); }
.st-fait { background: var(--sapin-clair); color: var(--sapin); }
.st-plus_tard { background: var(--teinte); color: var(--encre-douce); }
.st-ecartee { background: var(--teinte); color: var(--encre-douce); text-decoration: line-through; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }

/* Idées : composer + jours */
.composer { background: var(--blanc); border-radius: 24px; box-shadow: var(--ombre); padding: 22px; margin-bottom: 48px; }
.composer textarea, .zone-texte { width: 100%; min-height: 110px; border: 2px solid var(--trait); border-radius: 14px; padding: 14px 16px; resize: vertical; background: var(--papier); line-height: 1.5; }
.composer textarea:focus, .zone-texte:focus { outline: none; border-color: var(--encre); background: var(--blanc); }
.composer-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.composer-pied .bouton-principal { margin-left: auto; }
.case { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; min-height: 44px; }
.case input { width: 20px; height: 20px; accent-color: var(--rouge); }
.joindre { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--encre-douce); }
.joindre input { position: absolute; opacity: 0; width: 1px; }
.joint { font-size: .9rem; color: var(--sapin); }
.jour { margin: 0 0 40px; }
.jour h3 { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; color: var(--encre-douce); margin-bottom: 18px; }
.jour h3::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.idees { display: grid; gap: 18px; }
.idee { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.idee .avatar { grid-row: span 3; }
.idee-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.idee-tete b { font-weight: 600; }
.idee-tete time { color: var(--encre-douce); font-size: .9rem; }
.idee-texte { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; }
.idee-image { max-height: 360px; width: auto; border-radius: 12px; margin-top: 8px; cursor: zoom-in; }
.idee-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.reaction { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--blanc); font-weight: 600; font-size: .9rem; transition: transform .12s; }
.reaction:hover { transform: scale(1.08); }
.reaction.moi { background: var(--jaune-clair); border-color: var(--jaune); }
.reaction:active { transform: scale(.92); }
select.statut { min-height: 38px; border-radius: 999px; border: 1.5px solid var(--trait); padding: 0 12px; background: var(--blanc); font-weight: 600; font-size: .9rem; }
.idee-reponses { grid-column: 2; }

/* Réponses (fil d'une remarque, d'une idée, d'un fichier) */
.reponses { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.reponse { display: flex; gap: 12px; align-items: flex-start; }
.reponse .avatar { width: 30px; height: 30px; font-size: .85rem; }
.bulle-reponse { background: var(--teinte); border-radius: 4px 16px 16px 16px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle-reponse small { display: block; color: var(--encre-douce); font-size: .8rem; margin-bottom: 2px; }
.repondre { display: flex; gap: 10px; margin-top: 12px; }
.repondre textarea { flex: 1; min-height: 48px; height: 48px; border: 2px solid var(--trait); border-radius: 14px; padding: 11px 14px; resize: vertical; background: var(--papier); }
.repondre textarea:focus { outline: none; border-color: var(--encre); }

/* ── 7. Aperçu du site ────────────────────────────────────────────── */
.apercu-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.apercu-barre select { min-height: 48px; border-radius: 14px; border: 2px solid var(--trait); padding: 0 14px; background: var(--blanc); font-weight: 600; max-width: 100%; }
.appareils { display: inline-flex; background: var(--teinte); border-radius: 999px; padding: 4px; }
.appareils button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; color: var(--encre-douce); }
.appareils button.actif { background: var(--blanc); color: var(--encre); box-shadow: var(--ombre); }
.apercu-barre .bouton-principal { margin-left: auto; background: var(--rouge); }
.apercu-barre .bouton-principal:hover { background: #9A3412; }
.ecran { display: flex; justify-content: center; background: var(--teinte); border-radius: 28px; padding: 24px; min-height: 70vh; }
.ecran iframe { border: 0; background: #fff; border-radius: 12px; box-shadow: var(--ombre-haute); width: 100%; height: 78vh; transition: width .3s ease; }
.ecran.tablette iframe { width: 820px; }
.ecran.telephone iframe { width: 410px; height: 800px; border-radius: 36px; border: 10px solid var(--encre); }   /* 390 px utiles, comme un vrai téléphone */
.apercu-note { color: var(--encre-douce); font-size: .9rem; margin: 12px 0 0; text-align: center; }

/* ── 8. Fenêtres, fichiers, réglages, téléphone ───────────────────── */
.fenetre { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(38, 34, 30, .55); animation: apparaitre .15s ease; }
.fenetre-boite { width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--blanc); border-radius: 24px; box-shadow: var(--ombre-haute); display: grid; grid-template-columns: 1.6fr 1fr; }
.fenetre-boite.simple { grid-template-columns: 1fr; width: min(900px, 100%); }
.fenetre-visuel { background: var(--teinte); padding: 20px; display: grid; place-items: start center; min-height: 300px; }
.fenetre-visuel .wb-rendu { width: 100%; border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); }
.fenetre-visuel iframe { width: 100%; height: 75vh; border: 0; border-radius: 10px; background: #fff; }
.fenetre-visuel img { border-radius: 10px; margin: 0 auto; }
.fenetre-texte { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.fenetre-fermer { position: sticky; top: 0; align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teinte); font-size: 1.3rem; }
.fenetre-texte .commentaire { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; margin: 0; }
.statuts { display: flex; flex-wrap: wrap; gap: 8px; }
.statuts button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--blanc); font-weight: 600; }
.statuts button.actif { border-color: transparent; }
.meta-ligne { color: var(--encre-douce); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
@keyframes apparaitre { from { opacity: 0; } }

.depot { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 20px; border: 2.5px dashed var(--trait); border-radius: 24px; background: var(--blanc); margin-bottom: 20px; transition: border-color .15s, background .15s; }
.depot.survol { border-color: var(--sapin); background: var(--sapin-clair); }
.depot b { font: 600 1.3rem/1.2 var(--serif); }
.depot p { margin: 0; color: var(--encre-douce); }
.depot-champs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; align-items: center; width: 100%; max-width: 640px; }
.depot-champs input[type="text"] { flex: 1; min-width: 200px; min-height: 48px; border: 2px solid var(--trait); border-radius: 14px; padding: 0 14px; }
.jauge { margin: 0 0 36px; color: var(--encre-douce); font-size: .9rem; }
.jauge-barre { height: 8px; border-radius: 999px; background: var(--teinte); overflow: hidden; margin-top: 6px; }
.jauge-barre span { display: block; height: 100%; background: var(--sapin); border-radius: inherit; }
.fichier-icone { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.6rem/1 var(--serif); color: var(--encre-douce); }
.fichier-icone small { display: block; font: 700 .8rem/1 var(--sans); letter-spacing: .1em; margin-top: 8px; text-align: center; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.carte-actions .bouton, .carte-actions .bouton-doux { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.progression { height: 6px; border-radius: 999px; background: var(--teinte); overflow: hidden; }
.progression span { display: block; height: 100%; width: 0; background: var(--sapin); transition: width .2s; }

.reglages { display: grid; gap: 24px; max-width: 760px; }
.reglage { background: var(--blanc); border-radius: 24px; box-shadow: var(--ombre); padding: 26px; }
.reglage h2 { font-size: 1.3rem; }
.reglage p { color: var(--encre-douce); margin: 0 0 16px; }
.reglage .ligne-membre { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--trait); }
.reglage .ligne-membre:first-of-type { border-top: 0; }
.reglage .ligne-membre form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.reglage .ligne-membre input { flex: 1; min-width: 220px; min-height: 48px; border: 2px solid var(--trait); border-radius: 14px; padding: 0 14px; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--encre); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--ombre-haute); font-weight: 600; animation: monter .2s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.erreur { background: var(--rouge); }

/* Confettis quand une remarque passe à « Fait » (rien si l'utilisateur réduit les animations) */
.confetti { position: fixed; top: -12px; z-index: 90; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; animation: tomber 1.6s ease-in forwards; }
@keyframes tomber { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .confetti { display: none; } }

@media (max-width: 960px) {
  .accueil-haut { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .compteurs { grid-template-columns: repeat(2, 1fr); }
  .fenetre-boite { grid-template-columns: 1fr; }
  .eq-onglets { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .eq-entete { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .eq-moi-nom { display: none; }
  .eq-onglets { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; flex: none; width: calc(100% + 32px); }
  .eq-onglets button { flex: none; padding: 0 12px; }
  .eq-moi { margin-left: auto; }
  .qui { gap: 6px; }
  .avatar-l { width: 68px; height: 68px; font-size: 1.8rem; }
  .ecran { padding: 10px; border-radius: 18px; }
  .ecran.telephone iframe, .ecran.tablette iframe { width: 100%; border-width: 0; border-radius: 12px; }
  .apercu-barre .bouton-principal { margin-left: 0; width: 100%; }
  .idee { grid-template-columns: 1fr; padding: 18px; }
  .idee .avatar { display: none; }
  .idee-reponses { grid-column: 1; }
  .composer-pied .bouton-principal { width: 100%; margin-left: 0; }
  .grille { grid-template-columns: 1fr; }
}

/* « Supprimer » discret dans les listes (il reste en bouton plein dans les fenêtres de détail) */
.idee-actions .bouton-danger, .carte-actions .bouton-danger { background: none; min-height: 38px; padding: 0 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Retour d'envoi bien visible (03/11/2026) */
.bouton-ok, .bouton-ok:disabled { background: var(--sapin); color: #fff; border-color: var(--sapin); opacity: 1; }
.invite { margin-left: 8px; }
.toast { bottom: 32px; font-size: 1.05rem; padding: 16px 26px; }

/* Aperçu : bouton « Remarque » à droite, collant quand on descend (04/11/2026, demande de Gwen) */
.apercu-corps { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; align-items: start; }
.apercu-cote { position: sticky; top: 96px; display: grid; gap: 12px; }
.apercu-cote .bouton-principal { width: 100%; min-height: 64px; margin: 0; background: var(--rouge); font-size: 1.05rem; white-space: normal; text-align: center; padding: 10px 18px; border-radius: 20px; }
.apercu-cote .bouton-principal:hover { background: #9A3412; }
.apercu-cote p { margin: 0; color: var(--encre-douce); font-size: .9rem; }
@media (max-width: 960px) {
  .apercu-corps { grid-template-columns: 1fr; }
  .apercu-cote { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; z-index: 30; }
  .apercu-cote p { display: none; }
  .apercu-cote .bouton-principal { box-shadow: var(--ombre-haute); }
  .ecran { margin-bottom: 90px; }
}
