:root { --navy:#2F2F3D; --coral:#C97F12; --blue:#1F2433; --grey:#53636E; --gold:#D4AF37; --text-dark:#2F2F3D; --light-gray:#f4f4f4; --gray:#6d6d78; }
* { box-sizing:border-box; }
body { margin:0; color:var(--text-dark); background:white; font-family:'Nunito Sans', Arial, sans-serif; }
a { color:inherit; text-decoration:none; }
.container { width:min(560px, calc(100% - 32px)); margin:0 auto; }
.portal-header { background:var(--blue); color:white; padding:26px 0; text-align:center; }
.portal-header h1 { font-family:'Montserrat', Arial, sans-serif; font-size:22px; margin:0; }
.portal-main { padding:64px 0; min-height:60vh; }
.eyebrow { margin:0 0 10px; color:var(--blue); text-transform:uppercase; letter-spacing:.14em; font-weight:900; font-size:11px; }
h2 { font-family:'Montserrat', Arial, sans-serif; font-size:28px; color:var(--text-dark); margin:0 0 24px; }
.card { background:var(--light-gray); border-radius:8px; padding:32px; margin-bottom:28px; }
.card h3 { font-family:'Montserrat', Arial, sans-serif; font-size:18px; margin:0 0 16px; }
.meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; font-size:14px; }
.meta-grid span.full { grid-column:span 2; }
label { display:block; font-size:12px; font-weight:800; color:var(--text-dark); margin-bottom:20px; }
input, textarea, select { width:100%; margin-top:8px; border:1px solid #d7d7dc; border-radius:4px; padding:12px 14px; font:500 15px 'Nunito Sans', Arial, sans-serif; color:var(--text-dark); outline:none; background:white; }
textarea { resize:vertical; min-height:100px; }
input:focus, textarea:focus, select:focus { border-color:var(--blue); box-shadow:0 0 0 3px #1F243318; }
.button { display:inline-flex; align-items:center; gap:14px; min-height:48px; padding:0 22px; border-radius:5px; border:none; font-weight:800; font-size:14px; cursor:pointer; text-decoration:none; }
.button-coral { background:var(--coral); color:white; }
.button-coral:hover { opacity:.92; }
.logo-current-label { margin:0 0 8px; font-size:12px; font-weight:800; color:var(--text-dark); }
.logo-preview { width:64px; height:64px; border-radius:6px; overflow:hidden; background:white; margin-bottom:14px; border:1px solid #d7d7dc; }
.logo-preview img { width:100%; height:100%; object-fit:contain; }
.notice { padding:14px 18px; border-radius:6px; font-size:14px; margin-bottom:24px; }
.notice-success { background:#e2f5e9; color:#1c6b3d; }
.notice-error { background:#fde2e2; color:#a12727; }
.text-link { color:var(--blue); font-weight:700; font-size:13px; }
.text-link:hover { text-decoration:underline; }
.center { text-align:center; }
.top-space { margin-top:18px; }
.button-stacked { flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:2px; min-height:56px; }
.button-stacked span, .button-stacked small { display:block; width:100%; text-align:center; }
.button-stacked small { font-size:11px; font-weight:600; opacity:.85; }
.modal-overlay { position:fixed; inset:0; background:rgba(47,47,61,.6); display:flex; align-items:center; justify-content:center; z-index:1000; padding:16px; }
.modal-overlay[hidden] { display:none; }
.modal-shell { display:flex; flex-direction:column; align-items:flex-end; gap:8px; width:min(960px, 96vw); max-height:100%; }
.modal-close { flex:0 0 auto; border:none; background:white; border-radius:6px; padding:8px 14px; font-size:14px; font-weight:800; cursor:pointer; box-shadow:0 1px 6px rgba(0,0,0,.25); color:var(--text-dark); }
.modal-box { position:relative; width:100%; height:min(880px, 92vh); background:white; border-radius:10px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.35); }
.modal-box iframe { width:100%; height:100%; border:none; display:block; }

/* Barre de navigation commune (espace membre + billetterie) : visible seulement pour les administrateurs. */
.admin-nav { display:flex; justify-content:center; gap:6px; margin-top:14px; font-size:14px; font-weight:800; flex-wrap:wrap; }
.admin-nav a { color:white; opacity:.85; padding:6px 14px; border-radius:999px; text-decoration:none; }
.admin-nav a:hover { opacity:1; background:rgba(255,255,255,.15); }
.admin-nav a.actif { opacity:1; background:rgba(255,255,255,.25); }

/* Espace membre : barre de menu collante, sections ancrées, pied de page. */
html { scroll-behavior:smooth; }
body { background:#fafafc; }
.portal-nav { position:sticky; top:0; z-index:500; background:var(--navy); color:white; box-shadow:0 2px 10px rgba(0,0,0,.18); }
.portal-nav-inner { width:min(1040px, calc(100% - 32px)); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:60px; position:relative; }
.portal-brand { font-family:'Montserrat', Arial, sans-serif; font-weight:800; font-size:18px; letter-spacing:.04em; white-space:nowrap; }
.portal-brand span { font-weight:600; font-size:13px; opacity:.7; margin-left:8px; letter-spacing:0; }
.portal-menu { display:flex; align-items:center; gap:4px; }
.portal-menu a { padding:8px 14px; border-radius:999px; font-size:14px; font-weight:700; color:white; opacity:.8; }
.portal-menu a:hover { opacity:1; background:rgba(255,255,255,.12); }
.portal-menu a.actif { opacity:1; background:var(--coral); }
.portal-menu a.menu-sortie { margin-left:8px; border:1px solid rgba(255,255,255,.35); opacity:.9; }
.nav-toggle { display:none; background:none; border:1px solid rgba(255,255,255,.4); color:white; border-radius:6px; font-size:20px; line-height:1; padding:6px 12px; cursor:pointer; }
.container-large { width:min(760px, calc(100% - 32px)); }
.portal-main { padding:40px 0 56px; }
.accueil { margin-bottom:28px; padding-bottom:24px; border-bottom:1px solid #e6e6ec; }
.accueil h2 { margin-bottom:8px; }
.ancre { scroll-margin-top:84px; }
section.ancre h2 { margin-bottom:16px; }
#adhesion { scroll-margin-top:84px; }
.card { background:white; border:1px solid #e6e6ec; box-shadow:0 1px 3px rgba(47,47,61,.06); }
h2.ancre { margin-top:44px; padding-top:8px; }
.portal-footer { background:var(--navy); color:white; text-align:center; padding:22px 16px; font-size:13px; opacity:.95; }
.portal-footer p { margin:0; }
.portal-footer a { text-decoration:underline; }
@media (max-width:760px) {
	.nav-toggle { display:block; }
	.portal-menu { display:none; position:absolute; top:60px; left:-16px; right:-16px; flex-direction:column; align-items:stretch; background:var(--navy); padding:10px 16px 16px; gap:2px; box-shadow:0 8px 16px rgba(0,0,0,.25); }
	.portal-menu.ouvert { display:flex; }
	.portal-menu a { border-radius:6px; padding:12px 14px; }
	.portal-menu a.menu-sortie { margin:8px 0 0; text-align:center; }
	.portal-brand span { display:none; }
}

/* Sous-onglets de « Mon adhésion », tableau des achats, bouton contour. */
.sous-onglets { display:flex; gap:6px; flex-wrap:wrap; border-bottom:2px solid #e6e6ec; margin-bottom:24px; }
.sous-onglets a { padding:10px 16px; font-size:14px; font-weight:800; color:var(--gray); border-bottom:3px solid transparent; margin-bottom:-2px; }
.sous-onglets a:hover { color:var(--text-dark); }
.sous-onglets a.actif { color:var(--blue); border-bottom-color:var(--blue); }
.sous-titre { font-family:'Montserrat', Arial, sans-serif; font-size:20px; margin:0 0 16px; }
.table-achats { width:100%; border-collapse:collapse; font-size:14px; }
.table-achats th, .table-achats td { text-align:left; padding:10px 8px; border-bottom:1px solid #e6e6ec; vertical-align:top; }
.table-achats .d { text-align:right; white-space:nowrap; }
.button-contour { background:white; color:var(--text-dark); border:1px solid #c9c9d1; }
.button-contour:hover { background:var(--light-gray); }
@media (max-width:560px) { .table-achats th:nth-child(4), .table-achats td:nth-child(4) { display:none; } }
.petit-note { font-size:13px; color:var(--gray); margin:0 0 12px; }

.carte-ev { padding:0; overflow:hidden; }
.carte-ev { display:flex; align-items:stretch; }
.ev-couverture { display:block; flex:0 0 40%; width:40%; max-height:220px; aspect-ratio:16 / 9; object-fit:cover; background:#FBF0DC; }
.carte-ev-corps { flex:1; min-width:0; }
@media (max-width: 640px) { .carte-ev { flex-direction:column; } .ev-couverture { flex-basis:auto; width:60%; max-height:none; margin:0 auto; } }
.carte-ev-corps { padding:1.25rem 1.5rem; }
.carte-ev-corps h3 { margin-top:0; }
.ev-infos { list-style:none; margin:.5rem 0; padding:0; }
.ev-infos li { margin:.25rem 0; }
.ev-desc { margin:.5rem 0; }
.ev-desc summary { cursor:pointer; color:#1F2433; font-weight:600; }
.ev-desc div { margin-top:.5rem; }
.ligne-abo { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; flex-wrap:wrap; }
.ligne-abo-texte { margin:0; line-height:1.7; }
@media (max-width: 560px) { .ligne-abo .button { width:100%; } }
.carte-apercu { display:block; width:min(560px,100%); aspect-ratio:7 / 4; border:0; background:transparent; }

/* Logo Canis Connexa dans l'en-tête */
.logo-entete { height:34px; width:auto; background:#fff; border-radius:6px; padding:2px 6px; vertical-align:middle; margin-right:10px; box-sizing:content-box; }
.portal-brand { display:inline-flex; align-items:center; }
.portal-header h1 { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:0; }
@media (max-width:640px) { .logo-entete { height:28px; margin-right:8px; } }

/* Démonstration */
body::after { content: "Démonstration · données fictives"; position: fixed; right: 12px; bottom: 12px; z-index: 50; background: #C97F12; color: #fff; font: 700 12px Arial, sans-serif; padding: 7px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
@media print { body::after { display: none; } }
