/* Variables de couleurs - Thème Ocelys */
:root {
    --logo-blue: #0073CF;
    --logo-green: #388E3C;
    --logo-navy: #16264c;
    
    --bg-page: #f8fbff;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
}

/* === NAVBAR === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--logo-blue);
}
.logo-circle {
    background: var(--logo-blue);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
}
.nav-links a:hover {
    color: var(--logo-blue);
}

/* === BUTTONS === */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background-color: var(--logo-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--logo-green);
}
.btn-outline {
    background-color: var(--white);
    color: var(--logo-blue);
    border: 2px solid var(--logo-blue);
}
.btn-outline:hover {
    background-color: var(--logo-blue);
    color: var(--white);
}
.w-100 { width: 100%; }

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 6rem 2rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--logo-navy);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.text-blue { color: var(--logo-blue); }
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* === COMMON === */
.products-section, .about-section, .contact-section {
    padding: 5rem 5%;
    background-color: var(--white);
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--logo-navy);
}
.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--logo-green);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}
.title-underline.left { margin: 1rem 0 1.5rem 0; }
.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

/* === PRODUITS (CARTES) === */
.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 330px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.card-header {
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-light-gray { background-color: #f8fafc; }

/* Style pour les vraies images des produits */
.product-img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.card:hover .product-img {
    transform: scale(1.1);
}

.card-body { padding: 2rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--logo-navy); }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; min-height: 60px; }
.features { list-style: none; margin-bottom: 2rem; min-height: 80px; }
.features li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--logo-blue);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
}
.btn-card:hover { background-color: var(--bg-page); }

/* === FENÊTRES MODALES (FICHES DÉTAILLÉES PRODUITS) === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 750px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.modal-grid img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
}

.modal-grid h2 {
    font-size: 1.8rem;
    text-align: left;
    color: var(--logo-navy);
    margin-bottom: 0.5rem;
}

.modal-format {
    color: var(--logo-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-grid h4 {
    color: var(--logo-navy);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.modal-grid .btn-primary {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* === A PROPOS === */
.about-section { background-color: var(--bg-page); }
.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.about-text { flex: 1; }
.about-text h2 { text-align: left; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-icons {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}
.icon-box {
    display: flex;
    align-items: center;
}
.about-blocks {
    flex: 1;
    display: flex;
    gap: 1.5rem;
}
.block {
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--logo-navy);
}
.block-lab {
    width: 50%;
    background-color: #e0f2fe;
    color: #0284c7;
}
.block-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.block-qual { height: 180px; background-color: #d1fae5; color: #059669; }
.block-dist { height: 180px; background-color: #f1f5f9; color: #475569; }

/* === CONTACT === */
.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.contact-info {
    flex: 1;
    background-color: var(--logo-navy);
    color: white;
    padding: 3rem;
}
.contact-info h3 { margin-bottom: 2rem; font-size: 1.5rem; }
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.social-links { margin-top: 3rem; }
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.s-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.9rem;
}

.contact-form {
    flex: 1.5;
    background-color: var(--white);
    padding: 3rem;
}
.form-row { display: flex; gap: 1rem; }
.input-group {
    margin-bottom: 1.5rem;
    flex: 1;
}
.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--logo-blue);
}

/* === FOOTER === */
footer {
    background-color: var(--logo-navy);
    color: white;
    padding: 2rem 5%;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo { font-weight: 800; font-size: 1.2rem; }
.footer-text { color: #94a3b8; font-size: 0.9rem; }
.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

/* === RESPONSIVE (POUR MOBILE) === */
@media (max-width: 768px) {
    .contact-card, .about-grid {
        flex-direction: column;
    }
    .about-blocks {
        width: 100%;
    }
    .modal-grid {
        flex-direction: column;
        text-align: center;
    }
    .modal-grid h2 {
        text-align: center;
    }
}