/* =============================================================
   YATPF — Feuille de style principale
   Design : Premium, terreux, sobre, professionnel
   Zéro dépendance — CSS pur
   ============================================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #2C5530;
    --green-dark: #1E3A22;
    --green-light: #3D7042;
    --green-pale: #E8F0E9;
    --brown: #6B4226;
    --brown-light: #8B5E3C;
    --brown-dark: #4A2E1A;
    --sand: #D4C5A9;
    --sand-light: #E8DFD0;
    --sand-pale: #F2EDE4;
    --anthracite: #2D2D2D;
    --dark: #1A1A1A;
    --gray: #6B6B6B;
    --gray-light: #9B9B9B;
    --gray-lighter: #C8C0B5;
    --bg: #FAF8F5;
    --bg-alt: #F3EFE9;
    --white: #FFFFFF;
    --border: #E0D8CE;
    --red: #A93226;
    --red-light: #FDF0EF;

    --font-heading: Georgia, 'Times New Roman', 'Noto Serif', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
address { font-style: normal; }
strong { font-weight: 700; }

/* ----- Skip Link ----- */
.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 10000;
    background: var(--green); color: var(--white); padding: 0.5rem 1rem;
    border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-sm { max-width: 800px; }
.container-xs { max-width: 600px; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--anthracite);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}
.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}
.btn-secondary:hover {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--sand-light);
    border-color: var(--sand-light);
    color: var(--green-dark);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 1.05rem; }

/* ----- Header ----- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--anthracite);
    font-size: 1rem;
}
.logo:hover { color: var(--green); }
.logo-icon svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.3rem; letter-spacing: 0.08em; }
.logo-text small { font-size: 0.7rem; color: var(--gray); letter-spacing: 0.03em; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--anthracite);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}
.nav-link:hover,
.nav-link.nav-active {
    color: var(--green);
    background: var(--green-pale);
}

.nav-dropdown { position: relative; }
.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}
.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-sub a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--anthracite);
    font-size: 0.88rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}
.nav-sub a:hover {
    background: var(--green-pale);
    color: var(--green);
}

.btn-nav { margin-left: 1rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 6rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 30%, var(--brown) 70%, var(--brown-dark) 100%);
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212, 197, 169, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(44, 85, 48, 0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--sand-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero h1 span {
    display: block;
    color: var(--sand);
    font-size: 0.6em;
    font-weight: 400;
    margin-top: 0.5rem;
}

.hero-text {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.08;
}
.hero-decoration svg { width: 500px; height: 500px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Page Hero (inner pages) ----- */
.page-hero {
    position: relative;
    padding: 10rem 0 5rem;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--brown) 100%);
    z-index: 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}
.page-hero .breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 0.5rem; }

/* ----- Sections ----- */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-dark {
    background: var(--anthracite);
    color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-green {
    background: var(--green);
    color: var(--white);
}
.section-green h2,
.section-green h3 { color: var(--white); }
.section-green .section-label { color: var(--sand); }

/* ----- Grid ----- */
.grid { display: grid; gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ----- Cards ----- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--green);
    transition: all var(--transition);
}
.card:hover .card-icon {
    background: var(--green);
    color: var(--white);
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green);
}
.card-link:hover { gap: 0.7rem; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

/* Service detail card */
.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.service-detail-card .card-visual {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.service-detail-card .card-body { padding: 2rem; }

/* ----- Feature list ----- */
.feature-list {
    display: grid;
    gap: 1.25rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.feature-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-top: 0.1rem;
}
.feature-check svg { width: 14px; height: 14px; }
.feature-item h4 { font-family: var(--font-body); margin-bottom: 0.2rem; }
.feature-item p { color: var(--gray); font-size: 0.9rem; }

/* ----- Stats ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item { padding: 1.5rem; }
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.section-dark .stat-number { color: var(--sand); }
.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}
.section-dark .stat-label { color: rgba(255,255,255,0.6); }

/* ----- Testimonial / Quote Block ----- */
.quote-block {
    background: var(--white);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}
.quote-block p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--anthracite);
    line-height: 1.7;
}
.quote-block cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: normal;
    font-weight: 600;
}

/* ----- Realisations Grid ----- */
.realisation-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
}
.realisation-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.realisation-visual {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.realisation-visual .visual-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
.realisation-body { padding: 1.5rem; }
.realisation-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.realisation-body p { color: var(--gray); font-size: 0.9rem; }
.realisation-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--gray-light);
}
.realisation-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Visual patterns for realisation cards */
.visual-earth {
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 40%, var(--brown-light) 100%);
}
.visual-forest {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 40%, var(--green-light) 100%);
}
.visual-field {
    background: linear-gradient(135deg, var(--sand) 0%, var(--brown-light) 50%, var(--green) 100%);
}
.visual-stone {
    background: linear-gradient(135deg, #5C5C5C 0%, #787878 50%, var(--gray) 100%);
}
.visual-mixed {
    background: linear-gradient(135deg, var(--green) 0%, var(--brown) 50%, var(--sand) 100%);
}

/* ----- Zone intervention ----- */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.zone-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
}
.zone-item:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
}
.zone-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}
.zone-item.zone-primary {
    border-color: var(--green);
    background: var(--green-pale);
}
.zone-item.zone-primary .zone-dot { background: var(--green-dark); }

/* ----- Map placeholder ----- */
.map-visual {
    background: linear-gradient(160deg, var(--green-pale) 0%, var(--sand-pale) 50%, var(--bg-alt) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.map-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, var(--green-pale) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, var(--sand-light) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(44, 85, 48, 0.05) 0%, transparent 60%);
}
.map-visual > * { position: relative; z-index: 1; }
.map-visual svg { color: var(--green); margin-bottom: 1rem; }
.map-visual p { color: var(--gray); font-size: 0.95rem; }

/* ----- CTA Band ----- */
.cta-band {
    background: linear-gradient(135deg, var(--green-dark), var(--green), var(--green-dark));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.cta-band h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.8); }
.cta-band-actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ----- Forms ----- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--anthracite);
    margin-bottom: 0.5rem;
}
.form-label .required { color: var(--red); margin-left: 0.15rem; }
.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-lighter);
}
.form-textarea {
    resize: vertical;
    min-height: 140px;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-hint {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-top: 0.35rem;
}
.form-error {
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 0.35rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ----- Flash Messages ----- */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1rem auto;
    max-width: 1200px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: flashIn 0.4s ease;
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.flash-success {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #C8E6C9;
}
.flash-error {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #F5C6CB;
}
.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.25rem;
    line-height: 1;
}
.flash-close:hover { opacity: 1; }

/* ----- Footer ----- */
.site-footer {
    background: var(--anthracite);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    display: inline-block;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-contact-col address p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.footer-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--sand);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.footer-links-bottom a { color: rgba(255,255,255,0.4); }
.footer-links-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-links-bottom .sep { margin: 0 0.5rem; }

/* ----- About page ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}
.about-visual-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green) 0%, var(--brown) 50%, var(--sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual-bg svg { width: 120px; height: 120px; color: rgba(255,255,255,0.3); }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--gray); margin-bottom: 1rem; line-height: 1.8; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--gray); font-size: 0.9rem; }

/* ----- Contact Info ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}
.contact-info-list {
    display: grid;
    gap: 1.5rem;
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.contact-info-item p,
.contact-info-item a {
    color: var(--gray);
    font-size: 0.9rem;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.form-card > p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ----- Service Page Detail ----- */
.service-hero-visual {
    height: 300px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}
.service-content { max-width: 800px; margin: 0 auto; }
.service-content h2 { margin: 2.5rem 0 1rem; }
.service-content p { color: var(--gray); margin-bottom: 1rem; line-height: 1.8; }
.service-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.service-content ul li {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: sticky;
    top: 100px;
}
.service-sidebar h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.service-sidebar ul { margin-bottom: 1.5rem; }
.service-sidebar li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-sidebar li:last-child { border: none; }
.service-sidebar li svg { color: var(--green); flex-shrink: 0; width: 16px; height: 16px; }

/* ----- Legal Pages ----- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: 1.4rem; }
.legal-content h3 { margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.legal-content p { color: var(--gray); margin-bottom: 1rem; line-height: 1.8; }
.legal-content ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.legal-content ul li {
    color: var(--gray);
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* ----- 404 Page ----- */
.page-404 {
    padding: 10rem 0 5rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.error-block { max-width: 500px; margin: 0 auto; }
.error-code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.error-block h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-block p { color: var(--gray); margin-bottom: 2rem; }

/* ----- Approach section (numbered steps) ----- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: approach;
}
.approach-item {
    counter-increment: approach;
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.approach-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green);
}
.approach-item::before {
    content: counter(approach, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    opacity: 0.15;
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    line-height: 1;
}
.approach-item h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.approach-item p { color: var(--gray); font-size: 0.9rem; }

/* ----- Animations (CSS only, progressive enhancement) ----- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ----- Service Layout (content + sidebar) ----- */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .zone-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .service-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
}

@media (max-width: 768px) {
    /*
     * FIX CRITIQUE : backdrop-filter crée un containing block pour
     * position:fixed, ce qui empêche le menu mobile de couvrir le viewport.
     * On le désactive sur mobile et on met un fond opaque.
     */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .nav-link:last-child { border-bottom: none; }

    /* Mobile dropdown : always visible, indented */
    .nav-dropdown > .nav-link { border-bottom: 1px solid var(--border); }
    .nav-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        background: var(--bg-alt);
    }
    .nav-sub a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .nav-sub li:last-child a { border-bottom: none; }

    .btn-nav {
        display: block;
        margin: 1.5rem 0 0;
        text-align: center;
        width: 100%;
        padding: 1rem;
        font-size: 1.05rem;
    }

    /* Hamburger → X animation */
    .nav-toggle {
        position: relative;
        z-index: 1001;
    }
    .nav-toggle.active .nav-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .nav-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero { min-height: 90vh; padding: 7rem 0 4rem; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .hero h1 span { font-size: clamp(0.85rem, 3vw, 1rem); }
    .hero-text { font-size: 1rem; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-decoration { display: none; }
    .scroll-indicator { display: none; }

    /* Sections */
    .section { padding: 3rem 0; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    /* Service page layout stacking */
    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-sidebar {
        position: static;
        order: -1;
    }
    .service-hero-visual { height: 200px; margin-bottom: 2rem; }
    .service-content { max-width: 100%; }

    /* Quote block */
    .quote-block { padding: 1.5rem; }
    .quote-block p { font-size: 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 1.75rem; }

    /* CTA */
    .cta-band { padding: 3rem 0; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .cta-band-actions { justify-content: center; width: 100%; }
    .cta-band h2 { font-size: 1.3rem; }

    /* Grids */
    .zone-grid { grid-template-columns: 1fr 1fr; }
    .approach-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    /* Page hero */
    .page-hero { padding: 7rem 0 2.5rem; }
    .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .page-hero p { font-size: 0.95rem; }

    /* Map */
    .map-visual { height: 280px; }

    /* About */
    .about-visual { aspect-ratio: 16/9; }

    /* Contact */
    .contact-info-icon { width: 42px; height: 42px; }

    /* Realisation cards */
    .realisation-visual { height: 180px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { padding: 5.5rem 0 3rem; min-height: 85vh; }
    .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .hero-label { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
    .card { padding: 1.5rem; }
    .form-card { padding: 1.25rem; }
    .form-input, .form-textarea, .form-select { font-size: 16px; } /* prevents iOS zoom */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-item { padding: 0.85rem 0.75rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.78rem; }
    .cta-band-actions { flex-direction: column; width: 100%; }
    .cta-band-actions .btn { width: 100%; }
    .page-hero { padding: 6rem 0 2rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .breadcrumb { font-size: 0.78rem; }
    .zone-grid { grid-template-columns: 1fr; }
    .section-label { font-size: 0.7rem; }
    .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .footer-grid { gap: 1.5rem; }
    .footer-col h3 { margin-bottom: 0.75rem; }
    .footer-bottom { padding: 1.25rem 0; font-size: 0.75rem; }
    .approach-item { padding: 1.75rem 1.25rem 1.5rem; }
    .approach-item::before { font-size: 2rem; }
    .value-card { padding: 1.75rem 1.25rem; }
    .value-icon { width: 52px; height: 52px; }
    .service-sidebar { padding: 1.5rem; }
    .service-detail-card .card-body { padding: 1.5rem; }
    .realisation-body { padding: 1.25rem; }
    .contact-grid { gap: 1.5rem; }
    .quote-block { padding: 1.25rem; }
    .map-visual { height: 220px; }
    .legal-content h2 { font-size: 1.2rem; margin-top: 2rem; }
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ----- Print ----- */
@media print {
    .site-header, .nav-toggle, .cta-band, .btn-nav, .scroll-indicator { display: none; }
    .hero { min-height: auto; padding: 2rem 0; }
    .section { padding: 1.5rem 0; }
    body { color: #000; background: #fff; }
}
