/*
 * Style principal pour le site alarme-de-maison-sans-fil.fr
 * Ce thème utilise une palette de couleurs inspirée de la sécurité : bleu foncé
 * pour l'autorité, bleu clair pour la technologie et des notes d'orange pour
 * attirer l'attention sur les éléments clés. La typographie est claire et
 * lisible grâce à la police sans‐serif Roboto. Les pages sont conçues pour
 * être responsives grâce à Flexbox et Grid.
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f8fa;
    color: #333;
    line-height: 1.6;
}

/* Barre de navigation */
header {
    background-color: #0a3d62;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav ul li a:hover {
    background-color: #4a90e2;
}

/* Section héros */
.hero {
    position: relative;
    overflow: hidden;
    background: #0a3d62;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .cta-btn {
    background-color: #f5a623;
    color: #0a3d62;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.hero .cta-btn:hover {
    background-color: #d4891d;
}

/* Sections de contenu */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
}

section h2 {
    color: #0a3d62;
    margin-bottom: 20px;
    font-size: 2rem;
}

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

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex: 1;
}

.card-body h3 {
    margin-top: 0;
    color: #0a3d62;
}

.card-body p {
    margin-bottom: 10px;
}

.card-body a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.card-body a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0a3d62;
    color: white;
    padding: 40px 20px;
}

footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

footer h4 {
    margin-bottom: 10px;
    color: #f5a623;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

footer ul li a:hover {
    color: #f5a623;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 4px;
    color: #0a3d62;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 20px;
    background-color: #f5a623;
    color: #0a3d62;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background-color: #d4891d;
}

/* Admin */
.admin-section {
    margin-bottom: 40px;
}

.admin-section h3 {
    margin-top: 0;
    color: #0a3d62;
}

.admin-section textarea,
.admin-section input,
.admin-section select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-section button {
    background-color: #4a90e2;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-section button:hover {
    background-color: #31689d;
}