/*
Theme Name: Judo Club
Description: Thème WordPress moderne et responsive pour association de judo.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: judo-club
*/
:root{--red:#e21d2f;--black:#0b0b0c;--ink:#171719;--muted:#707070;--light:#f4f4f2;--white:#fff;--radius:18px;--shadow:0 18px 50px rgba(0,0,0,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);line-height:1.6}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(11,11,12,.97);color:#fff}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.04em}.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--red);display:grid;place-items:center;font-weight:1000}.brand small{display:block;font-size:10px;opacity:.65;letter-spacing:.16em}.main-nav{list-style-type:none;display:flex;align-items:center;gap:22px;font-size:14px;font-weight:700}.main-nav a{opacity:.82}.main-nav a:hover{opacity:1}.cta{background:var(--red);color:#fff!important;padding:11px 18px;border-radius:999px;font-weight:800}.menu-toggle{display:none;background:none;border:1px solid #444;color:#fff;border-radius:10px;padding:9px}
.hero{background:linear-gradient(120deg,#0b0b0c,#171719 58%,#42151b);color:#fff;padding:92px 0 78px;overflow:hidden;position:relative;color: #ffffff;}.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    /* Flou de 6px et baisse de la luminosité à 50% */
    filter: blur(6px) brightness(0.5);
    /* Agrandit légèrement l'image pour éviter les bords blancs causés par le flou */
    transform: scale(1.05);
    z-index: 1;
}
.hero > * {
    position: relative;
    z-index: 2;
  }.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center}.eyebrow{color:#ff5362;text-transform:uppercase;letter-spacing:.18em;font-size:12px;font-weight:900}.hero h1{font-size:clamp(44px,7vw,82px);line-height:.96;margin:14px 0 22px;letter-spacing:-.05em}.hero p{font-size:18px;color:#d2d2d2;max-width:620px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{display:inline-flex;padding:13px 20px;border-radius:999px;font-weight:800}.btn-red{background:var(--red);color:#fff}.btn-light{background:#fff;color:#111}.hero-card-media {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 20px; /* Arrondir légèrement les coins de l'image */
    overflow: hidden;
    z-index: 1;
}

.hero-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Effet d'assombrissement sur l'image pour que le texte reste lisible */
.hero-card-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 70%);
}.hero-card{min-height:370px;border-radius:28px;background:linear-gradient(145deg,rgba(226,29,47,.9),rgba(255,255,255,.07));display:flex;align-items:flex-end;position:relative;overflow:hidden;padding:28px}.hero-card-inner{position:relative;z-index:2;color:#ffffff;background:rgba(0,0,0,.58);backdrop-filter:blur(8px);padding:20px;border-radius:18px;width:100%}.hero-card-inner strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.stats{background:#fff;border-bottom:1px solid #eee}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}.stat{padding:28px 20px;text-align:center;border-right:1px solid #eee}.stat:last-child{border:0}.stat strong{display:block;font-size:34px;line-height:1}.stat span{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
.section{padding:82px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.section h2{font-size:clamp(30px,4vw,48px);line-height:1.05;margin:8px 0;font-weight:950;letter-spacing:-.035em}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid #e7e7e7;border-radius:var(--radius);overflow:hidden;background:#fff}.card-body{padding:22px}.card-meta{font-size:12px;color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.card h3{margin:8px 0;font-size:22px;line-height:1.15}.placeholder-image{aspect-ratio:16/10;background:linear-gradient(135deg,#18181a,#5a171e);display:grid;place-items:center;color:#fff;font-size:54px}
.event-list{display:grid;gap:12px}.event{display:grid;grid-template-columns:90px 1fr auto;gap:18px;align-items:center;padding:18px;border:1px solid #e7e7e7;border-radius:16px}.event-date{text-align:center;background:var(--black);color:#fff;border-radius:13px;padding:9px}.event-date strong{display:block;font-size:25px;line-height:1}.event-date span{font-size:11px;text-transform:uppercase}.schedule{width:100%;border-collapse:collapse}.schedule th,.schedule td{text-align:left;padding:15px;border-bottom:1px solid #e8e8e8}.schedule th{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.club-band{background:var(--black);color:#fff}.club-band .container{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.club-band p{color:#bbb}.page-hero{background:var(--black);color:#fff;padding:70px 0}.page-hero h1{font-size:clamp(42px,6vw,70px);margin:8px 0;line-height:1}.content{padding:70px 0}.content-wrap{max-width:850px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.contact-box{background:var(--light);border-radius:18px;padding:25px}.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    width: 100%;
    /* Définit un ratio d'image fixe (4:3 ou 16:9 ou carré 1:1) */
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 8px; /* Optionnel : pour arrondir légèrement les coins */
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* Rempli le cadre sans déformer l'image (recadre proprement le centre) */
    object-fit: cover; 
    object-position: center;
    transition: transform 0.3s ease;
}

/* Optionnel : Effet de zoom fluide au survol */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================================
   DOCUMENTS - PAGE D'ACCUEIL
   ========================================================= */

.home-documents {
    padding: 90px 0;
    background: #f7f7f7;
}


.home-documents .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}


.home-documents .section-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #ff5362;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.14em;
}


.home-documents .section-heading h2 {
    margin: 0 0 10px;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}


.home-documents .section-heading p {
    margin: 0;

    color: #666;

    font-size: 16px;
}


.home-documents .section-link {
    color: var(ink);
    text-decoration: none;
    white-space: nowrap;
}


/* =========================================================
   GRILLE
   ========================================================= */

.documents-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   CARTE
   ========================================================= */

.document-card {
    background: #fff;

    border: 1px solid #e5e5e5;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.document-card:hover {

    transform: translateY(-4px);

    border-color: #ddd;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


.document-card-link {

    display: flex;

    flex-direction: column;

    height: 100%;

    padding: 25px;

    color: #111;

    text-decoration: none;
}


/* =========================================================
   ICÔNE / TYPE
   ========================================================= */

.document-card-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: 25px;

    background: #111;

    color: #fff;

    font-size: 14px;
    font-weight: 900;

    letter-spacing: 0.04em;
}


.document-card:hover .document-card-icon {
    background: #ed1c2e;
}


/* =========================================================
   CONTENU
   ========================================================= */

.document-card-content {
    flex: 1;
}


.document-card-content h3 {

    margin: 0 0 10px;

    font-size: 19px;

    line-height: 1.25;
}


.document-card-content p {

    margin: 0 0 18px;

    color: #666;

    font-size: 14px;

    line-height: 1.5;
}


.document-card-meta {

    display: flex;

    gap: 10px;

    color: #999;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


.document-card-meta span + span::before {

    content: "•";

    margin-right: 10px;

    color: #ccc;
}


/* =========================================================
   FLÈCHE
   ========================================================= */

.document-card-arrow {

    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin-top: 25px;

    color: #ed1c2e;

    font-size: 24px;
    font-weight: 700;

    transition:
        transform 0.2s ease;
}


.document-card:hover .document-card-arrow {

    transform:
        translateX(5px);
}


/* =========================================================
   AUCUN DOCUMENT
   ========================================================= */

.documents-empty {

    padding: 30px;

    background: #fff;

    border-left: 3px solid #ed1c2e;
}


.documents-empty p {
    margin: 0;
}


/* =========================================================
   BOUTON BAS DE SECTION
   ========================================================= */

.documents-footer {

    margin-top: 35px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .documents-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .home-documents {

        padding: 60px 0;
    }


    .home-documents .section-heading {

        display: block;
    }


    .home-documents .section-link {

        display: inline-block;

        margin-top: 20px;
    }


    .documents-grid {

        grid-template-columns: 1fr;
    }
}

.site-footer{background:#09090a;color:#fff;padding:55px 0 25px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}.site-footer p,.site-footer li{color:#aaa}.site-footer ul{list-style:none;padding:0}.site-footer li{margin:7px 0}.copyright{border-top:1px solid #28282a;margin-top:35px;padding-top:18px;font-size:12px;color:#777}.notice{padding:14px 18px;border-left:4px solid var(--red);background:#f7f7f5;margin:20px 0}.form-row{margin-bottom:16px}.form-row label{display:block;font-weight:800;margin-bottom:6px}.form-row input,.form-row textarea{width:100%;padding:12px 14px;border:1px solid #ddd;border-radius:10px;font:inherit}.form-row textarea{min-height:140px}
@media(max-width:900px){.hero-grid,.club-band .container,.contact-grid{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.main-nav{display:none;position:absolute;left:20px;right:20px;top:72px;background:#111;padding:18px;border-radius:16px;flex-direction:column;align-items:stretch}.main-nav.is-open{display:flex}.menu-toggle{display:block}.stats-grid{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid #eee}.hero{padding:70px 0}}
@media(max-width:620px){.container{width:calc(100% - 28px)}.grid-3,.gallery-grid,.footer-grid{grid-template-columns:1fr}.event{grid-template-columns:70px 1fr}.event>a{grid-column:2}.hero h1{font-size:48px}.section{padding:60px 0}}