/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary: #9B8A72; /* Warm, elegant taupe */
    --primary-dark: #7A6953;
    --text-main: #2C2C2C;
    --text-muted: #666666;
    --bg-main: #FAFAFA;
    --bg-light: #F5F5F0;
    --white: #FFFFFF;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 138, 114, 0.2);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
}

.header:not(.scrolled) .logo,
.header:not(.scrolled) .nav a:not(.btn) {
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a:not(.btn) {
    font-size: 15px;
    font-weight: 400;
}

.nav a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0;
}

.hero-content .subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    color: #E2D7C8;
}

.hero-content h1 {
    color: var(--white);
    font-size: 72px;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    font-weight: 300;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.about-heading h2 {
    margin-bottom: 0;
}

.about-heading {
    text-align: center;
    margin-bottom: 42px;
}

.about p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.about-main {
    margin-bottom: 24px;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 32px;
}

.features-list li {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.features-list .icon {
    margin-right: 12px;
    color: var(--primary);
}

.insight-box {
    margin-top: 0;
    padding: 32px;
    background: var(--white);
    border: 1px solid rgba(155, 138, 114, 0.18);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.insight-box h3 {
    font-size: 30px;
    margin-bottom: 18px;
    text-align: center;
}

.insight-box p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.insight-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.insight-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.insight-card {
    background: var(--bg-main);
    border: 1px solid rgba(155, 138, 114, 0.15);
    border-radius: 4px;
    padding: 16px;
}

.insight-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.insight-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.insight-card p {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}

.insight-impact {
    padding: 16px 18px;
    border-left: 3px solid var(--primary);
    background: var(--bg-light);
}

.insight-closing {
    margin-bottom: 0;
    color: var(--text-main);
    font-weight: 600;
}

.insight-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.insight-cta {
    margin: 0;
}

.about-image .image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 560px;
}

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

.image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section h2 {
    font-size: 42px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(155, 138, 114, 0.08);
    border-color: rgba(155, 138, 114, 0.2);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.service-link {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery h2 {
    font-size: 42px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.05s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ==========================================================================
   Qui suis-je Section
   ========================================================================== */
.whoami h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.whoami p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 20px;
}

.whoami .features-list {
    margin: 32px 0;
}

/* ==========================================================================
   Partenaires Section
   ========================================================================== */
.partners .section-header {
    max-width: 760px;
    margin: 0 auto 56px;
}

.partners h2 {
    font-size: 42px;
}

.partners .section-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 16px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.partner-card {
    background: var(--bg-light);
    border: 1px solid rgba(155, 138, 114, 0.16);
    border-radius: 4px;
    padding: 32px;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(155, 138, 114, 0.35);
}

.partner-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.partner-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.contact p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

.info-block {
    margin-bottom: 24px;
}

.info-block strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}

.info-block span,
.info-block a {
    color: var(--text-muted);
    font-size: 16px;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact .form-intro {
    margin: 0 0 24px;
    padding: 12px 14px;
    border-left: 3px solid var(--primary);
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.contact .form-contact-mail {
    margin: -8px 0 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact .form-contact-mail a {
    color: var(--primary);
    text-decoration: underline;
}

.contact .form-contact-mail a:hover {
    color: var(--primary-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 2px;
    background: var(--bg-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(155, 138, 114, 0.1);
}

.form-group input[type="file"] {
    padding: 12px;
    background: var(--white);
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-consent {
    margin-top: -8px;
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

.checkbox-wrap span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #1A1A1A;
    color: var(--white);
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo {
    color: var(--white);
}

.footer p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav { gap: 24px; }
    .nav a:not(.btn) { font-size: 14px; }
    .nav .btn {
        padding: 10px 24px;
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-heading { margin-bottom: 32px; }
    .about-main { margin-bottom: 24px; }
    .about-image .image-wrapper { min-height: 460px; }
    .insight-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 56px; }
    .contact h2, .gallery h2, .services-section h2, .about h2, .whoami h2, .partners h2 { font-size: 36px; }
}

@media (max-width: 768px) {
    .nav { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 99;
    }
    .nav.active {
        right: 0;
    }
    .nav a:not(.btn) {
        color: var(--text-main) !important;
        font-size: 18px;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 100;
    }
    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
        transform-origin: center;
    }
    .header:not(.scrolled) .mobile-menu-btn:not(.active) span { background: var(--white); }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: var(--text-main);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: var(--text-main);
    }
    
    .services-grid, .gallery-grid, .partners-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .about-image .image-wrapper { min-height: 340px; }
    .insight-grid { grid-template-columns: 1fr; }
    .insight-box { padding: 24px; }
    .insight-box h3 { font-size: 26px; }
    .hero-content h1 { font-size: 42px; }
    .section { padding: 60px 0; }
    .contact-form { padding: 32px 24px; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
}
