:root {
    --primary-blue: #003366;
    --secondary-blue: #0059b3;
    --accent-orange: #ff6600;
    --deep-blue-dark: #001a33;
    --text-dark: #212529;
    --white: #ffffff;
    --text-light-on-dark: rgba(255, 255, 255, 0.8);
    --border-color-dark: rgba(0, 89, 179, 0.3);
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--deep-blue-dark);
    color: var(--text-light-on-dark);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1, h2, h3 { font-weight: 900; color: var(--white); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); text-align: center; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 1px; text-shadow: 1px 1px 5px rgba(0,0,0,0.2); }
h3 { font-size: 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
p { margin-bottom: 1rem; }


header {
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.8), rgba(0, 89, 179, 0.8));
    backdrop-filter: blur(10px);
    padding: 0 1.5rem; position: sticky; top: 0; z-index: 1000;
    border-bottom: 4px solid var(--accent-orange);
}
header nav { display: flex; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto; height: 110px; position: relative; }
.logo { z-index: 1002; transition: transform var(--transition); }
.logo:hover { transform: scale(1.05); }

/* 
   LA CORRECTION EST ICI : width passe de 150px à 200px 
*/
.logo a { width: 200px; display: block; }

.logo img { width: 100%; height: auto; }

/* --- MENU BURGER ET MOBILE --- */
.menu-toggle {
    background: transparent; border: none; cursor: pointer;
    width: 40px; height: 40px; position: relative; z-index: 1002;
    display: flex; align-items: center; justify-content: center;
}
.hamburger { position: relative; width: 30px; height: 4px; background-color: var(--white); border-radius: 4px; transition: all 0.3s ease-in-out; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 4px; background-color: var(--white); border-radius: 4px; transition: all 0.3s ease-in-out; }
.hamburger::before { top: -10px; }
.hamburger::after { bottom: -10px; }
.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); background-color: var(--accent-orange); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); background-color: var(--accent-orange); }

.nav-menu-mobile {
    list-style: none; position: fixed;
    top: 0; right: -100%; width: min(85vw, 400px); height: 100vh;
    padding: 7rem 2rem;
    background: var(--deep-blue-dark);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    border-left: 2px solid var(--accent-orange);
    display: flex; flex-direction: column; align-items: center;
    gap: 2rem; transition: right var(--transition); z-index: 1001;
}
.nav-menu-mobile.active { right: 0; }
.nav-menu-mobile a { font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; transition: color var(--transition); }
.nav-menu-mobile a:hover { color: var(--accent-orange); }

.nav-right-group { display: none; }

@media (min-width: 1024px) {
    header nav { height: 120px; }
    .logo a { position: absolute; top: 50%; transform: translateY(-50%); left: 1.5rem; width: 200px; }
    .menu-toggle { display: none; }
    .nav-right-group { display: flex; align-items: center; gap: 2.5rem; margin-left: auto; }
    .nav-menu-desktop { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
    .nav-menu-desktop a { font-size: 1rem; font-weight: 500; color: var(--white); white-space: nowrap; text-decoration: none; position: relative; padding: 5px 0; }
    .nav-menu-desktop a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-orange); transition: width var(--transition); }
    .nav-menu-desktop a:hover::after { width: 100%; }
    .header-cta { display: block; }
    .header-cta .phone-link { background-color: var(--accent-orange); color: var(--white); padding: 0.8rem 1.6rem; border-radius: 50px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .header-cta .phone-link:hover { background-color: #e65c00; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(255,102,0,0.3); }
    .nav-menu-mobile { display: none; }
}


main section { padding: 5rem 0; overflow: hidden; border-bottom: 1px solid var(--border-color-dark); }
main section:last-of-type, #hero { border-bottom: none; }
ul { list-style: none; }
main ul li:not(.contact-details ul li) { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
main ul li:not(.contact-details ul li)::before { content: '■'; position: absolute; left: 0; top: 0; color: var(--accent-orange); font-size: 1.2rem; line-height: 1.3; }
.bg-theme ul li::before { color: var(--accent-orange); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--primary-blue); border: 1px solid var(--border-color-dark);
    padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-medium);
    text-align: left; transition: all var(--transition);
}
.card:hover { transform: translateY(-8px); border-color: var(--accent-orange); }
.card h3 { color: var(--white); margin-bottom: 1rem; }
.card p, .card li { color: var(--text-light-on-dark); margin-bottom: 0; }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1; color: var(--accent-orange); }


#hero { min-height: calc(100vh - 110px); position: relative; color: var(--white); display: flex; align-items: center; text-align: center; padding: 3rem 1.5rem; }
#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
#hero::before { content: ''; position: absolute; inset: 0; background-color: rgba(0, 20, 40, 0.7); z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-content .slogan { margin: 1.5rem 0 2.5rem; font-size: 1.3rem; font-weight: 500; }
.cta-button { display: inline-block; background-color: var(--accent-orange); color: var(--white); padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; text-transform: uppercase; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all var(--transition); text-decoration: none; letter-spacing: 1px; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

#bottom-cta { position: relative; color: var(--white); text-align: center; background-image: linear-gradient(rgba(0,26,51,0.9), rgba(0,51,102,0.9)), url('/assets/image/chambre_froide01.jpeg'); background-size: cover; background-position: center; padding: 6rem 1.5rem; }
#bottom-cta .container { position: relative; z-index: 1; }
#bottom-cta p { max-width: 600px; margin-inline: auto; font-size: 1.1rem; }


#page-header { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: var(--white); text-align: center; border-bottom: none; padding: 5rem 1.5rem; }
#page-header h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
#page-header p { max-width: 700px; margin-inline: auto; font-size: 1.1rem; color: var(--text-light-on-dark); }

.content-section { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.content-text h2 { text-align: left; }
.content-image img { width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); }

.departments-list h3 { color: var(--white); }
.departments-list ul li { background: var(--primary-blue); border-color: var(--border-color-dark); }
.departments-list ul li:hover { border-color: var(--accent-orange); background: var(--secondary-blue); }
.departments-list ul li strong { color: var(--accent-orange); }


.contact-layout {
    display: flex; /* Utilise Flexbox pour mobile */
    flex-direction: column; /* Empile les cartes verticalement */
    gap: 2rem; /* Espace entre les cartes */
}
.contact-details li { display: flex; align-items: flex-start; margin-bottom: 2rem; }
.contact-icon { font-size: 1.75rem; margin-right: 1.5rem; color: var(--accent-orange); line-height: 1.4; flex-shrink: 0; }
.contact-details a { font-weight: 700; color: var(--white); }
.contact-details a:hover { color: var(--accent-orange); }

.contact-form label { margin-bottom: 0.5rem; font-weight: 700; color: var(--white); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.875rem 1rem; border-radius: 8px; font-size: 1rem; transition: all var(--transition); background: rgba(0,0,0,0.2); border: 1px solid var(--border-color-dark); color: var(--white); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent-orange); background: rgba(0,0,0,0.3); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.3); }
.form-group { margin-bottom: 1.5rem; }


footer { background: #000; color: var(--text-light-on-dark); padding: 5rem 0 2rem; border-top: 4px solid var(--primary-blue); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 3rem; }
.footer-section h3 { border-bottom: 2px solid var(--accent-orange); display: inline-block; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.footer-section a { font-weight: 500; color: var(--white); text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover, .footer-section strong { color: var(--accent-orange); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.footer-bottom a { color: var(--accent-orange); font-weight: 700; }


@media (min-width: 768px) { .equipment-category ul { columns: 2; } }
@media (min-width: 992px) {
    .content-section { flex-direction: row; gap: 4rem; }
    .content-section.reverse { flex-direction: row-reverse; }
    .contact-layout { display: grid; grid-template-columns: 40% 1fr; gap: 2rem; }
}