/* Administration : clair, chaleureux, mobile d'abord. Couleurs de la charte (vert nuit, vert logo, orange braise). Police Figtree servie par le site lui-même (la CSP n'autorise que 'self'). Aucun style en ligne. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("figtree-latin-wght-normal.woff2") format("woff2-variations"), url("figtree-latin-wght-normal.woff2") format("woff2"); }
:root { --vert: #3e641b; --vert-fonce: #284110; --texte: #1b2d0b; --fond: #f6f9f3; --bord: #dbd8d7; --rouge: #9b1c1c; --brume: #edf4e7; --pale: #d8e7ca; --gris: #4d4948; --orange: #cc6600; --rayon: 16px; --ombre: 0 1px 2px rgba(27, 45, 11, .05), 0 6px 18px rgba(27, 45, 11, .06); --doux: .18s ease; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; font: 1.0625rem/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); background: var(--fond); }
a { color: var(--vert-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--vert-fonce); outline-offset: 2px; }
.saut { position: absolute; left: -999px; }
.saut:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5rem; z-index: 20; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* En-tête : logo, menu, déconnexion. Sur mobile : une seule ligne, le menu passe en barre d'onglets en bas de l'écran. */
.entete { background: #fff; border-bottom: 1px solid var(--bord); }
.entete > div, main { max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem; }
.entete > div { display: flex; align-items: center; gap: 0.75rem 1rem; }
.marque { white-space: nowrap; display: flex; align-items: center; gap: 0.7rem; margin: 0 auto 0 0; font-weight: 700; line-height: 1.2; color: var(--vert-fonce); }
.marque img { width: 2.5rem; height: auto; display: block; }
.marque small { display: block; font-weight: 500; font-size: 0.85rem; color: var(--gris); }
.sans-menu { background: transparent; border-bottom: 0; }
.sans-menu > div { justify-content: center; padding-top: 1.5rem; }
.sans-menu .marque { margin: 0; }
.sans-menu .marque img { width: 3rem; }
main { padding-top: 0.5rem; padding-bottom: 5rem; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 1.25rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
h3 { line-height: 1.3; }
.intro { margin: -0.5rem 0 1rem; color: var(--gris); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.menu a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--vert-fonce); transition: background var(--doux); }
.menu a:hover { background: var(--brume); }
.menu a[aria-current=page] { background: var(--pale); }
.sortie { margin: 0; display: flex; gap: 0.25rem; }
.oublier { display: none; }
.sortie button { white-space: nowrap; min-height: 2.75rem; padding: 0 0.9rem; border: 0; background: transparent; font-weight: 600; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.sortie button:hover { background: var(--brume); }
@media (max-width: 39.99rem) {
  .marque small { display: none; }
  .marque img { width: 2.2rem; }
  .menu-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(27, 45, 11, .07); }
  .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .menu a { flex-direction: column; justify-content: center; gap: 0.1rem; min-height: 3.5rem; padding: 0.4rem 0; border-radius: 0; font-size: 0.875rem; }
  .menu a[aria-current=page] { background: transparent; color: var(--vert); box-shadow: inset 0 3px 0 var(--vert); }
  .menu a[aria-current=page] span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
  body:has(.disposition) .menu-nav { display: none; }
  main { padding-bottom: 6rem; }
  h1 { font-size: 1.6rem; }
}

/* Messages (bandeaux en haut de page) */
.msg { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid #a2c680; background: var(--brume); color: var(--texte); margin: 1rem 0; animation: apparait .25s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.msg::before { content: "✓"; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; text-align: center; line-height: 1.6rem; }
.msg.erreur { border-color: #e0a9a9; background: #fdf2f2; color: #5c0f0f; }
.msg.erreur::before { content: "!"; background: var(--rouge); }
.msg.attention { border-color: #e8b27a; background: #fff0e0; color: #4a2500; display: block; }
.msg.attention::before { content: none; }
.msg.attention p, .msg.attention ul { margin: 0.25rem 0; }

/* Boutons */
.bouton, button { font: inherit; font-weight: 700; min-height: 2.75rem; padding: 0.5rem 1.2rem; border-radius: 999px; border: 2px solid var(--vert); background: #fff; color: var(--vert-fonce); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; line-height: 1.2; transition: background var(--doux), border-color var(--doux), color var(--doux), box-shadow var(--doux); }
.bouton:hover, button:hover { background: var(--brume); }
.bouton.principal, button.principal { background: var(--vert); color: #fff; }
.bouton.principal:hover, button.principal:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); box-shadow: 0 2px 8px rgba(40, 65, 16, .25); }
.bouton.danger, button.danger { border-color: var(--rouge); color: var(--rouge); }
.bouton.danger:hover, button.danger:hover { background: #fdf2f2; }
button.danger.principal { background: var(--rouge); color: #fff; }
button.danger.principal:hover { background: #7a1616; border-color: #7a1616; }
.bouton.grand { min-height: 3.25rem; padding: 0.6rem 1.5rem; font-size: 1.1rem; }
.bouton.discret, button.discret { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.bouton.discret:hover, button.discret:hover { background: var(--brume); }
.bouton.danger.discret:hover, button.danger.discret:hover { background: #fdf2f2; }
button.fleche { padding: 0.35rem 0.9rem; border-color: var(--pale); background: #fff; }
button.fleche:hover { border-color: var(--vert); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.actions form { margin: 0; }

/* Champs */
.champ { margin: 1rem 0; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input[type=text], input[type=url], input[type=password], input[type=email], input[type=date], input[type=time], select, textarea { width: 100%; font: inherit; padding: 0.7rem 0.85rem; min-height: 3rem; border: 2px solid #8a9779; border-radius: 12px; background: #fff; color: var(--texte); transition: border-color var(--doux), box-shadow var(--doux); }
input:hover, textarea:hover, select:hover { border-color: var(--vert); }
input:focus, textarea:focus, select:focus { border-color: var(--vert); box-shadow: 0 0 0 3px var(--pale); }
textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.aide { font-size: 0.95rem; color: var(--gris); margin: 0.3rem 0 0; }
.err { color: var(--rouge); font-weight: 700; margin: 0.3rem 0 0; }
.invalide { border-color: var(--rouge) !important; }
.heures { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.heures .aide, .heures .err { grid-column: 1 / -1; margin-top: -0.4rem; }
.deux { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 40rem) { .deux { grid-template-columns: 1fr 1fr; } }
.case { display: flex; gap: 0.75rem; align-items: center; }
.case input { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--vert); }
.case label { margin: 0; font-weight: 400; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.defaut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; min-height: 0; }
input[type=password] + .aide:empty { display: none; }
.mdp-champ { position: relative; display: block; }
.mdp-champ input { padding-right: 3.2rem; }
.mdp-champ .oeil { display: none; position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0 12px 12px 0; background: transparent; color: var(--texte); cursor: pointer; }
.js .mdp-champ .oeil { display: inline-flex; }
.mdp-champ .oeil .barre { display: none; }
.mdp-champ .oeil.actif .barre { display: inline; }

/* Connexion et écrans courts : carte centrée avec icône */
.carte { background: #fff; border: 1px solid var(--bord); border-radius: 22px; box-shadow: var(--ombre); padding: 1.75rem 1.5rem 1.5rem; max-width: 28rem; margin: 1rem auto 2rem; text-align: center; }
.carte > svg, .carte-ico { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 50%; background: var(--brume); color: var(--vert); }
.carte > svg { padding: 0.8rem; }
.carte-danger > svg { background: #fdf2f2; color: var(--rouge); }
.carte h1 { margin: 0.9rem 0 0.5rem; font-size: 1.5rem; }
.carte form, .carte .champ { text-align: left; }
.carte .aide { text-align: center; }
.carte form .aide { text-align: left; }
.carte .principal { width: 100%; min-height: 3.25rem; font-size: 1.1rem; margin-top: 0.5rem; }
.carte .actions { justify-content: center; margin-top: 1rem; }
.carte .actions .principal { width: auto; }
.carte .msg { text-align: left; }
.carte .miniature { margin: 0 auto; }
#code { font-size: 2rem; letter-spacing: 0.5em; text-align: center; min-height: 4rem; font-weight: 700; padding-left: 1.2rem; }

/* Pastilles de statut */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; vertical-align: middle; color: var(--vert-fonce); background: var(--pale); white-space: nowrap; }
.badge::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--vert); }
.badge.brouillon { color: #7a3d00; background: #fff0e0; }
.badge.brouillon::before { background: var(--orange); }
.badge.vous::before { content: none; }
.badge.vous { background: var(--vert); color: #fff; }

/* Liste d'événements : cartes lisibles d'un coup d'œil */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.liste.cartes-ev { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); align-items: start; }
.ev { display: flex; flex-direction: column; gap: 0.75rem; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; box-shadow: var(--ombre); transition: border-color var(--doux), box-shadow var(--doux); }
.ev:hover, .ev:focus-within { border-color: #a2c680; box-shadow: 0 2px 4px rgba(27, 45, 11, .06), 0 10px 26px rgba(27, 45, 11, .09); }
.ev:has(details[open]) { position: relative; z-index: 3; }
.ev-photo { display: block; width: calc(100% + 2rem); margin: -1rem -1rem 0; max-width: none; aspect-ratio: 2 / 1; object-fit: cover; border-radius: calc(var(--rayon) - 1px) calc(var(--rayon) - 1px) 0 0; }
.ev-haut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.cal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.6rem; padding: 0.3rem 0 0.35rem; border-radius: 12px; background: var(--pale); color: var(--vert-fonce); line-height: 1; text-align: center; }
.cal-mois { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cal-jour { font-size: 1.85rem; font-weight: 800; margin-top: 0.15rem; }
.brouillon .cal { background: #fff0e0; color: #7a3d00; }
.ev-texte .badge { margin: 0.25rem 0; }
.ev-texte h3 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.ev .apercu-date { margin: 0.2rem 0 0; letter-spacing: 0; text-transform: none; font-size: 0.95rem; color: var(--gris); font-weight: 600; }
.ev-lieu { display: flex; gap: 0.35rem; align-items: flex-start; margin: 0.2rem 0 0; color: var(--texte); font-size: 0.95rem; }
.ev-lieu svg { margin-top: 0.2rem; color: var(--vert); }
.ev-lieu span { overflow-wrap: anywhere; }
.ev .desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: var(--gris); font-size: 0.95rem; }
.ev-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--brume); }
.ev-bas > .principal { flex: 1 1 auto; }
.ev-plus { order: 2; position: relative; }
.ev-visible { order: 3; flex: 1 1 100%; margin: 0; }
.ev-plus summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; color: var(--gris); border: 2px solid var(--bord); transition: background var(--doux); }
.ev-plus summary::-webkit-details-marker { display: none; }
.ev-plus summary:hover, .ev-plus[open] summary { background: var(--brume); color: var(--vert-fonce); }
.ev-menu { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 4; min-width: 14rem; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 10px 28px rgba(27, 45, 11, .18); padding: 0.35rem; animation: apparait .15s ease; }
.ev-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--texte); border: 0; justify-content: flex-start; background: transparent; }
.ev-menu a:hover { background: var(--brume); }
.ev-menu a.danger { color: var(--rouge); }
.ev-menu a.danger:hover { background: #fdf2f2; }
/* Interrupteur « Visible sur le site » : un vrai bouton d'envoi (fonctionne sans JavaScript) */
.interrupteur { width: 100%; justify-content: flex-start; gap: 0.75rem; padding: 0 0.25rem; border: 0; background: transparent; font-weight: 600; color: var(--texte); border-radius: 12px; }
.interrupteur:hover { background: var(--brume); }
.piste { position: relative; flex: none; width: 2.9rem; height: 1.7rem; border-radius: 999px; background: #6f6b6a; transition: background var(--doux); }
.pouce { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform var(--doux); }
.interrupteur[aria-checked=true] .piste { background: var(--vert); }
.interrupteur[aria-checked=true] .pouce { transform: translateX(1.2rem); }
.entete-liste { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin: 1rem 0; }
.entete-liste h1 { margin: 0; }
.entete-liste .bouton { flex: 1 1 auto; }
@media (min-width: 40rem) { .entete-liste .bouton { flex: 0 0 auto; } }
.plus-signe { font-size: 1.5rem; line-height: 1; font-weight: 400; }
.onglets { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.onglets a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; font-weight: 700; text-decoration: none; border-radius: 999px; border: 2px solid var(--bord); background: #fff; transition: background var(--doux), border-color var(--doux); }
.onglets a:hover { background: var(--brume); border-color: #a2c680; }
.onglets a[aria-current=page] { background: var(--vert); border-color: var(--vert); color: #fff; }
.compte { margin: 0.5rem 0; color: var(--gris); }
.recherche { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0.25rem 1rem 0.75rem; margin: 0 0 1rem; }
.vide { background: #fff; border: 2px dashed #a2c680; border-radius: 20px; padding: 2rem 1.25rem; margin: 1.5rem 0; text-align: center; }
.vide svg { color: var(--vert); }
.vide p { margin: 0 auto 0.75rem; max-width: 30rem; }
.vide .titre-vide { font-size: 1.3rem; font-weight: 700; }
.pagination ul { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.apercu-date { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vert-fonce); }

/* Formulaire d'événement : étapes numérotées, aperçu, barre d'actions collante */
.retour { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.disposition { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.etape { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.1rem 1.1rem; }
.etape-tete { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.etape-tete h2 { margin: 0; font-size: 1.25rem; }
.num { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plus { margin: 0.75rem 0; }
.plus > summary { cursor: pointer; font-weight: 700; color: var(--vert-fonce); min-height: 3rem; display: flex; align-items: center; gap: 0.6rem; padding: 0 0.9rem; border: 2px solid var(--pale); border-radius: 12px; background: var(--brume); list-style: none; transition: background var(--doux), border-color var(--doux); }
.plus > summary::-webkit-details-marker { display: none; }
.plus > summary:hover { background: var(--pale); border-color: var(--vert); }
.plus > summary::after { content: "▾"; margin-left: auto; transition: transform var(--doux); }
.plus[open] > summary::after { transform: rotate(180deg); }
.plus[open] > summary { margin-bottom: 0.25rem; }
.pied { position: sticky; bottom: 0; z-index: 5; margin: 0 -1rem; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--bord); box-shadow: 0 -4px 14px rgba(27, 45, 11, .08); display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; justify-content: center; }
.pied .principal { flex: 1 1 100%; margin: 0; }
.pied .secondaire, .pied .discret { flex: 0 1 auto; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.pied .secondaire:hover { background: var(--brume); }
@media (min-width: 56rem) {
  .disposition { grid-template-columns: minmax(0, 1fr) 22rem; }
  .disposition > .etape { grid-column: 1; }
  .disposition > .apercu-bloc { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 1rem; }
  .disposition > .pied { grid-column: 1 / -1; margin: 0; border-radius: var(--rayon) var(--rayon) 0 0; justify-content: flex-start; }
  .pied .principal { flex: 0 0 auto; }
  .pied .secondaire { border: 2px solid var(--vert); background: #fff; text-decoration: none; font-weight: 700; }
  .pied .secondaire:hover { background: var(--brume); }
}
.apercu-bloc h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.apercu { background: var(--fond); border: 1px solid var(--bord); border-radius: 12px; padding: 1rem 1.1rem; margin-top: 0.75rem; }
.apercu-titre { margin: 0.3rem 0 0; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.apercu-meta { margin: 0.4rem 0 0; color: var(--gris); overflow-wrap: anywhere; }
.apercu-desc { margin: 0.6rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.apercu-lien { margin: 0.4rem 0 0; }
.apercu-photos { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.apercu-photos li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; border: 1px solid var(--bord); }
.apercu-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
div.err p { margin: 0.25rem 0 0; }

/* Photos : zone de dépôt (le champ fichier la recouvre : glisser-déposer natif), aperçus des fichiers choisis, photos enregistrées */
.depot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-align: center; min-height: 8rem; padding: 1.25rem; margin: 0.75rem 0; border: 2px dashed #8a9779; border-radius: var(--rayon); background: var(--brume); color: var(--vert-fonce); font-weight: 700; transition: background var(--doux), border-color var(--doux); }
.depot svg { color: var(--vert); }
.depot input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.depot:hover, .depot.survol { background: var(--pale); border-color: var(--vert); }
.depot:focus-within { outline: 3px solid var(--vert-fonce); outline-offset: 2px; }
.choisies { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.5rem; }
.choisies li { display: flex; gap: 0.75rem; align-items: center; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 0.4rem 0.4rem 0.4rem 0.4rem; overflow-wrap: anywhere; }
.choisies img { flex: none; width: 4rem; height: 4rem; object-fit: cover; border-radius: 8px; background: var(--brume); }
.choisies span { flex: 1 1 auto; min-width: 0; font-size: 0.95rem; }
.choisies button { flex: none; min-height: 2.75rem; padding: 0.25rem 0.9rem; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.photos.grille { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.photos li { display: flex; flex-direction: column; gap: 0.5rem; background: var(--fond); border: 1px solid var(--bord); border-radius: 12px; padding: 0.6rem; }
.photos li > div { width: 100%; }
.photos img, .miniature { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.miniature { max-width: 20rem; }
.photos p { margin: 0; }
.photos .champ { margin: 0.5rem 0; }
.photos .actions { gap: 0.4rem; }
.photos .actions button { min-height: 2.75rem; }
.photos .badge { margin-bottom: 0.25rem; }
.principale { background: #fff0e0; color: #7a3d00; }
.principale::before { content: "★"; width: auto; height: auto; background: none; }
.bloc-actions { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--bord); }
.bloc-actions h2 { font-size: 1.05rem; color: var(--gris); }

/* Paramètres : une carte par sujet */
.param { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.1rem 1.25rem 1.25rem; margin: 1.25rem 0; }
.param-tete { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.param-tete h2, .param > h2 { margin: 0; font-size: 1.25rem; }
.param > h2 { margin-bottom: 0.5rem; }
.param-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brume); color: var(--vert); }
.param h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
.valeur { margin: 0.25rem 0 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.liste-param { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; }
.liste-param > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 0.8rem 0; border-top: 1px solid var(--brume); }
.liste-param > li:first-child { border-top: 0; }
.avatar, .appareil-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--pale); color: var(--vert-fonce); font-weight: 800; font-size: 1.1rem; }
.ligne-texte { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.ligne-texte .aide { margin: 0; }
.ligne-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ligne-actions form { margin: 0; }
.liste-param form { margin: 0; }
.oublier-mobile { margin-top: 0.75rem; }
.simple { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.ajout { margin-top: 1rem; padding-top: 0.25rem; border-top: 1px solid var(--bord); }
.danger-zone { border-color: #e0a9a9; background: #fffafa; }
.danger-zone .param-ico { background: #fdf2f2; color: var(--rouge); }
.danger-zone p { margin: 0 0 0.75rem; }
.discret-bas { margin-top: 2rem; font-size: 0.95rem; text-align: center; }
.discret-bas a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--gris); }
.liens-sous a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.tableau { width: 100%; border-collapse: collapse; background: #fff; }
.tableau th, .tableau td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--bord); vertical-align: top; }
.tableau th[scope=row] { width: 45%; background: var(--brume); }
.param.defile { padding: 0; overflow-x: auto; }
.param .tableau { border: 0; }
.defile { overflow-x: auto; }
.codes { font-size: 1.3rem; columns: 2; }
code.mdp, .codes code { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; }
.photos li, .liste li { scroll-margin-top: 1rem; }
input[type=file] { font: inherit; }
@media (min-width: 40rem) { .param { padding: 1.4rem 1.75rem 1.6rem; } }
