/* style.css */

/* Padding pour compenser le header fixe */
body {
    padding-top: 4.5rem;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Gestion des retours à la ligne pour le japonais selon les règles kinsoku */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6 {
    word-break: auto-phrase; /* Analyse linguistique pour Chrome/Edge */
    line-break: strict;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Pour les paragraphes, ne pas justifier ceux qui ont text-center */
html[lang="ja"] p:not(.text-center) {
    word-break: auto-phrase; /* Analyse linguistique pour Chrome/Edge */
    line-break: strict;
    overflow-wrap: break-word;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-character;
}

/* Garder le centrage pour les paragraphes avec text-center */
html[lang="ja"] p.text-center {
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Correction de l'interlignage pour les spans avec nowrap */
html[lang="ja"] h1 span,
html[lang="ja"] h2 span,
html[lang="ja"] h3 span,
html[lang="ja"] p span {
    display: inline;
    line-height: inherit;
    vertical-align: baseline;
}

/* Custom styles for the responsive menu item images */
.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.menu-item:hover img {
    transform: scale(1.05);
}

/* Effet de zoom au survol pour le logo */
.logo-link:hover .logo-image {
    transform: scale(1.05);
}
.logo-image {
     transition: transform 0.3s ease;
}
 
/* Styles pour la galerie d'images dans la section Accueil (Kawaii/Joli) */
.gallery-item {
    cursor: pointer;
    aspect-ratio: 1/1; /* Assure que toutes les vignettes sont carrées */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
    border-radius: 12px; /* Coins arrondis pour l'effet kawaii */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08); /* Zoom plus prononcé pour la galerie */
}

/* Instagram promo image hover effect */
.instagram-promo-img {
    transition: transform 0.3s ease;
}
a:hover .instagram-promo-img {
    transform: scale(1.05);
}
 
/* Styles pour le Lightbox (Modal) */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.95); /* Fond gris très foncé, presque noir, avec transparence */
    z-index: 50; /* Au-dessus de tout le reste */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px); /* Petit flou sur le fond */
}
.lightbox-content {
    max-width: 90%;
    max-height: 95%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 88vh;
    margin: 0;
    border-radius: 1rem;
}
 
/* Styles pour le bouton de fermeture */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.9;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 55;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.lightbox-close:hover {
    opacity: 1;
    color: #f87171; /* Rouge pâle au survol */
}
 
/* NOUVEAU: Styles pour les flèches de navigation */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	color: #fff; /* Avant:#1f2937 gris // Rend les flèches blanches pour mieux contraster avec le fond sombre du modal */
    background: rgba(0, 0, 0, 0.3); /* Fond des flèches plus sombre // avant rgba(255, 255, 255, 0.3) Fond blanc semi-transparent */
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 52; /* Au-dessus de l'image */
    transition: background 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6); /* Intensifie le fond au survol // avant background: rgba(255, 255, 255, 0.7);*/
}

#prev-arrow {
    left: 20px; /* Marge à gauche du modal */
}

#next-arrow {
    right: 20px; /* Marge à droite du modal */
}
 
/* Styles pour la table des heures */
.hours-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 300px;
}
.hours-table th, .hours-table td {
    padding: 4px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.hours-table th {
    font-weight: bold;
    color: #61594a;
}

/* Styles pour la légende du Lightbox (sous l'image) */
.lightbox-caption-style {
    /* Positionnement */
    position: relative;
    width: 100%;
    max-width: 90%;
    margin-top: 12px;
    
    /* Apparence */
    padding: 8px 16px;
    background-color: transparent;
    color: #ffffff;
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.5;
    
    /* Permettre le wrap du texte sur plusieurs lignes */
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    
    /* Ombre pour la lisibilité sur fond sombre */
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.8);
    
    /* La légende ne s'affiche que si elle a du contenu */
    display: none;
}

/* Styles pour la page News */
.filter-btn {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background-color: #e5e7eb;
}

.filter-btn.active {
    background-color: #61594a;
    color: #9ed3c2;
    border-color: #61594a;
}

/* Animation pour le badge NEW */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive pour la grille news */
@media (max-width: 768px) {
    #news-items-container {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #news-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Am\u00e9lioration de la lightbox pour mobile */
@media (max-width: 768px) {
    .lightbox-modal {
        padding: 10px;
    }
    
    #lightbox-image {
        max-height: 70vh !important;
    }
    
    .lightbox-caption-style {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    #prev-arrow {
        left: 5px;
    }
    
    #next-arrow {
        right: 5px;
    }
}

/* Am\u00e9liorations d'accessibilit\u00e9 */
.filter-btn:focus,
#search-input:focus {
    outline: 2px solid #61594a;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #61594a;
    outline-offset: 2px;
}
