﻿/* Netflix-inspired full theme for Natur-Elag82 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Base tokens — overridden by layout.php inline <style> per theme */
    --nf-bg: #141414;
    --nf-bg-alt: #0f0f0f;
    --nf-surface: #181818;
    --nf-surface-2: #222222;
    --nf-text: #f5f5f1;
    --nf-muted: #b3b3b3;
    --nf-dim: #7a7a7a;
    --nf-red: #e50914;
    --nf-red-strong: #ff2230;
    --nf-border: rgba(255, 255, 255, 0.12);
    --nf-success: #46d369;
    --nf-error: #ff5d5d;
    --nf-on-primary: #ffffff;
    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', Roboto, sans-serif;
    --section-py: 86px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--nf-text);
    background: var(--nf-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Accessibilité WCAG 2.1 AA ─────────────────────────────────────── */
/* Skip link pour navigation au clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--nf-red);
    color: var(--nf-on-primary);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators visibles pour navigation clavier */
*:focus {
    outline: 3px solid var(--nf-red);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--nf-red);
    outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────────────── */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--nf-text);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--nf-text);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nf-bg);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: var(--nf-bg);
    border-bottom-color: var(--nf-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nf-text);
}

.logo-icon {
    font-size: 1.35rem;
    opacity: 0.65;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.logo-text strong {
    color: var(--nf-red);
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 6px;
    color: var(--nf-muted);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: var(--nf-text);
    background: var(--nf-surface-2);
}

.nav-cta {
    background: var(--nf-red) !important;
    color: var(--nf-on-primary) !important;
    border: 1px solid transparent;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--nf-red-strong) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    background: var(--nf-text);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 6px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
    background: var(--nf-red);
    color: var(--nf-on-primary);
}

.btn-primary:hover {
    background: var(--nf-red-strong);
    color: var(--nf-on-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

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

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.flash {
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.flash-success {
    background: var(--nf-surface);
    color: var(--nf-success);
    border-bottom: 1px solid var(--nf-success);
}

.flash-error {
    background: var(--nf-surface);
    color: var(--nf-error);
    border-bottom: 1px solid var(--nf-error);
}

.hero {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 90px;
    background: var(--nf-bg);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--nf-bg));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
    color: var(--nf-red);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.77rem;
    font-weight: 700;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7.2vw, 4.95rem);
    max-width: 880px;
    margin: 0 auto 18px;
    padding: 0.16em 0 0.08em;
    color: var(--nf-text);
    text-wrap: balance;
    overflow: visible;
}

.hero-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 18px;
    max-width: 980px;
}

.hero-title-wrap h1 {
    margin: 0;
    padding-top: 0.04em;
}

.hero-title-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(64px, 10vw, 110px);
    height: clamp(64px, 10vw, 110px);
    padding: 8px;
    border-radius: 14px;
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    flex: 0 0 auto;
}

.hero-title-logo.is-white-bg {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-title-logo.is-theme-bg {
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
}

.hero-title-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.hero-subtitle {
    max-width: 760px;
    font-size: clamp(1rem, 2.3vw, 1.25rem);
    color: var(--nf-muted);
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

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

.section-alt {
    background: var(--nf-bg-alt);
}

.section-header {
    margin-bottom: 36px;
    text-align: left;
    max-width: 900px;
}

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
    color: var(--nf-red);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.section-header h2 {
    color: var(--nf-text);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.05vw, 2.75rem);
    line-height: 1.14;
    padding-top: 0.14em;
    padding-bottom: 0.04em;
    margin-bottom: 10px;
    text-wrap: balance;
    overflow: visible;
}

.section-desc {
    color: var(--nf-muted);
    font-size: 1rem;
    max-width: 760px;
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-bento-card {
    position: relative;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.service-bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-bento-card.has-bg {
    border: none;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--nf-bg) 0%, rgba(15, 24, 19, 0.7) 40%, rgba(15, 24, 19, 0.2) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.service-bento-card:hover .bento-overlay {
    background: linear-gradient(to top, var(--nf-bg) 0%, rgba(15, 24, 19, 0.8) 50%, rgba(15, 24, 19, 0.3) 100%);
}

.bento-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nf-primary) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--nf-primary) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-emoji {
    font-size: 1.5rem;
}

.service-bento-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background: color-mix(in srgb, var(--nf-primary) 25%, transparent);
}

.service-bento-card h3 {
    font-size: 1.35rem;
    color: var(--nf-text);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.service-bento-card p {
    color: var(--nf-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Réalisations Gallery ─────────────────────────────────────────── */
.realisations-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.real-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.real-item--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.real-item:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.real-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.real-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.real-item:hover .real-img img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.real-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nf-surface-2);
}

.real-img-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.real-img--error img {
    display: none;
}

.real-img--error::after {
    content: 'Image non disponible';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nf-dim);
    font-size: 0.82rem;
    background: var(--nf-surface-2);
}

/* Overlay */
.real-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.real-item:hover .real-overlay {
    opacity: 1;
}

.real-overlay-content {
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.real-item:hover .real-overlay-content {
    transform: translateY(0);
}

.real-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.real-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.real-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.real-item:hover .real-badge {
    background: rgba(255, 255, 255, 0.22);
}

.why-us-content {
    max-width: 980px;
}

.why-us-text {
    color: var(--nf-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.why-us-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.highlight-item {
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: left;
}

.highlight-number {
    display: block;
    color: var(--nf-red);
    font-size: 2rem;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.highlight-label {
    color: var(--nf-muted);
    font-size: 0.88rem;
}

.process-timeline {
    max-width: 860px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--nf-red), transparent);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 12px 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nf-red);
    color: var(--nf-on-primary);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.step-content p {
    color: var(--nf-muted);
    font-size: 0.93rem;
}

.zone-banner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--nf-border);
    background: var(--nf-surface);
    box-shadow: var(--shadow-soft);
}

.zone-icon {
    font-size: 2.4rem;
    opacity: 0.95;
}

.zone-text h2 {
    color: var(--nf-text);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.zone-text p {
    color: var(--nf-muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius);
    padding: 16px;
}

.contact-info-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.contact-info-item strong {
    display: block;
    color: var(--nf-text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

.contact-info-item a,
.contact-info-item span {
    color: var(--nf-muted);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 110px;
}

.contact-feedback-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.contact-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    background: var(--nf-surface);
    font-size: 0.92rem;
    line-height: 1.45;
}

.contact-feedback strong {
    flex: 0 0 auto;
    font-weight: 700;
}

.contact-feedback-success {
    color: var(--nf-success);
    border-color: var(--nf-success);
}

.contact-feedback-error {
    color: var(--nf-error);
    border-color: var(--nf-error);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--nf-text);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.required {
    color: var(--nf-error);
}

.optional {
    color: var(--nf-dim);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--nf-border);
    background: var(--nf-bg-alt);
    color: var(--nf-text);
    border-radius: 7px;
    padding: 11px 13px;
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--nf-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nf-red);
    background: var(--nf-surface);
    box-shadow: 0 0 0 3px var(--nf-surface-2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 2px;
}

.site-footer {
    background: var(--nf-surface-2);
    border-top: 1px solid var(--nf-border);
    color: var(--nf-muted);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 26px;
    padding-bottom: 36px;
}

.footer-tagline {
    color: var(--nf-muted);
    max-width: 360px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--nf-text);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--nf-muted);
}

.footer-col a:hover {
    color: var(--nf-text);
}

.footer-bottom {
    border-top: 1px solid var(--nf-border);
    padding: 16px 0;
}

.footer-bottom p {
    text-align: center;
    color: var(--nf-dim);
    font-size: 0.82rem;
}

.footer-sep {
    margin: 0 8px;
}

.footer-admin {
    color: var(--nf-dim) !important;
}

.footer-admin:hover {
    color: var(--nf-text) !important;
}

/* Theme presets are handled entirely via dynamic :root variables in layout.php */

@media (prefers-reduced-motion: no-preference) {

    .hero-content>* {
        opacity: 0;
        transform: translateY(16px);
        animation: revealUp 0.75s ease forwards;
    }

    .hero-content>*:nth-child(1) {
        animation-delay: 0.08s;
    }

    .hero-content>*:nth-child(2) {
        animation-delay: 0.2s;
    }

    .hero-content>*:nth-child(3) {
        animation-delay: 0.32s;
    }

    .hero-content>*:nth-child(4) {
        animation-delay: 0.44s;
    }

    .real-item {
        animation: fadeInSoft 0.75s ease both;
    }
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 110px;
    }

    .realisations-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .real-item--wide {
        grid-column: span 2;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --section-py: 68px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--nf-bg);
        border-top: 1px solid var(--nf-border);
        border-bottom: 1px solid var(--nf-border);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px;
        gap: 5px;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;
        padding: 10px 12px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }

    .hero {
        min-height: 66vh;
        align-items: center;
        padding: 98px 0 72px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-title-wrap {
        gap: 14px;
    }

    .hero-title-logo {
        width: 84px;
        height: 84px;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-header {
        text-align: center;
    }

    .why-us-highlights {
        grid-template-columns: 1fr;
    }

    .zone-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.65rem;
    }

    .hero h1 {
        font-size: clamp(1.92rem, 10.8vw, 2.85rem);
    }

    .hero-title-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title-logo {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .realisations-gallery {
        grid-template-columns: 1fr;
    }

    .real-item--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .real-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%
        );
    }

    .real-overlay-content {
        transform: translateY(0);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 18px;
    }
}

/* ── Mobile extra-small (<360px) - Galaxy Fold, petits écrans ────────── */
@media (max-width: 359px) {
    /* Font-size minimum 16px pour éviter le zoom automatique iOS */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Inputs touch-friendly (min 44px de hauteur) */
    .form-group input,
    .form-group textarea,
    .btn,
    button {
        min-height: 44px;
        padding: 12px 14px;
    }

    /* Réduire légèrement les titres */
    .hero h1 {
        font-size: clamp(1.6rem, 10.4vw, 2.2rem);
    }

    .section-header h2 {
        font-size: 1.65rem;
        line-height: 1.16;
        padding-top: 0.12em;
        padding-bottom: 0.03em;
    }

    /* Container plus étroit */
    .container {
        padding: 0 12px;
    }

    /* Boutons pleine largeur */
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Logo plus compact */
    .logo-text {
        font-size: 1.4rem;
    }
}
