/* Variables d'animation du logo (réglables facilement) */
:root {
    --logo-perspective: 1600px;    /* encore plus doux pour réduire l'effet de penché */
    --logo-spin-duration: 6.4s;    /* durée de la rotation continue (20% plus rapide) */
    --logo-tilt: -2deg;            /* très léger contre-tilt (haut un peu vers l'arrière) */
    --logo-size-base: 240px;       /* taille de base réduite de 20% (300px -> 240px) */
    --logo-size-scale: 1.0;        /* échelle réduite de 20% (1.25 -> 1.0) */
    --logo-offset-y: 90px;         /* descendu de 50px (40px + 50px) */
}
/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales */
    --primary-color: #ffffff;
    --primary-dark: #f0f0f0;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    
    /* Couleurs neutres */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typographie */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Espacements */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;

    /* Hauteur de l'en-tête fixe (pour caler le contenu sous le header) */
    --header-height: 116px; /* ~84px logo + paddings */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Style léger comme dans l'exemple */
    line-height: 1.6; /* Espacement aéré */
    color: var(--gray-800);
}

/* Titres avec Roboto en gras */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Gras pour les titres */
    line-height: 1.6;
}

/* Style global pour les liens et textes avec primary-color - effet blanc brillant */
a[href], 
.btn-primary,
[class*="detail-text"] a {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                 0 0 12px rgba(255, 255, 255, 0.6),
                 0 0 16px rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

a[href]:hover,
.btn-primary:hover {
    text-shadow: 0 0 12px rgba(255, 255, 255, 1),
                 0 0 18px rgba(255, 255, 255, 0.8),
                 0 0 24px rgba(255, 255, 255, 0.6);
}

/* Fonds de page spécifiques */
.page-accueil {
    /* Rétablir une image de fond derrière les containers (éviter le grand aplat blanc) */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
        url("images/fond d'écran/20251024_0140_Modern Kitchen Design_remix_01k89q14wkea380m2sqy59s1zq.png");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

.page-realisations {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url("images/fond d'écran/20251024_0140_Modern Kitchen Design_remix_01k89q14wkea380m2sqy59s1zq.png");
    /* Harmoniser avec l'accueil: dézoom ~25% */
    background-size: cover, 75% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobile: dézoomer l'image pour qu'elle soit bien visible */
@media (max-width: 768px) {
    .page-accueil, .page-realisations {
        /* Dégradé plus léger + image pour les pages réalisations uniquement */
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
            url("images/fond d'écran/20251024_0117_Croquis Cuisine Moderne_remix_01k89nqtfqekvvm4av18qt547a.png");
        background-size: cover, contain;
        background-position: center top;
        background-attachment: scroll;
    }

    /* Mobile: léger fond translucide pour lisibilité */
    .hero-content { background: rgba(255, 255, 255, 0.048); }
    .section-card { background: rgba(255, 255, 255, 0.16); }
    .services-card { background: rgba(255, 255, 255, 0.32); }
}

/* Conteneurs */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Header et Navigation */
.main-header {
    background: transparent; /* Suppression du fond blanc pour voir le fond d'écran */
    box-shadow: none; /* Suppression de l'ombre pour un effet plus transparent */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-4) 0;
}

/* Ligne horizontale pleine largeur ~20px sous la barre de nav */
/* Ligne horizontale sous le header - SUPPRIMÉE */
/*
.main-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    height: 2px;
    background: var(--gray-200);
    pointer-events: none;
    z-index: 2;
}
*/

/* Overlay translucide derrière le header - DÉSACTIVÉ (complètement transparent) */
/*
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}
*/

/* S'assurer que le contenu de la nav passe au-dessus de l'overlay */
.nav-container {
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { 
    display: flex; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.7); /* Opacité à 70% */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 8px;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
}
.logo-image img { display: block; height: 84px; width: auto; filter: grayscale(1) brightness(1.3) contrast(1.2); }

.logo-primary {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.logo-secondary {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--gray-800);
}

.logo-tagline {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    font-style: italic;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-8);
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: var(--font-size-lg);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--gray-600); /* Garde la même couleur que les autres */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.cta-phone {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--font-size-xl); /* Augmentation de la taille pour le numéro de téléphone */
    background: rgba(0, 0, 0, 0.6); /* Fond noir plus foncé pour meilleure visibilité */
    padding: 8px 16px;
    border-radius: 8px;
    text-shadow: none; /* Pas d'effet néon - plus professionnel */
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    margin: 3px 0;
    transition: var(--transition-fast);
}
/* Empêcher le scroll quand le menu est ouvert */
body.menu-open { overflow: hidden; }
/* Animation icône hamburger -> croix */
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Hero Section */
.hero {
    background: transparent;
    /* Remonter le hero et supprimer le plein écran */
    padding: 5px 0 var(--spacing-16);
    display: block;
    margin-bottom: 350px;  /* Augmenté pour le parallélépipède plus grand et éviter le chevauchement */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Image du hero (logo centré) */
/* Bloc logo sous le texte, même largeur visuelle */
.hero-main-photo {
    width: auto;
    max-width: 560px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: start; /* aligne le haut du logo avec le haut de la carte */
}

.hero-logo-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}
/* Grille hero 2x2 pour desktop, 1 colonne sur mobile */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
    max-width: 1200px;
    margin: var(--spacing-2) auto 0; /* Remonter encore plus les containers */
    align-items: stretch;
}

/* Harmonisation des containers de la première ligne */
.hero-grid .section-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Liste des services dans le container spécialiste */
.services-list {
    text-align: center; /* centré à l'intérieur */
    line-height: 1.8;
    font-size: 1.1rem;
    margin: var(--spacing-3) 0;
}

.services-list div {
    margin-bottom: 0.5rem;
    text-align: center; /* centré à l'intérieur */
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .hero-grid .section-card {
        min-height: auto;
    }
    
    /* Grille mobile pour encarts */
    .encarts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        max-width: 100%;
        padding: 0 var(--spacing-2);
    }
    
    .encart-tile {
        border-radius: 12px;
    }
    
    .encart-title {
        font-size: 1rem;
        padding: 15px 10px;
    }
}

/* Carte du hero: restaurée (fond blanc translucide, arrondis et ombre) */
.hero-content {
    background: rgba(255, 255, 255, 0.112);
    /* top | right | bottom | left */
    padding: var(--spacing-8); /* identique aux cartes "Nos réalisations par univers" */
    border-radius: 16px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(200, 200, 200, 1.2);
    width: 100%;
    margin: -30px 0 0 0; /* remonter de 30px (15px + 15px supplémentaires) */
    text-align: center; /* centrer le texte et les titres */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mise en page interne de la carte: texte à gauche, logo à droite */
.hero-card-grid {
    display: grid;
    grid-template-columns: 1fr; /* plus de colonne logo, centrer en une seule colonne */
    gap: var(--spacing-8);
    align-items: start;
}

.hero-card-logo {
    display: flex;
    align-items: flex-start; /* aligner le haut du logo sur le haut de la carte */
    justify-content: flex-end; /* coller à droite dans la colonne logo */
    /* Remonter le logo pour le caler visuellement (~100px) */
    margin-top: -100px;
}

.hero-content .hero-logo-image {
    width: 100%;
    height: auto;
    max-width: 360px; /* taille maîtrisée du logo dans la carte */
}

@media (max-width: 768px) {
    .hero-card-grid {
        grid-template-columns: 1fr;
    }
    .hero-card-logo {
        justify-content: center;
        /* Sur mobile, on annule le décalage négatif pour éviter tout chevauchement */
        margin-top: var(--spacing-6);
    }
}

/* Cartes d'overlay pour sections (Services, Zone d'intervention) */
.section-card {
    background: rgba(255, 255, 255, 0.224);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-md), 0 0 40px rgba(200, 200, 200, 1.5);
    padding: var(--spacing-8);
    /* Détacher des bords de la grille */
    margin: var(--spacing-6) var(--spacing-4);
}

@media (max-width: 768px) {
    .section-card {
        margin: var(--spacing-4) var(--spacing-3);
        padding: var(--spacing-6);
        border-radius: 16px;
    }
}

/* Carte overlay spécifique Services (60% + flou + arrondis) */
.services-card {
    background: rgba(255, 255, 255, 0.448); /* overlay 44.8% (-20%) */
    backdrop-filter: blur(12px); /* joli flou */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; /* bords plus arrondis */
    box-shadow: var(--shadow-md), 0 0 40px rgba(200, 200, 200, 1.5);
    padding: var(--spacing-8);
    /* Décollage léger des bords: ~10px à gauche/droite */
    margin: var(--spacing-4) 10px;
}

@media (max-width: 768px) {
    .services-card {
        margin: var(--spacing-4) 10px; /* garder ~10px sur les côtés aussi sur mobile */
        padding: var(--spacing-6);
        border-radius: 16px;
    }
}

/* Bandeau d'accueil: logo large + bannière image réduite */
.masthead { 
    padding-top: var(--header-height); 
    width: 100%;
    display: flex;
    justify-content: center;
}

.masthead .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.top-logo { 
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 auto;  /* centrage horizontal automatique */
    /* Conteneur transparent: pas de fond ni d'effet de flou/ombre */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0; /* coins ultra carrés pour le conteneur du grand logo */
    border: none;
    box-shadow: none;
    margin: 30px auto;
    max-width: fit-content;
}
.top-logo { position: relative; perspective: var(--logo-perspective); perspective-origin: 50% 50%; z-index: 2; }

.top-logo .logo-large { width: calc(var(--logo-size-base) * var(--logo-size-scale)); height: calc(var(--logo-size-base) * var(--logo-size-scale)); object-fit: contain; display: block; transform: translateY(0px) rotateX(var(--logo-tilt)) rotateY(0deg); margin-top: 0; transform-origin: 50% 50%; transform-style: preserve-3d; will-change: transform; filter: grayscale(1) brightness(1.3) contrast(1.2) drop-shadow(0 10px 18px rgba(0,0,0,0.25)); /* animation supprimée - logo face à nous */ }

/* Cube 3D rotatif pour le grand logo */
.top-logo .logo-cube { position: relative; top: 30px; width: calc(var(--logo-size-base) * var(--logo-size-scale)); height: calc(var(--logo-size-base) * var(--logo-size-scale)); transform-style: preserve-3d; animation: cubeFloat 18s ease-in-out infinite, logoSpinOnLoad 3s ease-out forwards; }
.top-logo .cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: cubeYaw 14s ease-in-out infinite alternate; }
.top-logo .cube-face { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; border: none; background: transparent; }
.top-logo .cube-face { position: absolute; }
/* Lignes néon blanches sur chaque face */
.top-logo .cube-face::before {
    content: '';
    position: absolute;
    inset: 0; /* colle au bord de la face */
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0; /* bords carrés */
    pointer-events: none;
    /* halo lumineux vers l'extérieur */
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.85),
        0 0 18px rgba(255, 255, 255, 0.55),
        0 0 32px rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    /* liséré un peu plus fin sur mobile */
    .top-logo .cube-face::before { border-width: 1.5px; box-shadow:
        0 0 6px rgba(255, 255, 255, 0.85),
        0 0 14px rgba(255, 255, 255, 0.45),
        0 0 24px rgba(255, 255, 255, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    /* ne pas toucher aux contours, mais on garde les néons pour la lisibilité */
}
.top-logo .cube-face img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.3) contrast(1.2); }
.top-logo .cube-face::before { z-index: 2; }
/* Léger flou d'arrière-plan derrière chaque face (pas sur le logo) */
.top-logo .cube-face::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255, 255, 255, 0.7); /* fond blanc à 70% d'opacité sous le logo */
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
    pointer-events: none;
}
/* Placer les 6 faces à distance moitié de la taille */
.top-logo .cube-front  { transform: translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }
.top-logo .cube-back   { transform: rotateY(180deg) translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }
.top-logo .cube-right  { transform: rotateY(90deg)  translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }
.top-logo .cube-left   { transform: rotateY(-90deg) translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }
.top-logo .cube-top    { transform: rotateX(90deg)  translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }
.top-logo .cube-bottom { transform: rotateX(-90deg) translateZ(calc(var(--logo-size-base) * var(--logo-size-scale) / 2)); }

/* Oscillation latérale lisible (garder la face visible) */
@keyframes cubeYaw {
    from { transform: rotateX(var(--logo-tilt)) rotateY(-28deg); }
    to   { transform: rotateX(var(--logo-tilt)) rotateY(28deg); }
}

/* Petite oscillation verticale occasionnelle, douce et rare */
@keyframes cubeFloat {
    0%, 22%   { transform: translateY(0); }
    26%       { transform: translateY(4px); }
    32%       { transform: translateY(0); }
    60%, 74%  { transform: translateY(0); }
    78%       { transform: translateY(-4px); }
    84%       { transform: translateY(0); }
    100%      { transform: translateY(0); }
}

/* Masquer l'image de fallback si 3D disponible; sinon garder l'image simple */
@supports (transform-style: preserve-3d) {
    .top-logo .logo-large { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .top-logo .cube { animation: none !important; }
    .top-logo .logo-cube { display: none; }
    .top-logo .logo-large { display: block; }
}

/* Désactiver le balayage lumineux pour un rendu 100% transparent au-dessus du cube */
.top-logo::after { display: none; }

@keyframes lightSweep {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}
.hero-banner {
    position: relative;
    z-index: 1; /* laisser passer le logo/3D au-dessus */
    height: 280px; /* légèrement réduit pour équilibrer la place avec le nouveau centrage du logo 3D */
    background: transparent; /* pas d'image ici pour éviter le doublon; on laisse voir le fond de la page */
}
@media (max-width: 768px) {
    :root { --header-height: 96px; }
    :root { --logo-size-base: 240px; }
    .top-logo .logo-large { width: 240px; height: 240px; transform: translateY(0%); transform-origin: 50% 50%; transform-style: preserve-3d; will-change: transform; filter: grayscale(1) brightness(1.3) contrast(1.2) drop-shadow(0 8px 14px rgba(0,0,0,0.25)); }
    /* Pas d'ombre du tout autour du conteneur du cube */
    .top-logo { box-shadow: none; margin-top: 50px; }
    .section-card { box-shadow: var(--shadow-md), 0 0 15px rgba(200, 200, 200, 0.8); }
    .services-card { box-shadow: var(--shadow-md), 0 0 15px rgba(200, 200, 200, 0.8); }
    .hero-banner { height: 280px; }
}

/* Animation oscillation directe entre les extrêmes */
@keyframes logoOscillation {
    0% { transform: translateY(0%) rotateX(var(--logo-tilt)) rotateY(65deg); }
    50% { transform: translateY(0%) rotateX(var(--logo-tilt)) rotateY(-65deg); }
    100% { transform: translateY(0%) rotateX(var(--logo-tilt)) rotateY(65deg); }
}

.top-logo .logo-large:hover {
    animation: logoOscillation 3s ease-in-out infinite; /* oscillation plus rapide au hover */
}

/* Variante pour oscillation permanente: ajouter la classe .spin sur l'image */
.top-logo .logo-large.spin {
    animation: logoOscillation var(--logo-spin-duration) ease-in-out infinite; /* oscillation continue */
}

@media (prefers-reduced-motion: reduce) {
    .top-logo .logo-large,
    .top-logo .logo-large:hover,
    .top-logo .logo-large.spin { animation: none !important; }
    .top-logo::after { animation: none !important; opacity: 0 !important; }
}

/* Effets néon supprimés */

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-6);
    line-height: 1.2;
}

.hero-title strong {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    margin-bottom: var(--spacing-8);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
    flex-wrap: wrap;
    justify-content: center; /* centrer les boutons aussi sur desktop */
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
}

.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-features {
    display: flex;
    gap: var(--spacing-6);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--gray-600);
    font-weight: 500;
}

.feature-icon {
    color: var(--accent-color);
    font-weight: bold;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-content h3 {
    color: var(--gray-600);
    margin-bottom: var(--spacing-2);
}

.placeholder-content p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* Sections communes */
section {
    padding: var(--spacing-20) 0;
}

/* Assurer un dégagement sous le header fixe sur la page Réalisations */
.page-realisations .realisations-gallery {
    padding-top: calc(var(--header-height) + 24px);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    /* Rendre la section transparente pour laisser voir le fond d'écran */
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-8);
}

/* Forcer 3 colonnes sur grands écrans pour rentrer trois cartes */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    background: white;
    padding: var(--spacing-8);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, white 0%, #f0f7ff 100%);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-4);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-3);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-4);
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: var(--spacing-1) 0;
    color: var(--gray-600);
    position: relative;
    padding-left: var(--spacing-4);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Section Réalisations */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-12);
}

/* Encarts cliquables vers les 4 pages - Design moderne et attractif */
.encarts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.encart-tile {
    display: block;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.encart-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.encart-tile:hover::before {
    opacity: 1;
}

.encart-tile:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.encart-image { 
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    position: relative;
}

.encart-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
}

.encart-tile:hover .encart-image img {
    transform: scale(1.1);
}

.encart-title { 
    padding: 20px; 
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; 
    color: #2c3e50; 
    text-align: center; 
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, white, #f8fafc);
    position: relative;
    z-index: 2;
}

.encart-tile:hover .encart-title {
    color: #3b82f6;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    height: 250px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-600);
    font-weight: 500;
}

.gallery-cta {
    text-align: center;
}

/* Zone d'intervention */
.zone-intervention {
    background: transparent;
}

/* Centrer tout le texte dans le container Zone d'intervention */
.zone-intervention .section-card {
    text-align: center;
}

/* Centrer les éléments internes de la grille */
.zone-intervention .zone-content {
    justify-items: center;
    /* En desktop, une seule colonne pour centrer le bloc interne */
    grid-template-columns: 1fr;
}
.zone-intervention .cities-grid {
    justify-items: center;
    text-align: center;
}
.zone-intervention .city-group {
    text-align: center;
}
.zone-intervention .city-group ul {
    padding-left: 0;
}

/* (bloc corrigé plus haut: styles de .hero-content définis dans la section Hero) */

.cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.city-group h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-3);
    font-size: var(--font-size-lg);
}

.city-group ul {
    list-style: none;
}

.city-group li {
    padding: var(--spacing-1) 0;
    color: var(--gray-600);
}

.zone-note {
    background: white;
    padding: var(--spacing-4);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: var(--spacing-6);
}

/* Contrôles de la carte */
.map-controls {
    display: flex;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
    align-items: center;
    flex-wrap: wrap;
}

.map-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-container {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

.city-input {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    min-width: 150px;
}

.city-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 480px) {
    .map-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .city-input {
        flex: 1;
        min-width: 0;
    }
}

/* Marqueurs personnalisés sur la carte */
.user-location-marker {
    background: none !important;
    border: none !important;
    font-size: 24px;
    text-align: center;
    line-height: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.search-location-marker {
    background: none !important;
    border: none !important;
    font-size: 24px;
    text-align: center;
    line-height: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* =====================================
   RECTANGLE 3D INTERACTIF
   ===================================== */

/* Boutons de navigation du cube - de part et d'autre */
.cube-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cube-nav-left {
    left: -80px;  /* à gauche du cube */
}

.cube-nav-right {
    right: -80px;  /* à droite du cube */
}

.cube-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.cube-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Face supérieure supprimée - parallélépipède ouvert */

/* Boutons de navigation pour le parallélépipède */
.parallelepiped-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.parallelepiped-nav-left {
    left: 20px;
}

.parallelepiped-nav-right {
    right: 20px;
}

.parallelepiped-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.parallelepiped-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.tetrahedron-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    margin: var(--spacing-8) auto;
    position: relative;
    width: 100%;
    max-width: 1600px;
    padding: 0 var(--spacing-4);
    perspective: 2000px;
}

.tetrahedron {
    position: relative;
    width: 800px;
    height: 500px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg); /* Cube droit, pas d'inclinaison */
    transition: transform 0.8s ease;
    margin: 0 auto;
    /* Cube reste droit tout le temps */
}

.tetrahedron:hover {
    transform: rotateX(0deg) rotateY(0deg); /* Reste droit au hover aussi */
}

/* Animation de 2 tours face à nous, puis penchement fluide et décalage vers la gauche */
/* Animation désactivée - le cube reste droit */
/*
@keyframes cubeSpinOnLoad {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    65% {
        transform: rotateX(0deg) rotateY(720deg);
    }
    72% {
        transform: rotateX(-6deg) rotateY(720deg);
    }
    80% {
        transform: rotateX(-13deg) rotateY(720deg);
    }
    88% {
        transform: rotateX(-20deg) rotateY(720deg);
    }
    95% {
        transform: rotateX(-25deg) rotateY(720deg);
    }
    100% {
        transform: rotateX(-25deg) rotateY(765deg);
    }
}
*/

/* Animation du logo cube - 1 tour lent dans le sens inverse */
@keyframes logoSpinOnLoad {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-360deg); /* 1 tour dans le sens inverse */
    }
}

/* Les 4 faces du parallélépipède */
.face {
    position: absolute;
    width: 800px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backface-visibility: hidden;
}

/* Face 1 - Devant */
.face-1 {
    transform: translateZ(400px);
}

/* Face 2 - Droite */
.face-2 {
    transform: rotateY(90deg) translateZ(400px);
}

/* Face 3 - Derrière */
.face-3 {
    transform: rotateY(180deg) translateZ(400px);
}

/* Face 4 - Gauche */
.face-4 {
    transform: rotateY(270deg) translateZ(400px);
}

/* Désactiver le hover qui casse la 3D */
.face:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18),
                inset 0 0 22px rgba(255, 255, 255, 0.16);
}

/* Animation de rotation automatique fluide - uniquement latérale */
@keyframes rectangleRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(0deg) rotateY(90deg); }
    50% { transform: rotateX(0deg) rotateY(180deg); }
    75% { transform: rotateX(0deg) rotateY(270deg); }
    100% { transform: rotateX(0deg) rotateY(360deg); }
}

/* Contenu des faces - taille uniforme basée sur "Nos réalisations" */
.face-content {
    padding: 30px; /* Padding généreux comme dans l'exemple */
    color: var(--gray-900);
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* pas de scroll interne */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box; /* Assure que toutes les faces ont la même taille avec padding inclus */
    background: transparent; /* Fond transparent */
    /* Effet neomorphism désactivé pour fond transparent */
    /* box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.5); */
    border-radius: 12px;
}

/* Police Roboto pour tout le contenu des containers */
.face-content,
.face-content p,
.face-content div,
.face-content span,
.face-content a,
.face-content li {
    font-family: 'Roboto', sans-serif !important;
}

/* Titres dans les containers avec Bebas Neue */
.face-content h1,
.face-content h2,
.face-content h3,
.face-content h4,
.face-content h5,
.face-content h6 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Texte normal dans les containers en poids léger */
.face-content p,
.face-content div,
.face-content span,
.face-content li {
    font-weight: 300;
    line-height: 1.6;
}

/* Strong en semi-gras */
.face-content strong {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600;
}

.face-content h3 {
    font-size: var(--font-size-xl);
    color: var(--gray-900);
    margin-bottom: var(--spacing-3);
    font-weight: 600;
    text-align: center;
    flex-shrink: 0; /* Empêche le titre de rétrécir */
    position: relative; /* Pour le pseudo-élément */
    padding-bottom: var(--spacing-2); /* Espace pour le trait */
}

/* Trait sous les titres avec effet visuel */
.face-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(160, 160, 160, 0.0) 15%,
        rgba(160, 160, 160, 0.6) 35%,
        rgba(120, 120, 120, 0.95) 50%,
        rgba(160, 160, 160, 0.6) 65%,
        rgba(160, 160, 160, 0.0) 85%,
        transparent 100%
    );
    filter: blur(0.3px);
    box-shadow: 0 0 4px rgba(80, 80, 80, 0.25);
}

/* Styles pour la face "Votre spécialiste" */
.services-list {
    margin: var(--spacing-3) 0;
    font-size: var(--font-size-sm);
}

.services-list div {
    margin-bottom: var(--spacing-2);
    line-height: 1.4;
    text-align: center; /* centré à l'intérieur */
}

.services-list strong {
    color: var(--primary-color);
    text-shadow: 0 0 6px rgba(37, 99, 235, 0.35);
}

.specialiste-footer {
    margin-top: var(--spacing-4);
    text-align: center;
}

.specialiste-footer p {
    margin-bottom: var(--spacing-3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    /* Bordure autour des lettres */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
    text-stroke: 1px rgba(0, 0, 0, 0.7);
    paint-order: stroke fill;
}

.specialiste-footer .btn {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background-color: var(--primary-600);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.specialiste-footer .btn:hover {
    background-color: var(--primary-700);
}

/* Styles pour la grille des réalisations */
.realizations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2);
    margin-top: var(--spacing-2);
}

.realization-item {
    text-align: center;
}

.realization-item img {
    width: 100%;
    height: 120px;  /* Augmenté de 80px à 120px pour mieux voir les photos */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-1);
    border: 1px solid rgba(187, 187, 187, 0.3);  /* Bordure pour délimiter */
}

.realization-item p {
    font-size: var(--font-size-sm);
    margin: 0;
    font-weight: 500;
}

/* Styles pour la zone d'intervention */
.zone-content {
    font-size: var(--font-size-sm);
}

.zone-map-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--spacing-2);
    overflow: hidden; /* empêche tout débordement */
}

.face-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: 2px solid rgba(187, 187, 187, 0.3);
    background: transparent;
}

.zone-cities {
    text-align: center;
    font-size: var(--font-size-xs);
}

.zone-cities p {
    margin: 0 0 var(--spacing-1) 0;
    font-weight: 600;
}

.zone-cities span {
    font-size: var(--font-size-xs);
    color: var(--gray-700);
    line-height: 1.3;
}

/* Zone d'intervention: masquer la liste des villes et agrandir la carte */
.face-3 .zone-cities { display: none; }
.face-3 .face-map { height: 400px; }

/* Styles pour le contact */
.contact-content {
    font-size: var(--font-size-sm);
}

.contact-item {
    margin-bottom: var(--spacing-2);
    font-size: var(--font-size-xs);
    text-align: left;
}

.contact-item strong {
    display: block;
    margin-bottom: var(--spacing-1);
}

.contact-item a {
    color: var(--primary-600);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact: agrandir la police pour meilleure lisibilité */
.face-4 .contact-content { font-size: 1.15rem; line-height: 1.7; }
.face-4 .contact-item { font-size: 1.15rem; }
.face-4 .contact-item strong { font-size: 1.05em; }
.face-4 .contact-item a { font-size: 1.05em; }

.face-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
    color: var(--gray-800);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Face 1 (Votre spécialiste) — accent de lisibilité et bandeau flou en tête */
.face-1 .face-content {
    position: relative; /* nécessaire pour le pseudo-élément */
    display: grid;
    grid-template-rows: auto 1fr; /* bandeau + corps centré */
    overflow: hidden; /* pas de scroll et pas de débordement visuel */
}

/* Bandeau flou en haut: on désactive l'ancien bandeau global pour la face 1 */
.face-1 .face-content::before { display: none; }

/* Désactiver le bandeau pour Face 4 aussi */
.face-4 .face-content::before { display: none; }

/* Nouveau bandeau: limité exactement au trait sous le titre (pleine largeur du container) */
.face .face-heading {
    position: relative;
    grid-column: 1 / -1; /* s'étend sur la largeur du grid interne */
    /* Pleine largeur interne robuste sur toutes les faces */
    width: calc(100% + (2 * var(--spacing-4)));
    transform: translateX(calc(-1 * var(--spacing-4)));
    margin: 0 0 var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4) var(--spacing-2);
    box-sizing: border-box;
}

.face .face-heading h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    /* Bordure autour des lettres pour meilleure visibilité */
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    paint-order: stroke fill;
    text-shadow: 
        0 0 10px rgba(50, 50, 50, 0.9),
        0 0 20px rgba(50, 50, 50, 0.7),
        0 0 30px rgba(50, 50, 50, 0.5),
        0 0 40px rgba(50, 50, 50, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
    display: block;
}

.face .face-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* s'arrête exactement au niveau du trait */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top-left-radius: 0; /* coins ultra carrés */
    border-top-right-radius: 0; /* coins ultra carrés */
    pointer-events: none;
    z-index: 0;
}

/* Replacer le trait sous le titre au bas du bandeau (et éviter le doublon du trait du h3) */
.face .face-content h3::after { display: none; }
.face .face-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(140, 140, 140, 0.0) 15%,
        rgba(140, 140, 140, 0.65) 35%,
        rgba(100, 100, 100, 0.98) 50%,
        rgba(140, 140, 140, 0.65) 65%,
        rgba(140, 140, 140, 0.0) 85%,
        transparent 100%
    );
}

/* Assurer une colonne pleine largeur pour la face 1 */
.face-1 .face-content { grid-template-columns: 1fr; }

/* Éviter que le texte empiète visuellement sur le trait: espace supplémentaire sous le bandeau */
.face .face-heading { padding-bottom: calc(var(--spacing-2) + 6px); }

/* Face 1: bandeau vraiment plein (flush top + bords internes) */
.face-1 .face-content { padding-top: 0; }
/* Bandeau flush en haut pour toutes les faces */
.face .face-content { padding-top: 0; }
.face-1 .face-heading {
    width: calc(100% + (2 * var(--spacing-4)));
    transform: translateX(calc(-1 * var(--spacing-4)));
    margin: 0 0 var(--spacing-1);
    padding-bottom: calc(var(--spacing-1) + 4px);
    align-self: start;
}

/* Uniformiser Face 1 sur le même style de bandeau/typo que "Nos réalisations" */
.face-1 .face-content h3 { 
    font-size: 1.85rem; /* Augmenté pour plus de visibilité en mobile */
    line-height: 1.2; 
    font-weight: 800; /* Plus gras pour meilleure visibilité */
    /* Bordure autour des lettres pour meilleure visibilité */
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    paint-order: stroke fill;
    /* Utiliser le même néon gris anthracite que les autres faces */
    text-shadow: 
        0 0 12px rgba(50, 50, 50, 0.95),
        0 0 24px rgba(50, 50, 50, 0.75),
        0 0 36px rgba(50, 50, 50, 0.55),
        0 0 48px rgba(50, 50, 50, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.3);
}
.face-1 .face-content h3::after { display: none !important; }

.face-1 .services-list { font-size: 1.4rem; line-height: 1.5; } /* Légèrement augmenté */
.face-1 .services-list div { font-size: inherit; }
.face-1 .specialiste-footer p { font-size: 1.15rem; font-weight: 600; } /* Plus visible */
.face-1 .specialiste-footer .btn { font-size: 1.1rem; padding: 14px 20px; }

/* Alignement propre des 4 points dans la face 1, centré sur le libellé principal (strong) */
.face-1 .services-list { display: grid; gap: 6px; justify-content: center; justify-items: center; text-align: center; width: 100%; }
/* Tous les éléments en ligne: puce + label + sep + desc */
.face-1 .service-item { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: center; gap: 0; width: min(980px, 100%); }
.face-1 .service-item .bullet { opacity: 0.95; margin-right: 8px; color: #000; flex-shrink: 0; }
/* Lien cliquable pour les services */
.face-1 .service-link { 
    color: inherit; 
    text-decoration: none; 
    transition: all 0.3s ease;
    display: inline-block;
}
.face-1 .service-link:hover { 
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}
.face-1 .service-item .service-label { 
    font-weight: 800; 
    letter-spacing: .2px; 
    white-space: nowrap;
    /* Bordures de lettres pour meilleure visibilité */
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.7); /* Augmenté à 2px */
    text-stroke: 2px rgba(0, 0, 0, 0.7);
    paint-order: stroke fill;
}
.face-1 .service-item .sep { opacity: 0.75; padding: 0 6px; white-space: nowrap; }
.face-1 .service-item .service-desc { 
    opacity: 0.98; 
    font-size: 1.2rem; /* Taille augmentée pour meilleure visibilité */
}

/* Bloc texte sous le bandeau, centré verticalement */
.face-1 .face-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-2); min-height: 0; }

/* Bouton d'appel plus visible */
.btn-call {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.12);
    letter-spacing: 0.2px;
}
.btn-call:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(29, 78, 216, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.18);
}

/* Bouton plus lisible sur la face 1 */
.face-1 .btn-call { font-size: 1.12rem; padding: 14px 22px; border-radius: 10px; }

/* Indicateur "Cliquer ici" pour la face réalisations */
.click-indicator {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
    margin-top: var(--spacing-3);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Grille des catégories dans la face réalisations */
.face-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 vignettes alignées sur une ligne */
    gap: 16px;
    width: 100%;
    height: auto; /* s'adapte au contenu */
    padding: 10px;  /* Padding pour éviter que les images touchent les bords */
}

/* Face 2: centrer verticalement le bloc de vignettes dans l'espace dispo */
.face-2 .face-content { display: grid; grid-template-rows: auto 1fr; }
.face-2 .face-categories { align-self: center; justify-self: center; max-width: 1100px; }

.face-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    font-family: 'Roboto', sans-serif;
}

.face-category-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.face-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3; /* ratio stable */
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.face-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-category-item span {
    font-size: 1.15rem;
    font-weight: 400; /* Comme les titres */
    letter-spacing: 2px; /* Comme les titres */
    text-transform: uppercase;
    color: #ffffff; /* Blanc comme les titres */
    font-family: 'Bebas Neue', sans-serif; /* Même police que les titres */
    /* Bordures de lettres comme les titres */
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    text-stroke: 1.5px rgba(0, 0, 0, 0.8);
    paint-order: stroke fill;
    /* Effet néon gris anthracite comme les titres */
    text-shadow: 
        0 0 10px rgba(50, 50, 50, 0.9),
        0 0 20px rgba(50, 50, 50, 0.7),
        0 0 30px rgba(50, 50, 50, 0.5),
        0 0 40px rgba(50, 50, 50, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
}

/* Face 4: réagencement simplifié - contact centré avec carte */
.face-4 {
    cursor: default;
    transform: rotateY(270deg) translateZ(400px) !important;
}

.face-4:hover {
    transform: rotateY(270deg) translateZ(400px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.face-4 .face-content { 
    display: flex;
    flex-direction: row; /* 2 colonnes : texte + logo */
    align-items: center;
    justify-content: center;
    padding-top: 0;
    gap: var(--spacing-6);
    position: relative;
}

.face-4 .face-heading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 0 var(--spacing-2);
    text-align: center;
}

.face-4 .face-heading h3 {
    text-align: center;
}

.face-4 .contact-details { 
    display: grid; 
    gap: 6px;
    align-content: center;
    width: auto;
    flex-shrink: 0;
}

.face-4 .face-map {
    width: 100%;
    height: 100%;
}
.face-4 .detail-row { 
    display: flex; 
    flex-direction: row; /* Icône à côté du texte, pas au-dessus */
    align-items: center; 
    justify-content: flex-start; /* Alignement à gauche */
    text-align: left;
    gap: 12px; /* Espace entre icône et texte */
}
.face-4 .detail-row .icon { 
    font-size: 1.5rem; 
    line-height: 1; 
    flex-shrink: 0; /* L'icône ne rétrécit pas */
}
.face-4 .detail-row .detail-text { 
    text-align: left; 
    width: auto; 
}
.face-4 .detail-row .detail-text strong { 
    display: inline; /* En ligne avec l'icône */
    font-size: 1.15rem; 
    margin-bottom: 0; 
    margin-right: 8px;
}
.face-4 .detail-row .detail-text a { 
    font-size: 1.1rem; 
    color: var(--primary-color); 
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                 0 0 12px rgba(255, 255, 255, 0.6),
                 0 0 16px rgba(255, 255, 255, 0.4);
    font-weight: 600;
    /* Fond pour faire ressortir le téléphone et l'email */
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}
.face-4 .detail-row .detail-text a:hover { 
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(255, 255, 255, 1),
                 0 0 18px rgba(255, 255, 255, 0.8),
                 0 0 24px rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}
.face-4 .detail-row .detail-sub { 
    font-size: 1.05rem; 
    text-align: left; 
    display: inline; /* En ligne avec le label */
}

/* Logo dans la section Contact - colonne droite */
.contact-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    width: 300px;
    flex-shrink: 0;
    text-align: center;
}

.contact-logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: grayscale(1) brightness(1.3) contrast(1.2);
    opacity: 0.95;
    transition: all 0.3s ease;
}

.contact-logo-img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Bandeau de titre: forcer la pleine largeur interne, éviter tout décalage */
.face .face-heading { display: block; }

.face-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-4);
    opacity: 0.8;
    font-weight: 500;
}

.services-preview,
.gallery-preview,
.zone-preview,
.contact-preview {
    font-size: 1.21rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 500;
    text-align: center;
}

/* Couleurs spécifiques par face supprimées - toutes les faces utilisent maintenant la couleur turquoise de base */

/* =====================================
   MODALS POUR TÉTRAÈDRE
   ===================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: var(--spacing-8);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-600);
    z-index: 1001;
}

.close:hover {
    color: var(--primary-color);
}

/* =====================================
   GROS POP-UP COSTAUD POUR RÉALISATIONS
   ===================================== */

.big-popup {
    background-color: rgba(0,0,0,0.8) !important; /* Fond plus sombre */
    backdrop-filter: blur(10px);
}

.big-popup-content {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(72, 209, 204, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: var(--spacing-8);
    border-radius: 25px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(64, 224, 208, 0.2);
    border: 2px solid rgba(64, 224, 208, 0.2);
    animation: popupAppear 0.4s ease-out;
}

@keyframes popupAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.big-popup-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-8);
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.big-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-6);
    width: 100%;
}

.big-category-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(64, 224, 208, 0.2);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.big-category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(64, 224, 208, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(64, 224, 208, 0.3);
}

.big-category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.big-category-card:hover .big-category-image img {
    transform: scale(1.1);
}

.big-category-info {
    padding: var(--spacing-4);
    text-align: center;
}

.big-category-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-2);
}

.big-category-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0;
}

/* Responsive pour le gros pop-up */
@media (max-width: 768px) {
    .big-popup-content {
        width: 98%;
        margin: 1% auto;
        padding: var(--spacing-6);
    }
    
    .big-popup-content h2 {
        font-size: 2rem;
    }
    
    .big-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--spacing-4);
    }
    
    .big-category-image {
        height: 150px;
    }
}

/* Responsive (nettoyé): conserver la mise en colonne sur mobile */
@media (max-width: 768px) {
    /* Image de fond pour mobile uniquement */
    .tetrahedron-container::before {
        content: '';
        position: absolute;
        top: 700px;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('images/fond d\'écran/20251024_0117_Croquis Cuisine Moderne_remix_01k89nqtfqekvvm4av18qt547a.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.15;
        z-index: -1;
        pointer-events: none;
    }
    
    .tetrahedron-container { 
        height: auto !important; 
        perspective: none;
        padding: 0 10px;
        position: relative;
    }
    .tetrahedron { 
        width: 100% !important; 
        height: auto !important; 
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        z-index: 1;
    }
    .face { 
        position: relative !important;
        width: 100% !important; 
        height: auto !important; 
        transform: none !important; 
        min-height: auto !important;
        padding: 20px 15px !important;
    }
    .face-1, .face-2, .face-3, .face-4 { transform: none !important; }
    
    /* Optimisation spécifique Face 1 - Votre spécialiste */
    .face-1 .face-content {
        padding: 18px !important;
        gap: 18px !important;
    }
    
    .face-1 .face-heading h3 {
        font-size: 1.5rem !important; /* Plus visible */
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
        font-weight: 800 !important;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95) !important;
        -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important; /* Bordure autour des lettres */
        text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
        paint-order: stroke fill !important; /* Bordure derrière le texte */
    }
    
    .face-1 .services-list {
        font-size: 1rem !important; /* Plus lisible */
        line-height: 1.5 !important;
        gap: 10px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
    }
    
    .face-1 .service-item {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        padding: 0 5px !important;
        background: rgba(0, 0, 0, 0.35) !important; /* Fond plus visible */
        border-radius: 6px !important;
        padding: 10px !important;
    }
    
    .face-1 .service-item .bullet {
        margin-right: 6px !important;
        font-size: 0.9rem !important;
        color: #ffffff !important;
    }
    
    .face-1 .service-item .service-label {
        font-size: 1.4rem !important; /* Tout à 1.4rem */
        font-weight: 800 !important;
        color: #ffffff !important;
    }
    
    .face-1 .service-item .sep {
        display: none !important;
    }
    
    .face-1 .service-item .service-desc {
        flex-basis: 100% !important;
        margin-left: 18px !important;
        font-size: 1.4rem !important; /* Tout à 1.4rem */
        opacity: 1 !important;
        color: #ffffff !important;
    }
    
    .face-1 .specialiste-footer p {
        font-size: 1.05rem !important; /* Plus visible */
        margin: 12px 0 !important;
        font-weight: 700 !important; /* Plus gras */
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.7) !important; /* Bordure autour des lettres */
        text-stroke: 1px rgba(0, 0, 0, 0.7) !important;
        paint-order: stroke fill !important;
    }
    
    .face-1 .btn-call {
        font-size: 1.05rem !important;
        padding: 14px 24px !important;
        width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Face 2 - Réalisations */
    .face-categories {
        grid-template-columns: 1fr !important; /* 1 vignette par ligne */
        gap: 12px !important;
    }
    
    .face-category-item {
        background: rgba(0, 0, 0, 0.45) !important;
        border: 2px solid rgba(255, 255, 255, 0.7) !important;
        padding: 15px !important; /* Plus de padding pour compenser la largeur */
    }
    
    .face-category-item span {
        font-size: 1rem !important; /* Plus gros puisque plus d'espace */
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9) !important;
    }
    
    .face-2 .face-heading h3 {
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9) !important;
        -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
        text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
        paint-order: stroke fill !important;
    }
    
    .face-3 .face-heading h3,
    .face-4 .face-heading h3 {
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9) !important;
        -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
        text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
        paint-order: stroke fill !important;
    }
    
    /* Face 3 - Zone */
    .zone-map-container {
        flex-direction: column !important;
    }
    
    #face-map {
        height: 250px !important;
    }
    
    /* Face 4 - Contact - Réorganisation mobile */
    .face-4 .face-content {
        flex-direction: column !important; /* Colonne verticale en mobile */
        align-items: center !important;
        gap: 0 !important; /* Pas de gap, on utilise margin-bottom sur heading */
        padding: 18px !important;
        overflow: visible !important; /* Empêcher la disparition des éléments */
    }
    
    .face-4 .face-heading {
        position: relative !important; /* Pas d'absolute en mobile */
        order: 1 !important; /* Titre en premier */
        width: 100% !important;
        margin-bottom: 30px !important; /* 30px d'espace après le titre */
        top: auto !important;
        left: auto !important;
    }
    
    .face-4 .face-heading h3 {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95) !important;
    }
    
    .contact-logo {
        order: 2 !important; /* Logo en deuxième */
        margin: 0 0 20px 0 !important; /* 20px sous le logo */
    }
    
    .contact-logo-img {
        width: 120px !important; /* Petite taille pour mobile */
        filter: grayscale(1) brightness(1.5) contrast(1.3) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) !important;
    }
    
    .contact-details {
        order: 3 !important; /* Informations en dernier */
        width: 100% !important;
        gap: 12px !important;
    }
    
    .detail-row {
        padding: 12px !important;
        background: rgba(0, 0, 0, 0.45) !important; /* Fond plus visible */
        border-radius: 8px !important;
        margin-bottom: 10px !important; /* Espacement entre les blocs */
    }
    
    .detail-row .icon {
        font-size: 1.3rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    }
    
    .detail-text strong {
        font-size: 1rem !important;
        color: #ffffff !important;
        font-weight: 800 !important; /* Plus gras pour meilleure lisibilité */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    }
    
    .detail-text a {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
        transform: none !important; /* Désactiver le transform qui cause la disparition */
    }
    
    .detail-text a:hover {
        transform: none !important; /* Pas de scale au hover en mobile */
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .detail-sub {
        font-size: 0.9rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    }
    
    #face-map-contact {
        height: 200px !important;
    }
    
    /* Boutons de navigation du parallélépipède */
    .parallelepiped-nav-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
    }
    
    /* Cacher les boutons de navigation sur mobile (pas nécessaires en mode empilé) */
    .parallelepiped-nav-left,
    .parallelepiped-nav-right {
        display: none !important;
    }
    
    .face-content { padding: var(--spacing-4); }
    .face-content h3 { font-size: 1.4rem; }
    .face-content p { font-size: 0.95rem; }
    .services-preview,
    .gallery-preview,
    .zone-preview,
    .contact-preview { font-size: 0.9rem; }
    .modal-content { margin: 10% auto; width: 95%; padding: var(--spacing-6); }
}

/* Contact Section */
.contact {
    background: transparent;
}

/* Footer */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-12);
    margin-bottom: var(--spacing-12);
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-4);
}

.footer-info .logo-primary {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

.footer-info .logo-secondary {
    font-size: var(--font-size-lg);
    color: white;
}

.footer-content h4 {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-4);
}

.footer-content ul {
    list-style: none;
}

.footer-content li {
    padding: var(--spacing-1) 0;
}

.footer-content a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--spacing-8);
    text-align: center;
    color: var(--gray-400);
}

.footer-bottom a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Titres 3D génériques */
.title-3d {
    position: relative;
    display: inline-block;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 30%, #3b82f6 60%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
      0 1px 0 rgba(0,0,0,0.06),
      0 2px 0 rgba(0,0,0,0.06),
      0 3px 0 rgba(0,0,0,0.05),
      0 4px 0 rgba(0,0,0,0.05),
      0 6px 8px rgba(0,0,0,0.12);
    transform: perspective(800px) translateZ(0);
    animation: titleShine 4s ease-in-out infinite;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

@keyframes titleShine {
    0%, 100% { filter: drop-shadow(0 6px 10px rgba(37,99,235,0.15)); }
    50% { filter: drop-shadow(0 10px 16px rgba(37,99,235,0.35)); }
}

@media (prefers-reduced-motion: reduce) {
    .title-3d { animation: none; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container { position: relative; }
    .nav-menu,
    .nav-cta { display: none; }
    /* Panneau déroulant pour le menu mobile */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: var(--spacing-4);
        right: var(--spacing-4);
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-2) 0;
        flex-direction: column;
        gap: 0;
        z-index: 1001;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { border-bottom: 1px solid var(--gray-200); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-link { padding: var(--spacing-3) var(--spacing-4); display: block; }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .zone-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        text-align: center;
    }
    
    section {
        padding: var(--spacing-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-8);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    /* Aucune ombre autour du conteneur du cube même en très petit écran */
    .top-logo { box-shadow: none; }
    .section-card { box-shadow: var(--shadow-sm), 0 0 10px rgba(200, 200, 200, 0.6); }
    .services-card { box-shadow: var(--shadow-sm), 0 0 10px rgba(200, 200, 200, 0.6); }
    
    .hero {
        padding: 120px 0 var(--spacing-12);
    }
    /* Sur mobile, ne pas remonter le bord bas de la carte */
    .hero-content { margin-bottom: 0; }
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-2) var(--spacing-4);
    }
    
    .service-card,
    .contact-form {
        padding: var(--spacing-6);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.gallery-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

/* Utilitaire accessibilité: cacher visuellement mais garder pour les lecteurs d'écran */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* empêche le retour à la ligne */
}

/* Section viewer 3D (OBJ) */
.model3d-section { padding: 8px 0 0; }
.model3d-canvas {
    width: 100%;
    height: 300px; /* desktop: légèrement plus grand que le logo central */
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}
@media (max-width: 768px) {
    .model3d-canvas { height: 260px; }
}

/* Section Avis Google */
.google-reviews {
    padding: var(--spacing-16) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    margin-top: 100px;  /* Ajouter de l'espace en haut pour éviter le chevauchement */
    position: relative;
    z-index: 1;
}

.reviews-container {
    margin-top: var(--spacing-8);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.review-card {
    background: white;
    padding: var(--spacing-6);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-4);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-details h4 {
    margin: 0 0 var(--spacing-1) 0;
    color: var(--gray-800);
    font-size: var(--font-size-base);
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.review-date {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: 2px;
}

.google-icon {
    opacity: 0.7;
}

.review-content p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
}

/* Carte placeholder pour encourager les avis */
.placeholder-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #0ea5e9;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-card:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-color: #0284c7;
}

.placeholder-content {
    padding: var(--spacing-4);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-3);
}

.placeholder-content h4 {
    margin: 0 0 var(--spacing-3) 0;
    color: var(--gray-800);
}

.placeholder-content p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.reviews-cta {
    text-align: center;
    margin-top: var(--spacing-6);
}

.reviews-cta .btn {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border: none;
    color: white;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.reviews-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .review-card {
        margin: 0 var(--spacing-4);
        padding: var(--spacing-4);
    }
}

/* Responsive: 4 vignettes -> 2 colonnes sur mobile */
@media (max-width: 768px) {
    .face-categories { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================
   LABELS ÉLÉGANTS POUR LES VILLES SUR LA CARTE
   ============================================ */

/* Surcharger les styles Leaflet par défaut pour les divIcon */
.leaflet-marker-icon.city-label,
.leaflet-marker-icon.city-label-important {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Label de ville standard (discret) */
.city-label span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    letter-spacing: 0.3px;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.city-label span:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Label de ville important (plus visible) */
.city-label-important span {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    letter-spacing: 0.4px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.city-label-important span:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
    transform: scale(1.08);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ============================================
   ANIMATION DE TOURBILLON AU CHARGEMENT
   ============================================ */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.spinner-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    perspective: 1500px;
}

/* Logo cube (petit et rapide) */
.spinner-logo-cube {
    width: 80px;
    height: 80px;
    position: relative;
    animation: spinnerFloat 2s ease-in-out infinite;
}

.spinner-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spinnerCubeSpin 1.5s linear infinite;
}

.spinner-cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(147, 197, 253, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.spinner-cube-front  { transform: translateZ(40px); }
.spinner-cube-back   { transform: rotateY(180deg) translateZ(40px); }
.spinner-cube-right  { transform: rotateY(90deg) translateZ(40px); }
.spinner-cube-left   { transform: rotateY(-90deg) translateZ(40px); }
.spinner-cube-top    { transform: rotateX(90deg) translateZ(40px); }
.spinner-cube-bottom { transform: rotateX(-90deg) translateZ(40px); }

/* Parallélépipède (plus grand et plus lent) */
.spinner-parallelepiped {
    width: 200px;
    height: 120px;
    position: relative;
    animation: spinnerFloat 3s ease-in-out infinite 0.5s;
}

.spinner-box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spinnerBoxSpin 3s linear infinite;
}

.spinner-box-face {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(147, 197, 253, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.spinner-box-front,
.spinner-box-back {
    width: 200px;
    height: 120px;
}

.spinner-box-right,
.spinner-box-left {
    width: 100px;
    height: 120px;
}

.spinner-box-top,
.spinner-box-bottom {
    width: 200px;
    height: 100px;
}

.spinner-box-front  { transform: translateZ(50px); }
.spinner-box-back   { transform: rotateY(180deg) translateZ(50px); }
.spinner-box-right  { transform: rotateY(90deg) translateZ(100px); }
.spinner-box-left   { transform: rotateY(-90deg) translateZ(100px); }
.spinner-box-top    { transform: rotateX(90deg) translateZ(60px); }
.spinner-box-bottom { transform: rotateX(-90deg) translateZ(60px); }

/* Texte de chargement */
.spinner-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 30px;
    animation: spinnerPulse 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes spinnerCubeSpin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes spinnerBoxSpin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes spinnerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spinnerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Empêcher le scroll pendant le chargement */
body.loading {
    overflow: hidden;
}

/* ===============================================
   NAVIGATION CROISÉE ENTRE GALERIES
   =============================================== */
/* Version en haut de page - compacte */
.cross-navigation-top {
    padding: 0;
    margin: 10px 0; /* Marge réduite à 10px */
}

.cross-navigation-top .cross-nav-links {
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.cross-navigation-top .cross-nav-card {
    background: white;
    border-radius: 8px;
    padding: 8px 16px; /* Plus petit et rectangulaire */
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cross-navigation-top .cross-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cross-navigation-top .cross-nav-card:hover::before {
    transform: scaleX(1);
}

.cross-navigation-top .cross-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.cross-navigation-top .cross-nav-icon {
    font-size: 1.2rem;
    margin: 0;
}

.cross-navigation-top .cross-nav-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

/* Version en bas de page - complète (conservée mais pas utilisée actuellement) */
.cross-navigation {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e5ec 100%);
}

.cross-navigation h3 {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cross-nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cross-nav-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cross-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cross-nav-card:hover::before {
    transform: scaleX(1);
}

.cross-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.cross-nav-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cross-nav-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
    letter-spacing: 1px;
}

.cross-nav-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .cross-navigation-top .cross-nav-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .cross-navigation-top .cross-nav-card {
        padding: 8px 12px;
        justify-content: center;
    }
    
    .cross-navigation-top .cross-nav-icon {
        font-size: 1rem;
    }
    
    .cross-navigation-top .cross-nav-card h4 {
        font-size: 0.9rem;
    }
    
    .cross-navigation {
        padding: 40px 0;
    }
    
    .cross-navigation h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .cross-nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
