/*
Theme Name: MS Audits & Conseil
Theme URI: https://msauditsconseil.fr
Author: MS Audits & Conseil
Author URI: https://msauditsconseil.fr
Description: Thème personnalisé pour MS Audits & Conseil - Accompagnement en Qualité, Sécurité, Santé et Environnement
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ms-audits-conseil
*/

/* ================================================
   MS Audits & Conseil - Styles
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

@media (hover: none) {
    body {
        cursor: auto;
    }
}

/* --- Custom Properties --- */
:root {
    /* Sage Colors */
    --sage-50: #f6f7f4;
    --sage-100: #e8ebe3;
    --sage-200: #d4dbc8;
    --sage-300: #b5c2a3;
    --sage-400: #96a87e;
    --sage-500: #7a8d62;
    --sage-600: #5f704c;
    --sage-700: #4b583d;
    --sage-800: #3e4834;
    --sage-900: #353d2e;

    /* Forest Colors */
    --forest-700: #2d3b2a;
    --forest-800: #1f2a1c;
    --forest-900: #141d12;

    /* Cream Colors */
    --cream-50: #fdfcf9;
    --cream-100: #f9f6f0;
    --cream-200: #f3ede1;

    /* Tinted Colors (teintées vers sage) */
    --tinted-white: #f8f9f6;
    --tinted-black: #2a3328;
    
    /* Shadow Colors (ombres teintées vers sage) */
    --shadow-sage: rgba(95, 112, 76, 0.15);
    --shadow-sage-light: rgba(95, 112, 76, 0.1);
    --shadow-sage-dark: rgba(95, 112, 76, 0.25);
}

/* --- Typography --- */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(42, 51, 40, 0.6), rgba(42, 51, 40, 0));
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
}

.hero-text {
    max-width: 42rem;
    margin-left: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--tinted-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    color: rgba(248, 249, 246, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 32rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Hero Scroll CTA */
.hero-scroll-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.scroll-down-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--tinted-white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.scroll-down-btn:hover {
    opacity: 1;
    transform: translateY(5px);
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 1.5rem;
    height: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    padding: 1rem 2rem;
    background-color: var(--sage-600);
    color: var(--tinted-white);
    box-shadow: 0 10px 15px -3px var(--shadow-sage-light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--sage-700);
    box-shadow: 0 20px 25px -5px var(--shadow-sage);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: var(--forest-800);
    color: var(--tinted-white);
    box-shadow: 0 10px 15px -3px var(--shadow-sage-light);
}

.btn-secondary:hover {
    background-color: var(--forest-900);
    box-shadow: 0 20px 25px -5px var(--shadow-sage);
}

.btn-outline {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--sage-600);
    color: var(--sage-600);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--sage-600);
    color: var(--tinted-white);
}

.btn-filled {
    padding: 0.625rem 1.5rem;
    background-color: var(--sage-600);
    color: var(--tinted-white);
    border: 2px solid var(--sage-600);
}

.btn-filled:hover {
    background-color: var(--sage-700);
    border-color: var(--sage-700);
}

/* --- Navigation --- */
.main-nav {
    background-color: rgba(248, 249, 246, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px var(--shadow-sage-light);
    transition: all 0.3s ease;
}

.main-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-dot {
    color: var(--sage-600);
    font-size: 1.5rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--forest-800);
    margin-left: 0.25rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
}

.logo-img {
    height: 3rem;
    width: auto;
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background-color: #f3f4f6;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: var(--tinted-white);
}

.mobile-menu.is-open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-inner {
    padding: 1rem 1.5rem;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #4b5563;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: var(--sage-600);
}

.mobile-menu a.highlight {
    color: var(--sage-600);
    font-weight: 500;
}

/* Nav Placeholder (for sticky behavior) */
.nav-placeholder {
    display: none;
    height: 0;
}

.nav-placeholder.is-active {
    display: block;
}

/* --- Sections --- */
.section {
    min-height: 100vh;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* --- Prestations Section --- */
.prestations-section {
    background-color: var(--tinted-white);
}

.prestations-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .prestations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: var(--tinted-white);
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow-sage);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--sage-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.card:hover .card-icon {
    background-color: var(--sage-200);
}

.card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--sage-600);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 0.75rem;
}

.card-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--sage-50);
    color: var(--sage-700);
    font-size: 0.875rem;
    border-radius: 9999px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--sage-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.card-link:hover {
    color: var(--sage-700);
}

.card-link svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

/* --- Certifications Section --- */
.certifications-section {
    background-color: var(--sage-100);
    position: relative;
    overflow: hidden;
}

.decorative-circle {
    position: absolute;
    left: -8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24rem;
    height: 24rem;
    border: 3px solid rgba(181, 194, 163, 0.5);
    border-radius: 50%;
}

.certifications-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-card {
    background: var(--tinted-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px var(--shadow-sage-light);
    transition: box-shadow 0.3s ease;
}

.cert-card:hover {
    box-shadow: 0 4px 6px -1px var(--shadow-sage);
}

.cert-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 0.75rem;
}

.cert-card-description {
    color: #4b5563;
    line-height: 1.75;
}

.cert-full-width {
    margin-bottom: 2.5rem;
}

.certifications-cta {
    text-align: center;
}

/* --- À propos Section --- */
.apropos-section {
    background-color: var(--cream-100);
}

.apropos-grid {
    display: grid;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .apropos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.apropos-text p {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Timeline chronologique */
.apropos-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--sage-400), var(--sage-300));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-dot {
    width: 1rem;
    height: 1rem;
    background-color: var(--sage-600);
    border: 3px solid var(--cream-100);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--sage-200);
    position: relative;
}

.timeline-item:first-child .timeline-dot {
    background-color: var(--sage-700);
    box-shadow: 0 0 0 2px var(--sage-300), 0 0 8px rgba(95, 112, 76, 0.4);
}

.timeline-item:first-child .timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--cream-100);
    border-radius: 50%;
}

.timeline-content {
    background-color: var(--tinted-white);
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px var(--shadow-sage-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow-sage);
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--sage-200);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--sage-700);
}

.timeline-text {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.timeline-description {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1023px) {
    .apropos-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

/* --- Partenaires Section --- */
.partenaires-section {
    background-color: var(--forest-800);
}

.partenaires-section .section-title {
    color: var(--tinted-white);
    text-align: center;
}

.partenaires-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .partenaires-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-card {
    background: rgba(248, 249, 246, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.partner-card:hover {
    background: rgba(248, 249, 246, 0.2);
}

.partner-logo {
    width: 100%;
    max-width: 8rem;
    height: 6rem;
    background: #ffffff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.partner-name {
    color: var(--tinted-white);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.partner-description {
    color: rgba(248, 249, 246, 0.7);
    font-size: 0.875rem;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--tinted-white);
}

.contact-grid {
    display: grid;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* When form is hidden, success message and map side by side */
.contact-grid.form-submitted {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .contact-grid.form-submitted {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--sage-500);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--sage-600);
    box-shadow: 0 0 0 2px rgba(95, 112, 76, 0.1);
}

.form-group textarea {
    resize: none;
}

/* Form Success Message */
.form-success-container {
    margin-top: 0;
    animation: slideDownFade 0.5s ease-out;
    height: 450px;
    display: flex;
    align-items: stretch;
}

.form-success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px var(--shadow-sage-light);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.form-success-icon-wrapper {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: var(--sage-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(95, 112, 76, 0.3);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.form-success-icon {
    width: 2rem;
    height: 2rem;
    color: var(--tinted-white);
    animation: iconFadeIn 0.4s ease-out 0.4s both;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-success-text {
    flex: 1;
    padding-top: 0.25rem;
}

.form-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sage-700);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.form-success-message {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sage-700);
    margin: 0;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Notifications */
.form-notification {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px var(--shadow-sage);
    animation: slideDownFade 0.4s ease-out;
    position: relative;
    padding-right: 3rem;
}

.form-notification.show {
    display: block;
}

.form-notification.success {
    background-color: var(--sage-50);
    border-left: 4px solid var(--sage-600);
    color: var(--sage-700);
}

.form-notification.error {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.form-notification.info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.form-notification .notification-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.form-notification .notification-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.form-notification .notification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.form-notification .notification-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.form-notification .notification-close svg {
    width: 1rem;
    height: 1rem;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.form-notification.hiding {
    animation: slideUpFade 0.3s ease-in forwards;
}

/* Map */
.contact-map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px var(--shadow-sage);
    height: 450px;
    z-index: 1;
}

.contact-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--sage-100);
}

/* Custom Leaflet marker styles */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px var(--shadow-sage);
    font-family: 'DM Sans', sans-serif;
}

.leaflet-popup-content {
    margin: 1rem;
    font-size: 0.875rem;
    color: var(--forest-800);
}

.leaflet-popup-content b {
    color: var(--sage-600);
    font-weight: 600;
}

.leaflet-popup-tip {
    background: var(--tinted-white);
    box-shadow: 0 2px 4px var(--shadow-sage-light);
}

/* --- Footer --- */
.footer {
    background-color: var(--sage-50);
    padding: 4rem 0;
    /* Footer n'a pas besoin de 100vh */
}

.footer-grid {
    display: grid;
    gap: 3rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: #4b5563;
    font-size: 0.875rem;
}

.footer-nav-title {
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 1rem;
}

.footer-nav a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--sage-600);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--sage-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.social-link:hover {
    background-color: var(--sage-300);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--sage-700);
}

.footer-bottom {
    border-top: 1px solid var(--sage-200);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* --- Custom Cursor --- */
.cursor {
    width: 10px;
    height: 10px;
    border: 2px solid var(--sage-600);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    display: none;
    background-color: transparent;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--sage-600);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, border-color 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, transform 0.5s ease;
    opacity: 0.5;
    display: none;
    background-color: transparent;
}

.cursor.hover {
    width: 6px;
    height: 6px;
    background-color: var(--sage-600);
    border-color: var(--sage-600);
    border-width: 2px;
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--sage-700);
    background-color: rgba(95, 112, 76, 0.25);
    opacity: 0.5;
    border-width: 2px;
    transform: translate(-50%, -50%) scale(1.2);
}

.cursor.click {
    width: 8px;
    height: 8px;
}

.cursor-follower.click {
    width: 20px;
    height: 20px;
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* --- Utilities --- */
.relative {
    position: relative;
}

.hidden {
    display: none;
}

/* --- GSAP Animation Classes --- */
.fade-in {
    opacity: 0;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
}
