/* 
   Design System - Boulangerie du Centre
   Palette: Black & Gold
*/

:root {
    --bg-color: #0c0c0c;
    --text-color: #ffffff;
    --accent-gold: #d4af37;
    --accent-gold-light: #f9e27d;
    --card-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: 700;
}

/* Base Layout */
section {
    padding: 100px 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
nav {
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.hero-content .btn-gold {
    pointer-events: all;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 3s infinite linear;
    background-size: 200% auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-weight: 300;
}

.btn-gold {
    padding: 15px 40px;
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    line-height: 1.4;
    text-align: center;
}

/* Cadre décoratif (angles décalés) */
.btn-gold::before,
.btn-gold::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border: 1px solid var(--accent-gold);
    transition: var(--transition);
}

.btn-gold::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-gold::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: var(--bg-color);
}

.btn-gold:hover::before,
.btn-gold:hover::after {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Grille symétrique 2x2 */
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 450px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    color: #fff;
    margin-bottom: 5px;
}

/* Expertise Section */
.expertise {
    background: var(--card-bg);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.expertise-card {
    padding: 40px;
    border-top: 2px solid var(--accent-gold);
    background: rgba(255, 255, 255, 0.02);
}

.expertise-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Contact & Info */
.info-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-item span {
    color: var(--accent-gold);
    margin-right: 15px;
    font-weight: bold;
}

/* Contact - Map Integration */
.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
    transform: scale(1); /* Retour à la vue large par défaut */
}

.map-container:hover .map-image {
    transform: scale(1.6); /* Zoom intense uniquement au survol */
    filter: brightness(1);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-left: 3px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}
@keyframes goldShine {
    to { background-position: 200% center; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    nav { padding: 15px 5%; }
    .nav-links { display: none; }
    section { padding: 60px 5%; }
    
    .btn-gold {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}
