/*
 * Feuille de style principale pour caméra‑de‑surveillance.com – nouvelle identité 2026
 *
 * Ce thème lumineux et moderne s’inspire des univers technologiques et domestiques.
 * Un fond clair (#f5f7fa) contraste avec des accents bleu foncé (#2e3a5e) et orange
 * vif (#ff914d) pour mettre en avant les boutons et les éléments interactifs. Les
 * polices Poppins et Lato assurent une lecture confortable. Les cartes et
 * sections s’ouvrent sur des backgrounds blancs légèrement ombrés pour
 * hiérarchiser l’information, tandis que la bannière cookies respecte le RGPD.
 */

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: #f5f7fa;
    color: #2e3a5e;
    line-height: 1.6;
}

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

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

header .logo img {
    height: 44px;
    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: #f5f7fa;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Section héros */
.hero {
    background: linear-gradient(rgba(46,58,94,0.6), rgba(46,58,94,0.8)), url('../images/bureau-camera-surveillance.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 140px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    max-width: 760px;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero .cta-btn {
    background-color: #ff914d;
    color: #2e3a5e;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Sections générales */
section {
    padding: 60px 20px;
}

section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2e3a5e;
}

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

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

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2e3a5e;
    font-family: 'Poppins', sans-serif;
}

.card p {
    font-size: 0.95rem;
    color: #4c5c7a;
    flex-grow: 1;
}

.card .btn {
    margin-top: 18px;
    background-color: #2e3a5e;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card .btn:hover {
    background-color: #3f4e74;
}

/* Sections conseils & blog */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.article-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.article-item .content {
    padding: 20px;
    flex-grow: 1;
}

.article-item h3 {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    color: #2e3a5e;
}

.article-item p {
    font-size: 0.95rem;
    color: #4c5c7a;
}

.article-item .read-more {
    margin-top: auto;
    display: inline-block;
    color: #ff914d;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.article-item .read-more:hover {
    color: #ffa76f;
}

/* Footer */
footer {
    background-color: #2e3a5e;
    color: #f5f7fa;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin: 6px 0;
    font-size: 0.9rem;
}

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

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

/* Formulaire de contact */
form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form input,
form textarea {
    padding: 12px 16px;
    border: 1px solid #ccd5e0;
    border-radius: 4px;
    font-size: 1rem;
}

form button {
    align-self: flex-start;
    background-color: #ff914d;
    color: #2e3a5e;
    border: none;
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #ffa76f;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(46,58,94,0.95);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

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

.cookie-banner .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner button {
    background-color: #ff914d;
    color: #2e3a5e;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: #ffa76f;
}

/* Admin interface */
#admin-editor {
    width: 100%;
    height: 400px;
    font-family: monospace;
    font-size: 0.9rem;
    padding: 16px;
    border: 1px solid #ccd5e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2e3a5e;
}

.admin-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.admin-actions button {
    background-color: #2e3a5e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-actions button:hover {
    background-color: #3f4e74;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}