/*
Theme Name: Atelier LŌ.
Theme URI: https://atelierlo.com
Author: Lucien - Atelier LŌ.
Author URI: https://atelierlo.com
Description: Thème portfolio pour architecte d'intérieur - Design plan architectural interactif
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-lo
Tags: portfolio, architecture, custom-colors, custom-menu

Atelier LŌ. - Architecture d'intérieur & Design d'espace - Rennes, Bretagne
*/

/* ============================================
   VARIABLES CSS
   ============================================ */

:root {
    /* Couleurs principales */
    --blue-primary: #1e4a8f;
    --blue-secondary: #2d5a9e;
    --blue-light: #6b8fc4;
    --blue-glow: #5b9fff;
    --text-muted: #5a6a7a;
    --text-body: #3d4f5f;
    
    /* Fond papier/blueprint */
    --paper-bg: #f5f3ef;
    --paper-lines: #e8e4dc;
    --grid-color: rgba(30, 74, 143, 0.03);
    
    /* Typographie */
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-sans: 'Archivo', 'Helvetica Neue', sans-serif;
    
    /* Dimensions */
    --cartouche-width: 260px;
    --header-height: 0;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--paper-bg);
    color: var(--blue-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* Skip link pour accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--blue-primary);
    color: var(--paper-bg);
    padding: 10px 20px;
    z-index: 10000;
    text-decoration: none;
    font-family: var(--font-mono);
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    width: auto;
}

/* Grille de fond Blueprint avec parallaxe */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(30, 74, 143, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 143, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(30, 74, 143, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 143, 0.025) 1px, transparent 1px);
    background-size: 
        100px 100px,
        100px 100px,
        20px 20px,
        20px 20px;
    background-position: 
        -1px -1px,
        -1px -1px,
        -1px -1px,
        -1px -1px;
    transition: background-position 0.1s ease-out;
}

/* Texture papier subtile */
.blueprint-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   CURSEUR PERSONNALISÉ - COMPAS D'ARCHITECTE
   ============================================ */

.cursor-crosshair {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
    top: 0;
    left: 0;
    margin-left: -12px;
    margin-top: -12px;
}

.cursor-h, .cursor-v {
    position: absolute;
    background: var(--blue-primary);
    transition: background 0.2s ease;
}

.cursor-h {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.cursor-v {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

/* Centre du curseur - petit point */
.cursor-center {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body:hover .cursor-crosshair {
    opacity: 1;
}

/* Effet hover subtil */
.cursor-crosshair.cursor-hover .cursor-h,
.cursor-crosshair.cursor-hover .cursor-v {
    background: var(--blue-light);
}

/* Tooltip sur les pièces */
.plan-tooltip {
    position: fixed;
    background: var(--blue-primary);
    color: var(--paper-bg);
    padding: 8px 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.plan-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.plan-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--blue-primary);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.site-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Container Principal */
.plan-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Zone du Plan */
.plan-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    padding-right: calc(var(--cartouche-width) + 50px);
    position: relative;
}

/* Plan SVG */
.plan-svg {
    width: 100%;
    max-width: 1100px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(30, 74, 143, 0.1));
}

/* ============================================
   CARTOUCHE / MENU
   ============================================ */

.cartouche {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: var(--cartouche-width);
    z-index: 100;
}

.cartouche-inner {
    height: 100%;
    background: var(--paper-bg);
    border: 2px solid var(--blue-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Logo */
.cartouche-logo {
    padding: 20px;
    border-bottom: 2px solid var(--blue-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Effet de lumière subtil */
.cartouche-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91, 159, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cartouche-logo:hover::before {
    opacity: 1;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--blue-primary);
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo-box::before,
.logo-box::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--blue-light);
    transition: all 0.3s ease;
    opacity: 0;
}

.logo-box::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
}

.logo-box::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
}

.logo-box:hover::before,
.logo-box:hover::after {
    opacity: 1;
}

.logo-box:hover {
    background: rgba(30, 74, 143, 0.05);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(91, 159, 255, 0.2);
}

.logo-atelier {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--blue-primary);
    transition: letter-spacing 0.3s ease;
}

.logo-box:hover .logo-atelier {
    letter-spacing: 6px;
}

.logo-lo {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blue-primary);
    position: relative;
}

/* Point lumineux sur le Ō - désactivé */
/*
.logo-lo::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    width: 6px;
    height: 6px;
    background: var(--blue-light);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: logo-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--blue-glow);
}

@keyframes logo-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}
*/

/* Sections du cartouche */
.cartouche-section {
    padding: 12px 15px;
}

.cartouche-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--blue-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cartouche-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-primary);
}

.cartouche-page {
    text-align: center;
}

.page-title {
    font-size: 18px;
    letter-spacing: 2px;
}

.cartouche-info {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--blue-medium);
    margin-top: 8px;
}

.cartouche-info strong {
    color: var(--blue-primary);
    font-weight: 700;
}

.cartouche-info a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cartouche-info a:hover {
    color: var(--blue-glow);
}

.cartouche-divider {
    display: block;
    height: 2px;
    background-color: #1e4a8f;
    margin: 12px 15px;
    opacity: 0.5;
}

/* Navigation */
.cartouche-nav {
    padding: 12px 15px;
    flex: 1;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    margin-top: 8px;
}

.nav-list li {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--blue-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

/* Barre de progression au hover */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-primary));
    transition: width 0.3s ease;
}

.nav-link::after {
    content: '→';
    position: absolute;
    right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--blue-light);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover {
    background: rgba(30, 74, 143, 0.08);
    border-color: var(--blue-light);
    padding-right: 30px;
}

.nav-link.active {
    background: var(--blue-primary);
    color: var(--paper-bg);
}

.nav-code {
    width: 35px;
    font-weight: 700;
}

.nav-text {
    flex: 1;
}

/* Footer du cartouche */
.cartouche-footer {
    padding: 15px;
    border-top: 2px solid var(--blue-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-compass {
    width: 40px;
    height: 40px;
}

.compass-svg {
    width: 100%;
    height: 100%;
    color: var(--blue-primary);
}

.compass-svg .compass-label {
    font-family: var(--font-mono);
    font-size: 8px;
    fill: var(--blue-primary);
    text-anchor: middle;
}

.cartouche-meta {
    flex: 1;
}

.meta-row {
    font-family: var(--font-mono);
    font-size: 9px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.meta-label {
    color: var(--blue-light);
}

.meta-value {
    color: var(--blue-primary);
    font-weight: 600;
}

.cartouche-page-number {
    width: 45px;
    height: 45px;
    border: 2px solid var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-primary);
}

/* ============================================
   PLAN SVG - PAGE D'ACCUEIL
   ============================================ */

.plan-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Taille du plan SVG - NE PAS DUPLIQUER */

.plan-svg text {
    font-family: var(--font-mono);
    user-select: none;
}

/* Pièces interactives */
.room {
    cursor: none;
    transition: all 0.4s ease;
}

.room .room-fill {
    transition: all 0.4s ease;
    fill: transparent;
}

.room:hover .room-fill {
    fill: rgba(91, 159, 255, 0.15);
}

.room:hover .room-title {
    fill: var(--blue-primary);
    font-weight: 700;
}

.room:hover .room-surface {
    fill: var(--blue-glow);
}

.room.active .room-fill {
    fill: transparent;
}

.room.active .room-title {
    fill: var(--blue-primary);
}

.room:hover {
    filter: drop-shadow(0 4px 15px rgba(30, 74, 143, 0.25));
}

.room.highlight .room-fill {
    fill: rgba(91, 159, 255, 0.2);
}

.room.highlight {
    filter: drop-shadow(0 4px 20px rgba(30, 74, 143, 0.35));
}

.room-title {
    font-size: 16px;
    font-weight: 600;
    fill: var(--blue-primary);
    text-anchor: middle;
}

/* ========== COUPE EN L ========== */
.section-cut-L {
    cursor: pointer;
}

.section-cut-L .cut-marker-A,
.section-cut-L .cut-marker-A-prime {
    transition: all 0.3s ease;
}

.section-cut-L:hover .cut-marker-A circle,
.section-cut-L:hover .cut-marker-A-prime circle {
    fill: var(--blue-primary);
}

.section-cut-L:hover .cut-marker-A text,
.section-cut-L:hover .cut-marker-A-prime text {
    fill: var(--paper-bg);
}

.section-cut-L .cut-line-L {
    transition: opacity 0.4s ease;
}

.section-cut-L:hover .cut-line-L {
    opacity: 1 !important;
}

/* ========== PORTES ANIMÉES ========== */
.door-group {
    cursor: pointer;
}

.door-swing {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.door-group.door-open .door-swing {
    opacity: 0.6;
}

/* ========== FLÈCHE D'ENTRÉE ANIMÉE ========== */
.entry-arrow-group {
    animation: entry-pulse 2s ease-in-out infinite;
}

.entry-arrow-line {
    animation: entry-slide 2s ease-in-out infinite;
}

@keyframes entry-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes entry-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.room-surface {
    font-size: 11px;
    fill: var(--blue-light);
    text-anchor: middle;
}

/* Indicateur de section */
.section-indicator {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--paper-bg);
    border: 2px solid var(--blue-primary);
    padding: 10px 20px;
    font-size: 12px;
    z-index: 50;
}

.indicator-label {
    color: var(--blue-light);
    margin-right: 10px;
}

.indicator-value {
    font-weight: 700;
    color: var(--blue-primary);
}

/* Instructions zoom */
.zoom-instructions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper-bg);
    border: 1px solid var(--blue-light);
    padding: 8px 16px;
    font-size: 10px;
    color: var(--blue-light);
    z-index: 50;
}

/* ============================================
   PAGE PROJETS - ARCHIVE
   ============================================ */

.projets-archive {
    min-height: 100vh;
    margin-right: calc(var(--cartouche-width) + 40px);
    padding: 40px;
    width: calc(100% - var(--cartouche-width) - 80px);
    max-width: calc(100vw - var(--cartouche-width) - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--blue-primary);
    width: 100%;
    max-width: 900px;
}

.archive-title {
    font-family: var(--font-mono);
    font-size: 28px;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.title-code {
    opacity: 0.5;
    margin-right: 10px;
}

.archive-description {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.projets-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    padding: 15px;
}

.projet-card {
    background: var(--paper-bg);
    border: 2px solid var(--blue-primary);
    transition: all 0.3s ease;
    cursor: none;
    overflow: visible;
    width: 400px;
    max-width: 100%;
    position: relative;
}

/* Coins techniques sur les cartes */
.projet-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--blue-primary);
    border-left: 2px solid var(--blue-primary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.projet-card::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--blue-primary);
    border-right: 2px solid var(--blue-primary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(30, 74, 143, 0.2);
}

.projet-card:hover::before {
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    opacity: 1;
}

.projet-card:hover::after {
    bottom: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    opacity: 1;
}

.projet-card-link-wrapper {
    text-decoration: none;
    display: block;
}

.projet-card-image-wrapper {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Effet scan blueprint sur l'image */
.projet-card-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(91, 159, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(91, 159, 255, 0.15) 55%,
        transparent 100%
    );
    z-index: 2;
    transition: left 0.8s ease;
    pointer-events: none;
}

.projet-card:hover .projet-card-image-wrapper::before {
    left: 200%;
}

/* Grille de mesure sur l'image au hover */
.projet-card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.projet-card:hover .projet-card-image-wrapper::after {
    opacity: 1;
}

.projet-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 2px solid var(--blue-primary);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
    transform-origin: left center;
    filter: grayscale(0%) contrast(100%);
}

/* Effet porte qui s'ouvre + léger filtre blueprint */
.projet-card:hover .projet-card-image {
    transform: rotateY(-25deg) scale(1.02);
    filter: grayscale(20%) contrast(110%) brightness(105%);
}

.projet-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 74, 143, 0.9) 0%, rgba(30, 74, 143, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projet-card:hover .projet-card-overlay {
    opacity: 1;
}

/* Symbole porte dans l'overlay */
.projet-card-overlay::before {
    content: '';
    width: 30px;
    height: 50px;
    border: 2px solid var(--paper-bg);
    opacity: 0.5;
    transform: perspective(100px) rotateY(-20deg);
}

.projet-overlay-text {
    color: var(--paper-bg);
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.projet-card-no-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(30, 74, 143, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 143, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-bottom: 2px solid var(--blue-primary);
}

.projet-placeholder {
    padding: 30px 50px;
    border: 2px dashed var(--blue-light);
}

.placeholder-code {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-light);
}

.projet-card-content {
    padding: 25px 20px;
    text-align: center;
    background: #fafaf8;
}

.projet-card-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.projet-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(30, 74, 143, 0.12);
    justify-content: center;
}

.projet-meta-item {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(30, 74, 143, 0.06);
    border-radius: 3px;
    border: 1px solid rgba(30, 74, 143, 0.08);
}

.meta-icon {
    font-size: 8px;
    opacity: 0.6;
}

.projet-meta-value {
    color: var(--text-body);
    font-weight: 500;
}

.projet-card-excerpt {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.8;
}

/* No projets */
.no-projets {
    text-align: center;
    padding: 80px 40px;
}

.no-projets p {
    font-size: 18px;
    color: var(--blue-light);
    margin-bottom: 20px;
}

.back-link {
    font-family: var(--font-mono);
    color: var(--blue-primary);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--blue-primary);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--blue-primary);
    color: var(--paper-bg);
}

/* Filtres dans cartouche archive */
.filter-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.filter-list li {
    margin-bottom: 4px;
}

.filter-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-primary);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.filter-link:hover {
    background: rgba(30, 74, 143, 0.08);
    border-color: var(--blue-light);
}

.filter-link.active {
    background: var(--blue-primary);
    color: var(--paper-bg);
}

/* ============================================
   SINGLE PROJET - FICHE DÉTAILLÉE
   ============================================ */

/* Cartouche infos projet */
.cartouche-info-row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 74, 143, 0.1);
}

.cartouche-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.info-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
}

.projet-sections-nav .nav-link {
    padding: 6px 10px;
}

.projet-single {
    padding: 40px;
    margin-right: calc(var(--cartouche-width) + 40px);
    width: calc(100% - var(--cartouche-width) - 80px);
    max-width: calc(100vw - var(--cartouche-width) - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.projet-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--blue-primary);
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.projet-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.projet-meta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.meta-box {
    padding: 15px;
    border: 1px solid var(--blue-light);
    background: rgba(30, 74, 143, 0.02);
}

.meta-box-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-light);
    margin-bottom: 5px;
}

.meta-box-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-primary);
}

/* Galeries */
.projet-section {
    margin-bottom: 50px;
    width: 100%;
    max-width: 900px;
}

.projet-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* Effet de ligne qui se dessine */
.projet-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
    animation: draw-title-line 1.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes draw-title-line {
    to {
        width: 100%;
    }
}

.projet-section-title::before {
    content: '◇';
    display: block;
    font-size: 10px;
    color: var(--blue-light);
    animation: diamond-pulse 2s ease-in-out infinite;
}

@keyframes diamond-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }
}

.projet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.projet-gallery-item {
    border: 2px solid var(--blue-primary);
    overflow: hidden;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

/* Coins décoratifs style plan */
.projet-gallery-item::before,
.projet-gallery-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid var(--blue-light);
    transition: all 0.4s ease;
    z-index: 2;
    opacity: 0;
}

.projet-gallery-item::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.projet-gallery-item::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.projet-gallery-item:hover::before,
.projet-gallery-item:hover::after {
    width: 25px;
    height: 25px;
    opacity: 1;
}

.projet-gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(30, 74, 143, 0.25),
        0 0 0 1px rgba(91, 159, 255, 0.3);
}

.projet-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.projet-gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.1);
}

/* Description */
.projet-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--blue-secondary);
    max-width: 800px;
    text-align: center;
    width: 100%;
}

.projet-description p {
    margin-bottom: 15px;
}

/* Plans */
.projet-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.plan-item {
    border: 2px solid var(--blue-primary);
    padding: 15px;
    background: white;
}

.plan-item-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-light);
    margin-bottom: 10px;
    text-align: center;
}

.plan-item img {
    width: 100%;
    height: auto;
}

/* Visite virtuelle */
.visite-virtuelle-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 3px solid var(--blue-primary);
    border-radius: 4px;
    background: var(--paper-bg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 74, 143, 0.2);
}

.visite-virtuelle-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Pano2VR - conteneur principal seulement */
.visite-virtuelle-container > .ggpkg,
.visite-virtuelle-container > div:first-child {
    width: 100% !important;
    height: 100% !important;
}

/* Option hauteur pour différentes tailles d'écran */
@media (max-width: 768px) {
    .visite-virtuelle-container {
        height: 350px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .visite-virtuelle-container {
        height: 500px;
    }
}

/* Navigation projet */
.projet-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--blue-primary);
}

.projet-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-primary);
    text-decoration: none;
    font-size: 12px;
    padding: 10px 20px;
    border: 1px solid var(--blue-primary);
    transition: all 0.3s ease;
}

.projet-nav-link:hover {
    background: var(--blue-primary);
    color: var(--paper-bg);
}

/* ============================================
   OVERLAY CONTENU (Bienvenue, etc.)
   ============================================ */

.content-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: calc(var(--cartouche-width) + 40px);
    background: var(--paper-bg);
    border-top: 3px solid var(--blue-primary);
    padding: 30px 40px;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    max-height: 40vh;
    overflow-y: auto;
}

.content-overlay.active {
    transform: translateY(0);
}

.content-overlay .close-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: 1px solid var(--blue-primary);
    color: var(--blue-primary);
    padding: 5px 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: none;
    transition: all 0.3s ease;
}

.content-overlay .close-overlay:hover {
    background: var(--blue-primary);
    color: var(--paper-bg);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-primary);
    margin: 0;
}

.section-code {
    font-size: 12px;
    color: var(--blue-light);
    padding: 4px 10px;
    border: 1px solid var(--blue-light);
}

.accueil-content {
    max-width: 600px;
}

.accueil-intro {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.accueil-instruction {
    font-size: 12px;
    color: var(--blue-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-icon {
    color: var(--blue-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    :root {
        --cartouche-width: 240px;
    }
}

@media (max-width: 900px) {
    .cartouche {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        order: -1;
        border-width: 2px;
    }
    
    .main-content {
        padding-right: 40px;
    }
    
    .projet-single {
        padding-right: 40px;
    }
    
    body {
        cursor: auto;
    }
    
    .cursor-crosshair {
        display: none;
    }
    
    .projets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 20px;
    }
    
    .projet-title {
        font-size: 24px;
    }
    
    .projet-gallery {
        grid-template-columns: 1fr;
    }
    
    .projet-plans {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STYLES PAGES SÉPARÉES
   ============================================ */

/* Container page */
.page-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    padding-right: calc(var(--cartouche-width) + 80px);
    box-sizing: border-box;
    max-width: calc(100vw - 40px);
    overflow-x: hidden;
}

.page-content > * {
    width: 100%;
    max-width: 800px;
}

/* Header de section page */
.section-header-page {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 50px;
}

.section-header-page .section-code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-light);
    border: 1px solid var(--blue-light);
    padding: 5px 10px;
    justify-self: end;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
    justify-self: start;
}

.back-link:hover {
    color: var(--blue-primary);
}

.back-arrow {
    font-size: 18px;
}

.section-title-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.section-title-box h1 {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-primary);
    margin: 0;
}

.page-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--blue-light);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE: À PROPOS
   ============================================ */

.apropos-page-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.apropos-text {
    max-width: 700px;
    text-align: center;
}

.apropos-text .lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.apropos-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--blue-primary);
    margin-bottom: 15px;
    opacity: 0.85;
}

.apropos-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    border-top: 2px solid var(--blue-primary);
    padding-top: 30px;
    width: 100%;
    max-width: 700px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-primary);
}

.apropos-philosophy {
    border: 2px solid var(--blue-primary);
    padding: 30px;
    background: rgba(30, 74, 143, 0.02);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.apropos-philosophy h2 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apropos-philosophy blockquote {
    font-family: var(--font-mono);
    font-size: 18px;
    font-style: italic;
    color: var(--blue-primary);
    margin: 0 0 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--blue-light);
}

.apropos-philosophy p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 10px;
}

.apropos-philosophy p:last-child {
    margin-bottom: 0;
}

/* Nouvelles sections À propos */
.apropos-intro {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 20px;
}

.apropos-intro .lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--blue-primary);
}

.apropos-section {
    width: 100%;
    max-width: 700px;
}

.apropos-section h2 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(30, 74, 143, 0.2);
}

.apropos-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 15px;
}

.apropos-section p:last-child {
    margin-bottom: 0;
}

.apropos-section .cta-text {
    margin-top: 25px;
    padding: 20px;
    background: rgba(30, 74, 143, 0.03);
    border: 1px solid rgba(30, 74, 143, 0.1);
    text-align: center;
}

.apropos-section .cta-text a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.apropos-section .cta-text a:hover {
    color: var(--blue-secondary);
}

/* ============================================
   PAGE: SERVICES
   ============================================ */

.services-page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 800px;
}

.service-card {
    border: 2px solid var(--blue-primary);
    padding: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

/* Ligne animée au hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--blue-primary), var(--blue-light));
    transition: height 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light), var(--blue-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    background: rgba(30, 74, 143, 0.05);
    transform: translateY(-5px) translateX(5px);
    box-shadow: 
        -5px 5px 0 var(--blue-light),
        0 15px 40px rgba(30, 74, 143, 0.15);
}

.service-code {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--blue-light);
}

.service-card h3 {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--blue-light);
    margin-bottom: 15px;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(30, 74, 143, 0.2);
    padding-top: 15px;
}

.service-details li {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-light);
    padding: 5px 0;
}

.service-details li::before {
    content: "› ";
    color: var(--blue-primary);
}

.services-cta {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--blue-light);
    width: 100%;
    max-width: 800px;
}

.services-cta p {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-light);
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--blue-primary);
    background: var(--blue-primary);
    color: var(--paper-bg);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: transparent;
    color: var(--blue-primary);
}

/* ============================================
   PAGE: GALERIE
   ============================================ */

.galerie-page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.galerie-item {
    aspect-ratio: 16/10;
    border: 2px solid var(--blue-primary);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galerie-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(30, 74, 143, 0.15);
}

.galerie-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-mono);
    background: 
        linear-gradient(rgba(30, 74, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 143, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.galerie-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-primary);
    opacity: 0.3;
}

.galerie-title {
    font-size: 14px;
    color: var(--blue-primary);
}

.galerie-desc {
    font-size: 10px;
    color: var(--blue-light);
}

.galerie-info {
    padding: 20px;
    border: 1px solid var(--blue-light);
    background: rgba(30, 74, 143, 0.02);
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.galerie-info p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-light);
    margin: 0;
}

/* ============================================
   PAGE: PROCESS
   ============================================ */

.process-page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.process-timeline {
    position: relative;
    padding-left: 100px;
    width: 100%;
    max-width: 700px;
    overflow: visible;
    margin-left: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue-primary);
}

.process-step {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.step-marker {
    position: absolute;
    left: -100px;
    top: 0;
    width: 70px;
    height: 40px;
    border: 2px solid var(--blue-primary);
    background: var(--paper-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-primary);
}

.step-content h3 {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--blue-light);
    margin-bottom: 15px;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-light);
    padding: 4px 0;
}

.step-details li::before {
    content: "• ";
    color: var(--blue-primary);
}

.process-cta {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--blue-light);
    width: 100%;
    max-width: 700px;
}

.process-cta p {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-light);
    margin-bottom: 15px;
}

/* ============================================
   PAGE: CONTACT
   ============================================ */

.contact-page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    width: 100%;
    max-width: 800px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--blue-light);
    text-transform: uppercase;
}

.contact-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-primary);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--blue-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages du formulaire */
.form-message {
    padding: 15px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 2px solid;
    margin-bottom: 10px;
}

.form-message-success {
    background: rgba(46, 125, 50, 0.1);
    border-color: #2e7d32;
    color: #2e7d32;
}

.form-message-error {
    background: rgba(198, 40, 40, 0.1);
    border-color: #c62828;
    color: #c62828;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-light);
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid var(--blue-primary);
    background: transparent;
    padding: 12px 15px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(30, 74, 143, 0.05);
    border-color: var(--blue-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border: 2px solid var(--blue-primary);
    background: var(--blue-primary);
    color: var(--paper-bg);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--blue-secondary);
}

.btn-code {
    font-size: 10px;
    opacity: 0.7;
}

/* Checkboxes style blueprint */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid var(--blue-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--blue-primary);
}

.checkbox-item:hover {
    background: rgba(30, 74, 143, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--blue-primary);
    background: transparent;
    cursor: pointer;
    accent-color: var(--blue-primary);
}

.checkbox-item input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.checkbox-item:has(input:checked) {
    background: rgba(30, 74, 143, 0.1);
    border-color: var(--blue-glow);
}

.contact-map {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
}

.map-placeholder {
    height: 200px;
    border: 2px solid var(--blue-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: 
        linear-gradient(rgba(30, 74, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 143, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.map-icon {
    font-size: 32px;
}

.map-placeholder span:last-child {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-primary);
}

/* ============================================
   SUREFORMS - STYLE BLUEPRINT
   ============================================ */

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

/* Labels */
.srfm-block-single label,
.srfm-block label,
.srfm-form label {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    color: var(--blue-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Inputs, textareas, selects */
.srfm-block-single input,
.srfm-block-single textarea,
.srfm-block-single select,
.srfm-form input[type="text"],
.srfm-form input[type="email"],
.srfm-form input[type="tel"],
.srfm-form textarea,
.srfm-form select {
    border: 2px solid var(--blue-primary) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 12px 15px !important;
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    color: var(--blue-primary) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.srfm-block-single input:focus,
.srfm-block-single textarea:focus,
.srfm-block-single select:focus,
.srfm-form input:focus,
.srfm-form textarea:focus,
.srfm-form select:focus {
    background: rgba(30, 74, 143, 0.05) !important;
    border-color: var(--blue-glow) !important;
    box-shadow: none !important;
}

/* Textarea */
.srfm-form textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Bouton submit */
.srfm-form button[type="submit"],
.srfm-submit-btn,
.srfm-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 25px !important;
    border: 2px solid var(--blue-primary) !important;
    border-radius: 0 !important;
    background: var(--blue-primary) !important;
    color: var(--paper-bg) !important;
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.srfm-form button[type="submit"]:hover,
.srfm-submit-btn:hover,
.srfm-btn:hover {
    background: var(--blue-secondary) !important;
}

/* Messages succès/erreur */
.srfm-success-message,
.srfm-form .srfm-success {
    background: rgba(46, 125, 50, 0.1) !important;
    border: 2px solid #2e7d32 !important;
    color: #2e7d32 !important;
    padding: 15px 20px !important;
    font-family: var(--font-mono) !important;
    border-radius: 0 !important;
}

.srfm-error-message,
.srfm-form .srfm-error {
    background: rgba(198, 40, 40, 0.1) !important;
    border: 2px solid #c62828 !important;
    color: #c62828 !important;
    padding: 15px 20px !important;
    font-family: var(--font-mono) !important;
    border-radius: 0 !important;
}

/* Placeholder */
.srfm-form input::placeholder,
.srfm-form textarea::placeholder {
    color: var(--blue-light) !important;
    opacity: 0.6 !important;
}

/* Espacement entre champs */
.srfm-block,
.srfm-block-single {
    margin-bottom: 20px !important;
}

/* ============================================
   RESPONSIVE PAGES
   ============================================ */

@media (max-width: 1200px) {
    .page-content {
        padding: 40px;
        padding-right: calc(var(--cartouche-width) + 60px);
    }
    
    .apropos-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .page-content {
        padding: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        padding-left: 70px;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-marker {
        left: -70px;
        width: 50px;
        font-size: 10px;
    }
}

/* ============================================
   MENU MOBILE - HAMBURGER
   ============================================ */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    background: var(--paper-bg);
    border: 2px solid var(--blue-primary);
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    /* Amélioration tactile mobile */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--blue-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 74, 143, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE COMPLET
   ============================================ */

/* Tablette paysage */
@media (max-width: 1200px) {
    :root {
        --cartouche-width: 220px;
    }
    
    .plan-svg {
        max-width: 100%;
    }
    
    .projets-grid {
        gap: 30px;
    }
    
    .projet-card {
        width: 350px;
    }
}

/* Tablette portrait et mobile */
@media (max-width: 900px) {
    :root {
        --cartouche-width: 280px;
    }
    
    /* Menu hamburger visible */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        pointer-events: auto;
    }
    
    /* Cartouche caché par défaut sur mobile */
    .cartouche {
        position: fixed !important;
        right: -300px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        z-index: 9999;
        transition: right 0.4s ease;
        overflow-y: auto;
        background: var(--paper-bg);
        border-left: 2px solid var(--blue-primary);
    }
    
    .cartouche.active {
        right: 0 !important;
    }
    
    .cartouche-inner {
        border: none;
        display: flex;
        flex-direction: column;
        padding-top: 70px; /* Espace pour le bouton burger */
    }
    
    /* Réorganiser pour mobile : Navigation en priorité */
    .cartouche-logo {
        order: 1;
    }
    
    .cartouche-nav {
        order: 2;
        margin-top: 20px;
    }
    
    /* Masquer les sections secondaires sur mobile */
    .cartouche-section {
        display: none;
    }
    
    /* Masquer tous les dividers sur mobile */
    .cartouche-divider {
        display: none;
    }
    
    /* Footer cartouche masqué sur mobile */
    .cartouche-footer {
        display: none;
    }
    
    /* Layout sans cartouche */
    .site-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        padding: 30px 20px;
        padding-right: 20px;
    }
    
    .projet-single {
        padding: 30px 20px;
        padding-right: 20px;
    }
    
    .page-content {
        padding: 30px 20px;
        padding-right: 20px;
    }
    
    /* Curseur désactivé */
    body {
        cursor: auto;
    }
    
    .cursor-crosshair {
        display: none !important;
    }
    
    /* Plan SVG responsive */
    .plan-container {
        padding: 20px;
    }
    
    .plan-main {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .plan-svg {
        min-width: 600px;
        height: auto;
    }
    
    /* Header archive */
    .archive-header {
        padding: 20px 0;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    /* Grille projets */
    .projets-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .projet-card {
        width: 100%;
        max-width: 450px;
    }
    
    /* Projet single */
    .projet-header {
        padding: 20px 0;
    }
    
    .projet-title {
        font-size: 24px;
    }
    
    .projet-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .projet-gallery {
        grid-template-columns: 1fr;
    }
    
    .projet-section {
        padding: 20px 0;
    }
    
    .projet-section-title {
        font-size: 16px;
    }
    
    .projet-hero {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .projet-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .projet-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    /* Navigation sections projet dans cartouche */
    .projet-nav-sections {
        display: none;
    }
    
    /* Masquer filtres sur mobile */
    .filtres-section {
        display: none;
    }
    
    /* À propos */
    .apropos-details {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    /* Process */
    .process-timeline {
        padding-left: 60px;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-marker {
        left: -60px;
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .main-content,
    .projet-single,
    .page-content {
        padding: 20px 15px;
    }
    
    /* Plan SVG */
    .plan-container {
        padding: 10px;
        overflow: visible;
    }
    
    .plan-main {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 80vh;
        padding: 10px 0;
    }
    
    .plan-svg {
        min-width: unset;
        width: 75vh;
        max-width: 550px;
        height: auto;
        transform: rotate(90deg);
        transform-origin: center center;
    }
    
    /* Textes des pièces - plus grands sur mobile */
    .plan-svg .room-title {
        font-size: 12px;
    }
    
    /* Masquer les surfaces S: sur mobile */
    .plan-svg .room-surface {
        display: none;
    }
    
    /* Masquer la coupe en L sur mobile */
    .section-cut-L {
        display: none;
    }
    
    /* Masquer la flèche d'entrée sur mobile (devient confuse après rotation) */
    .entry-arrow-group {
        display: none;
    }
    
    .coupe-marker {
        display: none;
    }
    
    /* Typographie */
    .archive-title,
    .projet-title,
    .section-title-box h1 {
        font-size: 20px;
    }
    
    .archive-description {
        font-size: 12px;
    }
    
    /* Cartes projet */
    .projet-card {
        max-width: 100%;
    }
    
    .projet-card-image {
        height: 200px;
    }
    
    .projet-card-content {
        padding: 20px 15px;
    }
    
    .projet-card-title {
        font-size: 14px;
    }
    
    .projet-card-meta {
        flex-direction: column;
        align-items: center;
    }
    
    /* À propos */
    .apropos-details {
        grid-template-columns: 1fr;
    }
    
    .apropos-philosophy {
        padding: 20px;
    }
    
    .apropos-philosophy blockquote {
        font-size: 14px;
    }
    
    /* Services */
    .service-card {
        padding: 25px 20px;
    }
    
    /* Galerie */
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-info,
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Process */
    .process-timeline {
        padding-left: 50px;
    }
    
    .process-timeline::before {
        left: 15px;
    }
    
    .step-marker {
        left: -50px;
        width: 30px;
        height: 30px;
        font-size: 9px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    /* Section header */
    .section-header-page {
        margin-bottom: 30px;
    }
    
    .section-title-box {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Visite virtuelle */
    .visite-virtuelle-container {
        height: 250px;
    }
    
    /* Footer cartouche simplifié sur mobile */
    .cartouche-footer {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .mini-compass {
        display: none;
    }
}

/* Très petit écran */
@media (max-width: 380px) {
    .plan-svg {
        min-width: 400px;
    }
    
    .projet-card-meta {
        gap: 8px;
    }
    
    .projet-meta-item {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* Orientation paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .cartouche {
        padding: 15px;
    }
    
    .cartouche-section {
        margin-bottom: 10px;
    }
    
    .cartouche-divider {
        margin: 10px 0;
    }
    
    .nav-list li {
        margin-bottom: 3px;
    }
    
    .nav-link {
        padding: 5px 10px;
    }
}

