main {
    .message-banner {
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 15px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        font-size: 16px;
        p {
            margin: 0;
        }
        &.error {
            background-color: #fdd;
            color: #a00;
        }
        &.success {
            background-color: green;
            color: var(--lc);
        }
        &.show {
            transform: translateY(0);
            opacity: 1;
        }
        &.hide {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
    display: flex;
    flex-direction: column;
    padding: 0 5%;
    margin-top: 125px;
    font-family: var(--fa);
    gap: 20px;
    .header-club {
        display: flex;
        width: 100%;
        height: 400px;
        overflow: hidden;
        .infos {
            width: 30%;
            display: flex;
            flex-direction: column;
            padding: 5px;
            .box-logo {
                width: 100%;
                height: 100px;
                display: flex;
                align-items: center;
                justify-content: center;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    object-fit: contain;
                }
            }
            .box-infos {
                h1 {
                    font-size: 25px;
                    color: var(--mc);
                    text-transform: uppercase;
                    font-family: var(--ft);
                    text-align: center;
                    letter-spacing: 1px;
                    margin-bottom: 5px;
                }
                .flex-info {
                    display: flex;
                    align-items: center;
                    gap: 7.5px;
                    color: var(--mc);
                    margin-bottom: 7.5px;
                    &:nth-last-child(1) {
                        margin-top: 10px;
                    }
                    img {
                        width: 22px;
                        height: 22px;
                    }
                }
                .link-contact {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    a {
                        text-decoration: none;
                        box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
                        width: 60%;
                        margin: 0 auto;
                        padding: 5px 0;
                        color: var(--lc);
                        background: var(--mc);
                        text-align: center;
                        border-radius:7.5px;
                        outline: 1px solid transparent;
                        transition: 0.2s;
                        &:hover {
                            box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
                            color: var(--mc);
                            background: var(--lc);
                            border-radius:10px;
                            outline: 1px solid var(--mc);
                        }
                    }
                }
                .link-inscription {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-top: 10px;
                    a {
                        text-decoration: none;
                        box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
                        width: 80%;
                        margin: 0 auto;
                        padding: 5px 0;
                        color: var(--lc);
                        background: var(--fdc);
                        text-align: center;
                        border-radius:7.5px;
                        outline: 1px solid transparent;
                        transition: 0.2s;
                        &:hover {
                            box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
                            color: var(--fdc);
                            background: var(--lc);
                            border-radius:10px;
                            outline: 1px solid var(--fdc);
                        }
                    }
                }
            }
        }
        .images {
            width: 70%;
            display: flex;
            align-items: center;
            justify-content: center;
            .carousel {
                position: relative;
                width: 100%;
                height: 100%;
                overflow: hidden;
                border-radius: 12px;
                background: rgba(0,0,0,0.05);
                .carousel-track {
                    display: flex;
                    transition: transform 0.4s ease-in-out;
                    height: 100%;
                    .carousel-item {
                        min-width: 100%;
                        box-sizing: border-box;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        img {
                            width: auto;
                            height: auto;
                            min-height: 80%;
                            max-height: 100%;
                            max-width: 100%;
                            object-fit: cover;
                        }
                    }
                }
                .carousel-btn {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    background: rgba(0,0,0,0.25);
                    color: #fff;
                    border: none;
                    padding: 15px;
                    cursor: pointer;
                    font-size: 22px;
                    border-radius: 50%;
                    transition: background 0.3s;

                    &.prev {
                        left: 15px;
                    }

                    &.next {
                        right: 15px;
                    }

                    &:hover {
                        background: var(--dc);
                        color: var(--lc);
                    }
                }
            }
        }
    }
    h2 {
        text-align: center;
        color: var(--mc);
        text-transform: uppercase;
        font-size: 30px;
    }
    .content-club {
        display: flex;
        justify-content: space-around;
        gap: 20px;
        flex-wrap: wrap;
        .club {
            width: 325px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            padding: 5px 10px;
            border-radius: 10px;
            position: relative;
            &:before {
                content: '';
                position: absolute;
                top: 2.5%;
                left: 2.5%;
                width: 95%;
                height: 95%;
                background-image: url('https://basse-normandie-kyokushin.fr/assets/img/images/kanji.png');
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;
                opacity: 0.08;
                z-index: 0;
            }
            > * {
                position: relative;
                z-index: 1;
            }
            .name {
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                gap: 10px;
                color: var(--mc);
                font-family: var(--fm);
                font-weight: bold;
                font-size: 25px;
                text-transform: uppercase;
                margin-bottom: 5px;
                img {
                    width: auto;
                    height: 40px;
                }
            }
            .age {
                display: flex;
                align-items: center;
                gap: 7.5px;
                color: var(--mc);
                font-family: var(--fm);
                font-size: 22px;
                margin-bottom: 10px;
                img {
                    width: 20px;
                    height: auto;
                }
            }
            table {
                width: 100%;
                border-collapse: collapse;
                margin-bottom: 10px;
                thead tr {
                    th {
                        padding: 2px 0 7px 0;
                        .content {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            text-transform: uppercase;
                            color: var(--mc);
                            img {
                                margin-right: 7.5px;
                                width: 18px;
                                height: auto;
                            }
                        }
                    }
                }
                tbody tr td {
                    color: var(--mc);
                    padding: 2px 0;
                    &:nth-child(1) {
                        text-align: left;
                        padding-left: 10px;
                    }
                    &:nth-child(2) {
                        text-align: right;
                        padding-right: 10px;
                        a {
                            text-decoration: none;
                            color: var(--mc);
                        }
                    }
                }
            }
        }
    }
    .contact-section {
        form {
            width: 100%;
            outline: 2px solid var(--mc);
            padding: 10px 20px;
            .input-group {
                position: relative;
                margin-bottom: 20px;
                width: 100%;
                input, textarea {
                    width: 100%;
                    padding: 10px 15px;
                    font-size: 16px;
                    border: none;
                    outline: 1px solid var(--mc);
                    background: transparent;
                    color: var(--mc);
                }
                input:focus {
                    border-bottom: 1.5px solid var(--mc);
                    transition: 0.1s;
                }
                textarea:focus {
                    outline: 2px solid var(--mc);
                }
                label {
                    position: absolute;
                    top: 7.5px;
                    left: 7.5px;
                    color: var(--mc);
                    background: white;
                    padding: 0 4px;
                    transition: 0.2s ease;
                    pointer-events: none;
                    .mandatory-field {
                        color: var(--rc);
                    }
                }
                input:focus + label,
                input:not(:placeholder-shown) + label,
                textarea:focus + label,
                textarea:not(:placeholder-shown) + label {
                    top: -10px;
                    left: 10px;
                    font-size: 12px;
                    color: var(--mc);
                }
                textarea {
                    height: 200px;
                }
            }
            input[type="submit"] {
                all:unset;
                border: none;
                outline: 1.5px solid var(--vc);
                width: 100%;
                color: var(--lc);
                text-align: center;
                cursor: pointer;
                height: 35px;
                transition: all ease 0.3s;
                text-transform: uppercase;
                background: var(--vc);
                &:hover {
                    background: var(--lc);
                    color: var(--vc);
                }
            }
            .mandatory-text {
                color: var(--rc);
                font-size: 15px;
                text-align: right;
                font-style: italic;
                margin-top: 3px;
            }
        }
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 100px;
        .message-banner {
            font-size: 15px;
        }
        .header-club {
            flex-direction: column;
            height: auto;
            .infos {
                width: 100%;
                .box-infos {
                    h1 {
                        font-size: 20px;
                    }
                }
            }
            .images {
                width: 100%;
                .carousel {
                    max-width: 300px;
                    max-height: 200px;
                    border-radius: 10px;
                    .carousel-track .carousel-item img {
                        max-width: 300px;
                        max-height: 200px;
                        height: auto;
                        width: auto;
                    }
                    .carousel-btn {
                        padding: 10px 5px;
                        font-size: 20px;
                    }
                }
            }
        }
        h2 {
            font-size: 25px;
        }
        .content-club {
            .club {
                width: 300px;
                padding: 5px 7.5px;
                .name {
                    font-size: 22px;
                    img {
                        height: 35px;
                    }
                }
                .age {
                    font-size: 20px;
                }
            }
        }
        .contact-section {
            form {
                padding: 7.5px 15px;
                .mandatory-text {
                    font-size: 14px;
                }
            }
        }
    }
}