/*
Feuille de style principale du site public.

Role:
- definit les variables de design globales
- habille la navbar, les pages publiques, le footer et les composants partages

Comment modifier:
- couleurs globales dynamiques: preferer `SiteConfiguration`
- structure visuelle publique commune: ici
- styles tres specifiques au client ou au POS: modifier plutot leurs feuilles dediees
*/

/* =========================
   RESET & BASE
========================= */
:root {
    --bg-1: #f6f1e6;
    --bg-2: #f7fbfc;
    --surface: rgba(255, 252, 247, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(250, 247, 241, 0.74);
    --surface-dark: #15323d;
    --text-1: #18313a;
    --text-2: #516873;
    --text-3: #718892;
    --line: rgba(24, 75, 92, 0.12);
    --line-strong: rgba(24, 75, 92, 0.18);
    --brand: #0d7c86;
    --brand-rgb: 13, 124, 134;
    --brand-strong: #0a626c;
    --accent: #df6d2d;
    --accent-rgb: 223, 109, 45;
    --accent-strong: #c85c22;
    --accent-soft: rgba(223, 109, 45, 0.14);
    --leaf: #5a8e52;
    --leaf-rgb: 90, 142, 82;
    --leaf-soft: rgba(90, 142, 82, 0.16);
    --danger: #be493a;
    --shadow-sm: 0 14px 34px rgba(24, 61, 72, 0.08);
    --shadow-md: 0 22px 54px rgba(20, 57, 67, 0.12);
    --shadow-lg: 0 28px 70px rgba(16, 49, 58, 0.18);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --content-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body, "Manrope", "Segoe UI", sans-serif);
    background:
        radial-gradient(circle at top left, rgba(var(--brand-rgb), 0.18), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(var(--accent-rgb), 0.16), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(var(--leaf-rgb), 0.12), transparent 30%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, #eef4f2 100%);
    color: var(--text-1);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.85;
}

body::before {
    top: 110px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.20), rgba(var(--accent-rgb), 0));
}

body::after {
    bottom: 40px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.20), rgba(var(--brand-rgb), 0));
}

.main-container {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.main-container > * + * {
    margin-top: 26px;
}

/* Conteneur global */
.container {
    position: relative;
    max-width: 1040px;
    margin: 20px auto;
    padding: 34px 28px;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.94) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.container::before,
.section-actualites::before,
.section-offres::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 38%),
        radial-gradient(circle at top right, rgba(13, 124, 134, 0.10), transparent 28%);
}

.container > * {
    position: relative;
}

.section-actualites > *,
.section-offres > * {
    position: relative;
}

.section {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(250,247,241,0.92));
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.section:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 38px rgba(24, 61, 72, 0.12);
}

.section-title {
    font-family: var(--font-heading, "Fraunces", Georgia, serif);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(13, 124, 134, 0.4), rgba(223, 109, 45, 0.28), rgba(90, 142, 82, 0.28));
    border-radius: 999px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* Liens */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button,
input[type="submit"],
input[type="button"],
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(13, 124, 134, 0.14);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247, 243, 235, 0.96));
    color: var(--text-1);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(24, 61, 72, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247, 239, 231, 1));
    box-shadow: 0 18px 34px rgba(24, 61, 72, 0.14);
    border-color: rgba(223, 109, 45, 0.20);
    color: var(--brand);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn:active {
    transform: scale(0.98);
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(223, 109, 45, 0.12), 0 0 0 1px rgba(13, 124, 134, 0.16);
}


button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(13, 124, 134, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-1);
    font: inherit;
    box-shadow: 0 8px 18px rgba(24, 61, 72, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: var(--text-3);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(223, 109, 45, 0.22);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(223, 109, 45, 0.10), 0 0 0 1px rgba(13, 124, 134, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
}

h1, h2, h3, h4 {
    color: var(--text-1);
    font-family: var(--font-heading, "Fraunces", Georgia, serif);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
    line-height: 1.8;
    color: var(--text-2);
}

ul,
ol {
    padding-left: 1.2rem;
}

img {
    max-width: 100%;
}

strong {
    color: var(--text-1);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 32px);
    max-width: var(--content-width);
    margin: 10px auto 0;
    padding: 5px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 246, 0.92)),
        rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 124, 134, 0.12);
    position: sticky;
    top: 12px;
    z-index: 1000;
    border-radius: 20px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: visible;
}

.navbar::before {
    content: none;
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.nav-left {
    display: flex;
    align-items: center;
    margin-right: auto;
    gap: 12px;
}

.logo {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(24, 61, 72, 0.10));
}

/* =========================
   HAMBURGER ANIMÉ
========================= */
.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,244,238,0.96));
    border: 1px solid rgba(13, 124, 134, 0.12);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(24, 61, 72, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
    transform-origin: center;
    margin-left: auto;
    padding: 0;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(24, 61, 72, 0.14);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,239,231,1));
}

.nav-toggle:active {
    transform: scale(0.96);
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(223, 109, 45, 0.12), 0 12px 26px rgba(24, 61, 72, 0.12);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    left: 50%;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    border-radius: 999px;
    transform: translateX(-50%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: transform 0.28s cubic-bezier(.22,.9,.25,1), opacity 0.2s ease, top 0.28s cubic-bezier(.22,.9,.25,1), bottom 0.28s cubic-bezier(.22,.9,.25,1), background 0.2s ease;
}

.nav-toggle::selection {
    background: transparent;
}

.nav-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-toggle::after,
.nav-toggle::before,
.nav-toggle span {
    will-change: transform, opacity;
}

.nav-toggle::before {
    top: 14px;
}

.nav-toggle::after {
    bottom: 14px;
}

.nav-toggle.open span {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.7);
}

.nav-toggle.open::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1.05);
}

.nav-toggle.open::after {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.05);
}

/* =========================
   MENU DESKTOP
========================= */
.nav-right-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    padding-left: 18px;
    gap: 20px;
}

.nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 1;
    gap: 12px;
    min-width: 0;
}

.nav-panel-head {
    display: none;
}

.nav-panel-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.nav-panel-close {
    display: none;
}

.nav-right {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 2;
    gap: 10px;
    margin: 0;
    padding-left: 0;
}

.nav-right li {
    display: flex;
}

.nav-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    color: var(--text-1);
}

.nav-right a:hover {
    background: linear-gradient(90deg, rgba(13, 124, 134, 0.08), rgba(223, 109, 45, 0.08));
    color: var(--brand);
    transform: translateY(-1px);
}

.nav-right a.active,
.nav-right a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(223, 109, 45, 0.16), rgba(13, 124, 134, 0.14), rgba(90, 142, 82, 0.12));
    color: var(--text-1);
    box-shadow: inset 0 0 0 1px rgba(13, 124, 134, 0.10);
}

.nav-search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
}

.nav-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    isolation: isolate;
    width: clamp(340px, 38vw, 540px);
    min-width: 340px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(13, 124, 134, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.94)),
        rgba(248, 244, 237, 0.84);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 12px 28px rgba(24, 61, 72, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-search-shell::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(13, 124, 134, 0.05), rgba(223, 109, 45, 0.05), rgba(90, 142, 82, 0.04));
    opacity: 0.9;
}

.nav-search-form.search-open .nav-search-shell,
.nav-search-shell:focus-within {
    border-color: rgba(13, 124, 134, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 18px 36px rgba(24, 61, 72, 0.12);
    transform: translateY(-1px);
}

.nav-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1;
}

.nav-search-form input {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 4px 0 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-1);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.nav-search-form input::placeholder {
    color: rgba(97, 117, 128, 0.78);
}

.nav-search-form input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.nav-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(13, 124, 134, 1), rgba(10, 98, 108, 1));
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(13, 124, 134, 0.24);
}

.nav-search-submit span {
    font-size: 1.08rem;
    line-height: 1;
}

.nav-search-submit:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, rgba(18, 136, 147, 1), rgba(10, 98, 108, 1));
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 120;
}

.nav-search-dropdown-inner {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(13, 124, 134, 0.10);
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(24, 61, 72, 0.20);
}

.nav-search-suggestion,
.nav-search-all {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--text-1);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-search-suggestion strong,
.nav-search-all {
    font-weight: 800;
}

.nav-search-suggestion span,
.nav-search-empty span {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.5;
}

.nav-search-suggestion:hover,
.nav-search-suggestion.is-active,
.nav-search-all:hover,
.nav-search-all.is-active {
    background: #eef7f7;
    border-color: rgba(13, 124, 134, 0.10);
    transform: translateY(-1px);
}

.nav-search-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 4px;
    background: #f3f8f8;
    text-align: center;
}

.nav-search-empty {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fffaf4;
}

.scan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(223, 109, 45, 0.94), rgba(200, 92, 34, 0.98));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(223, 109, 45, 0.22);
}

.scan-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.scan-btn-copy {
    display: grid;
    gap: 2px;
    line-height: 1.2;
    text-align: left;
}

.scan-btn-copy strong,
.scan-btn-copy small {
    color: inherit;
}

.scan-btn-copy strong {
    font-size: 0.86rem;
    font-weight: 800;
}

.scan-btn-copy small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.88;
}

.scan-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(223, 109, 45, 0.28);
}

/* =========================
   OVERLAY
========================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
    z-index: 1258;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* =========================
   MOBILE MENU (SLIDE RIGHT)
========================= */
@media (max-width: 1024px) {

    .navbar {
        overflow: visible;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        gap: 18px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 0;
    }

    .nav-right-container {
        position: fixed;
        inset: 0 0 0 auto;
        transform: translateX(110%);
        width: min(88vw, 360px);
        height: 100dvh;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 244, 238, 0.98)),
            rgba(255, 255, 255, 0.98);
        padding: env(safe-area-inset-top, 0px) 18px calc(20px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(.22,.9,.25,1), box-shadow 0.25s ease;
        z-index: 1260;
        border-radius: 0 0 0 18px;
        box-shadow: -16px 0 36px rgba(24, 61, 72, 0.16);
        border-left: 1px solid rgba(13, 124, 134, 0.12);
        overflow-y: auto;
    }

    body > .nav-right-container {
        inset: 0 0 0 auto !important;
        margin: 0 !important;
        top: 0 !important;
        right: 0 !important;
    }

    .nav-right-container.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-right-container::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        border-radius: 0 0 0 18px;
        background: linear-gradient(180deg, rgba(13,124,134,0.05), rgba(223,109,45,0.06));
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .nav-right-container.open::after {
        opacity: 1;
    }

    .nav-panel-head {
        order: 0;
        position: absolute;
        top: env(safe-area-inset-top, 0px);
        right: 18px;
        left: 18px;
        z-index: 8;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0;
        padding-top: 10px;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
        pointer-events: none;
    }

    .nav-panel-eyebrow {
        display: none;
    }

    .nav-panel-close {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 50%;
        border: 1px solid rgba(13, 124, 134, 0.12);
        background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,239,231,0.98));
        color: var(--text-1);
        box-shadow: 0 12px 24px rgba(24, 61, 72, 0.10);
        pointer-events: auto;
    }

    .nav-panel-close span {
        font-size: 1.65rem;
        line-height: 1;
        transform: translateY(-1px);
    }

    .nav-panel-close:hover {
        color: var(--accent);
        border-color: rgba(223, 109, 45, 0.20);
    }

    .nav-right {
        order: 2;
        position: relative;
        z-index: 4;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .nav-right li {
        width: 100%;
        pointer-events: auto;
    }

    .nav-right a {
        display: block;
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 14px 16px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(243, 248, 248, 0.96));
        border: 1px solid rgba(13, 124, 134, 0.08);
        box-shadow: 0 10px 22px rgba(24, 61, 72, 0.06);
        opacity: 0;
        transform: translateX(14px);
        transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-right-container.open .nav-right a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-right-container.open .nav-right li:nth-child(1) a { transition-delay: 0.04s; }
    .nav-right-container.open .nav-right li:nth-child(2) a { transition-delay: 0.08s; }
    .nav-right-container.open .nav-right li:nth-child(3) a { transition-delay: 0.12s; }
    .nav-right-container.open .nav-right li:nth-child(4) a { transition-delay: 0.16s; }
    .nav-right-container.open .nav-right li:nth-child(5) a { transition-delay: 0.20s; }
    .nav-right-container.open .nav-right li:nth-child(6) a { transition-delay: 0.24s; }

    .nav-search-form {
        position: relative;
        width: 100%;
        z-index: 3;
    }

    .nav-tools {
        order: 1;
        position: relative;
        z-index: 20;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: calc(58px + env(safe-area-inset-top, 0px));
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .nav-right-container.open .nav-tools {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.04s;
    }

    .nav-search-form {
        overflow: visible;
        padding: 14px;
        border-top: none;
        background: linear-gradient(180deg, rgba(250, 245, 238, 0.88), rgba(245, 250, 249, 0.92));
        border: 1px solid rgba(13, 124, 134, 0.08);
        border-radius: 22px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 14px 28px rgba(24, 61, 72, 0.08);
    }

    .nav-search-form.search-open {
        z-index: 40;
    }

    .nav-search-shell,
    .nav-search-submit,
    .nav-search-form input {
        width: 100%;
    }

    .nav-search-shell {
        min-width: 0;
        width: 100%;
        border-radius: 22px;
        padding: 10px 10px 10px 14px;
        z-index: 4;
    }

    .nav-search-form input {
        min-width: 0;
        height: 44px;
        padding: 0 4px;
    }

    .nav-search-submit {
        width: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .nav-search-dropdown {
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        z-index: 60;
    }

    .nav-search-dropdown-inner {
        border-radius: 20px;
        padding: 10px;
        gap: 6px;
        max-height: min(52vh, 360px);
        overflow-y: auto;
    }

    .nav-search-suggestion,
    .nav-search-all {
        border-radius: 16px;
        padding: 12px 13px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-search-suggestion strong,
    .nav-search-all {
        font-size: 0.96rem;
        line-height: 1.35;
    }

    .nav-search-suggestion span,
    .nav-search-empty span {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .scan-btn {
        display: inline-flex;
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
        position: relative;
        z-index: 2;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar {
        width: calc(100% - 20px);
        padding: 10px 16px;
        top: 6px;
        border-radius: 16px;
    }

    .navbar::before {
        border-radius: 16px 16px 0 0;
    }
}

/* =========================
   ACTUALITÉS & OFFRES
   (CODE INCHANGÉ – OK)
========================= */
.section-actualites,
.section-offres {
    margin-top: 40px;
}

.section-actualites,
.section-offres {
    position: relative;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(247, 244, 238, 0.90));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.actualites-container,
.offres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}

.actualite-link {
    display: flex;
    flex: 1 1 310px;
    max-width: 360px;
}

.actualite-item,
.offre-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 238, 0.96));
    padding: 16px;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(24, 61, 72, 0.10);
    border: 1px solid rgba(13, 124, 134, 0.10);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.actualite-item {
    width: 100%;
}

.offre-item {
    flex: 1 1 310px;
    max-width: 360px;
}

.actualite-item h3,
.offre-item h3 {
    margin: 14px 0 10px;
    font-size: 1.28rem;
    color: var(--text-1);
}

.actualite-item p,
.offre-item p {
    font-size: 0.98rem;
    color: var(--text-2);
}

.actualite-item:hover,
.offre-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(24, 61, 72, 0.16);
    border-color: rgba(223, 109, 45, 0.18);
}

/* =========================
   FIX IMAGES ACTUALITÉS & OFFRES
   (sans toucher à la navbar)
========================= */

.actualite-item,
.offre-item {
    overflow: hidden;
}

.actualite-image,
.offre-image {
    position: relative;
    left: 50%;
    width: calc(100% + 32px);
    margin: -16px 0 0;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.offre-countdown {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(13, 124, 134, 0.08);
    border: 1px solid rgba(13, 124, 134, 0.10);
    color: var(--brand-strong);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.offre-countdown.expire {
    background: rgba(190, 73, 58, 0.10);
    border-color: rgba(190, 73, 58, 0.14);
    color: var(--danger);
}

.offre-highlight {
    border-color: rgba(223, 109, 45, 0.18);
    box-shadow: 0 18px 40px rgba(223, 109, 45, 0.12), 0 12px 28px rgba(24, 61, 72, 0.10);
}

/* =========================
   FIX IMAGES PAGE DÉTAIL
========================= */

.detail-images-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.section-divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, transparent, rgba(13,124,134,0.18), rgba(223,109,45,0.18), transparent);
}

.image-wrapper {
    flex: 1 1 320px;
    max-width: 500px;      /* empêche les images trop larges */
    overflow: hidden;      /* sécurité anti débordement */
}

.depannage-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(24, 61, 72, 0.14);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(13, 124, 134, 0.10);
}





/* =========================
   LIGHTBOX / ZOOM / CAROUSEL
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.45);
    animation: zoomIn 0.25s ease;
    background: rgba(255,255,255,0.04);
}

/* Boutons */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.05);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    font-size: 42px;
    cursor: pointer;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Animation */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 36px;
    }

    .lightbox-close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }
}



/* =========================
   CGU MODAL
========================= */

.cgu-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

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

.cgu-modal:target {
    display: flex;
}

.cgu-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 244, 238, 0.95));
    max-width: 800px;
    max-height: 80vh;
    padding: 30px;
    border-radius: 26px;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.cgu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, rgba(13,124,134,0.08), rgba(223,109,45,0.08));
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    color: var(--text-1);
}

.cgu-close:hover {
    background: linear-gradient(180deg, rgba(13,124,134,0.14), rgba(223,109,45,0.14));
    transform: scale(1.05);
}

body.cgu-open {
    overflow: hidden;
}

.cgu-text {
    text-align: left;
    color: var(--text-2);
    line-height: 1.7;
}

.cgu-page {
    display: grid;
    gap: 22px;
}

.cgu-page-header {
    display: grid;
    gap: 10px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,237,0.94));
    border: 1px solid rgba(13, 124, 134, 0.10);
    box-shadow: var(--shadow-sm);
}

.cgu-page-header h1,
.cgu-page-header p {
    margin: 0;
}

.cgu-page-card {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,238,0.94));
    border: 1px solid rgba(13, 124, 134, 0.10);
    box-shadow: var(--shadow-sm);
}

.spacing-sm { margin-top: 10px; }
.spacing-md { margin-top: 20px; }
.spacing-lg { margin-top: 40px; }

.text-muted {
    color: var(--text-3);
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,238,0.94));
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 20px 40px rgba(24, 61, 72, 0.14);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-1);
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-3);
    margin-bottom: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(13,124,134,0.08), rgba(223,109,45,0.08));
    border: 1px solid rgba(13,124,134,0.10);
    color: var(--text-1);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.offre-item > .badge {
    align-self: center;
    margin-top: 12px;
    max-width: 100%;
}

.badge.badge-danger {
    background: linear-gradient(180deg, rgba(255,42,42,0.10), rgba(255,42,42,0.06));
    border-color: rgba(255,42,42,0.14);
    color: var(--danger);
}

.badge.badge-success {
    background: linear-gradient(180deg, rgba(67,160,71,0.12), rgba(67,160,71,0.07));
    border-color: rgba(67,160,71,0.14);
    color: var(--leaf);
}

.badge.badge-info {
    background: linear-gradient(180deg, rgba(22,127,168,0.12), rgba(22,127,168,0.07));
    border-color: rgba(22,127,168,0.14);
    color: var(--brand-strong);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

.search-page {
    display: grid;
    gap: 24px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,243,237,0.92));
    border: 1px solid rgba(13, 124, 134, 0.10);
    box-shadow: var(--shadow-sm);
}

.search-form input {
    min-height: 52px;
}

.search-form button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
}

.search-title {
    margin: 0;
}

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

.depannage-item {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,238,0.94));
    border: 1px solid rgba(13, 124, 134, 0.10);
    box-shadow: var(--shadow-sm);
}

.depannage-item h3 {
    margin: 0;
}

.depannage-item p {
    margin: 0;
}

.depannage-item .depannage-image {
    margin-top: 4px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(13, 124, 134, 1), rgba(10, 98, 108, 1));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(13, 124, 134, 0.18);
}

.btn-detail:hover {
    color: #fff;
    transform: translateY(-1px);
}

.no-result,
.no-query {
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,243,237,0.92));
    border: 1px solid rgba(13, 124, 134, 0.10);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

th {
    background: linear-gradient(180deg, rgba(13,124,134,0.09), rgba(223,109,45,0.07));
    color: var(--text-1);
    font-weight: 600;
}

tr:hover td {
    background: rgba(13,124,134,0.04);
}

.footer,
.site-footer {
    margin-top: 60px;
    padding: 30px 22px 40px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.64), rgba(247, 243, 237, 0.92)),
        rgba(255,255,255,0.68);
    color: var(--text-2);
    text-align: center;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(24, 61, 72, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer p,
.site-footer p {
    color: var(--text-2);
}

.footer a,
.site-footer a {
    color: var(--brand);
    font-weight: 600;
}

.footer-cgu-trigger {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(13, 124, 134, 0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(24, 61, 72, 0.08);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.footer-cgu-trigger:hover {
    color: var(--accent);
    border-color: rgba(223, 109, 45, 0.20);
}

.footer a:hover,
.site-footer a:hover {
    color: var(--accent);
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    width: min(420px, calc(100vw - 24px));
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(13, 124, 134, 0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,243,237,0.94)),
        rgba(255,255,255,0.92);
    box-shadow: 0 26px 52px rgba(24, 61, 72, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.cookie-consent[hidden] {
    display: none !important;
}

body.menu-open .cookie-consent {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-consent::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.4), transparent 42%),
        radial-gradient(circle at top right, rgba(13, 124, 134, 0.10), transparent 28%);
}

.cookie-consent > * {
    position: relative;
}

.cookie-consent-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cookie-consent-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cookie-consent-copy p:last-child {
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
}

.cookie-consent-btn-primary {
    border: none;
    background: linear-gradient(180deg, rgba(13, 124, 134, 1), rgba(10, 98, 108, 1));
    color: #fff;
    box-shadow: 0 14px 26px rgba(13, 124, 134, 0.18);
}

.cookie-consent-btn-primary:hover {
    color: #fff;
}

.cookie-consent-btn-secondary {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.92);
    color: var(--text-1);
    box-shadow: 0 10px 22px rgba(24, 61, 72, 0.08);
}

.detail-title {
    margin-bottom: 12px;
}

.detail-meta {
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(13, 124, 134, 0.06);
    border: 1px solid rgba(13, 124, 134, 0.10);
    color: var(--text-2);
}

.detail-section {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,238,0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    color: var(--text-1);
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(24, 61, 72, 0.08);
}

.btn-secondary:hover {
    color: var(--brand);
    border-color: rgba(223, 109, 45, 0.20);
}

.container > h1:first-child,
.main-container > h1:first-child {
    margin-bottom: 14px;
}

.container > p + p,
.main-container > p + p {
    margin-top: 12px;
}

.contact-page {
    display: grid;
    gap: 26px;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: start;
}

.contact-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-intro {
    max-width: 62ch;
    margin: 14px 0 0;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.contact-detail-card,
.contact-description,
.contact-map-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,238,0.92));
    box-shadow: var(--shadow-md);
}

.contact-detail-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
}

.contact-detail-card-wide {
    grid-column: 1 / -1;
}

.contact-detail-label {
    color: var(--text-3);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-detail-value {
    margin: 0;
    color: var(--text-1);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-description {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
}

.contact-hours-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,238,0.92));
    box-shadow: var(--shadow-md);
}

.contact-hours-head p {
    margin: 8px 0 0;
}

.contact-hours-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.contact-hours-row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 124, 134, 0.08);
}

.contact-hours-day {
    color: var(--text-1);
    font-weight: 800;
}

.contact-hours-value {
    color: var(--text-2);
    font-weight: 600;
    line-height: 1.45;
}

.contact-hours-empty {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(247, 244, 238, 0.72);
    border: 1px dashed rgba(13, 124, 134, 0.16);
}

.contact-empty-state {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(223, 109, 45, 0.14);
    background: rgba(223, 109, 45, 0.08);
}

.contact-map-card {
    padding: 18px;
    border-radius: 28px;
}

.contact-map {
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(13, 124, 134, 0.10);
    background:
        radial-gradient(circle at top left, rgba(13, 124, 134, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(243, 248, 248, 0.98), rgba(250, 245, 238, 0.96));
}

.contact-map-status {
    margin: 14px 0 0;
    font-size: 0.92rem;
    color: var(--text-3);
}

.contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(13, 124, 134, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand);
    font-weight: 800;
}

.contact-map-card .leaflet-control-zoom a {
    color: var(--text-1);
    background: rgba(255,255,255,0.94);
}

.contact-map-card .leaflet-popup-content-wrapper,
.contact-map-card .leaflet-popup-tip {
    background: rgba(255,255,255,0.98);
}

.contact-map-card .leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.5;
}

.error-page {
    display: grid;
    gap: 28px;
}

.error-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.error-copy,
.error-panel,
.error-link-card {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,238,0.92));
    box-shadow: var(--shadow-sm);
}

.error-copy::before,
.error-panel::before,
.error-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.44), transparent 40%),
        radial-gradient(circle at top right, rgba(13, 124, 134, 0.10), transparent 28%);
}

.error-copy > *,
.error-panel > *,
.error-link-card > * {
    position: relative;
}

.error-eyebrow,
.error-link-kicker {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.error-title {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.error-lead {
    max-width: 58ch;
    font-size: 1.02rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.error-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(13, 124, 134, 1), rgba(10, 98, 108, 1));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(13, 124, 134, 0.22);
}

.error-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.error-panel {
    display: grid;
    align-content: center;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(13, 124, 134, 0.08), rgba(223, 109, 45, 0.08)),
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,244,238,0.92));
}

.error-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,239,231,0.96));
    border: 1px solid rgba(13, 124, 134, 0.12);
    color: var(--accent);
    font-family: var(--font-heading, "Fraunces", Georgia, serif);
    font-size: 2.7rem;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(24, 61, 72, 0.10);
}

.error-panel-copy {
    margin: 0;
    color: var(--text-2);
    font-weight: 700;
}

.error-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.error-link-card {
    display: grid;
    gap: 10px;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.error-link-card strong {
    font-size: 1.08rem;
    line-height: 1.35;
}

.error-link-card span:last-child {
    color: var(--text-2);
    line-height: 1.65;
}

.error-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(24, 61, 72, 0.12);
    border-color: var(--line-strong);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.35rem;
    }

    th,
    td {
        padding: 10px 12px;
    }

    .card {
        padding: 16px;
    }

    .nav-search-form {
        border-radius: 22px;
    }

    .scan-btn {
        width: 100%;
    }

    .actualite-item,
    .offre-item {
        max-width: none;
    }

    .actualite-link {
        max-width: none;
    }

    .actualite-image,
    .offre-image {
        height: 200px;
    }

    .contact-hero,
    .contact-details-grid,
    .error-hero,
    .error-link-grid {
        grid-template-columns: 1fr;
    }

    .contact-hours-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .error-copy,
    .error-panel,
    .error-link-card {
        padding: 18px;
        border-radius: 20px;
    }

    .contact-map {
        min-height: 340px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 18px;
        border-radius: 22px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    .container {
        margin: 12px auto;
        padding: 22px 16px;
        border-radius: 22px;
    }

    .section {
        padding: 16px;
        border-radius: 16px;
    }

    .section-actualites,
    .section-offres {
        padding: 16px;
        border-radius: 22px;
    }

    .main-container {
        padding: 20px 12px 40px;
    }

    .footer,
    .site-footer {
        margin-top: 36px;
        padding: 24px 16px 32px;
    }

    .footer-cgu-trigger {
        width: min(100%, 360px);
        min-height: 52px;
        padding: 0 20px;
        position: relative;
        z-index: 2;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .search-form {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 20px;
    }

    .search-form button,
    .btn-detail {
        width: 100%;
    }

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

    .cookie-consent {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: min(46vh, 320px);
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 22px;
        padding: 16px;
    }

    .cookie-consent-visible .footer,
    .cookie-consent-visible .site-footer {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}
