/* Venach Dons — couleurs de Venach Créateurs (corail, soleil, rose). Mobile d'abord. */
:root {
    --fond: #FFFBF7;
    --surface: #FFFFFF;
    --bord: #F1E6DE;
    --texte: #2A1E1A;
    --doux: #7A6A63;
    --accent: #FF5A36;
    --accent-fonce: #E8431F;
    --accent-doux: #FFEFE9;
    --soleil: #FFC23D;
    --soleil-doux: #FFF6DC;
    --rose: #FF3D7F;
    --degrade: linear-gradient(120deg, #FF7A2F, #FF3D7F);
    --argent: #00B653;
    --argent-doux: #E3F8EC;
    --rouge: #D93025;
    --rouge-doux: #FDECEA;
    --ombre: 0 18px 40px -24px rgba(42, 30, 26, .35);
    --rayon: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fond); color: var(--texte); font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }
.doux { color: var(--doux); }
.petit { font-size: .85rem; }
.centre { text-align: center; }
.cache { display: none !important; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.entete { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 30; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: .75rem; }
.marque { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.12rem; text-decoration: none; white-space: nowrap; }
.marque svg { width: 2rem; height: 2rem; flex: none; }
.marque span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: .6rem; }
.nav form { margin: 0; }
.lien-nav { font-weight: 600; font-size: .92rem; text-decoration: none; padding: .5rem .3rem; }
.lien-nav:hover { color: var(--accent); }
.avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--accent-doux); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; text-decoration: none; flex: none; cursor: pointer; list-style: none; }
.avatar::-webkit-details-marker { display: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-compte { position: relative; }
.menu-liste { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; box-shadow: var(--ombre); min-width: 210px; padding: .4rem; display: grid; }
.menu-liste a, .menu-liste button { text-align: left; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; font: inherit; font-size: .93rem; background: none; border: none; cursor: pointer; color: inherit; width: 100%; }
.menu-liste a:hover, .menu-liste button:hover { background: var(--fond); }
.menu-liste hr { border: none; border-top: 1px solid var(--bord); margin: .3rem 0; }
.menu-nom { font-weight: 700; padding: .5rem .75rem .2rem; margin: 0; }
.seul-mobile { display: none; }
@media (max-width: 560px) { .lien-cache { display: none; } .seul-mobile { display: inline; } .marque { font-size: 1rem; } .marque svg { width: 1.8rem; height: 1.8rem; } .nav { gap: .4rem; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1.5px solid transparent; border-radius: 12px; padding: .75rem 1.25rem; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s ease, background .15s; }
.btn:active { transform: scale(.98); }
.btn-principal { background: var(--degrade); color: #fff; box-shadow: 0 10px 22px -12px rgba(255, 61, 127, .75); }
.btn-principal:hover { filter: brightness(1.05); }
.btn-doux { background: var(--accent-doux); color: var(--accent-fonce); }
.btn-doux:hover { background: #FFE2D8; }
.btn-contour { background: var(--surface); border-color: var(--texte); color: var(--texte); }
.btn-second { background: var(--surface); border-color: var(--bord); color: var(--texte); font-weight: 600; }
.btn-second:hover { border-color: var(--texte); }
.btn-argent { background: var(--argent); color: #fff; }
.btn-lien { background: none; border: none; padding: 0; color: var(--doux); font-weight: 500; text-decoration: underline; }
.btn-grand { padding: 1rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.btn-petit { padding: .5rem .95rem; font-size: .86rem; border-radius: 10px; }
.btn-bloc { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Messages ---------- */
.alerte { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-weight: 500; }
.alerte-info { background: var(--argent-doux); color: #05663A; }
.alerte-erreur { background: var(--rouge-doux); color: var(--rouge); }
.alerte-soleil { background: var(--soleil-doux); color: #7A5200; }

/* ---------- Accueil ---------- */
.hero { text-align: center; padding: 3.2rem 0 0; background: radial-gradient(50rem 22rem at 50% 0%, var(--soleil-doux), transparent 70%); overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 18ch; margin: 0 auto; }
.hero h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--doux); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 44ch; margin: 1rem auto 0; }
.hero .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; position: relative; z-index: 2; }
.foule { width: 100%; height: clamp(150px, 26vw, 320px); object-fit: cover; object-position: bottom; margin-top: -.5rem; }

.recherche { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; box-shadow: var(--ombre); padding: 1.1rem; display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1.2rem; position: relative; z-index: 3; }
.recherche label { display: grid; gap: .3rem; font-weight: 600; font-size: .85rem; }
@media (min-width: 760px) { .recherche { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; padding: 1.3rem 1.5rem; margin-top: -1.5rem; } }

.section { padding: 3.2rem 0; }
.section.blanc { background: var(--surface); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.surtitre { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .4rem; }
.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.section .chapeau { color: var(--doux); font-size: 1.05rem; max-width: 60ch; margin: .6rem 0 1.6rem; }
.tete-section { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }

.atouts { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .atouts { grid-template-columns: repeat(3, 1fr); } }
.atout { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.3rem; }
.atout .rond { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--accent-doux); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .8rem; }
.atout h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.atout p { color: var(--doux); margin: 0; font-size: .93rem; }

/* ---------- Cartes de cagnotte ---------- */
.grille { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grille { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte-image { aspect-ratio: 16 / 9; background: var(--degrade); position: relative; overflow: hidden; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; }
.carte-image .sans-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.etiquette { position: absolute; left: .7rem; top: .7rem; background: rgba(255, 255, 255, .94); border-radius: 999px; padding: .25rem .65rem; font-size: .78rem; font-weight: 700; }
.carte-corps { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.carte-corps h3 { font-size: 1.05rem; line-height: 1.3; }
.carte-corps .lieu { color: var(--doux); font-size: .82rem; }
.montant-ligne { font-size: .92rem; }
.montant-ligne strong { color: var(--accent-fonce); font-size: 1.05rem; }
.barre { height: 8px; background: #F4ECE6; border-radius: 999px; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--degrade); border-radius: inherit; min-width: 4px; }
.barre.grosse { height: 12px; }
.sous-carte { display: flex; justify-content: space-between; color: var(--doux); font-size: .82rem; }

/* ---------- En ce moment ---------- */
.fil { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fil { grid-template-columns: repeat(3, 1fr); } }
.evenement { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; display: grid; gap: .7rem; text-decoration: none; }
.evenement .qui { display: flex; gap: .7rem; align-items: center; }
.pastille-nom { width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: .9rem; }
.c0 { background: #FF5A36; } .c1 { background: #FF3D7F; } .c2 { background: #7C4DFF; } .c3 { background: #00A3A3; } .c4 { background: #F59E0B; } .c5 { background: #2F80ED; }
.evenement .texte { font-size: .9rem; }
.evenement .quand { color: var(--doux); font-size: .78rem; }
.evenement .mot { font-style: italic; color: var(--doux); font-size: .9rem; margin: 0; }

/* ---------- Pour qui ---------- */
.choix { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .choix { grid-template-columns: repeat(3, 1fr); } }
.choix-carte { background: var(--surface); border: 1.5px solid var(--bord); border-radius: var(--rayon); padding: 1.6rem 1.3rem; text-align: center; text-decoration: none; display: grid; gap: .5rem; justify-items: center; transition: border-color .15s, transform .15s; }
.choix-carte:hover { border-color: var(--accent); transform: translateY(-2px); }
.choix-carte .rond { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--degrade); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.choix-carte h3 { font-size: 1.1rem; }
.choix-carte p { margin: 0; color: var(--doux); font-size: .92rem; }
.fleche { font-size: 1.3rem; }

/* ---------- Page d'une cagnotte ---------- */
.page-cagnotte { padding: 1.2rem 0 6rem; }
.mise-en-page { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .mise-en-page { grid-template-columns: 1fr 380px; align-items: start; } .page-cagnotte { padding-bottom: 3rem; } }
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; padding: 1.2rem; }
@media (min-width: 640px) { .bloc { padding: 1.5rem; } }
.carrousel { position: relative; border-radius: 16px; overflow: hidden; background: var(--degrade); aspect-ratio: 16 / 9; }
.carrousel .piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.carrousel .piste::-webkit-scrollbar { display: none; }
.carrousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.carrousel .sans-photo { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.points { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; justify-content: center; gap: .35rem; }
.points span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.points span.actif { background: #fff; width: 18px; border-radius: 999px; }
.compteur-photos { position: absolute; right: .7rem; top: .7rem; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 600; }
.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--doux); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin: 1.1rem 0 .4rem; }
.titre-cagnotte { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
.histoire { white-space: pre-line; font-size: 1.02rem; margin: 1rem 0 0; }
.histoire.repliee { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.tete-bloc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.tete-bloc h2 { font-size: 1.25rem; }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.galerie img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; cursor: zoom-in; }
.liens { display: grid; gap: .6rem; margin-top: 1rem; }
.lien-carte { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; transition: border-color .15s; }
.lien-carte:hover { border-color: var(--accent); }
.lien-carte .icone { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--fond); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.15rem; }
.lien-carte .icone img { width: 1.35rem; height: 1.35rem; }
.lien-carte strong { display: block; font-size: .95rem; }
.lien-carte small { color: var(--doux); }
.lien-carte .ouvrir { margin-left: auto; color: var(--doux); }

.nouvelle { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .9rem; margin: 0 0 1rem; }
.nouvelle p { margin: .2rem 0 0; white-space: pre-line; }

.liste-dons { display: grid; gap: .2rem; }
.ligne-don { display: flex; gap: .75rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--bord); }
.ligne-don:last-child { border-bottom: none; }
.ligne-don .qui { flex: 1; min-width: 0; }
.ligne-don strong { display: block; font-size: .95rem; }
.ligne-don .mot { color: var(--doux); font-size: .88rem; margin: .1rem 0 0; overflow-wrap: anywhere; }
.ligne-don .combien { font-weight: 700; color: var(--argent); white-space: nowrap; }

.colonne-don { display: grid; gap: 1rem; }
@media (min-width: 980px) { .colonne-don { position: sticky; top: 5rem; } }
.collecte strong { display: block; font-family: 'Sora', sans-serif; font-size: 2.1rem; color: var(--argent); line-height: 1.1; }
.collecte span { color: var(--doux); }
.chiffres { display: flex; justify-content: space-between; background: var(--soleil-doux); border-radius: 12px; padding: .7rem .9rem; margin: 1rem 0; font-size: .92rem; }
.organisateur { display: flex; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; padding: .9rem; }
.organisateur img, .organisateur .pastille-nom { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.organisateur small { color: var(--doux); display: block; }
.confiance { display: flex; gap: .5rem; align-items: center; color: #05663A; font-size: .85rem; font-weight: 600; }

.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--bord); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); display: flex; gap: .6rem; }
.barre-mobile .btn { flex: 1; }
@media (min-width: 980px) { .barre-mobile { display: none; } }

/* ---------- Fenêtre de don ---------- */
dialog.feuille { border: none; padding: 0; border-radius: 22px 22px 0 0; width: 100%; max-width: 520px; margin: auto auto 0; max-height: 94vh; background: var(--surface); color: var(--texte); }
@media (min-width: 640px) { dialog.feuille { border-radius: 22px; margin: auto; } }
dialog.feuille::backdrop { background: rgba(42, 30, 26, .5); }
.feuille-tete { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem .4rem; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.feuille-tete h2 { font-size: 1.2rem; }
.fermer { background: var(--fond); border: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.feuille-corps { padding: .4rem 1.2rem 1.4rem; display: grid; gap: 1rem; }
.montants { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.montants button { border: 1.5px solid var(--bord); background: var(--surface); border-radius: 12px; padding: .85rem; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.montants button.choisi { border-color: var(--accent); background: var(--accent-doux); color: var(--accent-fonce); }
.champ { display: grid; gap: .35rem; }
.champ > span { font-weight: 600; font-size: .9rem; }
.champ small { color: var(--doux); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], input:not([type]), select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--texte); background: var(--surface); border: 1.5px solid var(--bord); border-radius: 12px; padding: .75rem .85rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
textarea { resize: vertical; min-height: 5rem; }
.saisie-montant { position: relative; }
.saisie-montant input { font-size: 1.4rem; font-weight: 700; padding-right: 2.5rem; }
.saisie-montant::after { content: "F"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--doux); }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--fond); border-radius: 14px; padding: .8rem .9rem; cursor: pointer; }
.interrupteur strong { display: block; font-size: .95rem; }
.interrupteur small { color: var(--doux); }
.interrupteur input { appearance: none; width: 3rem; height: 1.75rem; border-radius: 999px; background: #E6D9D1; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px); border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.interrupteur input:checked { background: var(--argent); }
.interrupteur input:checked::after { transform: translateX(1.25rem); }
.parts { display: grid; gap: .5rem; }
.part { display: flex; gap: .6rem; align-items: center; }
.part label { font-weight: 600; font-size: .88rem; white-space: nowrap; min-width: 5.5rem; }
.part input { font-weight: 700; }
.total-parts { display: flex; justify-content: space-between; font-weight: 700; padding: .3rem .2rem; }
.total-parts.faux { color: var(--rouge); }
.bouton-payer { display: grid; gap: .25rem; }
.bouton-payer .sous { text-align: center; color: var(--doux); font-size: .82rem; }
details.aide summary { cursor: pointer; color: var(--accent-fonce); font-weight: 600; font-size: .85rem; list-style: none; text-align: center; }
details.aide p { background: var(--fond); border-radius: 12px; padding: .8rem; margin: .5rem 0 0; font-size: .88rem; color: var(--doux); }

dialog.visionneuse { border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.visionneuse::backdrop { background: rgba(0, 0, 0, .85); }
dialog.visionneuse img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }

/* ---------- Reçu ---------- */
.recu { max-width: 520px; margin: 2rem auto 4rem; text-align: center; }
.recu .coeur { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--argent-doux); color: var(--argent); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.recu h1 { font-size: 1.9rem; }
.preuve { text-align: left; margin: 1.4rem 0; display: grid; gap: .1rem; }
.preuve div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--bord); }
.preuve div:last-child { border-bottom: none; }
.preuve span { color: var(--doux); }
.etapes-parts { display: grid; gap: .5rem; margin: 1rem 0; text-align: left; }
.etape-part { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--fond); }
.etape-part.payee { background: var(--argent-doux); color: #05663A; font-weight: 600; }

/* ---------- Partage ---------- */
.partage { display: grid; gap: .5rem; }
.partage .btn-whatsapp { background: #25D366; color: #fff; }
.lien-copie { display: flex; gap: .5rem; }
.lien-copie input { font-size: .85rem; }

/* ---------- Création ---------- */
.creation { max-width: 620px; margin: 0 auto; padding: 1.5rem 0 4rem; }
.progression { display: flex; gap: .35rem; margin: 0 0 1.4rem; }
.progression span { flex: 1; height: 6px; border-radius: 999px; background: #F1E6DE; }
.progression span.fait { background: var(--degrade); }
.ecran h1 { font-size: clamp(1.5rem, 4.4vw, 2rem); margin-bottom: .4rem; }
.ecran > p { color: var(--doux); margin: 0 0 1.3rem; }
.ecran .champs { display: grid; gap: 1rem; }
.options { display: grid; gap: .7rem; }
.option { display: flex; gap: .9rem; align-items: center; border: 1.5px solid var(--bord); border-radius: 16px; padding: 1rem; cursor: pointer; background: var(--surface); }
.option input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.option strong { display: block; }
.option small { color: var(--doux); }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { border: 1.5px solid var(--bord); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; background: var(--surface); font-weight: 600; font-size: .9rem; }
.puce input { display: none; }
.puce:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); color: var(--accent-fonce); }
.boutons-ecran { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.6rem; }
.depot-photo { border: 2px dashed var(--bord); border-radius: 18px; padding: 1.4rem; text-align: center; cursor: pointer; display: grid; gap: .4rem; justify-items: center; background: var(--surface); }
.depot-photo:hover { border-color: var(--accent); }
.depot-photo img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.depot-photo input { display: none; }

/* ---------- Espace (3 onglets) ---------- */
.espace { padding: 1.2rem 0 4rem; }
.onglets { display: flex; gap: .3rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: .3rem; margin: 0 0 1.4rem; }
.onglets a { flex: 1; text-align: center; padding: .65rem .5rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--doux); }
.onglets a.actif { background: var(--accent-doux); color: var(--accent-fonce); }
.ma-cagnotte { display: grid; gap: .9rem; grid-template-columns: 96px 1fr; align-items: start; }
.ma-cagnotte img, .ma-cagnotte .vignette { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--degrade); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.ma-cagnotte h3 { font-size: 1.02rem; }
.dispo { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--argent-doux); border-radius: 12px; padding: .7rem .9rem; margin-top: .6rem; }
.dispo strong { color: #05663A; }
.statut { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.statut.ouverte { background: var(--argent-doux); color: #05663A; }
.statut.fermee { background: #EFE7E2; color: var(--doux); }
.statut.suspendue { background: var(--rouge-doux); color: var(--rouge); }
.pile { display: grid; gap: 1rem; }
.vide { text-align: center; padding: 2.5rem 1rem; }
.vide .rond { font-size: 2.5rem; margin-bottom: .5rem; }
.form-ligne { display: grid; gap: .6rem; }
@media (min-width: 640px) { .form-ligne.deux { grid-template-columns: 1fr 1fr; } }
.photos-gestion { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.photos-gestion figure { margin: 0; position: relative; }
.photos-gestion img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.photos-gestion form { position: absolute; top: .3rem; right: .3rem; }
.photos-gestion button { background: rgba(0, 0, 0, .6); color: #fff; border: none; border-radius: 50%; width: 1.8rem; height: 1.8rem; cursor: pointer; }
.photos-gestion figcaption { font-size: .72rem; color: var(--doux); margin-top: .2rem; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th, .tableau td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { color: var(--doux); font-weight: 600; font-size: .8rem; }
.defile { overflow-x: auto; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--bord); padding: 2rem 0 2.5rem; margin-top: 2rem; background: var(--surface); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.pied p { margin: 0; color: var(--doux); font-size: .85rem; }
.pied a { color: var(--doux); }
.texte-legal { max-width: 720px; margin: 2rem auto 4rem; }
.texte-legal h1 { margin-bottom: 1rem; }
.texte-legal h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.message { max-width: 420px; margin: 4rem auto; text-align: center; } .message p { font-size: 1.1rem; margin: 0 0 1.25rem; }

/* ---------- QR code ---------- */
.qr-bloc { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--bord); border-radius: 14px; padding: .8rem; margin-top: .4rem; }
.qr-image { flex: none; width: 112px; height: 112px; }
.qr-image svg { width: 100%; height: 100%; border-radius: 8px; }
.qr-texte { display: grid; gap: .35rem; justify-items: start; }
.qr-texte small { font-size: .82rem; }

/* ---------- Icônes (sprite /images/icones.svg) ---------- */
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; flex: none; display: inline-block; }
.ic-rond { --c: var(--accent); display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); flex: none; }
.ic-rond .ic { width: 1.35rem; height: 1.35rem; }
.ic-rond.grand { width: 4.5rem; height: 4.5rem; }
.ic-rond.grand .ic { width: 2.1rem; height: 2.1rem; }
.sans-photo .ic { width: 3.4rem; height: 3.4rem; color: #fff; stroke-width: 1.6; }
.etiquette { display: inline-flex; align-items: center; gap: .3rem; }
.etiquette .ic { width: 1em; height: 1em; }
