/* ===========================================================
   LaserBay — Feuille de styles commune à toutes les pages
   Contient : variables, reset, header, nav, boutons,
              sections de base, footer, icônes sociales,
              cookies, media queries.
   Les styles spécifiques à chaque page restent dans leur
   balise <style> locale.
   =========================================================== */

:root {
    --primary-color: #2b97a8;
    --secondary-color: #0e3b55;
    --accent-color: #e0523a;
    --dark-color: #0e3b55;
    --light-color: #f5f0e3;
    --text-color: #333333;
    --bg-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

/* ---------- Header ---------- */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    width: 180px;
    height: auto;
    display: block;
}

/* ---------- Nav ---------- */
nav {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
    height: 100%;
}

nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #f06348;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 82, 58, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* ---------- Layout de base ---------- */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
    color: white;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact-icon {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* ---------- Responsive (commun) ---------- */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-light);
        transition: left 0.3s ease;
        z-index: 1000;
        align-items: flex-start;
        justify-content: flex-start;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
        height: 100%;
        overflow-y: auto;
        align-items: flex-start;
    }

    nav ul li {
        margin: 1rem 0;
        height: auto;
    }

    .section {
        padding: 3rem 1rem;
    }

    .logo {
        width: 140px;
    }
}
