/* ==========================================================================
   S-BOX International — Design system
   ========================================================================== */

/* --- Variables ---------------------------------------------------------- */
:root {
    --navy-950: #060d1c;
    --navy-900: #0a1628;
    --navy-800: #0f2138;
    --navy-700: #16304f;
    --navy-600: #1d3f68;

    --ink: #0f172a;
    --body: #4a5a70;
    --muted: #74849a;
    --line: #e3e9f1;
    --line-dark: rgba(255, 255, 255, 0.12);

    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-alt: #eef3f9;

    --accent: #ff6a1a;
    --accent-600: #ec5a09;
    --accent-700: #cf4c05;
    --accent-soft: #fff1e7;

    --success: #16a34a;
    --danger: #dc2626;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 4px 14px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 10px 30px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 30px 70px rgba(6, 13, 28, 0.22);

    --container: 1200px;
    --gutter: clamp(18px, 4vw, 28px);
    --section: clamp(56px, 7vw, 104px);

    --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    --header-h: 76px;
}

/* --- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy-700);
    text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 0.5em;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(255, 106, 26, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Layout ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section);
}

.section--tight {
    padding-block: clamp(40px, 5vw, 64px);
}

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

.section--dark {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(28px, 4vw, 52px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section--dark .eyebrow {
    color: #ffb277;
}

.lead {
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    color: var(--body);
}

.section--dark .lead {
    color: rgba(255, 255, 255, 0.72);
}

.text-accent { color: var(--accent); }

/* --- Boutons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--accent-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 106, 26, 0.28);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn--dark {
    background: var(--navy-800);
}

.btn--dark:hover {
    background: var(--navy-700);
    box-shadow: 0 12px 26px rgba(10, 22, 40, 0.3);
}

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

.btn--ghost:hover {
    background: var(--surface);
    border-color: var(--navy-800);
    color: var(--navy-800);
    box-shadow: var(--shadow-sm);
}

.btn--light {
    background: #fff;
    color: var(--navy-900);
}

.btn--light:hover {
    background: var(--accent-soft);
    color: var(--navy-900);
    box-shadow: 0 12px 26px rgba(6, 13, 28, 0.25);
}

.btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none;
}

.btn--sm {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
}

.text-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.text-link:hover svg {
    transform: translateX(4px);
}

/* --- Chips / badges ----------------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--navy-700);
    font-size: 0.84rem;
    font-weight: 600;
}

.chip svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-700);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- En-tête ------------------------------------------------------------ */
.topbar {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.topbar__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.topbar__list a:hover {
    color: #fff;
}

.topbar__list svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
}

.topbar__list > li {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar__list .contact-sep {
    margin: 0;
}

@media (max-width: 1500px) {
    .topbar__list {
        gap: 4px 14px;
    }
}

@media (max-width: 1240px) {
    .topbar__list > .topbar__hours {
        display: none;
    }
}

@media (max-width: 980px) {
    .topbar__inner .topbar__socials {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar__list > .topbar__email {
        display: none;
    }
}

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

.topbar__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease;
}

.topbar__socials a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.topbar__socials svg {
    width: 15px;
    height: 15px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.navbar__brand img {
    height: 46px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-list > li > a:hover,
.nav-list > li.is-active > a {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-list > li > a svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-list > li:hover > a svg {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    min-width: 280px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-list > li:hover > .dropdown,
.nav-list > li:focus-within > .dropdown,
.nav-list > li.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--body);
    font-size: 0.92rem;
    font-weight: 500;
}

.dropdown a:hover {
    background: var(--surface-alt);
    color: var(--navy-800);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--navy-800);
    color: var(--navy-800);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.burger {
    display: none;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 140;
    width: min(360px, 88vw);
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.3s ease;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawer__head img {
    height: 40px;
    width: auto;
}

.drawer__nav,
.drawer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer__nav > li {
    border-bottom: 1px solid var(--line);
}

.drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 2px;
    color: var(--ink);
    font-weight: 600;
}

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

.drawer__nav .sub a {
    padding: 10px 2px 10px 16px;
    color: var(--body);
    font-size: 0.92rem;
    font-weight: 500;
}

.drawer__nav .sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.drawer__nav li.is-open > .sub {
    max-height: 480px;
}

.drawer__nav .sub-toggle svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.drawer__nav li.is-open .sub-toggle svg {
    transform: rotate(180deg);
}

.drawer__foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    font-size: 0.92rem;
}

.drawer__foot a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.drawer__foot svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(6, 13, 28, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Recherche */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(80px, 14vh, 160px) var(--gutter) 40px;
    background: rgba(6, 13, 28, 0.72);
    backdrop-filter: blur(4px);
}

.search-modal.is-open {
    display: flex;
}

.search-modal__box {
    width: min(640px, 100%);
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.search-modal__box h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.search-modal form {
    display: flex;
    gap: 10px;
}

.search-modal input[type="search"] {
    flex: 1;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--bg);
    font-size: 1rem;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 106, 26, 0.22), transparent 62%),
        linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: rgba(255, 255, 255, 0.78);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -220px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 26, 0.18), transparent 65%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(56px, 8vw, 110px);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.15rem, 4.8vw, 3.6rem);
}

.hero .lead {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.76);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero__meta .chip {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero__card {
    position: absolute;
    left: -18px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.hero__card svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.hero__card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.hero__card span {
    color: var(--muted);
    font-size: 0.84rem;
}

/* --- Bandeau de confiance ---------------------------------------------- */
.trust {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__grid li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 22px;
    border-left: 1px solid var(--line);
}

.trust__grid li:first-child {
    border-left: 0;
}

.trust__grid svg {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--accent);
}

.trust__grid strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.trust__grid span {
    font-size: 0.88rem;
}

/* --- Cartes génériques -------------------------------------------------- */
.card {
    height: 100%;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 26, 0.35);
    box-shadow: var(--shadow-md);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
}

.card__icon svg {
    width: 27px;
    height: 27px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 600;
}

.card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.card:hover .card__link svg {
    transform: translateX(4px);
}

.grid {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
}

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

/* --- Société + chiffres ------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.about__media {
    position: relative;
}

.about__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.about__media::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 30px;
}

.stat {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat__value {
    display: block;
    color: var(--navy-800);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1;
}

.stat__value em {
    color: var(--accent);
    font-style: normal;
}

.stat__label {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.section--dark .stat {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.05);
}

.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: rgba(255, 255, 255, 0.6); }

/* --- Catégories produits ------------------------------------------------ */
.catalog-cat + .catalog-cat {
    margin-top: clamp(48px, 6vw, 84px);
}

.catalog-cat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.catalog-cat__head p {
    max-width: 60ch;
    margin: 6px 0 0;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 106, 26, 0.35);
    box-shadow: var(--shadow-md);
}

.product-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface-alt);
}

.product-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.05);
}

.product-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(10, 22, 40, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.product-card__state {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.product-card__state.good {
    background: rgba(22, 163, 74, 0.92);
    color: #fff;
}

.product-card__state.bad {
    background: rgba(255, 106, 26, 0.94);
    color: #fff;
}

.product-card__price {
    margin: 0;
    color: var(--navy-800);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
}

.product-card__body h3 {
    margin: 0;
    font-size: 1.06rem;
}

.product-card__body h3 a {
    color: var(--ink);
}

.product-card__body h3 a:hover {
    color: var(--accent);
}

.product-card__excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.product-card__foot .text-link {
    font-size: 0.9rem;
}

.product-card__spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.product-card__spec svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

/* --- Étapes / atouts ---------------------------------------------------- */
.steps .card {
    position: relative;
    overflow: hidden;
}

.steps .card::after {
    content: attr(data-step);
    position: absolute;
    top: 14px;
    right: 20px;
    color: var(--surface-alt);
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* --- Expertise ---------------------------------------------------------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.expertise-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--navy-800);
    color: #fff;
}

.expertise-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.expertise-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 28, 0.05) 30%, rgba(6, 13, 28, 0.88) 100%);
}

.expertise-tile:hover img {
    transform: scale(1.06);
    opacity: 0.85;
}

.expertise-tile__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 22px 24px;
}

.expertise-tile h3 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
}

.expertise-tile__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.expertise-tile:hover .expertise-tile__arrow {
    background: var(--accent);
    transform: translateX(3px);
}

.expertise-tile__arrow svg {
    width: 17px;
    height: 17px;
}

/* --- Bandeau contact + formulaire -------------------------------------- */
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.contact-info svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--accent);
}

.contact-info strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.contact-info a,
.contact-info span {
    color: var(--body);
    font-size: 0.94rem;
}

.section--dark .contact-info li {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.05);
}

.section--dark .contact-info strong { color: #fff; }
.section--dark .contact-info a,
.section--dark .contact-info span { color: rgba(255, 255, 255, 0.75); }

.form-card {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

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

.field {
    display: grid;
    gap: 7px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 0.96rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.14);
    outline: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field .hint {
    color: var(--muted);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.form-actions .hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
}

.form-notice--success {
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: #ecfdf3;
    color: #166534;
}

.form-notice--error {
    border: 1px solid rgba(220, 38, 38, 0.3);
    background: #fef2f2;
    color: #991b1b;
}

.form-notice ul {
    margin: 0;
    padding-left: 18px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Devis : champs supplémentaires */
fieldset.field {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

fieldset.field legend {
    padding: 0;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--body);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.checkbox:hover {
    border-color: var(--navy-800);
}

.checkbox input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--accent);
}

.checkbox:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
}

.field--consent {
    margin-top: 20px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--body);
    font-size: 0.9rem;
    line-height: 1.55;
    cursor: pointer;
}

.consent input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--accent);
}

.consent strong {
    color: var(--ink);
}

.field input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--navy-800);
    color: #fff;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.field input[type="file"]::file-selector-button:hover {
    background: var(--navy-700);
}

.context-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 106, 26, 0.32);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.94rem;
}

.context-banner svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--accent);
}

.context-banner__link {
    margin-left: 6px;
    color: var(--accent-700);
    font-weight: 600;
}

.context-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.context-cta h3 {
    margin: 0 0 4px;
}

.context-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* Devis : sections et paires de champs */
.form-card--quote {
    padding: clamp(22px, 3vw, 38px);
}

.form-section + .form-section {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
}

.form-section__title svg {
    width: 19px;
    height: 19px;
    color: var(--accent);
}

.field__label {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.field__sep {
    color: var(--muted);
    font-weight: 400;
}

.field-pair {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
}

.form-grid--project {
    margin-top: 4px;
}

.fieldset-trades {
    margin-bottom: 20px;
}

/* Popup de devis */
.modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(14px, 4vh, 56px) var(--gutter);
    background: rgba(6, 13, 28, 0.72);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal.is-open {
    display: flex;
}

.modal__dialog {
    width: min(660px, 100%);
    margin: auto 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
}

.modal__head h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.modal__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal__body {
    padding: 22px 26px 28px;
    max-height: min(72vh, 760px);
    overflow-y: auto;
}

.article-ref {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 106, 26, 0.32);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-ref svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: none;
    color: var(--accent);
}

.article-ref strong {
    display: block;
}

.article-ref a {
    color: var(--accent-700);
    font-size: 0.84rem;
    word-break: break-all;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 230;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(560px, calc(100vw - 32px));
    padding: 15px 22px;
    border-radius: var(--radius-full);
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow-lg);
    font-size: 0.94rem;
}

.toast svg {
    width: 19px;
    height: 19px;
    flex: none;
    color: #6ee7a8;
}

@media (max-width: 560px) {
    .toast {
        border-radius: var(--radius);
        text-align: left;
    }
}

/* --- Fil d'Ariane ------------------------------------------------------- */
.breadcrumb {
    padding-top: 22px;
    color: var(--muted);
    font-size: 0.86rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--line);
}

.breadcrumb a {
    color: var(--muted);
}

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

.breadcrumb [aria-current] {
    color: var(--ink);
    font-weight: 600;
}

/* --- Bandeau de page ---------------------------------------------------- */
.page-hero {
    padding: clamp(34px, 5vw, 60px) 0 clamp(26px, 4vw, 44px);
    background: linear-gradient(140deg, var(--navy-950), var(--navy-800));
    color: rgba(255, 255, 255, 0.78);
}

.page-hero h1 {
    max-width: 24ch;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    max-width: 68ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.page-hero .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-hero .chip {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 24px;
}

.hero-search input[type="search"] {
    flex: 1;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-search input[type="search"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

@media (max-width: 560px) {
    .hero-search {
        flex-direction: column;
    }
}

.mt-lg {
    margin-top: clamp(28px, 4vw, 46px);
}

.mb-lg {
    margin-bottom: clamp(28px, 4vw, 46px);
}

.btn-row--center {
    justify-content: center;
}

.card--narrow {
    max-width: 620px;
}

/* --- Catalogue: filtres ------------------------------------------------- */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(26px, 3vw, 40px);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter:hover {
    border-color: var(--navy-800);
    color: var(--navy-800);
}

.filter.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.catalog-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.catalog-subfilters {
    margin-top: 14px;
}

.catalog-subfilters .filter {
    padding: 6px 14px;
    font-size: 0.84rem;
}

/* --- Fiche produit ------------------------------------------------------ */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.gallery {
    display: grid;
    gap: 14px;
}

.gallery__main {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    cursor: zoom-in;
}

.gallery__main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-full);
    background: rgba(10, 22, 40, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.gallery__zoom svg {
    width: 15px;
    height: 15px;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
}

.gallery__thumbs button {
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery__thumbs button:hover {
    transform: translateY(-2px);
}

.gallery__thumbs button.is-active {
    border-color: var(--accent);
}

.gallery__thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-head .badge {
    margin-bottom: 14px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-badges .badge {
    margin-bottom: 0;
}

.badge--new {
    background: #e8f5e9;
    color: #166534;
}

.badge--used {
    background: #fff3e0;
    color: #b45309;
}

.badge--state {
    background: var(--surface-alt);
    color: var(--navy-700);
}

.badge--rental {
    background: #e8f0fe;
    color: #1a4fba;
}

.product-card__rental {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #1a4fba;
    font-size: 0.84rem;
    font-weight: 600;
}

.product-card__rental svg {
    width: 15px;
    height: 15px;
}

.product-price {
    margin: 0 0 16px;
    color: var(--navy-800);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
}

.product-head h1 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.product-head .lead {
    margin-bottom: 20px;
}

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

.summary-chips li {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.summary-chips strong {
    display: block;
    color: var(--navy-800);
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
}

.summary-chips span {
    color: var(--muted);
    font-size: 0.8rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--body);
    font-size: 0.94rem;
}

.feature-list svg {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex: none;
    color: var(--success);
}

.feature-list strong {
    color: var(--ink);
    font-weight: 600;
}

.assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    list-style: none;
}

.assurance li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--body);
    font-size: 0.86rem;
}

.assurance svg {
    width: 19px;
    height: 19px;
    flex: none;
    color: var(--accent);
}

/* Tableaux de specs */
.spec-section {
    margin-top: clamp(40px, 5vw, 70px);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.spec-group {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.spec-group h3 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.spec-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec-group li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.spec-group li:last-child {
    border-bottom: 0;
}

.spec-group li span:first-child {
    color: var(--muted);
}

.spec-group li span:last-child {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.spec-diagram {
    margin: 0 0 26px;
}

.spec-diagram img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.prose--wide {
    max-width: 900px;
}

.prose h3 {
    margin-top: 1.8em;
    scroll-margin-top: 90px;
}

/* --- Blog / articles ---------------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-card__media {
    display: block;
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
}

.post-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.post-card h3 a {
    color: var(--ink);
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.post-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.article-meta .badge {
    margin: 0;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.article-header {
    max-width: 780px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

/* --- Prose (contenus éditoriaux) --------------------------------------- */
.prose {
    max-width: 780px;
    color: var(--body);
    font-size: 1.02rem;
    line-height: 1.75;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.6em;
}

.prose h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.prose h3 {
    font-size: 1.2rem;
}

.prose img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-block: 1.2em;
}

.prose a {
    color: var(--accent-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg);
    color: var(--ink);
    font-style: italic;
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.4em;
    font-size: 0.94rem;
}

.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.prose th {
    background: var(--bg);
    color: var(--ink);
}

.prose .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 1.4em 0;
}

.prose .gallery-item {
    margin: 0;
    text-align: center;
}

.prose .gallery-item img {
    margin: 0;
    border-radius: var(--radius-sm);
}

.prose .wp-block-button__link {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

/* --- Bandeau CTA -------------------------------------------------------- */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(26px, 3.4vw, 42px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 90% -30%, rgba(255, 106, 26, 0.35), transparent 60%),
        linear-gradient(140deg, var(--navy-900), var(--navy-700));
    color: rgba(255, 255, 255, 0.78);
}

.cta-band h2 {
    margin: 0 0 6px;
    color: #fff;
}

.cta-band p {
    margin: 0;
}

/* --- Pied de page ------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr));
    gap: clamp(26px, 4vw, 52px);
    padding-block: clamp(46px, 6vw, 76px);
}

.footer-main h2,
.footer-main h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.footer-brand img {
    height: 46px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 40ch;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.footer-socials svg {
    width: 17px;
    height: 17px;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: inherit;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact svg {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex: none;
    color: var(--accent);
}

.footer-contact a {
    color: inherit;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 20px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.84rem;
}

.footer-bottom a {
    color: inherit;
}

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(6, 13, 28, 0.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 82vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
    top: 24px;
    right: 24px;
}

.lightbox__prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox svg {
    width: 20px;
    height: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

/* --- 404 ---------------------------------------------------------------- */
.error-page {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding-block: var(--section);
    text-align: center;
}

.error-page .code {
    display: block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
}

.error-page p {
    max-width: 46ch;
    margin-inline: auto;
}

/* --- Animations d'apparition ------------------------------------------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
    .trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust__grid li:nth-child(3) {
        border-left: 0;
    }

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

@media (max-width: 1300px) {
    .navbar__brand img + span {
        display: none;
    }
}

@media (max-width: 1400px) {
    .nav-list > li > a {
        padding: 9px 8px;
        font-size: 0.83rem;
    }
}

@media (max-width: 1180px) {
    .nav-list {
        display: none;
    }

    .burger {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding-block: clamp(44px, 9vw, 80px);
    }

    .hero__media {
        max-width: 640px;
    }

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

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

    .grid--4,
    .product-grid,
    .post-grid,
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .about__media {
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 66px;
    }

    .trust__grid,
    .grid--3,
    .grid--4,
    .product-grid,
    .post-grid,
    .expertise-grid,
    .spec-grid,
    .summary-chips,
    .stats,
    .assurance {
        grid-template-columns: 1fr;
    }

    .trust__grid li {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 18px 2px;
    }

    .trust__grid li:first-child {
        border-top: 0;
    }

    .form-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

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

    .field-pair {
        grid-template-columns: 1fr;
    }

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

    .hero__card {
        left: 12px;
        bottom: 12px;
    }

    .catalog-cat__head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================================
   Articles éditoriaux
   ========================================================================== */

.article-hero {
    padding: clamp(30px, 4vw, 52px) 0 clamp(26px, 3.4vw, 44px);
    background:
        radial-gradient(700px 380px at 88% -20%, rgba(255, 106, 26, 0.2), transparent 60%),
        linear-gradient(145deg, var(--navy-950), var(--navy-800));
    color: rgba(255, 255, 255, 0.78);
}

.article-hero .breadcrumb {
    padding-top: 0;
    color: rgba(255, 255, 255, 0.6);
}

.article-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.68);
}

.article-hero .breadcrumb a:hover {
    color: #fff;
}

.article-hero .breadcrumb li + li::before {
    color: rgba(255, 255, 255, 0.28);
}

.article-hero .breadcrumb [aria-current] {
    color: rgba(255, 255, 255, 0.92);
}

.article-hero__body {
    max-width: 860px;
    margin-top: 18px;
}

.article-hero h1 {
    margin: 14px 0 14px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
}

.article-hero__lead {
    max-width: 70ch;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.article-hero .article-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.article-hero .article-meta svg {
    color: var(--accent);
}

.article-cover {
    margin: -34px 0 0;
}

.article-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

@media (min-width: 1024px) {
    .article-layout:has(.article-aside) {
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    }

    .article-layout:has(.article-aside) .article-aside {
        order: 0;
    }

    .article-layout:has(.article-aside) .article-content {
        order: 1;
    }
}

.article-aside {
    display: grid;
    gap: 18px;
}

@media (min-width: 1024px) {
    .article-aside {
        position: sticky;
        top: calc(var(--header-h) + 22px);
    }
}

.article-toc {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.article-toc__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.article-toc__title svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.article-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.article-toc li {
    margin: 0;
    border-top: 1px solid var(--line);
}

.article-toc li:first-child {
    border-top: 0;
}

.article-toc a {
    display: block;
    padding: 9px 2px;
    color: var(--body);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.article-toc a:hover {
    padding-left: 6px;
    color: var(--accent);
}

.article-toc__item--h3 a {
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

.article-aside__cta {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
    color: rgba(255, 255, 255, 0.78);
}

.article-aside__cta strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-family: var(--font-display);
}

.article-aside__cta p {
    margin: 0 0 14px;
    font-size: 0.88rem;
}

/* --- Prose éditoriale --------------------------------------------------- */

.prose--article {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.prose--article > p:first-of-type {
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.75;
}

.prose--article h2 {
    position: relative;
    margin: 2em 0 0.7em;
    padding-left: 18px;
    font-size: clamp(1.35rem, 2.1vw, 1.65rem);
}

.prose--article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    bottom: 0.16em;
    width: 4px;
    border-radius: 4px;
    background: var(--accent);
}

.prose--article h3 {
    margin: 1.7em 0 0.55em;
    color: var(--navy-700);
}

.prose--article p {
    margin: 0 0 1.15em;
}

.prose--article ul,
.prose--article ol {
    margin: 0 0 1.3em;
    padding-left: 0;
    list-style: none;
}

.prose--article ol {
    counter-reset: prose-ol;
    padding-left: 6px;
}

.prose--article ul li,
.prose--article ol li {
    position: relative;
    margin-bottom: 0.6em;
    padding-left: 30px;
}

.prose--article ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.prose--article ol li::before {
    counter-increment: prose-ol;
    content: counter(prose-ol);
    position: absolute;
    left: 0;
    top: 0.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-700);
    font-size: 0.78rem;
    font-weight: 700;
}

.prose--article blockquote {
    position: relative;
    margin: 1.8em 0;
    padding: 22px 26px 22px 62px;
    border: 0;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font-style: normal;
    font-weight: 500;
}

.prose--article blockquote::before {
    content: "“";
    position: absolute;
    left: 20px;
    top: 6px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
    opacity: 0.85;
}

.prose--article img {
    width: 100%;
    margin: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.prose--article figure,
.article-figure {
    margin: 1.8em 0;
}

.prose--article figcaption,
.article-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.prose--article table {
    font-size: 0.94rem;
}

.prose--article th {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
}

.prose--article tbody tr:nth-child(even) {
    background: var(--bg);
}

/* Encadrés */
.callout {
    display: flex;
    gap: 14px;
    margin: 1.7em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.98rem;
}

.callout svg {
    width: 21px;
    height: 21px;
    flex: none;
    margin-top: 2px;
    color: var(--accent);
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout--info {
    border-left-color: #2563eb;
    background: #eef4ff;
}

.callout--info svg {
    color: #2563eb;
}

.callout--warning {
    border-left-color: #d97706;
    background: #fff7ed;
}

.callout--warning svg {
    color: #d97706;
}

/* À retenir */
.key-points {
    margin: 2em 0;
    padding: 26px 28px;
    border: 1px solid rgba(255, 106, 26, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #fff, var(--accent-soft));
}

.key-points h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 1.05rem;
}

.key-points h3 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.key-points ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.key-points li {
    position: relative;
    margin-bottom: 0.55em;
    padding-left: 28px;
    color: var(--body);
}

.key-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--success);
    font-weight: 700;
}

/* FAQ */
.faq-item {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-700);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--body);
    font-size: 0.96rem;
}

/* Bloc auteur */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 34px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.author-box img {
    height: 52px;
    width: auto;
    flex: none;
}

.author-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-display);
}

.author-box p {
    margin: 0 0 10px;
    color: var(--body);
    font-size: 0.94rem;
}

.author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.author-box__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--navy-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.author-box__links svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

@media (max-width: 760px) {
    .author-box {
        flex-direction: column;
    }

    .article-cover {
        margin-top: -22px;
    }
}


/* --- Pagination --------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(30px, 4vw, 52px);
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pagination__link:hover {
    border-color: var(--navy-800);
    color: var(--navy-800);
}

.pagination__link.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.pagination__link svg {
    width: 15px;
    height: 15px;
}

.pagination__dots {
    color: var(--muted);
    padding: 0 4px;
}

/* --- Logo texte (config-driven) ----------------------------------------- */
.brand-logo {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1;
}

.brand-logo strong {
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-logo em {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.brand-logo--light strong {
    color: #fff;
}

.brand-logo--light em {
    color: #ffb277;
}


/* ==========================================================================
   Document de devis (page client) + vérification
   ========================================================================== */

.quote-page {
    background: var(--bg);
}

.quote-container {
    max-width: 880px;
    margin-inline: auto;
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.quote-document {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.quote-document__inner {
    padding: clamp(20px, 3.5vw, 42px);
}

.quote-document__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--navy-900);
}

.quote-brand {
    min-width: 0;
}

.quote-brand p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.quote-document__meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 0;
    text-align: right;
    font-size: 0.9rem;
}

.quote-document__type {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.quote-document__meta strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy-900);
}

.quote-document__meta span {
    color: var(--muted);
    font-size: 0.86rem;
}

.quote-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.quote-parties h2 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quote-parties p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.quote-parties strong {
    color: var(--ink);
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.quote-table th,
.quote-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.quote-table th {
    background: var(--navy-900);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.quote-table th:nth-child(1) { width: 44%; }
.quote-table th:nth-child(2) { width: 9%; }
.quote-table th:nth-child(3) { width: 17%; }
.quote-table th:nth-child(4) { width: 12%; }
.quote-table th:nth-child(5) { width: 18%; }

.quote-table .is-right {
    text-align: right;
    white-space: nowrap;
}

.quote-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.quote-totals dl {
    width: min(320px, 100%);
    margin: 0;
}

.quote-totals dl > div {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
}

.quote-totals dt {
    color: var(--muted);
}

.quote-totals dd {
    margin: 0;
    font-weight: 600;
}

.quote-totals .is-strong {
    border-bottom: 0;
    color: var(--navy-900);
    font-size: 1.1rem;
}

.quote-totals .is-strong dt,
.quote-totals .is-strong dd {
    font-weight: 700;
}

.quote-conditions {
    margin-top: 24px;
    color: var(--body);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.quote-conditions h2 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.quote-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px dashed var(--line);
}

.quote-auth__info {
    min-width: 0;
}

.quote-auth__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    font-weight: 700;
}

.quote-auth__status svg {
    width: 20px;
    height: 20px;
}

.quote-auth__status.is-valid {
    color: #166534;
}

.quote-auth__status.is-invalid {
    color: #991b1b;
}

.quote-auth__info p {
    margin: 0 0 8px;
    font-size: 0.86rem;
    color: var(--body);
    overflow-wrap: anywhere;
}

.quote-auth__hash {
    color: var(--muted) !important;
    font-size: 0.76rem !important;
    word-break: break-all;
}

.quote-qr {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 7px;
}

.quote-qr img {
    width: 132px;
    height: 132px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.quote-qr figcaption {
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.quote-print-hint {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 640px) {
    .quote-document__meta {
        justify-items: start;
        text-align: left;
    }

    .quote-parties,
    .quote-auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-qr {
        justify-items: start;
    }
}

/* --- Vérification d'authenticité ---------------------------------------- */

.quote-verify-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .quote-verify-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.quote-verify-result {
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow-wrap: anywhere;
}

.quote-verify-result.is-valid {
    border-color: rgba(22, 163, 74, 0.4);
    background: linear-gradient(160deg, #fff, #ecfdf3);
}

.quote-verify-result.is-invalid {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(160deg, #fff, #fef2f2);
}

.quote-verify-result__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.quote-verify-result.is-valid .quote-verify-result__head {
    color: #166534;
}

.quote-verify-result.is-invalid .quote-verify-result__head {
    color: #991b1b;
}

.quote-verify-result__head svg {
    width: 24px;
    height: 24px;
}

.quote-verify-details {
    margin: 0 0 12px;
}

.quote-verify-details > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.quote-verify-details dt {
    color: var(--muted);
}

.quote-verify-details dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

/* --- Admin : tableau des lignes de devis (anti-débordement) ------------- */

.admin-items {
    table-layout: fixed;
}

.admin-items th:nth-child(1) { width: 40%; }
.admin-items th:nth-child(2) { width: 10%; }
.admin-items th:nth-child(3) { width: 16%; }
.admin-items th:nth-child(4) { width: 12%; }
.admin-items th:nth-child(5) { width: 15%; }
.admin-items th:nth-child(6) { width: 7%; }

.admin-items td {
    overflow-wrap: anywhere;
}

.admin-items td input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* ==========================================================================
   Formulaire de devis — design moderne
   ========================================================================== */

.form-card--quote {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(10, 22, 40, 0.10), 0 2px 6px rgba(10, 22, 40, 0.04);
}

.quote-form__head {
    padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 32px) clamp(18px, 2.4vw, 24px);
    background: linear-gradient(150deg, #fff 0%, var(--surface-alt) 100%);
    border-bottom: 1px solid var(--line);
}

.quote-form__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quote-form__head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.quote-form__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.quote-form__context {
    padding: 18px clamp(20px, 3vw, 32px) 0;
}

.quote-form__context .context-banner {
    margin-bottom: 0;
}

.form-step {
    padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
}

.form-step + .form-step {
    border-top: 1px solid var(--line);
}

.form-step:last-of-type {
    padding-bottom: clamp(8px, 1.4vw, 14px);
}

.form-step__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.form-step__num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-700);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}

.form-step__head h3 {
    margin: 0 0 3px;
    font-size: 1.08rem;
}

.form-step__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

/* --- Champs de saisie --------------------------------------------------- */

.form-card .field label,
.form-card .field__label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.form-card .field input:not([type="checkbox"]):not([type="file"]),
.form-card .field select,
.form-card .field textarea,
.form-step .field input:not([type="checkbox"]):not([type="file"]),
.form-step .field select,
.form-step .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 0.96rem;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-card .field textarea,
.form-step .field textarea {
    min-height: 150px;
    line-height: 1.6;
}

.form-card .field input:hover,
.form-card .field select:hover,
.form-card .field textarea:hover,
.form-step .field input:hover,
.form-step .field select:hover,
.form-step .field textarea:hover {
    border-color: #c6d0dd;
}

.form-card .field input:focus,
.form-card .field select:focus,
.form-card .field textarea:focus,
.form-step .field input:focus,
.form-step .field select:focus,
.form-step .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.14);
}

.form-card .field input::placeholder,
.form-card .field textarea::placeholder {
    color: #9aa8ba;
}

.form-card .field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2365758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* --- Cartes « Métiers » ------------------------------------------------- */

.fieldset-trades {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.fieldset-trades legend {
    padding: 0;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.legend-hint {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.trade-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.trade-card:hover {
    border-color: #c6d0dd;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.trade-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.trade-card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
    background: var(--surface-alt);
    color: var(--navy-700);
    transition: background 0.18s ease, color 0.18s ease;
}

.trade-card__icon svg {
    width: 20px;
    height: 20px;
}

.trade-card__label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.trade-card__check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    margin-left: auto;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trade-card__check svg {
    width: 13px;
    height: 13px;
}

.trade-card:has(input:checked),
.trade-card.is-checked {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.trade-card:has(input:checked) .trade-card__icon,
.trade-card.is-checked .trade-card__icon {
    background: var(--accent);
    color: #fff;
}

.trade-card:has(input:checked) .trade-card__check,
.trade-card.is-checked .trade-card__check {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.trade-card:has(input:focus-visible),
.trade-card.is-focused {
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.16);
}

/* --- Téléversement de fichier ------------------------------------------- */

.file-drop {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 24px 18px;
    border: 1.5px dashed #c6d0dd;
    border-radius: 14px;
    background: var(--bg);
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.file-drop:hover,
.file-drop.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}

.file-drop__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
}

.file-drop__icon svg {
    width: 21px;
    height: 21px;
}

.file-drop__text {
    color: var(--body);
    font-size: 0.92rem;
}

.file-drop__text strong {
    color: var(--ink);
}

.file-drop__browse {
    color: var(--accent-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.file-drop__meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.file-drop__file {
    color: #166534;
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.file-drop.has-file {
    border-style: solid;
    border-color: rgba(22, 163, 74, 0.45);
    background: #f0fdf4;
}

.file-drop.has-file .file-drop__icon {
    border-color: rgba(22, 163, 74, 0.45);
    color: #166534;
}

.file-drop__clear {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.file-drop__clear:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.file-drop__clear svg {
    width: 15px;
    height: 15px;
}

/* --- Consentement -------------------------------------------------------- */

.form-card .consent {
    align-items: flex-start;
    gap: 13px;
    margin-top: 4px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.form-card .consent:hover {
    border-color: #c6d0dd;
}

.form-card .consent:has(input:checked),
.form-card .consent.is-checked {
    border-color: rgba(22, 163, 74, 0.45);
    background: #f0fdf4;
}

.form-card .consent input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

/* --- CTA ---------------------------------------------------------------- */

.btn--lg {
    min-height: 58px;
    padding: 17px 32px;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn--lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 106, 26, 0.32);
}

.btn--lg svg {
    width: 20px;
    height: 20px;
}

.form-submit {
    display: grid;
    gap: 14px;
    padding: 0 clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px);
}

.form-submit__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.form-submit__note span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.form-submit__note svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

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

    .form-step__num {
        width: 33px;
        height: 33px;
        font-size: 0.9rem;
    }
}


/* --- Sélecteur de langue (footer) --------------------------------------- */

.footer-bottom__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 22px;
}

.footer-bottom__links {
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom__links a {
    color: inherit;
}

.footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-lang__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-lang__label svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.footer-lang .gtranslate_wrapper {
    display: inline-flex;
    align-items: center;
}

.footer-lang .gtranslate_wrapper .gtranslate_selector {
    display: inline-flex;
    align-items: center;
}

.footer-lang .gtranslate_wrapper select,
.footer-lang .gtranslate_wrapper .gt_selector {
    -webkit-appearance: none;
    appearance: none;
    min-height: 38px;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.07);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-lang .gtranslate_wrapper select:hover,
.footer-lang .gtranslate_wrapper .gt_selector:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background-color: rgba(255, 255, 255, 0.12);
}

.footer-lang .gtranslate_wrapper select:focus,
.footer-lang .gtranslate_wrapper .gt_selector:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.22);
}

.footer-lang .gtranslate_wrapper select option,
.footer-lang .gtranslate_wrapper .gt_selector option {
    color: var(--ink);
    background: #fff;
}

.footer-lang .gtranslate_wrapper a,
.footer-lang .gtranslate_wrapper .gt-current-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-lang .gtranslate_wrapper a:hover,
.footer-lang .gtranslate_wrapper .gt-current-lang:hover {
    border-color: var(--accent);
    background: rgba(255, 106, 26, 0.18);
    color: #fff;
}

.footer-lang .gtranslate_wrapper img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

@media (max-width: 760px) {
    .footer-bottom__right {
        justify-content: flex-start;
    }
}

/* --- Téléphone secondaire / bouton WhatsApp flottant ------------------- */
.contact-sep {
    opacity: 0.55;
    margin: 0 5px;
}

.topbar__list .wa-icon,
.footer-contact .wa-icon,
.contact-info .wa-icon {
    color: #25d366;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 13, 28, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(6, 13, 28, 0.34);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.45);
    outline-offset: 3px;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media print {
    .whatsapp-float {
        display: none !important;
    }
}
