/* ============================================================
   RIOU MACHINERIES — Styles communs (header, navigation, footer)
   Ce fichier est partagé par toutes les pages publiques via
   includes/header.php et includes/footer.php
   ============================================================ */

:root {
    --black: #0a0a0a;
    --steel: #1a1e24;
    --iron: #252b33;
    --charcoal: #2e3540;
    --orange: #f05a1a;
    --orange-hot: #ff6b2b;
    --orange-glow: rgba(240,90,26,0.15);
    --yellow: #f5c842;
    --silver: #8a9ab0;
    --light: #d4dae3;
    --white: #f0f4f8;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { background:var(--black); color:var(--white); font-family:var(--font-body); overflow-x:hidden; }

/* ===== HEADER / NAV ===== */
.site-header {
    position:sticky; top:0; z-index:100;
    background:rgba(10,10,10,0.94); backdrop-filter:blur(12px);
    border-bottom:2px solid var(--orange);
}
.nav-top { display:flex; align-items:center; justify-content:center; padding:1.1rem 3rem 0.7rem; }
.logo { display:inline-flex; align-items:center; text-decoration:none; }
.logo-icon { width:40px; height:40px; background:var(--orange); clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); display:flex; align-items:center; justify-content:center; font-size:18px; }
.logo-text { font-family:var(--font-display); font-size:1.6rem; font-weight:800; color:var(--white); letter-spacing:2px; }
.logo-text span { color:var(--orange); }
.logo-img { height:130px; width:auto; max-width:420px; display:block; object-fit:contain; }
.footer-brand .logo-img { height:90px; margin-bottom:0.5rem; }
.nav-bottom { display:flex; align-items:center; justify-content:center; gap:2.5rem; padding:0.8rem 3rem; border-top:1px solid rgba(240,90,26,0.25); }
.nav-links { display:flex; gap:2rem; list-style:none; }
.nav-links a { color:var(--silver); text-decoration:none; font-size:0.85rem; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; transition:color 0.2s; }
.nav-links a:hover, .nav-links a.active { color:var(--orange); }
.nav-cta { background:var(--orange); color:var(--black); padding:8px 20px; font-weight:700; text-decoration:none; font-size:0.8rem; letter-spacing:1px; text-transform:uppercase; transition:background 0.2s; }
.nav-cta:hover { background:var(--orange-hot); }
.nav-toggle { display:none; background:none; border:1px solid var(--charcoal); color:var(--white); width:42px; height:38px; font-size:1.4rem; line-height:1; cursor:pointer; border-radius:2px; }
.nav-toggle:hover { border-color:var(--orange); color:var(--orange); }
.nav-cta-mobile { display:none; }

@media(max-width:768px) {
    .nav-top { padding:0.9rem 1.5rem 0.5rem; }
    .nav-bottom { padding:0.6rem 1.5rem; justify-content:flex-end; position:relative; }
    .nav-toggle { display:block; }
    .nav-links {
        display:none; position:absolute; top:100%; left:0; right:0;
        flex-direction:column; gap:0; background:rgba(10,10,10,0.98);
        border-top:1px solid rgba(240,90,26,0.25); border-bottom:2px solid var(--orange);
        padding:0.5rem 1.5rem; z-index:99;
    }
    .nav-links.is-open { display:flex; }
    .nav-links li { border-bottom:1px solid var(--charcoal); }
    .nav-links li:last-child { border-bottom:none; }
    .nav-links a { display:block; padding:0.95rem 0; font-size:0.9rem; }
    .nav-cta { display:none; }
    .nav-cta-mobile { display:block; background:var(--orange); color:var(--black) !important; text-align:center; padding:0.85rem !important; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin:0.75rem 0 0.5rem; }
    .logo-img { height:80px; }
    .footer-brand .logo-img { height:64px; }
}
@media(max-width:420px) {
    .logo-img { height:60px; }
}

/* ===== FOOTER ===== */
footer { background:var(--steel); border-top:2px solid var(--orange); padding:3rem; }
.footer-inner { max-width:1400px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; }
.footer-brand .logo-text { font-size:1.3rem; }
.footer-desc { color:var(--silver); font-size:0.85rem; line-height:1.6; margin-top:1rem; }
.footer-col h4 { font-family:var(--font-display); font-size:0.85rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--orange); margin-bottom:1rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:0.5rem; }
.footer-col ul a { color:var(--silver); text-decoration:none; font-size:0.85rem; transition:color 0.2s; }
.footer-col ul a:hover { color:var(--orange); }
.footer-bottom { max-width:1400px; margin:2rem auto 0; padding-top:2rem; border-top:1px solid var(--charcoal); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.5rem; }
.footer-bottom p { color:var(--silver); font-size:0.8rem; }

@media(max-width:1024px) {
    .footer-inner { grid-template-columns:1fr 1fr; }
}
@media(max-width:600px) {
    .footer-inner { grid-template-columns:1fr; gap:2rem; }
    footer { padding:2.5rem 1.5rem; }
    .footer-bottom { flex-direction:column; align-items:flex-start; }
}
