/*
Theme Name: cotemer
Theme URI: http://cote-mer.com
Author: Jules
Description: Thème personnalisé pour le restaurant
Version: 1.0
*/

/* ========== Reset et General ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
#site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #060C64;
    box-shadow: 0 4px 15px rgba(2, 8, 89, 0.5);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 30px;
    max-width: 1200px;
    margin: auto;
}

.logo img {
    height: 60px;
    padding-top: 5px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.main-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
}

.nav-list li a:hover {
    color: #4169E1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4169E1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list li a:hover::after {
    width: 60%;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.language-switcher a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.language-switcher a:hover {
    transform: scale(1.1);
}

.language-switcher img {
    width: 24px;
    height: auto;
    border-radius: 50%;
    border: 1px solid white;
}

/* ========== BURGER MENU (mobile) ========== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== BANNER HERO ========== */
.hero-banner {
    position: relative;
    padding-top: 120px;
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    max-width: 90%;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Réduction supplémentaire sur petits écrans */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
}


.opening-hours {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ========== SECTIONS GÉNÉRALES ========== */
section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 40px;
    color: #060C64;
    font-family: 'Georgia', serif;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #060C64;
    margin: 15px auto 0;
}

/* ========== MENU SECTION ========== */
.menu-section {
    background: linear-gradient(135deg, #fdfdfd, #f5f7fa);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    padding: 50px 30px;
    transition: box-shadow 0.3s ease;
}

.menu-section:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* GRID */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* CARDS */
.menu-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    /* Conserver une largeur max pour la compatibilité */
    max-width: 100%;
    max-height: 500px;
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* CONTENT - Réajout pour compatibilité modale */
.menu-item-content {
    text-align: center;
}

/* TITLE */
.menu-item-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #2c2c2c;
    margin: 20px 0 12px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* IMAGE CONTAINER */
.menu-item-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px; /* Espacement après l'image */
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.menu-item:hover img {
    transform: scale(1.08);
}

/* DESCRIPTION */
.menu-item-description {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }
    
    .menu-section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .menu-item {
        padding: 20px;
    }
    
    .menu-item-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-item-image {
        height: 160px;
    }
}

/* ========== MODALE ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    backdrop-filter: blur(5px); /* Effet de flou moderne */
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    margin: 5% auto;
    padding: 30px;
    border-radius: 18px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: zoomIn 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes zoomIn {
    0% { 
        transform: scale(0.8);
        opacity: 0;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* ========== RESPONSIVE MODALE ========== */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 98%;
        border-radius: 12px;
    }
    
    .close-btn {
        font-size: 1.8rem;
        width: 30px;
        height: 30px;
    }
}
/* ========== GALLERY SECTION ========== */
.gallery-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    padding: 40px 0;
    display: flex;
    justify-content: center; /* centre horizontalement */
    /*align-items: center;     !* centre verticalement *!*/
    /*height: 100vh;*/
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: #f9f9f9;
    max-width: 600px;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.carousel-item img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.carousel-caption {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: #333;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 12, 100, 0.85);
    color: white;
    border: none;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-btn:hover {
    background: rgba(6, 12, 100, 1);
    transform: translateY(-50%) scale(1.1);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    padding: 40px 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image {
    width: 400px;
    min-height: 500px;
    background-size: cover;
    position: relative;
    background-position: center center;
}

.about-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.about-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #2c3e50;
}

.about-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 20px;
    color: #060C64;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #555;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    padding: 40px 0;
}
/* ========== ABOUT & CONTACT ========== */
#about, #contact {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 0 40px 0;
    padding: 40px;
}

.section-content {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    /*gap: 30px;*/
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #555;
    line-height: 1;
    text-align: center;
}

.hover-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: #4169E1;
    text-decoration: underline;
    font-weight: bold;
}



/* ========== FOOTER ========== */
footer {
    width: 100%;
    margin: 0;
    padding: 40px 20px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #060C64, #1A1F71);
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column img,
.footer-logo {
    max-width: 120px;
    margin-bottom: 15px;
    filter: none;
}

.footer-column h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    border-left: 4px solid #4169E1;
    padding-left: 10px;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.footer-column p,
.footer-column a {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #4169E1;
    text-decoration: underline;
    font-weight: bold;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.social-icons img.social-logo {
    width: 35px;
    height: auto;
    border-radius: 8px;
}

.social-icons a:hover img.social-logo {
    transform: scale(1.2);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #CCCCCC;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 2px 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .carousel-wrapper {
        max-width: 500px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation mobile */
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 20px;
        background: rgba(6, 12, 100, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 20px;
        z-index: 1000;
        align-items: center;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.4s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .burger {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-list li a {
        font-size: 18px;
        padding: 10px 25px;
    }

    .language-switcher {
        margin-top: 15px;
        margin-left: 0;
        justify-content: center;
    }

    /* Hero banner */
    .hero-banner {
        height: 60vh;
        min-height: 400px;
        padding-top: 80px;
    }

    /* Sections */
    section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .menu-section,
    .gallery-section,
    .about-section,
    .contact-section {
        padding: 30px 0;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-item {
        padding: 15px;
    }

    /* Gallery */
    .carousel-wrapper {
        max-width: 400px;
        margin: 0 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* About section */
    .about-block {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        min-height: 250px;
        width: 100%;
    }

    .about-content {
        padding: 25px;
    }

    /* Contact */
    .contact-content {
        gap: 20px;
    }

    .map-container iframe {
        height: 300px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px 15px;
        gap: 20px;
    }

    .footer-column {
        min-width: 100%;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Header */
    .header-container {
        padding: 2px 10px;
    }

    .logo img {
        height: 50px;
    }

    /* Hero banner */
    .hero-banner {
        height: 50vh;
        min-height: 350px;
        padding-top: 70px;
    }

    .banner-content {
        padding: 0 10px;
    }

    /* Sections */
    section {
        padding: 30px 0;
        margin-bottom: 20px;
    }

    .menu-section,
    .gallery-section,
    .about-section,
    .contact-section {
        padding: 25px 0;
    }

    /* Menu */
    .menu-item {
        padding: 12px;
    }

    /* Gallery */
    .carousel-wrapper {
        max-width: 320px;
        margin: 0 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .carousel-item {
        padding: 15px;
    }

    .carousel-item img {
        max-height: 250px;
    }

    /* About */
    .about-image {
        min-height: 200px;
    }

    .about-content {
        padding: 20px;
    }

    /* Contact */
    .map-container iframe {
        height: 250px;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .close-btn {
        font-size: 2rem;
        right: 15px;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .hero-banner {
        min-height: 300px;
    }

    .carousel-wrapper {
        max-width: 280px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .carousel-item img {
        max-height: 200px;
    }

    .about-content,
    .menu-item {
        padding: 15px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        height: 80vh;
        min-height: 300px;
    }

    .carousel-wrapper {
        max-width: 500px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    #site-header,
    .carousel-btn,
    .burger {
        display: none !important;
    }

    .hero-banner {
        height: auto;
        padding: 20px;
        background: #f0f0f0 !important;
        color: #333 !important;
    }

    section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Focus styles for accessibility */
.menu-item:focus,
.carousel-btn:focus,
.nav-list li a:focus,
.hover-link:focus {
    outline: 2px solid #4169E1;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel {
        transition: none;
    }
}

