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

:root {
    --black:   #0A0A0A;
    --white:   #FFFFFF;
    --bg:      #F5F4F0;
    --card-bg: #FAFAF8;
    --border:  #E6E5DF;
    --text:    #111110;
    --mid:     #5A5855;
    --muted:   #9B9890;
    --hero-bg: #0C1A35;
    --accent:  #C9A84C;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ── HERO ────────────────────────────── */
.hero {
    background: url('/images/offrio_landpage.webp') center center / cover no-repeat;
    padding: 140px 64px 96px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 2;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10,20,45,.92) 0%, rgba(10,20,45,.75) 55%, rgba(10,20,45,.5) 100%);
    pointer-events: none; z-index: 1;
}
.hero-inner {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0 48px;
    align-items: start;
}
.hero-left { min-width: 0; }
.hero-right {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding-left: 48px;
    border-left: 1px solid rgba(255,255,255,.1);
    align-self: stretch;
    text-align: center;
}
.hero-right-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #C9A84C; margin-bottom: 10px;
}
.hero-right-title {
    font-size: 1.05rem; font-weight: 800; color: #fff;
    letter-spacing: -.02em; line-height: 1.3; margin-bottom: 10px;
}
.hero-right-desc {
    font-size: .82rem; color: rgba(255,255,255,.55);
    line-height: 1.65; margin-bottom: 24px;
}
.hero-right-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(201,168,76,.15); border: 1.5px solid rgba(201,168,76,.4);
    color: #E8C56A; padding: 13px 18px; border-radius: 6px;
    font-size: .82rem; font-weight: 700; text-decoration: none;
    letter-spacing: .02em; transition: background .15s, border-color .15s;
}
.hero-right-btn:hover { background: rgba(201,168,76,.25); border-color: rgba(201,168,76,.7); }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.35); margin-bottom: 24px;
}
.hero-eyebrow span { width: 28px; height: 1px; background: rgba(255,255,255,.2); display: block; }

.hero-title {
    font-size: clamp(32px, 4vw, 60px);
    font-weight: 900; line-height: .96; letter-spacing: -.04em;
    color: var(--white); margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: rgba(255,255,255,.35); }

.hero-sub {
    font-size: 15px; font-weight: 400; color: rgba(255,255,255,.45);
    line-height: 1.7; margin: 0 0 36px;
}



/* ── BRANDS STRIP ────────────────────── */
.brands-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 64px;
    position: relative;
    z-index: 1;
}
.brands-inner {
    display: flex; align-items: center; gap: 24px;
}
.brands-label {
    font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.brands-list {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.brand-pill {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 20px;
    border: 1.5px solid var(--border);
    color: var(--mid); text-decoration: none;
    transition: border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap; background: var(--white);
    min-width: 90px;
}
.brand-pill:hover {
    border-color: #0C1A35; color: #0C1A35;
    box-shadow: 0 2px 12px rgba(12,26,53,.08);
}
.brand-pill-logo {
    width: 50px; height: 28px;
    object-fit: contain; object-position: center;
    display: block; flex-shrink: 0;
    transition: opacity .15s;
}
.brand-pill:hover .brand-pill-logo { opacity: .85; }
.brand-pill-name {
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: inherit; line-height: 1;
}

/* ── OFFERS SECTION ──────────────────── */
.offers-section { padding: 72px 64px 96px; }

.offers-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 32px;
}
.offers-heading {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800; letter-spacing: -.03em;
}
.offers-count {
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}

/* ── TABS ────────────────────────────── */
.tabs-nav {
    display: flex; gap: 0; margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tab-btn {
    padding: 12px 24px; background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .2s, border-color .2s; white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.is-active { color: var(--text); border-bottom-color: var(--text); }
.tab-count {
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    background: var(--border); color: var(--muted);
    border-radius: 0;
}
.tab-btn.is-active .tab-count { background: var(--text); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── GRID ────────────────────────────── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}


/* ── EMPTY ───────────────────────────── */
.offers-empty {
    grid-column: 1/-1; padding: 80px 40px; text-align: center;
    background: var(--white);
}
.offers-empty strong { display: block; font-size: 16px; margin-bottom: 8px; }
.offers-empty p { font-size: 13px; color: var(--muted); }
.offers-empty a { color: var(--text); }


/* ── HOME SPLIT ROW ──────────────────── */
.home-split-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--border);
}
.home-split-row > * {
    border-right: 1px solid var(--border);
}
.home-split-row > *:last-child {
    border-right: none;
}
.guides-col-section {
    padding: 48px 40px 56px;
    background: var(--bg);
}
.guides-col-title {
    font-size: 28px; font-weight: 800; letter-spacing: -.03em;
    color: var(--text); margin-bottom: 10px; line-height: 1.2;
}
.guides-col-sub {
    font-size: 14px; color: var(--mid); max-width: 520px; line-height: 1.6; margin-bottom: 32px;
}
.guides-col-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.guide-mini-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--white); border: 1px solid var(--border);
    padding: 16px; text-decoration: none; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.guide-mini-card:hover { border-color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.guide-mini-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.guide-mini-cat {
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px; display: block;
}
.guide-mini-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.3; }
.guide-mini-arrow {
    margin-left: auto; flex-shrink: 0; align-self: center;
    color: var(--muted); transition: transform .2s, color .15s;
}
.guide-mini-card:hover .guide-mini-arrow { transform: translateX(3px); color: var(--text); }
.guide-featured {
    display: block; text-decoration: none; color: var(--text);
    background: var(--white); border: 1px solid var(--border);
    padding: 20px; margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.guide-featured:hover { border-color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.guide-featured-eyebrow {
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.guide-featured-badge {
    background: #0C1A35; color: #fff;
    font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 2px 7px;
}
.guide-featured-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 8px; }
.guide-featured-lead { font-size: 12px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.guide-featured-cta {
    font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--navy); display: flex; align-items: center; gap: 5px;
}
.guides-col-see-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text); text-decoration: none; padding: 9px 18px;
    border: 1px solid var(--border); background: var(--white);
    transition: background .15s, border-color .15s, color .15s;
}
.guides-col-see-all:hover { background: var(--text); border-color: var(--text); color: var(--white); }

/* ── OFFRIO SELECTION SECTION ── */
.offrio-selection-section {
    padding: 48px 64px 56px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.offrio-selection-header { margin-bottom: 36px; }
.offrio-selection-title {
    font-size: 28px; font-weight: 800; letter-spacing: -.03em;
    color: var(--text); margin-bottom: 10px; line-height: 1.2;
}
.offrio-selection-sub {
    font-size: 14px; color: var(--mid); max-width: 620px; line-height: 1.6;
}
/* ── Conteneur de catégorie ── */
.offrio-cats { display: flex; flex-direction: column; gap: 20px; }
.offrio-cat-block {
    border: 1px solid var(--border); background: var(--card-bg); overflow: hidden;
}
/* Barre colorée en haut du bloc */
.offrio-cat-block::before {
    content: ''; display: block; height: 3px;
    background: var(--cat-color, var(--text));
}
.offrio-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    background: var(--white);
}
.offrio-cat-header-left {
    display: flex; align-items: center; gap: 10px;
}
.offrio-cat-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--cat-color, var(--text));
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.offrio-cat-icon svg { width: 16px; height: 16px; }
.offrio-cat-title {
    font-size: 13px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text);
}
.offrio-cat-see-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text); text-decoration: none; padding: 6px 14px;
    border: 1px solid var(--border); transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.offrio-cat-see-all:hover { background: var(--text); border-color: var(--text); color: var(--white); }
.offrio-cat-see-all svg { transition: transform .2s; }
.offrio-cat-see-all:hover svg { transform: translateX(3px); }

/* ── Offres dans le conteneur ── */
.offrio-cat-body {
    display: flex; gap: 12px; padding: 16px 20px;
}

/* ── Groupe motorisation (Thermique / Hybride / Électrique) ── */
.offrio-moto-group { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.offrio-moto-group .offrio-card { flex: 1; }
.offrio-moto-group .offrio-card-img { height: 100px; }
.offrio-moto-group .offrio-card-body { padding: 8px 10px 10px; }
.offrio-moto-group .offrio-card-motor {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 6px;
}
.offrio-moto-group .offrio-card-price { font-size: 17px; }
.offrio-moto-group .offrio-card-name  { font-size: 13px; }

/* ── Card offre ── */
.offrio-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    overflow: hidden;
}
.offrio-card:hover { border-color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.offrio-card-img {
    height: 170px; position: relative; overflow: hidden;
    background: var(--bg); flex-shrink: 0;
}
.offrio-card-img-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
    display: block; padding: 8px;
    background: var(--card-bg);
}
.offrio-card-img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; color: #C8C6BE;
}
.offrio-card-moto-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 8px; color: var(--white);
    display: flex; align-items: center; gap: 4px;
}
.offrio-card-body {
    padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column;
}
.offrio-card-brand-row {
    display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.offrio-card-brand-logo {
    width: 32px; height: 16px;
    object-fit: contain; object-position: center;
    opacity: .7; flex-shrink: 0; display: block;
}
.offrio-card-brand {
    font-size: 9px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--muted);
}
.offrio-card-name  { font-size: 15px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.offrio-card-motor { font-size: 11px; color: var(--mid); margin-bottom: 10px; }
.offrio-card-sep   { height: 1px; background: var(--border); margin-bottom: 10px; }
.offrio-card-price { font-size: 22px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.offrio-card-price span { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.offrio-card-deposit { font-size: 11px; color: var(--muted); margin-top: 3px; }
.offrio-card-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; border-top: 1px solid var(--border); margin-top: auto;
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text); transition: background .15s, color .15s;
}
.offrio-card:hover .offrio-card-cta { background: var(--text); color: var(--white); }
.offrio-card::after, .offrio-card::before { content: none !important; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
    .nav, .hero, .brands-section, .offers-section, .footer { padding-left: 40px; padding-right: 40px; }
    .hero-inner { max-width: 100%; }
    .home-split-row { grid-template-columns: 1fr; }
    .home-split-row > * { border-right: none; border-bottom: 1px solid var(--border); }
    .home-split-row > *:last-child { border-bottom: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { border-left: none; border-top: 1px solid rgba(255,255,255,.1); padding-left: 0; padding-top: 32px; margin-top: 8px; }
}
@media (max-width: 900px) {
    .offrio-cat-body { flex-wrap: wrap; justify-content: center; }
    .offrio-moto-group { flex: 1 1 calc(50% - 6px); max-width: calc(50% - 6px); }
}
@media (max-width: 768px) {
    .hero { padding: 88px 20px 48px; }
    .hero-title { font-size: clamp(32px, 9vw, 52px); letter-spacing: -.03em; }
    .hero-sub { font-size: 14px; margin-bottom: 36px; }
    .brands-section { padding: 18px 20px; overflow: hidden; }
    .brands-inner { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
    .brands-list { gap: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 6px; width: 100%; }
    .brand-pill { padding: 10px 14px; min-width: 76px; flex-shrink: 0; }
    .brand-pill-logo { width: 40px; height: 22px; }
    .offers-section { padding: 36px 20px 56px; }
    .offers-header { flex-direction: column; gap: 6px; }
    .tabs-nav { gap: 0; }
    .tab-btn { padding: 10px 14px; font-size: 11px; }
    .offrio-selection-section { padding: 32px 20px 40px; }
    .offrio-card-img { height: 140px; }
    .hero-project-link { display: none; }
}
@media (max-width: 480px) {
    .nav { padding: 0 16px; height: 52px; }
    .hero { padding: 72px 16px 40px; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 16px; }
    .hero-title { font-size: clamp(28px, 10vw, 40px); margin-bottom: 14px; }
    .hero-sub { font-size: 13px; margin-bottom: 28px; }
    .offers-section { padding: 28px 16px 48px; }
    .brands-section { padding: 14px 16px; overflow: hidden; }
    .footer { padding: 24px 16px; }
    .offers-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; gap: 10px; padding: 14px; }
    .search-input { font-size: 16px; /* évite le zoom auto iOS */ padding: 4px 0; }
    .search-btn { width: 100%; text-align: center; padding: 13px; font-size: 12px; }
    .tab-btn { padding: 10px 12px; font-size: 10px; }
    .card-img { height: 180px; }
    .card-body { padding: 16px 18px 18px; }
    .card-monthly-val { font-size: 26px; }
    .offers-heading { font-size: 18px; }
    .offrio-selection-section { padding: 24px 16px 32px; overflow-x: hidden; }
    .offrio-card-img { height: 120px; }
    .offrio-cat-body { padding: 12px; }
    .offrio-cat-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .offrio-moto-group { flex: 1 1 100%; max-width: 100%; }
    .guides-col-section { padding: 24px 16px 32px; }
}

.hero-project-link { display: flex; }
