/* ================================
   Base
================================= */
body {
    background-color: #d4b996;
    font-family: 'Noto Serif JP', serif;
    margin: 0;
}

h1 {
    text-align: center;
}

textarea,
input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    transition: 0.3s ease-in-out;
}

textarea:focus,
input:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
    outline: none;
}

/*page alk*/
page-alk-content {
    margin: 2em auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* ================================
   Navigation
================================= */
nav {
    background-color: #d4b996;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5a4639;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #5a4639;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
    background-color: #8c7153;
    border-radius: 5px;
}

/* Langues */
.lang-btns {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btns a {
    background-color: #5a4639;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.lang-btns a:hover {
    background-color: #8c7153;
}

.lang-btns li {
    list-style: none;
}

/* ================================
   Hero
================================= */
.hero {
    background-color: #000 !important;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    box-shadow: inset 0px -50px 50px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2.8rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ================================
   MINI JEU 
================================= */
.kyudo-game {
    text-align: center;
    padding: 2em;
    background-color: #0c0a0a !important;
    border-top: 4px solid #b33;
}

#kyudoGame {
    margin: 2em auto 0 auto;
    /* marge haut 2em, centrage horizontal */
    max-width: 320px;
    background: #0e0c07;
    border: 2px solid #070707;
    border-radius: 12px;
    padding: 1em;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* ================================
   Events Section
================================= */
.events {
    background-color: #000;
    color: #fff;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #0073e6;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* ================================
   Footer
================================= */
footer {
    background-color: #000 !important;
    color: #ddd;
    text-align: center;
    padding: 20px;
}

.site-logo {
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
}

/* ================================
   Blog
================================= */
.blog {
    text-align: center;
    padding: 40px;
}

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

.blog-item {
    width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-image-container img {
    width: 100%;
    border-radius: 10px;
}

.blog-post-title {
    font-size: 20px;
    margin: 15px 0;
}

.blog-post-title a {
    text-decoration: none;
    color: #333;
}

/* ================================
      CARROUSELLE
================================== */
@keyframes slide {

    0%,
    20% {
        transform: translateX(0);
    }

    25%,
    45% {
        transform: translateX(-1000px);
    }

    50%,
    70% {
        transform: translateX(-2000px);
    }

    75%,
    95% {
        transform: translateX(-3000px);
    }

    100% {
        transform: translateX(-4000);
    }
}

.carousel .slides {
    animation: slide 20s linear infinite;
}


/* ================================
   Contact
================================= */
.contact-section {
    text-align: center;
    padding: 40px;
    background: #7a3614;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ================================
   Flash Messages
================================= */
.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* ================================
   Cartes interactives (Card)
================================= */
.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.card {
    width: 150px;
    height: 200px;
    perspective: 1000px;
    margin: 10px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-text {
    margin-top: 100px;
    color: #D3D3D3;
    backface-visibility: hidden;
}

.card-text-back {
    color: #D3D3D3;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card:hover .card-text {
    display: none;
}

/* resto est verso de la carte */
.card-front,
.card-back {
    position: absolute;
    width: 150px;
    height: 200px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}


/* image de font avant et arriere */
.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(70%);
}

/* Texte visible au-dessous des images */
.card-front p,
.card-back p {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 10px;

}

.card-back {
    background: #ddd;
    transform: rotateY(180deg);
}

/* Niveaux */
.level0,
.level1,
.level2,
.level3,
.level4,
.level5 {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.level0 {
    top: 0px;
}

.level1 {
    top: 0px;
}

.level2 {
    top: 30px;
}

.level3 {
    top: 60px;
}

.level4,
.level5 {
    top: 90px;
}

/* ================================
   Calendrier
================================= */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

form {
    text-align: center;
    margin-bottom: 20px;
}

select,
button {
    padding: 5px;
    font-size: 14px;
    margin: 0 5px;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day,
.header-day {
    width: 140px;
    background-color: #f9e4b7;
    border: 2px solid #8d6e63;
    box-sizing: border-box;
    position: relative;
    padding: 10px;
}

.header-day {
    font-weight: bold;
    text-align: center;
    background-color: #dec4a1;
}

.day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 20px;
}

.day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    font-size: 14px;
}

.day-content {
    font-size: 13px;
    line-height: 1.2;
    word-break: break-word;
    margin-top: 5px;
}

.vacation {
    background-color: #90EE90 !important;
}

.holiday {
    background-color: #ffcccb !important;
    border-color: #cc4444 !important;
}

/* Légende */
.legend {
    background-color: #fff3cd;
    border: 2px solid #8d6e63;
    padding: 15px;
    width: 200px;
    font-size: 14px;
}

.legend .vac,
.legend .holiday {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #8d6e63;
}

.legend .vac {
    background-color: #90EE90;
}

.legend .holiday {
    border-color: #cc4444;
}

/* ================================
   Carte / Localisation
================================= */
.locations-wrapper {
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.retrait-container {
    background-color: #d4b996;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.retrait-map iframe {
    width: 400px;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

.retrait-map {
    flex: 1 1 300px;
    border: 1px solid #ccc;
}

.retrait-info {
    flex: 1 1 300px;
    font-size: 14px;
}

.retrait-info h3 {
    margin-top: 0;
}

.retrait-info ul {
    padding-left: 20px;
}

/* ================================
   Page Histoire
================================= */
.image-gauche {
    width: 2000px !important;
    height: auto !important;
}

.image-droite {
    width: 5000px !important;
    height: auto !important;
}

/* ================================
   Responsive Design
================================ */
/* 📱 Mobile - moins de 768px */
@media screen and (max-width: 767px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    .nav-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    textarea,
    input {
        font-size: 16px;
    }

    h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .container,
    .main,
    .content,
    .section {
        padding: 10px !important;
        width: 100% !important;
    }

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

/* 📲 Tablette - entre 768px et 1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 8px;
    }

    .nav-title {
        font-size: 1.6rem;
    }

    .container,
    .main,
    .content,
    .section {
        padding: 15px !important;
        width: 100% !important;
    }

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