/* NovaPass — public site. Charte : or clair #C28D41, or sombre #5C431F, blanc, noir du hero. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-800.woff2") format("woff2"); }

:root {
    --blanc: #ffffff;
    --noir: #0b0b0b;
    --dore-clair: #c28d41;
    --dore-sombre: #5c431f;
    --dore-tint: rgba(194, 141, 65, 0.12);
    --degrade-or: linear-gradient(135deg, var(--dore-clair), var(--dore-sombre));
    --texte: #1a1a1a;
    --texte-gris: #555555;
    --bordure: #ececec;
    --fond-doux: #f7f4ef;
    --ombre: 0 2px 10px rgba(16, 20, 35, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.5;
}

img { max-width: 100%; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
main.container { flex: 1 0 auto; width: 100%; padding-top: 32px; padding-bottom: 60px; }
.site-footer { flex-shrink: 0; }
main.container.full { max-width: none; padding-left: 0; padding-right: 0; }
.icon { display: inline-flex; }
.icon svg { width: 100%; height: 100%; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--blanc); box-shadow: 0 1px 0 var(--bordure); }
.site-header-inner { display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 16px 40px; }
.site-header .logo { height: 40px; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: auto; }
.site-nav a { white-space: nowrap; color: var(--texte); font-weight: 600; font-size: 14px; text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a.active { color: var(--dore-clair); }
.account-link { white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.account-link .icon { width: 18px; height: 18px; }
.account-link:hover, .account-link.active { color: var(--dore-clair); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: none; color: var(--texte); cursor: pointer; margin-left: auto; }
.menu-toggle svg { width: 100%; height: 100%; }
.mobile-nav { display: none; flex-direction: column; background: var(--blanc); border-top: 1px solid var(--bordure); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--bordure); }
.mobile-nav a.active { color: var(--dore-clair); }

/* Recherche */
.partner-search { max-width: 520px; margin: 0 0 28px; }
.partner-search-control { display: flex; align-items: center; gap: 8px; background: var(--bordure); border-radius: 999px; padding: 6px 6px 6px 18px; }
.partner-search-control .icon { width: 18px; height: 18px; color: var(--texte-gris); flex-shrink: 0; }
.partner-search input[type="search"] { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: var(--texte); font: inherit; outline: none; }
.partner-search button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--dore-clair); color: var(--blanc); cursor: pointer; }
.partner-search button .icon { width: 16px; height: 16px; color: inherit; }
.partner-search button:hover { background: var(--dore-sombre); }
.search-feedback { display: block; min-height: 16px; margin-top: 6px; padding-left: 18px; color: var(--texte-gris); font-size: 12px; }
.partner-results[aria-busy="true"] { opacity: 0.65; }

/* Titres de page */
.page-title { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-subtitle { color: var(--texte-gris); font-size: 16px; max-width: 560px; margin-bottom: 28px; }
.breadcrumb { font-size: 14px; margin-bottom: 14px; }
.breadcrumb a { color: var(--dore-clair); font-weight: 600; text-decoration: none; }

/* Catégories (pastilles rondes défilables) */
.filters { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 40px; }
.filters::-webkit-scrollbar { display: none; }
.category-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; width: 76px; text-decoration: none; }
.category-circle-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dore-tint); color: var(--dore-clair); transition: background .2s, color .2s; }
.category-circle-icon svg { width: 24px; height: 24px; }
.category-circle-icon svg path { fill: currentColor; }
.category-circle-label { font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.category-circle:hover .category-circle-icon, .category-circle.active .category-circle-icon { background: var(--dore-clair); color: var(--blanc); }
.category-circle.active .category-circle-label { color: var(--dore-clair); }

/* Sections */
.section-block { margin-bottom: 56px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-header h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.section-icon { display: flex; width: 20px; height: 20px; color: var(--dore-clair); flex-shrink: 0; }
.section-icon .icon { width: 100%; height: 100%; }
.section-link { white-space: nowrap; display: flex; align-items: center; gap: 4px; color: var(--dore-clair); font-weight: 600; font-size: 14px; text-decoration: none; flex-shrink: 0; }
.section-link .icon { width: 16px; height: 16px; }
.section-link:hover { color: var(--dore-sombre); }
.no-results { padding: 40px 0; color: var(--texte-gris); }

/* Cartes des établissements */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card { border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre); cursor: pointer; transition: transform .15s, box-shadow .15s; overflow: hidden; position: relative; text-align: left; font: inherit; color: inherit; padding: 0; display: block; width: 100%; }
.partner-card:hover, .partner-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 20, 35, 0.12); }
.partner-image { display: block; }
.partner-image img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--fond-doux); }
.partner-reduc { position: absolute; top: 12px; right: 12px; background: var(--dore-clair); color: var(--blanc); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.partner-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.partner-info-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.partner-nom { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-type, .partner-ville { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-type .icon, .partner-ville .icon { width: 15px; height: 15px; flex-shrink: 0; }
.partner-type svg path { fill: var(--dore-clair); }
.partner-ville { color: var(--texte-gris); }
.partner-ville svg path { fill: var(--dore-clair); }
.partner-chevron { width: 20px; height: 20px; color: var(--dore-clair); flex-shrink: 0; }

/* Carte « établissement recommandé » : image pleine, nom et catégorie en surimpression */
.featured-card { position: relative; display: block; width: 100%; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; padding: 0; text-align: left; color: var(--blanc); font: inherit; box-shadow: var(--ombre); background: var(--noir); transition: transform .15s; }
.featured-card:hover, .featured-card:focus-visible { transform: translateY(-3px); }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 70%); }
.featured-card-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.featured-card-text strong { display: block; font-size: 18px; font-weight: 800; }
.featured-card-text span { color: var(--dore-clair); font-size: 13px; font-weight: 600; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--dore-clair); color: var(--dore-clair); text-decoration: none; font-weight: 700; background: var(--dore-tint); transition: all .2s; }
.page-link:hover, .page-link.active { background: var(--dore-clair); color: var(--blanc); }

/* Accueil : hero */
.hero { position: relative; background: var(--noir); color: var(--blanc); border-radius: 20px; overflow: hidden; display: flex; align-items: center; min-height: 380px; margin-top: 8px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, 0) 62%); }
.hero-text { position: relative; z-index: 2; padding: 48px; max-width: 640px; }
.hero-text h1 { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 28px; }
.hero-text h1 span { color: var(--dore-clair); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid var(--dore-clair); transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit; }
.btn-primary { background: var(--dore-clair); color: var(--blanc); }
.btn-primary:hover { background: var(--dore-sombre); border-color: var(--dore-sombre); }
.btn-outline { background: transparent; color: var(--dore-clair); }
.btn-outline:hover { background: var(--dore-clair); color: var(--blanc); }
.btn-light { background: var(--blanc); color: var(--dore-sombre); border-color: var(--blanc); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn .icon { width: 16px; height: 16px; }

/* Accueil : avantages */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.advantage { background: var(--degrade-or); color: var(--blanc); border-radius: 16px; padding: 28px 18px; text-align: center; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.advantage .icon { width: 40px; height: 40px; }
.advantage h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.advantage p { font-size: 12px; opacity: .92; }

/* Accueil : soutiens */

/* Accueil : CTA */
.cta { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 32px; min-height: 200px; margin: 70px 0 56px; background: var(--degrade-or); color: var(--blanc); border-radius: 20px; padding: 36px 40px 36px 38%; }
.cta-card { position: absolute; left: -24px; top: 50%; width: 36%; max-width: 380px; transform: translateY(-50%) rotate(-8deg); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); border-radius: 10px; overflow: hidden; }
.cta-text h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cta-text p { font-size: 14px; font-weight: 600; opacity: .95; }
.cta .btn { white-space: nowrap; }
.cta-features { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; }
.cta-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .16); padding: 6px 14px; border-radius: 999px; }
.cta-features .icon { width: 14px; height: 14px; }

/* Pied de page */
.site-footer { background: var(--degrade-or); color: rgba(255, 255, 255, .85); margin-top: 8px; }
.footer-top { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; padding: 50px 40px; align-items: center; }
.footer-logo img { height: 46px; }
.footer-tagline { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .75); max-width: 260px; }
.footer-install { margin-bottom: 12px; }
.install-button { padding: 9px 20px; border: 1px solid var(--dore-clair); border-radius: 999px; background: transparent; color: var(--blanc); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.install-button:hover { background: var(--dore-clair); }
.install-hint { font-size: 13px; opacity: .85; }
.footer-social h4, .footer-contact h4 { margin-bottom: 14px; font-size: 16px; color: var(--blanc); }
.social-icons { display: flex; gap: 14px; }
.social-icons a { display: flex; color: var(--blanc); }
.social-icons .icon { width: 24px; height: 24px; }
.footer-contact p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.footer-contact .icon { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom { background: rgba(0, 0, 0, .15); text-align: center; padding: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); }

/* Modal « plus d'infos » */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal { background: var(--blanc); border-radius: 16px; max-width: 960px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; padding: 40px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; cursor: pointer; color: var(--texte); width: 32px; height: 32px; }
.modal-close svg { width: 100%; height: 100%; }
.modal-content { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.modal-main-image { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bordure); }
.modal-main-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-thumbnails { display: flex; gap: 10px; margin-top: 12px; }
.modal-thumbnails img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.modal-thumbnails img:hover, .modal-thumbnails img.current { border-color: var(--dore-clair); }
.modal-badge { display: inline-block; background: var(--dore-clair); color: var(--blanc); font-weight: 700; letter-spacing: 1px; padding: 6px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 12px; text-transform: uppercase; }
.modal-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.modal-ville { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--texte-gris); font-size: 14px; }
.modal-ville .icon { width: 16px; height: 16px; }
.modal-ville svg path { fill: var(--dore-clair); }
.modal-reduction { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.modal-reduction-icon { width: 44px; height: 44px; background: var(--dore-clair); color: var(--blanc); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 10px; flex-shrink: 0; }
.modal-reduction-text { font-size: 22px; font-weight: 700; }
.modal-reduction-text small { display: block; font-size: 13px; font-weight: 400; color: var(--texte-gris); }
.modal-note { background: var(--fond-doux); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--texte-gris); margin: 14px 0; }
.modal-description { margin-top: 14px; color: var(--texte-gris); font-size: 15px; }
.modal-section { margin-top: 26px; }
.modal-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.modal-table-wrap { overflow-x: auto; border: 1px solid var(--bordure); border-radius: 10px; }
table.modal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modal-table th, .modal-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--bordure); }
.modal-table tr:last-child td { border-bottom: 0; }
.modal-table th { background: var(--fond-doux); font-weight: 700; font-size: 13px; }
.modal-table td.rate { font-weight: 700; color: var(--dore-sombre); white-space: nowrap; }
.modal-table td.none { color: var(--texte-gris); }
.modal-table a { color: var(--dore-clair); font-weight: 600; }
.modal-full { grid-column: 1 / -1; }

/* Pages simples (compte, soutiens) */
.card-panel { max-width: 560px; margin: 0 auto; border: 1px solid var(--bordure); border-radius: 16px; padding: 32px; box-shadow: var(--ombre); }
.card-panel h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.card-panel p { color: var(--texte-gris); margin-bottom: 16px; }
.card-panel .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.supporters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 320px)); justify-content: center; gap: 24px; }
.supporter-card { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 32px; border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); }
.supporter-card img { width: 100%; height: 100%; object-fit: contain; }

/* Mon compte */
.flash { background: #ecfdf3; color: #05603a; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.account-card { border: 1px solid var(--bordure); border-radius: 16px; padding: 24px; box-shadow: var(--ombre); background: var(--blanc); margin-bottom: 24px; }
.account-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.account-card h3 { font-size: 15px; font-weight: 800; margin: 20px 0 10px; }
.account-card .section-header { margin-bottom: 14px; }
.account-card .section-header h2 { margin: 0; font-size: 19px; }
.account-profile { text-align: center; }
.account-profile .account-form { text-align: left; border-top: 1px solid var(--bordure); margin-top: 18px; padding-top: 16px; }
.account-profile h2 { font-size: 16px; margin: 0 0 4px; }
.account-form label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
.account-form input { width: 100%; padding: 10px 12px; border: 1px solid #d9d4cc; border-radius: 10px; font: inherit; }
.account-form input[type="file"] { padding: 8px; font-size: 13px; }
.account-form select { width: 100%; padding: 10px 36px 10px 12px; border: 1px solid #d9d4cc; border-radius: 10px; font: inherit; color: var(--texte); background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.account-form input:focus, .account-form select:focus { outline: 2px solid var(--dore-clair); outline-offset: 1px; border-color: var(--dore-clair); }
.account-form .hint { font-size: 12px; color: var(--texte-gris); margin-top: 6px; }
.account-form .error { color: #b42318; font-size: 13px; margin-top: 4px; }
.avatar-large { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; background: var(--degrade-or); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.account-name { font-size: 18px; font-weight: 800; }
.account-email { color: var(--texte-gris); font-size: 14px; margin-bottom: 8px; word-break: break-all; }
.account-card .notice { background: var(--dore-tint); border-radius: 10px; padding: 12px; font-size: 13px; text-align: left; margin-top: 12px; }
.link-button { background: none; border: 0; padding: 0; color: var(--dore-clair); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; margin-top: 8px; }
.btn-small { padding: 9px 18px; font-size: 14px; margin-top: 14px; }
.btn-block { width: 100%; }
.muted { color: var(--texte-gris); }
.small { font-size: 13px; margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--fond-doux); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--dore-sombre); }
.stat-label { font-size: 13px; color: var(--texte-gris); }
.nova-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.nova-card { background: linear-gradient(135deg, #1b1b1b, #000); color: var(--blanc); border-radius: 14px; padding: 18px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(194, 141, 65, .5); }
.nova-card.is-off { opacity: .55; }
.nova-card-type { color: var(--dore-clair); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.nova-card-number { font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.nova-card-meta { font-size: 12px; color: rgba(255, 255, 255, .75); }
.big-rate { font-size: 28px; font-weight: 800; color: var(--dore-sombre); }
.big-rate small { font-size: 14px; font-weight: 400; }
.plain-list { list-style: none; color: var(--texte-gris); }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.steps { padding-left: 20px; color: var(--texte-gris); }
.steps li { margin-bottom: 6px; }
.account-main .pagination { margin-top: 16px; }
.school-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.school-filters input, .school-filters select { padding: 8px 10px; border: 1px solid #d9d4cc; border-radius: 8px; font: inherit; background: #fff; }
.school-filters .btn { margin-top: 0; }

/* Pages d'erreur */
.error-page { text-align: center; max-width: 560px; margin: 40px auto; }
.error-logo { height: 44px; margin-bottom: 24px; }
.error-page .error-code { font-size: 96px; font-weight: 800; line-height: 1; background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.error-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.error-page p { color: var(--texte-gris); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Champ d'image : zone de dépôt (composant <x-file-input>) */
.file-drop { position: relative; }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.file-drop .file-drop-zone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed #d9c7a8; border-radius: 12px;
                  background: #fbf8f2; cursor: pointer; transition: border-color .2s, background .2s; margin: 0; font-weight: 400; }
.file-drop:hover .file-drop-zone, .file-drop.is-dragging .file-drop-zone, .file-drop input:focus-visible + .file-drop-zone { border-color: #c28d41; background: rgba(194, 141, 65, .10); }
.file-drop.has-files .file-drop-zone { border-style: solid; border-color: #c28d41; }
.file-drop-icon { display: flex; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: #c28d41; color: #fff; }
.file-drop-icon svg { width: 24px; height: 24px; }
.file-drop-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: #6b6b6b; text-align: left; }
.file-drop-text strong { color: #1a1a1a; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-drop-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-drop-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #e7e2d9; }
.file-drop-hint { font-size: 12px; color: #6b6b6b; margin: 6px 0 0; }

/* Pages de formulaire (connexion, inscription, activation, scan partenaire…) */
.panel { max-width: 460px; margin: 0 auto; border: 1px solid var(--bordure); border-radius: 16px; padding: 32px 28px; box-shadow: var(--ombre); }
.panel h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.panel h2 { font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.panel p { color: var(--texte-gris); margin-bottom: 12px; }
.panel label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.panel input, .panel select { width: 100%; padding: 11px 14px; border: 1px solid #d9d4cc; border-radius: 10px; font: inherit; background: var(--blanc); }
.panel input:focus, .panel select:focus { outline: 2px solid var(--dore-clair); border-color: var(--dore-clair); }
.panel button[type="submit"]:not(.link-button) { width: 100%; margin-top: 24px; padding: 13px; border: 0; border-radius: 999px; background: var(--dore-clair); color: var(--blanc); font: inherit; font-weight: 700; cursor: pointer; }
.panel button[type="submit"]:not(.link-button):hover { background: var(--dore-sombre); }
.panel .error { color: #b42318; font-size: 13px; margin: 6px 0 0; }
.panel .hint { font-size: 13px; margin: 6px 0 0; }
.panel .notice { background: var(--dore-tint); border-radius: 10px; padding: 12px 14px; color: var(--texte); }
.panel .success { background: #ecfdf3; border-radius: 10px; padding: 12px 14px; color: #05603a; }
.panel .links { margin-top: 20px; text-align: center; font-size: 14px; }
.panel a { color: var(--dore-clair); font-weight: 600; }
.panel .link-button { background: none; border: 0; padding: 0; color: var(--dore-clair); text-decoration: underline; font: inherit; cursor: pointer; width: auto; margin: 0; }
.panel .checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.panel .checkbox input { width: auto; }
.panel ul.cards { padding-left: 18px; color: var(--texte-gris); }
.panel .customer { font-size: 20px; font-weight: 800; margin: 0; color: var(--texte); }
.panel .rates { list-style: none; margin: 12px 0; }
.panel .rates li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bordure); }
.panel .rates strong { color: var(--dore-sombre); }
.panel table.summary { width: 100%; border-collapse: collapse; margin: 12px 0; }
.panel table.summary td { padding: 8px 0; border-bottom: 1px solid var(--bordure); }
.panel table.summary td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.panel .total td { font-weight: 800; font-size: 18px; color: var(--dore-sombre); }
.pending { max-width: 460px; margin: 0 auto 16px; background: #fffaeb; border-radius: 10px; padding: 10px 14px; color: #93370d; font-size: 14px; }
.pending[hidden] { display: none; }

/* Listes défilables sur mobile (accueil) : une ligne qu'on fait glisser au lieu d'une grille qui rétrécit les cartes */
@media (max-width: 768px) {
    .scroll-mobile { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
                     margin-left: -20px; margin-right: -20px; padding: 4px 20px 12px; scroll-padding-left: 20px; scrollbar-width: none; }
    .scroll-mobile::-webkit-scrollbar { display: none; }
    .scroll-mobile > * { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
    .events-grid.scroll-mobile { display: flex; gap: 14px; }
    .advantages.scroll-mobile > * { flex-basis: 62%; max-width: 240px; }
    /* Les cartes gardent leur taille normale (pas la version réduite des petits écrans) */
    .scroll-mobile .partner-image img { height: 180px; }
    .scroll-mobile .partner-info { padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; }
    .scroll-mobile .partner-nom { font-size: 16px; }
    .scroll-mobile .partner-type, .scroll-mobile .partner-ville { font-size: 13px; }
    .scroll-mobile .partner-chevron { display: flex; }
    .scroll-mobile .featured-card-text strong { font-size: 18px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .advantages { grid-template-columns: repeat(2, 1fr); }
    .hero.has-image { flex-direction: column; align-items: stretch; }
    .hero.has-image .hero-bg { position: static; order: 2; height: auto; aspect-ratio: 1410 / 569; }
    .hero.has-image::before { display: none; }
}
@media (max-width: 900px) {
    .account-grid { grid-template-columns: 1fr; }
    .modal-content { grid-template-columns: 1fr; }
    .cta { padding: 36px 28px; flex-direction: column; align-items: flex-start; justify-content: flex-start; margin-top: 40px; }
    .cta-card { position: static; transform: rotate(-6deg); width: 70%; max-width: 280px; margin: -60px 0 0 -8px; }
}
@media (max-width: 700px) {
    .site-header-inner { padding: 14px 20px; }
    .site-nav, .account-link { display: none; }
    .menu-toggle { display: flex; }
    .container { padding: 0 20px; }
    main.container { padding-top: 20px; padding-bottom: 40px; }
    .page-title { font-size: 28px; }
    .hero-text { padding: 32px 24px; }
    .hero-text h1 { font-size: 28px; }
    .partners-grid { gap: 14px; }
    .footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-contact p, .social-icons { justify-content: center; }
    .modal { padding: 24px; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .partner-image img { height: 90px; }
    .partner-info { padding: 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .partner-nom { font-size: 14px; }
    .partner-type, .partner-ville { font-size: 11px; }
    .partner-chevron { display: none; }
    .advantages { gap: 12px; }
    .advantage { padding: 20px 10px; min-height: 150px; }
    .featured-card-text strong { font-size: 14px; }
    .supporters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.account-card h4.rates-country { margin: 14px 0 8px; font-size: 15px; color: var(--or-sombre, #5c431f); }

/* Sélecteur de pays (en-tête) */
.flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); display: block; flex-shrink: 0; }
.country-selector { position: relative; }
.country-selector summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 999px; white-space: nowrap; }
.country-selector summary::-webkit-details-marker { display: none; }
.country-selector summary .icon { width: 14px; height: 14px; transform: rotate(90deg); color: var(--texte-gris); }
.country-selector[open] summary { border-color: var(--dore-clair); }
.country-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre); padding: 8px; }
.country-menu p { margin: 4px 8px 6px; font-size: 12px; color: var(--texte-gris); }
.country-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: var(--texte); cursor: pointer; text-align: left; }
.country-menu button:hover { background: var(--fond-doux); }
.country-menu .soon { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--texte-gris); }
.country-notice { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--fond-doux); border: 1px solid var(--bordure); font-size: 14px; }
.country-notice .link-button { margin: 0; font-weight: 700; }
.country-menu button.active { color: var(--dore-clair); font-weight: 700; }
@media (max-width: 700px) {
    .country-selector { margin-left: auto; }
    .country-selector summary span { display: none; }
    .country-selector + .account-link + .menu-toggle { margin-left: 0; }
}
.footer-bottom p { margin: 0; }
.footer-bottom .geoip-credit { margin-top: 4px; font-size: 11px; opacity: .7; }
.footer-bottom .geoip-credit a { color: inherit; }

/* Nos pays (accueil) */
.countries-band { background: var(--degrade-or); color: var(--blanc); padding: 36px 0 40px; margin-bottom: 56px; }
.countries-band .section-header h2 { color: var(--blanc); }
.countries-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.country-item { position: relative; flex: 1 1 0; min-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 16px; }
.country-flag { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.country-name { font-weight: 700; font-size: 17px; }
.country-soon { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--blanc); color: var(--dore-sombre); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 700px) {
    /* .countries-row is declared after .scroll-mobile: restore the horizontal scrolling it overrides */
    .countries-row.scroll-mobile { flex-wrap: nowrap; gap: 14px; margin: 0 -20px; padding: 4px 20px 12px; }
    .countries-row.scroll-mobile > * { flex: 0 0 45%; min-width: 0; }
    .country-flag { width: 96px; }
}

/* Carte NOVA PASS dessinée en HTML/CSS (<x-nova-card>) : tout est proportionnel à la largeur de la carte (unités cqw). */
.nova-card {
    --or: #e2b04a;
    --or-texte: linear-gradient(180deg, #f6d27a 0%, #d9a23c 55%, #b9832b 100%);
    position: relative; container-type: inline-size; width: 100%; aspect-ratio: 85.6 / 54; overflow: hidden;
    border-radius: 4.2% / 6.6%; isolation: isolate; /* not in cqw: on the container itself, cqw would refer to the page */ font-family: inherit; text-transform: uppercase; user-select: none;
}
.nova-card--member { background: radial-gradient(120% 90% at 50% 40%, #151515 0%, #050505 70%); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.nova-card--privilege { background: radial-gradient(120% 90% at 40% 35%, #ffffff 0%, #f3f1ec 75%); color: #111; border: 2px solid #d4a646; box-shadow: 0 18px 40px rgba(92, 67, 31, 0.18); }

/* Faisceaux de lignes dorées sur les bords */
.nc-lines { position: absolute; top: 0; bottom: 0; width: 30%; z-index: -1; pointer-events: none;
            background: repeating-linear-gradient(118deg, transparent 0 2.6cqw, var(--or) 2.6cqw 3cqw); width: 24%; }
.nc-lines--left { left: -6%; -webkit-mask: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%), linear-gradient(180deg, #000 0%, #000 55%, transparent 80%);
                  mask: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%), linear-gradient(180deg, #000 0%, #000 55%, transparent 80%);
                  -webkit-mask-composite: source-in; mask-composite: intersect; }
.nc-lines--right { right: -6%; background: repeating-linear-gradient(62deg, transparent 0 2.6cqw, var(--or) 2.6cqw 3cqw);
                   -webkit-mask: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%), linear-gradient(0deg, #000 0%, #000 60%, transparent 90%);
                   mask: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%), linear-gradient(0deg, #000 0%, #000 60%, transparent 90%);
                   -webkit-mask-composite: source-in; mask-composite: intersect; }
.nova-card--privilege .nc-lines--left { display: none; }
.nova-card--privilege .nc-lines--right { opacity: .8; }

.nc-label, .nc-holder, .nc-number, .nc-validity, .nc-serial, .nc-tagline b {
    background: var(--or-texte); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nc-label { position: absolute; top: 5.2cqw; right: 5.5cqw; font-size: 3.4cqw; font-weight: 700; letter-spacing: .32em; }
.nova-card--privilege .nc-label { top: 6.2cqw; right: 4.6cqw; font-size: 2.9cqw; letter-spacing: .2em; }

.nc-ribbon { position: absolute; top: 4.4cqw; left: 0; padding: 1.3cqw 8cqw 1.3cqw 5.5cqw; font-size: 2.4cqw; font-weight: 700; letter-spacing: .25em; color: #fff;
             background: linear-gradient(90deg, #a87a2c, #e3b453 70%, #c7963b); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.nc-serial { position: absolute; top: 12.2cqw; left: 5.5cqw; font-size: 2.6cqw; font-weight: 700; letter-spacing: .15em; }

.nc-brand { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 60%; display: flex; flex-direction: column; align-items: center; gap: 1.8cqw; }
.nc-brand img { width: 100%; display: block; }
.nc-tagline { font-size: 2.8cqw; font-weight: 600; letter-spacing: .22em; white-space: nowrap; color: inherit; }
.nova-card--member .nc-tagline { color: #f2f2f2; }

.nc-holder { position: absolute; left: 6cqw; bottom: 6.6cqw; font-size: 3.1cqw; font-weight: 700; letter-spacing: .14em; }
.nc-id { position: absolute; right: 5.5cqw; bottom: 5.4cqw; display: flex; flex-direction: column; align-items: flex-end; gap: .6cqw; text-align: right; }
.nc-number { font-size: 3.1cqw; font-weight: 700; letter-spacing: .1em; }
.nc-validity { font-size: 2.2cqw; font-weight: 700; letter-spacing: .12em; }

/* Page Cartes */
.cards-intro { text-align: center; max-width: 780px; margin: 24px auto 48px; }
.cards-intro .page-subtitle { max-width: none; font-size: 19px; color: var(--texte); }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.card-offer { display: flex; flex-direction: column; gap: 18px; }
.card-offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; }
.card-offer-foot h2 { margin: 0; font-size: 22px; font-weight: 700; }
.card-offer-foot .btn { margin-top: 0; white-space: nowrap; }
.cards-order { display: flex; justify-content: center; margin: 72px 0 24px; }
.btn-large { padding: 20px 40px; font-size: 18px; }
.cards-empty { text-align: center; }

.card-dialog { margin: auto; /* the global reset removes the centring of <dialog> */ width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.card-dialog::backdrop { background: rgba(10, 10, 10, .55); }
.card-dialog .nova-card { max-width: 380px; margin: 4px auto 20px; }
.card-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.card-dialog-text { color: var(--texte-gris); margin: 0 0 14px; white-space: pre-line; }
.card-dialog-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fond-doux); font-size: 22px; line-height: 1; cursor: pointer; color: var(--texte); }
.card-dialog-close:focus { outline: none; }
.card-dialog-close:focus-visible { outline: 2px solid var(--dore-clair); outline-offset: 2px; }
.card-benefits { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.card-benefits li { position: relative; padding-left: 26px; }
.card-benefits li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--dore-clair); border-bottom: 2.5px solid var(--dore-clair); transform: rotate(-45deg); }
.card-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px; padding: 14px 16px; background: var(--fond-doux); border-radius: 12px; }
.card-facts dt { font-size: 12px; color: var(--texte-gris); text-transform: uppercase; letter-spacing: .05em; }
.card-facts dd { margin: 0; font-weight: 700; }
.card-dialog > .btn { width: 100%; }

@media (max-width: 800px) {
    .cards-grid { grid-template-columns: 1fr; gap: 36px; }
    .cards-intro { margin: 8px auto 32px; }
    .cards-intro .page-subtitle { font-size: 16px; }
    .card-offer-foot { padding: 0 4px; }
    .card-offer-foot h2 { font-size: 19px; }
    .cards-order { margin-top: 48px; }
    .btn-large { padding: 16px 30px; font-size: 16px; }
    .card-dialog { padding: 22px 18px; }
}
.admin-edit { margin-top: 10px; font-size: 14px; } .admin-edit a { color: var(--dore-clair); font-weight: 600; }

/* Image de carte envoyée depuis le back-office (remplace la carte dessinée en CSS) */
.card-picture { display: block; width: 100%; height: auto; border-radius: 4.2% / 6.6%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22)); }
.card-dialog .card-picture { max-width: 380px; margin: 4px auto 20px; }

/* Nos soutiens : une section par catégorie */
.supporter-group { margin: 0 0 44px; }
.supporter-group h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--dore-clair); display: inline-block; }
a.supporter-card { text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.supporter-card:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.supporter-group .supporters-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); justify-content: start; }

/* Pages de texte (politique de confidentialité) */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin: 34px 0 10px; font-size: 21px; color: var(--dore-sombre); }
.legal p, .legal li { line-height: 1.65; }
.legal ul { margin: 8px 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--dore-sombre); }
.legal code { background: var(--fond-doux); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--bordure); }
.legal-table th { background: var(--fond-doux); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-gris); }
.legal-note { margin: 12px 0 4px; font-size: 12.5px; color: var(--texte-gris); }
.legal-note a { color: var(--dore-sombre); }
.footer-bottom a { color: inherit; }
@media (max-width: 700px) { .legal-table { display: block; overflow-x: auto; } }
.legal p { margin: 0 0 12px; }
.legal h3 { margin: 20px 0 6px; font-size: 16px; }
.legal .page-title { font-size: 34px; line-height: 1.2; }

/* Mobile : les logos de soutiens sur deux colonnes, tailles adaptées à la largeur de l'écran */
@media (max-width: 700px) {
    .supporter-group { margin-bottom: 32px; }
    .supporter-group h2 { font-size: 18px; }
    .supporter-group .supporters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 12px; }
    .supporter-group .supporter-card { aspect-ratio: 1 / 1; padding: 14px; border-radius: 12px; }
}

/* Formulaire de commande */
.order-page { max-width: 760px; margin: 0 auto; }
.order-form { display: grid; gap: 18px; margin-top: 8px; }
.order-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-field label, .order-cards legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.order-field input { width: 100%; padding: 13px 14px; border: 1px solid #d9d4cc; border-radius: 12px; font: inherit; background: var(--blanc); }
.order-field input:focus, .order-qty input:focus { outline: 2px solid var(--dore-clair); outline-offset: 1px; border-color: var(--dore-clair); }
.order-form .error { color: #b42318; font-size: 13px; margin-top: 4px; }
.order-cards { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); transition: border-color .15s, box-shadow .15s, background .15s; }
.order-card.is-chosen { border-color: var(--dore-clair); background: #fbf6ec; box-shadow: 0 2px 10px rgba(194, 141, 65, .18); }
.order-card-visual { width: 120px; height: auto; display: block; border-radius: 4.2% / 6.6%; }
.order-card-visual.nova-card { box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.order-card-info { display: grid; gap: 2px; }
.order-qty { display: inline-flex; align-items: center; border: 1px solid #d9d4cc; border-radius: 999px; overflow: hidden; background: var(--blanc); }
.order-qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--dore-sombre); cursor: pointer; }
.order-qty button:hover { background: var(--fond-doux); }
.order-qty input { width: 48px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.order-qty input::-webkit-outer-spin-button, .order-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-done { padding: 28px; border: 1px solid #bfe3cd; border-radius: 18px; background: #eef7f2; }
.order-done h2 { margin: 0 0 12px; font-size: 22px; color: #145a34; }
.order-done ul { margin: 0 0 14px; padding-left: 20px; }
.order-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 700px) {
    .order-field-row { grid-template-columns: 1fr; }
    .order-card { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
    .order-card-visual { width: 84px; }
    .order-qty { grid-column: 1 / -1; justify-self: end; }
}
.order-card { cursor: pointer; grid-template-columns: 120px 1fr auto; }
.order-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.order-check-box { display: block; width: 28px; height: 28px; border: 2px solid #cfc7ba; border-radius: 8px; background: var(--blanc); transition: background .15s, border-color .15s; position: relative; }
.order-card.is-chosen .order-check-box { background: var(--dore-sombre); border-color: var(--dore-sombre); }
.order-card.is-chosen .order-check-box::after { content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.order-check input:focus-visible + .order-check-box { outline: 2px solid var(--dore-clair); outline-offset: 2px; }
@media (max-width: 700px) { .order-card { grid-template-columns: 84px 1fr auto; } }

/* Événements */
.event-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 32px; padding: 14px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 18px; box-shadow: var(--ombre); }
.event-search { flex: 1 1 260px; margin: 0; }
.event-search input[type="search"] { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: var(--texte); font: inherit; outline: none; }
.event-search .icon { width: 18px; height: 18px; color: var(--texte-gris); flex-shrink: 0; }
.event-select select { height: 50px; padding: 0 14px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); font: inherit; color: var(--texte); min-width: 150px; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { position: relative; display: block; border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.event-card:hover, .event-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 20, 35, 0.12); }
.event-image { display: block; aspect-ratio: 16 / 10; background: var(--fond-doux); }
.event-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-info { display: grid; gap: 6px; padding: 14px 16px 16px; }
.event-date { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dore-sombre); text-transform: uppercase; letter-spacing: .02em; }
.event-date .icon, .event-venue .icon { width: 16px; height: 16px; flex-shrink: 0; }
.event-title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.event-venue { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--texte-gris); }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.event-price { font-size: 13px; color: var(--texte-gris); }
.event-price strong { font-size: 16px; color: var(--texte); }
.event-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: #1b1b1f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.event-badge.static { position: static; display: inline-block; margin-bottom: 10px; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.event-main-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; display: block; box-shadow: var(--ombre); }
.event-no-image { display: flex; align-items: center; justify-content: center; background: var(--fond-doux); }
.event-no-image img { width: 40%; }
.event-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.event-thumb { flex: 0 0 84px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.event-thumb:hover, .event-thumb:focus-visible { border-color: var(--dore-clair); }
.event-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.event-facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.event-facts li { display: flex; align-items: flex-start; gap: 10px; }
.event-facts .icon { width: 20px; height: 20px; color: var(--dore-sombre); flex-shrink: 0; margin-top: 2px; }
.event-description { margin-bottom: 24px; line-height: 1.6; }
.event-tickets { padding: 20px; border: 1px solid var(--bordure); border-radius: 18px; background: var(--blanc); box-shadow: var(--ombre); }
.event-tickets h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 12px; }
.event-tickets h2 .icon { width: 22px; height: 22px; color: var(--dore-sombre); }
/* Calendar to choose the days of an event */
.day-calendar { margin-top: 14px; }
.day-calendar h3 { margin: 0 0 8px; font-size: 16px; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.day-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--texte-gris); }
.day-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 4px 2px; border-radius: 12px; text-align: center; }
.day-cell.is-off { color: #b9b4ab; }
.day-cell.is-event { border: 1px solid var(--bordure); background: var(--blanc); cursor: pointer; transition: border-color .15s, background .15s; }
.day-cell.is-event:hover { border-color: var(--dore-clair); }
.day-cell.is-event:has(input:checked) { border-color: var(--dore-clair); background: var(--fond-doux); box-shadow: inset 0 0 0 1px var(--dore-clair); }
.day-cell.is-soldout { opacity: .5; cursor: not-allowed; }
.day-cell input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.day-cell input:focus-visible + .day-number { outline: 2px solid var(--dore-clair); outline-offset: 2px; border-radius: 6px; }
.day-number { font-weight: 800; font-size: 16px; }
.day-price { font-size: 10px; color: var(--texte-gris); line-height: 1.2; }
.promo-banner { margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-weight: 700; }
.promo-banner.is-soon { background: var(--fond-doux); color: var(--texte); font-weight: 600; }
.price-old { color: var(--texte-gris); font-weight: 400; }
.price-new { font-weight: 800; color: #b42318; }
.ticket-qr-list { display: grid; gap: 14px; margin: 16px 0; }
.ticket-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); }
.ticket-qr img { width: 200px; height: 200px; max-width: 100%; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; }
.ticket-qr p { margin: 4px 0; }
.event-tickets .modal-table-wrap { margin: 0 0 18px; }
.event-prices th[scope="row"] { background: transparent; font-size: 14px; white-space: nowrap; }
.event-prices .price-cell { font-weight: 800; white-space: nowrap; }
.event-prices .price-cell.is-soldout { color: var(--texte-gris); font-weight: 600; }
.event-prices .price-note { display: block; font-size: 12px; font-weight: 600; color: #8a2a18; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--bordure); border-radius: 14px; background: var(--blanc); cursor: pointer; font-weight: 400; }
.pay-option span { flex: 1; }
.pay-option:has(input:checked) { border-color: var(--dore-clair); background: var(--fond-doux); }
.pay-option input { width: auto; }
.pass-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin: 16px 0; border: 1px solid var(--dore-clair); border-radius: 16px; background: var(--fond-doux); }
.pass-offer p { margin: 4px 0 0; }
.order-day { margin: 14px 0 4px; font-size: 16px; }
.order-days-recap { margin: 0 0 14px; }
.account-textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d4cc; border-radius: 10px; font: inherit; }
.ticket-admin { padding: 14px 0; border-bottom: 1px dashed var(--bordure); }
.ticket-admin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ticket-admin-row input { flex: 1 1 130px; min-width: 0; padding: 9px 12px; border: 1px solid #d9d4cc; border-radius: 10px; font: inherit; }
.ticket-admin-period { margin-top: 6px; }
.my-event-images { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.my-event-images img { display: block; width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.my-event-images form { text-align: center; }
.my-tickets { list-style: none; padding: 0; margin: 12px 0 0; }
.my-tickets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--bordure); }
.my-tickets li:last-child { border-bottom: 0; }
.event-closed { padding: 14px 16px; border-radius: 12px; background: var(--fond-doux); font-weight: 700; }
.ticket-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--bordure); border-radius: 16px; background: var(--blanc); transition: border-color .15s, background .15s; }
.ticket-line.is-chosen { border-color: var(--dore-clair); background: #fbf6ec; }
.ticket-line.is-soldout { opacity: .55; }
.order-total { font-size: 20px; font-weight: 800; min-height: 28px; margin: 0; }
@media (max-width: 900px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .event-detail { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .events-grid { grid-template-columns: 1fr; }
    .event-select, .event-select select { width: 100%; }
    .event-filters .btn { width: 100%; }
}
.section-header h2 .icon { width: 26px; height: 26px; color: var(--dore-sombre); flex-shrink: 0; }
