/* --- ARCHITECTURE DESIGN : INSPIRATION AMS 22 --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Oswald:wght@400;500;700;900&display=swap');

:root {
    /* Charte graphique AMS 22 : Orange vif et tons clairs dominants */
    --theme-orange: #FF6B00; 
    --theme-dark: #232b38; 
    --bg-main: #ffffff;
    --bg-secondary: #f4f6f9; /* Gris très clair pour les sections alternées */
    --text-main: #2D3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;

    /* Ombres discrètes et plates (Style AMS 22) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    
    --transition-fluid: all 0.3s ease;
}

/* --- SYSTÈME DE NOTATION ÉTOILES --- */
#star-rating { display: flex; gap: 8px; cursor: pointer; }
#star-rating i { font-size: 1.8rem; color: #cbd5e1; transition: 0.2s; }
#star-rating i.active { color: var(--theme-orange) !important; }
#star-rating i:hover, #star-rating i:hover ~ i.active { color: var(--theme-orange) !important; }
    
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
}

/* --- UTILS --- */
.text-gradient { color: var(--theme-orange); } /* Suppression du dégradé noir pour l'orange uni d'AMS 22 */
.text-center { text-align: center; }
.section-padding { padding: 100px 8% 60px; max-width: 1200px; margin: 0 auto; }
.bg-secondary { background-color: var(--bg-secondary); }

/* --- TYPOGRAPHIE --- */
.subtitle { 
    font-family: 'Oswald', sans-serif; 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--theme-orange); 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 8px; 
}
.section-title { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.3; 
    font-family: 'Oswald', sans-serif; 
    color: var(--theme-dark);
    margin-bottom: 20px; 
}
.section-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 650px; margin: 0 auto 40px; }
@media(max-width: 768px) { .section-title { font-size: 2rem; } }

/* --- HERO SECTION STRUCTURE AMS 22 --- */
#hero { 
    background: linear-gradient(rgba(35, 43, 56, 0.65), rgba(35, 43, 56, 0.65)), 
                url('images/drywall.jpg') no-repeat center center;
    background-size: cover;
    height: 70vh; /* Moins haut, plus compact comme AMS 22 */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    margin-top: 0;
}

#hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    font-weight: 700;
    letter-spacing: 1px; 
    text-transform: uppercase; 
}
.hero-sub { 
    font-size: 1.3rem; 
    margin-bottom: 35px; 
    font-weight: 400; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #hero {
        height: 55vh;
        background-position: center;
    }
    #hero h1 { font-size: 2rem; margin-top: 60px; }
    .hero-sub { font-size: 1rem; }
}

/* --- NAVIGATION HEADER --- */
#main-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    transform: none; 
    width: 100%; 
    max-width: none; 
    background: #ffffff; 
    border-bottom: 1px solid var(--border-color); 
    border-radius: 0; /* Menu classique pleine largeur en haut de page */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    z-index: 1000; 
    box-shadow: var(--shadow-sm); 
    transition: var(--transition-fluid); 
}
.logo-container { text-decoration: none; }
.logo { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--theme-dark); display: flex; align-items: center; }
.logo span { color: var(--theme-orange); }
.logo-lightning { font-size: 1.1rem; margin: 0 6px; color: var(--theme-orange); }

.main-nav ul { list-style: none; display: flex; gap: 25px; }
.nav-link { text-decoration: none; color: var(--theme-dark); font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; transition: var(--transition-fluid); text-transform: uppercase; }
.nav-link:hover { color: var(--theme-orange); }

/* --- BOUTONS UNIFORMES --- */
.cta-container { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cta-flyer { 
    background: var(--theme-orange); 
    color: #ffffff; 
    padding: 12px 28px; 
    border-radius: 4px; /* Coins légèrement carrés professionnels */
    text-decoration: none; 
    font-weight: 600; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.95rem; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: 1px solid var(--theme-orange); 
    cursor: pointer; 
    transition: var(--transition-fluid); 
    box-shadow: none; /* Pas d'ombre flashy sur les boutons d'artisan traditionnel */
}
.cta-flyer:hover { 
    background: #e05e00; 
    border-color: #e05e00;
    transform: translateY(-1px); 
    color: #ffffff; 
}
.cta-outline { background: transparent; color: var(--theme-dark); border: 1px solid var(--theme-dark); }
.cta-outline:hover { background: var(--theme-dark); color: #ffffff; border-color: var(--theme-dark); }

/* --- CARTES ET BLOCS DE SERVICES (Inspiré d'AMS 22) --- */
.encart-box, .encart-flyer { 
    background: #ffffff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 25px; 
    box-shadow: var(--shadow-sm); 
    transition: var(--transition-fluid); 
}
.encart-box:hover, .encart-flyer:hover { 
    box-shadow: var(--shadow-md); 
    border-color: var(--theme-orange); 
}
.encart-title { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--theme-dark); margin-bottom: 12px; }
.encart-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }

/* --- GRILLE DE SERVICES REVISITÉE --- */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.modern-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fluid);
    z-index: 1;
}

/* Suppression de l'effet d'opacité dégradé noir d'origine */
.modern-card::before { display: none; }

.modern-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-orange);
    box-shadow: var(--shadow-md);
}

.modern-card-icon {
    width: 60px;
    height: 60px;
    background: #fff4ec;
    color: var(--theme-orange);
    border-radius: 8px; /* Carré adouci comme les sections d'AMS 22 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition-fluid);
}

.modern-card:hover .modern-card-icon {
    background: var(--theme-orange);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.modern-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    color: var(--theme-dark);
    margin-bottom: 12px;
}

.modern-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- GALERIE --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition-fluid); background: #f8fafc; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-fluid); }
.gallery-item:hover img { transform: scale(1.02); }

/* --- RESPONSIVE MENU --- */
.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.mobile-menu-btn span { width: 26px; height: 3px; background-color: var(--theme-dark); transition: 0.3s; border-radius: 3px; }

@media(max-width: 900px) {
    #main-header { padding: 15px 5%; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #ffffff; padding: 20px; border-radius: 0; box-shadow: var(--shadow-md); flex-direction: column; align-items: center; display: none; border-bottom: 1px solid var(--border-color); }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; text-align: center; gap: 12px; }
    .mobile-menu-btn { display: flex; }
}

/* --- FOOTER STANDARD AMS 22 --- */
.site-footer { background: var(--theme-dark); border-top: none; padding: 50px 5% 20px; margin-top: 60px; color: #ffffff; }
.site-footer .logo { color: #ffffff; }
.site-footer .nav-link { color: #cbd5e1; }
.site-footer .nav-link:hover { color: var(--theme-orange); }
.site-footer .text-desc { color: #94a3b8 !important; }

.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #ffffff !important; font-family: 'Oswald', sans-serif; font-size: 1.2rem; }

.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 0.85rem; max-width: 1200px; margin: 0 auto; }