/* === VARIABLES CSS === */
:root {
    /* Palette principale */
    --smoky-black: #191510;
    --beaver: #9f816f;
    --dun: #dac8ae;
    --teal: #007f80;
    --tiffany-blue: #82d9d0;
    --white: #ffffff;
    
    /* HSL alternatives */
    --smoky-black-hsl: hsla(36, 24%, 4%, 1);
    --beaver-hsl: hsla(22, 20%, 53%, 1);
    --dun-hsl: hsla(35, 37%, 77%, 1);
    --teal-hsl: hsla(180, 100%, 25%, 1);
    --tiffany-blue-hsl: hsla(174, 53%, 68%, 1);
    --white-hsl: hsla(0, 0%, 100%, 1);
    
    /* Variations alpha */
    --teal-alpha: rgba(0, 127, 128, 0.1);
    --tiffany-alpha: rgba(130, 217, 208, 0.1);
    --beaver-alpha: rgba(159, 129, 111, 0.1);
    
    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.95);
    --glass-light: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Ombres */
    --shadow-light: 0 8px 32px rgba(13, 11, 8, 0.1);
    --shadow-medium: 0 15px 35px rgba(13, 11, 8, 0.12);
    --shadow-heavy: 0 25px 50px rgba(13, 11, 8, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--smoky-black);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--dun) 100%);
}

/* === GLASSMORPHISM EFFECTS === */
.glassmorphism {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

.glassmorphism-section {
    background: var(--glass-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    margin: 3rem 0;
    padding: 5rem 0;
    border: 1px solid var(--glass-border);
}

/* === GLOBAL BACKGROUND === */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(218, 200, 174, 0.8) 50%, rgba(159, 129, 111, 0.3) 100%),
        url('../img/sga-interieur-bg.webp') center center/cover no-repeat,
        linear-gradient(135deg, var(--white) 0%, var(--dun) 50%, var(--beaver) 100%);
    z-index: -2;
    opacity: 0;
    transition: opacity 2s ease;
}

.global-background.visible {
    opacity: 1;
}

/* === ANIMATION BLUEPRINT === */
.blueprint-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--smoky-black) 0%, #1a1816 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.blueprint-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.blueprint-canvas {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ACTIVATION DE VOS VRAIES IMAGES */
.sketch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(13, 11, 8, 0.3) 0%, rgba(159, 129, 111, 0.4) 100%),
        url('../img/sga-sketch.webp') center center/cover no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
    filter: sepia(20%) hue-rotate(15deg) brightness(1.1);
}

.real-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(218, 200, 174, 0.2) 100%),
        url('../img/sga-interieur-bg.webp') center center/cover no-repeat;
    opacity: 0;
    z-index: 2;
    transition: opacity 1s ease;
}

.skip-animation {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.skip-animation:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1.5s ease;
    position: relative;
    z-index: 1;
}

.main-content.visible {
    opacity: 1;
}

/* === NAVIGATION === */
.navbar {
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--glass-white) !important;
    box-shadow: var(--shadow-medium);
}

/* === NAVBAR BRAND REDESIGN === */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 1rem;
}

.brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--teal-alpha);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}

.brand-line-1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--smoky-black);
    line-height: 1.2;
    letter-spacing: 1.4px;
}

.brand-line-2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--teal);
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Hover effects */
.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .brand-logo {
    background: var(--beaver);
    transform: rotate(5deg);
    box-shadow: 0 6px 20px var(--beaver-alpha);
}

.navbar-brand:hover .brand-line-1 {
    color: var(--teal);
}

.navbar-brand:hover .brand-line-2 {
    color: var(--beaver);
}

.nav-link {
    color: var(--smoky-black) !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--teal-alpha), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal) !important;
    background: var(--teal-alpha);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.hero-content {
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: heroFadeIn 1s ease 0.5s forwards;
}

@keyframes heroFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.hero-content:hover::before {
    left: 100%;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: var(--transition-smooth);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--teal-alpha) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image:hover .hero-image-overlay {
    opacity: 1;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--smoky-black);
    background: linear-gradient(135deg, var(--smoky-black) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.hero-subtitle {
    display: block;
    color: var(--teal);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--smoky-black);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* === BUTTONS === */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--teal) 0%, var(--tiffany-blue) 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--teal-alpha);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tiffany-blue) 0%, var(--beaver) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary-custom:hover::before {
    left: 0;
}

.btn-primary-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--teal-alpha);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--smoky-black);
    border: 2px solid var(--teal);
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* === SECTIONS === */
.content-section {
    padding: 5rem 0;
    margin: 3rem 0;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 600;
    color: var(--smoky-black);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--tiffany-blue) 100%);
    border-radius: 2px;
}

/* === CARDS MODERNES === */
.modern-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--tiffany-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
    display: inline-block;
}

.modern-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--beaver);
}

.feature-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--smoky-black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.expertise-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.highlight-tag {
    background: var(--teal-alpha);
    color: var(--teal);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--teal);
}

/* === SERVICES === */
.service-card {
    text-align: center;
    position: relative;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.3) rotate(15deg);
    color: var(--beaver);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--smoky-black);
    margin-bottom: 1rem;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: var(--teal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* === PORTFOLIO === */
.portfolio-card {
    padding: 0;
    overflow: hidden;
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--smoky-black) 100%);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.apartment-project {
    background: linear-gradient(135deg, var(--teal) 0%, var(--tiffany-blue) 100%);
}

.office-project {
    background: linear-gradient(135deg, var(--dun) 0%, var(--beaver) 100%);
}

.villa-project {
    background: linear-gradient(135deg, var(--white) 0%, var(--teal) 100%);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.portfolio-card:hover .portfolio-image::before {
    left: 100%;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--smoky-black);
    margin-bottom: 1rem;
}

.project-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.spec {
    background: var(--teal-alpha);
    color: var(--teal);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--teal);
}

/* === MÉTHODE === */
.method-card {
    text-align: center;
    position: relative;
}

.method-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--tiffany-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-light);
}

.method-card:hover .method-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: var(--shadow-medium);
}

.method-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--smoky-black);
    margin-bottom: 1rem;
}

/* === CONTACT === */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--teal-alpha);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: var(--teal);
    color: white;
    transform: translateX(10px);
}

.contact-item i {
    color: var(--teal);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    transition: var(--transition-smooth);
}

.contact-item:hover i {
    color: white;
}

.contact-item a {
    color: var(--smoky-black);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-item:hover a {
    color: white;
}

.advantages-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--teal-alpha);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.advantage-item:hover {
    background: var(--teal);
    color: white;
    transform: scale(1.05);
}

.advantage-item i {
    color: var(--teal);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.advantage-item:hover i {
    color: white;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.contact-note {
    text-align: center;
    color: var(--teal);
    font-style: italic;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--smoky-black) 0%, #1a1816 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.footer-brand {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    padding: 0.3rem 0;
}

.footer-link:hover {
    color: var(--tiffany-blue);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--teal-alpha);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 2px solid var(--teal);
}

.social-link:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* === ANIMATIONS & SCROLL === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hero-text {
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        text-align: center;
        justify-content: center;
    }
    
    .glassmorphism-section {
        margin: 2rem 0;
        padding: 3rem 0;
    }
    
    .modern-card {
        padding: 2rem;
    }
    
    .contact-cta {
        flex-direction: column;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-main {
        font-size: 1.8rem;
    }
    
    .brand-sub {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .modern-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .skip-animation {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .method-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-icon,
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .skip-animation {
        display: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Focus states */
.nav-link:focus,
.btn-primary-custom:focus,
.btn-outline-custom:focus,
.skip-animation:focus {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

/* === UTILITAIRES === */
.text-copper {
    color: var(--teal);
}

.bg-copper {
    background-color: var(--teal);
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ms-2 {
    margin-left: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.text-md-end {
    text-align: right;
}

@media (max-width: 768px) {
    .text-md-end {
        text-align: center;
    }
}