/* ==========================================================================
   THEME ROOFER PRO - GLOBAL STYLES
   ========================================================================== */

:root {
    /* Palette de couleurs Roofer */
    --primary: #ff5e14; /* Orange vif */
    --primary-dark: #e65100;
    --secondary: #101d2c; /* Bleu-Noir profond */
    --secondary-light: #1a2b3c;
    --text-main: #666666;
    --text-dark: #111111;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #eeeeee;
    
    /* Spacing & Effects */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 4px;
}

/* Reset & Base */
*, *::after, *::before { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5 { color: var(--text-dark); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 25px; }
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Layout Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light-gray); }

/* ==========================================================================
   HEADER & NAVIGATION (FIXED)
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Topbar */
.topbar {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-info span { margin-right: 20px; }
.topbar-info i { color: var(--primary); margin-right: 8px; }

/* Navbar Main */
.navbar { padding: 20px 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 26px; font-weight: 900; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary); }

.header-cta { display: flex; gap: 15px; align-items: center; }

/* Buttons Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); }

.btn-dark { background: var(--secondary); color: var(--white); }
.btn-dark:hover { background: var(--primary); transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ==========================================================================
   COMPONENTS: CARDS & SERVICES
   ========================================================================== */

.service-card {
    background: var(--white);
    padding: 45px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--secondary);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service-card:hover::before { background: var(--primary); }

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.service-card img { width:100% }
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }

.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.feature-list i { color: var(--primary); font-size: 14px; }

/* ==========================================================================
   GRID SYSTEM
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
footer h4 { color: var(--white); margin-bottom: 25px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0px; padding-top: 30px; text-align: center; font-size: 14px; }

/* ==========================================================================
   RESPONSIVE (ADVANCED)
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    
    /* Header Responsive 1 ligne */
    .navbar { padding: 12px 0; }
    .logo { font-size: 18px; }
    .header-cta .btn-primary { display: none; } /* On cache le mail sur petit mobile */
    .header-cta .btn-dark { padding: 10px 15px; font-size: 13px; }
}

@media (max-width: 480px) {
    .logo span { display: none; } /* Réduction extrême du nom */
}