/* Identité Bras Ouverts, reprise du logo : bleu marine et turquoise, sur fond crème. */
:root {
  --bg: #f6efe3;          /* sable doux */
  --surface: #ffffff;
  --ink: #1f2a3a;
  --muted: #546071;
  --line: #e0dbd1;
  --accent: #0f6e67;      /* turquoise du logo, assombri : contraste AA sur le sable et les dégradés */
  --accent-ink: #ffffff;
  --green: #1f2a3a;       /* bleu marine du logo */
  --soft: #e6efec;        /* fond des encadrés */
  --corail: #a94631;      /* la P'tite Boutik (contraste AA sur sable et dégradé) */
  --corail-doux: #fbe3d9;
  --lagon-doux: #d9efec;
  --bleu: #2a5aa6;        /* événements de l'agenda (ciné goûter, fête…) : contraste AA sur blanc et sable */
  --bleu-doux: #e3ebf8;
  --ok: #0f6e67;
  --ph: #8a929d;          /* contenus à compléter */
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a22; --surface: #1c2631; --ink: #eef2f5; --muted: #a9b5c2; --line: #2b3745;
    --accent: #3cc5b8; --accent-ink: #131a22; --green: #8fd9d0; --soft: #1a2a30; --ok: #3cc5b8; --ph: #7d8896; --corail: #f08a72; --corail-doux: #3a2523; --lagon-doux: #17312f; --bleu: #8db4f2; --bleu-doux: #1c2a42; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131a22; --surface: #1c2631; --ink: #eef2f5; --muted: #a9b5c2; --line: #2b3745;
  --accent: #3cc5b8; --accent-ink: #131a22; --green: #8fd9d0; --soft: #1a2a30; --ok: #3cc5b8; --ph: #7d8896; --corail: #f08a72; --corail-doux: #3a2523; --lagon-doux: #17312f; --bleu: #8db4f2; --bleu-doux: #1c2a42; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Pas de zoom au double-tap sur téléphone (le pincement reste possible, pour qui en a besoin). */
html, button, a, input, select, textarea, label, summary { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: 65ch; }

/* Toute la largeur possible sur grand écran (même largeur que la boutique) */
.wrap { max-width: 1520px; margin: 0 auto; padding-inline: clamp(20px, 3vw, 48px); }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 10px; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 46px; width: auto; }
.logo .logo-sombre { display: none; }
/* Logo en couleur sur transparent : en thème sombre, posé sur une pastille claire pour rester lisible. */
:root[data-theme="dark"] .logo-clair { display: none; }
:root[data-theme="dark"] .logo-sombre { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-clair { display: none; } :root:not([data-theme="light"]) .logo-sombre { display: block; } }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.top nav a:hover { color: var(--accent); }

/* Bouton thème clair / sombre : la lune s'affiche en clair, le soleil en sombre */
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
/* Bouton du menu mobile : caché sur ordinateur */
.menu-toggle { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.menu-toggle:hover { color: var(--accent); border-color: var(--accent); }
.menu-ico { display: grid; gap: 4px; width: 18px; }
.menu-ico span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-ouvert .menu-ico span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .menu-ico span:nth-child(2) { opacity: 0; }
.menu-ouvert .menu-ico span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-ico span { transition: none; } }

@media (max-width: 700px) {
  .top .wrap { gap: 8px 10px; }
  .logo img { height: 38px; }
  .theme-toggle { width: 40px; height: 40px; }
  .top nav { order: 3; flex-basis: 100%; margin-left: 0; }
  /* Avec JavaScript : menu replié derrière le bouton */
  .js .menu-toggle { display: inline-flex; margin-left: auto; }
  /* Ouvert, le menu occupe tout l'écran sous l'en-tête : toutes les rubriques sont visibles d'un coup. */
  .js .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 61px); height: calc(100dvh - 61px - env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0; padding: 8px max(20px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-top: 1px solid var(--line); }
  .js.menu-ouvert .top nav { display: flex; }
  .js.menu-ouvert body { overflow: hidden; }
  .js .top nav a { padding: 16px 4px; font-family: var(--display); font-size: 1.45rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .js .top nav a:last-child { border-bottom: 0; }
  .js .top nav a:hover, .js .top nav a:active { color: var(--accent); }
}
/* Sans JavaScript : le thème reste à droite, le menu complet passe dessous */
@media (max-width: 700px) { :root:not(.js) .theme-toggle { margin-left: auto; } }

/* Accueil */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
  background: radial-gradient(90% 80% at 100% 0%, var(--lagon-doux), transparent 62%), radial-gradient(70% 70% at 0% 100%, var(--corail-doux), transparent 60%); }
.hero .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.8rem); letter-spacing: -0.02em; max-width: 15ch; }
.hero h1 em, h2 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin-top: 22px; }
.hero .btn { margin-top: 32px; }

section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; }
.sec-head .lab { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.sec-head p { color: var(--muted); }

.btn { display: inline-block; justify-self: start; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 10px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-lg { font-size: 1.1rem; padding: 14px 28px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Nos actions */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.action { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--r); min-width: 0; }
.action:nth-child(2n) { border-top-color: var(--green); }
.action img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.action .help { font-weight: 700; color: var(--green); }

.facts { display: grid; gap: 12px; margin: 0; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }

/* Parcours Alpha */
.alpha { background: var(--soft); }
.alpha .facts { background: var(--surface); }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.two > * { min-width: 0; }
.two .text { display: grid; gap: 18px; }
.session-one { font-weight: 700; padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.closed { padding: 22px; background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); font-weight: 700; }

/* Parcours Alpha : questions, déroulement, FAQ */
.questions h3, .steps-wrap h3, .faq h3 { font-size: 1.15rem; margin-bottom: 12px; }
.questions ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.questions li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--display); font-style: italic; }
.reassure { font-weight: 700; color: var(--accent); }
.steps-wrap, .faq { margin-top: clamp(32px, 5vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: pas; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); counter-increment: pas; }
.steps li::before { content: counter(pas); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps h4 { margin: 0; font-family: var(--display); font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; color: var(--accent); }
.more-link { margin-top: 28px; font-weight: 700; }

/* Nous trouver */
.find { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.find > * { min-width: 0; }
.find-list { display: grid; gap: 16px; margin: 0; }
.find-list > div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.find-list dt { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.find-list dd { margin: 6px 0 0 34px; font-size: 1.1rem; font-weight: 700; }
.find-list a { text-decoration: none; }
.find-list a:hover { text-decoration: underline; }
.map { display: grid; gap: 10px; }
.map iframe { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.map a { font-weight: 700; }
@media (max-width: 900px) { .find { grid-template-columns: 1fr; } .map iframe { height: 300px; } }

/* Formulaires */
.js-form { display: grid; gap: 16px; padding: clamp(18px, 4vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-width: 760px; }
.js-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.js-form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.js-form .req { color: var(--accent); }
.js-form input, .js-form select, .js-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
  font-size: max(16px, 1rem); /* sous 16 px, l'iPhone zoome sur la page dès qu'on touche le champ */
}
.js-form textarea { resize: vertical; }
.js-form input:focus-visible, .js-form select:focus-visible, .js-form textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.js-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.js-form .consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.js-form .note { font-size: 0.85rem; color: var(--muted); }
.js-form .status:empty { display: none; }
.js-form .status { font-weight: 700; }
.js-form .status.ok { color: var(--ok); }
.js-form .status.err { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-alt { margin-top: 18px; font-weight: 700; }
.mail-alt a { word-break: break-word; }
.social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; }

.prose { display: grid; gap: 16px; }

/* Contenu à compléter */
.ph { color: var(--ph); font-style: italic; font-weight: 400; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.legal summary { cursor: pointer; font-weight: 700; }
.legal dl { display: grid; gap: 10px; margin: 14px 0 0; max-width: 60ch; }
.legal dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.legal dd { margin: 0; }

@media (max-width: 900px) {
  .actions, .two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .js-form .row { grid-template-columns: 1fr; }
}

/* Espace équipe : liste des inscrits */
.equipe-titre { margin-left: auto; font-weight: 700; color: var(--muted); }
body.equipe section { border-top: 0; }
.eq-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.eq-bar .qui { color: var(--muted); font-size: 0.95rem; }
.eq-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eq-actions select { font: inherit; font-size: max(16px, 1rem); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.btn-clair { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.eq-comptes { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.eq-comptes li { padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.eq-comptes strong { font-family: var(--display); font-size: 1.6rem; color: var(--accent); }
.eq-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.eq-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.eq-table th, .eq-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.eq-table th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.eq-table tr:last-child td { border-bottom: 0; }
.eq-table td.msg { max-width: 22rem; white-space: pre-wrap; color: var(--muted); }
.eq-vide { padding: 24px; color: var(--muted); }
.eq-login { max-width: 460px; }
.eq-onglets { display: flex; gap: 6px; }
.eq-onglet { font: inherit; font-weight: 700; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.eq-onglet[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.eq-filtres { margin-bottom: 20px; }
.eq-equipe { display: grid; gap: 24px; }
.eq-ajout { max-width: 460px; }
.eq-ajout h3 { font-size: 1.15rem; }
.eq-table .btn { padding: 6px 14px; font-size: 0.9rem; }

/* Les deux côtés de l'association */
.portes { display: flex; flex-wrap: wrap; gap: 24px; }
/* Pavés : toujours toute la largeur, même seul sur sa ligne (le dernier s'étire) */
.portes > .porte { flex: 1 1 300px; }
.porte { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--r) + 8px); border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.porte > * { position: relative; }
.porte-corail { background: linear-gradient(150deg, var(--corail-doux), var(--surface) 70%); }
.porte-lagon { background: linear-gradient(150deg, var(--lagon-doux), var(--surface) 70%); }
.porte-bleu { background: linear-gradient(150deg, var(--bleu-doux), var(--surface) 70%); }
.porte-bleu .lab, .porte.porte-bleu h3 em, .porte-bleu .dates .lab { color: var(--bleu); }
.porte-bleu .porte-points li::before { background: var(--bleu); }
.porte-bleu .btn { background: var(--bleu); color: var(--accent-ink); }
.porte .lab { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.porte-corail .lab, .porte-corail h3 em { color: var(--corail); }
.porte-lagon .lab { color: var(--accent); }
.porte h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.porte h3 em { font-style: italic; color: var(--accent); }
.porte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.porte-points { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-weight: 700; }
.porte-points li { padding-left: 26px; position: relative; }
.porte-points li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.porte-corail .porte-points li::before { background: var(--corail); }
.porte .btn { margin-top: 8px; }
.porte-corail .btn { background: var(--corail); color: var(--accent-ink); }

/* Agenda */
.agenda-sec { background: linear-gradient(180deg, transparent, var(--soft)); }
.ag-liste { display: grid; gap: 12px; }
.ag-mois-titre { font-size: 1.15rem; margin-top: 18px; color: var(--muted); }
.ag-mois-titre:first-child { margin-top: 0; }
.ag-items { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ag-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ag-date { display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 0; align-self: start; }
.ag-jour { font-family: var(--display); font-size: 1.7rem; line-height: 1; font-weight: 700; }
.ag-mois { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ag-corps { display: grid; gap: 6px; min-width: 0; }
.ag-corps h3 { font-size: 1.2rem; }
.ag-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 0.95rem; }
.ag-regulier { font-weight: 700; color: var(--accent); }
.ag-desc { white-space: pre-line; }
.ag-lien { font-weight: 700; justify-self: start; }
.ag-vide { padding: 22px; background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); font-weight: 700; }
.ag-erreur { border-style: solid; border-color: var(--corail); }

/* Contact : formulaire et coordonnées côte à côte */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .mail-alt { margin: 0; }
.js-form [aria-invalid="true"] { border-color: var(--corail); outline: 2px solid var(--corail); outline-offset: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .portes > .porte { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .ag-item { grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; }
}

/* Barre de boutons en bas de l'écran, sur téléphone seulement */
.barre { display: none; }
@media (max-width: 700px) {
  body.avec-barre { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .barre { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 9; left: 0; right: 0; bottom: 0;
    padding: 4px max(4px, env(safe-area-inset-left)) env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgb(0 0 0 / 0.06); }
  .barre a { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 7px 2px 6px; color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 700; line-height: 1.15; border-radius: 12px; text-align: center; text-wrap: balance; }
  .barre a[aria-current="true"] { color: var(--accent); }
  .barre a[aria-current="true"] svg { transform: translateY(-1px); stroke-width: 2.2; }
  .barre a:active { background: var(--soft); }
  /* Clavier ouvert ou menu déplié : la barre s'efface */
  .clavier .barre, .menu-ouvert .barre { display: none; }
}

/* Onglet Messages de l'espace équipe */
.eq-messages { display: grid; gap: 14px; }
.eq-intro { color: var(--muted); margin: 0; }
.eq-message { display: grid; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.eq-message.non-lu { border-left: 5px solid var(--accent); }
.eq-message header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.eq-message .eq-date { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.eq-badge { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; font-weight: 700; }
.eq-coord { margin: 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.eq-message .msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.eq-message .btn { padding: 6px 14px; font-size: 0.9rem; }

/* Bandeau « Prochains événements » sous l'en-tête */

/* Couleurs de l'agenda : événements en bleu, maraudes en turquoise, boutique en corail */
.ag-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -18px 0 24px; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.ag-legende li { display: inline-flex; align-items: center; gap: 8px; }
.ag-legende li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.ag-legende .lg-evenement::before { background: var(--bleu); }
.ag-legende .lg-boutik::before { background: var(--corail); }
.ag-legende .lg-maraude::before { background: var(--accent); }
.ag-item { border-left: 5px solid var(--accent); }
.ag-evenement { border-left-color: var(--bleu); background: linear-gradient(90deg, var(--bleu-doux), var(--surface) 60%); }
.ag-evenement .ag-date { background: var(--bleu); }
.ag-evenement h3 { color: var(--bleu); }
.ag-boutik { border-left-color: var(--corail); }
.ag-boutik .ag-date { background: var(--corail); }
.ag-evenement .ag-regulier { color: var(--bleu); }
.ag-maraude .ag-date { background: var(--accent); }

/* Prochaines dates (maraudes, boutique) */
.dates { display: grid; gap: 8px; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.dates .lab { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.porte-corail .dates .lab { color: var(--corail); }
.dates ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dates li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.dates li span { color: var(--muted); }
.dates .dt-vide { color: var(--muted); font-style: italic; }
.action .dates { background: var(--soft); border: 0; }

/* Une seule action (la maraude) : pleine largeur */
.actions-une { grid-template-columns: 1fr; max-width: 820px; }

/* Contact : rappel « nous répondons à tous les messages » */
.contact-note { padding: 18px 20px; border-radius: var(--r); background: var(--soft); font-family: var(--display); font-size: 1.25rem; line-height: 1.35; color: var(--green); }

/* Espace équipe : où partent les e-mails du formulaire */
.eq-mail { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 700; }
.eq-mail.ok { background: var(--soft); color: var(--ok); }
.eq-mail.err { background: var(--corail-doux); color: var(--corail); }
.eq-login .btn { justify-self: start; }

/* Diaporama « Prochains rendez-vous » en haut de l'accueil : un rendez-vous à la fois.
   Les cartes sont empilées dans la même case de grille : la hauteur ne bouge pas d'une carte à l'autre. */
.prochains { padding-block: clamp(20px, 3.5vw, 32px); border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.pr-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pr-lab { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.pr-nav { display: flex; align-items: center; gap: 6px; }
.pr-nav[hidden] { display: none; }
.pr-fleche { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pr-fleche:hover { border-color: var(--accent); color: var(--accent); }
.pr-point { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.pr-point[aria-current="true"] { width: 24px; background: var(--accent); }
.pr-liste { display: grid; margin: 0; padding: 0; list-style: none; }
.pr-item { grid-area: 1 / 1; display: flex; gap: 18px; align-items: center; min-height: 112px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--bleu);
  opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.pr-item.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.pr-boutik { border-left-color: var(--corail); }
.pr-maraude { border-left-color: var(--accent); }
.pr-date { flex: none; display: grid; place-items: center; width: 68px; padding: 8px 0; border-radius: 12px; background: var(--bleu-doux); color: var(--bleu); line-height: 1.1; }
.pr-boutik .pr-date { background: var(--corail-doux); color: var(--corail); }
.pr-maraude .pr-date { background: var(--lagon-doux); color: var(--accent); }
.pr-jour { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.pr-mois { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pr-corps { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pr-sorte { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--bleu); }
.pr-boutik .pr-sorte { color: var(--corail); }
.pr-maraude .pr-sorte { color: var(--accent); }
.pr-titre { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.2; }
.pr-quand { font-size: 0.95rem; color: var(--muted); }
.pr-lien { justify-self: start; margin-top: 4px; font-weight: 700; font-size: 0.92rem; }
.pr-vide { color: var(--muted); border-left-color: var(--line); }
/* Sans bouton, le texte est centré verticalement dans la carte. */
.pr-item:not(:has(> .pr-lien)) { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .pr-item, .pr-item.actif { transition: none; transform: none; } }
@media (max-width: 700px) { .pr-item { gap: 14px; padding: 14px 16px; min-height: 124px; } .pr-date { width: 58px; } .pr-jour { font-size: 1.5rem; } .pr-fleche { display: none; } }

/* Diapos en grand : texte dynamique sur fond coloré (avec un grand pictogramme), ou sur l'image du rendez-vous.
   Couleurs fixes : le texte blanc reste lisible dans les deux thèmes. */
.pr-evenement, .pr-boutik, .pr-maraude { position: relative; overflow: hidden; isolation: isolate; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px;
  min-height: clamp(210px, 26vw, 320px); padding: clamp(20px, 4vw, 44px); border: 0; border-radius: 22px; color: #fff; background: var(--pr-fond); }
.pr-evenement { --pr-fond: linear-gradient(135deg, #2a5aa6, #17325f); }
.pr-boutik { --pr-fond: linear-gradient(135deg, #b9533c, #7d2f20); }
.pr-maraude { --pr-fond: linear-gradient(135deg, #0f6e67, #0a3f3b); }
.pr-avec-image { background: linear-gradient(90deg, rgba(12, 18, 28, .84) 0%, rgba(12, 18, 28, .5) 55%, rgba(12, 18, 28, .18) 100%), var(--pr-img) center / cover no-repeat, #1f2a3a; }
.pr-image-seule { min-height: clamp(240px, 32vw, 400px); background: #1f2a3a; }
/* Image entière (une affiche n'est pas recadrée), posée sur un flou de la même image */
.pr-image-seule::after { content: ""; position: absolute; pointer-events: none; }

.pr-image-seule::after { inset: 0; z-index: -1; background: var(--pr-img) center / cover no-repeat; }
.pr-decor { position: absolute; z-index: -1; right: clamp(12px, 5vw, 64px); top: 50%; transform: translateY(-50%); font-size: clamp(5rem, 14vw, 10rem); line-height: 1; opacity: .22; pointer-events: none; }
.pr-texte { display: flex; gap: clamp(14px, 2.4vw, 26px); align-items: center; max-width: 920px; }
.pr-item .pr-texte .pr-date { width: clamp(64px, 8vw, 96px); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.pr-texte .pr-jour { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.pr-item .pr-texte .pr-sorte { color: rgba(255, 255, 255, .88); }
.pr-texte .pr-titre { color: #fff; font-size: clamp(1.6rem, 4.2vw, 3rem); line-height: 1.08; text-wrap: balance; }
.pr-texte .pr-quand { color: rgba(255, 255, 255, .92); font-size: clamp(.95rem, 1.6vw, 1.15rem); }
.pr-item > .pr-lien { margin: 0; padding: 8px 18px; border-radius: 999px; background: #fff; color: #1f2a3a; text-decoration: none; }
.pr-item > .pr-lien:hover { text-decoration: underline; }
.pr-image-seule > .pr-lien { position: absolute; right: 16px; bottom: 16px; }
@media (max-width: 700px) { .pr-texte { align-items: flex-start; } }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Squelettes de chargement : la place est réservée, rien ne saute quand les données arrivent. */
@keyframes lueur { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.pr-squelette .pr-date, .pr-squelette .pr-corps span, .dt-squelette, .ag-squelette {
  background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--surface)) 50%, var(--line) 100%); background-size: 200% 100%; animation: lueur 1.4s ease-in-out infinite; border-radius: 8px; }
.pr-squelette { border-left-color: var(--line); }
.pr-squelette .pr-date { height: 64px; }
.pr-squelette .pr-corps span { display: block; height: 14px; width: 40%; }
.pr-squelette .pr-corps span + span { height: 22px; width: 70%; margin-top: 8px; }
.dt-squelette { list-style: none; height: 1.4em; }
.dt-squelette:nth-child(2) { width: 85%; } .dt-squelette:nth-child(3) { width: 70%; }
.ag-squelette { height: 96px; border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .pr-squelette .pr-date, .pr-squelette .pr-corps span, .dt-squelette, .ag-squelette { animation: none; } }

/* Calendrier de l'agenda : grille du mois, passé compris, puis la liste des rendez-vous du mois */
.cal { gap: 18px; }
.cal-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-titre { font-size: clamp(1.3rem, 3vw, 1.7rem); min-width: 9ch; text-align: center; }
.cal-fleche { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cal-fleche:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-fleche:disabled { opacity: .35; cursor: default; }
.cal-auj { margin-left: auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.cal-auj[hidden] { display: none; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-entete { padding: 8px 4px; background: var(--soft); text-align: center; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cal-case { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 96px; min-width: 0; padding: 6px; margin: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.cal-hors { background: var(--bg); }
.cal-passe { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.cal-passe .cal-num { color: var(--muted); }
button.cal-case { cursor: pointer; }
button.cal-case:hover { background: var(--soft); }
.cal-num { font-weight: 700; font-size: 0.9rem; }
.cal-auj-case .cal-num { display: inline-grid; place-items: center; align-self: flex-start; min-width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.cal-pastilles { display: grid; gap: 3px; min-width: 0; }
.cal-pastille { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 6px; border-radius: 6px; font-size: 0.76rem; font-weight: 700; background: var(--bleu-doux); color: var(--bleu); border-left: 3px solid var(--bleu); }
.cal-boutik { background: var(--corail-doux); color: var(--corail); border-left-color: var(--corail); }
.cal-maraude { background: var(--lagon-doux); color: var(--accent); border-left-color: var(--accent); }
.cal-passe .cal-pastille { opacity: .6; }
.cal-liste { display: grid; gap: 12px; }
.cal-lien { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; text-align: left; }
.ag-passe { opacity: .72; }
.ag-etiquette { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
.ag-item[data-jour] { scroll-margin: 120px; }
.ag-vu { animation: agVu 1.6s ease; }
@keyframes agVu { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 700px) {
  .cal-case { min-height: 52px; padding: 4px; align-items: center; }
  .cal-entete { font-size: 0.68rem; padding: 6px 0; letter-spacing: 0; }
  .cal-pastilles { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cal-pastille { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; font-size: 0; background: var(--bleu); }
  .cal-boutik { background: var(--corail); }
  .cal-maraude { background: var(--accent); }
  .cal-auj { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ag-vu { animation: none; outline: 3px solid var(--accent); } }
