/* ----------  DARK THEME  ---------- */
:root {
    --bg-dark       : #1e1e1e;
    --bg-card       : #2a2a2a;
    --text-primary  : #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-1      : #c084fc;
    --accent-2      : #15faaf;
    --accent-3      : #34d399;
    --border        : #444;
    --shadow        : rgba(0,0,0,.45);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Georgia',serif; background:var(--bg-dark); color:var(--text-primary); line-height:1.6; overflow-x:hidden; }
a {color:white;}

/* ---------- NAV ---------- */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(30,30,30,.85); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    padding: 1rem 0; 
    transition: .3s; 
}

.navbar.scrolled { 
    background: rgba(30,30,30,.95); 
}

.nav-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 2rem; 
    position: relative;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: var(--accent-1); 
    text-decoration: none; 
    z-index: 1002;
    position: relative;
}

.nav-menu { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.nav-link { 
    color: var(--text-primary); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color .3s; 
}

.nav-link:hover { 
    color: var(--accent-2); 
}

.hamburger { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.hamburger span { 
    width: 100%; 
    height: 3px; 
    background: var(--accent-1); 
    transition: all .3s ease;
    transform-origin: center;
}

/* Animation hamburger vers X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ---------- HERO ---------- */
.hero { height:100vh; background:linear-gradient(135deg,#232323,#1e1e1e); display:flex; align-items:center; justify-content:center; text-align:center; padding:0 1rem; }
.hero h1 { font-size:3.5rem; margin-bottom:1rem; color:var(--accent-1); animation:fadeInUp 1s; }
.hero .subtitle { font-size:1.3rem; color:var(--text-secondary); margin-bottom:2rem; animation:fadeInUp 1s .3s both; }
.cta-buttons { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; animation:fadeInUp 1s .6s both; }
.cta-button { padding:15px 30px; border-radius:50px; font-size:1.1rem; cursor:pointer; text-decoration:none; transition:.3s; }
.cta-primary { background:var(--accent-1); color:#fff; }
.cta-primary:hover { background:var(--accent-2); transform:translateY(-2px); }
.cta-secondary { background:transparent; color:var(--accent-3); border:2px solid var(--accent-3); }
.cta-secondary:hover { background:var(--accent-3); color:#fff; transform:translateY(-2px); }

/* ---------- SECTION ---------- */
.section { padding:5% 0; }
.container { max-width:1200px; margin:auto; padding:0 2rem; }
.section-title { text-align:center; font-size:2.5rem; color:var(--accent-1); margin-bottom:3rem; position:relative; }
.section-title::after { content:''; position:absolute; left:50%; bottom:-10px; transform:translateX(-50%); width:60px; height:3px; background:var(--accent-2); }

/* ---------- ABOUT ---------- */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.about-text { font-size:1.1rem; color:var(--text-secondary); text-align:justify; }
.highlight { color:var(--accent-2); font-weight:600; }
.image-placeholder { width:100%; height:400px; background:linear-gradient(135deg,var(--accent-1),var(--accent-2)); border-radius:20px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.2rem; text-align:center; box-shadow:0 20px 40px var(--shadow); }
.image-placeholder img { width:95%; height:95%; object-fit:contain; border-radius: 20px;}

/* ---------- GALERIE NAVIGATION ---------- */
.gallery-navigation {
    margin-bottom: 3rem;
    position: relative;
}

/* Menu hamburger pour les catégories (mobile uniquement) */
.gallery-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.gallery-hamburger:hover {
    background: rgba(192, 132, 252, 0.1);
}

.gallery-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-1);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.gallery-hamburger-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Animation du hamburger des catégories */
.gallery-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gallery-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.gallery-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tabs Desktop */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid var(--accent-1);
    background: transparent;
    color: var(--accent-1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: inherit;
}

.tab-button.active,
.tab-button:hover {
    background: var(--accent-1);
    color: #fff;
}

.tab-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Accordéon Mobile */
.gallery-accordion {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 99;
}

.gallery-accordion.active {
    max-height: 400px;
    opacity: 1;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(192, 132, 252, 0.1);
}

.accordion-item.active .accordion-header {
    background: var(--accent-1);
    color: white;
}

.accordion-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Contenu des galeries */
.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.gallery-header h3 {
    color: var(--accent-1);
    font-size: 1.8rem;
    margin: 0;
}

.gallery-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Grille de galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.gallery-picture {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem;
    border-radius: 20px;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.gallery-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.view-btn {
    background: var(--accent-1);
    color: white;
}

.view-btn:hover {
    background: var(--accent-2);
}

.share-btn {
    background: var(--accent-3);
    color: white;
}

.share-btn:hover {
    background: var(--accent-2);
}

/* Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-1);
    background: transparent;
    color: var(--accent-1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-1);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- LIGHTBOX MODERNE ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease; /* Ajouter cette ligne */
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    max-height: 95vh;
}

/* Header avec contrôles */
.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
}

.lightbox-info h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.lightbox-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lightbox-controls {
    display: flex;
    gap: 0.5rem;
}

.lightbox-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-btn {
    background: rgba(255, 0, 0, 0.3);
    font-size: 1.8rem;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* Contenu principal */
.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

#lightbox-picture {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

#lightbox-img {
    max-width: calc(95vw - 4rem);
    max-height: calc(95vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: grab;
    display: block;
}

#lightbox-img.dragging {
    cursor: grabbing;
}

#lightbox-img.zoomed {
    cursor: zoom-out;
}

/* Boutons de navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-prev {
    left: 2rem;
}

.nav-next {
    right: 2rem;
}

/* Indicateur de chargement */
.lightbox-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Footer avec contrôles */
.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    gap: 1rem;
}

.lightbox-zoom-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#zoom-level {
    color: white;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

/* Miniatures */
.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    max-width: 50%;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 2px;
}

.thumbnail-item {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--accent-1);
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay de partage */
.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.share-overlay.active {
    display: flex;
}

.share-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.share-container h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.pinterest {
    background: #bd081c;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

.share-btn.copy {
    background: var(--accent-1);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Messages de partage */
.share-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 4000;
    animation: slideInRight 0.3s ease;
}

.share-message.success {
    background: #4caf50;
}

.share-message.error {
    background: #f44336;
}

/* Popup de partage rapide */
.quick-share-popup {
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow);
    animation: scaleIn 0.2s ease;
}

.share-buttons-mini {
    display: flex;
    gap: 0.5rem;
}

.share-mini-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-mini-btn:hover {
    transform: scale(1.1);
}

/* Utilitaires responsive pour la galerie */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ---------- VIDEO ---------- */
video { width:95%; height:95%; object-fit:contain; margin: 10px;}

/* ---------- SERVICES ---------- */
.services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; }
.service-card { background:var(--bg-card); padding:2rem; border-radius:15px; text-align:center; box-shadow:0 10px 30px var(--shadow); transition:.3s; position:relative; overflow:hidden; }
.service-card::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:3px; background:linear-gradient(90deg,var(--accent-1),var(--accent-2)); transition:.3s; }
.service-card:hover::before { left:0; }
.service-card:hover { transform:translateY(-5px); }
.service-icon { width:80px; height:80px; background:linear-gradient(135deg,var(--accent-1),var(--accent-2)); border-radius:50%; margin:0 auto 1.5rem; display:flex; align-items:center; justify-content:center; font-size:2rem; color:#fff; }
.service-price { background:var(--accent-2); color:#fff; padding:.5rem 1rem; border-radius:20px; font-weight:600; display:inline-block; margin-top:1rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-slider { max-width:800px; margin:3rem auto 0; position:relative; }
.testimonial { background:var(--bg-card); padding:2.5rem; border-radius:15px; box-shadow:0 15px 35px var(--shadow); text-align:center; display:none; }
.testimonial.active { display:block; animation:fadeInUp .5s; }
.testimonial-text { font-size:1.2rem; font-style:italic; color:var(--text-secondary); margin-bottom:2rem; line-height:1.8; }
.testimonial-author { display:flex; align-items:center; justify-content:center; gap:1rem; }
.author-avatar { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,var(--accent-1),var(--accent-2)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1.2rem; }
.testimonial-nav { display:flex; justify-content:center; gap:.5rem; margin-top:2rem; }
.testimonial-dot { width:12px; height:12px; border-radius:50%; background:var(--border); cursor:pointer; transition:.3s; }
.testimonial-dot.active { background:var(--accent-1); }

/* ---------- CONTACT ---------- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-icon { font-size: 1.5rem; margin-right: 1rem; }
.social-links { margin-top: 2rem; }
.social-links h4 { margin-bottom: 1rem; color: var(--text-primary); }
.social-buttons { display: flex; gap: 1rem; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; }
.social-btn:hover { transform: scale(1.1); }
.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.pinterest { background: #bd081c; }
.contact-form { background:var(--bg-card); padding:2rem; border-radius:15px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display:block; margin-bottom:.5rem; color:var(--text-primary); font-weight:500; }
.form-group input,.form-group textarea,.form-group select { width:100%; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-dark); color:var(--text-primary); font-family:inherit; }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { outline:none; border-color:var(--accent-2); }
.submit-btn { width:100%; padding:15px; background:var(--accent-1); color:#fff; border:none; border-radius:8px; font-size:1.1rem; cursor:pointer; transition:.3s; position: relative; display: flex; align-items: center; justify-content: center; }
.submit-btn:hover { background:var(--accent-2); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-loading { display: none; align-items: center; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { background:var(--bg-card); color:var(--text-secondary); padding:3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { color: var(--text-primary); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--accent-2); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border); }
.siret { font-size:.9rem; opacity:.7; }

/* ---------- LIGHTBOX (Ancien style pour compatibilité) ---------- */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent-1);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2100;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s, background 0.3s;
}

.fullscreen-btn:hover {
    background: var(--accent-2);
    opacity: 1;
}

/* Plein écran image seule */
#image-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-fullscreen-container img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeIn { 
    from { opacity: 0; }
    to { opacity: 1; } 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---------- MESSAGE FORMULAIRE ---------- */
#formMessage {
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity .5s ease;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

#formMessage.success { 
    color: #4caf50; 
    background: rgba(76, 175, 80, 0.1);
    opacity: 1; 
}

#formMessage.error { 
    color: #f44336; 
    background: rgba(244, 67, 54, 0.1);
    opacity: 1; 
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    /* Hamburger et navigation mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-card);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        text-align: center;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
                   opacity 0.3s ease, 
                   visibility 0.3s ease;
        z-index: 1001;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 1.3rem;
        font-weight: 500;
        padding: 1.5rem 3rem;
        display: block;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s ease;
        min-width: 200px;
        color: var(--text-primary);
        background: transparent;
    }
    
    .nav-link:hover {
        background: var(--accent-1);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(192, 132, 252, 0.3);
    }
    
    /* Galerie responsive */
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    /* Menu hamburger des catégories mobile */
    .gallery-hamburger {
        display: flex;
    }
    
    .gallery-accordion {
        display: block;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        margin: 0 auto;
        max-width: 400px;
    }
    
    /* Lightbox responsive */
    .lightbox-header,
    .lightbox-footer {
        padding: 0.75rem 1rem;
    }
    
    .lightbox-thumbnails {
        max-width: 80%;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .nav-prev {
        left: 1rem;
    }
    
    .nav-next {
        right: 1rem;
    }
    
    /* Overlay de partage responsive */
    .share-container {
        padding: 1.5rem;
        width: 95%;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Autres éléments responsive */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
        min-width: 180px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        gap: 1rem;
    }
    
    .gallery-hamburger {
        padding: 0.75rem 1rem;
    }
    
    .gallery-hamburger-text {
        font-size: 0.8rem;
    }
    
    .lightbox-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lightbox-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lightbox-thumbnails {
        order: -1;
        max-width: 100%;
    }
}

/* Empêcher le scroll du body quand menu ouvert */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}