/*
 * Style principal pour le site alarme‑de‑maison‑sans‑fil.com
 *
 * Cette version adopte une nouvelle palette de couleurs axée autour du vert
 * profond (#0b3d2e) et du turquoise (#2a9d8f), qui évoquent la technologie
 * et la sérénité, avec une touche de corail (#e76f51) pour les éléments
 * d’appel à l’action. La typographie utilise la police sans‑serif
 * Montserrat pour un rendu moderne et élégant. Les composants sont
 * conçus pour être responsives grâce à Flexbox et Grid et apportent
 * un contraste clair avec le fond blanc.
 */

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.7;
}

/* Barre de navigation */
header {
    background-color: #0b3d2e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    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: 50px;
    margin-right: 12px;
}

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

nav ul li {
    margin: 0 12px;
}

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

nav ul li a:hover {
    background-color: #2a9d8f;
}

/* Section héros */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3d2e 0%, #2a9d8f 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
}

.hero .cta-btn {
    background-color: #e76f51;
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

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

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

section {
    margin-bottom: 60px;
}

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

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

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

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

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

.card-body h3 {
    margin-top: 0;
    color: #0b3d2e;
    font-size: 1.3rem;
}

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

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

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

/* Pied de page */
footer {
    background-color: #0b3d2e;
    color: #ffffff;
    padding: 60px 20px;
}

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

footer h4 {
    margin-bottom: 12px;
    color: #e76f51;
}

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

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

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

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

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

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

.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: #e76f51;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

.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: #2a9d8f;
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-section button:hover {
    background-color: #1f6a5c;
}

/* Bannière cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 43, 43, 0.95);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    flex: 1 1 100%;
}

.cookie-banner button {
    background-color: #e76f51;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-banner button.secondary {
    background-color: #2a9d8f;
}

.cookie-banner button:hover {
    opacity: 0.9;
}