:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --dark: #333;
    --light: #f4f7f6;
    --white: #ffffff;
    --text: #333333;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    background-color: #fff; 
    overflow-x: hidden; 
}

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* --- HEADER & NAVIGATION --- */
header { 
    background: var(--white); 
    height: 80px; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

/* LOGO RP (VOTRE CODE EXACT RÉINTÉGRÉ) */
.logo-wrapper { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 12px; 
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}
.logo-rp {
    position: relative;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 38px; 
    line-height: 1;
    background-color: #333;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
}
.letter-r { color: white; position: relative; z-index: 1; }
.letter-p { color: #007bff; position: absolute; top: 5px; left: 8px; z-index: 2; }
.logo-text { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--primary); 
    text-transform: uppercase; 
    white-space: nowrap; 
}

/* NAVIGATION DESKTOP */
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 50px; }

.menu-toggle { 
    display: none; 
    font-size: 30px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--dark);
    margin-left: auto; /* Pousse le bouton à droite */
}

/* --- HERO SECTION (PAGE TECHNOLOGIE) --- */
.hero { 
    height: 60vh; 
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?q=80&w=1600') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
    padding: 0 20px;
}
.hero h1 { 
    font-size: 2.2rem; /* Taille de base */
    font-size: clamp(1.4rem, 7vw, 2.5rem); /* S'adapte parfaitement à l'écran */
    font-weight: 800; 
    margin: 0 auto;
    max-width: 100%; 
    line-height: 1.2;
}

/* --- SECTIONS --- */
.section-padding { padding: 60px 0; }
.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: clamp(1.4rem, 6vw, 2.1rem); 
    font-weight: 800; 
    position: relative; 
    padding-bottom: 15px; 
}
.section-title::after { content: ''; width: 50px; height: 4px; background: var(--primary); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--light); padding: 30px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.05); }

/* --- RESPONSIVE SMARTPHONE --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; 
        background: white; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); z-index: 1001;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; margin-left: 0; }
}

@media (max-width: 400px) {
    .logo-text { font-size: 0.9rem; } /* Réduit au lieu de disparaître */
    .logo-rp { font-size: 32px; } /* Réduit légèrement le carré noir pour gagner de la place */
}

@media (max-width: 350px) {
    .logo-text { display: none; } /* Ne disparaît que sur les écrans minuscules */
}