/*
 * Site internet et boutique Eventicom — système de design (docs/design_site.md) :
 * toile blanche, encre #222, une seule couleur d'accent (#ff385c) utilisée avec parcimonie, formes arrondies,
 * une seule ombre, police Inter, cartes centrées sur la photo.
 * Surcharge Bootstrap 5.3 (variables --bs-*) puis composants propres (préfixe ev-).
 */

/* ---------- Jetons ---------- */
:root {
    --ev-primary: #ff385c;
    --ev-primary-active: #e00b41;
    --ev-primary-disabled: #ffd1da;
    --ev-canvas: #ffffff;
    --ev-surface-soft: #f7f7f7;
    --ev-surface-strong: #f2f2f2;
    --ev-hairline: #dddddd;
    --ev-hairline-soft: #ebebeb;
    --ev-border-strong: #c1c1c1;
    --ev-ink: #222222;
    --ev-body: #3f3f3f;
    --ev-muted: #6a6a6a;
    --ev-muted-soft: #929292;
    --ev-error: #c13515;

    --ev-rounded-sm: 8px;
    --ev-rounded-md: 14px;
    --ev-rounded-xl: 32px;
    --ev-rounded-full: 9999px;

    --ev-shadow: rgba(0, 0, 0, .02) 0 0 0 1px, rgba(0, 0, 0, .04) 0 2px 6px 0, rgba(0, 0, 0, .1) 0 4px 8px 0;
    --ev-section: 64px;
    --ev-font: Inter, Circular, -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;

    /* Bootstrap */
    --bs-body-font-family: var(--ev-font);
    --bs-body-color: var(--ev-ink);
    --bs-body-bg: var(--ev-canvas);
    --bs-emphasis-color: var(--ev-ink);
    --bs-secondary-color: var(--ev-muted);
    --bs-border-color: var(--ev-hairline);
    --bs-border-radius: var(--ev-rounded-sm);
    --bs-border-radius-lg: var(--ev-rounded-md);
    --bs-link-color: var(--ev-ink);
    --bs-link-color-rgb: 34, 34, 34;
    --bs-link-hover-color: var(--ev-ink);
    --bs-link-hover-color-rgb: 34, 34, 34;
    --bs-primary: var(--ev-primary);
    --bs-primary-rgb: 255, 56, 92;
    --bs-danger: var(--ev-error);
    --bs-focus-ring-color: rgba(34, 34, 34, .25);
}

body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, .h1 { font-size: 28px; font-weight: 700; line-height: 1.43; }
h2, .h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.2px; }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.2; }
h4, .h4, h5, .h5 { font-size: 16px; font-weight: 600; line-height: 1.25; }

a { text-underline-offset: 2px; }
.text-muted, .text-body-secondary { color: var(--ev-muted) !important; }

.ev-conteneur {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.ev-section { padding-top: var(--ev-section); padding-bottom: var(--ev-section); }
.ev-section-titre { font-size: 22px; font-weight: 600; margin-bottom: 24px; }

/* ---------- Boutons ---------- */
.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: var(--ev-rounded-sm);
    --bs-btn-padding-x: 24px;
    --bs-btn-padding-y: 12px;
}
.btn-sm { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; }
.btn-primary {
    --bs-btn-bg: var(--ev-primary);
    --bs-btn-border-color: var(--ev-primary);
    --bs-btn-hover-bg: var(--ev-primary-active);
    --bs-btn-hover-border-color: var(--ev-primary-active);
    --bs-btn-active-bg: var(--ev-primary-active);
    --bs-btn-active-border-color: var(--ev-primary-active);
    --bs-btn-disabled-bg: var(--ev-primary-disabled);
    --bs-btn-disabled-border-color: var(--ev-primary-disabled);
    --bs-btn-disabled-color: #fff;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
.btn-outline-primary, .btn-secondary, .btn-outline-secondary, .btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-color: var(--ev-ink);
    --bs-btn-border-color: var(--ev-ink);
    --bs-btn-hover-bg: var(--ev-surface-soft);
    --bs-btn-hover-color: var(--ev-ink);
    --bs-btn-hover-border-color: var(--ev-ink);
    --bs-btn-active-bg: var(--ev-surface-strong);
    --bs-btn-active-color: var(--ev-ink);
    --bs-btn-active-border-color: var(--ev-ink);
}
.btn-lien {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ev-ink);
    font-weight: 600;
    text-decoration: underline;
}
.ev-pilule-primaire {
    border-radius: var(--ev-rounded-full);
    padding: 10px 20px;
    font-size: 14px;
}

/* ---------- Formulaires ---------- */
.form-label { font-size: 14px; font-weight: 500; color: var(--ev-ink); }
.form-control, .form-select {
    min-height: 56px;
    padding: 14px 12px;
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-sm);
    color: var(--ev-ink);
}
.form-control-sm, .form-select-sm { min-height: 40px; padding: 8px 10px; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .form-select:focus {
    border-color: var(--ev-ink);
    box-shadow: inset 0 0 0 1px var(--ev-ink);
}
.form-control::placeholder { color: var(--ev-muted); }
.invalid-feedback, .text-danger { color: var(--ev-error) !important; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--ev-error); }
.form-check-input:checked { background-color: var(--ev-ink); border-color: var(--ev-ink); }

/* ---------- Cartes, alertes, tableaux ---------- */
.card {
    --bs-card-border-color: var(--ev-hairline);
    --bs-card-border-radius: var(--ev-rounded-md);
    --bs-card-inner-border-radius: calc(var(--ev-rounded-md) - 1px);
    --bs-card-spacer-x: 24px;
    --bs-card-spacer-y: 24px;
}
.alert { border-radius: var(--ev-rounded-sm); }
.table { --bs-table-border-color: var(--ev-hairline-soft); }
.badge { font-weight: 600; }
.breadcrumb { font-size: 14px; --bs-breadcrumb-divider-color: var(--ev-muted); }
.breadcrumb a { color: var(--ev-muted); }
.nav-pills .nav-link.active { background: var(--ev-ink); }
.dropdown-menu {
    border: 0;
    border-radius: var(--ev-rounded-md);
    box-shadow: var(--ev-shadow);
    padding: 8px 0;
}
.dropdown-item { padding: 10px 16px; }

/* ---------- Barre du haut ---------- */
.ev-entete {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--ev-canvas);
    border-bottom: 1px solid var(--ev-hairline-soft);
}
.ev-entete-barre {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ev-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--ev-primary);
    text-decoration: none;
}
.ev-logo:hover { color: var(--ev-primary-active); }
.ev-logo { display: inline-flex; align-items: center; }
.ev-logo img { display: block; width: 56px; height: 56px; }
.ev-logo small { font-size: 11px; font-weight: 600; color: var(--ev-muted); letter-spacing: 0; margin-left: 6px; vertical-align: middle; }
.ev-nav-produits { display: flex; gap: 32px; }
.ev-nav-produits a {
    color: var(--ev-muted);
    font-weight: 600;
    text-decoration: none;
    padding: 28px 0 26px;
    border-bottom: 2px solid transparent;
}
.ev-nav-produits a:hover { color: var(--ev-ink); }
.ev-nav-produits a[aria-current="page"] { color: var(--ev-ink); border-bottom-color: var(--ev-ink); }
.ev-outils { display: flex; align-items: center; gap: 8px; }
.ev-outils .ev-lien-orga {
    font-size: 14px;
    font-weight: 500;
    color: var(--ev-ink);
    text-decoration: none;
    padding: 12px;
    border-radius: var(--ev-rounded-full);
}
.ev-outils .ev-lien-orga:hover { background: var(--ev-surface-soft); }
.ev-bouton-rond {
    width: 42px;
    height: 42px;
    border-radius: var(--ev-rounded-full);
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ev-ink);
}
.ev-bouton-rond:hover { background: var(--ev-surface-soft); }
.ev-menu-compte {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-full);
    padding: 6px 6px 6px 14px;
    background: #fff;
    color: var(--ev-ink);
}
.ev-menu-compte:hover, .ev-menu-compte[aria-expanded="true"] { box-shadow: var(--ev-shadow); }
.ev-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--ev-rounded-full);
    background: var(--ev-ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.ev-bandeau-dev { background: #fff4d6; color: #6a4b00; font-size: 12px; text-align: center; padding: 2px 0; }

/* ---------- Recherche « pilule » ---------- */
.ev-recherche {
    text-align: left;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-full);
    box-shadow: var(--ev-shadow);
    min-height: 66px;
    max-width: 860px;
    margin: 0 auto;
}
.ev-recherche-segment {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 24px;
    border-radius: var(--ev-rounded-full);
    position: relative;
    min-width: 0;
}
.ev-recherche-segment + .ev-recherche-segment::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    border-left: 1px solid var(--ev-hairline);
}
.ev-recherche-segment:hover, .ev-recherche-segment:focus-within { background: var(--ev-surface-soft); }
.ev-recherche-segment label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ev-ink);
    margin: 0;
}
.ev-recherche-segment input, .ev-recherche-segment select {
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 0;
    font-size: 14px;
    color: var(--ev-ink);
    outline: none;
    width: 100%;
    text-overflow: ellipsis;
}
.ev-recherche-segment input::placeholder { color: var(--ev-muted); }
.ev-orbe {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 9px 0 4px;
    width: 48px;
    height: 48px;
    border-radius: var(--ev-rounded-full);
    border: 0;
    background: var(--ev-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ev-orbe:hover { background: var(--ev-primary-active); }

/* ---------- Bande de catégories ---------- */
.ev-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
}
.ev-categorie {
    flex: 0 0 auto;
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ev-ink);
    text-decoration: none;
    background: #fff;
    white-space: nowrap;
}
.ev-categorie:hover { border-color: var(--ev-ink); }
.ev-categorie[aria-current="true"] { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }

/* ---------- Cartes d'événements ---------- */
.ev-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
}
.ev-carte { position: relative; color: var(--ev-ink); text-decoration: none; display: block; }
.ev-carte:hover { color: var(--ev-ink); }
.ev-carte-photo {
    position: relative;
    /* format affiche (A4 portrait) : celui de 3 illustrations sur 4 */
    aspect-ratio: 1 / 1.414;
    border-radius: var(--ev-rounded-md);
    overflow: hidden;
    background: var(--ev-surface-strong);
}
.ev-carte-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
/* fond flou fait de la même image, visible autour d'une image carrée ou en paysage */
.ev-carte-affiche::before { content: ""; position: absolute; inset: -24px; background: var(--ev-affiche) center / cover no-repeat; filter: blur(20px) brightness(.92); transform: scale(1.1); }
.ev-carte:hover .ev-carte-photo img { transform: scale(1.03); }
.ev-carte-photo .ev-sans-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--ev-border-strong);
}
.ev-badge-flottant {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--ev-ink);
    border-radius: var(--ev-rounded-full);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--ev-shadow);
}
.ev-carte-meta { padding-top: 12px; font-size: 14px; line-height: 1.43; }
.ev-carte-titre { font-size: 16px; font-weight: 600; line-height: 1.25; margin: 0 0 2px; }
.ev-carte-meta .ev-discret { color: var(--ev-muted); }
.ev-carte-prix { margin-top: 4px; }
.ev-carte-prix strong { font-weight: 600; }

/* ---------- Fiche d'un événement ---------- */
.ev-fiche { max-width: 1120px; margin: 0 auto; padding: 24px 24px var(--ev-section); }
.ev-fiche h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.44px; }
.ev-bandeau-photo {
    position: relative;
    border-radius: var(--ev-rounded-md);
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: var(--ev-surface-strong);
}
/* l'illustration en fond, estompée */
.ev-bandeau-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
/* l'affiche entière par-dessus, à gauche */
.ev-bandeau-affiche {
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: 4%;
    aspect-ratio: 1 / 1.414;
    display: block;
    border-radius: var(--ev-rounded-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.ev-bandeau-affiche:hover { transform: translateY(-2px); }
.ev-bandeau-affiche:focus-visible { outline: 3px solid var(--ev-ink); outline-offset: 3px; }
.ev-bandeau-affiche img { width: 100%; height: 100%; object-fit: contain; }
/* téléphone : bandeau plus haut, pour que l'affiche reste lisible */
@media (max-width: 575.98px) {
    .ev-bandeau-photo { aspect-ratio: 4 / 3; }
    /* la gouttière des grilles g-5 dépassait la marge de 16 px des pages : défilement horizontal */
    .row.g-5 { --bs-gutter-x: 2rem; }
}
.ev-separateur { border-top: 1px solid var(--ev-hairline); margin: 32px 0; }
.ev-infos-ligne { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.ev-infos-ligne svg { flex: 0 0 24px; margin-top: 2px; }
.ev-contenu-riche { color: var(--ev-body); }
.ev-contenu-riche img { max-width: 100%; height: auto; }
.ev-carte-inscription {
    position: sticky;
    top: 104px;
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-md);
    box-shadow: var(--ev-shadow);
    padding: 24px;
    background: #fff;
}
.ev-prix-grand { font-size: 22px; font-weight: 600; }
.ev-epreuve {
    border: 1px solid var(--ev-hairline);
    border-radius: var(--ev-rounded-md);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ev-epreuve + .ev-epreuve { margin-top: 16px; }
.ev-etiquette {
    display: inline-block;
    border-radius: var(--ev-rounded-full);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--ev-surface-strong);
    color: var(--ev-ink);
}
.ev-etiquette-ouverte { background: #e8f5ee; color: #1e6b3f; }
.ev-etiquette-complet { background: #fdecea; color: var(--ev-error); }
.ev-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ev-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ev-rounded-sm); }
.ev-documents a { font-weight: 500; }

/* page d'accueil : vidéo de fond derrière le titre et la recherche */
.ev-heros { position: relative; overflow: hidden; background: #1c2a3a center / cover no-repeat; padding: 72px 0 64px; color: #fff; }
.ev-heros-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-heros-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55)); }
.ev-heros-contenu { position: relative; }
.ev-heros h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.ev-heros p { color: rgba(255, 255, 255, .92); font-size: 17px; }
.ev-heros-pause { position: absolute; right: 16px; bottom: 12px; z-index: 1; border: 0; border-radius: var(--ev-rounded-full); padding: 6px 14px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .55); color: #fff; }
.ev-heros-pause:hover { background: rgba(0, 0, 0, .75); }
.ev-heros-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ev-reseaux { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ev-reseaux a { display: inline-block; padding: 8px 16px; border: 1px solid var(--ev-hairline); border-radius: var(--ev-rounded-full); font-weight: 600; color: var(--ev-ink); text-decoration: none; }
.ev-reseaux a:hover { border-color: var(--ev-ink); }
.ev-reseau-cadre iframe { width: 100%; max-width: 500px; height: 480px; border: 0; }
.ev-reseau-explication { padding: 24px; border: 1px dashed var(--ev-border-strong); border-radius: var(--ev-rounded-md); background: var(--ev-surface-soft); }
/* « Ils nous font confiance » : bande de logos qui défile horizontalement */
.ev-bande-logos { list-style: none; padding: 4px 0 12px; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.ev-bande-logos li { flex: 0 0 150px; height: 96px; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--ev-hairline); border-radius: var(--ev-rounded-md); background: #fff; }
.ev-bande-logos img { max-width: 100%; max-height: 78px; object-fit: contain; }
.ev-paiement-securise { margin-top: 24px; }
.ev-paiement-securise img { border-radius: var(--ev-rounded-sm); }

/* actualités */
.ev-grille-actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.ev-grille-actus-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-actu-image { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--ev-rounded-md); overflow: hidden; background: var(--ev-surface-strong); }
.ev-actu-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ev-actu-carte:hover .ev-actu-image img { transform: scale(1.03); }
.ev-actu-resume { color: var(--ev-body); font-size: 15px; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-actu-texte { max-width: 760px; }
.ev-actu-principale { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--ev-rounded-md); }
.ev-actu-galerie { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ev-actu-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ev-rounded-sm); }
.ev-actu-galerie a:focus-visible { outline: 3px solid var(--ev-ink); outline-offset: 2px; display: block; border-radius: var(--ev-rounded-sm); }
.ev-commentaire { padding: 16px 0; border-bottom: 1px solid var(--ev-hairline); }
@media (max-width: 950px) { .ev-grille-actus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ev-grille-actus, .ev-grille-actus-2 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ev-actu-image img { transition: none; } }

/* minuteur de réservation d'une place */
.ev-minuteur { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--ev-rounded-sm); background: #eef4ff; color: #1d3f86; border: 1px solid #c9dafc; }
.ev-minuteur-icone { flex-shrink: 0; margin-top: 2px; }
.ev-minuteur-temps { font-variant-numeric: tabular-nums; font-size: 1.05em; }
.ev-minuteur-urgent { background: #fff4e0; color: #7a4800; border-color: #f5d49c; }
.ev-minuteur-compact { padding: 6px 12px; margin: -4px 0 12px; font-size: 14px; }

/* chiffres clés du pied de page */
.ev-pied .ev-chiffres-cles { list-style: none; margin: 0 0 32px; padding: 0 0 32px; border-bottom: 1px solid var(--ev-hairline); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.ev-pied .ev-chiffres-cles strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--ev-ink); }
.ev-pied .ev-chiffres-cles span { font-size: 14px; color: var(--ev-muted); }
@media (max-width: 575.98px) { .ev-pied .ev-chiffres-cles { grid-template-columns: 1fr; } .ev-pied .ev-chiffres-cles strong { font-size: 24px; } }

/* consentement aux cookies : bandeau en bas de l'écran, non bloquant */
.ev-consentement { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: #fff; border-top: 1px solid var(--ev-hairline); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); padding: 16px 0; max-height: 70vh; overflow-y: auto; }
.ev-consentement h2:focus { outline: 2px solid var(--ev-ink); outline-offset: 2px; }
.ev-consentement .btn { min-width: 140px; }
.ev-consentement-choix { padding: 12px 0 4px; border-top: 1px solid var(--ev-hairline-soft); margin-top: 8px; }
body.ev-avec-consentement .ev-pied { padding-bottom: 180px; }
.ev-lien-pied { color: inherit; font-size: inherit; text-decoration: none; vertical-align: baseline; }
.ev-lien-pied:hover { text-decoration: underline; }
.ev-texte-legal { max-width: 860px; }

/* résultats et contact */
.ev-vignette { width: 48px; height: 64px; object-fit: cover; border-radius: var(--ev-rounded-sm); }
.ev-affiche-resultat { width: 200px; max-width: 100%; border-radius: var(--ev-rounded-md); }
.ev-pdf-resultat { width: 100%; height: 80vh; border: 1px solid var(--ev-hairline); border-radius: var(--ev-rounded-sm); }
.ev-tableau-resultats { max-height: 75vh; }
.ev-tableau-resultats thead th { position: sticky; top: 0; white-space: nowrap; }
.ev-carte-contact { padding: 24px; border: 1px solid var(--ev-hairline); border-radius: var(--ev-rounded-md); }
.ev-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* pages de contenu */
.ev-page-entete { background: var(--ev-surface-soft); padding: 48px 0 32px; }
.ev-page-entete h1 { font-size: 32px; font-weight: 600; }
.ev-page-entete-photo { background-size: cover; background-position: center; color: #fff; padding-top: 160px; position: relative; }
.ev-page-entete-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .6)); }
.ev-page-entete-photo .ev-conteneur { position: relative; }
.ev-page-cms h2 { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.ev-page-section + .ev-page-section { margin-top: 48px; }
.ev-partenaires { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.ev-partenaires img { width: 100%; height: 80px; object-fit: contain; }
.ev-liste-partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.ev-partenaire { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 1px solid var(--ev-hairline); border-radius: var(--ev-rounded-md, 14px); }
.ev-partenaire > img { width: 120px; max-height: 90px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 575.98px) { .ev-partenaire { flex-direction: column; } }
.ev-pied-partenaires { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--ev-hairline); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ev-pied-partenaires img { height: 48px; max-width: 120px; object-fit: contain; }

/* ---------- Pages de la boutique (compte, connexion, inscription) ---------- */
.ev-page { max-width: 1120px; margin: 0 auto; padding: 32px 24px var(--ev-section); }
.ev-page-etroite { max-width: 568px; margin: 0 auto; padding: 48px 24px var(--ev-section); }

/* ---------- Tunnel d'inscription et espace membre ---------- */
.ev-etapes { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0 0 32px; }
.ev-etapes li { display: flex; align-items: center; gap: 8px; color: var(--ev-muted); font-size: 14px; font-weight: 500; }
.ev-etape-numero {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: var(--ev-rounded-full);
    border: 1px solid var(--ev-hairline); font-size: 13px; font-weight: 600;
}
.ev-etapes li.active { color: var(--ev-ink); }
.ev-etapes li.active .ev-etape-numero { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.ev-etapes li.faite .ev-etape-numero { background: var(--ev-surface-strong); color: var(--ev-ink); }
.ev-participant {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--ev-hairline-soft);
}
.ev-participant .ev-avatar { flex: 0 0 40px; }
.ev-statut { display: inline-block; padding: 2px 10px; border-radius: var(--ev-rounded-full); font-size: 13px; font-weight: 500; background: var(--ev-surface-strong); color: var(--ev-ink); }
.ev-statut-ok { background: #e7f5ec; color: #0a6b35; }
.ev-statut-attente { background: #fff4e0; color: #8a5300; }
.ev-statut-refus { background: #fdecea; color: var(--ev-error); }

/* ---------- Pied de page ---------- */
.ev-pied {
    background: var(--ev-surface-soft);
    border-top: 1px solid var(--ev-hairline);
    margin-top: var(--ev-section);
}
.ev-pied-colonnes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 48px 0;
}
.ev-pied h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.ev-pied ul { list-style: none; padding: 0; margin: 0; }
.ev-pied li { margin-bottom: 10px; font-size: 14px; }
.ev-pied a { color: var(--ev-ink); text-decoration: none; }
.ev-pied a:hover { text-decoration: underline; }
.ev-bande-legale {
    border-top: 1px solid var(--ev-hairline);
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--ev-muted);
}
.ev-bande-legale a { color: var(--ev-ink); }

/* ---------- Réactif ---------- */
@media (max-width: 1128px) {
    .ev-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
    .ev-nav-produits { display: none; }
    .ev-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-carte-inscription { position: static; }
}
@media (max-width: 744px) {
    .ev-conteneur, .ev-fiche, .ev-page { padding-left: 16px; padding-right: 16px; }
    .ev-entete-barre { height: 64px; }
    .ev-outils .ev-lien-orga { display: none; }
    .ev-recherche { flex-direction: column; border-radius: var(--ev-rounded-md); }
    .ev-recherche-segment { border-radius: var(--ev-rounded-sm); padding: 12px 16px; }
    .ev-recherche-segment + .ev-recherche-segment::before { left: 16px; right: 16px; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--ev-hairline); }
    .ev-orbe { width: calc(100% - 16px); margin: 8px; border-radius: var(--ev-rounded-sm); }
    .ev-grille { grid-template-columns: minmax(0, 1fr); }
    .ev-pied-colonnes { grid-template-columns: minmax(0, 1fr); }
    .ev-section { padding-top: 40px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .ev-carte-photo img, .ev-bandeau-affiche { transition: none; }
}

/* ---------- Boutique : conteneurs Bootstrap et menus du compte ---------- */
main .container { max-width: 1120px; }
.list-group {
    --bs-list-group-border-color: var(--ev-hairline);
    --bs-list-group-border-radius: var(--ev-rounded-md);
    --bs-list-group-active-bg: var(--ev-ink);
    --bs-list-group-active-border-color: var(--ev-ink);
    --bs-list-group-action-hover-bg: var(--ev-surface-soft);
    --bs-list-group-item-padding-y: 12px;
}
.form-floating > .form-control { min-height: 56px; }
