/* ============================================================
   USPK — Union Sportive Pibracaise de Karaté
   Styles CSS3 — Responsive Design
   Palette : Blanc (#FFFFFF), Noir (#1A1A1A), Rouge karaté (#C41E3A)
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir: #1A1A1A;
    --noir-doux: #2D2D2D;
    --blanc: #FFFFFF;
    --blanc-casse: #F5F5F0;
    --rouge: #C41E3A;
    --rouge-sombre: #9B1B30;
    --rouge-clair: #E8394A;
    --gris: #6B6B6B;
    --gris-clair: #E0E0E0;
    --gris-fond: #F8F8F6;
    --ombre: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ombre-forte: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
    --font-base: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-titre: Georgia, 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--noir);
    background: var(--blanc);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rouge);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--rouge-sombre);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition);
}

.scrolled .logo {
    height: 54px;
    width: 54px;
}

.logo-text {
    font-family: var(--font-titre);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blanc);
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

/* Sous-menu dropdown */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--noir);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 100;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 0;
}

.main-nav a {
    color: var(--blanc);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--rouge);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--rouge-clair);
}

.main-nav a:hover::after {
    width: 60%;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Icônes réseaux sociaux (header) */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--blanc);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.social-link:hover {
    transform: scale(1.1);
}

.social-fb:hover {
    background: #1877F2;
    color: var(--blanc);
}

.social-ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--blanc);
}

.social-ig {
    opacity: 0.5;
    cursor: default;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--blanc);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--noir);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(196, 30, 58, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(196, 30, 58, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    width: 100%;
    max-width: 960px;
}

.hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-title-main {
    --hero-title-size: 3.2rem;
    --hero-logo-height: calc(var(--hero-title-size) * 1.2 * 2);
    --hero-logo-width: calc(var(--hero-logo-height) * 5 / 7);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    column-gap: 30px;
}

.hero-title-main .hero-logo:first-child {
    grid-column: 1;
    justify-self: end;
}

.hero-title-main .hero-logo:last-child {
    grid-column: 3;
    justify-self: start;
}

.hero-kanji {
    width: 80px;
    height: auto;
    opacity: 0.9;
    filter: invert(1);
    flex-shrink: 0;
    object-fit: contain;
}

.hero-logo {
    width: var(--hero-logo-width);
    height: var(--hero-logo-height);
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    grid-column: 2;
    font-family: var(--font-titre);
    font-size: var(--hero-title-size);
    color: var(--blanc);
    line-height: 1.2;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gris-clair);
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-affiliation {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* Bouton principal */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--rouge);
    color: var(--blanc);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
    background: var(--rouge-clair);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5);
}


/* ============================================================
   SECTIONS — STYLES COMMUNS
   ============================================================ */

.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--gris-fond);
}

.section-title {
    font-family: var(--font-titre);
    font-size: 2.4rem;
    text-align: center;
    color: var(--noir);
    margin-bottom: 8px;
}

.section-title .accent {
    color: var(--rouge);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--rouge);
    margin: 0 auto 50px;
    border-radius: 2px;
}

/* Animations au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   LE CLUB & STYLE
   ============================================================ */

.club-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.club-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--noir-doux);
}

blockquote {
    border-left: 4px solid var(--rouge);
    padding: 20px 24px;
    margin: 30px 0;
    background: var(--gris-fond);
    border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--noir);
    margin-bottom: 8px;
}

blockquote cite {
    font-size: 0.85rem;
    color: var(--gris);
    font-style: normal;
}

.club-image-stack {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.shotokan-kanji {
    width: 100px;
    border-radius: var(--radius);
}

.funakoshi-img {
    width: 120px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

.dojo-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dojo-photos img {
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Professeurs */
.senseis-row {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gris-clair);
}

.senseis-row h3 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.senseis-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.sensei-card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--ombre);
    text-align: center;
    max-width: 250px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.sensei-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.sensei-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto 16px;
    border: 3px solid var(--rouge);
}

.sensei-card.sensei-body img {
    border-color: var(--rouge-clair);
}

.sensei-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--noir);
}

.sensei-card p {
    font-size: 0.85rem;
    color: var(--gris);
}


/* ============================================================
   NOS COURS — Sous-sections (Adultes, Enfants, Body)
   ============================================================ */

.cours-subsection {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.cours-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    color: var(--noir);
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gris-clair);
    position: relative;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--rouge);
}

.subsection-title small {
    font-size: 0.65em;
    color: var(--gris);
    font-weight: 400;
}

.subsection-title-body {
    color: var(--noir);
}

.subsection-title-body::after {
    background: var(--rouge-clair);
}

/* Couleurs par section */
.cours-subsection-adultes {
    background: var(--noir);
    color: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 50px;
}

.cours-subsection-adultes .subsection-title {
    color: var(--blanc);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.cours-subsection-adultes .subsection-title::after {
    background: var(--blanc);
}

.cours-subsection-adultes .cours-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.cours-subsection-adultes .cours-content p,
.cours-subsection-adultes .cours-content li {
    color: rgba(255, 255, 255, 0.85);
}

.cours-subsection-adultes .cours-content li::before {
    background: var(--blanc);
}

.cours-subsection-enfants {
    background: #2C5282;
    color: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 50px;
}

.cours-subsection-enfants .subsection-title {
    color: var(--blanc);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cours-subsection-enfants .subsection-title::after {
    background: #90CDF4;
}

.cours-subsection-enfants .cours-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.cours-subsection-enfants .cours-content p,
.cours-subsection-enfants .cours-content li {
    color: rgba(255, 255, 255, 0.85);
}

.cours-subsection-enfants .cours-content li::before {
    background: #90CDF4;
}

.cours-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 40px;
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre);
}

.cours-block.reverse {
    direction: rtl;
}

.cours-block.reverse > * {
    direction: ltr;
}

.cours-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: contain;
    box-shadow: var(--ombre);
}

.cours-content h3 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--noir);
}

.cours-content h3 small {
    font-size: 0.75em;
    color: var(--gris);
    font-weight: 400;
}

.cours-icon {
    margin-right: 8px;
}

.cours-content p {
    margin-bottom: 12px;
    color: var(--noir-doux);
    font-size: 0.95rem;
}

.cours-content ul {
    list-style: none;
    margin: 16px 0;
}

.cours-content li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--noir-doux);
}

.cours-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--rouge);
    border-radius: 50%;
}


/* ============================================================
   BODY KARATÉ (intégré dans Nos Cours)
   ============================================================ */

.cours-subsection-body {
    background: var(--noir);
    color: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 0;
}

.cours-subsection-body .subsection-title {
    color: var(--blanc);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Bannière texte Body */
.body-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.body-banner-text {
    max-width: 100%;
}

.body-tagline {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--rouge-clair);
    margin-bottom: 8px;
}

.body-slogan {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blanc);
    margin-bottom: 20px;
}

.body-banner-text p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.8;
}

.body-horaire-block {
    text-align: left;
    margin-top: 10px;
}

.body-cours-gif2 {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 20px 0 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.body-horaire-inline {
    display: inline-block;
    background: var(--rouge);
    color: var(--blanc);
    padding: 10px 24px;
    border-radius: var(--radius);
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Image montage bodyPage */
.body-hero-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Prof Body (carte avec photo + texte + certificat) */
.body-prof-section {
    margin-bottom: 40px;
}

.body-prof-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
}

.body-prof-card .body-prof-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--rouge-clair);
    flex-shrink: 0;
}

.body-prof-details {
    flex: 1;
}

.body-prof-details h4 {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--blanc);
}

.body-prof-details p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.body-prof-cert {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Galerie Body (photos entières) */
.body-gallery-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.body-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.body-gallery-item img {
    width: 100%;
    object-fit: contain;
    background: var(--noir-doux);
    border-radius: var(--radius-lg);
}

/* Galerie Body : même hauteur pour la photo et le GIF */
.body-gallery-full .body-gallery-item img {
    height: 300px;
    object-fit: contain;
    background: var(--noir-doux);
}

@media (max-width: 768px) {
    .body-gallery-full .body-gallery-item img {
        height: 240px;
    }
}

.gallery-caption {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
}

.body-note-ffk {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--rouge);
    padding-left: 16px;
    margin-top: 20px;
}


/* ============================================================
   INFORMATIONS PRATIQUES
   ============================================================ */

.infos-block {
    margin-bottom: 60px;
}

.infos-block h3 {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--noir);
}

.planning-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gris);
    font-size: 1rem;
}

/* Planning grille hebdomadaire */
.planning-grid {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    gap: 2px;
    background: var(--gris-clair);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--ombre);
    margin-bottom: 30px;
}

.planning-header {
    background: var(--noir);
    color: var(--blanc);
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.planning-label {
    background: var(--blanc);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.planning-label strong {
    font-size: 0.95rem;
    color: var(--noir);
}

.planning-label small {
    font-size: 0.8rem;
    color: var(--gris);
}

.planning-cell {
    background: var(--blanc);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70px;
}

.planning-time {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--radius);
}

.planning-karate .planning-time {
    background: var(--noir);
    color: var(--blanc);
}

.planning-enfants .planning-time {
    background: #2C5282;
    color: var(--blanc);
}

.planning-body .planning-time {
    background: var(--rouge);
    color: var(--blanc);
}

.planning-empty {
    background: var(--blanc-casse);
}

/* Équipement */
.planning-equipement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.equipement-item {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--noir);
}

.equipement-item:last-child {
    border-left-color: var(--rouge);
}

.equipement-item h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--noir);
}

.equipement-item ul {
    list-style: none;
}

.equipement-item li {
    padding: 3px 0 3px 20px;
    position: relative;
    font-size: 0.85rem;
    color: var(--noir-doux);
}

.equipement-item li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--rouge);
    font-weight: 700;
}

/* Table horaires ancienne (conservée si besoin) */
.table-responsive {
    overflow-x: auto;
}

.horaires-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre);
}

.horaires-table thead {
    background: var(--noir);
    color: var(--blanc);
}

.horaires-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horaires-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gris-clair);
    font-size: 0.95rem;
}

.horaires-table tbody tr {
    background: var(--blanc);
    transition: background var(--transition);
}

.horaires-table tbody tr:hover {
    background: var(--blanc-casse);
}

.horaires-table .body-row td {
    background: rgba(196, 30, 58, 0.05);
    border-left: 3px solid var(--rouge);
}

.table-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gris);
    font-style: italic;
}

/* Tarifs détaillés */
.tarifs-section {
    margin-bottom: 40px;
}

.tarifs-section-title {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    color: var(--noir);
    margin-bottom: 8px;
    padding-left: 16px;
    border-left: 4px solid var(--noir);
}

.tarifs-section-title-body {
    border-left-color: var(--rouge);
}

.tarifs-subtitle {
    font-size: 0.85rem;
    color: var(--gris);
    margin-bottom: 16px;
    padding-left: 20px;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre);
}

.tarifs-table thead {
    background: var(--noir);
    color: var(--blanc);
}

.tarifs-table th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tarifs-table th:first-child {
    text-align: left;
}

.tarifs-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--gris-clair);
    font-size: 0.9rem;
}

.tarifs-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.tarifs-table tbody tr {
    background: var(--blanc);
    transition: background var(--transition);
}

.tarifs-table tbody tr:hover {
    background: var(--blanc-casse);
}

.tarifs-notes {
    margin-top: 12px;
    padding-left: 8px;
}

.tarifs-notes p {
    font-size: 0.8rem;
    color: var(--gris);
    margin-bottom: 4px;
}

.tarif-card-body {
    background: rgba(196, 30, 58, 0.05);
    border: 2px solid var(--rouge);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    margin-top: 16px;
}

.tarif-prix-body {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--rouge);
    margin-bottom: 6px;
}

.tarif-prix-body span {
    font-size: 0.85rem;
    color: var(--gris);
    font-weight: 400;
}

.tarifs-paiement {
    background: var(--blanc-casse);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 30px;
}

.tarifs-paiement p {
    font-size: 0.9rem;
    color: var(--noir-doux);
    margin-bottom: 8px;
}

.tarifs-paiement p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--gris);
}

/* Inscription */
.inscription-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.inscription-important {
    background: rgba(196, 30, 58, 0.05);
    border: 2px solid var(--rouge);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inscription-important p:first-child {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--noir);
}

.inscription-important p:last-child {
    color: var(--rouge);
    font-weight: 600;
}

.btn-essai {
    margin-top: 16px;
    font-size: 0.9rem;
}

.inscription-docs h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--noir);
}

.inscription-docs ul {
    list-style: none;
}

.inscription-docs li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.9rem;
    color: var(--noir-doux);
    line-height: 1.5;
}

.inscription-docs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rouge);
    font-weight: 700;
    font-size: 1rem;
}

.inscription-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.inscription-guide {
    margin: 0;
    text-align: center;
}

.inscription-guide img {
    display: block;
    width: 50%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.inscription-guide figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gris);
    font-weight: 600;
    line-height: 1.4;
}


/* ============================================================
   CONTACT & PLAN D'ACCÈS
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3,
.contact-protected h3 {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

address {
    font-style: normal;
    margin-bottom: 20px;
    color: var(--noir-doux);
    line-height: 1.8;
}

.dojo-acces-photos {
    margin-bottom: 24px;
}

.dojo-acces-photos img {
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.map-container {
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--ombre);
}

.map-container iframe {
    color-scheme: only light;
}

.map-link {
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.map-link a {
    color: var(--rouge);
    font-weight: 500;
}

/* Partenaires */
.partenaires h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partenaires-logos {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.partenaires-logos img {
    height: 50px;
    width: auto;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all var(--transition);
}

.partenaires-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Zone contact protégée par CAPTCHA */
.contact-protected {
    background: var(--blanc);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre);
}

.contact-intro {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.contact-intro-sub {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 30px;
}

/* CAPTCHA wall */
.captcha-wall {
    background: var(--blanc-casse);
    border: 2px dashed var(--gris-clair);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.captcha-lock-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.captcha-wall > p {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 20px;
}

.captcha-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--noir);
}

.captcha-input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
}

.captcha-input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gris-clair);
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
    font-family: var(--font-base);
}

.captcha-input-row input:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.btn-captcha {
    padding: 12px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.captcha-error {
    color: var(--rouge);
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 1.2em;
}

/* Coordonnées révélées */
.contact-revealed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--blanc-casse);
    border-radius: var(--radius);
    padding: 20px 24px;
    border-left: 4px solid var(--noir);
}

.contact-card-body {
    border-left-color: var(--rouge);
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--noir);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--noir-doux);
    margin-bottom: 4px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--rouge);
    font-weight: 500;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--noir);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-style {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
}

.footer-links h4,
.footer-affiliation h4 {
    color: var(--blanc);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--rouge-clair);
}

.footer-affil-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-affil-logos img {
    height: 40px;
    width: auto;
    filter: brightness(0.8) grayscale(50%);
    transition: filter var(--transition);
}

.footer-affil-logos img:hover {
    filter: brightness(1) grayscale(0%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-mentions {
    margin-top: 4px;
    font-size: 0.8rem;
}

.footer-mentions a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-mentions a:hover {
    color: var(--rouge-clair);
}


/* ============================================================
   RESPONSIVE DESIGN — TABLETTES
   ============================================================ */

@media (max-width: 1024px) {
    .club-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cours-block {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .cours-block.reverse {
        direction: ltr;
    }

    .body-gallery-full {
        grid-template-columns: 1fr;
    }

    .body-hero-grid {
        grid-template-columns: 1fr;
    }

    .cours-subsection-body {
        padding: 40px 30px;
    }

    .cours-subsection-adultes,
    .cours-subsection-enfants {
        padding: 40px 30px;
    }

    .inscription-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .inscription-guides {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .planning-equipement {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


/* ============================================================
   RESPONSIVE DESIGN — MOBILE
   ============================================================ */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    /* Navigation mobile */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--noir);
        padding: 80px 30px 30px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        gap: 4px;
    }

    /* Sous-menu en mobile : toujours visible, indenté */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 16px;
        min-width: auto;
    }

    .submenu a {
        font-size: 0.9rem;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
    }

    .main-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav a::after {
        display: none;
    }

    /* Réseaux sociaux en mobile */
    .social-icons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 998;
        margin-left: 0;
        background: var(--noir);
        padding: 8px;
        border-radius: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    /* Hero mobile */
    .hero-title-main {
        --hero-title-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-kanji {
        width: 60px;
    }

    .hero-title-main {
        grid-template-columns: 1fr;
        row-gap: 16px;
        column-gap: 0;
    }

    .hero-title-main .hero-logo:first-child,
    .hero-title-main .hero-logo:last-child,
    .hero h1 {
        grid-column: 1;
        justify-self: center;
    }

    /* Section titre */
    .section-title {
        font-size: 1.8rem;
    }

    /* Senseis */
    .senseis-grid {
        gap: 20px;
    }

    .sensei-card {
        padding: 20px;
    }

    .sensei-card img {
        width: 120px;
        height: 120px;
    }

    /* Tarifs */
    .tarifs-table th:nth-child(n+4),
    .tarifs-table td:nth-child(n+4) {
        display: none;
    }

    .tarif-card {
        padding: 30px 20px;
    }

    /* Planning mobile */
    .planning-grid {
        grid-template-columns: 100px 1fr 1fr 1fr;
    }

    .planning-header,
    .planning-label {
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .planning-time {
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    /* Body Karaté */
    .cours-subsection-body {
        padding: 30px 20px;
    }

    .cours-subsection-adultes {
        padding: 30px 20px;
    }

    .cours-subsection-enfants {
        padding: 30px 20px;
    }

    .body-hero-grid {
        grid-template-columns: 1fr;
    }

    .body-hero-visual img {
        max-width: 320px;
        margin: 0 auto;
    }

    .body-prof-card {
        flex-direction: column;
        text-align: center;
    }

    .body-prof-cert {
        width: 100%;
        max-width: 250px;
    }

    .body-gallery-full {
        grid-template-columns: 1fr;
    }

    /* Contact form */
    .contact-protected {
        padding: 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 12px;
    }

    .footer-affil-logos {
        justify-content: center;
    }

    .partenaires-logos {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .cours-block {
        padding: 20px;
    }

    .horaires-table th,
    .horaires-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .dojo-photos {
        grid-template-columns: 1fr;
    }

    .club-image-stack {
        flex-direction: column;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .site-header,
    .nav-toggle,
    .hero-overlay,
    .map-container,
    .btn,
    .captcha-wall {
        display: none;
    }

    .contact-revealed {
        display: block !important;
    }

    .hero {
        min-height: auto;
        background: var(--blanc);
        color: var(--noir);
    }

    .hero h1 {
        color: var(--noir);
    }

    .section-body,
    .cours-subsection-body {
        background: var(--blanc) !important;
        color: var(--noir);
    }

    .section-body .section-title,
    .cours-subsection-body .subsection-title {
        color: var(--noir);
    }

    body {
        font-size: 12pt;
    }
}