/*
Theme Name: Le Margo
Theme URI: https://lemargo.fr
Author: Le Margo Team
Author URI: https://lemargo.fr
Description: Style inspiré de Chéri Bibi Biarritz - galerie photo minimaliste avec grain
Version: 2.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: le-margo
Tags: restaurant, gallery, minimal, eymet, photo
*/

/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
    --color-black: #1a1a1a;
    --color-white: #fefefe;
    --color-beige: #f4f1eb;
    --color-beige-dark: #e8e3d9;
    --color-cream: #f9f6f1;
    --color-warm-gray: #8b8680;
    --color-dark-brown: #2d2824;
    --color-primary: #1a1a1a;
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.2s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grain global pour donner de l'âme */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,0,0,0.01) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.008) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.005) 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px, 8px 8px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-primary);
    background-color: var(--color-beige);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
    position: relative;
}

/* Header ultra-simple */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(244, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(139, 134, 128, 0.1);
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.main-navigation a:hover {
    opacity: 0.6;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-beige);
        padding: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Galerie style Chéri Bibi */
.photo-gallery {
    padding: 20px;
    background: var(--color-beige);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Différentes tailles d'images comme Chéri Bibi */
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(7) { grid-row: span 2; }
.gallery-item:nth-child(10) { grid-column: span 2; }
.gallery-item:nth-child(13) { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    transition: transform 0.1s ease-out;
}

/* L'effet de zoom est maintenant géré par JavaScript */

/* Cartes avec couleurs chaleureuses */
.info-card {
    background: var(--color-cream);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    min-height: 150px;
    position: relative;
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.contact-card {
    background: var(--color-beige-dark);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    min-height: 150px;
    position: relative;
    border: 1px solid rgba(26, 26, 26, 0.1);
}

/* Grain subtil sur les cartes */
.info-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0,0,0,0.015) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.01) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    pointer-events: none;
    z-index: 0;
}

.info-content, .contact-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.info-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.info-content p {
    font-size: 13px;
    margin: 8px 0;
    opacity: 0.8;
    line-height: 1.4;
    color: var(--color-primary);
    display: block;
    width: 100%;
}

.contact-content p {
    font-size: 13px;
    margin: 8px 0;
    opacity: 0.8;
    line-height: 1.4;
    color: var(--color-primary);
    display: block;
    width: 100%;
}

.contact-content a {
    display: block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    transition: all 0.2s ease;
    font-weight: 400;
    letter-spacing: 0.5px;
    width: 100%;
}

.contact-content a:hover {
    opacity: 0.6;
    border-bottom-color: rgba(26, 26, 26, 0.6);
}

/* Footer avec couleurs améliorées */
.site-footer {
    background: var(--color-beige-dark);
    color: var(--color-primary);
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

/* Grain subtil sur le footer - plus discret */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(0,0,0,0.01) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.008) 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-info h3 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.footer-info p, .footer-hours, .footer-contact p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
    color: var(--color-primary);
}

.footer-contact a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.footer-links a {
    font-size: 12px;
    color: rgba(26, 26, 26, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .photo-gallery {
        padding: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    
    /* Reset des spans sur mobile */
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 1; }
    .gallery-item:nth-child(7) { grid-row: span 1; }
    .gallery-item:nth-child(10) { grid-column: span 1; }
    .gallery-item:nth-child(13) { grid-row: span 1; }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Suppression des styles WordPress par défaut */
.site-main {
    margin-top: 0;
}

/* Utilitaires */
.text-center { text-align: center; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
} 