/*
 * Feuille de style principale pour alarme‑maison‑moins‑cher.com
 *
 * Cette version adopte une palette pastel et chaleureuse pour se démarquer
 * des sites précédents. Le violet profond (#444175) est utilisé pour
 * l’en‑tête et le pied de page, tandis que des tons rosés et orangés
 * (#f4a259, #f384a3) créent des touches accueillantes. Le vert bleu
 * (#2b7a78) sert à mettre en valeur les appels à l’action. La police
 * Poppins apporte une esthétique moderne et lisible. Les éléments sont
 * conçus pour être responsives via Flexbox et Grid.
 */

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fffaf0;
    color: #444175;
    line-height: 1.7;
}

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

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

header .logo img {
    height: 52px;
    margin-right: 14px;
}

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

nav ul li {
    margin: 0 14px;
}

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

nav ul li a:hover,
nav ul li a.active {
    background-color: #f4a259;
}

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

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 36px;
    max-width: 820px;
}

.hero .cta-btn {
    background-color: #2b7a78;
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

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

section {
    margin-bottom: 70px;
}

section h2 {
    color: #444175;
    margin-bottom: 24px;
    font-size: 2.4rem;
    font-weight: 600;
}

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

.card {
    background-color: #f8f6f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

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

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

.card-body h3 {
    margin-top: 0;
    color: #444175;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-body p {
    margin-bottom: 12px;
    color: #6c567b;
}

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

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

/* Pied de page */
footer {
    background-color: #444175;
    color: #ffffff;
    padding: 70px 20px;
}

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

footer h4 {
    margin-bottom: 14px;
    color: #f4a259;
    font-size: 1.2rem;
}

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

footer a {
    color: #f4a259;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(68, 65, 117, 0.95);
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 60%;
    font-size: 0.9rem;
}

.cookie-banner button {
    background-color: #2b7a78;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.cookie-banner button.decline {
    background-color: #6c567b;
}

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

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;
}