/* GP2I - Design professionnel moderne 2025 */

:root {
    /* Palette marron chocolat professionnelle */
    --color-primary: #3E2723;
    --color-secondary: #8D6E63;
    --color-accent: #D4A373;
    --color-dark: #1C1210;
    --color-light: #F5F1ED;
    --color-text: #4A3933;
    --color-success: #6B8E23;
    
    /* Effet glass subtil et professionnel */
    --glass-bg: rgba(245, 241, 237, 0.95);
    --glass-blur: 20px;
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #F5F1ED 0%, #E8DFD7 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

nav > div {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav > div > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

nav > div > a::before {
    display: none;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

nav > div > a:hover .logo-img {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    line-height: 1;
    padding: 0;
    margin: 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li:last-child a {
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

nav ul li:last-child a::after {
    display: none;
}

nav ul li:last-child a:hover {
    background: white;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

/* HERO SECTION */
section:first-of-type {
    margin-top: 80px;
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(245, 158, 11, 0.1));
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h1 .highlight {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 2.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 2.5rem;
    background: white;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* HERO VISUAL & CAROUSEL */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.08), rgba(141, 110, 99, 0.08));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(212, 163, 115, 0.3);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(141, 110, 99, 0.2), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 163, 115, 0.2), transparent 50%);
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* HERO STATS */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(51, 65, 85, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

/* SECTION SERVICES */
#services {
    padding: 8rem 3rem;
    background: url(../images/img9.jpg) center/cover fixed;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 241, 237, 0.6);
    pointer-events: none;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: transparent;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    isolation: isolate;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-20px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    background: rgba(255, 255, 255, 0.35);
}

.service-icon,
.service-card h3,
.service-card p,
.service-features,
.service-link {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.4);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.service-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 900;
    font-size: 1.2rem;
}

.service-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 1rem;
    color: var(--color-secondary);
}

/* CTA SECTION */
.cta-section {
    text-align: center;
    padding: 8rem 3rem;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(62, 39, 35, 0.4), rgba(141, 110, 99, 0.4)),
        url(../images/img8.jpg) center/cover;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 163, 115, 0.2), transparent);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section .section-label {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section h2 {
    margin-top: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section .section-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-section .btn-primary {
    font-size: 1.1rem;
    padding: 1.3rem 3rem;
    background: white;
    color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-primary:hover {
    background: var(--color-accent);
    color: white;
}

/* CONTACT PAGE */
.contact-header {
    padding: 10rem 3rem 4rem;
    background: var(--color-light);
    text-align: center;
    display: block;
}

.contact-title,
.contact-subtitle {
    display: block;
    width: 100%;
}

.contact-title {
    margin-bottom: 1.5rem;
}

.contact-title h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--color-dark);
    margin: 0;
}

.contact-subtitle {
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle p {
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

.contact-form-section {
    padding: 4rem 3rem 6rem;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 163, 115, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(141, 110, 99, 0.15), transparent 50%),
        var(--color-light);
}

.contact-info-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(62, 39, 35, 0.1);
}

.contact-info-footer p {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-info-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-footer a:hover {
    color: var(--color-accent);
}

/* FOOTER */
footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom nav {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-bottom nav > div {
    padding: 0;
}

.footer-bottom nav a {
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    section:first-of-type {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav > div {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    section:first-of-type {
        padding: 4rem 1.5rem;
        margin-top: 200px;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-section {
        padding: 5rem 2rem;
    }
    
    .contact-header {
        padding: 8rem 2rem 3rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* FIX CONTACT - Forcer affichage vertical */
.contact-header,
.contact-header > div {
    display: block !important;
    flex-direction: column !important;
}

.contact-title,
.contact-subtitle {
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.contact-title {
    margin-bottom: 1.5rem !important;
}

.contact-subtitle {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
