/* Variables de couleurs - Thème Clair (Défaut) */
:root {
    --primary-color: #1a6d96;
    --primary-hover: #124d6c;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-light: #fefefe;
    --bg-gray: #f9f9f9;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.4s ease;
}

/* Thème Sombre */
[data-theme="dark"] {
    --text-dark: #f5f5f5;
    --text-muted: #a0a0a0;
    --bg-light: #121212;
    --bg-gray: #1a1a1a;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Reset & Typographie */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--text-dark); transition: color 0.4s ease; }

/* Utilitaires */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.separator-center { width: 50px; height: 3px; background-color: var(--primary-color); margin: 20px auto 40px auto; }

/* Navigation & Logo Animé */
header {
    position: fixed; top: 0; width: 100%;
    background: var(--bg-light);
    padding: 15px 50px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background-color 0.4s ease;
}
.logo-anime a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-anime .roue { height: 55px; width: auto; transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.logo-anime .texte { height: 40px; width: auto; filter: drop-shadow(0px 0px 1px rgba(255,255,255,0.1)); }
[data-theme="dark"] .logo-anime .texte { filter: invert(1); } /* Inverse la couleur du logo texte en mode sombre si c'est une image noire */

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.menu-toggle .bar { width: 30px; height: 3px; background-color: var(--text-dark); transition: all 0.3s ease; border-radius: 3px; }

nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }
nav a { text-decoration: none; color: var(--text-dark); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
nav a:hover, nav a.active { color: var(--primary-color); }

/* Bouton Dark Mode */
.theme-toggle {
    background: none; border: none; cursor: pointer; color: var(--text-dark);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); margin-left: 20px;
}
.theme-toggle:hover { color: var(--primary-color); transform: scale(1.1); }
.theme-toggle svg { width: 22px; height: 22px; }

/* Bannières d'en-tête (Parallaxe) */
.page-header { padding: 180px 20px 80px; text-align: center; color: var(--text-light); background-attachment: fixed !important; background-position: center !important; background-size: cover !important; }
.page-header h2 { color: var(--text-light); font-size: 3rem; margin-bottom: 10px; }
.page-header p { color: #dddddd; }

/* NOUVEAU : Hero Section Vidéo (Cinemagraph) */
.hero { 
    height: 100vh; position: relative; display: flex; justify-content: center; 
    align-items: center; text-align: center; overflow: hidden; 
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--text-light); }
.hero-content h1 { font-size: 5rem; letter-spacing: 3px; margin-bottom: 10px; color: var(--text-light); }
.hero-content .subtitle { font-size: 1.2rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 40px; text-transform: uppercase; }

/* NOUVEAU : Animation au défilement (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Boutons & Boutons Magnétiques */
.btn { 
    display: inline-block; padding: 14px 35px; border-radius: 3px; text-decoration: none; 
    text-transform: uppercase; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; 
    cursor: pointer; border: none;
    /* La transition de transform est plus rapide pour l'effet magnétique, le reste est classique */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.btn-outline { border: 2px solid var(--text-light); color: var(--text-light); background: transparent; }
.btn-outline:hover { background-color: var(--text-light); color: var(--bg-light); border-color: var(--text-light); }
.btn-solid { background-color: var(--primary-color); color: #ffffff; border: 2px solid var(--primary-color); }
.btn-solid:hover { background-color: transparent; color: var(--primary-color); }
[data-theme="dark"] .btn-solid:hover { color: var(--primary-color); background: rgba(26, 109, 150, 0.1); }

/* Accueil */
.about-teaser { padding: 100px 0; }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--card-shadow); transition: var(--transition); }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

/* DESIGN CLASSIQUE : Catégories Portfolio (Accueil) bord à bord - 6 colonnes */
.portfolio-teaser { padding: 0 0 100px 0; }
.gallery-teaser-grid { display: grid; grid-template-columns: repeat(6, 1fr); height: 400px; width: 100%; }
.gallery-item { position: relative; background-size: cover; background-position: center; overflow: hidden; cursor: pointer; text-decoration: none; }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 109, 150, 0); display: flex; justify-content: center; align-items: center; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { background: rgba(26, 109, 150, 0.85); }
.gallery-overlay span { color: white; font-family: 'Playfair Display', serif; font-size: 1.5rem; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

/* Portfolio : Filtres, Grille & Pagination */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.filter-btn { background: none; border: 1px solid rgba(255,255,255,0.6); padding: 8px 20px; color: var(--text-light); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; border-radius: 3px; }
.filter-btn:hover, .filter-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; max-width: 1400px; margin: 0 auto; padding: 60px 20px 40px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 4px; height: 300px; transition: opacity 0.4s ease; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.05); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 80px; flex-wrap: wrap; }
.page-btn { background: var(--bg-light); border: 1px solid var(--text-muted); padding: 8px 16px; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; }
.page-btn:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.page-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Lightbox Ambilight & Bandeau EXIF */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; overflow: hidden; }
#lightbox-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background-size: cover; background-position: center; filter: blur(70px) brightness(0.6); z-index: 0; transition: background-image 0.4s ease; }
.lightbox-content { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 5px 40px rgba(0,0,0,0.8); user-select: none; position: relative; z-index: 2001; object-fit: contain; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 50px; font-weight: 300; cursor: pointer; transition: 0.3s; z-index: 2002; }
.close-lightbox:hover { color: var(--primary-color); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.8); font-size: 60px; font-weight: 300; cursor: pointer; transition: 0.3s; padding: 20px; z-index: 2002; user-select: none; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-nav:hover { color: var(--primary-color); text-shadow: 0 0 10px rgba(0,0,0,0.5); }

.lightbox-exif {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65); color: #ddd; padding: 8px 25px;
    border-radius: 30px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    letter-spacing: 1px; z-index: 2005; backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; white-space: nowrap;
}
.lightbox-exif.show { opacity: 1; }

/* Prestations & Contact */
.detailed-services { background-color: var(--bg-light); padding-bottom: 60px; transition: var(--transition); }
.service-row { display: flex; align-items: center; gap: 80px; padding: 80px 0; border-bottom: 1px solid var(--bg-gray); }
.service-row:last-child { border-bottom: none; }
.service-row.reverse { flex-direction: row-reverse; }
.service-image { flex: 1; position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); height: 500px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.service-row:hover .service-image img { transform: scale(1.03); }
.service-content { flex: 1; }
.service-content .price { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--primary-color); margin-bottom: 25px; font-weight: 600; font-style: italic; }
.service-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.service-features { list-style: none; margin-bottom: 35px; }
.service-features li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 500; color: var(--text-dark); }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; font-size: 1.2rem; }

.gift-card-section { background-image: linear-gradient(rgba(26, 109, 150, 0.9), rgba(26, 109, 150, 0.9)), url('bg-carte-cadeau.jpg'); background-size: cover; background-position: center; background-attachment: fixed; color: var(--text-light); padding: 100px 20px; text-align: center; margin-bottom: 80px; }
.gift-card-box { max-width: 800px; margin: 0 auto; }
.gift-card-box h2 { font-size: 3rem; margin-bottom: 20px; color: var(--text-light); }
.gift-card-box p { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; color: #f0f0f0; }

.process-section { background-color: var(--bg-gray); padding: 80px 0 100px; transition: var(--transition); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.process-step { text-align: center; padding: 30px; }
.step-number { width: 60px; height: 60px; background-color: var(--primary-color); color: white; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

.pricing-section { background-color: var(--bg-gray); transition: var(--transition); } 
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 80px; position: relative; z-index: 10; }
.pricing-card { background: var(--bg-light); padding: 40px 30px; border-radius: 8px; box-shadow: var(--card-shadow); text-align: center; transition: var(--transition); }
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card h3 { font-size: 1.8rem; margin-bottom: 25px; }
.pricing-card ul { list-style: none; margin-bottom: 30px; color: var(--text-muted); }
.pricing-card ul li { margin-bottom: 10px; border-bottom: 1px solid var(--text-muted); padding-bottom: 10px; border-opacity: 0.2; }
.pricing-card ul li:last-child { border-bottom: none; }
[data-theme="dark"] .pricing-card ul li { border-color: #333; }

.contact-section { background-color: var(--bg-gray); transition: var(--transition); } 
.contact-wrapper { max-width: 700px; margin: -40px auto 80px auto; background: var(--bg-light); padding: 40px; box-shadow: var(--card-shadow); border-radius: 8px; position: relative; z-index: 10; transition: var(--transition); }
.contact-intro { text-align: center; margin-bottom: 30px; color: var(--text-muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: border-color 0.3s; background: var(--bg-light); color: var(--text-dark); }
[data-theme="dark"] .form-control { border-color: #444; }
.form-control:focus { outline: none; border-color: var(--primary-color); }
textarea.form-control { resize: vertical; height: 150px; }
.dynamic-field { display: none; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.legal-content { max-width: 800px; margin: 60px auto 100px auto; padding: 0 20px; }
.legal-content h3 { color: var(--primary-color); margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; }
.legal-content p { margin-bottom: 15px; color: var(--text-muted); }

/* --- Réseaux Sociaux Footer --- */
.footer-social { display: flex; justify-content: center; gap: 35px; margin-bottom: 25px; }
.social-link { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #999; text-decoration: none; transition: var(--transition); }
.social-link svg { transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease; }
.social-link:hover { color: var(--primary-color) !important; text-decoration: none !important; }
.social-link:hover svg { transform: scale(1.2) translateY(-5px); }
.social-link span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* Bouton Retour en Haut */
#backToTop {
    position: fixed; bottom: 40px; right: 40px; z-index: 1000;
    background-color: var(--primary-color); color: white;
    border: none; border-radius: 50%; width: 50px; height: 50px;
    font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease; opacity: 0; visibility: hidden; transform: translateY(20px);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background-color: var(--primary-hover); transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Footer */
footer { background-color: #0a0a0a; color: #777; text-align: center; padding: 40px 20px; font-size: 0.85rem; margin-top: auto; }
footer a { color: #999; text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--text-light); text-decoration: underline; }

/* Responsive Mobile (Pixel 9 & co) */
@media (max-width: 900px) {
    .grid-2-cols, .pricing-grid, .process-grid { grid-template-columns: 1fr; }
    
    /* Retour aux catégories pleine largeur sur mobile */
    .gallery-teaser-grid { grid-template-columns: repeat(2, 1fr); height: 900px; }
    
    .service-row, .service-row.reverse { flex-direction: column; gap: 40px; padding: 50px 0; text-align: center; }
    .service-image { width: 100%; height: 350px; }
    .service-features li { padding-left: 0; }
    .service-features li::before { display: none; }
    .process-grid { gap: 20px; margin-top: 30px; }
    .gift-card-box h2 { font-size: 2.2rem; }
    
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 30px 10px 40px; }
    .pagination { margin-bottom: 60px; }
    .page-btn { padding: 8px 12px; font-size: 0.85rem; }
    
    .lightbox-content { max-width: 100vw; max-height: 75vh; }
    .lightbox-nav { font-size: 45px; padding: 10px; }
    .lightbox-exif { bottom: 20px; font-size: 0.75rem; padding: 6px 15px; }
    
    header { padding: 15px 20px; }
    .hero-content h1 { font-size: 3rem; }
    #backToTop { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 20px; }
    
    .menu-toggle { display: flex; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-light); box-shadow: 0 10px 15px rgba(0,0,0,0.05); max-height: 0; overflow: hidden; transition: max-height 0.4s ease, background-color 0.4s ease; }
    nav.active { max-height: 400px; }
    nav ul { flex-direction: column; gap: 20px; padding: 30px 0; align-items: center; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
