@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/dm-sans.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-700.woff2') format('woff2');
}

:root {
    /* Palette inspirée de Zoi.com */
    --bg-color: #F9F7F2;
    /* Sable très clair */
    --text-color: #1A3C34;
    /* Vert Forêt profond */
    --text-light: #4A6C58;
    /* Vert Olive adouci pour les sous-titres */
    --accent-color: #D48C70;
    /* Terracotta doux */
    --accent-hover: #b5745b;
    --white: #FFFFFF;
    --card-bg: #F0EFE9;
    /* Sable un peu plus soutenu */

    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Espacement */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;

    /* UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;
    --shadow-soft: 0 10px 30px rgba(26, 60, 52, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 32px;
    background-color: var(--text-color);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Header */
.header {
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 60, 52, 0.05);
}

.logo-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header-scroll-subtitle {
    display: none;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.hamburger {
    display: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

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

/* Hero Section */
.hero {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: var(--spacing-md) 0;
}

/* Philosophy / Services */
.services {
    background-color: var(--card-bg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.card {
    background-color: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.card h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Research Section */
.research {
    background-color: var(--white);
    border-top: 1px solid rgba(26, 60, 52, 0.05);
    border-bottom: 1px solid rgba(26, 60, 52, 0.05);
}

.research-intro {
    max-width: 800px;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: 1.1rem;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.research-item {
    border-left: 3px solid var(--accent-color);
    padding-left: var(--spacing-sm);
}

.research-item strong {
    color: var(--text-color);
    display: block;
    font-size: 1.05rem;
}

.research-item span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-content {
    flex: 1;
}

.credentials {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(26, 60, 52, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.credential-item strong {
    display: block;
    color: var(--text-color);
}

.credential-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Info Section */
.info-section {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.info-section h2 {
    color: var(--bg-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.info-item h3 {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #F5B896;
    margin-bottom: var(--spacing-sm);
}

.info-item p {
    color: rgba(249, 247, 242, 0.8);
    margin-bottom: 8px;
}

.info-item a {
    color: var(--bg-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(26, 60, 52, 0.1);
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer a {
    color: var(--text-color);
    margin: 0 10px;
}

/* Sticky Mobile Button (Hidden by default) */
.btn-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background-color: #8B4A32;
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(212, 140, 112, 0.4);
    text-align: center;
    white-space: nowrap;
    width: calc(100% - 40px);
    max-width: 400px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller overall */
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-md) 0; /* Further reduced from var(--spacing-lg) */
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .hero-subtitle {
        display: none;
    }

    .header-scroll-subtitle {
        display: block;
        color: var(--accent-color);
        font-size: 0.63rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.35s ease, max-height 0.35s ease;
    }

    .header.scrolled .header-scroll-subtitle {
        opacity: 1;
        max-height: 20px;
    }

    .header {
        padding: 12px 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    .about-image img {
        max-height: 220px;
    }

    .hero-buttons {
        display: none !important; /* Hide original buttons on mobile */
    }

    .btn-sticky-mobile {
        display: block; /* Show sticky button on mobile only */
    }

    body {
        padding-bottom: 100px;
    }

    .footer div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer a {
        margin: 0;
    }

    .container {
        padding: 0 var(--spacing-sm); /* Reduce side padding from 32px to 16px */
    }

    .header .container {
        padding-left: 3px;
    }

    .header .logo-wrap {
        gap: 3px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .grid-3,
    .about-container,
    .info-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        display: none;
    }

    /* Hamburger button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .hamburger.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(249, 247, 242, 0.98);
        padding: 16px 20px 24px;
        gap: 12px;
        border-bottom: 1px solid rgba(26, 60, 52, 0.1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 1000;
        align-items: flex-start;
    }

    /* Simplification pour mobile : masquer le menu */

    .about-image {
        order: -1;
        width: 100%;
    }

        .about-image img {

            aspect-ratio: 16/9;
            object-position: center 20%;

        }

    }

    

    /* Specialty and Tag Cloud */

    .grid-2 {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: var(--spacing-lg);

    }

    

    .specialty-list {

        padding-left: 0;

    }

    

    .specialty-list li {

        position: relative;

        padding-left: 28px;

        margin-bottom: 12px;

        font-weight: 500;

    }

    

    .specialty-list li::before {

        content: "✓";

        position: absolute;

        left: 0;

        color: var(--accent-color);

        font-weight: 700;

    }

    

    .tag-cloud {

        display: flex;

        flex-wrap: wrap;

        gap: 10px;

    }

    

    .tag-cloud span {

        padding: 8px 16px;

        background-color: var(--bg-color);

        border: 1px solid rgba(26, 60, 52, 0.1);

        border-radius: var(--radius-full);

        font-size: 0.9rem;

        color: var(--text-light);

        transition: all 0.3s ease;

    }

    

    .tag-cloud span:hover {

        border-color: var(--accent-color);

        color: var(--accent-color);

        transform: scale(1.05);

    }

    

    @media (max-width: 768px) {

        .grid-2 {

            grid-template-columns: 1fr;

            gap: var(--spacing-md);

        }

    }

    