/* ==========================================================================
   CEI — Cercle Électricité Industrielle
   Design system partagé (thème clair / sombre, responsive)
   Style : "atelier électrique premium" — navy profond, accent doré,
   cartes arrondies, ombres douces, typographie Poppins / Inter.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. JETONS DE DESIGN
   -------------------------------------------------------------------------- */
:root {
    /* Typographie */
    --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Rythme */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --maxw: 1240px;
    --gap: 1.5rem;
    --pad-section: clamp(3.5rem, 7vw, 6.5rem);

    /* Marque : constantes navy / or, indépendantes du thème clair/sombre */
    --navy: #b82025;
    --navy-2: #a11b20;
    --navy-3: #cf2f35;
    --navy-deep: #8a1519;
    --gold: #f6c445;
    --gold-2: #ffd76a;
    --gold-ink: #21170a;

    /* Ombres douces */
    --shadow: 0 24px 48px -18px rgba(7, 23, 48, 0.32);
    --shadow-sm: 0 12px 26px -12px rgba(7, 23, 48, 0.28);
    --shadow-lg: 0 32px 64px -20px rgba(7, 23, 48, 0.4);
    --shadow-gold: 0 14px 28px -12px rgba(246, 196, 69, 0.55);

    /* Couleurs — thème clair (défaut) */
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --ink: #101d33;
    --ink-2: #5b6a82;
    --line: #e3e8f0;
    --brand: var(--navy);
    --brand-ink: #ffffff;
    --accent: var(--gold);
    --accent-ink: var(--gold-ink);
    --highlight: var(--gold);
    --highlight-ink: var(--gold-ink);
    --wa: #25d366;
    --wa-ink: #06210f;

    /* Accent technologique : sert aux repères, jauges et détails */
    --tech: #2fb8c9;
    --tech-ink: #02201d;

    /* Trame technique posée en fond de certains blocs */
    --grid-line: rgba(16, 29, 51, 0.06);

    /* Voile sur les photos */
    --veil: rgba(7, 20, 40, 0.72);
    --veil-strong: rgba(6, 15, 30, 0.86);

    color-scheme: light;
}

/* Thème sombre : activation manuelle ou selon les préférences système.
   Le "navy" de marque (en-tête, héros, pied de page, bandeaux) reste
   constant : seules les surfaces de contenu basculent. */
[data-theme='dark'] {
    --bg: #150d0e;
    --surface: #1f1416;
    --surface-2: #291a1d;
    --ink: #fbf1f1;
    --ink-2: #c4aaad;
    --line: #3d2a2d;
    --tech: #4fd6e6;
    --grid-line: rgba(251, 241, 241, 0.06);
    --veil: rgba(14, 6, 7, 0.78);
    --veil-strong: rgba(10, 4, 5, 0.9);

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RÉINITIALISATION ET BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

/* Masque le contenu le temps que la langue soit appliquée (voir theme-init.js).
   Si le JavaScript ne tourne pas, la classe n'est jamais posée : rien n'est masqué. */
html.i18n-pending body {
    opacity: 0;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--navy);
}

[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4 {
    color: var(--ink);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    text-wrap: pretty;
}

strong {
    font-weight: 700;
}

/* Libellé "œillet" : petite étiquette dorée au-dessus des titres */
.label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.label--accent {
    color: #c98f00;
}

[data-theme='dark'] .label--accent {
    color: var(--gold-2);
}

.lead {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--ink-2);
    max-width: 68ch;
}

.muted {
    color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   4. MISE EN PAGE
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

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

.section--tight {
    padding-block: clamp(2rem, 4vw, 3rem);
}

.section--surface {
    background-color: var(--surface-2);
}

.section--ink {
    background-color: var(--navy);
    color: #ffffff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section--ink::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 140% at 100% 0%, var(--navy-3) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}

.section--ink .lead,
.section--ink .muted {
    color: #f6dcdd;
    opacity: 1;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
    color: #ffffff;
}

.section--ink .label {
    color: var(--gold-2);
}

/* En-tête de section : libellé + titre + chapô */
.section-head {
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
    max-width: 76ch;
}

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

.section-head h2 + .lead {
    margin-top: 0.2rem;
}

.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}

/* Grilles réutilisables */
.grid {
    display: grid;
    gap: var(--gap);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--gold);
    --btn-ink: var(--gold-ink);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    background-color: var(--btn-bg);
    color: var(--btn-ink);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-gold);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    text-align: center;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(246, 196, 69, 0.65);
}

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

.btn--brand {
    --btn-bg: var(--navy);
    --btn-ink: #ffffff;
    box-shadow: 0 14px 28px -12px rgba(184, 32, 37, 0.55);
}

.btn--brand:hover,
.btn--brand:focus-visible {
    box-shadow: 0 18px 34px -12px rgba(184, 32, 37, 0.65);
}

/* Bouton "marque" posé sur un fond rouge : inversé pour rester visible */
.cta-band .btn--brand,
.section--ink .btn--brand {
    --btn-bg: #ffffff;
    --btn-ink: var(--navy);
}

.btn--wa {
    --btn-bg: var(--wa);
    --btn-ink: #06210f;
    box-shadow: 0 14px 28px -12px rgba(37, 211, 102, 0.55);
}

.btn--wa:hover,
.btn--wa:focus-visible {
    box-shadow: 0 18px 34px -12px rgba(37, 211, 102, 0.65);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-ink: var(--ink);
    box-shadow: none;
    border: 2px solid var(--line);
}

.section--ink .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost {
    --btn-ink: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    --btn-bg: rgba(246, 196, 69, 0.12);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: none;
}

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

.btn--lg {
    padding: 1.05rem 1.9rem;
    font-size: 1rem;
}

.btn--icon {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn img,
.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Groupe de boutons */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

/* Lien fléché */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    transition: gap 0.15s ease;
}

[data-theme='dark'] .arrow-link {
    color: var(--ink);
}

.arrow-link:hover {
    gap: 0.85rem;
    color: #c98f00;
}

.arrow-link::after {
    content: '→';
}

/* --------------------------------------------------------------------------
   6. EN-TETE, NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: var(--navy);
    box-shadow: 0 12px 30px -18px rgba(3, 10, 22, 0.7);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    padding-block: 0.7rem;
}

/* Marque */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand__img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.brand__tag {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-2);
}

/* Navigation principale */
.nav {
    margin-inline-start: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav__link {
    display: inline-block;
    padding: 0.6rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff1f1;
    border-radius: var(--radius-pill);
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav__link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav__link[aria-current='page'] {
    background-color: var(--gold);
    color: var(--gold-ink);
    font-weight: 600;
}

/* Menu déroulant « Services » */
.nav__item--has-menu {
    position: relative;
}

.nav__link--toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav__link--toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: 0.8;
}

.submenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 290px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    display: none;
    z-index: 70;
}

.nav__item--has-menu:hover .submenu,
.nav__item--has-menu:focus-within .submenu,
.submenu.is-open {
    display: block;
}

.submenu__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--radius-sm);
}

.submenu__link:hover {
    background-color: var(--surface-2);
    color: var(--navy);
}

.submenu__num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: #c98f00;
}

/* Bouton hamburger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.08);
}

.burger__bars {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    position: relative;
}

.burger__bars::before,
.burger__bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: #ffffff;
}

.burger__bars::before {
    top: -6px;
}

.burger__bars::after {
    top: 6px;
}

/* Panneau mobile */
.mobile-panel {
    display: none;
    background-color: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.mobile-panel.is-open {
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-panel__inner {
    padding-block: 1rem 1.4rem;
    display: grid;
    gap: 0.4rem;
}

.mobile-panel__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
}

.mobile-panel__link::after {
    content: '→';
    color: var(--gold-2);
}

.mobile-panel__link[aria-current='page'] {
    background-color: var(--gold);
    color: var(--gold-ink);
}

/* --------------------------------------------------------------------------
   7. HERO ET BANNIERES DE PAGE
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background-color: var(--navy);
    color: #ffffff;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(138, 21, 25, 0.8) 0%, rgba(138, 21, 25, 0) 32%),
        linear-gradient(100deg, rgba(138, 21, 25, 0.93) 0%, rgba(138, 21, 25, 0.82) 40%, rgba(150, 24, 28, 0.4) 58%, rgba(184, 32, 37, 0.08) 78%, rgba(184, 32, 37, 0) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
    display: grid;
    gap: 1.5rem;
    max-width: 42rem;
}

.hero h1 {
    color: #ffffff;
}

.hero h1 em,
.hero h1 .accent-line {
    display: block;
    font-style: normal;
    color: var(--gold);
}

.hero .lead {
    color: #fbe9ea;
    max-width: 52ch;
}

.hero .label {
    color: var(--gold-2);
}

/* Bloc statistiques + carte flottante, posés sur la photo du héros */
.hero__foot {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__foot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.6rem, 4vw, 3.2rem);
}

.hero-stat__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    color: #ffffff;
    line-height: 1;
}

.hero-stat__label {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #f3c9cb;
    max-width: 14ch;
}

.hero-play {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.3rem 0.9rem 0.9rem;
    background-color: rgba(120, 14, 18, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    max-width: 20rem;
}

.hero-play__thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-play__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-play__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(7, 20, 40, 0.35);
}

.hero-play__icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold);
    border-radius: 50%;
    color: var(--gold-ink);
    z-index: 1;
}

.hero-play__icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    margin-left: 2px;
}

.hero-play__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gold-2);
}

.hero-play__text {
    font-size: 0.8rem;
    color: #f6dcdd;
    margin-top: 0.15rem;
}

/* Bandeau de page intérieure (plus compact) */
.page-hero {
    position: relative;
    background-color: var(--navy);
    color: #ffffff;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(2.6rem, 6vw, 4.2rem);
    display: grid;
    gap: 1rem;
    max-width: 70rem;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
}

.page-hero .lead {
    color: #fbe9ea;
}

.page-hero .label {
    color: var(--gold-2);
}

/* Variante claire du bandeau de page */
.page-hero--light {
    background-color: var(--surface);
    color: var(--ink);
}

.page-hero--light h1 {
    color: var(--ink);
}

.page-hero--light .lead {
    color: var(--ink-2);
}

.page-hero--light .label {
    color: #c98f00;
}

/* Bandeau de chiffres clés (utilisé en variante carte, voir §9 .fact) */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap);
}

/* --------------------------------------------------------------------------
   8. FIL D'ARIANE
   -------------------------------------------------------------------------- */
.breadcrumb {
    font-size: 0.82rem;
    color: #f3c9cb;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.5;
}

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

.breadcrumb [aria-current='page'] {
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. CARTES
   -------------------------------------------------------------------------- */

/* --- Carte service / produit --- */
.card {
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

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

.card__media {
    position: relative;
    background-color: var(--surface-2);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card__media img {
    transform: scale(1.06);
}

.card__num {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background-color: var(--gold);
    color: var(--gold-ink);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
}

.card__body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex-grow: 1;
}

.card__brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c98f00;
}

[data-theme='dark'] .card__brand {
    color: var(--gold-2);
}

.card__title {
    margin: 0;
}

.card__title,
.card__title a {
    font-size: 1.08rem;
}

.card__text {
    color: var(--ink-2);
    font-size: 0.94rem;
    flex-grow: 1;
}

.card__foot {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

/* Carte entièrement cliquable : le titre porte le lien principal */
.card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

.card--link {
    position: relative;
}

/* --- Carte tuile (catégories de la page d'accueil) --- */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.6rem 1.4rem;
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

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

.tile__icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.tile__icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.tile__title {
    font-size: 1.05rem;
}

.tile__text {
    font-size: 0.9rem;
    color: var(--ink-2);
    flex-grow: 1;
}

.tile__more {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: #c98f00;
}

[data-theme='dark'] .tile__more {
    color: var(--gold-2);
}

/* --- Carte statistique (héros / bandeau de chiffres) --- */
.fact {
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius);
    background-color: var(--navy);
    color: #ffffff;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    box-shadow: var(--shadow-sm);
}

.fact__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background-color: rgba(246, 196, 69, 0.14);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.fact__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--gold-2);
}

.fact__label {
    font-size: 0.86rem;
    color: #f6dcdd;
}

/* --- Carte « atout » numérotée --- */
.step {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.6rem;
    align-content: start;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step__num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: #c98f00;
}

[data-theme='dark'] .step__num {
    color: var(--gold-2);
}

/* --- Carte de contact / coordonnées --- */
.info-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.8rem;
    align-content: start;
    height: 100%;
}

.info-card__row {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.94rem;
}

.info-card__row svg {
    width: 20px;
    height: 20px;
    fill: #c98f00;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-card a:hover {
    color: #c98f00;
    text-decoration: underline;
}

/* --- Liste à puces techniques --- */
.check-list {
    display: grid;
    gap: 0.7rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.97rem;
}

.check-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    background-color: var(--gold);
    color: var(--gold-ink);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --- Étiquettes (marques, secteurs) --- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
}

[data-theme='dark'] .chip {
    color: var(--ink);
}

/* --- Questions fréquentes --- */
.faq {
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

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

.faq summary::after {
    content: '+';
    font-size: 1.3rem;
    color: #c98f00;
    flex-shrink: 0;
}

[data-theme='dark'] .faq summary::after {
    color: var(--gold-2);
}

.faq details[open] summary::after {
    content: '−';
}

.faq summary:hover {
    background-color: var(--surface-2);
}

.faq__answer {
    padding: 0 1.3rem 1.3rem;
    color: var(--ink-2);
    font-size: 0.96rem;
    max-width: 78ch;
}

/* --------------------------------------------------------------------------
   10. BANDEAUX D'APPEL À L'ACTION
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    background-color: var(--navy);
    color: #ffffff;
    isolation: isolate;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(90% 130% at 15% 20%, var(--navy-3) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}

.cta-band__inner {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    justify-content: space-between;
}

.cta-band h2 {
    color: #ffffff;
    max-width: 22ch;
}

.cta-band h2 .accent-line {
    color: var(--gold);
    display: block;
}

.cta-band .lead {
    color: #fbe9ea;
}

/* --------------------------------------------------------------------------
   11. FORMULAIRES
   -------------------------------------------------------------------------- */
.form {
    display: grid;
    gap: 1.2rem;
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}

.form__row {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.field {
    display: grid;
    gap: 0.45rem;
}

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

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(246, 196, 69, 0.35);
}

.field__hint {
    font-size: 0.8rem;
    color: var(--ink-2);
}

.form__status {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
    background-color: rgba(246, 196, 69, 0.16);
    color: #8a6100;
    font-weight: 600;
}

[data-theme='dark'] .form__status {
    color: var(--gold-2);
}

.form__status[hidden] {
    display: none;
}
/* --------------------------------------------------------------------------
   12. RECHERCHE
   -------------------------------------------------------------------------- */
.search {
    position: relative;
    flex: 1 1 16rem;
    min-width: 0;
    max-width: 26rem;
}

.search__field {
    display: flex;
    align-items: center;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.search__field svg {
    width: 18px;
    height: 18px;
    fill: #f3c9cb;
    margin-inline-start: 0.9rem;
    flex-shrink: 0;
}

.search__input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    min-width: 0;
    color: #ffffff;
}

.search__input::placeholder {
    color: #f0bfc1;
}

.search__input:focus {
    outline: none;
}

.search--mobile .search__field,
.mobile-panel .search__input {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search__results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 60vh;
    overflow-y: auto;
    display: none;
    z-index: 80;
}

.search__results.is-open {
    display: block;
}

.search__item {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.search__item:last-child {
    border-bottom: none;
}

.search__item:hover,
.search__item:focus-visible {
    background-color: var(--surface-2);
}

.search__thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.search__item-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.search__item-sub {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

.search__empty {
    padding: 0.9rem 0.9rem;
    font-size: 0.88rem;
    color: var(--ink-2);
}

.search-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.08);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* --------------------------------------------------------------------------
   13. PIED DE PAGE
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    background-color: var(--navy-deep);
    color: #f6dcdd;
    isolation: isolate;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 160% at 100% 0%, var(--navy-2) 0%, var(--navy-deep) 60%);
}

.site-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.4rem;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1000px) {
    .site-footer__top {
        grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    }
}

.footer-col h2,
.footer-col h3 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-col__head {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-2);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: grid;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.92rem;
    opacity: 0.85;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--gold-2);
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: 0.85rem;
}

.footer-contact__row {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.9rem;
    opacity: 0.92;
}

.footer-contact__row svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-2);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
}

.site-footer__bottom {
    padding-block: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.6rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.75;
}

.site-footer__bottom a:hover {
    color: var(--gold-2);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. ÉLÉMENTS FLOTTANTS
   -------------------------------------------------------------------------- */
.wa-float {
    position: fixed;
    right: clamp(1rem, 3vw, 1.8rem);
    bottom: clamp(1rem, 3vw, 1.8rem);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--wa);
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform 0.15s ease;
}

.wa-float:hover {
    transform: scale(1.08);
}

.wa-float img {
    width: 32px;
    height: 32px;
}

.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 1.8rem);
    bottom: calc(clamp(1rem, 3vw, 1.8rem) + 72px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.15s ease;
}

.to-top:hover {
    transform: translateY(-3px);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 200;
    background-color: var(--gold);
    color: var(--gold-ink);
    padding: 0.7rem 1.1rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 700;
}

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

.stack {
    display: grid;
    gap: 1.1rem;
}

.stack--lg {
    gap: 2rem;
}

.split {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }

    .split--wide {
        grid-template-columns: 1.25fr 0.75fr;
    }

    .split--narrow {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.media-frame {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--surface-2);
}

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

.rule {
    height: 1px;
    background-color: var(--line);
    border: none;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav__link {
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 980px) {
    .nav,
    .search {
        display: none;
    }

    .burger {
        display: flex;
    }

    .search-toggle {
        display: flex;
    }

    .mobile-panel {
        display: block;
    }

    .header-tools {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-inline-start: auto;
    }

    .search--mobile {
        display: block;
        max-width: none;
        flex-basis: 100%;
        padding-bottom: 0.9rem;
    }
}

@media (max-width: 700px) {
    .brand__img {
        width: 42px;
        height: 42px;
    }

    .brand__name {
        font-size: 1.15rem;
    }

    .brand__tag {
        font-size: 0.52rem;
        letter-spacing: 0.07em;
    }

    .utility-bar__inner {
        justify-content: center;
        text-align: center;
    }

    .hero-play {
        max-width: none;
    }

    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wa-float {
        width: 54px;
        height: 54px;
    }

    .wa-float img {
        width: 28px;
        height: 28px;
    }

    .to-top {
        bottom: calc(clamp(1rem, 3vw, 1.8rem) + 64px);
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .btn,
    .btn-row .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   17. PRÉFÉRENCES DE MOUVEMENT ET IMPRESSION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    .utility-bar,
    .site-header,
    .mobile-panel,
    .wa-float,
    .to-top,
    .cta-band {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }
}
/* ==========================================================================
   18. COUCHE TECHNIQUE — jauges, tableaux de spécifications, trame
   ========================================================================== */

/* --- Trame technique : se pose en fond de bloc --- */
.tech-grid {
    position: relative;
    isolation: isolate;
}

.tech-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.tech-grid--fine::before {
    background-size: 26px 26px;
}

.hero--tech .hero__media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

/* --- Cotes de plan : petits repères d'angle sur un bloc --- */
.blueprint {
    position: relative;
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}

/* --- Tableau de spécifications --- */
.spec-table {
    width: 100%;
    border-radius: var(--radius);
    background-color: var(--surface);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.94rem;
}

.spec-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    padding-bottom: 0.8rem;
}

.spec-table th,
.spec-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table th {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    width: 42%;
    background-color: var(--surface-2);
}

.spec-table td {
    font-weight: 600;
    color: var(--navy);
}

[data-theme='dark'] .spec-table td {
    color: var(--ink);
}

/* --- Jauge de capacité --- */
.gauge {
    display: grid;
    gap: 0.5rem;
}

.gauge__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
}

.gauge__track {
    height: 10px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-2);
    overflow: hidden;
}

.gauge__fill {
    height: 100%;
    width: var(--gauge, 60%);
    background-color: var(--gold);
    border-radius: var(--radius-pill);
}

.gauge__fill--accent {
    background-color: var(--tech);
}

.gauge__fill--highlight {
    background-color: var(--navy);
}

/* --- Rail de processus (étapes numérotées en colonnes) --- */
.rail {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    counter-reset: rail;
}

.rail__item {
    position: relative;
    padding: 1.5rem 1.3rem 1.4rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    display: grid;
    gap: 0.5rem;
    align-content: start;
    counter-increment: rail;
}

.rail__item::before {
    content: counter(rail, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.rail__title {
    font-size: 1rem;
    color: #ffffff;
}

.rail__text {
    color: #f6dcdd;
    font-size: 0.9rem;
}

/* --- Carte modèle / déclinaison --- */
.model {
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.model__ref {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tech);
}

.model__title {
    font-size: 1.05rem;
}

.model__list {
    display: grid;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.model__list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: var(--ink-2);
}

.model__list li::before {
    content: '▸';
    color: #c98f00;
    flex-shrink: 0;
}

.model__foot {
    margin-top: auto;
    padding-top: 0.4rem;
}

/* --- Encart d'information --- */
.notice {
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.25rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.94rem;
}

.notice--warn {
    border-left-color: #e0574a;
}

.notice--tip {
    border-left-color: var(--tech);
}

.notice__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

[data-theme='dark'] .notice__title {
    color: var(--ink);
}

/* --- Bandeau défilant de marques --- */
.ticker {
    overflow: hidden;
    background-color: var(--navy-deep);
    padding-block: 0.9rem;
}

.ticker__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: ticker-slide 32s linear infinite;
}

.ticker__item {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f3c9cb;
    white-space: nowrap;
}

/* --- Badge "logo" de marque partenaire, dans le bandeau défilant --- */
.ticker__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem 0.5rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.ticker__logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(246, 196, 69, 0.16);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker__logo-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ticker__logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff1f1;
    white-space: nowrap;
}

/* Variante avec un vrai logo de marque (fond blanc, l'image porte le nom) */
.ticker__logo--real {
    background-color: #ffffff;
    border-color: transparent;
    padding: 0.5rem 1.2rem;
}

.ticker__logo--real img {
    height: 22px;
    width: auto;
    display: block;
}

@keyframes ticker-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- Galerie / grille de projets --- */
.gallery {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 900px) {
    .gallery--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--surface-2);
    aspect-ratio: 4 / 3;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.06);
}

.gallery__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--veil-strong) 0%, transparent 55%);
    z-index: 1;
}

.gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    padding: 0.9rem 1rem;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    z-index: 2;
}

/* --- Vidéo verticale (visite de la boutique) --- */
.video-frame {
    max-width: 380px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #000000;
}

.video-frame video {
    width: 100%;
    height: auto;
}

/* --- Visionneuse d'images (galerie) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(10, 4, 5, 0.92);
}

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

.lightbox__figure {
    margin: 0;
    max-width: min(1100px, 100%);
    display: grid;
    gap: 0.8rem;
    justify-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
}

.lightbox__caption {
    color: #ffffff;
    font-size: 0.95rem;
    text-align: center;
}

.lightbox__btn {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__btn:hover {
    background-color: var(--gold);
    color: var(--gold-ink);
}

.lightbox__btn--close {
    top: 1rem;
    right: 1rem;
}

.lightbox__btn--prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__btn--next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Panneau de contact collant --- */
.contact-panel {
    position: sticky;
    top: 6.5rem;
    display: grid;
    gap: 0.9rem;
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.3rem;
}

.contact-panel__head {
    display: grid;
    gap: 0.3rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

/* --- Navigation précédent / suivant entre services --- */
.svc-nav {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.svc-nav__link {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-nav__link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.svc-nav__dir {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c98f00;
}

[data-theme='dark'] .svc-nav__dir {
    color: var(--gold-2);
}

.svc-nav__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.svc-nav__link--next {
    text-align: right;
    justify-items: end;
}

/* --- Étiquette d'état --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    background-color: var(--tech);
    color: #04262b;
}

.pill--accent {
    background-color: var(--gold);
    color: var(--gold-ink);
}

.pill--plain {
    background-color: transparent;
    color: inherit;
}

/* --- Grille de liens rapides --- */
.link-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.link-grid__item {
    display: grid;
    gap: 0.35rem;
    padding: 1.25rem 1.3rem;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.link-grid__item:hover .link-grid__title {
    color: #c98f00;
}

.link-grid__num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tech);
}

.link-grid__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.15s ease;
}

.link-grid__text {
    font-size: 0.88rem;
    color: var(--ink-2);
}

/* --- Média légendé --- */
.figure {
    display: grid;
    gap: 0.6rem;
}

.figure__caption {
    font-size: 0.82rem;
    color: var(--ink-2);
}

/* --- Badge flottant sur photo (ex. "22+ ans d'expérience") --- */
.photo-badge {
    position: relative;
}

.photo-badge__tag {
    position: absolute;
    left: 1.2rem;
    bottom: -1.4rem;
    background-color: var(--gold);
    color: var(--gold-ink);
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-gold);
    display: grid;
    line-height: 1.15;
    z-index: 2;
}

.photo-badge__tag strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.photo-badge__tag span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Carte d'adresse avec plan Google Maps intégré --- */
.map-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-card__photo {
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background-color: var(--surface-2);
}

.map-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card__map {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: var(--surface-2);
}

.map-card__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-card__body {
    padding: 1.5rem 1.4rem 1.6rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.map-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c98f00;
}

[data-theme='dark'] .map-card__tag {
    color: var(--gold-2);
}

.map-card__addr {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 500;
}

.map-card__addr svg {
    width: 20px;
    height: 20px;
    fill: #c98f00;
    flex-shrink: 0;
    margin-top: 3px;
}

.map-card .btn-row {
    margin-top: 0.4rem;
}

/* --- Carte bénéfice (raisons de choisir CEI, sur fond sombre) --- */
.benefit-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.benefit:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.1);
}

.benefit__icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background-color: rgba(246, 196, 69, 0.16);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit__icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.benefit h3 {
    color: #ffffff;
    font-size: 1.02rem;
}

.benefit p {
    color: #f6dcdd;
    font-size: 0.9rem;
}

/* --- Bloc icône + texte (vision / mission) --- */
.icon-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.icon-row__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-row__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.icon-row h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.icon-row p {
    font-size: 0.92rem;
    color: var(--ink-2);
}

/* --- Prose (pages texte : à propos, mentions) --- */
.prose {
    display: grid;
    gap: 1rem;
    max-width: 74ch;
}

.prose h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    margin-top: 0.8rem;
}

.prose h3 {
    margin-top: 0.5rem;
}

.prose ul {
    display: grid;
    gap: 0.5rem;
}

.prose ul li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.prose ul li::before {
    content: '▸';
    color: #c98f00;
    flex-shrink: 0;
}
/* --------------------------------------------------------------------------
   19. CORRECTIFS ET AJOUTS
   -------------------------------------------------------------------------- */

/* L'attribut hidden doit toujours l'emporter : plusieurs composants
   (recherche mobile, encarts) sont masqués par cet attribut. */
[hidden] {
    display: none !important;
}

/* Lien vers une page qui n'existe pas encore : visible mais non cliquable.
   Pour l'activer plus tard, remettre href="<data-href>" et retirer la classe. */
.is-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.55;
}

.btn.is-disabled {
    box-shadow: none;
    filter: grayscale(0.35);
}

/* Information à renseigner par l'entreprise (pages légales) */
.todo {
    background-color: rgba(246, 196, 69, 0.4);
    color: inherit;
    padding: 0.05em 0.4em;
    border-radius: 4px;
    font-weight: 600;
}

/* Bloc média à cadre plein, utilisé dans les colonnes latérales */
.media-frame img.media-frame__tall {
    aspect-ratio: 3 / 4;
}

/* Liste de liens dans une colonne latérale */
.side-list {
    display: grid;
    gap: 0.55rem;
}

.side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
    background-color: var(--surface-2);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.side-list a::after {
    content: '→';
    color: #c98f00;
    flex-shrink: 0;
}

.side-list a:hover {
    background-color: var(--navy);
    color: #ffffff;
}

/* Étapes numérotées en liste verticale (pages texte) */
.steps-list {
    display: grid;
    gap: 1rem;
    counter-reset: steps;
}

.steps-list__item {
    position: relative;
    padding-left: 3.2rem;
    counter-increment: steps;
}

.steps-list__item::before {
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    color: var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Bandeau titre de bloc dans une colonne latérale */
.aside-block {
    display: grid;
    gap: 0.8rem;
    padding: 1.3rem 1.25rem;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.aside-block__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
}

/* Défilement horizontal maîtrisé pour les tableaux larges sur mobile */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .spec-table {
    min-width: 420px;
}
