/* Typographies : css/fonts.css — Icônes : assets/vendor/fontawesome/css/all.min.css (liés dans le HTML) */

/* Font Awesome : le all.min.css empaqueté ici ne contient pas le bloc de base (.fa { font-family … }).
   Sans cela, les <i class="fa-*"> héritent de la police du site → carrés « tofu ». */
.fa-solid, .fas,
.fa-regular, .far,
.fa-brands, .fab {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
}
.fa-regular, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 400;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome";
    font-weight: 400;
}

/* ========================================
   FRIGIMAR — Prototype CSS
   ======================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0077B6;
    --primary-dark: #005a8c;
    --primary-light: #0096c7;
    --secondary: #0c1d36;
    --accent: #00b4d8;
    --text: #2c2c2c;
    --text-light: #6b7280;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-bg: #e8f4f8;
    --border: #e0e7ee;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --surface: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.97);
    --hero-cta-grad-top: #ffffff;
    --hero-cta-grad-bot: #f1f5f9;
    --section-soft-top: #f8fafc;
    --section-soft-mid: #ffffff;
    --section-soft-bot: #f1f5f9;
    --hero-badge-grad-top: #ffffff;
    --hero-badge-grad-bot: #e2e8f0;
    --mix-target: #ffffff;
    --grad-blue-end: #dbeef8;
    --grad-blue-start: #f0f7ff;
    /* Titres sur fond clair ; --secondary reste le bleu nuit pour barres / pied de page */
    --heading-color: #0c1d36;
    /* Texte toujours foncé sur pastilles / boutons clairs (hero, etc.) */
    --ink-on-bright: #0c1d36;
    --hero-pill-bg: #ffffff;
    --hero-pill-ink: #0c1d36;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --text: #e4eaf2;
    --text-light: #94a3b8;
    /* Fond page vs cartes : léger relief pro */
    --dm-page: #101820;
    --surface: #1c283c;
    --off-white: #131c2a;
    --light-bg: #1a2738;
    --border: #2d4058;
    --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
    --header-bg: rgba(18, 24, 38, 0.94);
    --hero-cta-grad-top: #eef2f7;
    --hero-cta-grad-bot: #dbe4f0;
    --section-soft-top: #121a28;
    --section-soft-mid: #1a2636;
    --section-soft-bot: #121a28;
    --hero-badge-grad-top: #f1f5f9;
    --hero-badge-grad-bot: #cbd5e1;
    --mix-target: #1a2332;
    --grad-blue-end: #243548;
    --grad-blue-start: #1a2838;
    --heading-color: #f1f5f9;
    --ink-on-bright: #0f172a;
    --hero-pill-bg: #f1f5f9;
    --hero-pill-ink: #0f172a;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

html[data-theme="dark"] body {
    background: var(--dm-page);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SECTION LABELS ---------- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    color: var(--heading-color);
    margin-bottom: 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,119,182,0.35);
}

.btn--primary i {
    transition: transform 0.3s;
}

.btn--primary:hover i {
    transform: translateX(4px);
}

.btn--full { width: 100%; justify-content: center; }

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left {
    display: flex;
    gap: 24px;
}

.top-bar__left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__right a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar__right a:hover { color: var(--accent); }

.top-bar__socials {
    display: flex;
    gap: 12px;
}

.top-bar__socials a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    transition: all 0.3s;
}

.top-bar__socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    transition: all 0.4s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    transition: padding 0.4s;
}

.header.scrolled .header__inner {
    padding: 10px 24px;
}

.header__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    transition: width 0.4s, height 0.4s;
}

.header.scrolled .header__logo-mark {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--heading-color);
}

.header__nav .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0,119,182,0.06);
}

.nav-link i { font-size: 0.6rem; transition: transform 0.3s; }
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown__bar {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-link--section {
    flex: 1;
    min-width: 0;
}

.nav-submenu-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, transform 0.25s ease;
}

.nav-submenu-toggle:hover {
    background: rgba(0, 119, 182, 0.08);
    color: var(--primary);
}

.nav-submenu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.header__nav-head {
    display: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--text);
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 26px;
}

.dropdown--mega {
    min-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.header__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,119,182,0.3);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.theme-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.05rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    color: var(--primary);
    transform: scale(1.04);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-toggle__icon--sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
    display: flex;
}

/* ========================================
   HERO — plein écran photo + glass UI (FRIGIMAR)
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    max-height: 1080px;
    overflow: hidden;
    background: #0a1628;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}

.hero__slide.active {
    opacity: 1;
    visibility: visible;
}

/* --- Média plein écran --- */
.hero__slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__slide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.14);
    transition: transform 0.6s ease;
}

/* Slide 1 : showroom — logo FRIGIMAR, vitrine YORK (split, gainable, cassette, console) */
.hero__slide[data-hero-slide="01"] .hero__slide-photo {
    object-position: center 36%;
}

/* Slide 3 : paysage — toiture-terrasse, groupes et manifold */
.hero__slide[data-hero-slide="03"] .hero__slide-photo {
    object-position: 48% 46%;
}

.hero__slide.active .hero__slide-photo {
    animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.14) translate3d(1.2%, 0, 0);
    }
    100% {
        transform: scale(1.03) translate3d(-0.8%, -0.4%, 0);
    }
}

/* Dégradés lisibilité + teinte marque (#2E81B7 / #F99D1C) */
.hero__slide-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.92;
}

.hero__slide-scrim--01 {
    background: linear-gradient(
        105deg,
        rgba(4, 20, 38, 0.94) 0%,
        rgba(8, 40, 62, 0.82) 38%,
        rgba(46, 129, 183, 0.35) 72%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.hero__slide-scrim--02 {
    background: linear-gradient(
        108deg,
        rgba(5, 25, 45, 0.93) 0%,
        rgba(15, 55, 85, 0.78) 42%,
        rgba(249, 157, 28, 0.12) 88%,
        transparent 100%
    );
}

.hero__slide-scrim--03 {
    background: linear-gradient(
        110deg,
        rgba(6, 30, 48, 0.94) 0%,
        rgba(20, 70, 95, 0.75) 45%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero__slide-scrim--04 {
    background: linear-gradient(
        105deg,
        rgba(55, 20, 8, 0.88) 0%,
        rgba(120, 45, 12, 0.72) 40%,
        rgba(249, 157, 28, 0.2) 78%,
        transparent 100%
    );
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.hero__slide-scrim--05 {
    background: linear-gradient(
        105deg,
        rgba(4, 35, 30, 0.92) 0%,
        rgba(6, 80, 65, 0.68) 48%,
        rgba(46, 129, 183, 0.22) 100%
    );
}

.hero__slide-scrim--06 {
    background: linear-gradient(
        105deg,
        rgba(15, 10, 35, 0.94) 0%,
        rgba(40, 30, 80, 0.78) 45%,
        rgba(46, 129, 183, 0.18) 100%
    );
}

.hero__slide-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 70% at 70% 40%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 0.7;
}

.hero__slide-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Contenu --- */
.hero__slide-layout {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: clamp(72px, 12vh, 120px) clamp(24px, 6vw, 120px) clamp(100px, 14vh, 140px);
    pointer-events: none;
}

.hero__slide-content {
    position: relative;
    max-width: 580px;
    color: var(--white);
    pointer-events: none;
}

.hero__slide-panel {
    pointer-events: auto;
    padding: clamp(26px, 3.5vw, 40px) clamp(28px, 3.5vw, 44px);
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 0 rgba(255, 255, 255, 0.06) inset,
        0 32px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.hero__slide-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hero__slide-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero__slide-number {
    flex-shrink: 0;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--ink-on-bright);
    background: linear-gradient(135deg, var(--hero-badge-grad-top) 0%, var(--hero-badge-grad-bot) 100%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero__slide.active .hero__slide-panel-head {
    animation: fadeSlideUp 0.75s 0.15s both;
}

.hero__slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero__slide.active .hero__slide-title {
    animation: fadeSlideUp 0.75s 0.28s both;
}

.hero__slide-title-accent {
    background: linear-gradient(
        100deg,
        #ffffff 0%,
        #bae6fd 35%,
        #F99D1C 95%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__slide-deck {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34em;
}

.hero__slide.active .hero__slide-deck {
    animation: fadeSlideUp 0.75s 0.38s both;
}

.hero__slide-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.hero__slide.active .hero__slide-services {
    animation: fadeSlideUp 0.75s 0.48s both;
}

.hero__service-tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}

.hero__service-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.hero__slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink-on-bright);
    background: linear-gradient(180deg, var(--hero-cta-grad-top) 0%, var(--hero-cta-grad-bot) 100%);
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.hero__slide.active .hero__slide-cta {
    animation: fadeSlideUp 0.75s 0.58s both;
}

.hero__slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.hero__slide-cta i {
    transition: transform 0.3s;
}

.hero__slide-cta:hover i {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide-photo,
    .hero__slide.active .hero__slide-photo {
        animation: none;
        transform: scale(1.05);
    }
}

/* Hero Controls */
.hero__controls {
    position: absolute;
    bottom: 50px;
    left: clamp(40px, 8vw, 140px);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.hero__arrow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero__arrow:hover {
    background: rgba(255,255,255,0.3);
}

.hero__arrow-label {
    letter-spacing: inherit;
}

/* Hero Dots */
.hero__dots {
    position: absolute;
    right: clamp(20px, 4vw, 60px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.hero__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero__dot:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.hero__dot.active {
    background: var(--hero-pill-bg);
    color: var(--hero-pill-ink);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Progress */
.hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
}

.hero__progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.05s linear;
    background: linear-gradient(90deg, #2E81B7 0%, #00b4d8 45%, #F99D1C 100%);
    box-shadow: 0 0 12px rgba(249, 157, 28, 0.35);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 120px 0;
    scroll-margin-top: 96px;
}

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

.about__image-box {
    position: relative;
}

/* Carrousel photos « À propos » (portrait chantier / maintenance) */
.about__slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: 0 20px 50px rgba(12, 29, 54, 0.08);
}

.about__slides {
    position: absolute;
    inset: 0;
}

.about__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
    z-index: 0;
}

.about__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.about__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.about__slideshow-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(12, 29, 54, 0.35);
    backdrop-filter: blur(6px);
}

.about__slideshow-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.about__slideshow-dot:hover,
.about__slideshow-dot:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transform: scale(1.15);
}

.about__slideshow-dot.is-active {
    background: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .about__slide {
        transition: none;
    }

    .about__slideshow-dot {
        transition: none;
    }
}

.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: pulse-badge 3s ease-in-out infinite;
    z-index: 2;
}

.about__badge-year {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.about__badge-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.about__highlight {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
}

.about__highlight p {
    font-weight: 500;
    font-style: italic;
    color: var(--primary-dark);
}

.about__content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about__content .btn { margin-top: 12px; }

/* ========================================
   TAGLINE SECTION
   ======================================== */
.tagline {
    padding: 80px 0;
    background: var(--light-bg);
}

.tagline__inner {
    text-align: center;
}

.tagline__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 24px;
}

.tagline__line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 auto;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 120px 0;
}

#services {
    scroll-margin-top: 96px;
}

.services__header {
    text-align: center;
    margin-bottom: 60px;
}

.services__header .section-label::before { display: none; }
.services__header .section-label { padding-left: 0; }

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

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    animation-delay: calc(var(--delay) * 0.1s);
    scroll-margin-top: 100px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color, var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--card-color, var(--primary)) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--card-color, var(--primary));
    margin-bottom: 20px;
    transition: all 0.4s;
}

.service-card:hover .service-card__icon {
    background: var(--card-color, var(--primary));
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.service-card__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card__number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
    opacity: 0.5;
    line-height: 1;
    font-family: var(--font-heading);
    transition: opacity 0.3s;
}

.service-card:hover .service-card__number {
    opacity: 0.15;
    color: var(--card-color, var(--primary));
}

/* Cartes « Nos services » : photo + corps (section #services uniquement) */
#services .service-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

#services .service-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}

#services .service-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 29, 54, 0.22) 0%, transparent 50%);
    pointer-events: none;
}

#services .service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#services .service-card__body {
    padding: 24px 28px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#services .service-card__number {
    top: 10px;
    right: 14px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.9;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

#services .service-card:hover .service-card__number {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

/* Cartes « Engagement & valeurs » (#values) : même logique photo + corps */
#values .service-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

#values .service-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}

#values .service-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 29, 54, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

#values .service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#values .service-card__media img.service-card__photo--equipe {
    object-position: center 38%;
}

#values .service-card__body {
    padding: 24px 28px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#values .service-card__number {
    top: 10px;
    right: 14px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.9;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

#values .service-card:hover .service-card__number {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

/* ---------- Services : cartes promesse client (compactes, couleur marque) ---------- */
.services-value {
    position: relative;
    margin-top: 48px;
    padding: 28px 0 6px;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(118deg, rgba(0, 119, 182, 0.09) 0%, rgba(0, 180, 216, 0.05) 38%, transparent 58%),
        linear-gradient(220deg, rgba(249, 157, 28, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, var(--section-soft-top) 0%, var(--section-soft-mid) 55%, var(--section-soft-bot) 100%);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
    box-shadow: 0 12px 40px rgba(12, 29, 54, 0.06);
}

.services-value__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.services-value__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
}

.services-value__orb--a {
    width: min(280px, 55vw);
    height: min(280px, 55vw);
    top: -22%;
    right: -6%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, transparent 68%);
    opacity: 0.85;
}

.services-value__orb--b {
    width: 200px;
    height: 200px;
    bottom: -18%;
    left: -4%;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.16) 0%, transparent 70%);
}

.services-value__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(0, 119, 182, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 119, 182, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, black 0%, black 50%, transparent 100%);
}

.services-value__header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 12px 20px 0;
}

.services-value__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.22;
    color: var(--heading-color);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.services-value__cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 22px 20px 24px;
}

.value-card {
    --value-accent: var(--primary);
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: stretch;
    padding: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--value-accent) 5%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--value-accent) 14%, rgba(15, 23, 42, 0.06));
    box-shadow: 0 2px 12px rgba(12, 29, 54, 0.04);
    overflow: hidden;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}

.value-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--value-accent), color-mix(in srgb, var(--value-accent) 55%, #0891b2));
    border-radius: 12px 0 0 12px;
    opacity: 1;
}

.value-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--value-accent), color-mix(in srgb, var(--value-accent) 35%, transparent));
    opacity: 0.55;
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--value-accent) 12%, rgba(12, 29, 54, 0.08));
    border-color: color-mix(in srgb, var(--value-accent) 32%, transparent);
    background: color-mix(in srgb, var(--value-accent) 8%, var(--surface));
}

.value-card:hover::after {
    opacity: 1;
}

.value-card:focus-within {
    outline: 2px solid color-mix(in srgb, var(--value-accent) 65%, transparent);
    outline-offset: 2px;
}

.value-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 12px 8px;
    color: var(--value-accent);
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--value-accent) 12%, var(--mix-target)) 0%,
        color-mix(in srgb, var(--value-accent) 4%, var(--surface)) 100%
    );
    border-bottom: none;
    border-right: 1px solid color-mix(in srgb, var(--value-accent) 12%, transparent);
}

.value-card:hover .value-card__visual {
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--value-accent) 18%, var(--mix-target)) 0%,
        color-mix(in srgb, var(--value-accent) 7%, var(--surface)) 100%
    );
}

.value-card__svg {
    display: block;
    width: 44px;
    height: auto;
    max-height: 40px;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--value-accent) 22%, transparent));
}

.value-card:hover .value-card__svg {
    transform: scale(1.04);
}

.value-card__body {
    padding: 12px 14px 14px 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.value-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--value-accent);
    margin-bottom: 6px;
    padding: 3px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--value-accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--value-accent) 18%, transparent);
}

.value-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--heading-color);
    margin: 0 0 6px;
    font-family: var(--font-primary);
}

.value-card__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-light);
}

@media (max-width: 1100px) {
    .services-value__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px 18px 22px;
    }
}

@media (max-width: 768px) {
    .services-value {
        margin-top: 36px;
        padding: 22px 0 0;
        border-radius: var(--radius);
    }

    .services-value__header {
        padding: 8px 14px 0;
    }

    .services-value__cards {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 14px 20px;
    }

    .value-card {
        grid-template-columns: 56px 1fr;
    }

    .value-card__visual {
        padding: 10px 6px;
    }

    .value-card__svg {
        width: 38px;
        max-height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .value-card,
    .value-card__svg {
        transition: none;
    }

    .value-card:hover {
        transform: none;
    }

    .value-card:hover .value-card__svg {
        transform: none;
    }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    padding: 120px 0;
    background: var(--off-white);
    scroll-margin-top: 96px;
}

.products__header {
    text-align: center;
    margin-bottom: 40px;
}

.products__header .section-label::before { display: none; }
.products__header .section-label { padding-left: 0; }

.products__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}

.products__search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: -18px auto 26px;
    max-width: 720px;
}

.products__search-field {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.products__search-field i {
    color: var(--text-light);
    font-size: 0.95rem;
}

.products__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
}

.products__search-input::placeholder {
    color: color-mix(in srgb, var(--text-light) 86%, transparent);
}

.products__search-clear {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--off-white);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.products__search-clear:hover {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    transform: scale(1.03);
}

.products__search-clear:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.products__search-hint {
    width: min(720px, 100%);
    font-size: 0.86rem;
    color: var(--text-light);
    text-align: left;
}

.products__filter {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s;
    cursor: pointer;
}

.products__filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.products__filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,119,182,0.3);
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card__image {
    position: relative;
    height: 220px;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--grad-blue-start) 0%, var(--light-bg) 100%);
    /* Centrage par position absolue : évite les bugs WebKit (hauteur % / flex) sur mobile */
}

.product-card__image picture {
    display: contents;
}

.product-card__image img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s;
    display: block;
}

.product-card:hover .product-card__image img {
    transform: translate(-50%, -50%) scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card__body {
    padding: 18px 20px;
}

.product-card__body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card__mode-tag {
    font-weight: 800;
    font-size: 0.78em;
    color: var(--text-light);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.product-card__body p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

.product-card__brands {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-card__brands img {
    height: 22px;
    width: auto;
    max-width: 100%;
    display: block;
    filter: saturate(0.95);
}

/* Sub-type Filters */
.products__sub-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.products__sub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.products__sub-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    transition: all 0.3s;
    cursor: pointer;
}

.products__sub-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.products__sub-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* Mode Filters */
.products__mode-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.products__mode-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    transition: all 0.3s;
    cursor: pointer;
}

.products__mode-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.products__mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* BTU Filters */
.products__btu-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.products__btu-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-right: 6px;
}

.products__btu-label i {
    color: var(--accent);
}

.products__btu-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    transition: all 0.3s;
    cursor: pointer;
}

.products__btu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.products__btu-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Specs inside cards */
.product-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-card__specs .spec {
    display: flex;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
}

.spec-label {
    font-weight: 700;
    color: var(--heading-color);
    white-space: nowrap;
}

.spec-label::after {
    content: ':';
}

.spec-value {
    color: var(--text-light);
}

/* Suffixe puissance (ex. Hitachi) : masqué tant qu’aucune pastille choisie */
.product-card__btu-suffix:empty {
    display: none;
}

/* Variants badges */
.product-card__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.product-card__variants .variant {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    background: var(--off-white);
    color: var(--text-light);
    border: 1px solid var(--border);
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
}

.product-card__variants .variant.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products__count {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.products__count span {
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 1100px) {
    .products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products {
        padding: 72px 0;
    }

    .products__search {
        margin-top: -10px;
        margin-bottom: 18px;
    }

    .products__search-field {
        border-radius: 16px;
        padding: 12px 12px;
    }

    .products__search-input {
        font-size: 16px;
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card__image {
        height: min(52vw, 260px);
        min-height: 200px;
    }

    .product-card__image img {
        max-width: calc(100% - 16px);
        max-height: calc(100% - 16px);
    }

    .product-card__body {
        padding: 14px 14px 16px;
    }

    .products__filters {
        gap: 6px;
    }

    .products__filter {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .products__btu-filters {
        justify-content: flex-start;
        margin-bottom: 28px;
    }

    .products__btu-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
}

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

    .product-card__image {
        height: min(68vw, 300px);
        min-height: 220px;
    }

    .product-card__specs .spec {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .spec-label {
        white-space: normal;
    }
}

/* ========================================
   EXPERT SECTION
   ======================================== */
.expert {
    padding: 120px 0;
    background: var(--secondary);
    color: var(--white);
}

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

.expert .section-label {
    color: var(--accent);
}

.expert .section-label::before {
    background: var(--accent);
}

.expert .section-title {
    color: var(--white);
}

.expert__list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expert__list li {
    display: flex;
    gap: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

.expert__list li i {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.expert__visual {
    position: relative;
}

.expert__photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: rgba(0, 0, 0, 0.25);
}

.expert__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(12, 29, 54, 0.55) 0%, transparent 48%, transparent 100%);
    pointer-events: none;
}

.expert__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 36%;
    display: block;
}

.expert__floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    animation: float 4s ease-in-out infinite;
}

.expert__floating-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.expert__floating-card strong {
    display: block;
    font-size: 1.1rem;
}

.expert__floating-card span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ========================================
   COUVERTURE NATIONALE — FLOTTE (révolution visuelle)
   ======================================== */
.coverage {
    position: relative;
    padding: 120px 0;
    background: var(--secondary);
    color: var(--white);
    overflow: hidden;
}

.coverage__glow {
    position: absolute;
    inset: -35% -10% auto -10%;
    height: 90%;
    /* Un seul halo centré : évite les bandes / décalages de teinte gauche–droite */
    background: radial-gradient(
        ellipse 65% 55% at 50% 42%,
        rgba(0, 119, 182, 0.14),
        transparent 58%
    );
    pointer-events: none;
}

.coverage__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 56px 56px;
    align-items: start;
}

.coverage__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.45), rgba(0, 61, 92, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 18px;
}

.coverage__label.section-label {
    color: var(--accent);
}

.coverage__label.section-label::before {
    background: var(--accent);
}

.coverage__title.section-title {
    color: var(--white);
    margin-top: 8px;
    line-height: 1.15;
}

.coverage__title-line1,
.coverage__title-line2 {
    display: block;
    line-height: 1.12;
}

.coverage__title-line2 {
    margin-top: 0.2rem;
}

/* Deux lignes nettes : évite que « roulent » parte seul (souvent sur mobile) */
@media (min-width: 400px) {
    .coverage__title-line1 {
        white-space: nowrap;
    }
}

@media (max-width: 399px) {
    .coverage__title.section-title {
        font-size: clamp(1.2rem, 5.8vw, 1.65rem);
    }
}

.coverage__title-accent {
    background: linear-gradient(90deg, #fff 0%, #7dd3fc 45%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Emoji hors du span en dégradé (sinon rendu « drapeau orange » incorrect) */
.coverage__title-flag {
    display: inline-block;
    margin-left: 0.12em;
    font-size: 1em;
    line-height: 1;
    vertical-align: 0.05em;
    -webkit-text-fill-color: unset;
    filter: none;
}

.coverage__lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34em;
}

.coverage__points {
    margin: 28px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.coverage-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.coverage-point__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent);
    font-size: 1.05rem;
}

.coverage-point h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.coverage-point p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

.coverage__cta {
    margin-top: 8px;
}

.coverage__fleet {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.coverage__map-panel {
    margin: 0;
    padding: 0 0 14px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: none;
    width: 100%;
}

.coverage__morocco-svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

.coverage__map-ocean {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.coverage__map-land {
    stroke-linejoin: round;
}

.coverage__pin {
    pointer-events: auto;
}

.coverage__pin circle {
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 3.2;
    animation: coverage-pin-pulse 2.6s ease-in-out infinite;
}

.coverage__pin--north circle {
    fill: #22d3ee;
}

.coverage__pin--centre circle {
    fill: #a78bfa;
}

.coverage__pin--orient circle {
    fill: #fb923c;
}

.coverage__pin--kingdom circle {
    fill: #fdba74;
}

.coverage__pin--sud circle {
    fill: #f97316;
}

@keyframes coverage-pin-pulse {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

.coverage__map-caption {
    margin-top: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
}

.coverage__map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.coverage__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coverage__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.coverage__legend-dot--north { background: #22d3ee; }
.coverage__legend-dot--centre { background: #a78bfa; }
.coverage__legend-dot--orient { background: #fb923c; }
.coverage__legend-dot--sud { background: #f97316; }

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

    .coverage__fleet {
        max-width: 520px;
        margin: 0 auto;
    }

    .coverage__map-panel {
        text-align: center;
    }

    .coverage__map-legend {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coverage__pin circle {
        animation: none;
    }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
}

.stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-item__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.stat-item__plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.7;
}

.stat-item__label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* ========================================
   CERTIFICATION SECTION
   ======================================== */
.certification {
    padding: 120px 0;
    background: var(--off-white);
    scroll-margin-top: 96px;
}

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

.certification__content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.certification__rating {
    display: flex;
    align-items: center;
    gap: 14px;
}

.certification__stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 1.1rem;
}

.certification__rating span {
    font-size: 0.88rem;
    color: var(--text-light);
}

.certification__badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification__iso {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-badge 4s ease-in-out infinite;
}

.certification__iso::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.certification__iso-inner {
    text-align: center;
}

.certification__iso-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 4px;
}

.certification__iso-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

.certification__iso-year {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.certification__iso-org {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline {
    padding: 120px 0;
}

.timeline__header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline__header .section-label::before { display: none; }
.timeline__header .section-label { padding-left: 0; }

.timeline__track {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline__item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline__item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline__year {
    width: calc(50% - 40px);
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    padding-right: 30px;
}

.timeline__item:nth-child(even) .timeline__year {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

.timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 3px var(--primary);
    flex-shrink: 0;
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline__card {
    width: calc(50% - 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-left: 30px;
    transition: all 0.3s;
}

.timeline__item:nth-child(even) .timeline__card {
    margin-left: 0;
    margin-right: 30px;
}

.timeline__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline__card h4 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 6px;
}

.timeline__card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog {
    padding: 120px 0;
    background: var(--off-white);
}

.blog__header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.blog__header .section-label::before { display: none; }
.blog__header .section-label { padding-left: 0; }

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

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card__image {
    position: relative;
    overflow: hidden;
}

.blog-card__thumb {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--grad-blue-end) 100%);
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.04);
}

.blog-card__date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 1;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
}

.blog-card__body {
    padding: 24px 26px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.blog-card__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card__body p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s;
    margin-top: auto;
}

.blog-card__link:hover { gap: 12px; }

/* ========================================
   CLIENTS CAROUSEL
   ======================================== */
.clients {
    padding: 80px 0;
    overflow: hidden;
    scroll-margin-top: 96px;
}

/* Deux carrousels consécutifs : espace plus compact */
.clients + .clients {
    padding-top: 40px;
}

.clients__header {
    text-align: center;
    margin-bottom: 40px;
}

.clients__header .section-label::before { display: none; }
.clients__header .section-label { padding-left: 0; }

.clients__marquee {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueePx var(--marquee-duration, 45s) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.clients__set {
    --logo-gap: 28px;
    display: flex;
    align-items: center;
    gap: var(--logo-gap);
    flex-shrink: 0;
    /* Même espace entre deux logos qu’entre la fin d’une série et le début de la copie (boucle) */
    padding-inline-end: var(--logo-gap);
    box-sizing: content-box;
}

.client-logo {
    flex-shrink: 0;
    margin-right: 0;
    padding: 12px 22px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    transition: all 0.3s;
}

/* Marques : un peu plus d'air entre les tuiles */
.clients#marques .clients__set {
    --logo-gap: 34px;
}

@media (max-width: 768px) {
    .clients#marques .clients__set {
        --logo-gap: 22px;
    }
}

.client-logo:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.client-logo img,
.client-logo svg {
    height: 48px;
    width: auto;
    max-width: min(240px, 100%);
    display: block;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.07));
}

/* La Maison Bleue : logo détaillé, plus lisible dans la bande */
.client-logo--maison-bleue img {
    height: 58px;
    max-width: min(280px, 100%);
    transform: scale(1.08);
    transform-origin: center center;
}

.client-logo__svg {
    height: 48px;
    width: auto;
    max-width: min(300px, 100%);
}

.client-logo__svg text {
    fill: var(--heading-color);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.location {
    padding: 110px 0 30px;
}

.location__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.location__address {
    margin-top: 18px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.65;
}

.location__cta {
    margin-top: 22px;
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: var(--surface);
    aspect-ratio: 16 / 10;
}

.location__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact {
    padding: 120px 0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact__detail h4 {
    font-size: 0.95rem;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.contact__detail p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.contact__form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact__form-card h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.contact__form-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--off-white);
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.08);
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.18);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer__logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
}

.footer__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer__logo .logo-text { color: var(--white); }
.footer__logo .logo-sub { color: rgba(255,255,255,0.5); }

.footer__col--brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.footer__contact-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact-info i {
    color: var(--primary-light);
}

.footer__col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer__col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__col ul li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s;
}

.footer__col ul li a:hover {
    color: var(--white);
}

.footer__col ul li a:hover::before {
    width: 16px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all 0.3s;
}

.footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer__bottom .footer__credit {
    margin-top: 10px;
    margin-bottom: 0;
}

.footer__bottom a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
}

.footer__bottom a:hover {
    color: var(--primary-light);
}

/* ========================================
   WHATSAPP FLOTTANT
   ======================================== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.wa-float:hover {
    color: #fff;
    transform: scale(1.06);
    filter: brightness(1.05);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wa-float:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 94px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,119,182,0.3); }
    50% { box-shadow: 0 0 0 15px rgba(0,119,182,0); }
}

@keyframes marqueePx {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1px * var(--marquee-distance, 0)), 0, 0); }
}

/* Partenaires : mobile — moins d’espace, animation plus fluide (GPU) */
@media (max-width: 768px) {
    .clients {
        padding: 56px 0;
    }

    .clients__header {
        margin-bottom: 28px;
    }

    .clients__marquee {
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .clients__set {
        --logo-gap: 20px;
    }

    .client-logo {
        min-width: 112px;
        padding: 10px 16px;
    }

    .client-logo img,
    .client-logo svg {
        height: 40px;
        max-width: min(200px, 42vw);
    }

    .client-logo__svg {
        height: 40px;
        max-width: min(200px, 42vw);
    }

    .client-logo--maison-bleue img {
        height: 48px;
        max-width: min(240px, 48vw);
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients__track {
        animation: none;
        transform: translate3d(0, 0, 0);
        will-change: auto;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--up {
    transform: translateY(40px);
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--right {
    transform: translateX(40px);
}

.reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays for grids */
.reveal[style*="--delay: 0"] { transition-delay: 0s; }
.reveal[style*="--delay: 1"] { transition-delay: 0.1s; }
.reveal[style*="--delay: 2"] { transition-delay: 0.2s; }
.reveal[style*="--delay: 3"] { transition-delay: 0.3s; }
.reveal[style*="--delay: 4"] { transition-delay: 0.4s; }
.reveal[style*="--delay: 5"] { transition-delay: 0.5s; }
.reveal[style*="--delay: 6"] { transition-delay: 0.6s; }
.reveal[style*="--delay: 7"] { transition-delay: 0.7s; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Voile derrière le menu mobile (clic = fermer) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(10, 22, 40, 0.72);
    touch-action: none;
}

.nav-backdrop[hidden] {
    display: none;
}

@media (min-width: 769px) {
    .nav-backdrop {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .about__inner,
    .expert__inner,
    .certification__inner,
    .location__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location__map {
        aspect-ratio: 16 / 11;
    }

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

    .hero__dots {
        flex-direction: row;
        top: auto;
        bottom: 80px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero__slide-layout {
        padding-bottom: 130px;
    }

    .hero__slide-content {
        max-width: 100%;
    }

    .hero__controls {
        left: 40px;
        bottom: 30px;
    }

    .timeline__line { left: 20px; }
    .timeline__item,
    .timeline__item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    .timeline__year,
    .timeline__item:nth-child(even) .timeline__year {
        width: auto;
        text-align: left;
        padding: 0;
        margin-bottom: 8px;
    }
    .timeline__dot {
        left: 20px;
        top: 8px;
    }
    .timeline__card,
    .timeline__item:nth-child(even) .timeline__card {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1100px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .top-bar { display: none; }

    body.nav-open {
        overscroll-behavior: none;
    }

    .header__inner {
        padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
    }

    .header.scrolled .header__inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo-sub {
        letter-spacing: 4px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, calc(100vw - 48px));
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--surface);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12), -2px 0 0 rgba(0, 0, 0, 0.04);
        border-radius: 20px 0 0 20px;
        padding: max(10px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        transition: right 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    .header__nav.open {
        right: 0;
    }

    .header__nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 10px 4px 16px 2px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 3;
    }

    .header__nav-title {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--heading-color);
        letter-spacing: -0.02em;
    }

    .header__nav-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 12px;
        background: rgba(0, 119, 182, 0.08);
        color: var(--primary);
        font-size: 1.15rem;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .header__nav-close:hover {
        background: rgba(0, 119, 182, 0.15);
    }

    .header__nav-close:active {
        transform: scale(0.96);
    }

    .header__nav-close:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .header__nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: 1;
    }

    .header__nav .nav-list > li {
        border-bottom: 1px solid var(--border);
    }

    .header__nav .nav-list > li:last-child {
        border-bottom: none;
    }

    .has-dropdown__bar {
        width: 100%;
        align-items: stretch;
    }

    .has-dropdown__bar .nav-link--section {
        flex: 1;
        border-bottom: none;
        border-radius: 0;
        font-weight: 600;
    }

    .nav-link__chevron-desktop {
        display: none !important;
    }

    .nav-submenu-toggle {
        display: flex;
        align-self: stretch;
        width: 52px;
        min-height: 52px;
        border-left: 1px solid var(--border);
        border-radius: 0;
        color: var(--text);
    }

    .nav-submenu-toggle i {
        transition: transform 0.28s ease;
    }

    .has-dropdown.open .nav-submenu-toggle {
        background: rgba(0, 119, 182, 0.06);
        color: var(--primary);
    }

    .has-dropdown.open .nav-submenu-toggle i {
        transform: rotate(180deg);
    }

    .nav-link {
        padding: 16px 14px;
        min-height: 52px;
        width: 100%;
        border-bottom: none;
        border-radius: 0;
        touch-action: manipulation;
    }

    .header__nav .nav-list > li:not(.has-dropdown) > .nav-link {
        display: flex;
        align-items: center;
        font-weight: 600;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 12px 0;
        margin: 0 0 4px 0;
        display: none;
        background: var(--light-bg);
        border-radius: 12px;
        overflow: hidden;
    }

    .dropdown--mega {
        grid-template-columns: 1fr;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 14px 16px 14px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--border);
        transition: background 0.2s, padding-left 0.2s;
    }

    .dropdown li:last-child a {
        border-bottom: none;
    }

    .dropdown li a:hover {
        background: var(--surface);
        padding-left: 22px;
    }

    .header__cta { display: none; }

    .header__burger {
        display: flex;
        z-index: 1001;
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin: -4px -6px -4px 0;
        touch-action: manipulation;
    }

    .hero {
        min-height: 480px;
        height: 100vh;
        height: 100dvh;
        max-height: none;
    }

    .hero__slide-layout {
        padding-top: max(72px, env(safe-area-inset-top));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .hero__controls {
        gap: 10px;
        left: max(16px, env(safe-area-inset-left));
        bottom: max(44px, calc(env(safe-area-inset-bottom) + 28px));
    }

    .hero__arrow {
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        padding: 12px 14px;
        touch-action: manipulation;
    }

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

    .hero__dot {
        min-width: 40px;
        min-height: 40px;
        touch-action: manipulation;
    }

    .about,
    .tagline,
    .services,
    .expert,
    .certification,
    .timeline,
    .blog,
    .coverage,
    .stats,
    .contact {
        padding-top: 72px;
        padding-bottom: 72px;
    }

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

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

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

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

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

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact__form-card {
        padding: 28px 20px;
    }

    .stats__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero__slide-title {
        font-size: clamp(1.55rem, 7vw, 2.4rem);
    }

    .wa-float {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(18px, env(safe-area-inset-right));
    }

    .back-to-top {
        bottom: max(90px, calc(env(safe-area-inset-bottom) + 78px));
        right: max(22px, env(safe-area-inset-right));
    }
}

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

    .hero__controls {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        justify-content: space-between;
        width: auto;
        max-width: calc(100vw - 24px);
    }

    .hero__slide-layout {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
        padding-bottom: 110px;
    }

    .hero__slide-panel {
        border-radius: 22px;
        padding: 20px 18px;
    }

    .hero__slide-deck {
        font-size: 0.9rem;
    }

    .hero__slide-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    .hero__dots {
        display: none;
    }

    .wa-float {
        width: 54px;
        height: 54px;
        font-size: 1.65rem;
    }

    .back-to-top {
        width: 46px;
        height: 46px;
    }

    .footer__social-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .certification__iso {
        width: min(240px, 72vw);
        height: min(240px, 72vw);
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
}

/* ---------- Dark mode : rythme des sections + tuiles partenaires ---------- */
html[data-theme="dark"] .about {
    background: linear-gradient(180deg, #0d131d 0%, #141d2c 45%, var(--dm-page) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .tagline {
    background: linear-gradient(135deg, #152a3d 0%, #1a3248 48%, #162c40 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .services {
    background: linear-gradient(180deg, var(--dm-page) 0%, #121b28 40%, #161f2f 100%);
}

html[data-theme="dark"] .services-value {
    background:
        radial-gradient(ellipse 85% 65% at 92% 8%, rgba(0, 180, 216, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse 70% 55% at 8% 92%, rgba(0, 119, 182, 0.1) 0%, transparent 48%),
        linear-gradient(118deg, rgba(0, 119, 182, 0.08) 0%, transparent 55%),
        linear-gradient(220deg, rgba(249, 157, 28, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, var(--section-soft-top) 0%, var(--section-soft-mid) 55%, var(--section-soft-bot) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .products {
    background: linear-gradient(180deg, #0e1520 0%, #121d2b 50%, #0f1623 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .certification {
    background: linear-gradient(180deg, #141d2c 0%, #111922 100%);
}

html[data-theme="dark"] .timeline {
    background: radial-gradient(ellipse 80% 70% at 50% 18%, rgba(0, 119, 182, 0.07) 0%, transparent 52%),
        linear-gradient(180deg, var(--dm-page) 0%, #131c2a 100%);
}

html[data-theme="dark"] .blog {
    background: linear-gradient(180deg, #0f141c 0%, #151d2b 100%);
}

html[data-theme="dark"] .clients {
    background: linear-gradient(180deg, #161e2e 0%, #121a26 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .contact {
    background: linear-gradient(180deg, #121b29 0%, var(--dm-page) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .client-logo {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .client-logo:hover {
    background: #f4f7fa;
    border-color: color-mix(in srgb, var(--primary) 50%, transparent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .client-logo img,
html[data-theme="dark"] .client-logo svg {
    filter: none;
}

html[data-theme="dark"] .client-logo__svg text {
    fill: #0c1d36;
}

html[data-theme="dark"] .value-card {
    border-color: color-mix(in srgb, var(--value-accent) 18%, rgba(148, 163, 184, 0.12));
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .value-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .value-card__visual {
    border-right-color: color-mix(in srgb, var(--value-accent) 14%, rgba(148, 163, 184, 0.12));
}

/* ========================================
   BLOG ARTICLE PAGES (blog/*.html)
   ======================================== */
.blog-page {
    min-height: 100vh;
    background: var(--off-white);
    color: var(--text);
}

.blog-page__bar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.88);
    padding: 14px 0;
    font-size: 0.88rem;
}

.blog-page__bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-page__bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-page .theme-toggle {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

.blog-page .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.blog-page__bar a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.blog-page__bar a:hover {
    text-decoration: underline;
}

.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 100px;
}

.blog-article h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--heading-color);
}

.blog-article .blog-article__meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.blog-article h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--heading-color);
}

.blog-article p,
.blog-article li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}

.blog-article p {
    margin-bottom: 16px;
}

.blog-article ul {
    margin: 0 0 20px 1.2em;
}

.blog-article__cta {
    margin-top: 40px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.blog-article__cta a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .blog-page {
        min-height: 100dvh;
    }

    .blog-page__bar {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: 12px;
    }

    .blog-article {
        padding: 36px max(16px, env(safe-area-inset-left)) 96px max(16px, env(safe-area-inset-right));
    }

    .blog-article h1 {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
    }
}

@media (max-width: 480px) {
    .blog-article h2 {
        font-size: 1.05rem;
        margin-top: 28px;
    }

    .blog-article__cta {
        padding: 18px 16px;
    }
}
