/*
Theme Name: COFATS Theme
Author: COFATS
Version: 1.0
Description: Thème industriel bleu et gris pour société de soudure et quincaillerie
*/

/* RÉINITIALISATION DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 3px solid #0A3D62;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* logo à gauche, menu à droite */
    align-items: center;
}

.logo img {
    height: 80px;  /* petit logo pour header */
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #0A3D62;
    margin-left: 25px;
    font-weight: bold;
}

.main-nav a:hover {
    color: #1B9CFC;
}

/* =========================
   HERO BANNIÈRE
========================= */
.hero {
    background: linear-gradient(to right, #0A3D62, #1B9CFC);
    color: white;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-logo {
    height: 200px;  /* logo grand dans la bannière */
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 60px 20px;
    text-align: center;
}

.services {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0A3D62;
    margin-bottom: 10px;
}

.horaires-section p {
    font-size: 18px;
    color: #555;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0A3D62;
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
    }

    .main-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .logo img {
        height: 60px; /* petit logo header mobile */
    }

    .hero {
        height: 250px;
        padding: 20px;
    }

    .hero-logo {
        height: 120px; /* logo bannière mobile */
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .card {
        width: 90%;
    }
}
