
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #f5f7fb;
    color: #222;
}

a {
    color: #0057ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: #0b1630;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-header .logo a {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.site-header .logo span {
    color: #4fd1c5;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav a {
    color: #e2e8ff;
    font-size: 0.95rem;
}

.adsense-slot {
    margin: 1rem auto;
    max-width: 1000px;
    min-height: 60px;
    border: 1px dashed #cbd5f5;
    background: #edf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #556;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem 2rem;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-text p {
    margin-bottom: 0.75rem;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Intro / topics */
.intro-articles {
    margin-top: 2rem;
}

.intro-articles h2 {
    margin-bottom: 1rem;
}

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

.topic-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.topic-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.section-tutos {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

/* Latest articles on home */
.latest-articles {
    margin-top: 2.5rem;
}

.latest-articles h2 {
    margin-bottom: 1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
}

.article-thumb img {
    width: 100%;
    display: block;
}

.article-content {
    padding: 1rem;
}

.article-content h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-readmore {
    font-size: 0.9rem;
    font-weight: 600;
}

.see-all {
    margin-top: 1rem;
}

/* Page header / generic content */
.page-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    margin: 0 0 0.5rem;
}

.legal-content, .contact-form-section, .merci-section, .article-page, .articles-list {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.legal-content h2 {
    margin-top: 1.25rem;
}

.legal-content h3 {
    margin-top: 1rem;
}

/* Article page */
.article-page h1 {
    margin-top: 0;
}

.article-header-meta {
    font-size: 0.85rem;
    color: #555;
}

.article-hero img {
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
}

.article-body p {
    margin-bottom: 0.9rem;
}

/* Articles listing */
.articles-list-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.articles-list-thumb img {
    width: 160px;
    max-width: 30vw;
    border-radius: 8px;
    display: block;
}

.articles-list-content h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
}

/* Formulaire */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #0057ff;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary:hover {
    background: #003fcc;
    text-decoration: none;
}

/* Honeypot (caché visuellement mais présent pour robots) */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.form-errors {
    border-radius: 10px;
    border: 1px solid #ffc9c9;
    background: #fff5f5;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-errors h2 {
    margin-top: 0;
    font-size: 1rem;
}

.site-footer {
    background: #0b1630;
    color: #d1d5f5;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a {
    color: #e2e8ff;
}

.site-footer .tech-note {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav ul {
        gap: 0.7rem;
    }

    .articles-list-item {
        flex-direction: column;
    }

    .articles-list-thumb img {
        width: 100%;
        max-width: 100%;
    }
}
