:root {
    --color-bg: #f5f7fb;
    --color-primary: #2563eb;
    --color-primary-soft: #dbeafe;
    --color-secondary: #f97316;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-card-bg: #ffffff;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --radius-pill: 999px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f5f7fb 40%, #eef2ff 100%);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.8));
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #3b82f6, #f97316);
    padding: 0.55rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

.logo-tagline {
    font-size: 0.83rem;
    color: var(--color-muted);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    padding: 0.4rem 0.4rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.main-nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}

/* HERO */

.site-main {
    padding-bottom: 2rem;
}

.hero {
    padding: 2.5rem 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #eff6ff;
    font-size: 0.78rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero h1 span.highlight {
    background: linear-gradient(120deg, #2563eb, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #eff6ff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.33);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.03);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.06);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hero-meta strong {
    color: #0f172a;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: 1.6rem;
    background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 40%, #e0f2fe 100%);
    padding: 1.75rem 1.75rem 1.6rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-illustration {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.hero-illustration-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-truck {
    position: relative;
    flex: 1;
    padding: 1rem 1rem 0.9rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
    color: #eff6ff;
}

.hero-truck-road {
    position: absolute;
    inset: auto 0 0 0;
    height: 28px;
    background: linear-gradient(to right, rgba(15,23,42,0.8), rgba(30,64,175,0.95));
    border-radius: 0 0 1.2rem 1.2rem;
    overflow: hidden;
}

.hero-truck-road::before {
    content: "";
    position: absolute;
    inset: 50% -40px auto -40px;
    height: 3px;
    background-image: repeating-linear-gradient(90deg, #e5e7eb, #e5e7eb 16px, transparent 16px, transparent 30px);
    transform: translateY(-50%);
    opacity: 0.8;
}

.hero-truck-cab {
    width: 64px;
    height: 46px;
    border-radius: 0.9rem;
    background: #f8fafc;
    position: relative;
    margin-bottom: 0.75rem;
}

.hero-truck-cab::before {
    content: "";
    position: absolute;
    inset: 6px 10px auto 6px;
    border-radius: 0.7rem 0.7rem 0.4rem 0.4rem;
    background: linear-gradient(135deg, #e0f2fe, #1d4ed8);
}

.hero-truck-cab::after {
    content: "";
    position: absolute;
    inset: auto 8px 4px 8px;
    height: 6px;
    border-radius: 999px;
    background: #cbd5f5;
}

.hero-truck-box {
    position: absolute;
    left: 58px;
    top: 10px;
    right: 10px;
    bottom: 18px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.hero-truck-box::before {
    content: "";
    position: absolute;
    inset: 12px 10px 12px 16px;
    border-radius: 0.7rem;
    border: 1px dashed rgba(254, 243, 199, 0.95);
}

.hero-truck-wheels {
    position: absolute;
    inset: auto 18px -14px auto;
    display: flex;
    gap: 10px;
}

.hero-truck-wheel {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #0f172a;
    border: 2px solid #e5e7eb;
}

.hero-truck-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-truck-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-truck-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.hero-truck-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
}

.hero-side-card {
    flex: 1;
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.04);
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.4rem;
}

.hero-side-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-side-card p {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.hero-side-metrics {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.hero-side-metrics span strong {
    display: block;
    font-size: 0.95rem;
}

.hero-bottom-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.hero-bottom-strip ul {
    display: flex;
    gap: 0.7rem;
}

/* Sections / cards */

.section {
    padding: 1.5rem 0 2.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.section-intro {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.19);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    margin-bottom: 0.4rem;
}

.card-tag--orange {
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.list-check {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
}

.list-check li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}

.list-check li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 0.8rem;
    color: #16a34a;
}

/* Articles list */

.articles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.article-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.article-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.article-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.article-card p {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.article-card a.read-more {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Forms */

.form-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

form .field {
    margin-bottom: 1rem;
}

form label {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

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

form input:focus,
form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.form-notice {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
}

.form-error,
.form-success {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
}

.form-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Adsense */

.adsense-zone {
    margin: 1.2rem 0;
    text-align: center;
}

/* Footer */

.site-footer {
    margin-top: 2.5rem;
    padding: 2rem 0 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
    font-size: 0.85rem;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 0.7rem;
}

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

.site-footer a:hover {
    color: #bfdbfe;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    margin-top: 1.5rem;
    padding-top: 0.85rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

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

.site-footer li {
    margin-bottom: 0.3rem;
}

/* Generic page content */

.page-header {
    padding: 1.5rem 0 1rem;
}

.page-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.page-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.page-content {
    background: rgba(248, 250, 252, 0.92);
    border-radius: 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 1.5rem 1.4rem;
    font-size: 0.95rem;

    /* limitation de la largeur pour les articles / pages */
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.page-content h2 {
    font-size: 1.15rem;
    margin: 1.2rem 0 0.4rem;
}

.page-content h3 {
    font-size: 1rem;
    margin: 0.9rem 0 0.35rem;
}

.page-content ul {
    margin-left: 1.3rem;
    margin-top: 0.3rem;
}

.page-content li {
    margin-bottom: 0.25rem;
}

/* Image principale dans un article */

.article-figure {
    margin: 0 0 1.2rem 0;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

/* Cartes d'articles avec miniature (home et liste) */

.article-card--with-thumb {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.article-card-thumb {
    flex: 0 0 120px; /* largeur de la vignette */
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 0.9rem;
    object-fit: cover;
    display: block;
}

.article-card-body {
    flex: 1 1 auto;
}

/* Responsive */

@media (max-width: 960px) {
    .hero-grid,
    .two-cols,
    .footer-grid,
    .cards-grid,
    .articles-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 1.8rem;
    }

    .page-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        inset: 100% 0 auto;
        background: rgba(248, 250, 252, 0.98);
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.17s ease-out, opacity 0.17s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem 1.5rem 1.1rem;
    }

    .main-nav a {
        padding: 0.35rem 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .site-header {
        backdrop-filter: blur(12px);
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding-inline: 1rem;
    }

    .hero-card {
        padding-inline: 1.35rem;
    }

    .page-content {
        border-radius: 1rem;
        padding-inline: 1.15rem;
    }

    .article-card--with-thumb {
        flex-direction: column;
    }

    .article-card-thumb {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}
