/*!
 * 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;

    --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); }

/* 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; }
}
@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;
    font-size: 2.25rem;
    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; }

#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 ======================================================= */
header.masthead {
    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-image, none) center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

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); }
}

#homeHeading {
    color: #fff;
    font-size: 2.7rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px)  { #homeHeading { font-size: 3.4rem; } }
@media (min-width: 1200px) { #homeHeading { font-size: 3.8rem; } }
@media (min-width: 1400px) { #homeHeading { font-size: 4.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 i {
    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 {
    content: "\f00e"; /* fa-search-plus */
    font-family: 'FontAwesome';
    font-size: 0.85rem;
    color: var(--sg-accent);
    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 {
    content: "\f00e"; /* fa-search-plus */
    font-family: 'FontAwesome';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: var(--sg-primary);
    color: #fff;
    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="434" 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 i {
    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; }

/* === Carousel arrière-plan flou ================================= */
#gallery { position: relative; min-height: 460px; padding: 4rem 0 !important; }

#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; }

#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;
}
#notez-nous .form-control:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }

.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 {
    color: rgba(255, 255, 255, 0.75);
    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);
    text-decoration: none;
}
.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" ======================================= */
.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;
    transform: translateY(20px);
    transition: var(--sg-transition);
    pointer-events: none;
}

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

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