
/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: Poppins;
    margin: 0;
    background-color: #010101;
    color: #eee;
    overflow-x: hidden;
}

@font-face {
    font-family: "Kashima";
    src: url('font/Kashima.otf') format('truetype');
}

.navbar {
    position: relative;
    z-index: 999;
    width: 100%;
    font-family: "Kashima";
    font-size:26px;
}

/* CSS Slider */
.slider {
    height: 100vh;
    margin-top: -50px;
    position: relative;
    margin-bottom: 50px; /* Added margin to create space after slider */
}

.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to top, #000 40%, transparent);
}

.slider .list .item .content {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 500px;
    max-width: 80%;
    
    z-index: 1;
}

.slider .list .item .content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: 150px;
}

.slider .list .item .content h2 {
    font-size: 150px;
    margin: 0;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

.arrows {
    position: absolute;
    top: 50%;
    right: 50px;
    z-index: 100;
    transform: translateY(-50%);
}

.arrows button {
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: .5s;
}

.arrows button:hover {
    background-color: #eee;
    color: black;
}

.thumbnail {
    position: absolute;
    bottom: 0; /* Changed from 50px to 0 */
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 40%;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
}

.thumbnail::-webkit-scrollbar {
    width: 0;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail .item.active {
    filter: brightness(1.5);
}

.thumbnail .item .content {
    position: absolute;
    inset: auto 10px 10px 10px;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 1.5rem;
}

.card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.card-text:last-child{
    color:#000
}

.card-title {
    color:#e64a19
}
.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.btn-primary {
    background: #ff5722;
    border: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #e64a19;
}

.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff5722;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.fab:hover {
    background: #e64a19;
}

.search-bar {
    position: relative;
    max-width: 300px;
    margin: 0 auto 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: width 0.3s;
}

.search-bar input:focus {
    width: 100%;
    outline: none;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.search-bar button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid #ffd000;
    font-family: "Kashima";
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: "Kashima";
}

.footer-logo {
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ffc800;
}

.footer-title {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-nav {
    margin-top: 20px;
}

.footer-nav a {
    color: #ffe600;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Parallax Sections */
.pimg1, .pimg2, .pimg3, .pimg4, .fin {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.pimg1 {
    background-image: url('images/sliderimg1.jpg');
    min-height: 100vh;
    margin-top: 30px; /* Added space between slider and this section */
}

.pimg2 {
    background-image: url('images/sliderimg2.jpg');
    min-height: 600px;
}

.pimg3 {
    background-image: url('images/sliderimg3.jpg');
    min-height: 600px;
}

.pimg4 {
    background-image: url('images/accueilfond4.jpg');
    min-height: 600px;
}

.fin {
    background-image: url('images/accueilfond5.jpg');
    min-height: 100vh;
}

.section {
    text-align: center;
    padding: 50px 200px;
}

.section-light {
    background-color: #f4f4f4;
    color: #666;
}

.section-dark {
    background-color: #282e34;
    color: #ddd;
}

/* Titles */
.Art-martiaux{
    position: absolute;
    top: 20%;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 200px;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-family: Kashima;
}

.ptext {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #FF0000;
    font-size: 35px;
    letter-spacing: 8px;
    text-transform: uppercase;
    transform: translateY(-50%);
    font-family: Kashima;
}

.ptextfin {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 300px;
    letter-spacing: 8px;
    text-transform: uppercase;
    transform: translateY(-50%);
}

/* Media queries pour écrans plus petits */
@media screen and (max-width: 992px) {
    .slider .list .item .content h2 {
        font-size: 70px;
    }
    
    .thumbnail .item {
        width: 100px;
        height: 150px;
    }
    
    .Art-martiaux {
        font-size: 150px;
    }
    
    .section {
        padding: 50px 100px;
    }

    .slider {
        height: 100vh;
        margin-bottom: 40px; /* Adjusted for medium screens */
    }
}

/* Spécifique pour tablettes */
@media screen and (max-width: 768px) {
    .slider .list .item .content {
        top: 25%;
        left: 5%;
        width: 90%;
    }
    
    .slider .list .item .content h2 {
        font-size: 50px;
    }
    
    .arrows {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
    
    .thumbnail {
        justify-content: start;
        height: 200px;
        bottom: 0; /* Adjusted from 30px */
        padding: 0 20px;
    }
    
    .thumbnail .item {
        width: 90px;
        height: 130px;
    }
    
    .Art-martiaux {
        font-size: 100px;
        top: 30%;
    }
    
    .section {
        padding: 40px 50px;
    }
    
    .ptextfin {
        font-size: 200px;
    }

    .slider {
        height: 100vh;
        margin-bottom: 30px; /* Adjusted for tablet */
    }
}

/* Spécifique pour mobiles (576px et moins) */
@media screen and (max-width: 576px) {
    .slider .list .item .content {
        top: 20%;
        width: 85%;
    }
    
    .slider .list .item .content p:nth-child(1) {
        letter-spacing: 5px;
    }
    
    .slider .list .item .content h2 {
        font-size: 40px;
    }
    
    .slider .list .item .content p:nth-child(3) {
        font-size: 14px;
    }
    
    .arrows {
        top: 50%;
        right: 10px;
    }
    
    .arrows button {
        width: 30px;
        height: 30px;
        font-size: large;
    }
    
    .thumbnail {
        bottom: 0; /* Adjusted from 10px */
        height: 150px;
        padding: 0 10px;
    }
    
    .thumbnail .item {
        width: 70px;
        height: 100px;
        margin-right: 5px;
    }
    
    .thumbnail .item .content {
        font-size: 10px;
        inset: auto 5px 5px 5px;
    }
    
    .Art-martiaux {
        font-size: 50px;
        top: 40%;
        letter-spacing: 4px;
    }
    
    .ptext {
        font-size: 25px;
        letter-spacing: 4px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .section p {
        font-size: 14px;
    }
    
    .ptextfin {
        font-size: 120px;
    }

    /* Support for iOS Safari parallax issue */
    .pimg1, .pimg2, .pimg3, .pimg4, .fin {
        background-attachment: scroll;
    }
    
    .slider {
        height: 100vh;
        margin-bottom: 20px; /* Adjusted for mobile */
    }
}




.catalogue {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-center {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #d32f2f;
    font-weight: bold;
}

.listing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.martial_card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.martial_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.martial_image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Redimensionne l'image tout en conservant ses proportions */
    border-bottom: 1px solid #ddd;
}

.martial_content {
    padding: 15px;
}

.martial_title {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 10px;
    text-align: center;
}

.martial_content p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.martial_content strong {
    color: #333;
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}



h2.artmartial_recherche {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}



/* Carte des arts martiaux */
.art-martial {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.art-martial:hover {
    transform: translateY(-5px);
}

.art-image-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #d32f2f;
}

.art-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.art-info {
    padding: 15px;
    color: #333;
}

.art-info h3 {
    margin: 0 0 10px;
    color: #d32f2f;
}

.art-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Message d'erreur */
.message-error {
    text-align: center;
    color: #d32f2f;
    font-weight: bold;
    margin-top: 20px;
}
