/*!
 * Stop Guêpes 57-67 - design system (refonte 2026)
 * Charte conservée : #cb1114 (rouge), #29235c (bleu nuit), Merriweather + Open Sans
 */

:root {
    --sg-primary:        #cb1114;
    --sg-primary-dark:   #9c0d0f;
    --sg-primary-light:  #e64545;
    --sg-secondary:      #29235c;
    --sg-secondary-dark: #1d1842;
    --sg-secondary-light:#3a3477;
    --sg-accent:         #c99517;
    --sg-text:           #1f2933;
    --sg-text-muted:     #5b6b7b;
    --sg-bg:             #ffffff;
    --sg-bg-soft:        #f5f7fa;
    --sg-border:         #e5e9f0;

    /* Loupe fa-search-plus (PERF-01) : SVG en data URI, plus de police d'icônes. */
    --sg-icone-loupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1664 1664'%3E%3Cpath fill='%23000' d='M1024 672v64q0 13-9.5 22.5T992 768H768v224q0 13-9.5 22.5T736 1024h-64q-13 0-22.5-9.5T640 992V768H416q-13 0-22.5-9.5T384 736v-64q0-13 9.5-22.5T416 640h224V416q0-13 9.5-22.5T672 384h64q13 0 22.5 9.5T768 416v224h224q13 0 22.5 9.5t9.5 22.5m128 32q0-185-131.5-316.5T704 256T387.5 387.5T256 704t131.5 316.5T704 1152t316.5-131.5T1152 704m512 832q0 53-37.5 90.5T1536 1664q-54 0-90-38l-343-342q-179 124-399 124q-143 0-273.5-55.5t-225-150t-150-225T0 704t55.5-273.5t150-225t225-150T704 0t273.5 55.5t225 150t150 225T1408 704q0 220-124 399l343 343q37 37 37 90'/%3E%3C/svg%3E");
    --sg-icone-loupe-blanche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1664 1664'%3E%3Cpath fill='%23fff' d='M1024 672v64q0 13-9.5 22.5T992 768H768v224q0 13-9.5 22.5T736 1024h-64q-13 0-22.5-9.5T640 992V768H416q-13 0-22.5-9.5T384 736v-64q0-13 9.5-22.5T416 640h224V416q0-13 9.5-22.5T672 384h64q13 0 22.5 9.5T768 416v224h224q13 0 22.5 9.5t9.5 22.5m128 32q0-185-131.5-316.5T704 256T387.5 387.5T256 704t131.5 316.5T704 1152t316.5-131.5T1152 704m512 832q0 53-37.5 90.5T1536 1664q-54 0-90-38l-343-342q-179 124-399 124q-143 0-273.5-55.5t-225-150t-150-225T0 704t55.5-273.5t150-225t225-150T704 0t273.5 55.5t225 150t150 225T1408 704q0 220-124 399l343 343q37 37 37 90'/%3E%3C/svg%3E");

    --sg-font-display:   'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --sg-font-body:      'Merriweather', 'Georgia', serif;

    --sg-shadow-sm:      0 1px 2px rgba(20, 20, 40, 0.06);
    --sg-shadow:         0 4px 14px rgba(20, 20, 40, 0.08);
    --sg-shadow-lg:      0 18px 40px rgba(20, 20, 40, 0.14);
    --sg-radius:         14px;
    --sg-radius-sm:      8px;
    --sg-transition:     all 0.25s cubic-bezier(.4,0,.2,1);
}

/* === Reset / base ============================================== */
html, body { width: 100%; }
body {
    font-family: var(--sg-font-body);
    color: var(--sg-text);
    background: var(--sg-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* === Container global plus large (un peu moins qu'un full width) ===
 * Bootstrap fixe le container à 1320px en xxl. On le pousse à 1600px
 * via override des breakpoints, en gardant des gouttières confortables. */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: min(94vw, 1600px) !important;
}

h1, h2, h3, h4, h5, h6, .sg-display {
    font-family: var(--sg-font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1rem; }
body { font-size: 1.0625rem; }
.section-lead { font-size: 1.18rem !important; }

a {
    transition: var(--sg-transition);
    color: var(--sg-primary);
    text-decoration: none;
}
a:hover { color: var(--sg-primary-dark); }

/* A11Y-05 : un lien du texte courant ne se repère pas à la seule couleur.
   Seuls les liens sans classe sont visés : boutons, liens de navigation,
   cartes et autres composants gardent leur propre style. */
:where(p, li) a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Sélecteur qualifié `section hr` (spécificité 0,0,2) pour passer devant le
   reboot Bootstrap `hr` (0,0,1) injecté au runtime après creative.css, qui
   écrasait sinon le centrage (margin auto) et ajoutait un liseré border-top. */
hr,
section hr {
    border: 0;
    border-top: 0;
    height: 3px;
    background: var(--sg-primary);
    max-width: 60px;
    margin: 1.25rem auto;
    border-radius: 3px;
    opacity: 1;
}
section hr.light     { background: #fff; }
section hr.secondary { background: var(--sg-secondary); }
section hr.primary   { background: var(--sg-primary); }

/* === Backgrounds utilitaires ==================================== */
.bg-primary   { background-color: var(--sg-primary)   !important; color: #fff; }
.bg-secondary { background-color: var(--sg-secondary) !important; color: #fff; }
.bg-dark      { background-color: #15131f             !important; color: #fff; }
.bg-soft      { background-color: var(--sg-bg-soft)   !important; }

.bg-primary  h2, .bg-primary p,
.bg-secondary h2, .bg-secondary p { color: #fff; }

/* === Reliefs des sections sombres (bg-secondary) ================
   Aplat #29235c remplacé par 3 traitements pour donner de la profondeur.
   Sélecteur par #id (1,0,0) + !important pour battre `.bg-secondary`
   `background-color` qui est lui-même en !important. */

/* Haut - À propos : dégradé diagonal statique + halo accent doré. */
section#about {
    background:
        radial-gradient(120% 120% at 80% 0%, rgba(201, 149, 23, 0.10), transparent 50%),
        linear-gradient(135deg, #29235c 0%, #1d1842 100%) !important;
}

/* Milieu - Qui suis-je : dégradé animé en dérive lente (entre statique
   et parallaxe). Pas couplé au scroll, donc aucun jank ni bug iOS. */
section#qui-suis-je {
    background:
        radial-gradient(100% 120% at 50% 0%, rgba(201, 149, 23, 0.08), transparent 55%),
        linear-gradient(135deg, #1d1842, #29235c, #3a3477, #1d1842) !important;
    background-size: 100% 100%, 300% 300%;
    background-position: 0% 0%, 0% 50%;
    animation: sg-bg-drift 24s ease-in-out infinite;
}

@keyframes sg-bg-drift {
    0%, 100% { background-position: 0% 0%, 0% 50%; }
    50%      { background-position: 0% 0%, 100% 50%; }
}

/* Bas - Nos produits : parallaxe par background-attachment: fixed. */
section#produits {
    background:
        linear-gradient(135deg, #29235c 0%, #1d1842 100%) fixed !important;
}

/* Garde-fous : pas de mouvement si l'utilisateur le refuse, et pas de
   `fixed` sur mobile (cassé sur iOS Safari, scroll qui rame). */
@media (prefers-reduced-motion: reduce) {
    section#qui-suis-je { animation: none; }
}

/* A11Y-06 : mouvement réduit demandé, plus aucune animation ni transition
   sur le site (pulsation du badge, dérive des fonds, survols, carrousel). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
@media (prefers-reduced-motion: reduce), (max-width: 768px) {
    section#produits { background-attachment: scroll !important; }
}

.text-faded  { color: rgba(255, 255, 255, 0.82); }
.text-primary { color: var(--sg-primary) !important; }

/* === Sections =================================================== */
section { padding: 6rem 0; position: relative; }

@media (max-width: 768px) {
    section { padding: 3.5rem 0; }
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--sg-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sg-primary);
    margin-bottom: 0.75rem;
}

.section-heading {
    margin: 0 0 0.5rem;
    /* min() : « COMMENTAIRES » tient dans un écran de 320 px. */
    font-size: min(2.25rem, 10vw);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .section-heading { font-size: 2.6rem; }
}

.section-lead {
    color: var(--sg-text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.bg-primary .section-eyebrow,
.bg-secondary .section-eyebrow { color: var(--sg-accent); }

.bg-primary .section-lead,
.bg-secondary .section-lead { color: rgba(255, 255, 255, 0.85); }

/* === Navbar ===================================================== */
#mainNav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    transition: var(--sg-transition);
    padding: 0.65rem 0;
}

#mainNav.affix {
    box-shadow: var(--sg-shadow);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.35rem 0;
}

#mainNav .navbar-brand {
    color: var(--sg-primary);
    font-family: var(--sg-font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.2rem 0;
}

#mainNav .navbar-brand img {
    height: 48px;
    width: auto;
    transition: var(--sg-transition);
}

#mainNav.affix .navbar-brand img { height: 40px; }

/* A11Y-12 : le logo est décoratif (alt=""), le nom porte le lien. Sous md il
   est masqué à l'écran mais reste lu par les aides techniques. */
@media (max-width: 767.98px) {
    #mainNav .navbar-brand .brand-name {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
}

#mainNav .nav-link {
    color: var(--sg-text);
    text-transform: uppercase;
    font-family: var(--sg-font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.65rem 0.95rem !important;
    position: relative;
}

#mainNav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--sg-primary);
    transition: var(--sg-transition);
    transform: translateX(-50%);
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus,
#mainNav .nav-link.active {
    color: var(--sg-primary);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: calc(100% - 1.9rem); }

/* Le CTA téléphone ne suit pas la logique scrollspy */
#mainNav .navbar-cta.active { color: #fff !important; }
#mainNav .navbar-cta.active::after { display: none; }

#mainNav .navbar-cta {
    background: var(--sg-primary);
    color: #fff !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 999px;
    margin-left: 0.5rem;
}
#mainNav .navbar-cta::after { display: none; }
#mainNav .navbar-cta:hover { background: var(--sg-primary-dark); }

/* === Hero ======================================================= */
/* Image de fond : les URL viennent du template (variables --hero-image*).
 * Sous 768 px, un recadrage portrait léger ; AVIF quand le navigateur sait
 * choisir dans un image-set() typé, WebP sinon. */
header.masthead {
    --hero-bg: var(--hero-image, none);
    position: relative;
    width: 100%;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background:
        linear-gradient(125deg, rgba(15, 12, 40, 0.85) 35%, rgba(203, 17, 20, 0.55) 100%),
        var(--hero-bg) center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    header.masthead { --hero-bg: var(--hero-image-mobile, var(--hero-image, none)); }
}

/* Test sur une URL data: : AssetMapper ne cherche pas à la résoudre, alors
 * qu'un nom de fichier fictif fait échouer le rendu en dev (mode strict). */
@supports (background-image: image-set(url("data:,") type("image/avif"))) {
    header.masthead { --hero-bg: var(--hero-image-avif, var(--hero-image, none)); }

    @media (max-width: 767.98px) {
        header.masthead { --hero-bg: var(--hero-image-mobile-avif, var(--hero-image-mobile, var(--hero-image, none))); }
    }
}

header.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(600px circle at 90% 80%, rgba(201, 149, 23, 0.18), transparent 70%);
    pointer-events: none;
}

header.masthead .container {
    position: relative;
    z-index: 2;
    /* la largeur est gouvernée par l'override global .container (1600px) */
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-family: var(--sg-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-eyebrow .dot {
    width: 8px; height: 8px;
    background: #1ec47a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 196, 122, 0.25);
    animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(30, 196, 122, 0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(30, 196, 122, 0); }
}

/* SEO-03 : la marque garde son rendu d'accroche, le h1 porte métier et zone. */
.hero-brand {
    color: #fff;
    font-family: var(--sg-font-display);
    font-size: 2.7rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 0.75rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px)  { .hero-brand { font-size: 3.4rem; } }
@media (min-width: 1200px) { .hero-brand { font-size: 3.8rem; } }
@media (min-width: 1400px) { .hero-brand { font-size: 4.2rem; } }

#homeHeading {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    max-width: 775px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px)  { #homeHeading { font-size: 1.75rem; } }
@media (min-width: 1200px) { #homeHeading { font-size: 2rem; } }

/* Logo Hero - pose le ton, animation douce */
.hero-logo {
    width: 100%;
    max-width: 550px; /* +25 % (440 → 550) */
    height: auto;
    filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.45));
    animation: hero-logo-float 6s ease-in-out infinite;
}

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

.hero-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 775px; /* +25 % */
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-cta-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: center;
}

/* CTA Hero unifiés : même hauteur, même padding, même radius, même police */
.hero-cta-group .btn,
.hero-cta-group .hero-phone {
    height: 60px;
    padding: 0 1.65rem;
    border-radius: 999px;
    font-family: var(--sg-font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    text-decoration: none;
    transition: var(--sg-transition);
    border: 0;
}

.hero-phone {
    background: var(--sg-primary);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(203, 17, 20, 0.45);
}

.hero-phone:hover {
    background: var(--sg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(203, 17, 20, 0.55);
}

.hero-phone .ico {
    font-size: 1.2rem;
}

.hero-cta-group .btn-outline-light {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(6px);
}

.hero-cta-group .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-label {
    font-family: var(--sg-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    flex-basis: 100%;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-trust-label::after {
    /* Loupe fa-search-plus en SVG (PERF-01 : plus de police Font Awesome). */
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    background: var(--sg-accent);
    -webkit-mask: var(--sg-icone-loupe) center / contain no-repeat;
    mask: var(--sg-icone-loupe) center / contain no-repeat;
    margin-left: 0.3rem;
}

.hero-trust a {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: var(--sg-transition);
    cursor: zoom-in;
    border: 2px solid transparent;
}

.hero-trust a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: var(--sg-accent);
}

.hero-trust a::after {
    /* Loupe fa-search-plus blanche sur pastille (PERF-01). */
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: var(--sg-primary) var(--sg-icone-loupe-blanche) center / 0.78rem no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    opacity: 0;
    transform: scale(0.6);
    transition: var(--sg-transition);
}

.hero-trust a:hover::after {
    opacity: 1;
    transform: scale(1);
}

.hero-trust img {
    height: 110px;
    width: auto;
    display: block;
    transition: var(--sg-transition);
}

@media (max-width: 991px) {
    .hero-trust img { height: 90px; }
}

@media (max-width: 575px) {
    .hero-trust { gap: 1rem; }
    .hero-trust a { padding: 10px 14px; border-radius: 10px; }
    .hero-trust img { height: 70px; }
}

/* === Buttons ==================================================== */
.btn {
    font-family: var(--sg-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    transition: var(--sg-transition);
    border: none;
}

.btn-primary,
.btn-sg {
    background: var(--sg-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(203, 17, 20, 0.35);
}

.btn-primary:hover, .btn-primary:focus,
.btn-sg:hover, .btn-sg:focus {
    background: var(--sg-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(203, 17, 20, 0.45);
}

.btn-light, .btn-default {
    background: #fff;
    color: var(--sg-secondary);
    box-shadow: var(--sg-shadow);
}

.btn-light:hover {
    background: #f0f0f0;
    color: var(--sg-secondary);
    transform: translateY(-2px);
}

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

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

/* === Cards "service" ============================================ */
.service-card {
    background: #fff;
    border-radius: var(--sg-radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--sg-shadow-sm);
    height: 100%;
    border: 1px solid var(--sg-border);
    transition: var(--sg-transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sg-primary), var(--sg-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

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

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

.service-card .icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(203, 17, 20, 0.08), rgba(41, 35, 92, 0.08));
    color: var(--sg-primary);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
    color: var(--sg-secondary);
}

.service-card p {
    color: var(--sg-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* === Gallery (vignettes) ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 2.5rem;
}

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

.portfolio-box {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--sg-radius);
    aspect-ratio: 4 / 3;
}

.portfolio-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-box::after {
    content: "🔍";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(15, 12, 40, 0.7) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 1.3rem;
    padding-bottom: 0.85rem;
    opacity: 0;
    transition: var(--sg-transition);
}

.portfolio-box:hover img { transform: scale(1.08); }
.portfolio-box:hover::after { opacity: 1; }

/* === Profil "Qui suis-je" ======================================== */
.technician-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sg-radius);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.technician-photo {
    width: 100%;
    max-width: 380px;
    /* height: auto laisse aspect-ratio: 1 calculer un carré ; sans ça,
       l'attribut HTML height impose une hauteur et rend la photo ovale. */
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--sg-shadow-lg);
}

.technician-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-family: var(--sg-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.technician-name {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 0.5rem;
}

.technician-role {
    color: var(--sg-accent);
    font-family: var(--sg-font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

/* === Contact ===================================================== */
.contact-card {
    background: #fff;
    border-radius: var(--sg-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow-sm);
    transition: var(--sg-transition);
    text-decoration: none;
    display: block;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sg-shadow-lg);
    border-color: var(--sg-primary);
    color: inherit;
}

.contact-card .icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sg-bg-soft);
    color: var(--sg-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

.contact-card .label {
    color: var(--sg-text-muted);
    font-size: 0.8rem;
    font-family: var(--sg-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    display: block;
}

.contact-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sg-secondary);
    display: block;
}

/* === Rayon d'intervention === */
.rayon-link {
    position: relative;
    display: inline-block;
    border-radius: var(--sg-radius);
    overflow: hidden;
    box-shadow: var(--sg-shadow-lg);
    transition: var(--sg-transition);
    cursor: zoom-in;
    max-width: 100%;
    border: 4px solid #fff;
    background: #fff;
}

.rayon-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(20, 20, 40, 0.22);
}

.rayon-img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
}

@media (max-width: 768px) { .rayon-img { max-width: 100%; } }

.rayon-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px; height: 44px;
    background: var(--sg-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(203, 17, 20, 0.5);
    opacity: 0;
    transform: scale(0.7);
    transition: var(--sg-transition);
}

.rayon-link:hover .rayon-zoom {
    opacity: 1;
    transform: scale(1);
}

/* === Cards Produits (bg-secondary) ============================== */
.product-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sg-radius);
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(8px);
    transition: var(--sg-transition);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.product-card h3 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-card h3 .ico {
    /* Pastille de 40 px : le padding ramène le pictogramme à ~1.1rem. */
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 11px;
    width: 40px; height: 40px;
    background: var(--sg-primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.product-card p { color: rgba(255, 255, 255, 0.82); margin: 0; }

/* === Lightbox (A11Y-02) ========================================
   <dialog> modal natif : le fond sombre est le ::backdrop, le dialogue
   occupe l'écran pour centrer l'image et recevoir le clic de fermeture. */
dialog.sg-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}
dialog.sg-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sg-lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.sg-lightbox img {
    max-width: 92%;
    max-height: 92%;
    box-shadow: 0 0 20px #000;
}
.sg-lightbox .sg-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.sg-lightbox .sg-lightbox-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
}

/* === Carousel arrière-plan flou ================================= */
/* Le fond flou déborde de 30 px (inset négatif) pour masquer le liseré
 * transparent du blur : on le coupe à la largeur de la section, sinon il
 * élargit la page (420 px pour 390). overflow-x: clip garde le débord
 * vertical tel quel et ne crée pas de conteneur de défilement. */
#gallery { position: relative; min-height: 460px; padding: 4rem 0 !important; overflow-x: clip; }

#carouselSGBackground {
    z-index: -1;
    position: absolute;
    inset: -30px;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.55);
    transition: background-image 0.6s linear;
}

#carouselSG { max-width: 900px; margin: 0 auto; position: relative; }

/* Bouton Pause/Lecture du carrousel (A11Y-06), cible de 44 px. */
#carouselSG .carousel-pause {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--sg-font-display);
    font-size: 0.9rem;
    font-weight: 700;
}
#carouselSG .carousel-pause:hover { background: rgba(0, 0, 0, 0.85); }

#carouselSG .carousel-item img {
    max-height: 460px;
    width: auto;
    object-fit: contain;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow-lg);
}

#carouselSG .carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--sg-radius);
    padding: 0.5rem 1.25rem;
    bottom: 1.5rem;
}

/* === Section "Vos commentaires" ================================= */
#notez-nous .review-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sg-radius);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

#notez-nous .form-control {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
/* A11Y-03 : anneau blanc franc (environ 5,4:1 sur la carte rouge) au lieu
   d'un halo blanc à 18 % (1,27:1). */
#notez-nous .form-control:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
}

.average-display {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sg-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.average-big {
    font-family: var(--sg-font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.average-big small {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 400;
}

.average-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
    color: var(--sg-accent);
    font-size: 1.8rem;
}

.average-count {
    /* A11Y-09 : 90 % de blanc, 4,5:1 sur la carte posée sur le rouge (3,54:1 à 75 %). */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* === Tarifs ===================================================== */
.pricing-table {
    background: #fff;
    border-radius: var(--sg-radius);
    overflow: hidden;
    box-shadow: var(--sg-shadow);
    border: 1px solid var(--sg-border);
}

.pricing-table table { margin: 0; }

.pricing-table th,
.pricing-table td {
    padding: 1.1rem 1.25rem;
    vertical-align: middle;
}

.pricing-table tr {
    border-bottom: 1px solid var(--sg-border);
    transition: var(--sg-transition);
}

.pricing-table tr:last-child { border: 0; }
.pricing-table tr:hover { background: var(--sg-bg-soft); }

.pricing-table .price-tag {
    background: var(--sg-primary);
    color: #fff;
    font-family: var(--sg-font-display);
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.pricing-table .price-tag.muted {
    background: var(--sg-secondary);
}

/* === Footer ===================================================== */
.site-footer {
    background: #0e0c1f;
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
}
.site-footer a:hover { color: var(--sg-primary-light); }

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    font-family: var(--sg-font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.site-footer .footer-brand img {
    height: 56px;
    width: auto;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer .legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.site-footer .legal > :first-child { text-align: left; }
.site-footer .legal > :last-child  { text-align: right; }

.site-footer .legal .diamontis {
    text-align: center;
    font-size: 0.85rem;
}

.site-footer .legal .diamontis a {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.site-footer .legal .diamontis a:hover {
    color: var(--sg-primary-light);
    border-bottom-color: var(--sg-primary-light);
}

@media (max-width: 768px) {
    .site-footer .legal {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer .legal > :first-child,
    .site-footer .legal > :last-child {
        text-align: center;
    }
}

/* === Modale Bootstrap (avis) ==================================== */
.modal-content {
    border: none;
    border-radius: var(--sg-radius);
    overflow: hidden;
}

.modal-header {
    background: var(--sg-secondary);
    color: #fff;
    border-bottom: 0;
}

.modal-header .btn-close { filter: invert(1); }

.modal .review-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--sg-border);
}

.modal .review-item:last-child { border: 0; }

.modal .review-stars {
    color: var(--sg-accent);
    font-size: 1rem;
    letter-spacing: 1px;
}

.modal .review-meta {
    font-size: 0.8rem;
    color: var(--sg-text-muted);
    margin-left: 0.5rem;
}

.modal .review-comment {
    font-size: 0.95rem;
    color: var(--sg-text);
    margin: 0.35rem 0 0;
}

/* === Scroll reveal initial state ================================ */
.sr-icons, .sr-button, .sr-contact { opacity: 1; }

/* === Section polyglotte (Français / Deutsch) ==================== */
.polyglotte-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--sg-bg-soft) 100%);
    padding: 5rem 0;
}

.polyglotte-de {
    display: block;
    font-size: 1.1rem;
    color: var(--sg-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.4rem;
    font-style: italic;
}

.polyglotte-card {
    background: #fff;
    border-radius: var(--sg-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--sg-shadow-sm);
    border: 1px solid var(--sg-border);
    text-align: center;
    transition: var(--sg-transition);
    position: relative;
    overflow: hidden;
}

.polyglotte-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002395 33%, #FFFFFF 33% 66%, #ED2939 66%);
}

.polyglotte-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 33%, #DD0000 33% 66%, #FFCE00 66%);
}

.polyglotte-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sg-shadow-lg);
}

.polyglotte-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 35, 149, 0.08), rgba(237, 41, 57, 0.08));
    color: var(--sg-secondary);
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
}

.polyglotte-card h3 {
    font-size: 1.3rem;
    color: var(--sg-secondary);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Drapeaux CSS pur */
.flag-tile {
    display: inline-flex;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 2;
    border-radius: var(--sg-radius);
    overflow: hidden;
    box-shadow: var(--sg-shadow);
    border: 1px solid var(--sg-border);
}

.flag-tile .flag-stripe {
    flex: 1;
    height: 100%;
}

.flag-tile.flag-de {
    flex-direction: column;
}

.flag-tile .flag-stripe-h {
    flex: 1;
    width: 100%;
}

.flag-stripe.blue   { background: #002395; }
.flag-stripe.white  { background: #ffffff; }
.flag-stripe.red    { background: #ED2939; }

.flag-stripe-h.black  { background: #000000; }
.flag-stripe-h.red    { background: #DD0000; }
.flag-stripe-h.yellow { background: #FFCE00; }

/* === Bouton "back to top" ======================================= */
/* A11Y-13 : visibility (et non la seule opacité) retire le bouton de la
   tabulation tant qu'il est invisible ; la transition « all » garde la
   visibilité pendant le fondu de sortie. Préfixé par .site-footer pour
   l'emporter sur les couleurs des liens du pied de page. */
.site-footer .back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 46px; height: 46px;
    background: var(--sg-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sg-shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--sg-transition);
    pointer-events: none;
}

.site-footer .back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-footer .back-to-top:hover {
    background: var(--sg-primary-dark);
    color: #fff;
    transform: translateY(-4px);
}

/* === Bouton d'appel fixe sur mobile (FRONT-01) ===================== */
/* Toujours visible sous 768 px : le numéro de la barre de navigation y est
   replié dans le menu. Le pied de page réserve sa hauteur pour ne masquer
   aucune ligne, et le retour en haut remonte au-dessus. Contour du focus
   rentré dans la barre, sinon coupé par le bord de l'écran. */
.site-footer .appel-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--sg-primary);
    color: #fff;
    font-family: var(--sg-font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 -6px 18px rgba(20, 20, 40, 0.18);
}

.site-footer .appel-mobile:hover,
.site-footer .appel-mobile:active {
    background: var(--sg-primary-dark);
    color: #fff;
}

.site-footer .appel-mobile:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-bottom: calc(1.5rem + 56px + env(safe-area-inset-bottom, 0px));
    }
    .site-footer .back-to-top {
        bottom: calc(56px + 1rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .site-footer .appel-mobile { display: none; }
}

@media print {
    .site-footer .appel-mobile { display: none; }
}

/* === FAQ (SEO-04) ======================================================= */
.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.faq-answer {
    margin: 0;
    line-height: 1.6;
}

/* === Stop Guêpes 57-67 - petites surcharges + page admin === */

body { font-family: 'Merriweather', 'Georgia', serif; }

/* === Focus clavier (A11Y-03) ===
   Anneau bicolore lisible sur fond clair comme sur le bleu nuit ou le rouge :
   contour bleu nuit de 3 px, liseré blanc de 2 px dans l'écart. Le sélecteur
   :is() égale la spécificité des règles Bootstrap (.btn:focus-visible,
   .form-control:focus, .nav-link:focus-visible) et passe après elles. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #1d1842;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

/* === Lien d'évitement (A11Y-04) ===
   Visible seulement au focus, posé au-dessus de la barre fixe (z-index 1030). */
.lien-evitement:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #1f2933;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(20, 20, 40, 0.25);
}
#contenu { scroll-margin-top: 90px; }

/* === Star rating interactif (formulaire d'avis, radios natifs : A11Y-01) === */
#rating-stars {
    text-align: center;
    perspective: 250px;
    width: 100%;
    margin: 1.5rem 0 0.5rem;
    padding: 0;
    border: 0;
}

#rating-stars legend {
    float: none;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

#rating-stars label {
    cursor: pointer;
    font-size: 44px;
    line-height: 1;
    padding: 0 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.35);
    transition: all 200ms ease;
    display: inline-block;
    transform: rotateX(60deg);
    transform-origin: center bottom;
    user-select: none;
}

#rating-stars label.hover,
#rating-stars label.notationLocked {
    color: #ffd60a;
    transform: rotateX(0deg);
    text-shadow: 0 4px 24px rgba(255, 214, 10, 0.65);
}

/* Focus clavier : le radio est masqué visuellement, l'anneau va sur son label. */
#rating-stars input:focus-visible + label {
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
    #rating-stars label {
        transition: none;
        transform: none;
    }
}

#comment-value {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-align: center;
    min-height: 1.5em;
    margin: 0.5rem 0 1rem;
}

/* === Mentions légales === */
.legal-page {
    padding: 5rem 0 3rem;
    background: var(--sg-bg-soft);
}

.legal-page h1 {
    font-size: 2.4rem;
    color: var(--sg-secondary);
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--sg-secondary);
    margin: 2.5rem 0 1rem;
    font-size: 1.4rem;
    padding-left: 1rem;
    border-left: 4px solid var(--sg-primary);
}

.legal-page h3 {
    color: var(--sg-secondary);
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
}

.legal-page p, .legal-page li {
    color: var(--sg-text);
    line-height: 1.75;
}

.legal-page .legal-card {
    background: #fff;
    border-radius: var(--sg-radius);
    padding: 3rem;
    box-shadow: var(--sg-shadow);
    border: 1px solid var(--sg-border);
}

@media (max-width: 768px) {
    .legal-page .legal-card { padding: 1.5rem; }
}

/* === ADMIN === */
.admin-shell {
    background: var(--sg-bg-soft);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--sg-secondary);
    color: #fff;
    padding: 1rem 0;
    box-shadow: var(--sg-shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-topbar .brand {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.admin-topbar .brand img {
    height: 44px;
    width: auto;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-topbar .brand small {
    font-weight: 400;
    text-transform: none;
    font-size: 0.78rem;
    opacity: 0.7;
    letter-spacing: 0;
    margin-left: 0.5rem;
}

/* === Nav admin (Commentaires / Photos) === */
.admin-nav {
    display: flex;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--sg-transition);
    position: relative;
}

.admin-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link.active {
    background: #fff;
    color: var(--sg-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.admin-nav-badge {
    background: var(--sg-primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.15rem;
}

.admin-nav-link.active .admin-nav-badge {
    background: var(--sg-primary);
    color: #fff;
}

/* === Bulk toolbar === */
.bulk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(90deg, rgba(203, 17, 20, 0.08), rgba(41, 35, 92, 0.05));
    border-top: 1px solid var(--sg-border);
    border-bottom: 1px solid var(--sg-border);
    animation: bulk-slide-down 0.25s ease-out;
}

@keyframes bulk-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bulk-toolbar .bulk-count {
    font-family: 'Open Sans', sans-serif;
    color: var(--sg-secondary);
    font-size: 0.95rem;
}

.bulk-toolbar .bulk-count strong {
    background: var(--sg-primary);
    color: #fff;
    padding: 0.1rem 0.55rem;
    border-radius: 6px;
    margin-right: 0.25rem;
}

.bulk-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* === Colonne de sélection === */
.admin-table th.select-col,
.admin-table td.select-col {
    width: 36px;
    text-align: center;
    padding-left: 1rem;
    padding-right: 0.3rem;
}

.admin-table .form-check-input {
    cursor: pointer;
    width: 1.15em;
    height: 1.15em;
    margin: 0;
}

.admin-table .form-check-input:checked {
    background-color: var(--sg-primary);
    border-color: var(--sg-primary);
}

.admin-table .form-check-input:indeterminate {
    background-color: var(--sg-primary);
    border-color: var(--sg-primary);
}

@media (max-width: 768px) {
    .admin-nav { order: 3; flex-basis: 100%; justify-content: center; }
}

/* Sur téléphone, les trois onglets (460 px) ne tiennent pas sur une ligne :
 * ils passent à la ligne au lieu de pousser la page hors de l'écran. */
@media (max-width: 575px) {
    .admin-nav { flex-wrap: wrap; border-radius: 1.5rem; }
    .admin-nav-link { flex: 1 1 auto; justify-content: center; }
}

.admin-container,
.admin-topbar-inner {
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
}

.admin-container { padding-top: 2rem; padding-bottom: 5rem; }

/* === Modale "Explorateur d'orphelins" === */
.sg-orphans-dialog {
    max-width: 75vw;
}

@media (max-width: 991px) {
    .sg-orphans-dialog { max-width: 95vw; }
}

.sg-orphans-body {
    background: var(--sg-bg-soft);
    min-height: 50vh;
    max-height: 70vh;
    overflow-y: auto;
}

.sg-orphans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.sg-orphan-card {
    background: #fff;
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--sg-transition);
}

.sg-orphan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow);
    border-color: var(--sg-primary);
}

.sg-orphan-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        repeating-conic-gradient(#eef0f4 0 25%, #fff 0 50%) 50% / 16px 16px;
    overflow: hidden;
}

.sg-orphan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-orphan-ext {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 12, 40, 0.85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.sg-orphan-meta {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sg-orphan-meta h5 {
    font-family: 'Open Sans', monospace;
    font-size: 0.82rem;
    color: var(--sg-secondary);
    margin: 0 0 0.25rem;
    word-break: break-all;
    line-height: 1.3;
}

/* === Footer admin sticky bottom === */
.admin-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 12, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.65rem clamp(1rem, 3vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    z-index: 50;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2);
}

.admin-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: var(--sg-transition);
}

.admin-footer a:hover {
    color: var(--sg-primary-light);
    border-bottom-color: var(--sg-primary-light);
}

.admin-footer-left {
    opacity: 0.7;
}

.admin-footer-heart {
    display: inline-block;
    animation: admin-heart 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes admin-heart {
    0%, 60%, 100% { transform: scale(1); }
    20%           { transform: scale(1.25); }
    40%           { transform: scale(1.1); }
}

@media (max-width: 575px) {
    .admin-footer {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
    }
    .admin-footer .container-fluid { justify-content: center; text-align: center; }
    .admin-footer-left { display: none; }
}

.kpi-card {
    background: #fff;
    border-radius: var(--sg-radius);
    padding: 1.5rem;
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--sg-transition);
}

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

.kpi-card .icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-card .icon.primary   { background: rgba(203, 17, 20, 0.1);   color: var(--sg-primary); }
.kpi-card .icon.secondary { background: rgba(41, 35, 92, 0.1);    color: var(--sg-secondary); }
.kpi-card .icon.warning   { background: rgba(201, 149, 23, 0.12); color: var(--sg-accent); }
.kpi-card .icon.success   { background: rgba(30, 196, 122, 0.12); color: #1ec47a; }

.kpi-card .label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--sg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0;
}

.kpi-card .value {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sg-secondary);
    line-height: 1.1;
    margin: 0;
}

/* Sous 360 px, deux cartes par ligne laissent trop peu de place à
 * « Publiés » ou « En attente » : on resserre la carte pour que le libellé
 * ne dépasse pas de l'écran. */
@media (max-width: 359.98px) {
    .kpi-card { padding: 1.25rem 1rem; gap: 0.75rem; }
}

.admin-card {
    background: #fff;
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
}

.admin-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--sg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.admin-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--sg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-card-body { padding: 1.25rem 1.5rem; }

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
}

.admin-table thead th {
    background: var(--sg-bg-soft);
    color: var(--sg-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sg-border);
}

.admin-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--sg-border);
    color: var(--sg-text);
    vertical-align: middle;
}

.admin-table tbody tr:hover { background: rgba(245, 247, 250, 0.6); }
.admin-table tbody tr.pending td { background: rgba(255, 230, 230, 0.4); }

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-status.approved {
    background: rgba(30, 196, 122, 0.12);
    color: #0d8c52;
}

.badge-status.pending {
    background: rgba(255, 153, 0, 0.15);
    color: #b25b00;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: var(--sg-transition);
}

.admin-btn.success { background: #1ec47a; color: #fff; }
.admin-btn.success:hover { background: #0fa462; }
.admin-btn.danger  { background: #ee2d3a; color: #fff; }
.admin-btn.danger:hover { background: #cc1a26; }
.admin-btn.ghost   { background: var(--sg-bg-soft); color: var(--sg-text); }
.admin-btn.ghost:hover { background: #e2e6ed; }

.admin-rating-stars {
    color: var(--sg-accent);
    letter-spacing: 1px;
    white-space: nowrap;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.photo-card {
    background: var(--sg-bg-soft);
    border-radius: var(--sg-radius);
    overflow: hidden;
    border: 1px solid var(--sg-border);
    position: relative;
    transition: var(--sg-transition);
}

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

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

.photo-card .photo-meta {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.photo-card .photo-meta h4 {
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--sg-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-zone {
    background: #fff;
    border: 2px dashed var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--sg-transition);
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--sg-primary);
    background: rgba(203, 17, 20, 0.03);
}

.upload-zone img {
    max-height: 160px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.upload-zone .upload-hint {
    color: var(--sg-text-muted);
    font-size: 0.9rem;
}

/* === Champ secret avec blur (reveal_controller) === */
.sg-secret {
    transition: filter 0.25s ease, color 0.2s ease;
    font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.04em;
    color: var(--sg-secondary);
}

.sg-secret.blurred {
    filter: blur(7px);
    color: transparent;
    text-shadow: 0 0 8px var(--sg-secondary);
    user-select: none;
    cursor: not-allowed;
    caret-color: transparent;
}

.sg-secret.blurred:hover {
    filter: blur(5px);
}

.sg-secret-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.sg-reveal-btn {
    flex-shrink: 0;
    min-width: 110px;
}

/* === Admin filtres / recherche === */
.admin-filters {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    border-bottom: 1px solid var(--sg-border);
    padding-bottom: 0.5rem;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: var(--sg-text-muted);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 3px solid transparent;
    transition: var(--sg-transition);
    margin-bottom: -0.5rem;
}

.filter-tab:hover {
    color: var(--sg-secondary);
    background: var(--sg-bg-soft);
}

.filter-tab.active {
    color: var(--sg-primary);
    border-bottom-color: var(--sg-primary);
    background: rgba(203, 17, 20, 0.04);
}

.filter-tab .badge {
    background: var(--sg-bg-soft);
    color: var(--sg-text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.filter-tab.active .badge {
    background: var(--sg-primary);
    color: #fff;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    color: var(--sg-text-muted);
    pointer-events: none;
}

.search-bar input[type="search"] {
    padding-left: 38px;
    border-radius: 8px;
    border: 1px solid var(--sg-border);
    background: #fff;
    height: 42px;
    font-family: 'Open Sans', sans-serif;
}

.search-bar input[type="search"]:focus {
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px rgba(203, 17, 20, 0.15);
    outline: 0;
}

/* Mise en surbrillance recherche */
.admin-table mark {
    background: rgba(255, 214, 10, 0.6);
    color: inherit;
    padding: 0 0.15em;
    border-radius: 3px;
}

/* === Admin pagination === */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--sg-border);
    background: var(--sg-bg-soft);
}

.admin-pagination .page-info {
    color: var(--sg-text-muted);
    font-size: 0.88rem;
    font-family: 'Open Sans', sans-serif;
}

.admin-pagination .pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.admin-pagination .page-link {
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    background: #fff;
    color: var(--sg-text);
    text-decoration: none;
    border: 1px solid var(--sg-border);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--sg-transition);
}

.admin-pagination .page-link:hover {
    background: var(--sg-bg-soft);
    border-color: var(--sg-primary);
    color: var(--sg-primary);
}

.admin-pagination .page-link.active {
    background: var(--sg-primary);
    border-color: var(--sg-primary);
    color: #fff;
    cursor: default;
}

.admin-pagination .page-link.disabled {
    background: transparent;
    color: var(--sg-text-muted);
    border-color: transparent;
    cursor: default;
    pointer-events: none;
    opacity: 0.4;
}

/* === Icônes SVG en ligne (PERF-01 : remplacent la police Font Awesome 4) === */
/* Rendues par ux_icon('fa:…') côté Twig et par assets/lib/icones.js côté Stimulus. */
.ico {
    display: inline-block;
    flex-shrink: 0;
    overflow: visible;
    vertical-align: -0.125em;
}
.ico-2x { font-size: 2em; }
.ico-3x { font-size: 3em; }
.ico.d-block { margin-left: auto; margin-right: auto; }
.ico-spin { animation: ico-rotation 1s steps(8) infinite; }
@keyframes ico-rotation { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .ico-spin { animation: none; }
}

/* Zones annoncées du formulaire d'avis (A11Y-07) : présentes dès le
   chargement, sans place réservée tant qu'elles sont vides. */
.avis-retour { margin: 0.75rem 0 0; }
.avis-retour:empty { margin: 0; }
