/* =============================================
   LFDE Gestion Privée - Luxury Design System
   Inspired by: Chanel, Rolex, Yachting brands
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --noir: #0A0A0A;
    --noir-soft: #1A1A1A;
    --charcoal: #2A2A2A;
    --graphite: #3A3A3A;
    --steel: #6B6B6B;
    --silver: #9A9A9A;
    --pearl: #C8C8C8;
    --mist: #E8E4DF;
    --ivory: #F7F5F2;
    --white: #FFFFFF;
    --gold: #B8976A;
    --gold-light: #D4B88C;
    --gold-dark: #8B6F47;
    --blue-deep: #1B3A5C;
    --error: #9B2D2D;
    --success: #2D6B3F;

    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 80px;
    --container-max: 1200px;
    --container-narrow: 800px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-subtle: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--steel);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

.hidden {
    display: none !important;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--noir);
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
    margin-bottom: 1.2rem;
    color: var(--steel);
    font-weight: 300;
    letter-spacing: 0.01em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--charcoal);
    font-weight: 500;
}

.text-accent {
    color: var(--gold);
}

/* Label style - Chanel/Rolex inspired */
.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: clamp(80px, 14vw, 160px) 0;
    position: relative;
}

.section--white {
    background: var(--white);
}

.section--ivory {
    background: var(--ivory);
}

.section--dark {
    background: var(--noir-soft);
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--dark p {
    color: var(--silver);
}

.section--dark .label {
    color: var(--gold-light);
}

/* Gold transition line between sections */
.section--has-line::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .label {
    display: block;
    margin-bottom: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.section-title--left {
    text-align: left;
}

.section-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 0;
}

.section-divider--left {
    margin-left: 0;
}

.section-subtitle {
    text-align: center;
    color: var(--silver);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 1.5rem auto 0;
    letter-spacing: 0.02em;
}

.section-cta {
    text-align: center;
    margin-top: clamp(3rem, 5vw, 4rem);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-dark {
    background: var(--noir);
    color: var(--white);
    border: 1px solid var(--noir);
}

.btn-dark:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom-color: var(--mist);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2vw, 2.5rem);
}

.nav-link {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--steel);
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--noir);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link--cta {
    background: transparent;
    color: var(--gold) !important;
    padding: 10px 28px;
    border: 1px solid var(--gold);
    letter-spacing: 0.15em;
}

.nav-link--cta:hover {
    background: var(--gold);
    color: var(--white) !important;
}

.nav-link--cta::after {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--noir);
    transition: all var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--header-height) 24px 0;
    background: var(--ivory);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/hero-polynesie.webp') center center / cover no-repeat;
    opacity: 0.4;
    transition: opacity 1.5s ease;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(247,245,242,0.3) 0%,
        rgba(247,245,242,0.1) 40%,
        rgba(247,245,242,0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--noir);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    color: var(--steel);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Difference Cards ---------- */
.card--difference {
    text-align: center;
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
    background: transparent;
    border: 1px solid var(--mist);
    transition: all var(--transition-slow);
}

.card--difference:hover {
    border-color: var(--gold);
}

.card-icon {
    color: var(--gold);
    margin-bottom: 2rem;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--mist);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-text {
    font-size: 0.92rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ---------- À propos ---------- */
.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

.apropos-content .label {
    display: block;
    margin-bottom: 1.2rem;
}

.apropos-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.apropos-content p {
    font-size: 1rem;
}

.apropos-image {
    display: flex;
    justify-content: center;
}

.apropos-illustration {
    width: 100%;
    max-width: 450px;
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-elevated);
    object-fit: cover;
    aspect-ratio: 1;
}


.apropos-histoire {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
}

.histoire-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 2rem;
}

.apropos-histoire p {
    text-align: center;
    font-size: 1rem;
}

/* ---------- Team Cards ---------- */
.card--team {
    text-align: center;
    padding: 0;
    background: transparent;
    transition: all var(--transition-slow);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all var(--transition-slow);
}

.card--team:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.team-role {
    font-size: 0.85rem;
    color: var(--steel);
    margin-bottom: 1.2rem;
    font-style: normal;
    font-weight: 300;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.team-credentials span {
    font-size: 0.72rem;
    color: var(--silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-credentials span + span::before {
    content: '·';
    margin-right: 0.5rem;
}

/* ---------- Expertise Editorial Layout ---------- */
.expertise-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.expertise-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    border-bottom: 1px solid var(--mist);
    align-items: start;
}

.expertise-item:last-child {
    border-bottom: none;
}

.expertise-number {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--mist);
    line-height: 1;
    transition: color var(--transition-slow);
}

.expertise-item:hover .expertise-number {
    color: var(--gold);
}

.expertise-body .label {
    display: block;
    margin-bottom: 0.8rem;
}

.expertise-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.expertise-text {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--steel);
}

/* ---------- Solution Cards (Text - Dark Section) ---------- */
.card--solution-text {
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-slow);
}

.card--solution-text:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
}

.card--solution-text .label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.68rem;
    color: var(--gold-light);
}

.card--solution-text .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card--solution-text .card-text {
    font-size: 0.9rem;
    color: var(--silver);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--steel);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--mist);
    background: transparent;
    color: var(--noir);
    transition: border-color var(--transition);
    outline: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--pearl);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    border: none;
    border-bottom: 1px solid var(--mist);
}

.btn-submit {
    align-self: flex-start;
    margin-top: 1rem;
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: var(--error);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--ivory);
}

.contact-info-block h3 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.contact-info-block p {
    font-size: 0.92rem;
    color: var(--graphite);
    line-height: 1.9;
    font-weight: 300;
}

.contact-info-block a {
    color: var(--graphite);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.contact-info-block a:hover {
    border-bottom-color: var(--gold);
    color: var(--noir);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--noir);
    color: var(--silver);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 28px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-legal {
    font-size: 0.78rem;
    color: var(--steel);
    line-height: 2;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--silver);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-contact p {
    font-size: 0.88rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.footer-contact a {
    color: var(--silver);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.72rem;
    color: var(--steel);
    letter-spacing: 0.05em;
}

.footer-mentions {
    color: var(--steel);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.footer-mentions:hover {
    color: var(--gold-light);
}

/* ---------- Legal Page ---------- */
.legal-page {
    padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem));
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--noir);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    color: var(--steel);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.legal-content a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

.legal-content a:hover {
    color: var(--gold-dark);
}

.legal-content strong {
    color: var(--charcoal);
    font-weight: 500;
}

.legal-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.legal-content ul li {
    position: relative;
    color: var(--steel);
    font-size: 0.92rem;
    line-height: 1.9;
    padding-left: 0.8rem;
}

.legal-content ul li::before {
    content: '—';
    position: absolute;
    left: -1rem;
    color: var(--gold);
}

.legal-back {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--mist);
    text-align: center;
}

/* ---------- Ecosystem Page ---------- */
.ecosystem-hero {
    padding-top: calc(var(--header-height) + clamp(3rem, 6vw, 5rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.ecosystem-hero h1 {
    text-align: left;
}

.ecosystem-intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--steel);
    line-height: 2;
    font-weight: 300;
    margin-top: 2rem;
    max-width: 640px;
}

/* Eco-Hub — Section heading */
.eco-hub {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eco-hub-diamond {
    color: var(--gold);
    font-size: 0.55rem;
    display: block;
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.eco-hub-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
}

.eco-hub-sub {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.5rem;
}

.eco-hub-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 0;
    opacity: 0.4;
}

/* Eco-Grid — Pyramid layout (3 + 2 centered) */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    max-width: 960px;
    margin: 0 auto;
}

.eco-node--1 { grid-column: 1 / 3; }
.eco-node--2 { grid-column: 3 / 5; }
.eco-node--3 { grid-column: 5 / 7; }
.eco-node--4 { grid-column: 2 / 4; }
.eco-node--5 { grid-column: 4 / 6; }

/* Service node cards */
.eco-node {
    background: var(--white);
    border-top: 2px solid var(--gold);
    padding: clamp(1.4rem, 2.5vw, 2rem);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.eco-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.eco-tag {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    display: block;
    margin-bottom: 0.7rem;
}

.eco-node h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 500;
    color: var(--noir);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.eco-node p {
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--steel);
}

/* Stagger reveal */
.eco-grid .eco-node--2 { transition-delay: 0.1s; }
.eco-grid .eco-node--3 { transition-delay: 0.15s; }
.eco-grid .eco-node--4 { transition-delay: 0.25s; }
.eco-grid .eco-node--5 { transition-delay: 0.3s; }

.ecosystem-cta {
    text-align: center;
    margin-top: clamp(3rem, 6vw, 5rem);
}

.ecosystem-cta p {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

@media (max-width: 900px) {
    .eco-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .eco-node--1, .eco-node--2, .eco-node--3,
    .eco-node--4, .eco-node--5 {
        grid-column: auto;
    }
}

/* ---------- Auth Gate ---------- */
html.auth-locked body > *:not(.auth-gate) {
    display: none !important;
}

.auth-gate {
    position: fixed;
    inset: 0;
    background: var(--noir);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-inner {
    text-align: center;
    width: 280px;
}

.auth-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.auth-gate .auth-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.auth-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(184, 151, 106, 0.3);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.1em;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--gold);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-btn {
    padding: 11px 32px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.auth-btn:hover {
    background: var(--gold);
    color: var(--noir);
}

.auth-error {
    color: #e74c3c;
    font-size: 0.75rem;
    min-height: 1.2em;
}

.auth-gate--out {
    animation: authFadeOut 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFadeOut {
    to { opacity: 0; }
}

/* ---------- Intro Reveal ---------- */
.intro {
    position: fixed;
    inset: 0;
    background: var(--noir);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(12px);
    animation: introLogoIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.intro-line {
    width: 0;
    height: 1px;
    background: var(--gold);
    margin-top: 1.5rem;
    animation: introLineGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes introLogoIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introLineGrow {
    to { width: 50px; }
}

.intro.intro--out {
    animation: introSlideUp 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introSlideUp {
    to { transform: translateY(-100%); }
}

/* Hero stagger reveal */
[data-hero] {
    opacity: 0;
    transform: translateY(25px);
}

body.revealed [data-hero] {
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.revealed [data-hero="1"] { animation-delay: 0s; }
body.revealed [data-hero="2"] { animation-delay: 0.15s; }
body.revealed [data-hero="3"] { animation-delay: 0.3s; }
body.revealed [data-hero="4"] { animation-delay: 0.45s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

body.no-intro [data-hero] {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ---------- Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.cards-grid [data-animate]:nth-child(2),
.expertise-item:nth-child(2) {
    transition-delay: 0.15s;
}

.cards-grid [data-animate]:nth-child(3),
.expertise-item:nth-child(3) {
    transition-delay: 0.3s;
}

.cards-grid [data-animate]:nth-child(4),
.expertise-item:nth-child(4) {
    transition-delay: 0.45s;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + 30px) 40px 40px;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.08);
        transition: right var(--transition);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 0.8rem;
        border-bottom: 1px solid var(--mist);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link--cta {
        margin-top: 1.5rem;
        text-align: center;
        padding: 14px 28px;
    }

    .cards-grid--3,
    .cards-grid--2 {
        grid-template-columns: 1fr;
    }

    .expertise-item {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }

    .expertise-number {
        font-size: 2.5rem;
    }

    .apropos-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .apropos-image {
        order: -1;
    }

    .apropos-illustration {
        max-width: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding-top: calc(var(--header-height) + 20px);
    }

    .section {
        padding: clamp(60px, 10vw, 80px) 0;
    }

    .card--difference {
        padding: 2rem 1.5rem;
    }

    .expertise-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-number {
        font-size: 2rem;
    }

    .team-photo {
        aspect-ratio: 4/5;
    }

    .btn {
        padding: 14px 36px;
        font-size: 0.75rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--noir);
    border-top: 1px solid rgba(184, 151, 106, 0.25);
    animation: cookieSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner--out {
    animation: cookieSlideOut 0.4s ease forwards;
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--silver);
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: var(--white);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn--refuse {
    background: transparent;
    color: var(--silver);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn--refuse:hover {
    border-color: var(--silver);
    color: var(--white);
}

.cookie-btn--accept {
    background: var(--gold);
    color: var(--noir);
}

.cookie-btn--accept:hover {
    background: var(--white);
}

@keyframes cookieSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes cookieSlideOut {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}
