/* Les Ch'tis Coureurs Flamands de Bavinchove — feuille de style commune (site public et administration).
   Palette « Sable et bleu roi » validée sur la maquette. Aucune police externe. */

:root {
  --sable: #F2E8C9;
  --sable-clair: #FBF6E6;
  --bleu: #2B3CCB;
  --jaune: #E9B800;
  --texte: #14183A;
  --rouge: #C8102E;
  --rouge-pale: #F7D6DB;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--texte);
  font: 1.125rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, p, ul, ol { margin-top: 0; }
h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: .6rem; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: .6rem; }
a { color: var(--bleu); font-weight: 700; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 4px solid var(--texte); outline-offset: 3px; }
.hd :focus-visible, .ft :focus-visible { outline-color: var(--jaune); }

.skip { position: absolute; left: -999px; top: 0; background: var(--jaune); color: var(--texte); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* En-tête : bande bleue à bas diagonal (dessinée dans un pseudo-élément pour que le menu déroulant ne soit pas coupé) */
.hd {
  position: relative;
  z-index: 10;   /* au-dessus du contenu et du pied de page : le menu déroulant ne doit jamais passer dessous */
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 3.5rem;
  color: #fff;
}
.hd::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bleu);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.hd a { color: #fff; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-text { display: block; }
.site-name { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.tagline { display: block; color: var(--jaune); font-size: 1.2rem; font-weight: 700; }
.hd-tools { display: flex; align-items: center; gap: .75rem; }
.hd-admin { padding-bottom: 3rem; }

/* Boutons et icônes (zone de toucher d'au moins 48 px) */
.bt, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.bt { background: var(--jaune); color: var(--texte) !important; }
.btn { background: var(--bleu); color: #fff !important; }
.btn-danger { background: var(--rouge); }
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sable);
  color: var(--bleu) !important;
}

/* Menu déroulant (fonctionne sans JavaScript) */
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  z-index: 20;
  top: calc(100% - 2rem);
  right: 1.25rem;
  left: 1.25rem;
  max-width: 24rem;
  margin-left: auto;
  background: var(--bleu);
  border: 3px solid var(--jaune);
  border-radius: 20px;
  overflow: hidden;
}
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu li + li { border-top: 1px solid rgba(255, 255, 255, .3); }
.menu nav a { display: block; padding: .85rem 1.4rem; font-size: 1.2rem; text-decoration: none; }
.menu nav a[aria-current="page"] { background: var(--jaune); color: var(--texte); }

/* Navigation d'administration */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.admin-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.admin-nav a { display: inline-block; padding: .6rem 0; }
.admin-nav form { margin: 0; }

/* Contenu */
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.narrow { max-width: 36rem; }
.lead { font-size: 1.35rem; font-weight: 700; }
.muted { opacity: .8; }
.hint { font-size: 1rem; margin: .3rem 0 0; }

.card {
  background: var(--sable-clair);
  border-radius: 20px;
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.cards .card { margin: 0; }
/* Maintenance et pages en construction */
.site-notice { margin: 0; padding: .7rem 1.25rem; background: var(--rouge); color: #fff; font-weight: 800; text-align: center; }
.soon { font-weight: 400; font-size: .9em; opacity: .85; }
.maintenance, .construction { max-width: 40rem; margin: 2rem auto; text-align: center; }
.maintenance-msg { padding: .8rem 1rem; border-left: 6px solid var(--jaune); border-radius: 12px; background: var(--sable-clair); font-weight: 700; text-align: left; }
.construction-badge { display: inline-block; padding: .3rem 1rem; border-radius: 999px; background: var(--jaune); font-weight: 800; }
.health { display: grid; gap: .5rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.health li { display: block; padding: .6rem .9rem; border-radius: 12px; background: var(--sable-clair); border-left: 6px solid var(--bleu); }
.health .health-attention { border-left-color: var(--rouge); background: var(--rouge-pale); }
.health .health-ok { border-left-color: #1E7B3A; }
.health-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-right: .3rem; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 900; font-size: .9rem; }
.health-ok .health-mark { background: #1E7B3A; }
.health-attention .health-mark { background: var(--rouge); }

/* Formulaires */
.form { display: block; }
.field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field label, legend { display: block; margin-bottom: .35rem; font-weight: 700; padding: 0; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="email"], input[type="url"], select, textarea {
  width: 100%;
  max-width: 30rem;
  min-height: 3.25rem;
  padding: .5rem .9rem;
  border: 3px solid var(--bleu);
  border-radius: 14px;
  background: var(--sable);
  color: var(--texte);
  font: inherit;
}
.check { display: flex; align-items: flex-start; gap: .7rem; min-height: 3rem; margin: 0 0 .5rem; font-weight: 400; }
.check input { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .1rem; accent-color: var(--bleu); }

/* Messages */
.alert { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border: 3px solid var(--bleu); border-radius: 14px; background: var(--sable-clair); font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.25rem; }
.alert-error { border-color: var(--rouge); background: var(--rouge-pale); }

/* Éléments d'administration */
.secret { font: 700 1.5rem/1.4 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .08em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.codes li { padding: .6rem .8rem; border-radius: 12px; background: var(--sable-clair); font: 700 1.2rem/1.3 ui-monospace, Consolas, monospace; text-align: center; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .5rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--sable-clair); }
th, td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--sable); }
thead th { background: var(--bleu); color: #fff; }
.tag { display: inline-block; margin: 0 .3rem .3rem 0; padding: .1rem .6rem; border-radius: 999px; background: var(--jaune); font-size: .95rem; }

/* Pied de page */
.ft { position: relative; isolation: isolate; margin-top: 2rem; padding: 4.5rem 1.25rem 2rem; color: #fff; }
.ft::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bleu); clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 100%); }
.ft-in { max-width: 60rem; margin: 0 auto; }
.ft-name { font-weight: 800; font-size: 1.25rem; margin-bottom: .4rem; }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft a { display: inline-block; padding: .5rem 0; color: #fff; }

/* ===================== Étape 2 : calendrier, sorties, présences ===================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.block { margin: 0 0 2.5rem; }
.hl { display: inline-block; padding: 0 .2rem; background: linear-gradient(transparent 62%, var(--jaune) 62%); }
textarea { min-height: 8rem; line-height: 1.5; resize: vertical; }
select { cursor: pointer; }

/* Bandeau d'alerte : contour bleu au calme, rouge et pulsant en cas d'alerte */
.alert-band { display: flex; align-items: center; gap: .9rem; margin: 0 0 2rem; padding: .9rem 1.25rem; border: 3px solid var(--bleu); border-radius: 16px; color: var(--bleu); font-weight: 700; font-size: 1.2rem; }
.alert-band p { margin: 0; }
.alert-band svg { flex: none; }
.alert-band-on { border-color: var(--rouge); background: var(--rouge); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { background-color: #C8102E; } 50% { background-color: #8E0B21; } }

/* Cartes de sorties */
.ev-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.ev-list-col { grid-template-columns: 1fr; }
.ev-card { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem; border-radius: 18px; background: var(--sable-clair); color: var(--texte); font-weight: 400; text-decoration: none; }
.ev-card:hover .ev-title { text-decoration: underline; }
.ev-date { flex: none; width: 5rem; padding: .5rem 0; border-radius: 14px; background: var(--bleu); color: #fff; text-align: center; font-weight: 800; line-height: 1.1; font-size: .95rem; }
.ev-date b { display: block; font-size: 2rem; }
.ev-body { display: block; }
.ev-title { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.ev-meta { display: block; }
.badge-cancel { display: inline-block; margin-top: .3rem; padding: .1rem .7rem; border-radius: 999px; background: var(--rouge); color: #fff; font-size: .95rem; font-weight: 800; vertical-align: middle; }
.is-cancelled .ev-title { text-decoration: line-through; }

/* Calendrier du mois */
.month { padding: 1rem; border-radius: 20px; background: var(--sable-clair); }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.month-head h2 { margin: 0; text-align: center; font-size: 1.4rem; }
.ic-blue { background: var(--bleu); color: #fff !important; }
.ic-space { display: inline-block; width: 3rem; }
.grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; background: transparent; }
.grid th { padding: .2rem 0; border: 0; background: transparent; color: var(--bleu); text-align: center; }
.grid td { padding: 0; border: 0; text-align: center; vertical-align: middle; }
.grid td a, .grid td span { display: block; min-height: 2.75rem; line-height: 2.75rem; border-radius: 10px; font-weight: 700; }
.grid td a { color: var(--texte); text-decoration: none; }
.grid .has-ev a { background: var(--jaune); }
.grid .is-current a { background: var(--bleu); color: #fff; }
.grid .is-today span, .grid .is-today a { box-shadow: inset 0 0 0 3px var(--bleu); }
.grid .is-past span { opacity: .45; }
.legend { margin: .75rem 0 0; font-size: 1rem; }
.key { display: inline-block; width: 1.1rem; height: 1.1rem; margin-right: .2rem; border-radius: 4px; vertical-align: -.15rem; }
.key-ev { background: var(--jaune); }
.key-cur { background: var(--bleu); }

/* Page d'une sortie */
.ev-when { margin-bottom: .2rem; font-size: 1.3rem; font-weight: 800; }
.ev-where { margin-bottom: .2rem; font-size: 1.2rem; }
.ev-desc { margin: 0 0 1.5rem; font-size: 1.15rem; }
.cal-layout, .ev-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.presence h2 { margin-bottom: .8rem; }
.mine { font-size: 1.3rem; }
.choice { display: flex; align-items: center; gap: .8rem; min-height: 3.5rem; margin: 0 0 .6rem; padding: .3rem 1rem; border: 3px solid var(--bleu); border-radius: 14px; background: var(--sable); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.choice input { flex: none; width: 1.6rem; height: 1.6rem; accent-color: var(--bleu); }
.choice input:checked + span { text-decoration: underline; text-decoration-thickness: 3px; }
.btn-big { min-height: 3.6rem; padding: 0 1.8rem; font-size: 1.25rem; }
.row-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.row-buttons form { margin: 0; }
.who { display: inline-block; padding: .6rem 0; font-size: 1.2rem; }
.field label.choice, .field label.check { display: flex; margin-bottom: .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.names { columns: 2 12rem; margin: 0; padding-left: 1.25rem; font-size: 1.15rem; }

/* Administration des sorties */
.adm-list { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.adm-item { margin: 0; }
.adm-item h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.adm-item.is-cancelled { box-shadow: inset 0 0 0 3px var(--rouge); }
.adm-item.is-cancelled h3 { text-decoration: none; }
.adm-when { margin-bottom: .2rem; color: var(--bleu); font-weight: 800; }
.att-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; margin: 0 0 .75rem; }
.att-form .field { flex: 1 1 12rem; margin: 0; }
.att-form .check { margin: 0; }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem 1rem; }
.dates label { font-weight: 400; }
.group-row { margin: 0 0 .5rem; }
.group-row label { font-weight: 400; }

/* ===================== Étape 3 : actualités, pages, contact ===================== */

input[type="file"] { display: block; max-width: 100%; margin: .2rem 0 .8rem; padding: .6rem; border: 3px dashed var(--bleu); border-radius: 14px; background: var(--sable); font: inherit; font-size: 1rem; }
.label { margin-bottom: .5rem; font-weight: 700; }
.btn-dark { background: var(--texte); }
.pill { display: inline-block; margin: 0 0 .6rem; padding: .15rem .9rem; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 800; }

/* Accueil : bloc « Actualités » qui se déplie */
.acc { border-radius: 20px; background: var(--sable-clair); }
.acc summary { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; padding: .5rem 1.4rem; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { margin: 0; font-size: 1.7rem; }
.acc summary::after { content: ""; flex: none; margin-left: auto; width: .9rem; height: .9rem; border-right: 4px solid var(--bleu); border-bottom: 4px solid var(--bleu); transform: rotate(45deg); }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc-body { padding: 0 1.4rem 1rem; }
.news-titles { margin: 0 0 1rem; padding: 0; list-style: none; }
.news-titles li { padding: .6rem 0; border-bottom: 2px solid var(--sable); font-size: 1.2rem; }

/* Liste des actualités et archives */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.news-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px; background: var(--sable-clair); color: var(--texte); font-weight: 400; text-decoration: none; }
.news-card img { display: block; width: 100%; height: 12rem; object-fit: cover; }
.news-body { display: block; padding: 1rem 1.2rem 1.2rem; }
.news-title { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.news-card:hover .news-title { text-decoration: underline; }

/* Article et pages de texte */
.article { max-width: 44rem; }
.content p, .content ul { margin: 0 0 1rem; font-size: 1.15rem; }
.content h2 { margin: 1.5rem 0 .8rem; }
.content figure, .cover { margin: 0 0 1.25rem; }
.content img, .cover img { display: block; width: 100%; height: auto; border-radius: 16px; }
/* Archives : sur grand écran, l'image principale devient une miniature (cliquable pour l'agrandir) */
.cover-thumb figcaption { display: none; }
@media (min-width: 40rem) {
  .cover-thumb { max-width: 14rem; }
  .cover-thumb figcaption { display: block; }
}
.content figcaption { margin-top: .4rem; font-size: 1rem; }
.doc { display: flex; align-items: center; gap: .8rem; min-height: 3.5rem; padding: .6rem 1rem; border-radius: 14px; background: var(--sable-clair); text-decoration: none; }
.doc svg { flex: none; }
.join-box { margin-top: 1.5rem; box-shadow: inset 0 0 0 3px var(--bleu); }
.board { margin: 0; }
.board div { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .9rem 0; border-bottom: 2px solid var(--sable-clair); }
.board dt { min-width: 12rem; color: var(--bleu); font-weight: 800; }
.board dd { margin: 0; font-size: 1.2rem; }
.pdf { display: block; width: 100%; height: 80vh; min-height: 30rem; border: 3px solid var(--bleu); border-radius: 16px; background: #fff; }

/* Accueil : bienvenue et partenaires */
.welcome { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.welcome-img { width: 100%; max-width: 26rem; justify-self: center; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.partners li a, .partners li > span { display: flex; align-items: center; justify-content: center; height: 7rem; padding: .8rem; border-radius: 16px; background: var(--sable-clair); text-align: center; }
.partners img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Éditeur par blocs (administration) */
.blocks { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.blk { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--sable-clair); }
.blk-tag { flex: none; width: 7.5rem; padding: .5rem 0; border-radius: 12px; background: var(--bleu); color: #fff; text-align: center; font-weight: 800; font-size: .95rem; }
.blk-body { flex: 1 1 18rem; min-width: 0; }
.blk-body label { display: block; margin: 0 0 .3rem; font-weight: 700; }
.blk-body input[type="text"], .blk-body input[type="url"] { margin-bottom: .8rem; }
.blk-body textarea, .blk-body input[type="text"], .blk-body input[type="url"] { max-width: none; }
.blk-tools { display: flex; flex: none; gap: .5rem; }
.mini { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 3px solid var(--bleu); border-radius: 12px; background: var(--sable); color: var(--bleu); font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.mini:disabled { opacity: .35; cursor: default; }
.mini-del { border-color: var(--rouge); color: var(--rouge); }
.blk-media { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.blk-media > div { flex: 1 1 14rem; min-width: 0; }
.blk-media img { border-radius: 12px; }
.ph { display: flex; align-items: center; justify-content: center; width: 10rem; height: 7rem; padding: .5rem; border: 3px dashed var(--bleu); border-radius: 12px; text-align: center; font-size: .95rem; font-weight: 700; }
.add-blocks { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border: 3px dashed var(--bleu); border-radius: 18px; }
.board-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; }
.logo-prev { background: #fff; padding: .4rem; }
.preview-bar { box-shadow: inset 0 0 0 3px var(--jaune); }
.preview-frame { padding: 1.5rem; border: 3px dashed var(--bleu); border-radius: 20px; background: var(--sable); }

/* ===================== Étape 4 : Ch'ti Chat ===================== */

.rules ul { margin: 0 0 .5rem; padding-left: 1.25rem; }
/* Salons : boutons au-dessus de la discussion */
.chat-rooms { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .75rem; }
.room-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem 1.1rem; border: 3px solid var(--bleu); border-radius: 999px; background: var(--sable-clair); color: var(--bleu); font-weight: 800; text-decoration: none; }
.room-link[aria-current="page"] { background: var(--bleu); color: #fff; }
.chat-room-info { margin: 0 0 .75rem; padding: .8rem 1rem; border-left: 6px solid var(--jaune); border-radius: 12px; background: var(--sable-clair); }
.chat-room-info h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.chat-room-info p { margin: .2rem 0 0; }
/* Discussion et zone de saisie dans un même cadre : on voit les messages arriver pendant qu'on écrit */
.chat-panel { margin: 0 0 .5rem; border: 3px solid var(--bleu); border-radius: 20px; background: var(--sable-clair); overflow: hidden; }
.chat-box { display: flex; flex-direction: column; height: 24rem; max-height: 52vh; overflow-y: auto; padding: .5rem; }
.chat-list { margin-top: auto !important; }   /* les messages se posent en bas, juste au-dessus de la zone de saisie */
.chat-composer { margin: 0; padding: .7rem .8rem .5rem; border-top: 3px solid var(--bleu); background: #fff; }
.chat-composer .alert { margin: 0 0 .6rem; }
.chat-label { position: absolute; left: -9999px; }
.chat-compose-row { display: flex; align-items: stretch; gap: .5rem; }
.chat-compose-row textarea { flex: 1 1 auto; min-width: 0; min-height: 3.4rem; max-width: none; margin: 0; resize: vertical; }
.chat-send { flex: none; align-self: stretch; min-height: 3.4rem; }
.chat-as { margin: 0 0 .5rem; }
.chat-as summary { min-height: 2.5rem; cursor: pointer; }
.chat-as summary::-webkit-details-marker { display: none; }
.chat-as summary { list-style: none; }
.chat-change { color: var(--bleu); text-decoration: underline; }
.chat-as[open] summary { margin-bottom: .3rem; }
.chat-as input { max-width: 20rem; }
.chat-pseudo { margin-bottom: .5rem; }
.chat-composer .check { margin: .5rem 0 0; }
.chat-keys { display: none; margin: .3rem 0 0; font-size: .9rem; }
.js .chat-keys { display: block; }
.chat-list { margin: 0; padding: 0; list-style: none; }
.chat-msg, .chat-empty { margin: 0 0 .5rem; padding: .6rem .9rem; border-radius: 14px; background: #fff; }
.chat-msg { position: relative; }
.chat-empty { background: transparent; }
.chat-head { margin: 0 0 .1rem; padding-right: 6.5rem; }
.chat-head strong { color: var(--bleu); }
.chat-when { font-size: .95rem; opacity: .8; }
.chat-body { margin: 0; overflow-wrap: anywhere; }
.chat-report { position: absolute; top: 0; right: .3rem; margin: 0; }
.link-btn { min-height: 2.75rem; padding: 0 .4rem; border: 0; background: none; color: var(--bleu); font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; }
.chat-reported { display: block; margin-top: .2rem; text-align: right; font-size: .95rem; }
.chat-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.chat-auto { display: none; }
.js .chat-auto { display: inline; }
.js .chat-refresh .bt { display: none; }
.room-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; }
.room-form { margin-top: 1rem; }
.adm-item details { margin: .5rem 0; }
.adm-item details summary { list-style: none; }
.adm-item details summary::-webkit-details-marker { display: none; }
.block-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.block-form label:first-child { font-weight: 700; }
.block-form select { width: auto; min-height: 3rem; }
.block-form .check { margin: 0; min-height: 0; }

/* ===================== Étape 5 : taille du texte, publicité ===================== */

html.text-l { font-size: 112.5%; }
html.text-xl { font-size: 125%; }
.text-size { border: 0; font: inherit; font-size: 1.15rem; font-weight: 900; cursor: pointer; }
.text-size[hidden] { display: none; }
.ad-band { max-width: 60rem; margin: 0 auto 1.5rem; padding: 0 1.25rem; text-align: center; }
.ad-label { margin: 0 0 .2rem; font-size: .85rem; opacity: .8; }
.adsbygoogle { display: block; min-height: 50px; max-height: 120px; overflow: hidden; }

@media (min-width: 56rem) {
  .welcome { grid-template-columns: 2fr 3fr; }
  .cal-layout { grid-template-columns: 1fr 1fr; }
  .ev-layout { grid-template-columns: 1.1fr .9fr; }
}

@supports selector(:has(*)) {
  .choice:has(input:checked) { background: var(--bleu); color: #fff; }
  .choice:has(input:checked) input { accent-color: var(--jaune); }
}

@media (prefers-reduced-motion: reduce) {
  .alert-band-on { animation: none; }
}

@media (max-width: 40rem) {
  h1 { font-size: 1.8rem; }
  .site-name { font-size: 1.15rem; }
  .tagline { font-size: 1.1rem; }
  .hd-tools { width: 100%; }
  .hd-tools .menu { flex: 1; }
  .menu summary { width: 100%; }
  /* Accueil sur téléphone : 3 prochaines sorties seulement (6 sur ordinateur). */
  .ev-home > li:nth-child(n+4) { display: none; }
}
