* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background: #f3f4f6;
    color: #111827;
    display: flex;
    flex-direction: column;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 16px 32px;
}

/* HEADER MAGAZINE */

.site-header {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #fefae0, #f4a261, #e76f51);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #1f2933;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
}

.brand-domain {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.domain-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fffbeb;
    color: #c05621;
    margin-left: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 14px;
}

.main-nav a {
    font-size: 13px;
    text-decoration: none;
    color: #4b5563;
}

.main-nav a:hover {
    color: #111827;
}

.nav-cta {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #f9fafb;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.lang-toggle {
    background: #e5e7eb;
    border-radius: 999px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-toggle button {
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
    color: #4b5563;
}

.lang-toggle button.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
}

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }
}

/* HERO AVEC IMAGE */

.hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .hero-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-text-block {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 20px 18px 18px;
}

.kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #0f766e;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero-title {
    font-size: clamp(24px, 3vw, 30px);
    margin-bottom: 8px;
    color: #0f172a;
}

.hero-text-block p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #1f2933;
    border: 1px solid #bfdbfe;
}

.btn-main {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #0f172a;
    color: #f9fafb;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #0f172a;
    cursor: pointer;
}

.btn-main:hover {
    background: #111827;
}

.btn-secondary {
    display: inline-block;
    margin-top: 10px;
    margin-left: 6px;
    padding: 8px 14px;
    background: #e5e7eb;
    color: #111827;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #d4d4d8;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #d4d4d8;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 4px;
    color: #111827;
}

.section-list {
    font-size: 13px;
    color: #4b5563;
    padding-left: 18px;
    margin-top: 4px;
}

.section-list li {
    margin-bottom: 4px;
}

.section-list li::marker {
    color: #f97316;
}

/* HERO IMAGE */

.hero-image-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.hero-image-wrapper {
    position: relative;
    padding-top: 62.5%;
    /* 16:10 ratio */
    overflow: hidden;
}

.hero-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-caption {
    padding: 10px 14px 12px;
    font-size: 12px;
    color: #4b5563;
}

.hero-image-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: #4b5563;
    background: #fff;
}

/* SECTION ARTICLES EN BAS */

.mag-section {
    margin-top: 6px;
}

.mag-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mag-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.mag-section-sub {
    font-size: 12px;
    color: #6b7280;
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .mag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mag-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mag-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mag-card-image {
    position: relative;
    padding-top: 62.5%;
    background: #e5e7eb;
}

.mag-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mag-card-body {
    padding: 10px 12px 12px;
}

.mag-card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 4px;
}

.mag-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.mag-card-excerpt {
    font-size: 12px;
    color: #4b5563;
}

.mag-card-link {
    margin-top: 6px;
    font-size: 12px;
    color: #0369a1;
    text-decoration: none;
}

.mag-card-link:hover {
    text-decoration: underline;
}

/* SIDEBAR CONTACT */

.sidebar {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 16px 18px;
    font-size: 13px;
}

.sidebar-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0369a1;
    margin-bottom: 4px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.sidebar-text {
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
}

.contact-box {
    margin-top: 8px;
    padding: 10px 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    color: #4b5563;
}

.contact-box a {
    color: #0369a1;
    text-decoration: none;
    word-break: break-all;
}

.contact-box a:hover {
    text-decoration: underline;
}

.form {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.form-row {
    display: grid;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}

.form-input,
.form-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 7px 9px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-submit {
    margin-top: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: #0f172a;
    color: #f9fafb;
    cursor: pointer;
}

.form-submit:hover {
    background: #111827;
}

.form-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* FOOTER */

.site-footer {
    margin-top: 22px;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===== PAGES D'ARTICLE ===== */

.article-main {
    margin-top: 18px;
}

.breadcrumb {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #0369a1;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 20px 18px 22px;
}

.article-header {
    margin-bottom: 14px;
}

.article-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #0f766e;
    margin-bottom: 6px;
}

.article-title {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 6px;
    color: #0f172a;
}

.article-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.article-hero-image {
    margin: 0 -4px 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
}

.article-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-body {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

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

.article-body h2 {
    font-size: 17px;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #111827;
}

.article-body ul {
    margin: 6px 0 10px 18px;
}

.article-body li {
    margin-bottom: 4px;
}

.article-body li::marker {
    color: #f97316;
}

.article-tip {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

/* ===== LISTE D'ARTICLES ===== */

.article-list-header {
    margin-top: 18px;
    margin-bottom: 10px;
}

.article-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.article-list-sub {
    font-size: 13px;
    color: #6b7280;
}

.article-list-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

/* On réutilise le style des mag-cards mais en liste verticale */

.mag-card-mainlink {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.mag-card-mainlink:hover .mag-card-title {
    text-decoration: underline;
}

/* Pagination */

.pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 13px;
}

.pagination button,
.pagination span,
.pagination a {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 4px 10px;
    cursor: pointer;
    text-decoration: none;
    color: #4b5563;
}

.pagination .is-current {
    background: #0f172a;
    color: #f9fafb;
    border-color: #0f172a;
    cursor: default;
}

.pagination .is-disabled {
    opacity: 0.4;
    cursor: default;
}

/* ===== NAVIGATION PREV / NEXT ARTICLE ===== */

.article-nav {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.article-nav a {
    color: #0369a1;
    text-decoration: none;
}

.article-nav a:hover {
    text-decoration: underline;
}
