/* Reset et base - Version mise à jour */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Thème par défaut - Neutre */
    --primary-color: #1f2937;
    --secondary-color: #f3f4f6;
    --accent-color: #d1d5db;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --button-hover: #111827;
}

/* Thème Bleu */
[data-theme="blue"] {
    --primary-color: #1e40af;
    --secondary-color: #dbeafe;
    --accent-color: #3b82f6;
    --text-color: #1e3a8a;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --border-color: #bfdbfe;
    --button-hover: #1e3a8a;
}

/* Thème Vert */
[data-theme="green"] {
    --primary-color: #059669;
    --secondary-color: #d1fae5;
    --accent-color: #10b981;
    --text-color: #065f46;
    --background-color: #f0fdf4;
    --card-background: #ffffff;
    --border-color: #a7f3d0;
    --button-hover: #047857;
}

/* Thème Violet */
[data-theme="purple"] {
    --primary-color: #7c3aed;
    --secondary-color: #ede9fe;
    --accent-color: #8b5cf6;
    --text-color: #5b21b6;
    --background-color: #faf5ff;
    --card-background: #ffffff;
    --border-color: #c4b5fd;
    --button-hover: #6d28d9;
}

/* Thème Rouge */
[data-theme="red"] {
    --primary-color: #dc2626;
    --secondary-color: #fee2e2;
    --accent-color: #ef4444;
    --text-color: #991b1b;
    --background-color: #fef2f2;
    --card-background: #ffffff;
    --border-color: #fecaca;
    --button-hover: #b91c1c;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #F5F7F8;
    background-color: #031119;
    transition: all 0.3s ease;
    position: relative;
    overflow-x: hidden;
    /* overflow-y: auto; retiré pour permettre sticky de fonctionner */
}

/* Motif feuilles discret en arrière-plan global */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23A57147' stroke-opacity='0.7' stroke-width='1'%3E%3Cpath d='M65 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M65 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M180 80c0 110-60 170-120 220'/%3E%3Cpath d='M350 80c0 110-60 170-120 220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    background-repeat: repeat;
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

/* Header Luxe (toujours actif) */
body .header {
    background-color: rgba(3, 17, 25, 0.85);
    border-bottom: 1px solid rgba(165, 113, 71, 0.3);
    backdrop-filter: blur(12px);
}

/* Le logo ne doit pas être affecté par le backdrop-filter du header */
body .header .nav-logo {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
}

body .nav-brand {
    color: #F5F7F8;
}

body .nav-link {
    color: rgba(245, 247, 248, 0.9);
}

body .nav-link:hover {
    color: #A57147;
    opacity: 1;
}

body .theme-label {
    color: rgba(245, 247, 248, 0.9);
}

/* Bouton "Demander un devis" dans le header uniquement */
body .header .btn-primary {
    background: #A57147;
    color: #031119;
    border: 1px solid rgba(165, 113, 71, 0.65);
    font-weight: 700;
}

body .header .btn-primary:hover {
    background: #B8825A;
    filter: brightness(1.06);
}

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

/* Nouveau sélecteur de couleurs - Simple et propre */
.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.theme-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
}

.theme-indicator {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    background: linear-gradient(45deg, #059669, #10b981); /* Vert par défaut */
    display: block;
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    min-width: 180px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.theme-option {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: #333;
}

/* Couleurs des thèmes */
.theme-option[data-theme="neutral"] {
    background: linear-gradient(45deg, #1f2937, #6b7280);
}

.theme-option[data-theme="blue"] {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
}

.theme-option[data-theme="green"] {
    background: linear-gradient(45deg, #059669, #10b981);
}

.theme-option[data-theme="purple"] {
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
}

.theme-option[data-theme="red"] {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

/* Indicateur de thème */
.theme-indicator[data-theme="neutral"] {
    background: linear-gradient(45deg, #1f2937, #6b7280);
}

.theme-indicator[data-theme="blue"] {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
}

.theme-indicator[data-theme="green"] {
    background: linear-gradient(45deg, #059669, #10b981);
}

.theme-indicator[data-theme="purple"] {
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
}

.theme-indicator[data-theme="red"] {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

/* Navigation - Header sticky collé au viewport */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(8px);
    background-color: rgba(3, 17, 25, 0.85);
    border-bottom: 1px solid rgba(165, 113, 71, 0.3);
    margin-bottom: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--text-color);
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    text-decoration: none !important;
}

.nav-brand:hover .nav-brand-text,
.nav-brand:hover i {
    opacity: 0.7;
}

.nav-brand:hover .nav-logo {
    opacity: 1 !important;
    filter: none !important;
}

.nav-brand i {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-logo {
    height: 4rem;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    color-scheme: normal !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    image-rendering: auto !important;
    will-change: auto !important;
}

/* Masquer le texte si le logo est présent */
.nav-brand:has(img.nav-logo) .nav-brand-text {
    display: none !important;
}

/* Alternative pour les navigateurs qui ne supportent pas :has() */
.nav-brand img.nav-logo ~ .nav-brand-text {
    display: none !important;
}

/* Règle supplémentaire pour garantir le masquage */
.nav-brand img.nav-logo + .nav-brand-text {
    display: none !important;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
}

/* Sur mobile, forcer l'affichage de tous les liens quand le menu est actif */
@media (max-width: 768px) {
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
}

.btn-primary {
    background-color: #A57147;
    color: #031119;
    border: 1px solid rgba(165,113,71,0.65);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #B8825A;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #A57147;
    color: #031119;
    border: 1px solid rgba(165,113,71,0.65);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: #B8825A;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(165,113,71,0.65);
    color: #F5F7F8;
    background: transparent;
    font-weight: 700;
}

.btn-outline:hover {
    background: rgba(165,113,71,0.15);
    border-color: #A57147;
    color: #F5F7F8;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Hero Section - Style Prestations pour page d'accueil */
.hero-luxe {
    position: relative;
    min-height: 460px;
    display: grid;
    align-items: center;
    padding: 56px 20px;
    background:
        linear-gradient(180deg, rgba(3,17,25,0.75), rgba(3,17,25,0.95)),
        var(--hero-image, linear-gradient(135deg, #0b212c, #031119));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-luxe__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 360px at 65% 35%, rgba(165,113,71,0.12), transparent 60%),
        radial-gradient(900px 500px at 20% 80%, rgba(255,255,255,0.06), transparent 55%);
    pointer-events: none;
}

.hero-luxe__content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    color: #F5F7F8;
    z-index: 1;
}

.hero-luxe h1 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: 0.2px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #F5F7F8;
}

.hero-luxe p {
    max-width: 560px;
    opacity: 0.92;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 18px 0;
    color: #F5F7F8;
}

.hero-luxe__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Boutons luxe pour hero */
.hero-luxe__actions .lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(165,113,71,0.65);
    background: #A57147;
    color: #031119;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.hero-luxe__actions .lux-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.hero-luxe__actions .lux-btn--ghost {
    background: transparent;
    color: #F5F7F8;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.hero-luxe__actions .lux-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 1.875rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F5F7F8;
}

.portfolio-section,
.services-section,
.about-section,
.contact-section {
    padding: 3rem 0;
    background-color: #031119;
    position: relative;
}

.services-section {
    position: relative;
    background: #031119;
    overflow: hidden;
    border-top: none;
    border-bottom: none;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: -40px;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23A57147' stroke-opacity='0.7' stroke-width='1'%3E%3Cpath d='M65 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M65 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M180 80c0 110-60 170-120 220'/%3E%3Cpath d='M350 80c0 110-60 170-120 220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    background-repeat: repeat;
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-section .section-title {
    color: #F5F7F8;
}

.services-section .section-title {
    color: #F5F7F8;
}

.contact-section {
    background-color: rgba(11,33,44,0.6);
    border-top: 1px solid rgba(165,113,71,0.3);
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.portfolio-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.2)), repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 10px, #f3f4f6 10px, #f3f4f6 20px);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: rgba(245, 247, 248, 0.9);
    white-space: nowrap;
    transition: all 0.2s;
    background: rgba(11, 33, 44, 0.6);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #F5F7F8;
}

.filter-btn.active {
    background: #A57147;
    color: #031119;
    border-color: #A57147;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    margin-bottom: 2rem;
}

.portfolio-masonry {
    columns: 1;
    column-gap: 1rem;
    margin-bottom: 2rem;
}

/* Limiter à 2 rangées sur la page d'accueil */
.portfolio-section .portfolio-masonry {
    max-height: calc(2 * (300px + 1rem));
    overflow: hidden;
    position: relative;
}

.portfolio-section .portfolio-masonry::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--background-color));
    pointer-events: none;
    z-index: 1;
}

/* S'assurer que le bouton "Voir tout le portfolio" est visible */
.portfolio-section .text-center {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

.portfolio-item {
    /* break-inside et margin-bottom gérés par Grid (voir patch en bas) */
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(11, 33, 44, 0.78);
    border: 1px solid rgba(165, 113, 71, 0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portfolio-item::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(165, 113, 71, 0.22);
    pointer-events: none;
    z-index: 1;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: auto;
    background: rgba(11, 33, 44, 0.5);
}

/* Amélioration du rendu pendant le chargement */
.portfolio-image[loading="lazy"] {
    background: rgba(11, 33, 44, 0.3);
    min-height: 300px;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: end;
    pointer-events: none;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    color: #A57147;
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-zoom {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.portfolio-zoom:hover {
    background: white;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Grille services avec style luxe (comme page prestations) */
.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row; /* Remplir les lignes de gauche à droite */
    grid-auto-rows: auto; /* Hauteur automatique */
    gap: 22px;
    margin-top: 10px;
}

/* Si moins de 3 cartes : masquer toutes (il faut au minimum 3 pour une ligne) */
.services-section .services-grid .lux-card--home:only-child {
    display: none; /* 1 seule carte : masquer */
}

.services-section .services-grid .lux-card--home:nth-child(2):last-child {
    display: none; /* 2 cartes : masquer les 2 */
}

.services-section .services-grid .lux-card--home:nth-child(1):nth-last-child(2),
.services-section .services-grid .lux-card--home:nth-child(2):nth-last-child(1) {
    display: none; /* 2 cartes : masquer les 2 */
}

/* Si exactement 3 cartes : les mettre normalement (3 sur une ligne) */
.services-section .services-grid .lux-card--home:nth-child(3):last-child {
    /* Pas de modification, elles s'affichent normalement 3 sur une ligne */
}

/* Masquer les cartes qui ne forment pas une ligne complète de 3 */
/* Si 4 cartes : masquer la 4ème (1 seule sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(4):last-child {
    display: none;
}

/* Si 5 cartes : masquer les 4ème et 5ème (2 seules sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(4):nth-last-child(2),
.services-section .services-grid .lux-card--home:nth-child(5):last-child {
    display: none;
}

/* Si 7 cartes : masquer la 7ème (1 seule sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(7):last-child {
    display: none;
}

/* Si 8 cartes : masquer les 7ème et 8ème (2 seules sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(7):nth-last-child(2),
.services-section .services-grid .lux-card--home:nth-child(8):last-child {
    display: none;
}

/* Si 10 cartes : masquer la 10ème (1 seule sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(10):last-child {
    display: none;
}

/* Si 11 cartes : masquer les 10ème et 11ème (2 seules sur la dernière ligne) */
.services-section .services-grid .lux-card--home:nth-child(10):nth-last-child(2),
.services-section .services-grid .lux-card--home:nth-child(11):last-child {
    display: none;
}

@media (max-width: 1024px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .services-section .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(11,33,44,0.78);
    padding: 1.5rem;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid rgba(165,113,71,0.55);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(165,113,71,0.22);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.42);
    border-color: rgba(165,113,71,0.75);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F5F7F8;
}

.service-description {
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.service-price {
    font-weight: 800;
    margin-bottom: 1rem;
    color: #F4121B;
    font-size: 1.25rem;
    letter-spacing: 0.4px;
}

.service-options {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-option {
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.service-option-duration {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-option-details {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.service-option-photos {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 500;
}

.services-notes {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.service-note {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* About */
/* ABOUT: 50/50 layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 48px;
    align-items: center;
}

.about-image {
    overflow: hidden; /* utile avec border-radius */
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 4 / 5; /* pour un beau bloc portrait */
    max-height: 560px;
}

.about-description {
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9375rem, 2vw, 1rem);
    line-height: 1.6;
}

.about-description a {
    color: #A57147;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600;
}

.about-description a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.about-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-description {
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Labels accessibles mais cachés visuellement (pour l'autocomplétion) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.75rem;
    border: 1px solid rgba(165,113,71,0.4);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    background-color: rgba(11,33,44,0.6);
    color: #F5F7F8;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #A57147;
    box-shadow: 0 0 0 3px rgba(165,113,71,0.2);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-select option {
    padding: 0.5rem;
    background-color: var(--card-background);
    color: var(--text-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.client-card {
    background: rgba(11,33,44,0.78);
    padding: 1.5rem;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(165,113,71,0.55);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(165,113,71,0.22);
    pointer-events: none;
}

.client-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F5F7F8;
}

.client-description {
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.client-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.client-note {
    font-size: 0.75rem;
    color: rgba(245,247,248,0.7);
    opacity: 0.8;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert ul {
    margin-left: 1rem;
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 17, 25, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999999; /* très haut */
}

.lightbox.active {
    display: flex;
}

/* Image */
.lightbox #lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

/* Flèches */
.lightbox .lightbox-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer;
    padding: 0 !important;
    z-index: 1000000 !important; /* au-dessus de l'image */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.lightbox .lightbox-prev {
    left: 270px !important;
}

.lightbox .lightbox-next {
    right: 270px !important;
}

/* Positionnement des flèches sur mobile */
@media (max-width: 768px) {
    .lightbox .lightbox-prev {
        left: 1rem !important;
    }
    
    .lightbox .lightbox-next {
        right: 1rem !important;
    }
}

.lightbox .lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox .lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Bouton fermer */
.lightbox .lightbox-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 1000000 !important;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* Cache les flèches d'un slider éventuel derrière la lightbox */
.lightbox ~ .slick-arrow,
.lightbox ~ .swiper-button-next,
.lightbox ~ .swiper-button-prev {
    display: none !important;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(165,113,71,0.3);
    padding: 2.5rem 0;
    background-color: rgba(11,33,44,0.6);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(245,247,248,0.8);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(245,247,248,0.8);
    opacity: 0.9;
    text-decoration: none;
}

.footer-link:hover {
    color: #A57147;
    opacity: 1;
}

.footer-credit {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(165,113,71,0.3);
    text-align: center;
    font-size: 0.875rem;
    color: #FFFFFF;
    opacity: 1;
}

.footer-credit a {
    color: #A57147;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-credit a:hover {
    opacity: 0.8;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
}

/* Error page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-page p {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card,
.portfolio-item,
.about-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.animate-in,
.portfolio-item.animate-in,
.about-image.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation des images */
img {
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

img:not(.loaded) {
    opacity: 0;
}

/* Le logo ne doit pas être affecté par les règles générales sur les images */
.nav-logo {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
}

/* Hover effects améliorés */
.portfolio-item:hover {
    transform: translateY(-3px);
    border-color: rgba(165, 113, 71, 0.7);
    box-shadow: 0 22px 55px rgba(0,0,0,0.42);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    /* columns: 2; supprimé - remplacé par CSS Grid */
    
    /* Limiter à 2 rangées sur la page d'accueil (tablette) */
    .portfolio-section .portfolio-masonry {
        max-height: calc(2 * (300px + 1rem));
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .portfolio-masonry {
        columns: 3;
    }
    
    /* Limiter à 2 rangées sur la page d'accueil (desktop) */
    .portfolio-section .portfolio-masonry {
        max-height: calc(2 * (300px + 1rem));
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Contenu principal */
main {
    min-height: 100vh;
    /* Avec sticky, padding-top pas nécessaire car le header reste dans le flux */
    /* Mais on le garde au cas où on passe en fixed plus tard */
    padding-top: 0;
}

@media (max-width: 768px) {
    /* Header responsive - centré */
    .header {
        margin-bottom: 1rem;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-brand {
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Menu de navigation sur mobile - masquer */
    .nav-menu {
        display: none;
    }
    
    /* Masquer le bouton "Demander un devis" dans le header sur mobile */
    .nav .btn-primary {
        display: none;
    }
    
    /* Menu mobile - CSS minimal */
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Bouton burger - masqué par défaut */
    .burger {
        display: none !important;
    }
    
    /* Menu mobile - masqué par défaut */
    .mobile-menu {
        display: none !important;
    }
    
    /* Afficher uniquement sur mobile (max-width: 768px) */
    @media (max-width: 768px) {
        .burger {
            display: flex !important;
            align-items: center;
            justify-content: center;
            position: fixed !important;
            bottom: 1.5rem;
            right: 1.5rem;
            width: 56px;
            height: 56px;
            background: #A57147;
            border: 1px solid rgba(165, 113, 71, 0.65);
            border-radius: 50%;
            color: #031119;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 10000 !important; /* Au-dessus du header (9999) */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            margin: 0;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .burger:hover {
            background: #B8825A;
            transform: scale(1.05);
        }
        
        /* Menu mobile ouvert */
        .mobile-menu.open {
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(3, 17, 25, 0.98);
            backdrop-filter: blur(12px);
            border-top: 1px solid rgba(165, 113, 71, 0.3);
            padding: 2rem 1rem;
            z-index: 9999;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            height: auto;
            max-height: none;
            overflow: visible;
            overflow-y: auto;
        }
        
        /* Liens du menu mobile */
        .mobile-menu.open a {
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            text-align: center;
            color: #F5F7F8;
            font-weight: 500;
            text-decoration: none;
            background-color: rgba(165, 113, 71, 0.1);
            border: 1px solid rgba(165, 113, 71, 0.2);
            display: block;
            width: 100%;
            transition: background-color 0.2s;
            position: static !important;
        }
        
        .mobile-menu.open a:hover {
            background-color: rgba(165, 113, 71, 0.3);
            border-color: rgba(165, 113, 71, 0.4);
        }
    }
    
    /* About et Contact - une colonne sur mobile */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-image img {
        aspect-ratio: auto;
        max-height: none;
    }
    
    /* Masquer l'espace client sur mobile pour les pages d'accueil et de contact */
    .client-access {
        display: none !important;
    }
}

/* Classe pour masquer les éléments filtrés (au lieu de display:none + getComputedStyle) */
.is-hidden {
    display: none !important;
}

/* Masquer le menu mobile et le bouton burger au-dessus de 768px */
@media (min-width: 769px) {
    .burger {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu.open {
        display: none !important;
    }
    
    .theme-switcher {
        align-self: center;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .theme-label {
        font-size: 0.75rem;
    }
    
    .theme-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        min-width: 180px;
    }
    
    .btn-primary {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Portfolio responsive */
    .portfolio-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Services section responsive */
    .services-section {
        padding: 2rem 0;
    }
    
    .services-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cartes luxe responsive */
    .lux-card--home {
        padding: 1rem;
    }
    
    .lux-card--home .lux-card__title {
        font-size: 1.125rem;
    }
    
    .lux-card--home .lux-card__subtitle {
        font-size: 0.8125rem;
    }
    
    .lux-card--home .lux-price {
        font-size: 1.125rem;
    }
    
    .lux-btn--small,
    .lux-card--home .lux-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* Hero responsive */
    /* Hero responsive - page d'accueil uniquement */
    .hero-content {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .hero-title {
        font-size: 2rem;
        width: 100%;
    }
    
    .hero-subtitle {
        display: none; /* Masquer le sous-titre sur mobile */
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Formulaires responsive */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Footer responsive */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-credit {
        font-size: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    /* Page À propos responsive */
    .about-page .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .about-page {
        overflow-x: hidden;
    }
    
    .about-hero {
        height: 40vh;
        min-height: 250px;
        margin-bottom: 2rem;
        border-radius: 0.5rem;
    }
    
    .about-hero-title {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .about-hero-subtitle {
        font-size: 1rem;
    }
    
    .about-main {
        padding: 1.5rem 0;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .about-text {
        gap: 1.5rem !important;
    }
    
    .about-text * {
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .stat-item {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .about-services h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .service-tag {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
    
    .image-showcase-grid {
        height: 300px;
    }
    
    .about-cta {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
        margin-top: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .about-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: start;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Hero luxe responsive - page d'accueil style Prestations */
    .hero-luxe {
        min-height: 360px;
        padding: 42px 16px;
    }
    
    .hero-luxe h1 {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .hero-luxe p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .hero-luxe__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-luxe__actions .lux-btn {
        width: auto;
        min-width: auto;
        justify-content: center;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    .client-form {
        grid-template-columns: 1fr;
    }
}

/* Placeholder styles for missing images */
.portfolio-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21,15 16,10 5,21"/></svg>') center/50px no-repeat;
    opacity: 0.3;
}

.placeholder-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Page À propos créative */
.about-page {
    min-height: 100vh;
}

.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.about-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    font-weight: 300;
}

.about-main {
    padding: 2rem 0;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* S'assurer que le 50/50 fonctionne sur desktop */
@media (min-width: 769px) {
    .about-content-grid {
        grid-template-columns: 1fr 1fr !important;
        display: grid !important;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 900px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(11,33,44,0.78);
    border-radius: 22px;
    border: 1px solid rgba(165,113,71,0.55);
    transition: transform 0.2s ease;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #A57147;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
}

.about-services h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #F5F7F8;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tag {
    background: rgba(11,33,44,0.6);
    color: #A57147;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(165,113,71,0.4);
    transition: all 0.2s ease;
}

.service-tag:hover {
    background: rgba(165,113,71,0.2);
    color: #F5F7F8;
    border-color: #A57147;
    transform: translateY(-2px);
}

.about-image-showcase {
    display: flex;
    align-items: center;
}

/* S'assurer que la section est visible sur desktop */
@media (min-width: 769px) {
    .about-image-showcase {
        display: flex !important;
    }
}

.image-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    height: 400px;
}

.showcase-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.showcase-item.large {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

.showcase-item.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.showcase-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.showcase-content p {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.about-cta {
    background: rgba(11,33,44,0.78);
    border-radius: 22px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    border: 1px solid rgba(165,113,71,0.55);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(165,113,71,0.22);
    pointer-events: none;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #F5F7F8;
    position: relative;
    z-index: 1;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(245,247,248,0.85);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   SERVICES — LUXE BOTANIQUE
   Scope: body.page-services
   =========================== */

/* Supprimer le padding-top du main et le margin-bottom du header pour la page services */
body.page-services main {
    padding-top: 0;
}

body.page-services .header {
    margin-bottom: 0;
}

body.page-services .services-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    align-items: center;
    padding: 56px 20px;
    background:
        linear-gradient(180deg, rgba(3,17,25,0.75), rgba(3,17,25,0.95)),
        var(--hero-image, linear-gradient(135deg, #0b212c, #031119));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: 0;
}

.page-services .services-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 360px at 65% 35%, rgba(165,113,71,0.12), transparent 60%),
        radial-gradient(900px 500px at 20% 80%, rgba(255,255,255,0.06), transparent 55%);
    pointer-events: none;
}

.page-services .services-hero__content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    color: #F5F7F8;
    z-index: 1;
}

.page-services .services-hero h1 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: 0.2px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.page-services .services-hero p {
    max-width: 560px;
    opacity: 0.92;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.page-services .services-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-services .services-luxe {
    position: relative;
    padding: 42px 16px 60px;
    background: #031119;
    overflow: hidden;
}

/* Motif feuilles discret (SVG inline) */
.page-services .services-luxe::before {
    content: "";
    position: absolute;
    inset: -40px;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23A57147' stroke-opacity='0.7' stroke-width='1'%3E%3Cpath d='M65 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M65 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M180 80c0 110-60 170-120 220'/%3E%3Cpath d='M350 80c0 110-60 170-120 220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    background-repeat: repeat;
    filter: blur(0.2px);
    pointer-events: none;
}

/* Conteneur */
.page-services .services-luxe__inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Avatars cercles */
.page-services .lux-avatars {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: -36px;
    margin-bottom: 16px;
}

.page-services .lux-avatars img {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #A57147;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* Grille 2 colonnes */
.page-services .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 10px;
}

/* Carte luxe */
.page-services .lux-card {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    background: rgba(11,33,44,0.78);
    border: 1px solid rgba(165,113,71,0.55);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Ornemente léger (art déco) */
.page-services .lux-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(165,113,71,0.22);
    pointer-events: none;
}

.page-services .lux-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(220px 160px at 15% 12%, rgba(165,113,71,0.12), transparent 60%),
        radial-gradient(260px 190px at 85% 85%, rgba(165,113,71,0.10), transparent 65%);
    pointer-events: none;
}

.page-services .lux-card:hover {
    transform: translateY(-3px);
    border-color: rgba(165,113,71,0.75);
    box-shadow: 0 22px 55px rgba(0,0,0,0.42);
}

.page-services .lux-card__header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #F5F7F8;
    letter-spacing: 0.2px;
    font-weight: 600;
}

.page-services .lux-card__subtitle {
    margin: 0 0 14px 0;
    opacity: 0.85;
    color: #F5F7F8;
    font-size: 14px;
}

.page-services .lux-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.page-services .lux-line h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #F5F7F8;
}

.page-services .lux-price {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #F4121B;
    font-size: 20px;
}

.page-services .lux-list {
    margin: 10px 0 0 0;
    padding-left: 18px;
    color: rgba(245,247,248,0.92);
    line-height: 1.65;
    font-size: 14px;
    list-style: none;
}

.page-services .lux-list li {
    position: relative;
    padding-left: 20px;
}

.page-services .lux-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #A57147;
    font-weight: bold;
}

.page-services .lux-divider {
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(90deg, transparent, rgba(165,113,71,0.8), transparent);
}

.page-services .lux-card__footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.page-services .lux-card--wide {
    margin-top: 22px;
}

.page-services .lux-card__block--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-services .lux-card__footer--right {
    margin-top: 0;
}

.page-services .lux-muted {
    margin: 10px 0 0 0;
    color: rgba(245,247,248,0.85);
    font-size: 14px;
}

/* Boutons */
.page-services .lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(165,113,71,0.65);
    background: #A57147;
    color: #031119;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.page-services .lux-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.page-services .lux-btn:focus-visible {
    outline: 3px solid rgba(165,113,71,0.45);
    outline-offset: 3px;
}

.page-services .lux-btn--ghost {
    background: transparent;
    color: #F5F7F8;
    border-color: rgba(165,113,71,0.65);
}

.page-services .lux-btn--ghost:hover {
    background: rgba(165,113,71,0.15);
}

/* ===========================
   CARTES LUXE SUR PAGE D'ACCUEIL
   Même style que page prestations
   =========================== */
.lux-card--home {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    background: rgba(11,33,44,0.78);
    border: 1px solid rgba(165,113,71,0.55);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lux-card--home::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(165,113,71,0.22);
    pointer-events: none;
}

.lux-card--home::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(220px 160px at 15% 12%, rgba(165,113,71,0.12), transparent 60%),
        radial-gradient(260px 190px at 85% 85%, rgba(165,113,71,0.10), transparent 65%);
    pointer-events: none;
}

.lux-card--home:hover {
    transform: translateY(-3px);
    border-color: rgba(165,113,71,0.75);
    box-shadow: 0 22px 55px rgba(0,0,0,0.42);
}

.lux-card--home .lux-card__header h3,
.lux-card--home .lux-card__title {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #F5F7F8;
    letter-spacing: 0.2px;
    font-weight: 600;
}

.lux-card--home .lux-card__subtitle {
    margin: 0 0 14px 0;
    opacity: 0.85;
    color: #F5F7F8;
    font-size: 14px;
}

.lux-card--home .lux-card__block {
    margin-bottom: 0;
    margin-top: auto;
}

.lux-card--home .lux-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lux-card--home .lux-price {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #F4121B;
    font-size: 20px;
}

.lux-card--home {
    display: flex;
    flex-direction: column;
}

.lux-card--home .lux-card__footer {
    margin-top: 0;
    display: flex;
    justify-content: flex-start;
    padding-top: 12px;
}

.lux-btn--small,
.lux-card--home .lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(165,113,71,0.65);
    background: #A57147;
    color: #031119;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.lux-btn--small:hover,
.lux-card--home .lux-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.lux-btn--small:focus-visible,
.lux-card--home .lux-btn:focus-visible {
    outline: 3px solid rgba(165,113,71,0.45);
    outline-offset: 3px;
}

/* Notes */
.page-services .services-notes {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(165,113,71,0.25);
    color: rgba(245,247,248,0.78);
    font-size: 12.5px;
    line-height: 1.6;
}

.page-services .lux-footnote {
    color: #A57147;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 900px) {
    .page-services .services-grid {
        grid-template-columns: 1fr;
    }
    
    .page-services .services-hero {
        min-height: 360px;
    }
    
    .page-services .lux-card__block--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Respect réduction animations */
@media (prefers-reduced-motion: reduce) {
    .page-services .lux-card,
    .page-services .lux-btn {
        transition: none;
    }
}

/* ===========================
   PORTFOLIO — LUXE BOTANIQUE
   Scope: body.page-portfolio
   =========================== */

body.page-portfolio {
    background-color: #031119;
    color: #F5F7F8;
}

body.page-portfolio::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23A57147' stroke-opacity='0.7' stroke-width='1'%3E%3Cpath d='M65 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M65 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M180 80c0 110-60 170-120 220'/%3E%3Cpath d='M350 80c0 110-60 170-120 220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    background-repeat: repeat;
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 0;
}

body.page-portfolio main {
    position: relative;
    z-index: 1;
}

body.page-portfolio .portfolio-section {
    background-color: #031119;
    position: relative;
    padding: 42px 16px 60px;
}

body.page-portfolio .portfolio-section::before {
    content: "";
    position: absolute;
    inset: -40px;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23A57147' stroke-opacity='0.7' stroke-width='1'%3E%3Cpath d='M65 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 110c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M65 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M255 300c80-55 150-55 230 0-80 55-150 55-230 0Z'/%3E%3Cpath d='M180 80c0 110-60 170-120 220'/%3E%3Cpath d='M350 80c0 110-60 170-120 220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    background-repeat: repeat;
    filter: blur(0.2px);
    pointer-events: none;
}

body.page-portfolio .section-title {
    color: #F5F7F8;
}

body.page-portfolio .portfolio-item {
    background: rgba(11, 33, 44, 0.78);
    border: 1px solid rgba(165, 113, 71, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.page-portfolio .portfolio-item::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(165, 113, 71, 0.22);
    pointer-events: none;
    z-index: 1;
}

body.page-portfolio .portfolio-item:hover {
    transform: translateY(-3px);
    border-color: rgba(165, 113, 71, 0.7);
    box-shadow: 0 22px 55px rgba(0,0,0,0.42);
}

body.page-portfolio .portfolio-category {
    color: #A57147;
    font-weight: 600;
}

body.page-portfolio .portfolio-overlay {
    background: linear-gradient(to top, rgba(3, 17, 25, 0.95), transparent);
}

body.page-portfolio .lightbox {
    background: rgba(3, 17, 25, 0.95);
}

body.page-portfolio .lightbox-nav {
    border-color: rgba(165, 113, 71, 0.5);
    background: rgba(11, 33, 44, 0.8);
}

body.page-portfolio .lightbox-nav:hover {
    background: rgba(165, 113, 71, 0.3);
    border-color: #A57147;
}

body.page-portfolio .lightbox-close {
    color: #F5F7F8;
}

body.page-portfolio .lightbox-close:hover {
    color: #A57147;
}

body.page-portfolio .btn-outline {
    border: 1px solid rgba(165, 113, 71, 0.65);
    color: #F5F7F8;
    background: transparent;
    font-weight: 700;
}

body.page-portfolio .btn-outline:hover {
    background: rgba(165, 113, 71, 0.15);
    border-color: #A57147;
    color: #F5F7F8;
}

body.page-portfolio .portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.page-portfolio .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: rgba(245, 247, 248, 0.9);
    background: rgba(11, 33, 44, 0.6);
    transition: all 0.2s;
}

body.page-portfolio .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #F5F7F8;
}

body.page-portfolio .filter-btn.active {
    background: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

body.page-portfolio .portfolio-page {
    position: relative;
}

body.page-portfolio .container {
    position: relative;
    z-index: 1;
}

/* Footer credit - texte blanc, lien doré */
.footer-credit {
    color: #FFFFFF;
    opacity: 1;
}

.footer-credit a {
    color: #A57147;
}

/* ===========================
   PAGE MENTIONS LÉGALES
   =========================== */
.legal-page {
    padding: 3rem 0;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-content .section-title {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.legal-contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.legal-contact-list li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.7;
}

.legal-contact-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-contact-list li a:hover {
    text-decoration: underline;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content .section-title {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    /* Portfolio page responsive */
    body.page-portfolio .portfolio-section {
        padding: 2rem 1rem;
    }
    
    body.page-portfolio .portfolio-filters {
        gap: 0.5rem;
    }
    
    body.page-portfolio .filter-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Contact page responsive */
    .contact-form {
        padding: 1.5rem;
    }
    
    .client-card {
        padding: 1.5rem;
    }
    
    /* Cartes luxe page d'accueil responsive */
    .lux-card--home {
        padding: 1rem;
    }
    
    .lux-card--home .lux-card__title {
        font-size: 1.125rem;
    }
    
    .lux-card--home .lux-card__subtitle {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    .lux-card--home .lux-price {
        font-size: 1.125rem;
    }
    
    .lux-btn--small,
    .lux-card--home .lux-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
        width: 100%;
        justify-content: center;
    }
}

/* Masquer le bloc "about-image-showcase" sur mobile */
@media (max-width: 768px) {
  .about-main .about-image-showcase {
    display: none !important;
  }
}

/* =========================
   HEADER RESPONSIVE CLEAN
   ========================= */

/* Header */
.header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background-color: rgba(3, 17, 25, 0.85) !important;
  margin-bottom: 0 !important;
}

/* Ligne nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo responsive */
.nav-logo {
  height: clamp(42px, 6vw, 64px);
  width: auto;
  max-width: min(320px, 70vw); /* empêche de casser la mise en page */
}

/* Desktop: menu visible, burger caché */
@media (min-width: 769px) {
  .nav-menu { 
    display: flex !important; 
    gap: 2rem; 
  }
  .burger, .mobile-menu { 
    display: none !important; 
  }
}

/* Mobile: menu desktop + CTA cachés, burger affiché */
@media (max-width: 768px) {
  .nav {
    justify-content: center;
    padding: 12px 0;
  }

  /* Cache menu desktop + bouton devis dans le header */
  .nav-menu,
  .nav > .btn.btn-primary {
    display: none !important;
  }

  /* Centre le logo */
  .nav-brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Burger (bouton flottant) - au-dessus du header */
  .burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #A57147;
    border: 1px solid rgba(165, 113, 71, 0.65);
    color: #031119;
    font-size: 24px;
    z-index: 10000 !important; /* Au-dessus du header (9999) */
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    cursor: pointer;
  }

  /* Menu mobile (sheet en bas) */
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu.open {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 0 !important;  /* Menu en bas de l'écran */
    left: 0;
    right: 0;
    padding: 22px 16px 28px;
    background: rgba(3, 17, 25, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(165, 113, 71, 0.3);
    z-index: 999 !important; /* En dessous du burger mais au-dessus du contenu */
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    height: auto;
    max-height: 80vh; /* Limite la hauteur pour ne pas couvrir tout l'écran */
  }

  .mobile-menu.open a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #F5F7F8;
    background: rgba(165, 113, 71, 0.10);
    border: 1px solid rgba(165, 113, 71, 0.22);
  }

  .mobile-menu.open a:hover {
    background: rgba(165, 113, 71, 0.22);
    border-color: rgba(165, 113, 71, 0.35);
  }
}

/* =========================
   ABOUT RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  /* About : tout en 1 colonne */
  .about-content-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Cache le bloc image-showcase sur mobile */
  .about-image-showcase {
    display: none !important;
  }

  /* Stats : 2 colonnes + la 3e en full width (beaucoup plus beau) */
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .about-stats .stat-item:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  .stat-item { 
    padding: 14px !important; 
  }
  
  .stat-number { 
    font-size: 2rem !important; 
  }
}

/* =========================
   PATCH FINAL (à coller tout en bas)
   - fixe sticky + z-index
   - menu mobile au-dessus du header
   - theme menu en dark
   - améliore les très grands écrans (>=1900px)
   ========================= */

/* Sticky fiable (évite les surprises) */
body { 
  overflow-y: auto; 
}

/* ===== FIX HEADER (robuste) ===== */
/* fallback si JS absent */
:root { 
  --header-h: 96px; 
}

/* Header: toujours au-dessus du contenu (mais sous la lightbox) - FIXED pour garantir le fonctionnement */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9000 !important;
  background: rgba(3, 17, 25, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(165, 113, 71, 0.30) !important;
  margin-bottom: 0 !important;
}

/* On décale le contenu pour ne pas passer sous le header */
main {
  padding-top: var(--header-h) !important;
}

/* Menu mobile: au-dessus du header, burger au-dessus du menu */
@media (max-width: 768px) {
  .mobile-menu.open {
    z-index: 9050 !important; /* au-dessus du header */
  }
  .burger {
    z-index: 9100 !important; /* au-dessus du menu */
  }
}

/* Theme switcher: menu cohérent avec ton dark luxe */
.theme-menu {
  background: rgba(3, 17, 25, 0.98) !important;
  border: 1px solid rgba(165, 113, 71, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

.theme-option.active {
  border-color: #F5F7F8 !important;
}

/* Très grands écrans (1900px+) : tout prend plus de place */
@media (min-width: 1900px) {
  .container { 
    max-width: 1400px; 
    padding: 0 2rem; 
  }

  .nav-brand { 
    font-size: 1.6rem; 
  }
  
  .nav-logo { 
    height: 5rem; 
    max-width: 460px; 
  }
  
  .nav-link { 
    font-size: 1rem; 
  }

  .btn { 
    font-size: 1rem; 
    padding: 0.75rem 1.25rem; 
  }
  
  .btn-lg { 
    padding: 1rem 1.75rem; 
    font-size: 1.1rem; 
  }

  .hero-luxe { 
    min-height: 560px; 
    padding: 88px 32px; 
  }
  
  .hero-luxe h1 { 
    font-size: clamp(44px, 2.6vw, 64px); 
  }
  
  .hero-luxe p { 
    font-size: 18px; 
    max-width: 720px; 
  }

  .services-section .services-grid { 
    gap: 28px; 
  }
  
  .lux-card--home { 
    padding: 28px; 
  }
  
  .service-title { 
    font-size: 1.35rem; 
  }

  .portfolio-image { 
    height: 360px; 
  }
}

/* =========================
   FIX LIGHTBOX - Opacité et clics
   ========================= */

/* Lightbox : ne jamais être invisible à cause de img:not(.loaded) */
#lightbox-image {
  opacity: 1 !important;
  pointer-events: none; /* Ne pas bloquer les clics sur les flèches */
}

/* Clic fiable même si on touche le SVG */
.lightbox .lightbox-nav svg,
.lightbox .lightbox-nav path {
  pointer-events: none;
}

/* Position responsive (desktop + mobile + desktop-mode mobile) */
.lightbox .lightbox-prev {
  left: clamp(12px, 4vw, 64px) !important;
}

.lightbox .lightbox-next {
  right: clamp(12px, 4vw, 64px) !important;
}

/* Assurer que les boutons sont toujours cliquables */
.lightbox .lightbox-nav {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Zone de clic plus grande pour mobile */
@media (max-width: 768px) {
  .lightbox .lightbox-nav {
    width: 64px !important;
    height: 64px !important;
  }
}

/* ===== PORTFOLIO : espace entre les cartes ===== */
.portfolio-masonry{
  display: grid !important;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px !important;          /* 👈 l'espace entre les images */
  padding: 8px 0;                /* petit confort visuel */
}

/* Responsive */
@media (max-width: 1024px){
  .portfolio-masonry{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .portfolio-masonry{ grid-template-columns: 1fr; }
}

/* évite que d'anciennes règles masonry cassent le gap */
.portfolio-item{
  margin: 0 !important;
  break-inside: unset !important;
}

/* ===== Lightbox : on masque le header pendant l'ouverture ===== */
body.lightbox-open .header{
  opacity: 0 !important;
  transform: translateY(-120%) !important;
  pointer-events: none !important;
}

/* Optionnel : cacher aussi le burger pendant la lightbox */
body.lightbox-open .burger{
  display: none !important;
}

/* ===== Portfolio filters : même affichage mobile pour home et portfolio ===== */
@media (max-width: 768px) {
  .portfolio-filters {
    flex-wrap: wrap !important;
    overflow-x: visible !important; /* Enlève le scroll horizontal */
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

