:root {
    --sage-dark: #3E4F3C;
    --sage: #6B8068;
    --sage-light: #A8BFA0;
    --sage-pale: #EEF2EB;
    --gold: #B8935F;
    --gold-pale: #F2E9DA;
    --ivory: #FAF7F1;
    --ivory-deep: #F3EEE4;
    --charcoal: #3A3630;
    --charcoal-soft: #6B6558;
    --border: #E3DDCF;
    --radius: 10px;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 247, 241, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(250, 247, 241, 0.97);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; flex-shrink: 0; }
.brand-mark {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--sage-dark);
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 1px;
    line-height: 1;
}
.brand-mark.small { font-size: 1.1rem; color: #fff; border-bottom-color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; color: var(--charcoal-soft); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    font-size: 0.92rem;
    color: var(--charcoal-soft);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.25s;
    white-space: nowrap;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--sage);
    transition: right 0.3s var(--ease);
}
.main-nav a:hover { color: var(--charcoal); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.nav-cta {
    background: var(--sage-dark);
    color: #fff !important;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.25s, transform 0.15s;
}
.nav-cta:hover { background: var(--sage); transform: translateY(-1px); }

/* ---- Sélecteur de langue (avec drapeaux) ---- */
.lang-switch { position: relative; }
.lang-current {
    display: flex; align-items: center; gap: 0.4rem;
    background: none; border: 1px solid var(--border);
    border-radius: 20px; padding: 0.4rem 0.8rem 0.4rem 0.6rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--charcoal-soft); cursor: pointer;
    transition: border-color 0.2s;
}
.lang-current:hover { border-color: var(--sage); }
.flag { font-size: 1.05rem; line-height: 1; }
.lang-dropdown {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 32px rgba(58,54,48,0.14);
    min-width: 190px; padding: 0.5rem;
    opacity: 0; visibility: hidden;
    transition: all 0.2s var(--ease);
    z-index: 200;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.lang-dropdown a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.8rem; border-radius: 7px; font-size: 0.9rem; color: var(--charcoal);
}
.lang-dropdown a:hover { background: var(--sage-pale); }
.lang-dropdown a.active { color: var(--sage-dark); font-weight: 600; background: var(--sage-pale); }

/* ---- Menu mobile (hamburger) ---- */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 210; position: relative; }
.mobile-toggle span { width: 22px; height: 1.5px; background: var(--charcoal); transition: all 0.3s var(--ease); display: block; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    padding: 11rem 2rem 7rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.hero-content { max-width: 640px; position: relative; z-index: 2; }
.hero-eyebrow {
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--sage); font-weight: 600; margin-bottom: 1.2rem;
    opacity: 0; animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--charcoal);
    margin: 0 0 1.6rem;
    opacity: 0; animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}
.hero-subtitle {
    font-size: 1.08rem; color: var(--charcoal-soft);
    max-width: 480px; margin: 0 0 2.3rem;
    opacity: 0; animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}
.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 30px;
    font-size: 0.92rem; font-weight: 500;
    transition: all 0.25s var(--ease);
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--sage-dark); color: #fff; }
.btn-primary:hover { background: var(--sage); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(62,79,60,0.25); }
.btn-secondary { border-color: var(--charcoal); color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: #fff; }

/* ---- Hero image (vraie photo) ---- */
.hero-image {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 42%; max-width: 460px;
    aspect-ratio: 4/5;
    border-radius: 18px;
    overflow: hidden;
    opacity: 0;
    animation: heroImageIn 1s var(--ease) 0.35s forwards;
    box-shadow: 0 24px 60px rgba(62,79,60,0.18);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroImageIn {
    from { opacity: 0; transform: translateY(-50%) translateX(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}
@media (max-width: 900px) { .hero-image { display: none; } }

/* ---- Process steps ---- */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    margin-top: 3rem; position: relative;
}
.process-grid::before {
    content: '';
    position: absolute; top: 20px; left: 12%; right: 12%; height: 1px;
    background: var(--border);
}
.process-step { position: relative; }
.process-number {
    display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
    color: var(--gold); margin-bottom: 1rem; position: relative; z-index: 1;
    background: var(--ivory); width: fit-content; padding-right: 0.6rem;
}
.process-step h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.process-step p { color: var(--charcoal-soft); font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-grid::before { display: none; }
}
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.faq-item h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.faq-item p { color: var(--charcoal-soft); font-size: 0.92rem; margin: 0; }

.service-list-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.96rem; color: var(--charcoal);
}
.service-list-item::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}
.service-list-item:last-child { border-bottom: none; }

/* ---- Pull quote ---- */
.pull-quote {
    font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-weight: 500;
    color: var(--sage-dark); line-height: 1.5; padding-left: 1.5rem;
    border-left: 3px solid var(--gold); margin: 2rem 0;
}
.pull-quote-author { font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--charcoal-soft); margin-top: 0.8rem; }

/* ---- Sections grid ---- */

/* ============ SECTIONS ============ */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section.alt { background: var(--ivory-deep); }

.eyebrow {
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 0.9rem; display: block;
}
.section-title {
    font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 500; color: var(--charcoal); margin: 0 0 1.2rem; max-width: 640px;
}
.section-text { color: var(--charcoal-soft); font-size: 1.02rem; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Intro split ---- */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intro-visual {
    aspect-ratio: 4/3; border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(62,79,60,0.12);
}
.intro-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.intro-visual:hover img { transform: scale(1.04); }

/* ---- Services grid ---- */
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.service-card {
    display: block;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1.6rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(62,79,60,0.1);
    border-color: var(--sage-light);
}
.service-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--sage-pale); color: var(--sage-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.service-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 0.6rem; }
.service-card p { color: var(--charcoal-soft); font-size: 0.92rem; margin: 0; }
.service-card-link {
    display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600;
    color: var(--sage-dark); transition: gap 0.2s;
}
.service-card:hover .service-card-link { color: var(--gold); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---- Trust strip ---- */
.trust-strip {
    display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap;
    padding: 3rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--charcoal-soft); }
.trust-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---- Portal CTA ---- */
.portal-cta {
    background: var(--sage-dark);
    color: var(--ivory);
    border-radius: 20px;
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.portal-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(184,147,95,0.18), transparent 55%);
}
.portal-cta .eyebrow { color: var(--gold); }
.portal-cta .section-title { color: #fff; margin-left: auto; margin-right: auto; }
.portal-cta .section-text { color: rgba(250,247,241,0.75); margin-left: auto; margin-right: auto; }
.portal-cta .btn-primary { background: var(--gold); margin-top: 1.6rem; position: relative; z-index: 2; }
.portal-cta .btn-primary:hover { background: #c9a370; }

/* ============ FOOTER ============ */
.site-footer { background: var(--charcoal); color: rgba(250,247,241,0.7); padding: 3.5rem 2rem 1.5rem; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(250,247,241,0.15);
}
.footer-brand { display: flex; gap: 0.8rem; align-items: center; }
.footer-office { font-family: var(--serif); color: #fff; font-size: 1.05rem; font-weight: 500; }
.footer-address { font-size: 0.85rem; color: rgba(250,247,241,0.55); margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; font-size: 0.78rem; color: rgba(250,247,241,0.45); }

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--sage-dark);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(62,79,60,0.25);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
    z-index: 90;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--sage); }
@media (max-width: 560px) { #back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .header-inner { padding: 1rem 1.2rem; }
    .brand-name { display: none; }

    .main-nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--ivory);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem 2rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
        z-index: 150;
    }
    .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-nav a {
        font-family: var(--serif);
        font-size: 1.6rem;
        font-weight: 500;
        color: var(--charcoal);
        padding: 0.6rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .main-nav a::after { display: none; }

    .nav-cta { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
    .mobile-toggle { display: flex; }

    .lang-dropdown { min-width: 170px; }

    .intro-split { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 8rem 1.5rem 3rem; }
    .portal-cta { padding: 3rem 1.6rem; }
}
@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .header-inner { padding: 0.9rem 1rem; }
    .header-actions { gap: 0.6rem; }
    .nav-cta { font-size: 0.76rem; padding: 0.5rem 0.85rem; }
    .lang-code { display: none; }
    .lang-current { padding: 0.4rem 0.55rem; }
    .hero { padding: 8.5rem 1.2rem 3rem; }
    .section { padding: 3.5rem 1.2rem; }
    .brand-name { display: none; }
    .legal-table tr { display: flex; flex-direction: column; padding: 0.8rem 0; }
    .legal-table td { padding: 0.2rem 0 !important; width: auto !important; }
    .legal-table td:first-child { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
}

/* ============ GENERIC PAGE HERO (sous-pages) ============ */
.page-hero { padding: 10rem 2rem 4rem; max-width: 900px; margin: 0 auto; text-align: center; }
.page-hero .eyebrow { display: block; text-align: center; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 500; margin: 0.6rem 0 0; }

/* Forms (portail) */
.form-shell { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.55rem; color: var(--charcoal); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 1rem 1.15rem; border: 1.5px solid var(--border); border-radius: 9px;
    font-family: var(--sans); font-size: 1rem; background: var(--ivory); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(107,128,104,0.12);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-shell .btn { width: 100%; justify-content: center; padding: 1rem 1.6rem; font-size: 1rem; }
@media (max-width: 560px) {
    .form-shell { padding: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
}
.form-hint { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.35rem; }
.form-error { background: #FBEAEA; color: #A34E4E; padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.2rem; }
.form-success { background: var(--sage-pale); color: var(--sage-dark); padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.2rem; }
