/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE-FINAL.CSS — Correctifs responsive (site public)
   Chargé en dernier : prioritaire sur tous les autres fichiers.
   Europale Basket Club
═══════════════════════════════════════════════════════════════ */

/* ── Socle : rien ne déborde horizontalement ── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }

/* ── Header : menu burger dès 1100px, marges fluides au-dessus ── */
.menu { padding-left: clamp(16px, 6vw, 15%); padding-right: clamp(16px, 4vw, 8%); gap: 16px; }
.links li { margin: 20px clamp(8px, 1vw, 20px); }
.links li a { white-space: nowrap; }

@media (max-width: 1100px) {
    .menu  { padding: 10px 5% !important; }
    .links { display: none !important; }
    .burger { display: flex !important; }
}
@media (min-width: 1101px) {
    .burger, .nav-overlay { display: none !important; }
}
@media (max-width: 1280px) and (min-width: 1101px) {
    .links li { margin: 20px 6px; }
    .links li a { font-size: .8rem !important; padding: 6px 6px !important; }
}
.logo { min-width: 0; }
.logo-text { min-width: 0; }
.links_responsive { height: 100dvh; max-width: 100vw; }

/* ── Accueil / Club : légende mascotte sous l'image, sans chevauchement ── */
.image_box_owner p { max-width: 100%; }
@media (max-width: 992px) {
    .owner, .owner_left { height: auto !important; }
    .image_box_owner { height: auto !important; width: 100% !important; }
    .image_box_owner img { height: 280px; }
    /* Mascotte : image entière visible (jamais recadrée) */
    .home-owner .image_box_owner img,
    .club-owner .image_box_owner img { height: auto !important; max-height: 460px; object-fit: contain; background: #fff; }
    .image_box_owner p { display: block; text-align: center; background: none; color: #16203a; margin-top: 12px; }
    .content_box { width: 100% !important; }
}
@media (max-width: 480px) {
    .image_box_owner img { height: 220px; }
    .home-owner .image_box_owner img,
    .club-owner .image_box_owner img { max-height: 400px; }
}

/* ── Club : podium des dirigeants — tout est proportionnel à la largeur de la carte ── */
.leader-box { height: auto !important; aspect-ratio: 230 / 190; }
.leader-card--featured .leader-box { height: auto !important; aspect-ratio: 280 / 240; }
.leader-logo { width: 85%; height: auto; aspect-ratio: 1; }
.leader-card--featured .leader-logo { width: 70%; }
@media (max-width: 600px) {
    .leaders-podium { padding-left: 10px; padding-right: 10px; gap: 8px; }
    .leader-text { padding: 8px 4px 10px; }
    .leader-card h3 { font-size: clamp(.62rem, 3vw, .8rem); }
    .leader-role { font-size: clamp(.58rem, 2.8vw, .7rem); }
}

/* ── Actus : titre aligné à gauche en mobile ── */
@media (max-width: 600px) {
    .actus-head { align-items: flex-start !important; flex-direction: column; }
    .actus-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}

/* ── Mentions légales : grille d'infos et navigation ── */
.ml-section, .ml-section-content { min-width: 0; }
.ml-info-item > * { min-width: 0; }
.ml-info-item span, .ml-info-item a, .ml-info-item p { overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .ml-info-item { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ml-info-label { min-width: 0 !important; }
    .ml-nav a { flex: 0 0 auto; }
}
@media (max-width: 420px) {
    .ml-section { flex-direction: column; padding: 18px 14px; }
    .ml-body { padding: 28px 12px 48px; }
}

/* ── Filigranes décoratifs : jamais plus larges que l'écran ── */
.watermark { max-width: 100vw; overflow: hidden; }
@media (max-width: 600px) {
    .watermark { font-size: clamp(2.4rem, 16vw, 5rem) !important; }
}

/* ── Sponsors : 2 colonnes sur mobile ── */
@media (max-width: 600px) {
    .sp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

/* ── Hero accueil : texte et photo côte à côte sans se recouvrir (993–1400px) ── */
@media (min-width: 993px) and (max-width: 1700px) {
    .home_page_content { left: 5%; max-width: 42%; }
    .home_page_content h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.1; }
    .image_box { right: 5%; width: 44%; }
    .image_box img { width: 100%; height: clamp(340px, 40vw, 500px); }
}

/* ── Sponsors : bouton « Nous contacter » (la flèche héritait du style de l'icône géante) ── */
.sp-cta-inner .white_btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; }
.sp-cta-inner .white_btn i { font-size: 1em; margin: 0; display: inline; opacity: 1; }

/* ── Détail événement : lien retour + pastille sur plusieurs lignes sans se toucher ── */
.evd-hero-content { overflow-wrap: anywhere; }
.evd-hero-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 12px 12px 0; }
.evd-hero-tag { margin-bottom: 8px; }
@media (max-width: 480px) {
    .evd-hero-back, .evd-hero-tag { display: flex; width: fit-content; }
}

/* ── Galerie TIB : titre aligné sur la grille, 2 colonnes sur mobile ── */
@media (max-width: 992px) {
    .tg-edition-header { padding: 32px 5% 16px !important; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
    .tg-grid { columns: 2 !important; column-gap: 8px !important; padding: 0 3% 40px !important; }
}

/* ── Page Club (Notre histoire / Notre mascotte) : image puis texte, sans chevauchement ── */
@media (max-width: 992px) {
    .club-owner { align-items: stretch !important; }
    .club-owner .image_box_owner {
        width: 100% !important; max-width: 420px; height: auto !important;
        flex: 0 0 auto; margin: 0 auto;
    }
    .club-owner .image_box_owner img { width: 100%; height: auto !important; max-height: none; display: block; }
    .club-owner .image_box_owner p { display: block; margin-top: 10px; }
    .club-owner .content_box { width: 100% !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MENU MOBILE — plein écran, révélé en cercle depuis le burger
═══════════════════════════════════════════════════════════════ */
@media (min-width: 1101px) { .links_responsive { display: none !important; } }

/* Burger : trait long / court, croix au clic, toujours au-dessus du menu */
.burger {
    width: 44px; height: 44px; padding: 0 8px; gap: 6px;
    align-items: flex-end; justify-content: center;
    position: relative; z-index: 1300;
}
.burger-line { width: 28px; height: 2px; border-radius: 0; }
.burger-line:nth-child(2) { width: 20px; }
.burger-line:nth-child(3) { width: 12px; }
.burger:hover .burger-line:nth-child(2),
.burger:hover .burger-line:nth-child(3) { width: 28px; }
.burger.active .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger.active .burger-line:nth-child(3) { width: 28px; transform: translateY(-8px) rotate(-45deg); }
.burger.active .burger-line { background: #fff; }
.nav-overlay { display: none !important; }

.links_responsive {
    counter-reset: mnav;
    position: fixed; inset: 0;
    width: 100%; max-width: none; height: 100vh; height: 100dvh;
    background: #0a0c10;
    transform: none;
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: circle(0 at calc(100% - 38px) 38px);
    visibility: hidden;
    transition: clip-path .75s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .75s;
    z-index: 1200;
}
.links_responsive.active {
    clip-path: circle(150% at calc(100% - 38px) 38px);
    visibility: visible;
    transition: clip-path .75s cubic-bezier(.77, 0, .18, 1), visibility 0s;
}
/* Halo bleu + grand mot en filigrane */
.links_responsive::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(56,182,255,.22), transparent 70%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(56,182,255,.08), transparent 70%);
}
.links_responsive::after {
    content: 'EUROPALE'; position: fixed; left: -1vw; bottom: 9dvh;
    font-family: 'Anton', sans-serif; font-size: 30vw; line-height: 1; letter-spacing: 2px;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
    pointer-events: none; white-space: nowrap;
}

.mobile-nav-header {
    border: 0; padding: 20px 5%; min-height: 76px; position: relative; z-index: 1;
    justify-content: flex-start;
}
.mobile-nav-logo {
    font-family: 'Anton', sans-serif; font-style: italic; font-size: 1.15rem;
    letter-spacing: 3px; color: #fff;
}
.mobile-nav-logo::after { content: ' · BASKET CLUB'; color: #38b6ff; font-family: 'Poppins', sans-serif; font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: 2px; }
.mobile-nav-close { display: none; }

.links_responsive li { border: 0; position: relative; z-index: 1; opacity: 0; transform: translateY(46px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.links_responsive.active li { opacity: 1; transform: none; }
.links_responsive.active li:nth-child(2) { transition-delay: .30s; }
.links_responsive.active li:nth-child(3) { transition-delay: .36s; }
.links_responsive.active li:nth-child(4) { transition-delay: .42s; }
.links_responsive.active li:nth-child(5) { transition-delay: .48s; }
.links_responsive.active li:nth-child(6) { transition-delay: .54s; }
.links_responsive.active li:nth-child(7) { transition-delay: .60s; }
.links_responsive.active li:nth-child(8) { transition-delay: .66s; }
.links_responsive.active li:nth-child(9) { transition-delay: .72s; }

.links_responsive li:not(.mnav-foot) { counter-increment: mnav; }
.links_responsive li:not(.mnav-foot) a {
    display: flex; align-items: baseline; gap: 14px;
    padding: .12em 5%;
    font-family: 'Anton', sans-serif; font-weight: 400;
    font-size: min(9.5vw, 5.6dvh); line-height: 1.18; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,.5); background: none;
    transition: color .25s, padding-left .3s;
}
.links_responsive li:not(.mnav-foot) a::before {
    content: counter(mnav, decimal-leading-zero);
    width: auto; height: auto; background: none; border-radius: 0;
    font-family: 'Poppins', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: 1px;
    color: #38b6ff; min-width: 1.7em; transform: translateY(-.55em);
}
.links_responsive li:not(.mnav-foot) a::after {
    content: ''; flex: 1; height: 2px; background: #38b6ff; align-self: center;
    margin-left: 6px; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.links_responsive li:not(.mnav-foot) a:hover,
.links_responsive li:not(.mnav-foot) a:active,
.links_responsive li:not(.mnav-foot) a.active { color: #fff; background: none; padding-left: 5%; }
.links_responsive li:not(.mnav-foot) a:hover::after,
.links_responsive li:not(.mnav-foot) a.active::after { transform: scaleX(1); }

/* Pied du menu : contact + réseaux */
.links_responsive .mnav-foot {
    margin-top: auto; padding: 18px 5% calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mnav-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mnav-info a, .mnav-info span { color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.mnav-info i { color: #38b6ff; width: 14px; text-align: center; }
.mnav-social { display: flex; gap: 10px; }
.mnav-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 1rem; transition: background .25s, border-color .25s; }
.mnav-social a:hover { background: #38b6ff; border-color: #38b6ff; }

@media (min-width: 700px) {
    .links_responsive li:not(.mnav-foot) a { padding-left: 8%; padding-right: 8%; }
    .links_responsive li:not(.mnav-foot) a:hover, .links_responsive li:not(.mnav-foot) a.active { padding-left: 8%; }
    .mobile-nav-header, .links_responsive .mnav-foot { padding-left: 8%; padding-right: 8%; }
}
@media (max-height: 520px) {
    .links_responsive li:not(.mnav-foot) a { font-size: 9dvh; }
    .links_responsive .mnav-foot { padding-top: 10px; padding-bottom: 10px; }
}

/* Menu mobile — ajustements fins */
.links_responsive .mnav-foot a { padding: 0 !important; text-transform: none; letter-spacing: 0; background: none !important; transition: color .25s, background .25s, border-color .25s; }
.links_responsive .mnav-foot a:hover { padding: 0 !important; }
.links_responsive .mnav-social a { padding: 0 !important; }
@media (max-width: 699px) {
    .links_responsive li:not(.mnav-foot) a { font-size: min(8.4vw, 6dvh); }
}
@media (max-height: 640px) {
    .mnav-info span { display: none; }
    .links_responsive .mnav-foot { padding-top: 12px; }
    .mnav-social a { width: 40px; height: 40px; }
}
@media (max-height: 520px) {
    .links_responsive { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; align-content: start; }
    .mobile-nav-header { grid-column: 1 / -1; min-height: 60px; padding-top: 12px; padding-bottom: 8px; }
    .links_responsive .mnav-foot { display: none; }
    .links_responsive::after { display: none; }
    .links_responsive li:not(.mnav-foot) a { font-size: 8.5dvh; }
}
.links_responsive .mnav-foot a::before, .links_responsive .mnav-foot a::after { display: none !important; }
@media (max-height: 520px) {
    .links_responsive li:not(.mnav-foot) a { font-size: 7.4dvh; padding-top: .06em; padding-bottom: .06em; }
    .mobile-nav-header { min-height: 52px; padding-top: 8px; padding-bottom: 4px; }
}

/* ═══════════════════════════════════════════════════════════════
   MENU MOBILE — version sobre : gris clair du site, texte sombre, bleu en accent
═══════════════════════════════════════════════════════════════ */
.links_responsive {
    background: #f4f4f4;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .7s;
}
.links_responsive.active {
    clip-path: inset(0 0 0 0);
    transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s;
}
.links_responsive::before { display: none; }
.links_responsive::after {
    color: #e8e8e8; -webkit-text-stroke: 0; bottom: 14dvh; left: 3vw; font-size: 25vw; opacity: 1;
}
.burger.active .burger-line { background: #23211e; }

.mobile-nav-logo { color: #23211e; }
.links_responsive li:not(.mnav-foot) a { color: rgba(35,33,30,.5); }
.links_responsive li:not(.mnav-foot) a:hover,
.links_responsive li:not(.mnav-foot) a:active,
.links_responsive li:not(.mnav-foot) a.active { color: #23211e; }
.links_responsive li:not(.mnav-foot) a::after { height: 3px; }

.links_responsive .mnav-foot {
    background: #23211e; border-top: 0;
    padding-top: 20px; margin-top: auto;
}
.mnav-info a, .mnav-info span { color: #fff; }
.mnav-social a { border-color: rgba(255,255,255,.3); }

@media (max-height: 520px) {
    .links_responsive .mnav-foot { display: none; }
}

/* Menu mobile — bloc sombre agrandi : téléphone, email, adresse */
.links_responsive .mnav-foot { display: block; padding: 26px 5% calc(28px + env(safe-area-inset-bottom)); }
.links_responsive .mnav-info { display: flex; flex-direction: column; gap: 18px; }
.links_responsive .mnav-info a,
.links_responsive .mnav-info .mnav-line { display: flex; align-items: flex-start; gap: 16px; color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.links_responsive .mnav-info i { color: #38b6ff; width: 20px; margin-top: 18px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.links_responsive .mnav-info span { display: block !important; min-width: 0; }
.links_responsive .mnav-info small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.links_responsive .mnav-info a:hover { color: #38b6ff; }
@media (max-height: 640px) {
    .mnav-info span { display: block !important; }
    .links_responsive .mnav-foot { padding-top: 14px; padding-bottom: 16px; }
    .links_responsive .mnav-info { gap: 10px; }
    .links_responsive .mnav-info i { margin-top: 14px; }
    .links_responsive .mnav-info a, .links_responsive .mnav-info .mnav-line { font-size: .9rem; }
}
@media (min-width: 700px) {
    .links_responsive .mnav-foot { padding-left: 8%; padding-right: 8%; }
}
.links_responsive .mnav-info a, .links_responsive .mnav-info .mnav-line { align-items: center; }
.links_responsive .mnav-info i { margin-top: 0 !important; }
.links_responsive .mnav-info span { font-size: 1.05rem !important; font-weight: 500; color: #fff; }
.links_responsive .mnav-info a:hover span { color: #38b6ff; }
.links_responsive .mnav-info small { font-size: .62rem !important; color: rgba(255,255,255,.5) !important; }
@media (max-height: 640px) { .links_responsive .mnav-info span { font-size: .92rem !important; } }

/* Menu mobile — « EUROPALE » en filigrane dans la zone grise, juste au-dessus du bloc sombre */
.links_responsive::after {
    position: static; order: 1; margin-top: auto; flex: 0 1 auto; min-height: 0; overflow: hidden;
    font-size: min(24vw, 15dvh); line-height: .95; letter-spacing: 2px; text-align: center;
    padding: 0 0 4px; color: #e6e6e6; user-select: none;
}
.links_responsive .mnav-foot { order: 2; margin-top: 0; }
@media (max-height: 520px) { .links_responsive::after { display: none; } }
@media (max-height: 600px) { .links_responsive::after { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   PASSE TABLETTE / ORDINATEUR
═══════════════════════════════════════════════════════════════ */
/* En-têtes de sections (Actualités, Actus & Événements…) : alignés à gauche en colonne */
@media (max-width: 768px) {
    .actu-section-head, .mag-head, .ev-page-head, .news-head, .actus-head {
        flex-direction: column; align-items: flex-start !important; gap: 10px;
    }
}
/* Grilles d'actus : la dernière carte seule prend toute la largeur (plus de trou noir) */
@media (min-width: 601px) and (max-width: 992px) {
    .actu-grid > :nth-child(odd):last-child, .actus-grid > :nth-child(odd):last-child { grid-column: 1 / -1; }
}
/* Hero : adresse lisible sous la photo */
@media (max-width: 992px) {
    .image_box p { color: #fff; text-align: left; }
}
/* Bloc TIB de l'accueil : espace entre la liste et le bouton */
.text-box .tib-list { margin: 16px 0 26px; }
.text-box .tib-list li { margin-bottom: 6px; }
