/* === VARIABLES & RESET === */
:root {
    --red-brand: #D32228;
    --red-glow: rgba(211, 34, 40, 0.6);
    --bg-dark: #03070f;
    --text-white: #ffffff;
    --text-gray: #a0a5b0;
    --glass-bg: rgba(0, 0, 0, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Archivo', sans-serif;
    --font-scale: 1;
    --fs-hero: 4rem;
    --fs-section-title: 2.5rem;
}

html {
    font-size: calc(16px * var(--font-scale));
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

/* === FOND FIXE (Image évocatrice du domaine) === */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image:
        linear-gradient(180deg, rgba(3, 7, 15, 0.28), rgba(3, 7, 15, 0.32)),
        url('../assets/bg-vision.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    pointer-events: none;
}

/* Fonds spécifiques par section (mêmes réglages de dégradé/couverture) */
.bg-fixed.bg-services {
    background-image:
        linear-gradient(180deg, rgba(3, 7, 15, 0.28), rgba(3, 7, 15, 0.32)),
        url('../assets/services.webp');
}

.bg-fixed.bg-realisations {
    background-image:
        linear-gradient(180deg, rgba(3, 7, 15, 0.28), rgba(3, 7, 15, 0.32)),
        url('../assets/realisations.webp');
}

.bg-fixed.bg-contact {
    background-image:
        linear-gradient(180deg, rgba(3, 7, 15, 0.28), rgba(3, 7, 15, 0.32)),
        url('../assets/contact.webp');
}

.bg-fixed.bg-home {
    background-image:
        linear-gradient(180deg, rgba(3, 7, 15, 0.28), rgba(3, 7, 15, 0.32)),
        url('../assets/accueil-2.webp');
}

/* Effet de lueur radiale par-dessus le fond */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 75% 50%, rgba(211, 34, 40, 0.10) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* === NAVIGATION === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(3, 7, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 300;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 68px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

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

.nav-links a, .nav-links .dropdown-toggle-label {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-links a:hover, .nav-links a.active,
.nav-links .dropdown-toggle-label:hover, .nav-links .dropdown-toggle-label.active {
    color: var(--red-brand);
}

.nav-links a.active::after,
.nav-links .dropdown-toggle-label.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--red-brand);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--red-glow);
}

/* --- Dropdown (Réalisations / Portfolio) --- */
.nav-dropdown {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

.dropdown-toggle-label i {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .dropdown-toggle-label i {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(3, 7, 15, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.3rem;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* --- Sélecteur de langue --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.lang-switch a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s ease;
}

.lang-switch a.active {
    color: var(--red-brand);
}

.lang-switch a:hover {
    color: var(--text-white);
}

.lang-switch span {
    color: var(--glass-border);
}

.nav-cta-mobile {
    display: none;
}

.lang-switch-mobile {
    display: none;
}

/* === HAMBURGER (mobile) === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 310;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

/* === BOUTONS === */
.btn {
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-block;
}

.btn-outline {
    background: rgba(211, 34, 40, 0.1);
    color: var(--text-white);
    border: 1px solid var(--red-brand);
    box-shadow: 0 0 15px rgba(211, 34, 40, 0.2);
}

.btn-outline:hover {
    background: var(--red-brand);
    box-shadow: 0 0 25px var(--red-glow);
}

.btn-primary {
    background: linear-gradient(90deg, #D32228, #9b1418);
    color: var(--text-white);
    box-shadow: 0 0 20px var(--red-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px var(--red-glow);
}

/* === PAGES === */
main {
    padding-top: 100px;
    min-height: 100vh;
}

.page-section {
    padding: 4rem 5%;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin: 0 auto 4rem;
    max-width: 720px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.section-header h2 {
    font-size: var(--fs-section-title);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--red-brand);
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-header p.section-kicker {
    color: var(--red-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    max-width: 100%;
}

.section-header p.section-tagline {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.2rem;
    max-width: 100%;
    margin-bottom: 1rem;
}

.section-header p + p {
    margin-top: 1rem;
}

.page-prose {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.page-prose p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: left;
}

/* Page Notre Vision : texte en blanc pour améliorer la lisibilité */
#vision .page-prose p {
    color: var(--text-white);
}

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

.home-signature {
    text-align: center;
    margin: 3rem auto 0;
    max-width: 720px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.6rem 2rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === ACCUEIL (HERO) === */
.hero {
    display: flex;
    align-items: center;
    min-height: 75vh;
    padding: 0 5%;
}

.hero-content {
    max-width: 650px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.hero-content h1 {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.services-cards-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* === COMPOSANT CARTE (GLASSMORPHISM) === */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(211, 34, 40, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(211, 34, 40, 0.1);
}

.service-mini i {
    font-size: 2.5rem;
    color: var(--red-brand);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--red-glow);
}
.service-mini h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* === PAGE SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 340px));
    gap: 2rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.services-grid .glass-card i {
    font-size: 3rem;
    color: var(--red-brand);
    margin-bottom: 1.5rem;
}

.services-grid .glass-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* === PAGES REALISATIONS (Branding / Logos / Sites Web) === */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.portfolio-tabs a {
    text-decoration: none;
    color: var(--text-gray);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.portfolio-tabs a:hover {
    color: var(--text-white);
    border-color: rgba(211, 34, 40, 0.4);
}

.portfolio-tabs a.active {
    background: var(--red-brand);
    color: var(--text-white);
    border-color: var(--red-brand);
    box-shadow: 0 0 20px var(--red-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.portfolio-item {
    cursor: pointer;
}

a.portfolio-item:hover {
    border-color: rgba(211, 34, 40, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(3,7,15,0.95), transparent);
    transition: 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-empty {
    display: none;
    text-align: center;
    color: var(--text-gray);
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
}

.portfolio-overlay span {
    color: var(--red-brand);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* === PAGE CONTACT === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info .info-block {
    margin-bottom: 2rem;
}

.contact-info i {
    color: var(--red-brand);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-info a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-info a:hover {
    color: var(--red-brand);
}

form.glass-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-main);
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--red-brand);
    box-shadow: 0 0 10px rgba(211, 34, 40, 0.2);
}

.map-container {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 0.6rem;
}

.map-container iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 12px;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .contact-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, minmax(280px, 340px)); }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: minmax(0, 400px); }
}

@media (max-width: 768px) {
    .logo-img { height: 52px; }

    .hamburger {
        display: flex;
    }

    .nav-cta-desktop, .lang-switch-desktop {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82%, 330px);
        height: 100vh;
        background: rgba(3, 7, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        transition: right 0.4s ease;
        z-index: 280;
        overflow-y: auto;
        padding: 2rem 0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-cta-mobile, .lang-switch-mobile {
        display: flex;
    }

    .lang-switch-mobile {
        margin-top: 0.5rem;
    }

    /* Dropdown devient un accordéon en flux normal sur mobile */
    .nav-dropdown {
        flex-direction: column;
        gap: 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        text-align: center;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 300px;
        padding: 0.5rem 0 0;
    }

    .hero-content h1 { font-size: 2.2rem; }
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 7, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 5% 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.slogan-block {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 5% 1rem;
}

.slogan-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-credit {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

.footer-credit a {
    color: var(--text-gray);
    text-decoration: underline;
    transition: 0.3s ease;
}

.footer-credit a:hover {
    color: var(--red-brand);
}

.site-footer a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s ease;
}

.site-footer a:hover {
    color: var(--red-brand);
}

.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* === BANDEAU DE CONSENTEMENT AUX TÉMOINS === */
#cookieBanner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: rgba(3, 7, 15, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 1.4rem 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookieBanner.visible {
    transform: translateY(0);
}

#cookieBanner p {
    color: var(--text-white);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0;
    flex: 1 1 500px;
}

#cookieBanner .cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#cookieBanner .cookie-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

#cookieBanner .cookie-links a,
#cookieBanner .cookie-links button {
    color: var(--text-gray);
    text-decoration: underline;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

#cookieBanner .cookie-links a:hover,
#cookieBanner .cookie-links button:hover {
    color: var(--text-white);
}

#cookieBanner .btn {
    white-space: nowrap;
}

/* === PAGE GESTION DES TÉMOINS === */
.cookie-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--red-brand);
}

.cookie-page p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 820px;
}

.cookie-page a {
    color: var(--text-white);
    text-decoration: underline;
}

.cookie-page a:hover {
    color: var(--red-brand);
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.6rem;
    margin-bottom: 1.2rem;
}

.cookie-category-text {
    flex: 1 1 500px;
}

.cookie-category-text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.cookie-category-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.cookie-table th, .cookie-table td {
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1rem;
    text-align: left;
    color: var(--text-gray);
    vertical-align: top;
}

.cookie-table th {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

/* Interrupteur (toggle) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: var(--text-white);
    border-radius: 50%;
    transition: 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--red-brand);
    box-shadow: 0 0 10px var(--red-glow);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-save-row {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cookie-save-msg {
    color: var(--red-brand);
    font-weight: 700;
    font-size: 0.9rem;
    display: none;
}

.cookie-save-msg.visible {
    display: inline-block;
}

@media (max-width: 768px) {
    #cookieBanner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-category {
        flex-direction: column;
    }
}

/* === FORMULAIRE DE CONTACT (statut d'envoi) === */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    padding-top: 0.3rem;
}

.form-status.success {
    display: block;
    color: #4caf50;
}

.form-status.error {
    display: block;
    color: var(--red-brand);
}

form.glass-card button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
