* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Arial', sans-serif; }
body.home { 
    line-height: 1.7; 
    color: #333; 
    background-image: url("images/accueil.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.services {
  background-image: url("images/TD.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.produits {
  background-image: url("images/produits.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.devis {
  background-image: url("images/devis.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.contact {
  background-image: url("images/contact.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header/Nav */
header { background: rgba(0, 0, 0, 0); color: rgb(255, 255, 255); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
nav { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: bold; }
.logo img { max-height: 150px; width: auto; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 5px; transition: all 0.3s; }
nav a:hover, .active { background: rgba(255,255,255,0.3); }
.menu-item {
    background-color: #0000007d;
    padding: 15px;
    border-radius: 8px;
}

.menu-item ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Hero */
.hero { background: linear-gradient(135deg, #00000000 0%, #efefef00 100%); color: #18172a; text-align: center; padding: 1rem 2rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.3rem; margin-bottom: 1rem; max-width: 650px; margin-left: auto; margin-right: auto; }
.btn { background: linear-gradient(135deg, #000291, rgba(35,38,212,0.79)); color: white; padding: 1rem 3rem; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.15rem; display: inline-block; transition: all 0.4s; box-shadow: 0 6px 20px rgba(6, 11, 73, 0.6); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(3, 5, 35, 0.6); }

/* Présentation */
.presentation { margin: 5rem auto; }
.presentation h2 { text-align: center; font-size: 2rem; margin-bottom: 4rem; color: #18172a; }
.presentation p { color: #ffffff; margin-bottom: 1rem; }
.services-description { 
    font-size: 1.15rem; 
    line-height: 1.85; 
    color: white;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #000000c3 0%, #2326d4c9 100%);
    padding: 2rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Grille cards */
.cards-section {
    margin: 5rem auto;
    padding: 0 2rem;
    max-width: 1200px;
}

.gamme-chips-large { margin-top: 1rem; }
.gamme-chips-small { margin-top: 0.5rem; margin-bottom: 1rem;}

.card-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.card { 
    flex: 1 1 300px;
    max-width: 500px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden; 
    
}

.card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 6px; 
    border-radius: 15px 15px 0 0; 
}

/* Couleurs différentes par carte */
.card.fabrique::before {
    background: linear-gradient(90deg, #1461db, #002077);
}

.card.projets::before {
    background: linear-gradient(90deg, #1461db, #002077);
}

.card.avantages::before {
    background: linear-gradient(90deg, #1461db, #002077);
}

.card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.card h3 { color: #000000; margin-bottom: 1.8rem; font-size: 1.5rem; }
.card ul { list-style: none; }

.card li { 
    padding: 0.75rem 1rem 0.75rem 2rem;
    position: relative; 
    color: #666; 
    font-size: 1rem;
}

/* Icônes différentes par carte */
.card.fabrique li::before { 
    content: '⚡'; 
    position: absolute; 
    left: 0; 
    font-size: 1.1rem;
}
.card.projets li::before { 
    content: '🏢'; 
    position: absolute; 
    left: 0; 
    font-size: 1.1rem;
}

.card li span {
    color: #000000ae; 
    font-weight: bold; 
    font-size: 0.9rem; 
    margin-right: 0.4rem;
    display: inline-block;
    max-width: 90%;
    word-break: break-word;
}


.card.projets li span {
    color: #666;
    font-weight: normal;
    font-size: 0.85rem;
    font-style: italic;
    display: block;
    margin-left: 1rem;
    margin-top: 0.3rem;
    padding-left: 0.5rem;
    border-left: 3px solid #153bd6;
    background: #f0f5ff;
    padding: 0.5rem;
    border-radius: 4px;
}


.kit-compo li {
    padding: 0.75rem 1rem 0.75rem 2rem !important;
    color: #666;
    font-size: 1rem;
    font-weight: normal;
}

.kit-compo li::before {
    content: '' !important;
}

.kit-compo li span {
    color: #666666;
    font-weight: normal;
    font-size: 0.85rem;
    font-style: italic;
    display: block;
    padding-left: 0.5rem;
    border-left: 3px solid #1461db;
    background: #f0f5ff;
    padding: 0.5rem;
    border-radius: 4px;
    margin-right: 0 !important;
    line-height: 1.6;
}

.card.avantages li::before { 
    content: '✔️'; 
    position: absolute; 
    left: 0; 
    font-size: 1.1rem;
}

.services-concret { 
    background: linear-gradient(180deg, #000000a2 0%, #282663c8 100%);
    padding: 3rem 2rem; 
    border-radius: 54px; 
    text-align: center; 
    box-shadow: 0 15px 50px #2826636e; 
    border: 1px solid #2826633f;
    margin: 5rem;
}

.services-concret p { 
    font-size: 1.25rem; 
    line-height: 1.6; 
    color: #ffffff; 
    font-weight: 500;
}

footer { 
    background: #ffffffa1; 
    color: rgb(0, 0, 0); 
    text-align: center; 
    padding: 1rem 2rem;
}

/* Style gamme-chips */
.gamme-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gamme-chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #fafafa;
    background: #ffffff;
    display: inline-block;
}

.gamme-chip.ou {
    border-color: #2fbadc;}

.gamme-chip.qui {
    border-color: #f50b0b;}

.gamme-chip.compo {
    border-color: #7c3aed;}

/* ===== MOBILE GLOBAL ======== */
/* ===== VERSION MOBILE OPTIMISÉE ===== */
@media (max-width: 768px) {
    /* HEADER */
    header { 
        position: static; 
        padding: 0.5rem 0;
    }
    
    nav { 
        flex-direction: column; 
        gap: 0.5rem; 
        padding: 0 1rem;
    }
    
    nav ul { 
        flex-direction: column; 
        gap: 0.5rem; 
        align-items: center; 
        width: 100%;
    }
    
    .menu-item {
        padding: 10px;
        width: 100%;
        text-align: center;
    }
    
    .menu-item ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo img { 
        max-height: 60px; 
    }

    /* HERO - Plus compact */
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    /* PRÉSENTATION - Plus aérée */
    .presentation {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .presentation h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .services-description {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 1.2rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    /* CARTES - Version plus fine */
    .cards-section {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .card-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .card {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 1rem;
        margin: 0;
        border-radius: 12px;
    }
    
    /* Réduction de tous les textes dans les cartes */
    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .card ul {
        margin: 0;
        padding: 0;
    }
    
    .card li {
        padding: 0.5rem 0.5rem 0.5rem 2rem;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .card li::before {
        font-size: 1rem;
        left: 0.2rem;
    }
    
    /* Style spécifique pour les spans dans les cartes */
    .card li span {
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0.4rem;
        margin-top: 0.2rem;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Cartes projets - plus compactes */
    .card.projets li span,
    .kit-compo li span {
        font-size: 0.8rem;
        padding: 0.4rem;
        margin-left: 0;
        margin-top: 0.2rem;
        border-left-width: 2px;
    }
    
    /* Gammes chips - plus petits */
    .gamme-chips {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }
    
    .gamme-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Section services concret - plus compacte */
    .services-concret {
        padding: 1.5rem 1rem;
        margin: 2rem 1rem;
        border-radius: 20px;
    }
    
    .services-concret p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Footer */
    footer {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== TRÈS PETITS ÉCRANS (moins de 480px) ===== */
@media (max-width: 480px) {
    .hero {
        padding: 1.2rem 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0 0.2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .presentation h2 {
        font-size: 1.4rem;
    }
    
    .services-description {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .card {
        padding: 1rem 0.8rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .card li {
        padding: 0.4rem 0.4rem 0.4rem 1.8rem;
        font-size: 0.85rem;
    }
    
    .card li span {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .card.projets li span,
    .kit-compo li span {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .gamme-chip {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .services-concret {
        padding: 1.2rem 0.8rem;
        margin: 1.5rem 0.8rem;
    }
    
    .services-concret p {
        font-size: 0.9rem;
    }
}

/* ===== ÉCRANS TRÈS PETITS (moins de 360px) ===== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .presentation h2 {
        font-size: 1.2rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .card li {
        font-size: 0.8rem;
        padding-left: 1.6rem;
    }
    
    .card li::before {
        font-size: 0.9rem;
    }
    
    .card li span {
        font-size: 0.7rem;
    }
}