/* djamako.ml : feuille unique, sans compilation. Maquettes du lot 1 (téléphone d'abord), élargies sur ordinateur. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --brique: #B4451F; --brique-fonce: #8F3516; --brique-clair: #FBEDE7;
  --nuit: #1F3A5F; --nuit-clair: #E7EEF7;
  --or: #F2B84B; --or-texte: #6B4A06; --or-clair: #FDF3DC;
  --vert: #1E7A46; --vert-clair: #E3F2E9;
  --rouge: #A3261B; --rouge-clair: #FBE7E4;
  --fond: #FBF7F3; --surface: #FFFFFF; --encre: #1E2221; --doux: #5C5C5C; --trait: #EADFD8; --bord: #D9C9C2;
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --rayon: 16px;
  font-family: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  accent-color: var(--brique);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--nuit); text-underline-offset: 2px; }
a:hover { color: var(--brique); }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .7em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.entete .interieur { max-width: 1120px; margin: 0 auto; padding: 8px 12px 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.marque { font-family: var(--titre); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--encre); text-decoration: none; margin-right: auto; }
.marque span { color: #C98A12; }
.marque:hover { color: var(--encre); }
.pilule { height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--bord); background: var(--surface); display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px "Instrument Sans", sans-serif; color: var(--encre); text-decoration: none; cursor: pointer; }
.pilule:hover { border-color: var(--brique); color: var(--encre); }
.pilule .eteint { color: #8C8C8C; }
.nav-haut { display: none; gap: 4px; }
.nav-haut a { text-decoration: none; color: var(--encre); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav-haut a.actif, .nav-haut a:hover { background: var(--brique-clair); color: var(--brique); }
.recherche { flex: 1 0 100%; display: flex; gap: 8px; order: 10; }   /* téléphone : sous le logo et les boutons */
.bouton-filtres { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--nuit); display: flex; align-items: center; justify-content: center; }
.champ-recherche { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 12px; height: 48px; background: var(--fond); }
.champ-recherche input[type=search] { border: 0; outline: none; flex: 1; min-width: 0; min-height: 0; padding: 0; background: transparent; box-shadow: none; font: 400 15px "Instrument Sans", sans-serif; color: var(--encre); }
.menu-compte { position: relative; }
.menu-compte summary { list-style: none; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-liste { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(31,58,95,.45); padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.menu-liste a, .menu-liste button { text-align: left; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--encre); font: 600 15px "Instrument Sans", sans-serif; background: none; border: 0; cursor: pointer; }
.menu-liste a:hover, .menu-liste button:hover { background: var(--brique-clair); }
.menu-qui { padding: 8px 12px; font-weight: 700; border-bottom: 1px solid var(--trait); margin-bottom: 4px; }

/* Catégories (rangée d'icônes rondes) */
.categories { background: var(--surface); border-bottom: 1px solid var(--trait); }
.categories .interieur { max-width: 1120px; margin: 0 auto; padding: 12px 0 10px 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.categories .interieur::-webkit-scrollbar { display: none; }
.categorie { text-decoration: none; flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #4A4A4A; font-size: 12px; font-weight: 600; text-align: center; }
.categorie .rond { width: 50px; height: 50px; border-radius: 25px; background: var(--brique-clair); display: flex; align-items: center; justify-content: center; color: var(--brique); transition: transform .2s; }
.categorie:hover .rond { transform: translateY(-2px); }
.categorie.actif { color: var(--brique); font-weight: 700; }
.categorie.actif .rond { background: var(--brique); color: #fff; }

/* ------------------------------------------------------------ Mise en page */
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 16px 100px; }
.etroit { max-width: 520px; margin: 0 auto; }
.pile { display: flex; flex-direction: column; gap: 14px; }
.ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.doux { color: var(--doux); font-size: .92rem; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; }
.section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 0 12px; }
.section-titre h2 { margin: 0; font-size: 1.35rem; }
.section-titre a { font-size: 14px; font-weight: 600; }
.message { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.message.succes { background: var(--vert-clair); color: var(--vert); }
.message.erreur { background: var(--rouge-clair); color: var(--rouge); }
.encadre { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.encadre.info { background: var(--nuit-clair); color: var(--nuit); }
.encadre.or { background: var(--or-clair); color: var(--or-texte); }
.encadre.alerte { background: var(--rouge-clair); color: var(--rouge); }

/* Bandeau d'accueil */
.bandeau { background: var(--brique); color: #fff; border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.bandeau h1 { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.02; color: #fff; }
.bandeau p { margin: 0; font-size: 15px; line-height: 1.45; color: #FBE7DF; max-width: 52ch; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { text-decoration: none; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; }
.puce:hover { color: #fff; background: rgba(255,255,255,.28); }
.puce.active { background: var(--or); color: var(--encre); font-weight: 700; }
.puces.claires .puce { background: var(--surface); color: var(--encre); border: 1px solid var(--bord); height: 34px; font-size: 13px; }
.puces.claires .puce.active { background: var(--or); border-color: var(--or); }

/* ------------------------------------------------------------ Cartes d'événements */
.grille-evenements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.defile { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.defile > .ev { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
.ev { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ev-visuel { display: block; height: 170px; position: relative; text-decoration: none; background-size: cover; background-position: center; }
.ev-visuel .titre-affiche { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.ev-visuel.avec-affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.etiquettes { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.etiquette { background: rgba(255,255,255,.94); color: var(--encre); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.etiquette.une { background: var(--or); }
.badge-verifie { position: absolute; top: 10px; right: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 14px; background: var(--vert); display: flex; align-items: center; justify-content: center; }
.ev-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-titre { flex: 1; text-decoration: none; color: var(--encre); font-size: 17px; font-weight: 700; line-height: 1.25; }
.ev-info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4A4A4A; }
.ev-info svg { flex: none; color: var(--brique); }
.ev-info b { color: var(--encre); }
.aimer { flex: 0 0 auto; min-width: 44px; height: 40px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 1px; font: 600 11px "Instrument Sans", sans-serif; color: var(--doux); cursor: pointer; }
.aimer svg { color: var(--brique); }
.aimer.fait svg { fill: var(--brique); }
.organisateur { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--trait); padding-top: 10px; margin-top: auto; }
.initiales { width: 34px; height: 34px; border-radius: 17px; background: var(--nuit); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.organisateur .nom { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.25; }
.organisateur .nom small { font-size: 11px; font-weight: 400; color: var(--doux); }

/* ------------------------------------------------------------ Boutons et formulaires */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; border: 0; background: var(--brique); color: #fff;
  font: 700 15px "Instrument Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .15s; }
.bouton:hover { background: var(--brique-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton.grand { width: 100%; height: 50px; border-radius: 12px; font-size: 16px; }
.bouton.second { background: var(--surface); color: var(--encre); border: 1px solid var(--bord); font-weight: 600; }
.bouton.second:hover { border-color: var(--brique); color: var(--brique); }
.bouton.nuit { background: var(--nuit); } .bouton.nuit:hover { background: #162B47; }
.bouton.vert { background: var(--vert); } .bouton.vert:hover { background: #17613A; }
.bouton.noir { background: var(--encre); height: 34px; padding: 0 14px; font-size: 12px; border-radius: 17px; }
.bouton.danger { background: var(--rouge); }
.bouton-lien { background: none; border: 0; padding: 0; color: var(--nuit); font: 600 14px "Instrument Sans", sans-serif; text-decoration: underline; cursor: pointer; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > label, .champ > .etiquette-champ { font-size: 15px; font-weight: 700; }
.champ .aide { font-size: 13px; color: var(--doux); font-weight: 400; }
.champ .erreur { font-size: 13px; color: var(--rouge); font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--bord); background: var(--surface); padding: 0 12px; font: 400 15px "Instrument Sans", sans-serif; color: var(--encre); }
textarea { padding: 10px 12px; resize: vertical; min-height: 110px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brique); box-shadow: 0 0 0 3px rgba(180,69,31,.15); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choix { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 14px; cursor: pointer; }
.choix input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.choix:has(input:checked) { border: 2px solid var(--brique); padding: 13px; }
.choix b { display: block; font-size: 15px; }
.choix span { font-size: 14px; color: var(--doux); line-height: 1.4; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.depot { min-height: 150px; border-radius: 14px; border: 2px dashed #C9B8B0; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; color: var(--nuit); text-align: center; padding: 14px; position: relative; cursor: pointer; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot img { max-height: 220px; border-radius: 10px; }

/* Étapes de publication */
.etapes { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.etapes .barres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.etapes .barres span { height: 6px; border-radius: 3px; background: var(--trait); }
.etapes .barres span.faite { background: var(--brique); }
.etapes .noms { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #6B6B6B; }
.etapes .noms .courante { color: var(--brique); }
.barre-actions { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--trait); padding: 12px 16px; display: flex; gap: 10px; margin: 18px -16px 0; }

/* ------------------------------------------------------------ Fiche d'un événement */
.fiche-visuel { height: 300px; border-radius: 0 0 22px 22px; margin: -16px -16px 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; background-size: cover; background-position: center; }
.fiche-visuel.avec-affiche { background-color: #000; background-size: contain; background-repeat: no-repeat; }
.fiche-visuel .grand-titre { font-family: var(--titre); font-weight: 800; font-size: 38px; line-height: .95; letter-spacing: -.5px; }
.fiche-actions-haut { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.rond-blanc { width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: #FBE7DF; color: #7A2E14; text-transform: uppercase; }
.tag.en { background: var(--or-clair); color: var(--or-texte); }
.infos { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; }
.infos .info { display: flex; gap: 12px; align-items: center; padding: 14px; }
.infos .info + .info { border-top: 1px solid var(--trait); }
.infos .info svg { flex: none; color: var(--brique); }
.infos .info div { flex: 1; min-width: 0; }
.infos .info b { display: block; font-size: 15px; }
.barre-reserver { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--trait); padding: 12px 16px; display: flex; gap: 10px; margin: 20px -16px -100px; }

/* ------------------------------------------------------------ Navigation du bas (téléphone) */
.nav-bas { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: var(--surface); border-top: 1px solid var(--trait); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 25; padding-bottom: env(safe-area-inset-bottom); }
.nav-bas a { text-decoration: none; color: #5C5C5C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; }
.nav-bas a.actif { color: var(--brique); font-weight: 700; }
.pied { background: var(--nuit); color: #D7E1EE; font-size: 14px; }
.pied .interieur { max-width: 1120px; margin: 0 auto; padding: 22px 16px 90px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
.pied a { color: #fff; }

/* Tableaux du back-office */
.tableau { overflow-x: auto; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); background: #FBF4EF; }
.statut { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EFEAE6; color: var(--doux); }
.statut.publie { background: var(--vert-clair); color: var(--vert); }
.statut.en_revue { background: var(--or-clair); color: var(--or-texte); }
.statut.refuse, .statut.retire { background: var(--rouge-clair); color: var(--rouge); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.chiffres .carte b { display: block; font-family: var(--titre); font-size: 1.8rem; color: var(--brique); }

/* ------------------------------------------------------------ Ordinateur */
@media (min-width: 900px) {
  .entete .interieur { flex-wrap: nowrap; padding: 10px 16px; }
  .recherche { flex: 0 1 420px; order: 1; }
  .entete .pilule, .menu-compte { order: 3; }
  .marque { margin-right: 8px; }
  .nav-haut { display: flex; order: 2; margin-left: auto; }
  .nav-bas { display: none; }
  main { padding-bottom: 48px; }
  .pied .interieur { padding-bottom: 22px; }
  .bandeau { padding: 32px; }
  .fiche { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .fiche-visuel { margin: 0; border-radius: 22px; height: 380px; }
  .barre-reserver { position: sticky; top: 90px; margin: 0; flex-direction: column; border: 1px solid var(--trait); border-radius: 16px; }
  .barre-actions { margin: 18px 0 0; border: 1px solid var(--trait); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
