/* ============================================
   HOUSE SERVICE S.A.S - STYLES GLOBAUX UNIFIÉS
   Architecture UI/UX Épurée & Professionnelle
   Typographie: Outfit (titres) + Roboto (texte)
   ============================================ */

:root {
    /* --- PALETTE COULEURS --- */
    --hs-red: #D32F2F;
    --hs-blue: #29B6F6;
    --hs-dark: #111827;
    --hs-gray-light: #F8FAFB;
    --hs-gray-border: #E5E7EB;
    
    /* --- FOND & TEXTE --- */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFB;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    
    /* --- OMBRES & EFFETS --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* --- ESPACEMENTS --- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* --- TYPOGRAPHIE STYLE GOOGLE --- */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ============================================
   RÉINITIALISATION & STYLES GÉNÉRAUX
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHIE - Échelle Google Style
   Titres: Outfit | Corps: Roboto
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* H1 - Grand Titre Héros: 3.5rem (56px) */
h1 { font-size: 3.5rem; }

/* H2 - Titres de Section: 2.25rem (36px) */
h2 { font-size: 2.25rem; }

/* H3 - Titres de Cartes: 1.5rem (24px) */
h3 { font-size: 1.5rem; }

/* H4 - Petits Titres: 0.9rem (14.4px) - Majuscules */
h4 { 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

h5 { font-size: 0.85rem; }
h6 { font-size: 0.8rem; }

/* Lead Text - Sous-titre Héros: 1.2rem (19.2px) */
.text-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Texte Standard: 1rem (16px) */
p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Texte Secondaire: 0.95rem (15.2px) */
.text-secondary {
    font-size: 0.95rem;
}

/* Petits Textes: 0.85rem (13.6px) */
.text-small,
.text-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

a {
    color: var(--hs-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hs-blue);
}

/* ============================================
   CONTENEUR & GRILLE
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-py {
    padding: 80px 0;
}

.section-py-md {
    padding: 60px 0;
}

.section-py-sm {
    padding: 40px 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--hs-red);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #B71C1C;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--hs-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: #039BE5;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--hs-red);
    border: 1.5px solid var(--hs-red);
}

.btn-ghost:hover {
    background-color: var(--hs-gray-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ============================================
   EN-TÊTES & NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hs-gray-border);
    z-index: 1000;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--hs-red);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding: var(--spacing-sm) 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hs-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--hs-red);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   DROPDOWN MENU - Style Google
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.drop-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.drop-item:hover {
    background: var(--bg-secondary);
}

.drop-icon {
    font-size: 1.2rem;
    color: var(--hs-blue);
    background: rgba(41, 182, 246, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.drop-text h5 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
}

.drop-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   HÉROS & SECTIONS DE PRÉSENTATION
   ============================================ */

.page-hero {
    padding: 140px var(--spacing-lg) 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,250,251,0.95) 100%);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Arrière-plan image par défaut */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.15;
}

/* Services Page Hero */
.page-hero.hero-services::before {
    background-image: url('../images/solutions.webp');
}

/* Recrutement/Talents Page Hero */
.page-hero.hero-talents::before {
    background-image: url('../images/formation.webp');
}

/* Tarifs Page Hero */
.page-hero.hero-tarifs::before {
    background-image: url('../images/pub1.webp');
}

/* About Page Hero */
.page-hero.hero-about::before {
    background-image: url('../images/aa.webp');
}

/* Devis Page Hero */
.page-hero.hero-devis::before {
    background-image: url('../images/pub3.webp');
}

.page-hero h1 {
    margin-bottom: var(--spacing-md);
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.page-hero .section-header-tag {
    position: relative;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header-tag {
    color: var(--hs-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   CARTES & BLOCS
   ============================================ */

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--hs-gray-border);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--hs-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hs-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    margin: 0;
}

/* ============================================
   FORMULAIRES
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--hs-gray-border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--hs-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   LISTE & ÉLÉMENTS
   ============================================ */

ul {
    list-style: none;
}

ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

ul li i {
    color: var(--hs-red);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ============================================
   PIED DE PAGE
   ============================================ */

footer {
    background-color: var(--hs-dark);
    color: var(--text-muted);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--hs-red);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   UTILITAIRES
   ============================================ */

.text-center { text-align: center; }
.text-red { color: var(--hs-red); }
.text-blue { color: var(--hs-blue); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: var(--hs-red);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.hamburger:hover,
.hamburger:focus {
    background: #B71C1C;
    outline: 2px solid var(--hs-blue);
    outline-offset: 2px;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 10px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        background: var(--bg-secondary);
        border-radius: 8px;
        font-size: 1rem;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: white;
        border-left-color: var(--hs-red);
        color: var(--hs-red);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-menu .btn {
        margin-top: 20px;
        text-align: center;
    }
    
    /* Dropdown Mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown > .nav-link {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 12px;
        display: none;
        background: #e8f4fc;
        border-radius: 10px;
        margin-top: 8px;
        grid-template-columns: 1fr;
    }
    
    .dropdown.active .dropdown-menu {
        display: grid;
        gap: 10px;
    }
    
    .drop-item {
        padding: 14px 16px;
        border-radius: 8px;
        background: white;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .drop-item:hover {
        background: #f0f7ff;
    }
    
    .drop-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    
    .drop-text h5 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    
    .drop-text p {
        font-size: 0.8rem;
        margin: 0;
    }
}

@media (max-width: 768px) {
    /* Échelle typographique mobile */
    h1 { font-size: 2.5rem; } /* 40px sur mobile */
    h2 { font-size: 1.75rem; } /* 28px */
    h3 { font-size: 1.25rem; } /* 20px */
    h4 { font-size: 0.85rem; } /* 13.6px */
    
    .text-lead { font-size: 1.1rem; }
    
    .section-py {
        padding: 60px 0;
    }
    
    .section-py-md {
        padding: 40px 0;
    }
    
    .page-hero {
        padding: 100px var(--spacing-md) 60px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .btn {
        width: 100%;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100%;
        padding: 90px 20px 30px;
    }
}
