/* --- Original style.css --- */
/* Main CSS for MARTIN Gestion SA Landing Page */

:root {
    --primary-color: #00504B;
    /* Deep Martin Blue refined */
    --primary-dark: #003e3a;
    --secondary-color: #004d47;
    /* Lighter variant */
    --accent-color: #C5A059;
    /* Kept Gold for refined accents */
    --text-dark: #1A1A1A;
    --text-light: #4A4A4A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --accent-grey: #E9ECEF;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 1200px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.no-scroll {
    overflow: hidden !important;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background: #ffffff;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-grey);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.cta-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.cta-nav:hover {
    background-color: #003b36;
    transform: translateY(-2px);
}

/* Sections Common */
section {
    padding: 8rem 0;
}

.section-tag {
    font-family: var(--font-main);
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding: 10rem 0;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(33, 37, 41, 0.6) 0%, rgba(33, 37, 41, 0.15) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: block;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    line-height: 1.25;
    max-width: 800px;
    margin-bottom: 1.5rem;
    color: white;
}


.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }

    .hero p {
        font-size: 1.25rem;
    }
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #003b36;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 77, 71, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Meta and badges styles removed as elements were deleted from HTML */

/* Hero image removed as it's now a background */
.hero-image {
    display: none;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-highlight {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--secondary-color);
}

.about-highlight p {
    font-family: 'Caveat', cursive;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #4A4A4A;
    font-weight: 500;
}

.highlight-signature {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Approach Section */
.approach {
    background: var(--bg-light);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.approach-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.approach-card h3,
.approach-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.approach-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.625;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border: 1px solid var(--accent-grey);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.625;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.7rem;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--accent-grey);
    z-index: 1;
}

.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.625;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
}

.team-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.info-text p {
    margin: 0;
}

.info-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-form {
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent-grey);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.legal-notice {
    margin-top: 4rem;
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 1px solid var(--accent-grey);
    padding-top: 2rem;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    font-family: var(--font-main);
    color: white;
    background: var(--primary-color);
    /* Profond teal de l'image (mis à jour) */
    position: relative;
    z-index: 10;
}

footer h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    font-family: var(--font-main);
}

footer p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.brand-col .logo {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.brand-col .logo span {
    color: var(--accent-color);
    font-weight: 400;
}

.brand-col p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 30px;
}
.contact-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    color: #ffffff;
    font-size: 1rem;
}

.contact-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.legal-list li {
    margin-bottom: 15px;
}

.legal-list a {
    display: flex;
    align-items: center;
}

.legal-list a::before {
    content: '›';
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.bottom-bar {
    margin-top: 80px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 1024px) {

    .hero-content,
    .about-content,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .approach-grid,
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile media queries removed and moved to end of file for priority */


/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Services Section */
.services-featured {
    padding: 100px 0;
    background-color: #F8F9FA;
}

.featured-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.featured-text-col .intro-divider {
    margin: 25px 0;
}

.featured-text-col p {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.featured-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.featured-link:hover {
    gap: 15px;
}

.featured-list-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-card {
    background: white;
    padding: 35px;
    border-radius: 6px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.featured-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.featured-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #F4EBD8;
    /* Light champagne background for icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.featured-card-content h3,
.featured-card-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.featured-card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 1024px) {
    .featured-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}


/* Intro Approach Section */
.approach-intro {
    padding: 100px 0;
    background-color: #ffffff;
}

.intro-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.intro-header .section-title {
    max-width: 100%;
}

.intro-divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 30px auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.intro-card {
    background: #F9FAFB;
    padding: 50px 40px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.intro-card:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(58, 104, 103, 0.1);
    transform: translateY(-5px);
}

.intro-card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.intro-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.intro-card p {
    font-size: 0.875rem;
    line-height: 1.625;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* PROPOSITIONS ÉQUIPE */
.proposal-label {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proposal-section {
    border-top: 2px dashed #eee;
    padding-top: 80px;
}

/* VARIATION 1: Premium Vertical Cards */
/* VARIATION 1: Premium Vertical Cards */
.team-v1 {
    background: #fbfbfc;
    padding: 120px 0;
}

.team-grid-v1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.member-card-v1 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.member-card-v1:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.member-image-v1 {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.member-image-v1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.member-card-v1:hover .member-image-v1 img {
    transform: scale(1.05);
}

.member-content-v1 {
    padding: 25px;
    text-align: center;
}

.member-content-v1 .member-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.member-content-v1 .member-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}


/* VARIATION 2: Duplicata de la V1 */
.team-v2 {
    background: #fbfbfc;
    padding: 120px 0;
}

.team-grid-v2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.member-card-v2 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.member-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.member-image-v2 {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.member-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 71, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}

.member-card-v2:hover .member-overlay-v2 {
    opacity: 1;
}

.member-overlay-v2 p {
    color: white;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.member-card-v2:hover .member-overlay-v2 p {
    transform: translateY(0);
}

.member-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.member-card-v2:hover .member-image-v2 img {
    transform: scale(1.05);
}

.member-content-v2 {
    padding: 25px;
    text-align: center;
}

.member-content-v2 .member-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.member-content-v2 .member-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}


/* VARIATION 4: Modern Side-by-Side */
.team-v4 {
    background: var(--bg-light);
    padding: 120px 0;
}

.team-grid-v4 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.member-row-v4 {
    background: white;
    display: grid;
    grid-template-columns: 350px 1fr;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.member-image-v4 {
    width: 100%;
    height: 400px;
}

.member-image-v4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-content-v4 {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-content-v4 h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.member-content-v4 .role {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.member-content-v4 p {
    color: var(--text-light);
    line-height: 1.8;
}

/* VARIATION 5: Interactive Dark Cards */
.team-v5 {
    background: #00332f;
    padding: 120px 0;
    color: white;
}

.team-v5 .section-title {
    color: white;
}

.team-grid-v5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.member-card-v5 {
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.member-card-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.member-overlay-v5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.4s;
}

.member-card-v5:hover img {
    transform: scale(1.1);
}

.member-card-v5:hover .member-overlay-v5 {
    background: rgba(0, 77, 71, 0.8);
}

.member-overlay-v5 h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.member-overlay-v5 span {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

@media (max-width: 1024px) {

    .team-grid-v1,
    .team-grid-v2,
    .team-grid-v5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-row-v4 {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Modal CV */
.cv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 47, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
}

.cv-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 400px 1fr;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cv-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.modal-img {
    height: 100%;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 60px;
    height: 100%;
    overflow-y: auto;
    background: white;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Custom scrollbar for Webkit (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.modal-body h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.modal-body .role {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1.5rem;
}

.modal-intro {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.cv-section {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.cv-section:first-of-type {
    border-top: 1px solid #eee;
}

.cv-section h4 {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    padding: 20px 0;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.cv-section h4:hover {
    color: var(--accent-color);
}

.cv-section h4::after {
    content: '\f067'; /* Font Awesome plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #ccc;
}

.cv-section.active h4::after {
    content: '\f068'; /* Font Awesome minus */
    color: var(--accent-color);
}

.cv-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
}

.cv-section.active .cv-content {
    max-height: 1000px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
    padding-bottom: 20px;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.cv-list .year {
    font-weight: 800;
    color: var(--primary-color);
    min-width: 90px;
    font-size: 0.95rem;
}

.cv-list .desc {
    color: var(--text-light);
}

.cv-list strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 992px) {
    .modal-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        height: 80vh !important;
        max-height: 80vh !important;
        overflow: hidden !important;
        width: 95% !important;
        margin: 0 auto !important;
    }
    .modal-img {
        height: 160px !important; /* Even smaller to ensure body has room */
        flex-shrink: 0 !important;
        width: 100% !important;
        object-fit: cover;
    }
    .modal-body {
        padding: 25px 20px 60px !important; /* Extra bottom space */
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
        flex-basis: auto !important;
        height: calc(80vh - 160px) !important; /* FORCE THE HEIGHT */
        max-height: calc(80vh - 160px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }

    .modal-body h2 {
        font-size: 2rem !important;
    }

    /* Ensure scrollbar visibility and style on mobile */
    .modal-body::-webkit-scrollbar {
        width: 6px !important;
        display: block !important;
    }
    .modal-body::-webkit-scrollbar-thumb {
        background: var(--accent-color) !important; /* Gold to be visible */
        border-radius: 10px !important;
    }
    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }

    /* CV List stacking on mobile */
    .cv-list li {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .cv-list .year {
        min-width: auto !important;
    }
}

/* --- Source: hero-proposals.css --- */
/* Hero Proposals CSS for MARTIN Patrimoine */

:root {
    --p-gold: #C5A059;
    --p-teal: #00332f;
    --p-dark-teal: #001f1d;
    --p-text: #1A1A1A;
    --p-text-light: #4A4A4A;
    --p-bg-light: #F8F9FA;
}

.proposal-separator {
    height: 80px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    position: relative;
    z-index: 50;
    margin: 0;
}

.proposal-label {
    background: #000;
    color: white;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Base style for all hero proposals to ensure they look like heroes */
.hero-proposal {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* P01: Elegant Center - Professional */
/* P02: Modern Split - Professional */
/* P03: Dark Minimalist - Professional */
/* P04: Geometric Accent - Professional */
/* P05: White Premium Card - Professional */
/* P06: Architectural Grid - Professional */
/* P07: Clean Editorial - Professional */
/* P08: Liquid & Dynamic - Creative */
@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-100px, 50px);
    }
}

/* P09: Typography Art - Creative */
/* 04A: Glassmorphism Centered - Premium */
/* 04B: Asymmetric Bold Split - Modern */
/* 04C: Dark Luxury Gold - Premium */
/* 04D: Floating Minimalist - Elegant */
/* 04E: High-End Magazine - Editorial */
/* 04F: Soft Gradient Glow - Modern */
/* 04G: Brutalist Elegance - Creative */
/* 04H: Vertical Stack Parallax - Premium */
/* 04I: Full Height Video Feel - Impact */
/* 07A: Neo-Classical Layout - Premium */
/* 07B: Minimalist Typography Focus */
/* 07B1: Minimalist Typography Focus (Photo Variant) */
/* 07C: The Swiss Grid - Modern */
/* 07D: Elegant Masking - Creative */
/* 07E: Floating Layers - Premium */
/* 07F: Dark Industrial - Professional */
/* 07F1: Dark Industrial - Photo Variant */
/* 07G: The Gallery Layout - Editorial */
/* 07H: Bauhaus Inspired - Artistic */
/* 07I: The Minimalist Horizon */
/* 04G1: Brutalist with Floating Image */
/* 04G2: Brutalist with Full Background */
/* --- Source: about-proposals.css --- */
/* About Proposals CSS for MARTIN Patrimoine */

.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
}

.about-section .grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-section h2.section-title {
    font-size: 3.5rem;
    color: var(--p-gold);
    margin-bottom: 2rem;
}

.about-section .text-column {
    color: var(--p-text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-section .quote-card {
    background: white;
    border: 1px solid #eee;
    padding: 40px 40px 60px 40px;
    border-left: 5px solid var(--p-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.about-section .quote-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--p-text);
    margin-bottom: 1.5rem;
}

/* P12: Dark Contrast - Professional */
/* P13: Minimalist Horizontal - Professional */
/* P14: Featured Quote - Professional */
/* P15: Modern Overlap - Professional */
/* P16: Column Centered - Professional */
/* P17: Vertical Identity - Professional */
/* P18: Artistic 30y - Creative */
/* 18AA: Minimalist Split-Slide */
/* 18AB: Glassmorphism Floating Overlap */
/* 18AC: The Bauhaus Grid Layout */
/* 18AD: Modern Timeline Concept */
/* 18AE: Typographic Statement */
/* 18AF: Magazine Editorial Style */
/* 18AG: Geometric Bento Reveal */
/* 18AH: Neumorphic Soft Touch */
/* 18AI: Zen Parallel Alignment */
/* 11A: Horizontal Zen - Minimal */
/* 11B: Dark Luxury - Impact */
/* 11C: Clean Lines - Modern */
/* 11D: Floating Imagery - Elegant */
/* 11E: The Column Grid - Structural */
/* 11F: Minimalist Overlay - Premium */
/* 11G: Dual Tone Parallel - Professional */
/* 11H: Bauhaus Layout - Artistic */
/* 11I: Soft Gradient Glow - Modern */
/* P19: Bento Group - Creative */
/* P18b: Variant with BG Image */
/* --- Source: entities-proposals.css --- */
/* entities-proposals.css for MARTIN Patrimoine */

/* P20: Original (labeled) */
.entities-section {
    padding: 80px 0;
    background: #f9f9f9;
}

/* P21: Elegant Minimal Cards - Professional */
/* P22: Dark Horizontal Rows - Professional */
/* P23: Modern Tabs-like Layout - Professional */
/* P24: Visual Cards with Overlay - Professional */
/* P25: Clean Alternating - Professional */
/* P26: Titled Grid - Professional */
/* P27: Icon List Minimal - Professional */
/* P28: Diagonal Split - Creative */
/* P29: Artistic Showcase - Creative */
/* 20E1: Geometric Glow */
/* 20E2: Platinum Minimalist */
/* 20E3: Golden Horizon */
/* 20E4: Split Screen Focus */
/* 20E5: 3D Layered Cards */
/* 20E6: Midnight Gold Shimmer */
/* 20E7: Clean Swiss Grid */
/* 20E8: Floating Bubbles */
/* 20E9: Art Deco Modern */
/* 20D1: Asymmetric Split with Overlap */
/* 20D2: Dark Minimal Grid with Large Numbers */
/* 20D3: Bento Box Modern */
/* 20D4: Floating Glass Layers */
/* 20D5: Bauhaus Artistic Layout */
/* 20D6: Minimalist Vertical Columns */
/* 20D7: Bold Gradient Cards */
/* 20D8: Neo-Brutalist Layout */
/* 20D9: Zen Alignment Minimal */
/* BLACK SPACER */
.black-spacer {
    height: 80px;
    background: #000;
    width: 100%;
}

/* 20A: The Corporate Triplet - Ultra Wide Panels */
/* 20B: The Minimalist Powerhouse - Big Typography */
/* 20C: The Interactive Grid - Premium Dark */
/* 20D: The Dynamic Stack - Large Image Backgrounds */
/* 20E: The Glassmorphism Trio */
/* 20F: The Modern Bento - Huge Tiles */
/* 20G: The Signature Series - Luxury Typography */
/* 20H: The High-End Magazine Layout */
/* 20I: The Futuristic Dark Mode */
/* 21A: Borderless Reveal Cards */
/* 21B: Dark Professional Cards with Top Border */
/* 21C: Circular Icon Center Layout */
/* 21D: Modern Outline Cards with Hover Fill */
/* 21E: Multi-layered Shadow Cards */
/* 21F: Left-aligned Icon with Vertical Trim */
/* 21G: Brutalist Professional */
/* 21H: Minimalist Floating Tags */
/* 21I: Dual-Tone Background Cards */
/* --- Source: approach-proposals.css --- */
/* approach-proposals.css for MARTIN Patrimoine */

/* P30: Original (labeled) */
/* P31: Timeline Style - Professional */
/* P32: Side-by-Side Focus - Professional */
/* P33: Big Number Cards - Professional */
/* P34: Dark Accordion Style - Professional */
/* P35: Icon-focused Grid - Professional */
/* P36: Featured Image Left - Professional */
/* P37: White Space Minimalist - Professional */
/* P38: Abstract Bubbles - Creative */
/* P39: Spline/Modern Scroll - Creative */
/* --- Source: philosophy-proposals.css --- */
/* philosophy-proposals.css for MARTIN Patrimoine */

/* P40: Original (labeled) */
/* P41: Elegant Minimalist - Professional */
.philosophy-section {
    padding: 120px 0;
    background: #fdfdfd;
    text-align: center;
}

.philosophy-section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 4rem;
}

.philosophy-section .item {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.philosophy-section h4 {
    font-size: 1.5rem;
    color: var(--p-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* P42: Dark Split Background - Professional */
/* P43: Glassmorphism Cards - Professional */
/* P44: High Contrast Border - Professional */
/* P45: Vertical Feature Stair - Professional */
/* P46: Modern Geometric Cards - Professional */
/* P47: Premium Serif Layout - Professional */
/* P48: Artistic Floating - Creative */
/* P49: Typo Overlay - Creative */
/* --- Source: methodology-proposals.css --- */
/* methodology-proposals.css for MARTIN Patrimoine */

/* P50: Original (labeled) */
/* P51: Minimal Numeric List - Professional */
.methodology-p51 {
    padding: 120px 0;
    background: #fdfdfd;
}

.methodology-p51 .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.methodology-p51 .step {
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.methodology-p51 .num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--p-gold);
    margin-bottom: 1rem;
}

/* P52: Horizontal Progress Bar - Professional */
/* P53: Alternating Blocks - Professional */
/* P54: Dark Vertical Stack - Professional */
/* P55: Card Grid with Icons - Professional */
/* P56: Clean Table Layout - Professional */
/* P57: Split Content List - Professional */
/* P58: Circular Flow - Creative */
/* P59: Modern Zig-Zag Bento - Creative */
/* --- Source: team-proposals.css --- */
/* team-proposals.css for MARTIN Patrimoine */

/* P60: Original (labeled) */
/* P61: Circle Avatars - Professional */
/* P62: Large Horizontal Cards - Professional */
/* P63: Monochrome & Hover Scale - Professional */
.team-section {
    padding: 100px 0;
    background: #fff;
}

.team-section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-section .card {
    position: relative;
    overflow: hidden;
    filter: grayscale(1);
    transition: 0.5s;
}

.team-section .card:hover {
    filter: grayscale(0);
    transform: translateY(-10px);
}

.team-section .img-box {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-section .info {
    padding: 20px 0;
    border-top: 2px solid #eee;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .team-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-section .grid {
        grid-template-columns: 1fr;
    }
}

/* P64: Bento Style - Professional (Dynamic) */
/* State: Active (Expanded) */
/* P65: Executive List Split - Professional */
/* P66: Dark Gold Premium - Professional */
/* P67: Minimal Profile Cards - Professional */
/* P68: Artistic Floating Cards - Creative */
/* P69: Bold Focus Overlay - Creative */
/* Internal Styles from index.html */
section {
    padding: 12rem 0 !important;
}
.hero {
    min-height: 100vh !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 0 10vh 0 !important;
    background: url('assets/background/valere.webp') center/cover fixed !important;
}
.hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 15, 14, 0) 0%, 
        rgba(0, 15, 14, 0) 30%, 
        rgba(0, 15, 14, 0.5) 80%, 
        rgba(0, 15, 14, 0.5) 100%) fixed !important;
    display: block !important;
}
.hero-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    text-align: center !important;
}
.hero-text {
    width: 100% !important;
    text-align: center !important;
}
.hero-text h1, .hero-text p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.hero-text p {
    font-size: 1.3rem !important;
}
.hero-btns {
    justify-content: flex-start !important;
    margin-top: 3rem !important;
}
.section-tag {
    font-family: var(--font-main) !important;
    color: var(--accent-color) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.section-title {
    font-family: var(--font-serif) !important;
    font-size: 2.625rem !important;
    line-height: 1.2 !important;
    color: var(--primary-color) !important;
    margin-bottom: 5rem !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px !important;
    display: block !important;
}
.methodology-section, .methodology-section-v2, .methodology-section-v3 {
    padding: 192px 0 !important;
}
.about-section .grid {
    gap: 120px !important;
}
.about-section .quote-side {
    padding: 40px 0 !important;
}
.philosophy-p41 .grid, 
.methodology-p51 .grid,
.methodology-p51-v2 .grid,
.team-grid {
    gap: 60px !important;
}
p {
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
}
@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Transparent Header Styles */
header {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    height: 80px !important;
    padding: 0 !important;
}
header .logo {
    color: white !important;
}
header .logo span {
    color: white !important;
}
header .nav-links a {
    color: white !important;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--accent-grey) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    height: 80px !important;
    padding: 0 !important;
}
header.scrolled .logo {
    color: var(--primary-color) !important;
}
header.scrolled .logo span {
    color: var(--accent-color) !important;
}

.mobile-only-logo {
    display: none;
}

header.scrolled .nav-links a {
    color: var(--text-dark) !important;
}
header.scrolled .nav-links a.cta-nav {
    color: white !important;
}
.cta-nav {
    border: 1px solid var(--primary-color) !important;
}
.cta-nav:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    transform: translateY(-2px) !important;
}
header.scrolled .nav-links a:hover {
    color: var(--secondary-color) !important;
}

/* P41 Background Image */
.philosophy-p41 {
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 15, 14, 0) 0%, 
        rgba(0, 15, 14, 0) 30%, 
        rgba(0, 15, 14, 0.5) 80%, 
        rgba(0, 15, 14, 0.5) 100%) fixed,
        url('assets/background/tourbillon.webp') center/cover fixed !important;
    position: relative;
}
.philosophy-p41 .container {
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 4rem !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}
.philosophy-p41 .section-tag,
.philosophy-p41 h4 {
    color: var(--accent-color) !important;
}
.philosophy-p41 .section-title {
    color: var(--primary-color) !important;
}
.philosophy-p41 p {
    color: #fff !important;
    font-size: 1.1rem !important;
}

/* Proposition 41-v2 Customization */
.philosophy-p41-v2 {
    background: #fff !important;
    padding: 192px 0 !important;
}
.philosophy-p41-v2 .container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.philosophy-p41-v2 .section-title {
    color: var(--primary-color) !important;
}
.philosophy-p41-v2 h4 {
    color: var(--accent-color) !important;
}
.philosophy-p41-v2 p {
    color: #555 !important;
    font-size: 1.1rem !important;
}

.entities-section {
    background-color: #fff !important;
}

/* Intro Grid Overlay System */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.intro-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 2.25rem 3rem !important;
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 330px;
    justify-content: flex-start;
}

.intro-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.intro-card h3 {
    font-family: var(--font-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 1rem;
}

.intro-card p {
    font-size: 1.1rem !important;
    color: #666;
    margin-bottom: 2rem !important;
    line-height: 1.6;
}

.card-details-hint {
    margin-top: auto;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.card-details-hint i {
    transition: transform 0.3s ease;
}

.intro-card:hover .card-details-hint i {
    transform: translateX(5px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.intro-card:hover .card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.card-overlay p {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-bottom: 2rem !important;
    text-align: left;
    width: 100%;
}

.card-overlay ul {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 2.5rem !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    width: 100%;
    text-align: left;
}

.card-overlay li {
    font-size: 1rem !important;
    color: #444 !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: start !important;
    gap: 10px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.card-overlay li::before {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: var(--accent-color) !important;
    font-size: 0.7rem !important;
    margin-top: 5px !important;
}

.btn-card-overlay {
    display: inline-block !important;
    padding: 8px 18px !important;
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--primary-color) !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
}

.btn-card-overlay:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Visual Separators */
.visual-separator-tourbillon,
.visual-separator,
.visual-separator-bramois {
    height: 30vh !important;
    width: 100% !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative;
}

.visual-separator-tourbillon::before,
.visual-separator::before,
.visual-separator-bramois::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 15, 14, 0) 0%, 
        rgba(0, 15, 14, 0) 30%, 
        rgba(0, 15, 14, 0.5) 80%, 
        rgba(0, 15, 14, 0.5) 100%) fixed !important;
}

.visual-separator-tourbillon {
    background-image: url('assets/background/tourbillon.webp') !important;
}

.visual-separator {
    background-image: url('assets/background/valere.webp') !important;
}

.visual-separator-bramois {
    background-image: url('assets/background/bramois.webp') !important;
}

/* P63: Team Overlay Customization */
.team-section .card {
    filter: none !important;
    transform: none !important;
    width: 80% !important;
    margin: 0 auto !important;
}
.team-section .img-box {
    position: relative !important;
    border-radius: 8px !important;
}
.team-section .member-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 47, 0.85) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    color: white !important;
}
.team-section .img-box:hover .member-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}
.team-section .overlay-content {
    transform: translateY(20px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.team-section .img-box:hover .overlay-content {
    transform: translateY(0) !important;
}
.team-section .overlay-icon {
    color: var(--accent-color) !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
}
.team-section .overlay-text {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-family: var(--font-main) !important;
}
.team-section .overlay-line {
    width: 40px !important;
    height: 2px !important;
    background: var(--accent-color) !important;
    margin: 1rem auto !important;
}

/* P51v2 numbers - Matching P33 style */
.methodology-p51-v2 .step {
    position: relative !important;
    overflow: hidden !important;
    padding-top: 2rem !important;
}
.methodology-p51-v2 .num, .methodology-p51-v3 .num {
    position: absolute !important;
    top: -20px !important;
    right: -10px !important;
    font-size: 8rem !important;
    font-weight: 900 !important;
    color: rgba(197, 160, 89, 0.2) !important;
    z-index: 1 !important;
}
.methodology-p51-v2 h4, .methodology-p51-v3 h4, 
.methodology-p51-v2 p {
    position: relative !important;
    z-index: 2 !important;
    font-size: 1.1rem !important;
}
/* Footer Form Styles */
.footer-section .footer-grid {
    grid-template-columns: 3fr 4fr 3fr !important;
    gap: 60px !important;
    align-items: flex-start !important;
}
.footer-form-col {
    padding: 0 20px;
}
.footer-section .brand-col .logo {
    margin-top: -6px !important;
    display: block !important;
    line-height: 1 !important;
    color: white !important;
}
.footer-section .brand-col .logo span {
    color: var(--accent-color) !important;
}
.footer-section .brand-col p {
    line-height: 1.4 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
}
.footer-section .contact-list {
    font-size: 1rem !important;
}
.footer-section .footer-grid h4 {
    margin-top: 0 !important;
    line-height: 1 !important;
}
.footer-form-col h4 {
    color: white !important;
    margin-bottom: 25px !important;
    font-family: var(--font-main) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.footer-contact-form input, 
.footer-contact-form textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    font-family: var(--font-main) !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}
.footer-contact-form input:focus, 
.footer-contact-form textarea:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.footer-contact-form input::placeholder, 
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}
.btn-submit-footer {
    background: var(--accent-color) !important;
    color: #00332f !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    align-self: flex-start !important;
    margin-top: 5px !important;
    font-size: 0.85rem !important;
}
.btn-submit-footer:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-2px) !important;
}

.form-result {
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    margin-top: 5px !important;
    min-height: 43px !important;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media (max-width: 1024px) {
    .footer-section .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .form-row-footer {
        grid-template-columns: 1fr;
    }
    .footer-form-col {
        padding: 0;
    }
}
.footer-section {
    padding-bottom: 25px !important;
}
.footer-section .brand-col .contact-list {
    margin-top: 30px !important;
}
.footer-section .brand-col .contact-list li {
    margin-bottom: 15px !important;
    font-size: 0.9rem !important;
}
.footer-section .brand-col .contact-list i {
    font-size: 1rem !important;
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.map-container iframe {
    filter: grayscale(1) invert(0.9) contrast(0.8) opacity(0.8);
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   FINAL MOBILE OVERRIDES (Smartphone & Portrait Tablet)
   ============================================================ */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block !important;
        z-index: 2001 !important;
        background: transparent;
        border: none;
        margin-left: 20px;
        color: white !important; /* Burger icon in white */
    }

    header .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important; /* Round 3: Full Width */
        height: 100vh !important;
        background: white !important; /* Round 3: Opaque */
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
        z-index: 2000 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Round 3: Green close icon */
    .mobile-nav-toggle .fa-xmark {
        color: var(--primary-color) !important;
    }

    header .nav-links.active {
        right: 0 !important;
    }

    header .nav-links .mobile-only-logo {
        display: block !important;
        margin-bottom: 3rem !important;
    }

    header .nav-links .mobile-only-logo .logo {
        font-size: 1.8rem !important;
        color: var(--primary-color) !important;
    }

    header .nav-links li {
        width: 100% !important;
        text-align: center !important;
    }

    header .nav-links a {
        color: var(--primary-color) !important;
        font-size: 1.1rem !important; /* Round 3: Adjusted font size */
        font-weight: 600 !important;
        display: block !important;
        padding: 1rem !important;
    }

    header .nav-links a.cta-nav {
        background-color: var(--primary-color) !important;
        color: white !important;
        border-radius: 5px !important;
        padding: 1.2rem !important;
        margin: 0 2rem !important;
    }

    header .nav-links a.cta-nav:hover {
        background-color: var(--accent-color) !important;
    }

    header.scrolled .mobile-nav-toggle {
        color: var(--primary-color) !important;
    }

    /* Keep burger white even when scrolled on mobile IF transparent and not open */
    header:not(.scrolled) .mobile-nav-toggle {
        color: white !important;
    }

    /* Fixed header on mobile should have dark burger if scrolled */
    header.scrolled .mobile-nav-toggle {
        color: var(--primary-color) !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0 !important;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 3rem !important;
        line-height: 1.2 !important;
    }

    /* Forced Stacking - Simple but ultra-effective */
    /* Target all failing grids and convert them to block for perfect mobile stacking */
    #notre-approche .grid,
    #methode .grid,
    .intro-grid,
    .about-section .grid,
    .engagement-section .bento-grid,
    .philosophy-section .grid,
    .methodology-section .grid,
    .team-section .grid,
    .footer-section .footer-grid {
        display: block !important;
    }

    /* Ensure vertical spacing between stacked items */
    #notre-approche .grid > *,
    #methode .grid > *,
    .intro-grid > *,
    .about-section .grid > *,
    .engagement-section .bento-grid > *,
    .team-section .grid > * {
        margin-bottom: 3rem !important;
        width: 100% !important;
    }

    #notre-approche .grid > *:last-child,
    #methode .grid > *:last-child,
    .intro-grid > *:last-child,
    .about-section .grid > *:last-child,
    .engagement-section .bento-grid > *:last-child,
    .team-section .grid > *:last-child {
        margin-bottom: 0 !important;
    }

    /* Hero Refinement */
    /* Visual Separators - Round 3: Reduced height */
    .visual-separator-tourbillon,
    .visual-separator,
    .visual-separator-bramois {
        height: 15vh !important;
    }

    .hero {
        padding: 10rem 0 5rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        background-position: bottom center !important; /* Show bottom of castle */
    }

    .hero-content {
        padding: 0 1rem !important;
    }

    .hero-text h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-text p {
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
    }

    .hero-btns {
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100% !important;
        align-items: center !important;
        margin-top: 2rem !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        max-width: 320px !important;
        padding: 1.1rem !important;
    }

    /* Nos Sociétés (intro-card) overlay fix for mobile touch */
    .intro-grid .intro-card {
        padding: 2.5rem 1.5rem !important;
    }

    .intro-grid .intro-card .card-overlay {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 2rem 0 0 0 !important;
        background: transparent !important;
        height: auto !important;
        display: block !important;
        box-shadow: none !important;
    }
    
    .intro-grid .intro-card .card-overlay p, 
    .intro-grid .intro-card .card-overlay ul, 
    .intro-grid .intro-card .btn-card-overlay {
        margin-bottom: 1.2rem !important;
    }

    .intro-grid .intro-card .card-details-hint {
        display: none !important;
    }

    /* Methodology refinements */
    .methodology-p51-v2 .num, .methodology-p51-v3 .num {
        font-size: 5rem !important;
        top: -10px !important;
        opacity: 0.1 !important;
    }

    /* Footer adjustments */
    .footer-v1 .footer-grid {
        text-align: center !important;
    }
    
    .footer-form-col {
        padding: 0 !important;
        margin-bottom: 3rem !important;
    }

    .form-row-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .footer-map-col {
        margin-top: 2rem !important;
    }

    .bottom-bar {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        padding-top: 2rem !important;
    }


}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

/* --- Section: Pourquoi nous choisir (Proposition 1) --- */
.why-us-p1 {
    background: #fdfdfd;
    padding: 120px 0 !important;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px !important;
}

.why-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-color: var(--p-gold);
}

.why-card .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--p-gold);
    font-size: 2rem;
}

.why-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.why-card p {
    font-size: 1rem !important;
    color: var(--p-text-light);
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Responsive Grid Adjustment for 5 cards */
@media (min-width: 1025px) {
    .why-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    .why-card {
        flex: 0 0 calc(33.333% - 30px);
    }
    .why-card:nth-child(4),
    .why-card:nth-child(5) {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        padding: 2.5rem;
    }
}

/* --- Proposition 2: Split Editorial --- */
.why-us-p2 {
    background: #fff;
    padding: 120px 0 !important;
}
.why-us-p2 .split-container {
    display: flex;
    gap: 80px;
    align-items: start;
}
.why-us-p2 .content-col {
    flex: 0 0 40%;
}
.why-us-p2 .list-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.why-us-p2 .item {
    display: flex;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.why-us-p2 .item-icon {
    font-size: 1.5rem;
    color: var(--p-gold);
    flex-shrink: 0;
    margin-top: 5px;
}
.why-us-p2 h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.why-us-p2 p {
    font-size: 1.1rem !important;
    color: var(--p-text-light);
    margin-bottom: 0 !important;
}

/* --- Proposition 3: Bento Modern --- */
.engagement-section {
    background: #F8F9FA;
    padding: 192px 0 !important;
}
.engagement-section .bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}
.engagement-section .bento-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.engagement-section .bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.engagement-section .bento-card.wide {
    grid-column: span 2;
}
.engagement-section .bento-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-color); }
.engagement-section .bento-card p { font-size: 1rem !important; margin-bottom: 0 !important; color: #666; }
.engagement-section .icon { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 1.5rem; }

/* --- Proposition 4: Dark Luxury --- */
.why-us-p4 {
    background: var(--primary-color);
    padding: 120px 0 !important;
    color: white;
    position: relative;
    overflow: hidden;
}
.why-us-p4 .section-title { color: white !important; }
.why-us-p4 .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-us-p4 .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}
.why-us-p4 .glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}
.why-us-p4 .icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 2rem; }
.why-us-p4 h3 { color: white; margin-bottom: 1.5rem; }
.why-us-p4 p { color: rgba(255,255,255,0.7) !important; font-size: 1rem !important; }

/* Separator Label */
.proposal-label {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
}

/* Base reveal class if not active */
.reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 991px) {
    .why-us-p2 .split-container { flex-direction: column; gap: 40px; }
    .why-us-p2 .content-col { width: 100%; }
    .engagement-section { padding: 80px 0 !important; }
    .engagement-section .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-p4 .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .engagement-section .bento-grid { grid-template-columns: 1fr; }
    .engagement-section .bento-card.wide { grid-column: span 1; }
    .why-us-p4 .grid { grid-template-columns: 1fr; }
}
.mobile-br-only { display: none; }
@media (max-width: 768px) { .mobile-br-only { display: block; } }
