:root {
    /* Color Palette */
    --bg-color: #f7f9f6; /* Very light sage for a soft background */
    --text-main: #2b2b2b; /* Anthracite grey */
    --text-muted: #5e6861; /* Medium muted olive/grey */
    --accent-sage: #9cb3a0;
    --accent-olive: #6a7c63;
    --accent-forest: #2e4136;
    
    /* Variables mapping */
    --accent: var(--accent-forest);
    
    /* Typography & Spacing */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
    --transition-speed: 0.8s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    transition: opacity var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loaded {
    opacity: 1;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    margin: 0;
    line-height: 1.1;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--text-main);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: currentColor;
    transition: opacity 0.3s ease;
}

.brand:hover {
    opacity: 0.6;
}

.brand-logo {
    height: 95px; /* Enlarged logo */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: currentColor;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* Common Page Structure */
.page-default {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    min-height: 100vh;
}

.page-header {
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
}

.page-title {
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.page-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ==================================
   1. Home (Landing)
   ================================== */
.page-landing {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-lg);
    position: relative;
}

.hero-image {
    position: absolute;
    top: 15vh;
    right: 15vw;
    width: 35vw;
    height: 70vh;
    background-size: cover;
    background-position: center;
    filter: sepia(0.6) hue-rotate(80deg) saturate(0.5) contrast(1.1);
    z-index: -1;
    opacity: 0.9;
    transition: filter 1s ease;
}

.page-landing:hover .hero-image {
    filter: sepia(0.2) hue-rotate(80deg) saturate(0.8) contrast(1.1);
}

.hero-content {
    color: var(--text-main);
    max-width: 800px;
}

.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-left: -0.05em; /* Optical alignment */
}

.hero-subtitle {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    max-width: 350px;
    opacity: 0.8;
}

/* ==================================
   2. Services
   ================================== */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: inherit;
    font-family: inherit;
    transition: opacity 0.3s ease;
}

.service-header:hover {
    opacity: 0.7;
}

.service-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    flex-shrink: 0;
    width: 48px;
}

.service-name-inline {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.1;
    flex: 1;
    margin: 0 var(--spacing-md);
}

.service-toggle-icon {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 200;
    flex-shrink: 0;
    line-height: 1;
    color: var(--accent);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 600ms ease;
}

.service-body-inner {
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.service-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: var(--spacing-sm);
}

.service-link {
    display: inline-block;
    font-size: 0.68rem;
    font-variant: small-caps;
    letter-spacing: 0.18em;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(43, 43, 43, 0.4);
    padding: 8px 20px;
    background: transparent;
    border-radius: 1px;
    margin-top: var(--spacing-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(43, 43, 43, 0.6);
}

/* ==================================
   3. About
   ================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-lead {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    line-height: 1.4;
}

.about-content {
    font-size: 1rem;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: var(--spacing-sm);
}

.about-image-col {
    position: relative;
    width: 100%;
    height: 80vh;
}

.about-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: sepia(0.6) hue-rotate(80deg) saturate(0.5) contrast(1.1);
    object-fit: cover;
}

/* ==================================
   4. Realisations
   ================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.gallery-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item:nth-child(1) { grid-column: 2 / 7; margin-top: 0; }
.gallery-item:nth-child(2) { grid-column: 8 / 12; margin-top: 15rem; }
.gallery-item:nth-child(3) { grid-column: 4 / 9; margin-top: 10rem; }
.gallery-item:nth-child(4) { grid-column: 1 / 6; margin-top: 5rem; }
.gallery-item:nth-child(5) { grid-column: 7 / 11; margin-top: 2rem; }

.gallery-img {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    filter: sepia(0.8) hue-rotate(80deg) saturate(0.3) contrast(1.1);
    transition: filter 0.6s ease;
}

.gallery-item:hover .gallery-img {
    filter: sepia(0.2) hue-rotate(80deg) saturate(0.8) contrast(1.1);
}

.gallery-caption {
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

/* ==================================
   5. Contact
   ================================== */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.contact-title {
    font-size: clamp(6rem, 12vw, 10rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xl);
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(43, 43, 43, 0.2);
    padding: var(--spacing-xs) 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-textarea {
    resize: none;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.form-submit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-direct {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-link {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-serif);
    font-style: italic;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

/* ==================================
   6. Home — Intro (grid avec image)
   ================================== */
.home-intro {
    padding: var(--spacing-xl) var(--spacing-lg);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    border-top: 1px solid rgba(0,0,0,0.08);
    align-items: end;
}

.home-intro-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.home-intro-text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    max-width: 640px;
    color: var(--text-main);
}

.home-cta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-main);
    text-decoration: none;
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.3s ease;
}

.home-cta:hover {
    opacity: 0.55;
}

.home-intro-figure {
    margin: 0;
    overflow: hidden;
}

.home-intro-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: grayscale(72%) contrast(1.08);
    transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-intro-img:hover {
    filter: grayscale(0%) contrast(1.02);
}

/* ==================================
   7. Services — En-tête avec image
   ================================== */
.services-header-grid {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr;
    gap: var(--spacing-xl);
    align-items: end;
    margin-bottom: var(--spacing-xl);
}

.services-header-figure {
    margin: 0;
    overflow: hidden;
}

.services-header-img {
    width: 100%;
    height: 52vh;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    filter: grayscale(72%) contrast(1.08);
    transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-header-img:hover {
    filter: grayscale(0%) contrast(1.02);
}

/* ==================================
   8. Services — Image Galleries
   ================================== */
.service-gallery {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    align-items: start;
}

.service-gallery figure {
    margin: 0;
}

.service-gallery-secondary {
    margin-top: 5rem;
}

.service-gallery-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%) contrast(1.08) brightness(0.96);
    transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-gallery-secondary .service-gallery-img {
    height: 360px;
}

.service-gallery-img:hover {
    filter: grayscale(0%) contrast(1.02) brightness(1);
}

.service-gallery-caption {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Strip 2 images côte à côte (détails pathologiques) */
.service-gallery-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    padding-top: var(--spacing-sm);
}

.service-gallery-strip figure {
    margin: 0;
}

.service-gallery-img--strip {
    height: 300px;
}

/* ==================================
   9. Services — Triptyque Accordéon
   ================================== */
.triptych-wrapper {
    padding-top: var(--spacing-lg);
}

.triptych-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.triptych {
    display: flex;
    width: calc(100% + 2 * var(--spacing-lg));
    margin-left: calc(-1 * var(--spacing-lg));
    height: 62vh;
    min-height: 420px;
    overflow: hidden;
}

.triptych-panel {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0;
    transition: flex 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.triptych-panel:hover {
    flex: 2.6;
}

.triptych-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(88%) contrast(1.08);
    transition:
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.triptych-panel:hover img {
    filter: grayscale(0%) contrast(1.02);
    transform: scale(1.04);
}

.triptych-panel figcaption {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(7px);
    transition:
        opacity 0.5s ease 0.2s,
        transform 0.5s ease 0.2s;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.triptych-panel:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   10. Contact — Hero image
   ================================== */
.contact-hero {
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.contact-hero-img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    object-position: center 70%;
    display: block;
    filter: grayscale(25%) contrast(1.04) brightness(0.94);
    transition: filter 1.1s ease;
}

.contact-hero-img:hover {
    filter: grayscale(0%) contrast(1.02) brightness(1);
}

/* ==================================
   11. Réalisations — Galerie éditoriale
   ================================== */
.realisations-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    padding-bottom: var(--spacing-xl);
}

.real-item {
    margin: 0;
}

.real-item--secondary {
    margin-top: 9rem;
}

.real-img {
    width: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(68%) contrast(1.08);
    transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.real-item--main .real-img {
    height: 78vh;
}

.real-item--secondary .real-img {
    height: 62vh;
}

.real-img:hover {
    filter: grayscale(0%) contrast(1.02);
}

.real-caption {
    display: block;
    margin-top: 0.65rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================================
   Responsive constraints
   ================================== */
.service-gallery {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    align-items: start;
}

.service-gallery figure {
    margin: 0;
}

.service-gallery-secondary {
    margin-top: 5rem; /* décalage vertical pour l'asymétrie éditoriale */
}

.service-gallery-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%) contrast(1.08) brightness(0.96);
    transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-gallery-secondary .service-gallery-img {
    height: 360px;
}

.service-gallery-img:hover {
    filter: grayscale(0%) contrast(1.02) brightness(1);
}

.service-gallery-caption {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==================================
   7. Section Label
   ================================== */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

/* ==================================
   8. About — Pillars
   ================================== */
.about-pillars-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.about-pillars-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    max-width: 560px;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg) var(--spacing-xl);
}

.pillar-item {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.pillar-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.pillar-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ==================================
   9. Services — Methodology List
   ================================== */
.service-methodology {
    list-style: none;
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-methodology li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
}

.service-methodology li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.68rem;
    top: 0.1em;
}

/* ==================================
   10. Contact — Split Layout
   ================================== */
.page-contact {
    min-height: 100vh;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    min-height: 100vh;
}

.contact-info-col {
    padding-top: var(--spacing-md);
}

.contact-form-col {
    padding-top: var(--spacing-md);
}

.contact-big-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
}

.contact-services-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.contact-services-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.contact-services-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--spacing-sm);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.88rem;
    color: var(--text-muted);
    align-items: baseline;
}

.contact-services-list li strong {
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Commitments */
.commitment-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.commitment-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commitment-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 500;
}

.commitment-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 380px;
}

/* Form Select */
.form-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(43, 43, 43, 0.2);
    padding: var(--spacing-xs) 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    transition: border-color 0.3s ease;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235e6861' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.form-select:focus {
    outline: none;
    border-bottom-color: var(--accent);
    color: var(--text-main);
}

.form-select option {
    background: var(--bg-color);
    color: var(--text-main);
}

/* ── Animation logo hero — branches & racines ── */
@keyframes branch-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes root-fall {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.branch-line {
    display: inline-block;
    opacity: 0;
    animation: branch-rise 800ms ease-out 100ms both;
}

.root-line {
    display: inline-block;
    opacity: 0;
    animation: root-fall 800ms ease-out 300ms both;
}

/* ── Photo Diagnostic en Hauteur — recadrage ── */
.gallery-img--top {
    object-position: center 10%;
}

/* ── Justification globale — style document carré ── */
p,
.service-text,
.page-desc,
.contact-intro,
.home-intro-text,
.real-caption,
.service-gallery-caption,
.commitment-text,
.hero-subtitle,
.triptych-label {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ==================================
   Responsive constraints
   ================================== */
@media (max-width: 1000px) {
    /* ----- Fix spacing for mobile ----- */
    .page-default {
        padding: 8rem 1.5rem 3rem 1.5rem;
    }
    .page-landing {
        padding: 0 1.5rem;
        height: auto;
        min-height: 100vh;
        padding-top: 10rem;
    }

    /* ----- Nav & Header ----- */
    .main-nav {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        position: absolute; /* Prevent fixed overlap on small screens */
        background-color: var(--bg-color);
    }
    .brand-logo {
        height: 70px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.2rem;
    }

    /* ----- Typography & Hero ----- */
    .hero-title {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .hero-image {
        width: 80vw;
        height: 60vh;
        right: 0;
        top: 20%;
        opacity: 0.4;
    }

    .service-name-inline {
        font-size: 1.3rem;
        margin: 0 var(--spacing-sm);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        grid-column: 1 / -1 !important;
        margin-top: var(--spacing-md) !important;
    }
    .contact-split {
        grid-template-columns: 1fr;
        padding: 8rem 1.5rem 3rem 1.5rem;
    }
    .contact-services-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .service-gallery {
        grid-template-columns: 1fr;
    }
    .service-gallery-secondary {
        margin-top: 0;
    }
    .service-gallery-img,
    .service-gallery-secondary .service-gallery-img {
        height: 280px;
    }
    .service-gallery-strip {
        grid-template-columns: 1fr;
    }
    .service-gallery-img--strip {
        height: 220px;
    }
    .services-header-grid {
        grid-template-columns: 1fr;
    }
    .services-header-figure {
        display: none;
    }
    .home-intro {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-lg);
    }
    .home-intro-figure {
        display: none;
    }
    .triptych {
        width: 100%;
        margin-left: 0;
        min-height: 280px;
        flex-direction: column;
        height: auto;
    }
    .triptych-panel {
        height: 55vw;
        min-height: 260px;
        flex: none;
    }
    .triptych-panel:hover {
        flex: none;
    }
    .contact-hero-img {
        height: 32vh;
    }
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .real-item--secondary {
        margin-top: 0;
    }
    .real-item--main .real-img,
    .real-item--secondary .real-img {
        height: 55vw;
        min-height: 260px;
    }
}

/* ── Floating contact button ─────────────────────────────────────── */
.float-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
}

.float-contact__btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    background-color: var(--accent-forest);
    color: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(46, 65, 54, 0.25);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.float-contact__btn:hover {
    background-color: var(--accent-olive);
    box-shadow: 0 4px 16px rgba(46, 65, 54, 0.35);
}

.float-contact__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background-color: var(--accent-forest);
    color: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 0.6rem 0.9rem;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(46, 65, 54, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-contact__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 18px;
    border: 6px solid transparent;
    border-top-color: var(--accent-forest);
}

.float-contact__tooltip span {
    display: block;
    line-height: 1.7;
}

.float-contact:hover .float-contact__tooltip {
    opacity: 1;
    transform: translateY(0);
}


