/* ========================================================================
   MOTORISATION PORTAIL BATTANT - "Forged Steel" Design
   Wrought iron anthracite + forge red accents. Industrial craftsmanship.
   Zero gradients, zero emojis, zero fade, system fonts only.
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* PRIMARY - Anthracite iron: the color of wrought iron gates */
    --color-primary: #2d3436;
    --color-primary-light: #3d4548;
    --color-primary-lighter: #f0edea;
    --color-primary-dark: #1e2224;
    /* ACCENT - Forge red: heat of metalwork, bold and industrial */
    --color-accent: #c0392b;
    --color-accent-light: #e74c3c;
    --color-accent-lighter: #fdf0ef;
    --color-accent-dark: #96281e;
    /* DARK - Carbon steel */
    --color-dark: #1a1c1e;
    --color-darker: #111213;
    --color-white: #ffffff;
    /* NEUTRALS - Warm stone tones to evoke pillars and masonry */
    --color-gray-50: #f9f7f5;
    --color-gray-100: #f2eeeb;
    --color-gray-200: #e4dfda;
    --color-gray-300: #cec7c0;
    --color-gray-400: #a09792;
    --color-gray-500: #726a64;
    --color-gray-600: #5a534e;
    --color-gray-700: #433d39;
    --color-gray-800: #2e2925;
    --color-gray-900: #1c1917;
    --color-success: #27ae60;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --container-max: 1120px;
    --container-narrow: 800px;
    --section-py: 5rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-600);
    background-color: var(--color-white);
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, video, iframe, svg, canvas { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--color-gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================
   SECTION SYSTEM - with angled dividers
   ============================ */
.section {
    padding: var(--section-py) 0;
    position: relative;
}
.section--gray {
    padding: var(--section-py) 0;
    background-color: var(--color-gray-50);
    position: relative;
}
.section--dark {
    padding: var(--section-py) 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
}
.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}
.section--primary {
    padding: var(--section-py) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
}
.section--primary h2,
.section--primary h3 {
    color: var(--color-white);
}

/* Angled divider using clip-path */
.section--angled-top {
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--section-py) + 40px);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}
.section-title h2 {
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}
.section-title p {
    color: var(--color-gray-500);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Decorative section number */
.section-number {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-primary-lighter);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: -0.5rem;
}
.section--primary .section-number,
.section--dark .section-number {
    color: rgba(255,255,255,0.06);
}

/* ============================
   HEADER
   ============================ */
.site-header {
    position: relative;
    z-index: 100;
    background-color: var(--color-dark);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}
.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.header-logo:hover { color: var(--color-white); }
.header-logo svg {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

/* CTA Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
    text-decoration: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.btn-cta:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}
.btn-cta:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
.btn-cta-sm { padding: 10px 22px; font-size: 0.8rem; }

/* ============================
   HERO - asymmetric with gate illustration
   ============================ */
.hero {
    position: relative;
    background-color: var(--color-dark);
    padding: 3rem 0 2.5rem;
    overflow: hidden;
    color: var(--color-white);
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background-color: rgba(192,57,43,0.12);
    border: 1px solid rgba(192,57,43,0.3);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}
.hero h1 span {
    color: var(--color-accent);
    display: block;
}
.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    max-width: 480px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.hero-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 600;
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
}
.hero-urgency svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Hero gate illustration (right column) */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.hero-illustration svg {
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* Decorative geometric shapes in hero */
.hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: -10%;
    width: 50%;
    height: 120%;
    background-color: rgba(45,52,54,0.35);
    transform: skewX(-8deg);
    z-index: 0;
}

/* ============================
   TRUST BAR - bold stripe
   ============================ */
.trust-bar {
    background-color: var(--color-primary);
    padding: 1.25rem 0;
    position: relative;
    z-index: 3;
}
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.trust-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
}
.trust-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-white);
    font-weight: 700;
}
.trust-text span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* ============================
   EDITORIAL CONTENT
   ============================ */
.editorial {
    padding: var(--section-py) 0;
}
.editorial-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}
.editorial-content h2 {
    margin-top: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}
.editorial-content h3 {
    margin-top: 1.5rem;
    color: var(--color-gray-700);
}
.editorial-content p {
    color: var(--color-gray-600);
    line-height: 1.8;
}
.editorial-content ul, .editorial-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--color-gray-600);
}
.editorial-content li { margin-bottom: 0.5rem; }
.editorial-content strong { color: var(--color-gray-800); }

/* Tables inside IA-generated editorial content */
.editorial-content {
    overflow-x: visible;
}
.editorial-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem -0.5rem;
    width: calc(100% + 1rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.editorial-content thead th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.15rem;
    text-align: left;
}
.editorial-content tbody td {
    padding: 0.8rem 1.15rem;
    color: var(--color-gray-600);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: top;
    line-height: 1.55;
}
.editorial-content tbody tr:last-child td {
    border-bottom: none;
}
.editorial-content tbody tr:nth-child(even) td {
    background-color: var(--color-gray-50);
}
.editorial-content tbody tr:hover td {
    background-color: var(--color-primary-lighter);
}
.editorial-content tbody td:first-child {
    font-weight: 700;
    color: var(--color-gray-800);
    position: relative;
    padding-left: 1.15rem;
}
.editorial-content tbody td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-accent);
}
/* Mobile: horizontal scroll for wide tables */
@media (max-width: 640px) {
    .editorial-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1.5rem 0;
        width: 100%;
    }
    .editorial-content thead th,
    .editorial-content tbody td {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

/* ============================
   SERVICES GRID - with left accent border
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.75rem 1.5rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.service-card:hover {
    border-left-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.service-icon {
    width: 52px;
    height: 52px;
    background-color: var(--color-primary-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-icon svg {
    width: 26px;
    height: 26px;
}
.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}
.service-card p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================
   ADVANTAGES GRID - compact horizontal cards
   ============================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.advantage-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    min-width: 0;
    overflow: hidden;
}
.advantage-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary-light);
}
.advantage-icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-primary-lighter);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.advantage-icon svg {
    width: 20px;
    height: 20px;
}
.advantage-text h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    font-weight: 700;
    color: var(--color-gray-800);
}
.advantage-text p {
    font-size: 0.825rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================
   CERTIFICATIONS - inline badges
   ============================ */
.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
}
.cert-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cert-icon svg {
    width: 20px;
    height: 20px;
}
.cert-item strong {
    font-size: 0.85rem;
    color: var(--color-gray-800);
}
.cert-item p {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
}

/* ============================
   CTA BANNER - bold asymmetric
   ============================ */
.cta-banner {
    background-color: var(--color-accent);
    padding: 4rem 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    clip-path: polygon(0 0, 100% 20px, 100% calc(100% - 20px), 0 100%);
    padding-top: calc(4rem + 20px);
    padding-bottom: calc(4rem + 20px);
}
.cta-banner h2 {
    color: var(--color-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-banner p {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.cta-banner .btn-cta {
    background-color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 1rem;
    padding: 16px 36px;
}
.cta-banner .btn-cta:hover {
    background-color: var(--color-darker);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ============================
   PRODUCT TYPES - magazine-style cards
   ============================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    position: relative;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.product-card-header {
    background-color: var(--color-primary);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}
.product-card-header .product-icon {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-header .product-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-white);
}
.product-card-header h3 {
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 0;
    font-weight: 700;
}
.product-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.product-card-body p {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-100);
}
.product-price .price-from {
    font-size: 0.75rem;
    color: var(--color-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-price .price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

/* ============================
   PROCESS STEPS - numbered timeline
   ============================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    position: relative;
}
.step-item {
    text-align: center;
    position: relative;
    padding: 0 1.5rem;
    min-width: 0;
    overflow: hidden;
}
/* Connecting line between steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: 0;
    width: 50%;
    height: 2px;
    background-color: var(--color-gray-200);
}
.step-item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--color-gray-200);
}
.step-number {
    width: 64px;
    height: 64px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
.step-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}
.step-item p {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
}

/* ============================
   GALLERY
   ============================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--color-gray-100);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-placeholder svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-gray-400);
}

/* ============================
   PRICING TABLE - clean engineering style
   ============================ */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.pricing-table th,
.pricing-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-100);
}
.pricing-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pricing-table td {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}
.pricing-table tr:nth-child(even) td { background-color: var(--color-gray-50); }
.pricing-table .price-cell {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================
   FINANCIAL AIDS
   ============================ */
.aids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.aid-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
}
.aid-card:hover { border-color: var(--color-success); }
.aid-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(5,150,105,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aid-icon svg { width: 20px; height: 20px; }
.aid-card h3 { font-size: 0.95rem; margin-bottom: 0.15rem; color: var(--color-gray-800); }
.aid-card p { font-size: 0.825rem; color: var(--color-gray-500); margin-bottom: 0; line-height: 1.5; }

/* ============================
   FAQ - open by default, clean list
   ============================ */
.faq-list { max-width: var(--container-narrow); margin: 0 auto; }
.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.faq-item:hover { border-color: var(--color-primary-light); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-gray-800);
    font-size: 0.9rem;
    user-select: none;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}
.faq-question:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}
.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-gray-400);
    border-bottom: 2px solid var(--color-gray-400);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-question::after {
    transform: rotate(-135deg);
    border-color: var(--color-accent);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ============================
   DEVIS FORM
   ============================ */
.form-section {
    background-color: var(--color-gray-50);
    padding: var(--section-py) 0;
}
.devis-form {
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}
.devis-form .form-group { margin-bottom: 1.25rem; }
.devis-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.devis-form input,
.devis-form select,
.devis-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    outline: none;
}
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45,52,54,0.12);
}
.devis-form textarea { min-height: 100px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================
   MAILLAGE
   ============================ */
.maillage-section {
    background-color: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    padding: var(--section-py) 0;
}
.maillage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.maillage-col h3 {
    font-size: 0.85rem;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.maillage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.maillage-list li {
    padding: 0.3rem 0;
    font-size: 0.8rem;
}
.maillage-list li a {
    color: var(--color-gray-600);
    text-decoration: none;
}
.maillage-list li a:hover {
    color: var(--color-primary);
}

/* ============================
   VITEUNDEVIS WIDGET - contrast fixes for accessibility
   ============================ */
#vud_devis_header .vud_td strong,
#vud_devis_header .vud_td strong u,
#vud_devis_header .vud_td { color: #1a1a1a !important; }
/* Force contrast on ViteUnDevis button - ultra specific */
#devistap .devistap_bouton,
#devistap a.devistap_bouton,
.devistap_bouton,
a.devistap_bouton,
.devistap_rectangle_gris a,
div#devistap div#devistap_step1 div.devistap_rectangle_gris a.devistap_bouton,
a.devistap_bouton.devistap_bouton_retour_metier { color: #ffffff !important; background-color: #2d3436 !important; border-color: #2d3436 !important; }
#vud_signature,
#vud_signature a { color: #4a4a4a !important; }
#vb81958dc5cd img { max-width: 100%; height: auto; }

/* ============================
   FOOTER - epure, no Hn tags
   ============================ */
.site-footer {
    background-color: var(--color-darker);
    color: rgba(255,255,255,0.45);
    padding: 2.5rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
}
.footer-links a:hover { color: var(--color-white); }
.footer-links a:focus-visible { outline: 1px solid var(--color-white); outline-offset: 2px; }
.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================
   MOBILE CTA BAR
   ============================ */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    padding: 0.75rem 1rem;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-cta-bar .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

/* ============================
   404 PAGE
   ============================ */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}
.page-404 h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}
.page-404 p { color: var(--color-gray-500); margin-bottom: 2rem; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-illustration { display: none; }
    .hero::after { display: none; }
    .hero { padding: 2.5rem 0 2rem; }
    .step-item:not(:last-child)::after,
    .step-item:not(:first-child)::before { display: none; }
}

@media (max-width: 768px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 70px; }
    .hero { padding: 2rem 0 1.5rem; }
    .section { padding: 3.5rem 0; }
    .section--gray { padding: 3.5rem 0; }
    .cta-banner {
        clip-path: none;
        padding: 3.5rem 0;
    }
    .certifications-grid { gap: 1rem; }
    .cert-item { padding: 0.5rem 1rem; }
    .cert-item p { display: none; }
    .devis-form input,
    .devis-form select,
    .devis-form textarea { font-size: 16px; }
    /* Header CTA button: single line on mobile */
    .btn-cta-sm { padding: 8px 16px; font-size: 0.75rem; white-space: nowrap; }
    /* Trust bar: 2 per row on mobile */
    .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .trust-item { justify-content: flex-start; }
    .trust-text strong { font-size: 0.8rem; }
    .trust-text span { font-size: 0.7rem; }
    .trust-icon { width: 34px; height: 34px; }
    .trust-icon svg { width: 17px; height: 17px; }
}

@media (max-width: 480px) {
    .hero { padding: 1.5rem 0 1.25rem; }
    .devis-form { padding: 1.5rem; }
    .container { padding: 0 1rem; }
    .certifications-grid { flex-direction: column; align-items: center; }
    /* Keep trust bar 2 per row even on very small screens */
    .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
}
