/* ================= VARIABLES & RESET ================= */
:root {
    --primary-blue: #0b1d46;
    --dark-blue: #071230;
    --red: #ff0000;
    --text-dark: #333333;
    --text-grey: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= TYPOGRAPHY & BUTTONS ================= */
.section-subtitle {
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-title {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 3px solid var(--red);
    padding-left: 15px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Alias pour compatibilité */
.btn-orange { 
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-dark-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-white {
    background-color: var(--white);
    color: var(--red);
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary:hover, .btn-dark-blue:hover { background-color: var(--red); }
.btn-red:hover, .btn-orange:hover { background-color: var(--primary-blue); }

/* ================= HEADER ================= */
.top-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: var(--text-grey);
    font-size: 12px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 18px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
}

/* Logo header sizing */
.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 13px;
}

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

/* ================= HAMBURGER BUTTON ================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background: var(--primary-blue);
    border: none;
    border-radius: 4px;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

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

/* ================= OFFCANVAS MOBILE MENU ================= */
.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.offcanvas-overlay.active {
    display: block;
    opacity: 1;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--primary-blue);
    z-index: 999;
    transition: right 0.35s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.offcanvas-logo img {
    height: 45px;
}

.offcanvas-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.offcanvas-nav {
    padding: 20px 0;
    flex: 1;
}

.offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 0.2s;
}

.offcanvas-nav a:hover,
.offcanvas-nav a.active {
    color: var(--white);
    background: rgba(255,0,0,0.2);
    padding-left: 35px;
}

.offcanvas-nav a i {
    width: 20px;
    color: var(--red);
    font-size: 15px;
}

.offcanvas-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.offcanvas-footer .btn-red {
    width: 100%;
    justify-content: center;
}

/* ===== OFFCANVAS CONTACT INFO ===== */
.offcanvas-contact {
    padding: 0;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.offcanvas-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    transition: background 0.2s;
}

a.offcanvas-contact-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
}

.offcanvas-contact-item i {
    color: var(--red);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
}

.offcanvas-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offcanvas-contact-item strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    font-weight: 700;
}

.offcanvas-contact-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.70);
}

/* ===== MOBILE ACTIONS (phone + hamburger) ===== */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--red);
    border-radius: 4px;
    color: var(--white);
    font-size: 16px;
    transition: background 0.3s;
}

.mobile-phone-btn:hover {
    background: var(--dark-blue);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 450px;
    background: url('img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 29, 70, 0.75);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.hero-content .hero-tagline {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border: 2px solid var(--red);
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ================= SERVICES ================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.service-card {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: 0.3s;
    cursor: pointer;
}

.service-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--red);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
}

.service-card:hover {
    background-color: var(--red);
    transform: translateY(-5px);
}

.service-card:hover i {
    color: var(--white);
}

/* ================= A PROPOS ================= */
.about-section {
    display: flex;
    gap: 50px;
    padding: 80px 15px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.experience-box {
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    background: var(--white);
}

.exp-number {
    font-size: 60px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.exp-text {
    color: var(--text-grey);
    font-size: 14px;
    flex-grow: 1;
}

.exp-badge img {
    width: 70px;
}

.experience-box .btn-dark-blue {
    position: absolute;
    bottom: -15px;
    right: 20px;
}

/* ================= BANNIERE CTA ================= */
.banner-cta {
    background: url('img/banner-bg.jpg') no-repeat center/cover;
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 29, 70, 0.88);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.text-red {
    color: var(--red);
}

/* alias */
.text-orange { color: var(--red); }

.banner-content p {
    margin-bottom: 30px;
    font-size: 16px;
}

/* ================= SERVICES GRID ================= */
.services-section {
    padding: 80px 15px;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    padding: 30px 25px;
    border-left: 4px solid var(--red);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(11,29,70,0.12);
}

.service-item i {
    font-size: 35px;
    color: var(--red);
    margin-bottom: 15px;
}

.service-item h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-item p {
    color: var(--text-grey);
    font-size: 13px;
}

/* ================= REALISATIONS ================= */
.realisations-section {
    padding: 80px 15px;
}

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

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.realisation-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
}

.realisation-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.realisation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

.realisation-card:hover img {
    transform: scale(1.04);
}

.realisation-title {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ================= PARTENAIRES ================= */
.partenaires-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.text-center { text-align: center; }
.title-dark { color: var(--primary-blue); font-size: 24px; margin-bottom: 5px; }
.subtitle-grey { color: var(--text-grey); margin-bottom: 40px; position: relative; }
.subtitle-grey::after {
    content: ''; display: block; width: 50px; height: 2px;
    background: var(--red); margin: 15px auto 0;
}

.partenaires-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.logo-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.logo-box:hover {
    border-color: var(--red);
    box-shadow: 0 3px 10px rgba(255,0,0,0.1);
}

.arrow { color: var(--text-grey); font-size: 20px; cursor: pointer; }

/* ================= ACTUALITE ================= */
.bg-light { background-color: var(--bg-light); }
.actualite-section { padding: 80px 0; }

.actualite-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.actualite-intro p { margin-bottom: 20px; color: var(--text-grey); }
.actualite-intro .small-text { font-size: 13px; color: var(--primary-blue); font-weight: 600; }

.news-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(11,29,70,0.12);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    position: relative;
    min-height: 100px;
}

.news-content h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.news-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    color: var(--text-grey);
    text-transform: uppercase;
}
.news-date::before {
    content: ''; display: block; width: 15px; height: 2px;
    background: var(--primary-blue); margin-bottom: 5px;
}

/* ================= PRE-FOOTER CTA ================= */
.pre-footer-cta {
    background-color: var(--red);
    padding: 40px 0;
    color: var(--white);
}

.pre-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-footer-flex h2 { font-size: 28px; margin-bottom: 5px; }

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 { font-size: 16px; margin-bottom: 10px; }
.widget-line { width: 30px; height: 2px; background: var(--red); margin-bottom: 20px; }

.footer-widget p, .footer-widget ul { font-size: 13px; color: #d1d1d1; }
.footer-widget p { margin-bottom: 10px; }
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget ul li a:hover { color: var(--red); }

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: background 0.3s;
    flex-shrink: 0;
}
.social-icon:hover { background: var(--red); }

.footer-bottom {
    background-color: var(--dark-blue);
    padding: 20px 0;
    text-align: left;
    font-size: 12px;
    color: #a0a0a0;
}
.footer-bottom strong { color: var(--white); }

/* ================= PAGE HERO (sous-pages) ================= */
.page-hero {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 100%;
    background: rgba(255,0,0,0.08);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { color: var(--red); }
.breadcrumb span.current { color: var(--white); font-weight: 600; }

/* ================= CONTENT SECTIONS ================= */
.content-section {
    padding: 70px 0;
}

.content-section.bg-light {
    background: var(--bg-light);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-text h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.content-text p {
    color: var(--text-grey);
    margin-bottom: 15px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    padding: 6px 0;
    color: var(--text-grey);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--red);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ================= PRODUITS CARDS ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(11,29,70,0.12);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 20px;
}

.product-card-body h4 {
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card-body p {
    color: var(--text-grey);
    font-size: 12px;
}

/* ================= HIGHLIGHT BOX ================= */
.highlight-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.2;
}

.highlight-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.highlight-box p {
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

/* ================= BACKUP ENERGY SECTION ================= */
.backup-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.backup-intro-box {
    background: var(--primary-blue);
    color: #fff;
    padding: 25px;
    margin-bottom: 20px;
}

.backup-how-box {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.backup-how-title {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
}

.backup-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.backup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.backup-step-num {
    width: 32px;
    height: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    border-radius: 2px;
}

.backup-step-num.red  { background: var(--red); }
.backup-step-num.blue { background: var(--primary-blue); }

.backup-step p {
    color: var(--text-grey);
    font-size: 13px;
    margin: 0;
    padding-top: 6px;
}

/* ================= BACKUP — RESPONSIVE ================= */
@media (max-width: 768px) {
    .backup-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .backup-how-box {
        padding: 20px;
    }
}

/* ================= PHOTOVOLTAIQUE — COMPOSANTS ================= */
.components-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* ================= PRESENTATION — GRILLES ================= */

/* Mission / Vision / Valeurs */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cœur Business (Secteurs / Orientation marché) */
.coeur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* SINNOVA Académie — 3 badges internes */
.academie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

/* ================= RESPONSIVE — nouvelles grilles ================= */
@media (max-width: 768px) {

    /* Composants PV : 4 col → 2 col sur tablette/mobile */
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* MVV : 3 col → 1 col */
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cœur Business : 2 col → 1 col */
    .coeur-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Académie : 3 col → 1 col */
    .academie-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* Composants PV : 2 col → 1 col sur très petit écran */
    .components-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= CONTACT FORM ================= */
.contact-section {
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--red);
    font-size: 20px;
    margin-top: 2px;
    width: 25px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 13px;
    margin-bottom: 3px;
}

.contact-item span {
    color: var(--text-grey);
    font-size: 13px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
}

.contact-form textarea { height: 140px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ================= STATS / CHIFFRES ================= */
.stats-section {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .realisations-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {

    /* ---- Anti-overflow global ---- */
    html, body { overflow-x: hidden; }

    /* ---- Top bar : masquée sur mobile (infos disponibles dans l'offcanvas) ---- */
    .top-bar { display: none !important; }

    /* ---- Navbar ---- */
    .logo img { height: 48px; }
    .nav-links,
    .navbar .btn-primary,
    .navbar .btn-red { display: none; }
    .hamburger-btn { display: flex; }

    /* ---- Hero ---- */
    .hero { height: 300px; }
    .hero-content h1 { font-size: 20px; }
    .hero-content h2 { font-size: 15px; }
    .hero-content .hero-tagline { font-size: 13px; letter-spacing: 1px; }

    /* ---- Services cards ---- */
    .services-container {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        padding: 0 15px;
        gap: 15px;
    }
    .service-card { width: 100%; max-width: 340px; }

    /* ---- About ---- */
    .about-section {
        flex-direction: column;
        padding: 40px 15px;
        gap: 30px;
    }

    /* ---- Two col ---- */
    .two-col { grid-template-columns: 1fr; gap: 25px; }
    .two-col.reverse { direction: ltr; }
    .two-col img { height: 220px; }

    /* ---- Content sections ---- */
    .content-section { padding: 45px 0; }

    /* ================================================================
       FIX GRILLES INLINE — Les grilles définies en style="" dans les
       fichiers PHP ne répondent pas aux media queries normales.
       On utilise !important pour les écraser sur mobile.
       ================================================================ */

    /* Cible tout élément ayant grid-template-columns en style inline */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Blocs enfants de ces grilles : pleine largeur, sans débordement */
    [style*="grid-template-columns"] > div,
    [style*="grid-template-columns"] > a {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Réinitialise la direction rtl éventuelle sur les grilles inline */
    [style*="grid-template-columns"][style*="rtl"],
    [style*="direction: rtl"] {
        direction: ltr !important;
    }

    /* Highlight box (présentation - académie) : grille interne */
    .highlight-box [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Back-up Energy : forcer le layout en colonne */
    .content-section [style*="1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* ---- Réalisations ---- */
    .realisations-grid { grid-template-columns: 1fr; }
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }

    /* ---- Logos ---- */
    .logos-grid { grid-template-columns: repeat(2, 1fr); }

    /* ---- Actualités ---- */
    .actualite-grid { grid-template-columns: 1fr; }
    .news-cards { grid-template-columns: 1fr; }

    /* ---- Banner CTA ---- */
    .banner-content h2 { font-size: 22px; }
    .banner-cta { padding: 50px 15px; }

    /* ---- Stats ---- */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item h3 { font-size: 36px; }

    /* ---- Pre-footer ---- */
    .pre-footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
    .pre-footer-flex h2 { font-size: 20px; }

    /* ---- Footer : 3 colonnes -> 1 colonne ---- */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    /* ---- Contact page ---- */
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* ---- Services / Products grids ---- */
    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }

    /* ---- Page hero ---- */
    .page-hero { padding: 40px 0; }
    .page-hero h1 { font-size: 24px; }

    /* ---- Titles ---- */
    .section-title { font-size: 20px; }

    /* ---- Highlight box ---- */
    .highlight-box { padding: 25px 20px; }

    /* ---- Experience box ---- */
    .exp-number { font-size: 44px; }

    /* ---- Overflow protection globale (à la fin pour tout couvrir) ---- */
    * { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .realisations-grid { grid-template-columns: 1fr; }
    .logos-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item h3 { font-size: 32px; }
    .navbar { padding: 12px 15px; }

    /* Grilles inline : renforcement sur très petits écrans */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Boutons dans les sections : pleine largeur */
    .content-section .btn-red,
    .content-section .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Banner CTA */
    .banner-content h2 { font-size: 18px; }
    .banner-content p { font-size: 13px; }

    /* Page hero */
    .page-hero h1 { font-size: 20px; }
    .page-hero p { font-size: 13px; }
}
