:root {
    --primary-color: #4A6984;
    --secondary-color: #F8F9FA;
    --text-color: #263238;
    --white: #ffffff;
    --accent-color: #8A9EA8;
    --dark-bg: #263238;
    --light-blue: #e8f0f4;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.site-logo {
    max-height: 60px; /* Vous pouvez augmenter ou réduire cette valeur selon la forme de votre logo */
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- DROPDOWN MENU --- */
.main-nav .dropdown {
    position: relative;
}
.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 200;
    flex-direction: column;
    gap: 0;
}
.main-nav .dropdown:hover .dropdown-menu {
    display: flex;
}
.main-nav .dropdown-menu li {
    width: 100%;
}
.main-nav .dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}
.main-nav .dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- TABLEAU COMPARATIF --- */
.comparison-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); min-width: 800px;}
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.comparison-table th { background: var(--primary-color); color: white; font-weight: bold; font-size: 1.1rem; }
.comparison-table th:first-child { text-align: left; background: var(--dark-bg); }
.comparison-table td:first-child { text-align: left; font-weight: bold; color: var(--primary-color); background: #fafafa; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table i.fa-check { color: #27ae60; font-size: 1.4rem; }
.comparison-table i.fa-times { color: #e74c3c; font-size: 1.4rem; opacity: 0.3; }
.comparison-table .sys-name { font-size: 1.2rem; font-weight: 800; }

.btn-contact, .btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-contact:hover, .btn-primary:hover {
    background-color: var(--dark-bg);
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
}

.btn-selector {
    background-color: transparent;
    color: var(--primary-color) !important;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-selector:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.hero-section {
    /* Remplacer 'background.jpg' par le nom exact de votre image */
    /* Remplacez "fond-accueil.jpg" par le vrai nom de votre fichier */
    background-image: linear-gradient(rgba(38, 50, 56, 0.8), rgba(74, 105, 132, 0.8)), url('images/fond-accueil.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- GRILLE PRODUITS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Force un maximum de 3 colonnes sur PC */
    gap: 30px; /* On augmente un peu l'espace pour faire respirer les cartes */
}

.product-card {
    background: transparent;
    perspective: 1000px;
    height: 450px;
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}
.product-card.flipped .product-card-inner {
    transform: rotateY(180deg);
}
.product-card-front, .product-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover .product-card-front, .product-card:hover .product-card-back {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

/* --- SYSTEM FINDER MODAL --- */
.finder-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.finder-modal-overlay.active { opacity: 1; visibility: visible; }
.finder-modal-content {
    background: var(--white); width: 90%; max-width: 600px;
    padding: 40px; border-radius: 12px; position: relative;
    transform: translateY(-20px); transition: 0.3s;
    max-height: 90vh; overflow-y: auto; text-align: left;
}
.finder-modal-overlay.active .finder-modal-content { transform: translateY(0); }
.finder-step { margin-bottom: 25px; animation: fadeIn 0.5s ease; }
.finder-step label { display: block; font-weight: bold; color: var(--primary-color); margin-bottom: 10px; }
.finder-select-modern {
    width: 100%; padding: 15px; border-radius: 8px;
    border: 2px solid #eee; background: #fafafa;
    font-size: 1rem; color: var(--text-color); outline: none; transition: 0.3s;
}
.finder-select-modern:focus { border-color: var(--accent-color); }
.gas-tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.gas-tag {
    display: inline-flex; align-items: center; padding: 10px 15px;
    background: #eee; border-radius: 30px; cursor: pointer;
    font-size: 0.9rem; font-weight: bold; transition: 0.2s; user-select: none; border: 2px solid transparent;
}
.gas-tag input { display: none; }
.fm-result-container { margin-top: 30px; border-top: 2px solid #eee; padding-top: 30px; display: none; animation: fadeIn 0.5s ease; }
.fm-result-card { text-align: center; background: var(--secondary-color); padding: 20px; border-radius: 10px; }
.fm-result-card img { height: 150px; object-fit: contain; margin-bottom: 15px; }
.fm-turnkey-promo { margin-top: 20px; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.fm-turnkey-promo .btn-primary { background: white; color: var(--primary-color) !important; margin-top: 15px; width: 100%; display: block;}
.fm-turnkey-promo .btn-primary:hover { background: var(--dark-bg); color: white !important;}

.product-card-back {
    transform: rotateY(180deg);
    background: var(--secondary-color);
    padding: 30px;
}
.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Vous pourrez remplacer ce background par de vraies images via CSS ou HTML plus tard */
}
.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-content h3 { color: var(--dark-bg); margin-bottom: 10px; font-size: 1.4rem; }
.product-content p { color: var(--text-color); margin-bottom: 20px; flex: 1; }
.product-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-color); font-weight: bold; text-decoration: none; transition: color 0.3s; }
.product-card:hover .product-link { color: var(--accent-color); }
.product-link i { transition: transform 0.3s; }
.product-card:hover .product-link i { transform: translateX(5px); }

.product-click-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--white);
    background: var(--accent-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: pulse-click 2s infinite;
    pointer-events: none;
}
@keyframes pulse-click {
    0% { box-shadow: 0 0 0 0 rgba(138, 158, 168, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(138, 158, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 158, 168, 0); }
}

/* --- REAL PHOTOS GALLERY --- */
.real-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.real-photo-card {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #000;
}
.real-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
    cursor: pointer;
}
.real-photo-card:hover .real-photo-img {
    transform: scale(1.1);
    opacity: 1;
}

/* --- IMAGE LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}
.lightbox-close:hover {
    color: var(--accent-color);
}

/* --- GLOBAL PRESENCE --- */
.global-presence-section {
    background-color: var(--white);
    color: var(--text-color);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}
.global-presence-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 50px;
}
.gp-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 2;
}
.gp-stat-item {
    display: flex;
    align-items: center;
    gap: 25px;
}
.gp-stat-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    width: 70px;
    text-align: center;
}
.gp-stat-content h3 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: var(--primary-color);
}
.gp-stat-content p {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: var(--text-color);
}
.gp-map {
    flex: 1.5;
    min-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-map img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply; /* Rend le fond blanc de la carte invisible */
}
@media (max-width: 992px) {
    .gp-map { min-width: 100%; margin-top: 50px; }
}

/* --- PROCESSUS D'INGÉNIERIE --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
}

@media (min-width: 992px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 100px;
        right: 100px;
        height: 2px;
        background: var(--accent-color);
        z-index: 0;
        opacity: 0.4;
    }
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 20px;
    border: 6px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.process-step h3 {
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- L'ÉQUIPE --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.team-card {
    text-align: center;
}
.team-avatar {
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}
.team-card h3 {
    color: var(--dark-bg);
    margin-bottom: 5px;
}
.team-card p {
    color: var(--primary-color);
    font-weight: 500;
}

/* --- MARQUEE CLIENTS --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--white);
    padding: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
}

.marquee-content {
    display: flex;
    animation: scrollMarquee 30s linear infinite;
    white-space: nowrap;
    align-items: center;
}
.marquee-content span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 40px;
    text-transform: uppercase;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@media (prefers-reduced-motion: reduce) {
    .marquee-content { animation: none; }
    .hidden-anim { transition: none; }
    .scroll-to-top { transition: none; }
}

/* --- ACCORDÉON FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
}
.faq-header {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--dark-bg);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq-header:hover {
    background-color: var(--secondary-color);
}
.faq-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: var(--white);
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-content.open {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* --- SECTION CONTACT --- */
.bg-dark { background-color: var(--secondary-color); }

/* --- BLUEPRINT INTERACTIF --- */
.blueprint-container { position: relative; max-width: 800px; margin: 0 auto; background: var(--white); border-radius: 8px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.blueprint-img { width: 100%; height: 400px; display: block; background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800') center/cover; opacity: 0.8; border-radius: 4px; }
.hotspot { position: absolute; width: 24px; height: 24px; background: var(--accent-color); border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); z-index: 10; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(138, 158, 168, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(138, 158, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(138, 158, 168, 0); } }
.hotspot-tooltip { position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 200px; background: var(--dark-bg); color: var(--white); padding: 15px; border-radius: 4px; font-size: 0.9rem; opacity: 0; visibility: hidden; transition: 0.3s; pointer-events: none; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.hotspot-tooltip strong { color: var(--accent-color); display: block; margin-bottom: 5px; font-size: 1rem;}
.hotspot-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 8px; border-style: solid; border-color: var(--dark-bg) transparent transparent transparent; }
.hotspot:hover .hotspot-tooltip { opacity: 1; visibility: visible; bottom: 150%; }
.blueprint-container.hide-hotspots .hotspot { display: none !important; }

/* --- TERMINAL SCADA --- */
.terminal-wrapper { max-width: 800px; margin: 0 auto; background: #1e1e1e; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); overflow: hidden; }
.terminal-header { background: #333; padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.terminal-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.term-title { margin-left: 15px; color: #aaa; font-family: monospace; font-size: 0.9rem; }
.terminal-body { padding: 30px; font-family: 'Courier New', Courier, monospace; color: #27c93f; min-height: 250px; font-size: 1.1rem; line-height: 1.8; }
.term-cursor { display: inline-block; width: 10px; height: 1.1rem; background: #27c93f; animation: blink 1s step-end infinite; vertical-align: bottom; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- SCADA DASHBOARD --- */
.scada-dashboard {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 0 20px rgba(138, 158, 168, 0.1);
}
.scada-header {
    background: rgba(138, 158, 168, 0.15);
    color: var(--accent-color);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.scada-body {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 40px;
}
.scada-chart {
    flex: 2;
    min-width: 200px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    border-bottom: 1px solid #333;
    border-left: 1px solid #333;
    padding: 10px;
}
.scada-bar {
    flex: 1;
    background: var(--primary-color);
    height: 0%;
    animation: animateBar 1s ease-out forwards, fluctuateBar 4s infinite alternate;
    border-top: 2px solid #fff;
}
.scada-bar:nth-child(even) {
    animation-delay: 0.2s, 0.5s;
    background: var(--accent-color);
    border-top: 2px solid #fff;
}
@keyframes animateBar { to { height: var(--target); } }
@keyframes fluctuateBar {
    0% { height: var(--target); }
    100% { height: calc(var(--target) - 15%); }
}
.scada-status {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    color: #ddd;
    font-size: 0.95rem;
}
.status-row { display: flex; align-items: center; gap: 10px; }
.led { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pulse-green { background: #27c93f; box-shadow: 0 0 10px #27c93f; animation: blink-led 1.5s infinite; }
.pulse-orange { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; animation: blink-led 0.8s infinite; }
@keyframes blink-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 25px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 40px 0;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

/* --- LINKEDIN FEED WIDGET --- */
.linkedin-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.li-post { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; border: 1px solid #eaeaea;}
.li-post:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: #0A66C2;}
.li-header { display: flex; align-items: center; padding: 20px; gap: 15px; border-bottom: 1px solid #f5f5f5; }
.li-avatar { width: 50px; height: 50px; border-radius: 5px; object-fit: contain; background: var(--secondary-color); padding: 5px; }
.li-meta { flex: 1; display: flex; flex-direction: column; }
.li-meta strong { color: var(--dark-bg); font-size: 1rem; line-height: 1.2; }
.li-meta span { color: #888; font-size: 0.85rem; margin-top: 2px;}
.li-icon { color: #0A66C2; font-size: 1.5rem; }
.li-content { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 15px; }
.li-content p { color: var(--text-color); font-size: 0.95rem; line-height: 1.5; margin: 0; flex: 1; }
.li-image { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; border: 1px solid #f0f0f0;}
.li-footer { padding: 15px 20px; border-top: 1px solid #f5f5f5; background: #fafafa; text-align: center; }
.li-btn { display: inline-block; padding: 8px 25px; background: white; color: #0A66C2 !important; border: 2px solid #0A66C2; text-decoration: none; border-radius: 30px; font-weight: bold; font-size: 0.9rem; transition: all 0.3s; }
.li-btn:hover { background: #0A66C2; color: white !important; }

/* --- COOKIE BANNER (POPUP MODAL) --- */
.cookie-banner {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}
.cookie-banner.show { opacity: 1; visibility: visible; }

.cookie-popup {
    background: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show .cookie-popup { transform: translateY(0) scale(1); }
.cookie-popup i { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; }
.cookie-popup h3 { font-size: 1.6rem; color: var(--dark-bg); margin-bottom: 15px; }
.cookie-popup p { font-size: 1.05rem; margin-bottom: 25px; color: #555; }
.cookie-popup a { color: var(--accent-color); text-decoration: underline; font-weight: bold; }
.cookie-buttons { display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons-row { display: flex; gap: 15px; justify-content: center; width: 100%; }
.cookie-buttons-row button { flex: 1; }
.cookie-buttons .btn-primary { margin: 0; padding: 12px 20px; font-size: 1rem; border: none; cursor: pointer; border-radius: 8px;}
.cookie-buttons .btn-secondary { margin: 0; padding: 12px 20px; font-size: 1rem; background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; }
.cookie-buttons .btn-secondary:hover { background: var(--primary-color); color: var(--white); }
.cookie-buttons .btn-text { background: none; border: none; color: #888; text-decoration: underline; cursor: pointer; padding: 10px; font-size: 0.95rem; transition: color 0.3s; margin-top: 5px;}
.cookie-buttons .btn-text:hover { color: var(--text-color); }

/* --- ANIMATIONS (DÉCLENCHÉES PAR JS) --- */
.hidden-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* --- BANNIÈRE CLÉ EN MAIN (TURNKEY PROJECTS) --- */
.turnkey-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
    overflow: hidden;
}
.turnkey-banner::before {
    content: ''; position: absolute; top: -50%; left: -10%;
    width: 400px; height: 400px; background: rgba(255,255,255,0.08);
    border-radius: 50%; animation: float-blob 10s infinite alternate ease-in-out;
    pointer-events: none;
}
.turnkey-banner::after {
    content: ''; position: absolute; bottom: -50%; right: -10%;
    width: 300px; height: 300px; background: rgba(255,255,255,0.08);
    border-radius: 50%; animation: float-blob 8s infinite alternate-reverse ease-in-out;
    pointer-events: none;
}
@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- BOUTON PDF & IMPRESSION (DATASHEETS) --- */
.btn-pdf-download {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-pdf-download:hover {
    transform: translateY(-5px);
    background-color: var(--dark-bg);
}
@media print {
    .no-print, .btn-pdf-download, .site-header, .site-footer, .cookie-banner, .btn-contact, .btn-selector {
        display: none !important;
    }
    body {
        background-color: white !important;
        color: black !important;
    }
    .service-card, .product-card, .grid-3 {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* Bouton Hamburger caché par défaut (PC) */
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 2rem; color: var(--primary-color); cursor: pointer; transition: color 0.3s; }
.mobile-menu-toggle:hover { color: var(--accent-color); }

/* =========================================
   📱 OPTIMISATIONS MOBILES & TABLETTES
   ========================================= */
@media (max-width: 850px) {
    /* 1. Fix pour éviter que la page ne "déborde" sur le côté */
    body, html { overflow-x: clip; } /* Remplacer hidden par clip pour préserver le bandeau fixe */
    .container { width: 95%; }
    
    /* 2. Typographie et Espacements globaux */
    h1 { font-size: 2.2rem !important; }
    .section-title { font-size: 1.8rem !important; margin-bottom: 30px; }
    .section-padding { padding: 50px 0; }
    .hero-section { padding: 80px 15px; }
    
    /* 3. Menu de Navigation (Menu Hamburger) */
    .mobile-menu-toggle { display: block; position: absolute; left: 15px; z-index: 1010; }
    .header-content { flex-direction: row; justify-content: center; align-items: center; padding: 15px 0; position: relative; width: 100%; }
    .logo { display: flex; justify-content: center; z-index: 1005; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--secondary-color); padding: 20px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-top: 1px solid #ddd; z-index: 1000; }
    .main-nav.active { display: block; animation: slideDown 0.3s ease; }
    .main-nav ul { flex-direction: column; gap: 20px; font-size: 1.1rem; }
    .main-nav .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.03); display: none; margin-top: 10px; padding: 10px 0; }
    .main-nav .dropdown:active .dropdown-menu, .main-nav .dropdown:hover .dropdown-menu { display: flex; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    
    /* 4. Grilles et Cartes */
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .product-grid { grid-template-columns: 1fr; }
    .service-card, .product-card-back { padding: 20px; }
    .process-grid::before { display: none; } /* Enlève la ligne du processus sur mobile */
    
    /* 6. Contact & Formulaires */
    .contact-container { padding: 20px; flex-direction: column; gap: 30px; }
    .contact-info, .contact-form { min-width: 100%; }
    
    /* 7. Modales et Fenêtres (Cookies, Guide de choix) */
    .finder-modal-content { width: 95%; padding: 20px; max-height: 85vh; }
    .cookie-popup { width: 95%; padding: 20px; }
    .cookie-buttons-row { flex-direction: column; gap: 10px; }
    
    /* 8. Schéma Interactif et Éléments de Présence Globale */
    .blueprint-img { height: 50vw !important; min-height: 200px !important; }
    .hotspot-tooltip { width: 150px; font-size: 0.8rem; padding: 10px; }
    .gp-stat-content h3 { font-size: 2.5rem; }
    .global-presence-container { flex-direction: column; text-align: center; }
    .gp-stat-item { flex-direction: column; gap: 10px; }
    
    /* 9. Fiches Techniques (Tableaux) */
    .specs-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 13px; }
}

/* --- BOUTON REMONTER EN HAUT (SCROLL TO TOP) --- */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 32px;
    width: 50px;
    height: 50px;
    background-color: var(--dark-bg);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9989;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background-color: var(--primary-color); transform: translateY(-5px); }
@media (max-width: 850px) {
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem; }
}

/* --- ACCESSIBILITÉ : Focus Visible (Navigation Clavier) --- */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 3px;
}
/* Photo hover zoom — replaces inline onmouseover/onmouseout */
.real-photo-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}
.real-photo-img:hover {
    transform: scale(1.05);
    opacity: 1;
}
