:root {
    --primary: #1A0505;
    --primary-light: #2D0B0B;
    --accent: #FA2E23;
    --accent-hover: #E0271D;
    --text-main: #F1FAEE;
    --text-dim: #A8B2C1;
    --white: #FFFFFF;
    --bg-dark: #0D0202;
    --glass: rgba(45, 11, 11, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 57, 70, 0.1);
    border-radius: 12px;
}

/* Header & Nav */
/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transition: var(--transition);
    transform: translate3d(0, 0, 0);
}

header.scrolled {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header.nav-open {
    background: rgba(13, 2, 2, 0.98);
    box-shadow: none;
}

.nav-container {
    padding: 0.8rem 2rem;
    transition: var(--transition);
}

header.scrolled .nav-container {
    padding: 0.4rem 2rem;
}

/* Default state: NOT scrolled, transparent background */
header:not(.scrolled):not(.nav-open) .nav-links a {
    color: var(--text-main);
}

header:not(.scrolled):not(.nav-open) .nav-links a:hover {
    color: var(--accent);
}

header:not(.scrolled):not(.nav-open) .btn-contact {
    color: var(--text-main);
    border-color: var(--text-main);
}

header:not(.scrolled):not(.nav-open) .btn-contact:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

header:not(.scrolled):not(.nav-open) .mobile-nav-toggle {
    color: var(--text-main);
}

header:not(.scrolled):not(.nav-open) .nav-tel {
    border-color: #FFC107;
    color: #FFC107 !important;
}

header:not(.scrolled):not(.nav-open) .nav-tel:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #1A0505 !important;
}


/* Scrolled state: white background */
header.scrolled:not(.nav-open) .nav-links a {
    color: #1A0505;
}

header.scrolled:not(.nav-open) .nav-links a:hover {
    color: var(--accent);
}

header.scrolled:not(.nav-open) .btn-contact {
    color: var(--accent);
    border-color: var(--accent);
}

header.scrolled:not(.nav-open) .btn-contact:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

header.scrolled:not(.nav-open) .mobile-nav-toggle {
    color: #1A0505;
}

header.scrolled:not(.nav-open) .nav-tel {
    border-color: #D48C00;
    color: #D48C00 !important;
}

header.scrolled:not(.nav-open) .nav-tel:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #1A0505 !important;
}

/* Mobile Menu Open state: dark solid background */
header.nav-open .nav-links a {
    color: #F1FAEE !important;
}

header.nav-open .nav-links a:hover {
    color: var(--accent) !important;
}

header.nav-open .btn-contact {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

header.nav-open .btn-contact:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

header.nav-open .mobile-nav-toggle {
    color: #F1FAEE !important;
}

header.nav-open .nav-tel {
    border-color: #FFC107 !important;
    color: #FFC107 !important;
}

header.nav-open .nav-tel:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #1A0505 !important;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .accent, .accent {
    color: var(--accent);
}

.nav-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.15)) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.15));
}

header.scrolled .nav-logo {
    height: 75px;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Nav Téléphone Button Style - Outline by default, filled on hover */
.nav-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1.5px solid #D48C00;
    color: #D48C00 !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px; /* Design pilule très moderne */
    transition: var(--transition);
}

.nav-tel:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #1A0505 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

.nav-tel i {
    font-size: 1rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero .container {
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.7; /* Increased opacity to 0.7 as requested */
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        padding-top: 130px;
        padding-bottom: 80px;
    }
    .hero .container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-align: center;
        max-width: 100%;
        z-index: 2;
    }
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    .hero-bg img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 80% center; /* Center the van vertically */
        opacity: 0.6; /* Slightly lower opacity on mobile for better text readability */
    }
    .hero-bg::after {
        background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(13, 2, 2, 0.7) 40%, transparent 100%) !important;
    }

    .hero-btns {
        margin-top: auto !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-contact {
        width: 100%;
        max-width: 290px;
        padding: 0.8rem 1.5rem;
        justify-content: center;
        text-align: center;
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark) 40%, transparent 100%);
}

.hero-content {
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* "Partenaire en sécurité" en bleu */
.text-blue {
    color: #0066CC;
    font-style: normal;
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-slogan {
    font-size: 1.5rem !important;
    color: var(--white) !important;
    margin-bottom: 2rem !important;
    line-height: 1.4;
}

.hero-sub {
    font-size: 1.1rem !important;
    color: var(--text-dim) !important;
    margin-bottom: 2rem !important;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
}

/* Certifications Bar */
.certifications-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 2, 2, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.cert-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cert-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.cert-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.cert-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(230, 57, 70, 0.1);
    border: 1.5px solid rgba(230, 57, 70, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1.6rem;
}

/* IBZ Logo Image Styles */
.ibz-img-logo {
    height: 45px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    object-fit: contain;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-text {
    display: flex;
    flex-direction: column;
}

.cert-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    font-weight: 600;
}

.cert-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 0.1rem;
}

/* Alternative Danelec */
.alternative {
    background: var(--bg-dark);
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1100px) {
    .comparison-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }
}

.comparison-cards .card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comparison-cards .card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
}

.comparison-cards .card .icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.comparison-cards .card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.comparison-cards .full-width {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--glass), rgba(230, 57, 70, 0.1));
    border: 1px solid var(--accent);
}

/* Catalogue Produits */
.catalogue {
    background: var(--primary-light);
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.product-card {
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.product-img-wrapper {
    position: relative;
    height: 400px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-img i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.product-card:hover .placeholder-img i {
    transform: scale(1.1);
    color: rgba(230, 57, 70, 0.2);
}

.product-img-wrapper .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 20;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
}

.carousel-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    background: var(--primary);
}

.carousel-slides:hover img.active {
    transform: scale(1.05);
}

.carousel-slides img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 2, 2, 0.6);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 15;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent);
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 4px 12px rgba(250, 46, 35, 0.35);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.carousel-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.product-info {
    padding: 2rem;
    flex: 1;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.product-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Lien "Voir nos systèmes" sur Limotec */
.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.25rem;
}

.product-link:hover {
    color: var(--accent-hover);
    gap: 0.6rem;
}

/* Partner icon block (Télésurveillance / Oktopus / Praxis) */
.partner-img-wrapper {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-icon-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-icon {
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.8;
    transition: var(--transition);
}

.product-card:hover .partner-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--accent-hover);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.services-grid .card {
    padding: 3rem 2rem;
    transition: var(--transition);
}

.services-grid .card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 57, 70, 0.3);
}

.services-grid .card .icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.services-grid .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.contact-form {
    padding: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

.form-group label span {
    color: var(--accent);
}

.form-group input, .form-group textarea {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.form-feedback.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-feedback.error {
    display: block;
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Footer */
footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 320px;
    line-height: 1.5;
}

.footer-certs {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 2;
    min-width: 320px;
}

.footer-cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none !important;
    border-radius: 8px;
}

.footer-cert-card .cert-icon {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-cert-card .cert-icon.ibz-logo {
    background: #FFFFFF;
    padding: 3px 6px;
    border-radius: 4px;
}

.footer-cert-card .cert-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(250, 46, 35, 0.1);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1.8rem;
}

.footer-cert-card .cert-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    white-space: nowrap;
}

.footer-cert-card .cert-title {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-cert-card .cert-number {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 700;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(250, 46, 35, 0.4);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-certs {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-cert-card {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1180px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 2, 2, 0.98);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .cert-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .cert-item {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        border-right: none !important;
        padding-right: 0 !important;
    }
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 2.2rem; /* Slightly larger for easier tap target on mobile */
    color: #1A0505;
    position: relative;
    z-index: 1001; /* Ensure close button sits on top of mobile menu overlay */
    transition: var(--transition);
}

.mobile-nav-toggle i {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle:hover i {
    transform: scale(1.1);
}

header.nav-open .mobile-nav-toggle:hover i {
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 1180px) {
    .mobile-nav-toggle {
        display: block;
    }
}

/* Light Sections (Alternance de design) */
.light-section {
    background-color: #F8F9FA !important;
    color: #1A0505 !important;
}

.light-section .section-header h2 {
    color: #1A0505 !important;
}

.light-section .section-header p {
    color: #4E5D6C !important;
}

.light-section .card.glass {
    background: #FFFFFF !important;
    border: 1px solid rgba(26, 5, 5, 0.08) !important;
    color: #1A0505 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.light-section .card.glass h3 {
    color: #1A0505 !important;
}

.light-section .card.glass p {
    color: #4E5D6C !important;
}

.light-section .card.glass p strong {
    color: #1A0505 !important;
}

.light-section .card.glass .icon {
    color: var(--accent) !important;
}

.light-section .card.glass:hover {
    transform: translateY(-5px);
    border-color: var(--accent) !important;
    box-shadow: 0 15px 35px rgba(250, 46, 35, 0.15) !important;
}

/* Responsiveness adjustments for telephone link & header */
@media (max-width: 1180px) {
    .nav-container {
        padding: 0.5rem 1.5rem !important;
    }
    
    .nav-logo {
        height: 60px !important;
    }
    
    header.scrolled .nav-logo {
        height: 50px !important;
    }

    .nav-tel {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    .nav-right {
        gap: 0.8rem !important;
    }
}

/* Spinner animation for form submission */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ri-spin {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

/* Form input validation states */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: rgba(46, 204, 113, 0.4);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(250, 46, 35, 0.4);
}

/* Submit button loading state */
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form feedback animation */
.form-feedback {
    animation: fadeInUp 0.3s ease-out;
}

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