main {
    padding: 0 5%;
    margin-top: 35px;
    font-family: var(--fa);
    gap: 20px;
    .not-display-private {
        display: none!important;
    }
    h2 {
        font-family: var(--fgt);
        color: var(--mc);
        text-align: center;
        text-transform: uppercase;
        font-size: 30px;
    }
    .header-dojo {
        width: 100%;
        display: flex;
        flex-direction: column;
        .logo-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            img {
                height: 125px;
                width: auto;
                object-fit: contain;
            }
            h1 {
                font-family: var(--fth);
                text-transform: uppercase;
                font-weight: 400;
                color: var(--mc);
                font-size: var(--ttp);
                letter-spacing: 0.3px;
            }
        }
        .maps-info {
            padding-top: 30px;
            width: 100%;
            display: flex;
            gap: 15px;
            .carte-conteneur {
                min-width: 50%;
                max-width: 50%;
                iframe {
                    width: 100%;
                    height: 400px;
                    border: none;
                }
            }
            .infos-utiles {
                min-width: 50%;
                max-width: 50%;
                display: flex;
                flex-direction: column;
                h2 {
                    margin-bottom: 10px;
                }
                ul {
                    list-style: none;
                    padding-left: 15px;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    color: var(--fdc);
                    li {
                        display: flex;
                        align-items: center;
                        gap: 7.5px;
                        img {
                            width: 18px;
                            height: 18px;
                        }
                    }
                }
                .redes-sociales {
                    display: flex;
                    justify-content: center;
                    gap: 15px;
                    padding-top: 15px;
                    .insta, .fb {
                        min-width: 35%;
                        max-width: 45%;
                        display: flex;
                        align-items: center;
                        gap: 7.5px;
                        a {
                            text-decoration: none;
                            color: var(--mc);
                            transition: var(--tcm);
                            &:hover {
                                transform: translateX(7.5px);
                            }
                        }
                    }
                }
                .buttons-line {
                    display: flex;
                    justify-content: center;
                    gap: 20px;
                    padding-top: 15px;
                    a {
                        all: unset;
                        display: block;
                        padding: 5px 0;
                        width: 45%;
                        text-align: center;
                        border-radius: 5px;
                        color: var(--lc);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        transition: var(--tcm);
                        &.con {
                            background: var(--mc);
                            outline: 1px solid var(--mc);
                            &:hover {
                                box-shadow: 0 0 10px rgba(0,0,0,0.1);
                                background: var(--lc);
                                color: var(--mc);
                            }
                        }
                        &.ins {
                            background: var(--dc);
                            outline: 1px solid var(--dc);
                            &:hover {
                                box-shadow: 0 0 10px rgba(0,0,0,0.1);
                                background: var(--lc);
                                color: var(--dc);
                            }
                        }
                    }
                }
                .links-line {
                    justify-content: center;
                    display: flex;
                    gap: 20px;
                    margin-top: auto;
                    a {
                        all: unset;
                        padding: 5px 0;
                        width: calc(90%/3);
                        color: var(--lc);
                        background: var(--dc);
                        border-radius: 7.5px;
                        text-align: center;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        transition: var(--tcm);
                        outline: 1px solid var(--dc);
                        &:hover {
                            color: var(--dc);
                            background: var(--lc);
                        }
                    }
                }
            }
        }
    }
    .cours-section {
        width: 100%;
        .edt-grid {
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            .edt-col {
                display: flex;
                flex-direction: column;
                flex: 1 1 calc(100% / 7 - 14px);
                min-width: calc(100% / 7 - 14px);
                max-width: 25%;
                margin: 0 auto;
                .edt-col-header {
                    text-align: center;
                    text-transform: uppercase;
                    font-weight: 500;
                    background: var(--mc);
                    color: var(--lc);
                    padding: 7px 0;
                    border-radius: 5px;
                    letter-spacing: 0.5px;
                    font-family: var(--fgt);
                    font-size: 22px;
                    &.today {
                        background: var(--vc);
                    }
                }
                .edt-col-body {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    padding-top: 15px;
                    .cours-block {
                        outline: 1.35px solid var(--dc);
                        border-radius: 7px;
                        overflow: hidden;
                        padding: 0px 0 5px 0;
                        .cours-header {
                            padding: 3px 5px;
                            line-height:16px;
                                background: var(--dc);
                                color: var(--lc);
                                width: 100%;
                                text-transform: uppercase;
                                font-size: 16px;
                                text-align: center;
                                font-weight: 600;
                                font-family: var(--flf);
                        }
                        .cours-panel {
                            .cours-infos {
                                list-style: none;
                                padding: 7px 10px;
                                display: flex;
                                flex-direction: column;
                                gap: 6px;
                                li {
                                    display: flex;
                                    align-items: center;
                                    gap: 7.5px;
                                    font-size: 14px;
                                    color: var(--dc);
                                    img {
                                        width: 16px;
                                        height: 16px;
                                    }
                                    &.condi {
                                        color: var(--oc);
                                        font-weight: 700;
                                    }
                                }
                            }
                            .next-date {
                                width: 100%;
                                display: flex;
                                align-items: start;
                                justify-content: center;
                                .date {
                                    padding: 3px 8px 4px 8px;
                                    border-radius: 5px;
                                    background: var(--vct);
                                    color: var(--vc);
                                    line-height: 1;
                                    font-size: 13px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .docs-section {
        h2 { padding-bottom: 15px; }
        .content-docs {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: space-evenly;
            a {
                all: unset;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 10px;
                color: var(--dc);
                font-family: var(--fct);
                font-weight: 500;
                text-transform: uppercase;
                letter-spacing: 0.3px;
                outline: 1px solid var(--dc);
                min-width: 20%;
                border-radius: 10px;
                padding: 7px;
                cursor: pointer;
                transition: var(--tm);
                &:hover {
                    border-radius: 20px;
                    box-shadow: 0 0 10px rgba(0,0,0,0.2);
                }
                img {
                    height: 75px;
                    width: auto;
                }
            }
        }
    }
    .photos-section {
        h2 { padding-bottom: 15px; }
        .galerie-dojo__grille {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-auto-rows: 170px;
            grid-auto-flow: dense;
            gap: 10px;
            .galerie-dojo__item {
                margin: 0;
                overflow: hidden;
                border-radius: 10px;
                position: relative;
                grid-column: span 2;
                grid-row: span 1;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15);
                cursor: pointer;
                &.is-large {
                    grid-column: span 3;
                    grid-row: span 2;
                }
                &.is-tall {
                    grid-column: span 2;
                    grid-row: span 2;
                }
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center 30%;
                    display: block;
                    transition: transform 0.5s ease;
                }
                &::after {
                    content: '';
                    position: absolute;
                    inset: 0;
                    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 60%);
                    opacity: 0;
                    transition: opacity 0.35s ease;
                    pointer-events: none;
                }
                &:hover::after {
                    opacity: 1;
                }
                &:hover img {
                    transform: scale(1.08);
                }
            }
        }
        .galerie-dojo__lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
            z-index: 9999;
            &.is-active {
                opacity: 1;
                visibility: visible;
            }
            .galerie-dojo__lightbox-img {
                max-width: 90vw;
                max-height: 85vh;
                border-radius: 6px;
                box-shadow: 0 10px 40px rgba(0,0,0,0.5);
                transform: scale(0.92);
                transition: transform 0.3s ease;
            }
            &.is-active .galerie-dojo__lightbox-img {
                transform: scale(1);
            }
            .galerie-dojo__lightbox-fermer {
                position: absolute;
                top: 20px;
                right: 30px;
                background: none;
                border: none;
                color: #fff;
                font-size: 2.5rem;
                line-height: 1;
                cursor: pointer;
            }
        }
    }
    .contact-section {
        h2 { padding-bottom: 15px; }
        form {
            max-width: 80%;
            margin: 10px auto 0;
            background: var(--lc);
            border: 1px solid var(--bi);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 4px 20px var(--btc);
            .input-group {
                position: relative;
                margin-bottom: 25px;
                input, textarea {
                    width: 100%;
                    padding: 10px;
                    font-size: 15px;
                    color: var(--dc);
                    border: 1px solid #d8d8d8;
                    border-radius: 8px;
                    background: rgba(0, 0, 0, 2%);
                    outline: none;
                    transition: border-color 0.2s, background 0.2s;
                    resize: vertical;
                    &:focus {
                        border-color: var(--mc);
                        background: var(--lc);
                    }
                    &:focus + label,
                    &:not(:placeholder-shown) + label {
                        top: -9px;
                        left: 10px;
                        font-size: 11px;
                        padding: 0 4px;
                        background: var(--lc);
                        color: var(--mc);
                    }
                }
                textarea { min-height: 120px;  }
                label {
                    position: absolute;
                    left: 14px;
                    top: 8px;
                    font-size: 15px;
                    color: #888;
                    pointer-events: none;
                    transition: all 0.2s ease;
                    background: transparent;
                }
            }
            .mandatory-field {
                color: var(--rc);
                margin-left: 2px;
            }
            .cf-turnstile { margin: 10px 0 22px; }
            input[type="submit"] {
                display: block;
                width: 50%;
                padding: 14px;
                font-size: 15px;
                font-weight: 600;
                margin: 0 auto;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                color: var(--lc);
                background: var(--mc);
                outline: 1px solid var(--mc);
                border: none;
                border-radius: 8px;
                cursor: pointer;
                transition: background 0.2s, transform 0.1s;
                &:hover {
                    background: var(--lc);
                    color: var(--mc);
                }
                &:active {
                    transform: scale(0.98);
                }
            }
            .mandatory-text {
                margin-top: 14px;
                font-size: 12px;
                color: var(--oc);
                text-align: center;
            }
        }
    }
}

@media (max-width: 768px) {
    main {
        .header-dojo {
            .logo-title {
                flex-direction: column;
                justify-content: center;
                gap: 10px;
                text-align: center;
                img {
                    height: 100px;
                    &:nth-last-child(1) { display: none; }
                }
                h1 { font-size: var(--ttpr); }
            }
            .maps-info {
                padding-top: 20px;
                flex-direction: column-reverse;
                .carte-conteneur {
                    min-width: 100%;
                    max-width: 100%;
                    iframe { height: 250px; }
                }
                .infos-utiles {
                    min-width: 100%;
                    max-width: 100%;
                    h2 { font-size: 25px; }
                    .redes-sociales { flex-direction: column; }
                    .buttons-line { gap: 15px; }
                    .links-line {
                        flex-wrap:wrap;
                        gap: 15px;
                        padding-top: 15px;
                        a { width: 45%; }
                    }
                }
            }
        }
        .cours-section {
            .edt-grid {
                flex-direction: column;
                gap: 25px;
                .edt-col {
                    flex: 1 1 calc(100%);
                    min-width: calc(100%);
                    max-width: 100%;
                    .edt-col-header {
                        letter-spacing: 0.7px;
                        font-size: 25px;
                    }
                    .edt-col-body {
                        .cours-block  .cours-header {
                            padding: 5px;
                            font-size: 16.5px;
                        }
                        .cours-panel {
                            .cours-infos {
                                list-style: none;
                                padding: 7px 10px;
                                display: flex;
                                flex-direction: column;
                                gap: 6px;
                                li {
                                    font-size: 15px;
                                    img {
                                        width: 17px;
                                        height: 17px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .docs-section {
            h2 { padding-bottom: 15px; }
            .content-docs {
                flex-direction: column;
                gap: 15px;
                justify-content: center;
                a {
                    width: 90%;
                    border-radius: 7px;
                    img {
                        height: 60px;
                    }
                }
            }
        }
        .photos-section {
            .galerie-dojo__grille {
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: 160px;
                .galerie-dojo__item,
                .galerie-dojo__item.is-large,
                .galerie-dojo__item.is-tall {
                    grid-column: span 1;
                    grid-row: span 1;
                }
            }
        }
        .contact-section {
            form {
                max-width: 95%;
                border-radius: 10px;
                padding: 17.5px;
                .input-group {
                    margin-bottom: 20px;
                    textarea { min-height: 80px; }
                }
                .cf-turnstile { margin: 10px 0 22px; }
                input[type="submit"] {
                    width: 80%;
                    font-size: 16px;
                }
                .mandatory-text {
                    margin-top: 12px;
                }
            }
        }
    }
}