/**
 * ════════════════════════════════════════════════════════════════
 * MAISONS CTL — HOMEPAGE PREMIUM
 * ════════════════════════════════════════════════════════════════
 *
 * Version: 4.0.0
 * Date: 29/04/2026
 *
 * Direction visuelle : éditoriale, architecturale, sobre.
 * Inspiration sobre Vistal (sans copier).
 *
 * - Palette crème + forêt sombre + accents terracotta
 * - DM Serif Display pour les titres, DM Sans pour le corps
 * - Espacements généreux (sections 120/80px)
 * - Photos pleines, pas d'emojis dans l'UI principale
 * - Hover offset, transitions sobres
 *
 * Compat :
 * - Conserve les classes HTML existantes des templates de sections
 *   (cards-grid, gallery, timeline, testimonials, trust-block, map-zone, cta-form)
 *   pour ne pas casser l'admin homepage
 * - Override visuel complet sans modifier la structure data
 * ════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */

.page-home {
    /* Palette éditoriale */
    --bg-cream: #F4F0EB;
    --bg-off-white: #FAF7F2;
    --bg-white: #FFFFFF;
    --bg-forest: #1F2A22;          /* fond foncé sections premium */
    --bg-forest-deep: #14201A;     /* fond final CTA */

    --ink-charcoal: #1B1F1A;       /* texte principal */
    --ink-warm: #3D362F;           /* texte secondaire chaud */
    --ink-muted: #7A736B;          /* meta / labels */
    --ink-divider: rgba(27, 31, 26, 0.12);
    --ink-on-dark: #F4EFE8;        /* texte sur fond foncé */
    --ink-on-dark-muted: rgba(244, 239, 232, 0.72);

    --accent-forest: #2D6A4F;      /* boutons primaires */
    --accent-forest-deep: #1B4332; /* hover boutons primaires */
    --accent-terracotta: #B5634A;  /* highlights subtils */
    --accent-gold: #C9A96E;        /* badges, étoiles */

    /* Typographie */
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Échelle */
    --container-max: 1280px;
    --container-px: 24px;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 12px 36px rgba(31, 42, 34, 0.08);
    --shadow-medium: 0 20px 60px rgba(31, 42, 34, 0.14);

    --section-py-desktop: 120px;
    --section-py-tablet: 88px;
    --section-py-mobile: 64px;
}

/* ═══════════════════════════════════════════════════════════════
   2. RESET / BASE HOMEPAGE
═══════════════════════════════════════════════════════════════ */

body.page-home {
    background: var(--bg-cream);
    color: var(--ink-charcoal);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
}

body.page-home main.home-page {
    margin: 0;
    padding: 0;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink-charcoal);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

body.page-home p {
    margin: 0;
}

body.page-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

body.page-home .container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════
   3. SECTIONS — RYTHME VERTICAL
═══════════════════════════════════════════════════════════════ */

body.page-home section {
    padding: var(--section-py-desktop) 0;
    position: relative;
}

@media (max-width: 1024px) {
    body.page-home section {
        padding: var(--section-py-tablet) 0;
    }
}

@media (max-width: 640px) {
    body.page-home section {
        padding: var(--section-py-mobile) 0;
    }
}

/* Eyebrow / tag de section (uppercase petit, lettres espacées) */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   4. BOUTONS PREMIUM
═══════════════════════════════════════════════════════════════ */

.ctl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.ctl-btn--primary {
    background: var(--accent-forest);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(45, 106, 79, 0.28);
}

.ctl-btn--primary:hover {
    background: var(--accent-forest-deep);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(27, 67, 50, 0.34);
}

.ctl-btn--ghost {
    background: transparent;
    color: var(--ink-charcoal);
    border-color: var(--ink-charcoal);
}

.ctl-btn--ghost:hover {
    background: var(--ink-charcoal);
    color: var(--bg-cream);
    transform: translateY(-2px);
}

.ctl-btn--on-dark {
    background: transparent;
    color: var(--ink-on-dark);
    border-color: rgba(244, 239, 232, 0.5);
}

.ctl-btn--on-dark:hover {
    background: var(--ink-on-dark);
    color: var(--ink-charcoal);
}

/* ═══════════════════════════════════════════════════════════════
   5. HERO SECTION
═══════════════════════════════════════════════════════════════ */

.hero-section-desktop,
.hero-section-mobile {
    padding: 0 !important; /* override .page-home section */
    background: var(--bg-cream);
}

/* Desktop hero : image plein-cadre + contenu en colonne droite */
.hero-section-desktop {
    display: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 720px;
    height: clamp(640px, 92vh, 880px);
    overflow: hidden;
    isolation: isolate;
    background: var(--bg-cream);
}

@media (min-width: 1025px) {
    .hero-section-desktop {
        display: block;
    }
}

.hero-section-desktop .hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-section-desktop .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.6s ease;
    will-change: opacity;
}

.hero-section-desktop .hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-section-desktop .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(20, 32, 26, 0.78) 0%, rgba(20, 32, 26, 0.45) 50%, rgba(20, 32, 26, 0.18) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section-desktop .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 120px var(--container-px) 80px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    text-align: left;
    color: #ffffff;
}

.hero-section-desktop .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-section-desktop .hero-eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}

.hero-section-desktop .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.4vw, 4.6rem);
    line-height: 1.04;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 28px;
    letter-spacing: -0.015em;
    max-width: 14ch;
}

.hero-section-desktop .hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 36px;
    max-width: 42ch;
    font-weight: 400;
}

.hero-section-desktop .highlight-50 {
    display: none; /* on retire ce badge "🎉 50 ans" trop décoratif */
}

.hero-section-desktop .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.hero-section-desktop .hero-cta .btn,
.hero-section-desktop .hero-cta .btn-primary,
.hero-section-desktop .hero-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.hero-section-desktop .hero-cta .btn-primary {
    background: var(--accent-forest);
    color: #fff;
    box-shadow: 0 10px 28px rgba(45, 106, 79, 0.45);
}

.hero-section-desktop .hero-cta .btn-primary:hover {
    background: var(--accent-forest-deep);
    transform: translateY(-2px);
}

.hero-section-desktop .hero-cta .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-section-desktop .hero-cta .btn-secondary:hover {
    background: #fff;
    color: var(--ink-charcoal);
}

.hero-section-desktop .hero-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-section-desktop .hero-dots .dot {
    width: 36px;
    height: 2px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    border: none;
}

.hero-section-desktop .hero-dots .dot.active {
    background: #fff;
    width: 52px;
}

/* Image mobile : pleine largeur 16:9 */
.hero-mobile-image {
    display: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-forest);
}

.hero-mobile-image img,
.hero-mobile-image .hero-mobile-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .hero-mobile-image {
        display: block;
    }

    .hero-section-mobile {
        display: block;
    }
}

/* Section hero MOBILE (≤1024) */
.hero-section-mobile {
    display: none;
    position: relative;
    background: var(--bg-cream);
    padding: 56px var(--container-px) 80px !important;
    text-align: left;
    color: var(--ink-charcoal);
}

.hero-section-mobile .hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    color: inherit;
    animation: none;
    width: 100%;
    box-sizing: border-box;
}

.hero-section-mobile .hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1.08;
    color: var(--ink-charcoal);
    margin: 0 0 18px;
    text-align: left;
    letter-spacing: -0.015em;
}

.hero-section-mobile .hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-warm);
    margin: 0 0 28px;
    text-align: left;
    max-width: 38ch;
}

.hero-section-mobile .highlight-50 {
    display: none;
}

.hero-section-mobile .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    align-items: stretch;
}

.hero-section-mobile .hero-cta .btn,
.hero-section-mobile .hero-cta .btn-primary,
.hero-section-mobile .hero-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-align: center;
}

.hero-section-mobile .hero-cta .btn-secondary {
    background: transparent;
    color: var(--ink-charcoal);
    border-color: var(--ink-charcoal);
}

.hero-section-mobile .hero-cta .btn-secondary:hover {
    background: var(--ink-charcoal);
    color: var(--bg-cream);
}

/* ═══════════════════════════════════════════════════════════════
   6. HERO QUICK FORM (mini-formulaire 2 champs)
═══════════════════════════════════════════════════════════════ */

.hero-quick-form {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    padding: 26px 26px 22px;
    margin: 24px 0 16px;
    max-width: 460px;
    box-shadow: 0 24px 56px rgba(20, 32, 26, 0.32);
    backdrop-filter: blur(6px);
    text-align: left;
    box-sizing: border-box;
}

.hero-section-mobile .hero-quick-form {
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 42, 34, 0.10);
    border: 1px solid var(--ink-divider);
    margin: 8px 0 16px;
    max-width: 100%;
}

.hqf-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-quick-form::before {
    content: "Être rappelé sous 2h ouvrées";
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink-charcoal);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.hqf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.hqf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hqf-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hqf-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--ink-divider);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--ink-charcoal);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.hqf-field input:focus {
    outline: none;
    border-color: var(--accent-forest);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}

.hqf-field input::placeholder {
    color: #B5B0AA;
}

.hqf-submit {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-forest);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 6px 18px rgba(45, 106, 79, 0.32);
    letter-spacing: 0.01em;
}

.hqf-submit:hover:not(:disabled) {
    background: var(--accent-forest-deep);
    transform: translateY(-1px);
}

.hqf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hqf-reassurance {
    font-size: 12px;
    color: var(--ink-muted);
    margin: 10px 0 0;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.hqf-feedback {
    margin-top: 10px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    display: none;
}

.hqf-feedback.is-visible {
    display: block;
    padding: 12px 14px;
}

.hqf-feedback.is-success {
    background: #E8F4ED;
    color: #1B4332;
    border: 1px solid #A6D9B7;
}

.hqf-feedback.is-error {
    background: #FBECEC;
    color: #842029;
    border: 1px solid #F2C2C5;
}

@media (max-width: 480px) {
    .hero-quick-form {
        padding: 22px 20px 18px;
    }
    .hqf-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-quick-form::before {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   7. STATS BAR (4 stats minimalistes)
═══════════════════════════════════════════════════════════════ */

.stats-section {
    background: var(--bg-cream);
    padding: 80px 0 !important;
    border-bottom: 1px solid var(--ink-divider);
}

.stats-section .container {
    max-width: var(--container-max);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    border-left: 1px solid var(--ink-divider);
    padding-left: 28px;
    padding-right: 8px;
}

.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.4rem);
    font-weight: 400;
    color: var(--ink-charcoal);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-section { padding: 56px 0 !important; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }
    .stat-item {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 28px; }
    .stat-item { border-top: 1px solid var(--ink-divider); padding-top: 24px; }
    .stat-item:first-child { border-top: none; padding-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   8. TYPES DE MAISONS (cards-grid)
═══════════════════════════════════════════════════════════════ */

.types-section {
    background: var(--bg-cream);
}

.types-section .container {
    max-width: var(--container-max);
}

.section-header-types {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-tag-types {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 18px;
}

.section-tag-types::before {
    content: "—  ";
    color: inherit;
}

.section-title-types {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    line-height: 1.08;
    color: var(--ink-charcoal);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.section-subtitle-types {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ink-warm);
    margin: 0;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.cards-grid-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card-type {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
}

.card-type:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.card-type-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E8E2D9;
}

.card-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.card-type:hover .card-type-image img {
    transform: scale(1.06);
}

.card-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-charcoal);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    border-radius: 999px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.card-type-stats {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-charcoal);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.stat-chip .icon { font-size: 12px; }

.card-type-body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-type-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--ink-charcoal);
}

.card-type-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-type-title a:hover { color: var(--accent-forest); }

.card-type-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-warm);
    margin: 0 0 18px;
    flex: 1;
}

.card-type-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 22px;
}

.feature-tag {
    font-size: 13px;
    color: var(--ink-warm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feature-tag .check {
    color: var(--accent-forest);
    font-weight: 700;
    font-size: 13px;
}

.card-type-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-charcoal);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s ease, gap 0.25s ease;
    border-bottom: 1px solid var(--ink-charcoal);
    align-self: flex-start;
    padding-bottom: 4px;
}

.card-type-cta:hover {
    color: var(--accent-forest);
    border-color: var(--accent-forest);
    gap: 12px;
}

.card-type-cta .arrow {
    transition: transform 0.25s ease;
}

.card-type-cta:hover .arrow {
    transform: translateX(3px);
}

.section-bottom-cta {
    margin-top: 56px;
    text-align: center;
}

.btn-all-realisations {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--ink-charcoal);
    border: 1px solid var(--ink-charcoal);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-all-realisations:hover {
    background: var(--ink-charcoal);
    color: var(--bg-cream);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .cards-grid-types { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .section-header-types { margin-bottom: 48px; }
}

@media (max-width: 640px) {
    .cards-grid-types { grid-template-columns: 1fr; gap: 20px; }
    .card-type-body { padding: 22px 22px 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   9. GALLERY ÉDITORIALE (mosaïque asymétrique)
═══════════════════════════════════════════════════════════════ */

.gallery-section {
    background: var(--bg-off-white);
}

.gallery-section .section-header {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.gallery-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    margin: 0 0 16px;
    color: var(--ink-charcoal);
    letter-spacing: -0.02em;
}

.gallery-section .section-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-warm);
    margin: 0;
}

/* v3.0 — grille asymétrique éditoriale avec ratios respectant les images 16:9
   sources, donc aucune maison n'est recadrée. Items 1 et 6 = héros 21:9 plein
   largeur ; items 2 à 5 = cartes 16:9 demi-largeur. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-grid figure.gallery-item,
.gallery-grid .gallery-item {
    margin: 0;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #E8E2D9;       /* fallback temps de chargement */
    aspect-ratio: 16 / 9;       /* ratio source des images CTL */
    width: 100%;
    display: block;
    line-height: 0;
}

/* Items héros (premier et dernier) : pleine largeur, format cinéma 21:9 */
.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
}

/* Image en remplissage absolu : fill garanti, aucune zone vide */
.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item__label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(20, 32, 26, 0.78);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

.gallery-section .section-bottom-cta {
    margin-top: 56px;
}

/* Tablette : grille 2 colonnes conservée, items 1 et 6 toujours pleine largeur */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        aspect-ratio: 16 / 9; /* moins cinéma sur tablette pour préserver la hauteur */
    }
}

/* Mobile : grille 1 colonne, toutes les cartes en 16:9 */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10. PROCESS / TIMELINE (Notre méthode)
═══════════════════════════════════════════════════════════════ */

.process-section {
    background: var(--bg-cream);
}

.process-section .container { max-width: 1080px; }

.process-section .section-header {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}

.process-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    margin: 0 0 16px;
    color: var(--ink-charcoal);
    letter-spacing: -0.02em;
}

.process-section .section-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-warm);
    margin: 0;
}

.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: process;
    border-top: 1px solid var(--ink-divider);
}

.process-step {
    counter-increment: process;
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--ink-divider);
    align-items: baseline;
    transition: padding 0.3s ease;
}

.process-step .step-icon {
    display: none; /* on remplace l'emoji par un numéral éditorial */
}

.process-step::before {
    content: counter(process, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--accent-forest);
    line-height: 1;
    letter-spacing: -0.02em;
}

.process-step .step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-step .step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink-charcoal);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Retire le préfixe "1. " injecté dans le titre via JSON pour éviter doublon */
.process-step .step-content h3 {
    font-feature-settings: "tnum" 1;
}

.process-step .step-content p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink-warm);
    margin: 0;
    max-width: 56ch;
}

.process-step .step-time {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-align: right;
    align-self: center;
}

.process-footer {
    margin-top: 48px;
    padding: 24px 32px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--ink-warm);
    font-size: 0.95rem;
}

.process-footer p { margin: 0; }
.process-footer strong { color: var(--ink-charcoal); }

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        gap: 16px 20px;
        padding: 32px 0;
    }
    .process-step::before { font-size: 2rem; }
    .process-step .step-content h3 { font-size: 1.25rem; }
    .process-step .step-time {
        grid-column: 2;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════════════
   11. TESTIMONIALS (citation premium)
═══════════════════════════════════════════════════════════════ */

.testimonials-section {
    background: var(--bg-forest);
    color: var(--ink-on-dark);
}

.testimonials-section .container { max-width: 1080px; }

.testimonials-section .section-header {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.testimonials-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    color: var(--ink-on-dark);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.testimonials-section .section-header p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-on-dark-muted);
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 239, 232, 0.12);
    border-radius: var(--radius-md);
    padding: 36px 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card:hover {
    border-color: rgba(244, 239, 232, 0.32);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--ink-on-dark);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.testimonial-text::before {
    content: "“";
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.4;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid rgba(244, 239, 232, 0.18);
    padding-top: 18px;
}

.testimonial-author-name {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink-on-dark);
    font-size: 0.95rem;
    margin: 0;
}

.testimonial-author-location {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--ink-on-dark-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 4px 0 0;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   12. TRUST BLOCK / E-E-A-T
═══════════════════════════════════════════════════════════════ */

.eeat-local {
    background: var(--bg-off-white);
    border-top: 1px solid var(--ink-divider);
    border-bottom: 1px solid var(--ink-divider);
    padding: 88px 0 !important;
}

.eeat-local .container { max-width: var(--container-max); }

.eeat-local h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    text-align: center;
    margin: 0 0 56px;
    color: var(--ink-charcoal);
    letter-spacing: -0.015em;
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.eeat-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--ink-divider);
    padding-left: 24px;
}

.eeat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.eeat-icon { display: none; }

.eeat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 6px;
}

.eeat-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-charcoal);
    margin: 0;
}

.eeat-text a {
    color: var(--accent-forest);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-forest);
    padding-bottom: 1px;
    transition: opacity 0.2s ease;
}

.eeat-text a:hover { opacity: 0.7; }

@media (max-width: 1024px) {
    .eeat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .eeat-item { border-left: none; padding-left: 0; }
}

@media (max-width: 480px) {
    .eeat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   13. MAP ZONE
═══════════════════════════════════════════════════════════════ */

.zone-section {
    background: var(--bg-cream);
}

.zone-section .container { max-width: var(--container-max); }

.zone-section .section-header {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.zone-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    color: var(--ink-charcoal);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.zone-section .section-header p {
    font-size: 1.05rem;
    color: var(--ink-warm);
    margin: 0;
}

.zone-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: stretch;
}

.zone-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.zone-cities-title {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 4px;
}

.villes-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.villes-grid li {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--ink-charcoal);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.villes-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 1px;
    background: var(--accent-forest);
}

.zone-footer-text {
    font-size: 0.95rem;
    color: var(--ink-warm);
    margin: 0;
}

.zone-departments {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin: 0;
}

.zone-radius {
    margin-top: auto;
    padding: 18px 22px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--ink-divider);
    font-size: 0.95rem;
    color: var(--ink-charcoal);
    line-height: 1.5;
}

.zone-radius strong { color: var(--accent-forest); }

.zone-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #E8E2D9;
    min-height: 420px;
}

.zone-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

@media (max-width: 1024px) {
    .zone-content { grid-template-columns: 1fr; gap: 36px; }
    .zone-map, .zone-map iframe { min-height: 320px; }
}

@media (max-width: 480px) {
    .villes-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   14. CTA-FORM (bannière finale frappante)
═══════════════════════════════════════════════════════════════ */

.cta-form-section,
.contact-section {
    background: var(--bg-forest-deep);
    color: var(--ink-on-dark);
    padding: 120px 0 !important;
}

.cta-form-section .container,
.contact-section .container {
    max-width: var(--container-max);
}

.cta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.cta-form-left .eyebrow {
    color: rgba(244, 239, 232, 0.7);
}

.cta-form-left h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.06;
    color: var(--ink-on-dark);
    margin: 0 0 28px;
    letter-spacing: -0.02em;
    max-width: 16ch;
}

.cta-form-left p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-on-dark-muted);
    margin: 0 0 32px;
    max-width: 44ch;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 36px;
}

.cta-benefit {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--ink-on-dark);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.cta-benefit::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent-gold);
    flex-shrink: 0;
}

.cta-form-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-on-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
    border-bottom: 1px solid rgba(244, 239, 232, 0.4);
    padding-bottom: 6px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-form-phone:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.cta-form-right {
    background: var(--bg-off-white);
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
    color: var(--ink-charcoal);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.cta-form-right h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink-charcoal);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.cta-form-right .form-intro {
    font-size: 0.95rem;
    color: var(--ink-warm);
    margin: 0 0 26px;
}

#contactFormHome,
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contactFormHome .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

#contactFormHome .form-group label,
#contactForm .form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 6px;
}

#contactFormHome input,
#contactFormHome select,
#contactFormHome textarea,
#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--ink-divider);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--ink-charcoal);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#contactFormHome textarea,
#contactForm textarea {
    min-height: 120px;
    resize: vertical;
}

#contactFormHome input:focus,
#contactFormHome select:focus,
#contactFormHome textarea:focus,
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--accent-forest);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}

#contactFormHome button[type="submit"],
#contactForm button[type="submit"] {
    margin-top: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-forest);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px rgba(45, 106, 79, 0.3);
}

#contactFormHome button[type="submit"]:hover,
#contactForm button[type="submit"]:hover {
    background: var(--accent-forest-deep);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .cta-form-section,
    .contact-section { padding: 80px 0 !important; }
    .cta-form-grid { grid-template-columns: 1fr; gap: 48px; }
    .cta-form-right { padding: 32px 26px; }
    #contactFormHome .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   15. ANIMATIONS SOBRES
═══════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card-type:hover { transform: none; }
    .card-type:hover .card-type-image img { transform: none; }
    .gallery-item:hover img { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   16. CORRECTIONS DE COMPATIBILITÉ (anciennes classes éventuelles)
═══════════════════════════════════════════════════════════════ */

/* Forcer le retrait de la "highlight 50 ans" décorative */
.page-home .highlight-50 { display: none; }

/* Le footer existe toujours en dehors du main, on évite double padding */
body.page-home main.home-page > section:last-of-type {
    border-bottom: none;
}
