/* ================================================================
   BTP Mada — Charte v4.0 — Gris béton · Gris clair · Blanc
   Mobile-First · UX optimisée artisans (gros tactile, lisible)
   Scopé .ro-* — couvre 100% des classes du HTML
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ─── PALETTE ────────────────────────────────────────────────── */
:root {
    --ro-bois:        #4A4D4F;
    --ro-bois-clair:  #6E7173;
    --ro-or:          #7C8285;
    --ro-or-clair:    #A7ACAE;
    --ro-terre:       #2B2D2E;
    --ro-creme:       #F2F3F4;
    --ro-creme-dark:  #E3E5E6;
    --ro-blanc:       #FFFFFF;
    --ro-texte:       #2B2D2E;
    --ro-muted:       #797D7F;
    --ro-sos:         #C0392B;
    --ro-sos-hover:   #9B2B1F;
    --ro-confiance:   #27AE60;
    --ro-warning:     #E67E22;
    --ro-radius:      12px;
    --ro-radius-lg:   18px;
    --ro-shadow:      0 2px 16px rgba(43,45,46,0.10);
    --ro-shadow-md:   0 6px 28px rgba(43,45,46,0.16);
    --ro-shadow-lg:   0 12px 48px rgba(43,45,46,0.20);
    --ro-border:      rgba(43,45,46,0.14);
    /* UX : cibles tactiles confortables */
    --ro-tap:         54px;
}

/* ─── BASE — lisibilité maximale ─────────────────────────────── */
.ro-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ro-texte);
    font-size: 17px;          /* gros texte lisible, pas de zoom iOS */
    line-height: 1.7;
    background: var(--ro-blanc);
    overflow-x: hidden;
}
.ro-page * { box-sizing: border-box; }
.ro-page h1, .ro-page h2, .ro-page h3, .ro-page h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ro-terre);
    line-height: 1.25;
}
.ro-page p { margin: 0 0 12px; }
.ro-page a { color: var(--ro-bois); text-decoration: none; }
.ro-page a:hover { color: var(--ro-or); }
.ro-accent { color: var(--ro-or); }
.ro-white  { color: var(--ro-blanc) !important; }
.ro-small  { font-size: 0.85rem; }
.ro-link   { color: var(--ro-bois); font-weight: 600; text-decoration: underline; }
.ro-link:hover { color: var(--ro-or); }

/* ─── BOUTONS — gros, tactiles, clairs ───────────────────────── */
.ro-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 9px; min-height: var(--ro-tap); padding: 14px 28px;
    border: 2px solid transparent; border-radius: var(--ro-radius);
    cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 1.02rem; letter-spacing: 0.01em; line-height: 1.2;
    text-decoration: none !important; transition: all 0.2s ease;
    text-align: center;
}
.ro-btn-lg   { min-height: 60px; padding: 18px 36px; font-size: 1.12rem; }
.ro-btn-sm   { min-height: 46px; padding: 10px 20px; font-size: 0.92rem; }
.ro-btn-full { width: 100%; }

.ro-btn-primary {
    background: var(--ro-bois); color: var(--ro-blanc); border-color: var(--ro-bois);
    box-shadow: 0 4px 14px rgba(43,45,46,0.30);
}
.ro-btn-primary:hover { background: var(--ro-terre); border-color: var(--ro-terre); color: var(--ro-blanc); transform: translateY(-2px); box-shadow: 0 7px 22px rgba(43,45,46,0.38); }

.ro-btn-outline { background: var(--ro-blanc); color: var(--ro-bois); border-color: var(--ro-bois); }
.ro-btn-outline:hover { background: var(--ro-bois); color: var(--ro-blanc); }

.ro-btn-outline-white { background: transparent; color: var(--ro-blanc); border-color: rgba(255,255,255,0.8); }
.ro-btn-outline-white:hover { background: rgba(255,255,255,0.18); color: var(--ro-blanc); border-color: #fff; }

.ro-btn-danger { background: var(--ro-sos); color: var(--ro-blanc); border-color: var(--ro-sos); box-shadow: 0 4px 14px rgba(192,57,43,0.32); }
.ro-btn-danger:hover { background: var(--ro-sos-hover); border-color: var(--ro-sos-hover); color: var(--ro-blanc); transform: translateY(-2px); }

.ro-btn-white { background: var(--ro-blanc); color: var(--ro-bois); border-color: var(--ro-blanc); }
.ro-btn-white:hover { background: var(--ro-creme); color: var(--ro-terre); }

.ro-btn-or { background: var(--ro-or); color: var(--ro-blanc); border-color: var(--ro-or); }
.ro-btn-or:hover { background: var(--ro-or-clair); color: var(--ro-terre); }

.ro-btn-orange { background: var(--ro-warning); color: var(--ro-blanc); border-color: var(--ro-warning); }
.ro-btn-orange:hover { background: #cf6f15; color: var(--ro-blanc); }

.ro-btn-whatsapp { background: #25D366; color: var(--ro-blanc); border-color: #25D366; }
.ro-btn-whatsapp:hover { background: #1aae54; color: var(--ro-blanc); }

.ro-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; justify-content: center; }
@media (max-width: 560px) {
    .ro-cta-group { flex-direction: column; }
    .ro-cta-group .ro-btn { width: 100%; }
}

/* ─── BADGES ─────────────────────────────────────────────────── */
.ro-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 13px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
}
.ro-badge-green  { background: #d4f5e2; color: #1a7a3a; }
.ro-badge-or, .ro-badge-gold { background: #E3E5E6; color: #4A4D4F; }
.ro-badge-blue   { background: #e6effb; color: #1a4fa0; }
.ro-badge-orange { background: #fde4cf; color: #9a3412; }
.ro-badge-purple { background: #ece3f6; color: #6d3aa3; }
.ro-badge-bois   { background: #f0e5d8; color: var(--ro-bois); }
.ro-badge-red    { background: #fde2e0; color: var(--ro-sos); }

/* ─── HERO ───────────────────────────────────────────────────── */
.ro-hero {
    background: linear-gradient(150deg, #3A3D3F 0%, #54585A 55%, #6E7173 100%);
    padding: 64px 20px 76px; position: relative; overflow: hidden;
}
.ro-hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 48px; background: var(--ro-blanc); clip-path: ellipse(60% 100% at 50% 100%); }
.ro-hero-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.ro-hero-badge {
    display: inline-block; background: rgba(43,45,46,0.25); border: 1px solid rgba(43,45,46,0.5);
    color: var(--ro-or-clair); padding: 6px 18px; border-radius: 20px; font-size: 0.85rem;
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 22px;
}
.ro-hero-title { font-size: clamp(2.1rem, 6vw, 3.3rem); font-weight: 700; color: var(--ro-blanc) !important; margin-bottom: 18px; line-height: 1.18; }
.ro-hero-title .ro-accent { color: var(--ro-or-clair) !important; }
.ro-hero-sub { font-size: 1.12rem; color: rgba(255,255,255,0.86); max-width: 540px; margin: 0 auto; }

/* ─── STATS BAR ──────────────────────────────────────────────── */
.ro-stats-bar { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px; padding: 34px 20px; background: var(--ro-creme); border-bottom: 1px solid var(--ro-border); }
.ro-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 18px; }
.ro-stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--ro-bois); line-height: 1; }
.ro-stat-label { font-size: 0.82rem; color: var(--ro-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── SECTIONS ───────────────────────────────────────────────── */
.ro-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.ro-section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; color: var(--ro-terre); margin-bottom: 10px; text-align: center; }
.ro-section-title.ro-white { color: var(--ro-blanc) !important; }
.ro-section-sub { text-align: center; color: var(--ro-muted); max-width: 580px; margin: 0 auto 38px; font-size: 1.05rem; }
.ro-section-sub.ro-white, .ro-section .ro-white { color: rgba(255,255,255,0.9) !important; }

/* Section foncée (ex-"blue", désormais BOIS conforme charte) */
.ro-section-blue, .ro-section-bois {
    background: linear-gradient(135deg, #3A3D3F 0%, #54585A 100%);
    padding: 60px 20px; text-align: center; max-width: 100%;
    border-radius: 0;
}
.ro-section-blue .ro-section-title, .ro-section-bois .ro-section-title { color: var(--ro-blanc) !important; }
.ro-section-creme { background: var(--ro-creme); max-width: 100%; padding: 58px 20px; }

/* ─── COMMENT ÇA MARCHE (steps) ──────────────────────────────── */
.ro-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 26px; margin-top: 40px; }
.ro-step { background: var(--ro-blanc); border: 1px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 32px 24px 26px; text-align: center; position: relative; box-shadow: var(--ro-shadow); transition: transform .2s, box-shadow .2s; }
.ro-step:hover { transform: translateY(-4px); box-shadow: var(--ro-shadow-md); }
.ro-step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--ro-or); color: var(--ro-blanc); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; box-shadow: 0 2px 8px rgba(43,45,46,0.4); }
.ro-step-icon { font-size: 2.6rem; margin: 10px 0 14px; }
.ro-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--ro-bois); }
.ro-step p  { font-size: 0.98rem; color: var(--ro-muted); margin: 0; }

/* ─── MÉTIERS ────────────────────────────────────────────────── */
.ro-specialites .ro-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 32px; }
.ro-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 640px) { .ro-grid-4 { grid-template-columns: repeat(2,1fr); } }
.ro-metier-card {
    background: var(--ro-blanc); border: 2px solid var(--ro-border); border-radius: var(--ro-radius);
    min-height: 90px; padding: 18px 12px; text-align: center; font-size: 0.98rem; font-weight: 600;
    color: var(--ro-bois) !important; transition: all .2s; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; text-decoration: none !important;
}
.ro-metier-card:hover { background: var(--ro-or); border-color: var(--ro-or); color: var(--ro-blanc) !important; transform: translateY(-3px); box-shadow: var(--ro-shadow); }

/* ─── SOS BANNER (home) ──────────────────────────────────────── */
.ro-section-sos { background: linear-gradient(135deg, #7B1111 0%, var(--ro-sos) 100%); padding: 44px 20px; max-width: 100%; }
.ro-sos-inner { max-width: 920px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.ro-sos-inner h2 { color: var(--ro-blanc) !important; font-size: clamp(1.4rem,3.5vw,2rem); margin-bottom: 8px; }
.ro-sos-inner p  { color: rgba(255,255,255,0.92); font-size: 1.02rem; margin: 0; }
@media (max-width: 680px) { .ro-sos-inner { flex-direction: column; text-align: center; } .ro-sos-inner .ro-btn { width: 100%; } }

/* ─── PAGE HEADER ────────────────────────────────────────────── */
.ro-page-header {
    background: linear-gradient(135deg, #3A3D3F 0%, #565A5C 100%);
    padding: 52px 24px 60px; text-align: center; position: relative;
}
.ro-page-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 38px; background: var(--ro-blanc); clip-path: ellipse(60% 100% at 50% 100%); }
.ro-page-header h1 { font-size: clamp(1.9rem,5vw,2.9rem); color: var(--ro-blanc) !important; margin-bottom: 14px; }
.ro-page-header p { color: rgba(255,255,255,0.84); max-width: 600px; margin: 0 auto; font-size: 1.08rem; }
.ro-blog-tag { display: inline-block; background: rgba(43,45,46,0.25); border: 1px solid rgba(43,45,46,0.5); color: var(--ro-or-clair); padding: 5px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════════
   FORMULAIRE « Déposer mon projet » — clarté max pour artisans
   ════════════════════════════════════════════════════════════ */
.ro-form-container { max-width: 720px; margin: 0 auto; padding: 36px 20px 20px; }
.ro-branch-selector { margin-bottom: 32px; }
.ro-label-main { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--ro-terre); margin-bottom: 16px; text-align: center; }

/* Gros boutons-cartes tactiles pour choisir le type de projet */
.ro-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; }
.ro-branch {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 96px; padding: 16px 12px; background: var(--ro-blanc);
    border: 2px solid var(--ro-border); border-radius: var(--ro-radius-lg); cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 1.6rem; color: var(--ro-bois); transition: all .2s;
}
.ro-branch span { font-size: 0.92rem; font-weight: 600; color: var(--ro-texte); }
.ro-branch:hover { border-color: var(--ro-or); background: var(--ro-creme); transform: translateY(-2px); }
.ro-branch.active { border-color: var(--ro-bois); background: var(--ro-creme); box-shadow: inset 0 0 0 1px var(--ro-bois); }
.ro-branch.active span { color: var(--ro-terre); }
.ro-branch[data-branch="sos"].active { border-color: var(--ro-sos); box-shadow: inset 0 0 0 1px var(--ro-sos); background: #fff2f0; }

.ro-branch-content { display: none; }
.ro-branch-content.active { display: block; }

/* Champs — gros, focus visible, jamais de zoom iOS */
.ro-form { margin-top: 8px; }
.ro-form-group { margin-bottom: 20px; }
.ro-form-group > label {
    display: block; font-weight: 600; font-size: 1rem; color: var(--ro-terre); margin-bottom: 9px;
}
.ro-form-group input[type=text],
.ro-form-group input[type=tel],
.ro-form-group input[type=email],
.ro-form-group select,
.ro-form-group textarea,
.ro-form input[type=text],
.ro-form input[type=tel],
.ro-form select,
.ro-form textarea {
    width: 100%; min-height: var(--ro-tap); padding: 14px 16px;
    border: 2px solid var(--ro-border); border-radius: var(--ro-radius);
    font-family: 'Inter', sans-serif; font-size: 1.05rem; color: var(--ro-texte);
    background: var(--ro-blanc); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.ro-form-group textarea, .ro-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.ro-form-group input:focus,
.ro-form-group select:focus,
.ro-form-group textarea:focus,
.ro-form input:focus,
.ro-form select:focus,
.ro-form textarea:focus {
    outline: none; border-color: var(--ro-bois); box-shadow: 0 0 0 4px rgba(43,45,46,0.12);
}
/* Astérisque requis bien visible */
.ro-form-group label::after { }
.ro-form-group label:has(+ [required]),
.ro-form-group label { }

/* Deux colonnes desktop → empilées mobile */
.ro-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .ro-form-row { grid-template-columns: 1fr; } }

/* Séparateur de section dans le formulaire */
.ro-form-divider {
    margin: 32px 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ro-creme-dark);
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--ro-bois);
}

/* Cases à cocher — grosses zones cliquables */
.ro-form-group > label:has(input[type=checkbox]),
.ro-checkbox-group label {
    display: flex; align-items: flex-start; gap: 11px; font-weight: 500; font-size: 0.98rem;
    color: var(--ro-texte); cursor: pointer; padding: 12px 14px; border: 2px solid var(--ro-border);
    border-radius: var(--ro-radius); background: var(--ro-blanc); transition: all .2s; margin: 0;
}
.ro-form-group > label:has(input[type=checkbox]:checked),
.ro-checkbox-group label:has(input:checked) { border-color: var(--ro-bois); background: var(--ro-creme); }
.ro-checkbox-group { display: grid; gap: 10px; }
.ro-form-group input[type=checkbox] { width: 22px; height: 22px; min-height: auto; margin-top: 1px; accent-color: var(--ro-bois); flex-shrink: 0; }
.ro-checkbox-group input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ro-bois); flex-shrink: 0; }
.ro-small-label { font-size: 0.9rem !important; color: var(--ro-muted) !important; }

/* Alertes & encarts dans le formulaire */
.ro-sos-alert {
    display: flex; align-items: center; gap: 10px; background: #fff2f0; border: 2px solid var(--ro-sos);
    color: var(--ro-sos); padding: 16px 18px; border-radius: var(--ro-radius); font-size: 0.98rem; margin-bottom: 22px;
}
.ro-sos-alert strong { color: var(--ro-sos); }
.ro-info-box { background: var(--ro-creme); border-left: 4px solid var(--ro-or); padding: 16px 18px; border-radius: 0 var(--ro-radius) var(--ro-radius) 0; font-size: 0.98rem; color: var(--ro-texte); margin-bottom: 22px; }

/* Écran de succès */
.ro-success-msg { padding: 20px; }
.ro-success-inner { max-width: 520px; margin: 0 auto; text-align: center; background: var(--ro-creme); border: 2px solid var(--ro-confiance); border-radius: var(--ro-radius-lg); padding: 40px 28px; }
.ro-success-icon { font-size: 3.4rem; margin-bottom: 14px; }
.ro-success-inner h2 { color: var(--ro-confiance); margin-bottom: 12px; }
.ro-success-inner p { color: var(--ro-texte); }
.ro-success-inner strong { color: var(--ro-bois); }

/* ════════════════════════════════════════════════════════════
   ANNUAIRE
   ════════════════════════════════════════════════════════════ */
.ro-annuaire-filters {
    display: flex; flex-wrap: wrap; gap: 14px; padding: 22px; background: var(--ro-creme);
    border-radius: var(--ro-radius-lg); max-width: 1100px; margin: 28px auto; align-items: center;
}
.ro-filter-group { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; align-items: center; }
.ro-annuaire-filters select {
    min-height: var(--ro-tap); padding: 12px 16px; border: 2px solid var(--ro-border);
    border-radius: var(--ro-radius); background: var(--ro-blanc); font-family: 'Inter', sans-serif;
    font-size: 1rem; color: var(--ro-texte); flex: 1; min-width: 180px; -webkit-appearance: none;
}
.ro-filter-check { display: flex; align-items: center; gap: 8px; font-size: 0.96rem; font-weight: 600; color: var(--ro-bois); cursor: pointer; white-space: nowrap; }
.ro-filter-check input { width: 22px; height: 22px; accent-color: var(--ro-bois); }

.ro-artisans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ro-artisan-card { background: var(--ro-blanc); border: 1.5px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 24px; box-shadow: var(--ro-shadow); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.ro-artisan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ro-bois), var(--ro-or)); }
.ro-artisan-card:hover { transform: translateY(-4px); box-shadow: var(--ro-shadow-md); }
.ro-artisan-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ro-artisan-avatar { width: 54px; height: 54px; background: linear-gradient(135deg, var(--ro-bois), var(--ro-or)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.ro-artisan-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--ro-terre); }
.ro-artisan-meta { font-size: 0.9rem; color: var(--ro-muted); }
.ro-artisan-rating { margin-left: auto; background: var(--ro-creme); color: #4A4D4F; font-weight: 700; padding: 6px 12px; border-radius: 20px; font-size: 0.95rem; white-space: nowrap; }
.ro-artisan-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ro-artisan-desc { font-size: 0.96rem; color: var(--ro-texte); margin-bottom: 16px; }
.ro-artisan-contact { padding: 12px 14px; border-radius: var(--ro-radius); font-size: 0.92rem; margin-bottom: 16px; }
.ro-masked { background: var(--ro-creme); color: var(--ro-muted); display: flex; align-items: center; gap: 8px; border: 1px dashed var(--ro-border); }
.ro-mask-icon { font-size: 1.1rem; }
.ro-unlocked { background: #eafaf0; border: 1px solid var(--ro-confiance); color: var(--ro-texte); }
.ro-unlocked div { margin: 3px 0; }
.ro-no-results { text-align: center; padding: 50px 20px; color: var(--ro-muted); max-width: 600px; margin: 0 auto; }
.ro-annuaire-cta { text-align: center; padding: 44px 20px; background: var(--ro-creme); margin-top: 40px; }
.ro-annuaire-cta p { font-size: 1.05rem; color: var(--ro-terre); margin-bottom: 16px; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   BLOG
   ════════════════════════════════════════════════════════════ */
.ro-blog-intro { max-width: 760px; margin: 40px auto 0; padding: 0 20px; }
.ro-blog-intro-card { background: var(--ro-creme); border-radius: var(--ro-radius-lg); padding: 28px; border-left: 5px solid var(--ro-or); }
.ro-blog-intro-card h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--ro-bois); }
.ro-blog-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; max-width: 1100px; margin: 40px auto 0; padding: 0 20px; }
.ro-blog-article { background: var(--ro-blanc); border: 1.5px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 26px; box-shadow: var(--ro-shadow); }
.ro-blog-coming-soon { opacity: 0.95; }
.ro-article-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ro-article-date { font-size: 0.85rem; color: var(--ro-or); font-weight: 700; }
.ro-article-tag { background: var(--ro-creme); color: var(--ro-bois); padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
.ro-blog-article h2 { font-size: 1.25rem; margin-bottom: 10px; }
.ro-article-excerpt { font-size: 0.96rem; color: var(--ro-muted); margin-bottom: 16px; }
.ro-article-soon { background: var(--ro-creme); border: 1px dashed var(--ro-border); border-radius: var(--ro-radius); padding: 12px; text-align: center; font-size: 0.9rem; color: var(--ro-muted); }
.ro-blog-notify { max-width: 620px; margin: 48px auto; padding: 32px 24px; background: var(--ro-creme); border-radius: var(--ro-radius-lg); text-align: center; }
.ro-blog-notify h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ro-bois); }
.ro-notify-form { display: flex; gap: 10px; margin-top: 18px; }
.ro-notify-input { flex: 1; min-height: var(--ro-tap); padding: 14px 16px; border: 2px solid var(--ro-border); border-radius: var(--ro-radius); font-size: 1.05rem; font-family: 'Inter', sans-serif; -webkit-appearance: none; }
.ro-notify-input:focus { outline: none; border-color: var(--ro-bois); box-shadow: 0 0 0 4px rgba(43,45,46,0.12); }
@media (max-width: 520px) { .ro-notify-form { flex-direction: column; } }

/* ════════════════════════════════════════════════════════════
   DEVENIR PARTENAIRE — tables & forfaits
   ════════════════════════════════════════════════════════════ */
.ro-leads-table { overflow-x: auto; margin-top: 28px; border-radius: var(--ro-radius-lg); box-shadow: var(--ro-shadow); }
.ro-table { width: 100%; border-collapse: collapse; background: var(--ro-blanc); min-width: 480px; }
.ro-table thead { background: var(--ro-bois); }
.ro-table th { color: var(--ro-blanc); text-align: left; padding: 16px 18px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }
.ro-table td { padding: 16px 18px; border-bottom: 1px solid var(--ro-creme-dark); font-size: 0.98rem; }
.ro-table tbody tr:hover { background: var(--ro-creme); }
.ro-price-cell { font-weight: 700; color: var(--ro-bois); font-size: 1.05rem; white-space: nowrap; }

.ro-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; margin-top: 40px; align-items: start; }
.ro-pricing-card { background: var(--ro-blanc); border: 2px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 32px 26px; text-align: center; box-shadow: var(--ro-shadow); transition: transform .2s, box-shadow .2s; position: relative; }
.ro-pricing-card:hover { transform: translateY(-5px); box-shadow: var(--ro-shadow-lg); }
.ro-pricing-featured { border-color: var(--ro-or); box-shadow: var(--ro-shadow-lg); }
.ro-pricing-popular { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--ro-or); color: var(--ro-blanc); padding: 5px 20px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.ro-pricing-premium { border-color: var(--ro-bois); }
.ro-pricing-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--ro-terre); margin-bottom: 6px; }
.ro-pricing-price { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; color: var(--ro-bois); line-height: 1; margin: 14px 0 6px; }
.ro-pricing-period { font-size: 1rem; font-weight: 400; color: var(--ro-muted); }
.ro-pricing-badge { display: inline-block; background: var(--ro-creme); color: var(--ro-muted); padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.ro-pricing-badge-orange { background: #fde4cf; color: #9a3412; }
.ro-pricing-features { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.ro-pricing-features li { padding: 9px 0; font-size: 0.96rem; color: var(--ro-texte); border-bottom: 1px solid var(--ro-creme-dark); }
.ro-feature-off { color: var(--ro-muted) !important; opacity: 0.6; }

.ro-pack-conformite { max-width: 520px; margin: 28px auto 0; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--ro-radius-lg); padding: 30px; text-align: center; }
.ro-pack-price { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--ro-or-clair) !important; margin-bottom: 16px; }
.ro-pack-conformite ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: inline-block; }
.ro-pack-conformite li { padding: 7px 0; }

/* FAQ accordéon */
.ro-faq-list { max-width: 760px; margin: 32px auto 0; display: grid; gap: 12px; }
.ro-faq-item { border: 2px solid var(--ro-border); border-radius: var(--ro-radius); overflow: hidden; background: var(--ro-blanc); }
.ro-faq-q { width: 100%; min-height: var(--ro-tap); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ro-terre); text-align: left; }
.ro-faq-q span { font-size: 1.5rem; color: var(--ro-or); flex-shrink: 0; line-height: 1; }
.ro-faq-q:hover { background: var(--ro-creme); }
.ro-faq-a { padding: 0 22px 20px; font-size: 0.98rem; color: var(--ro-muted); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD ARTISAN
   ════════════════════════════════════════════════════════════ */
.ro-dashboard-header { background: linear-gradient(135deg, var(--ro-terre) 0%, var(--ro-bois) 100%); padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 100%; }
.ro-dashboard-header h1 { color: var(--ro-blanc) !important; font-size: 1.6rem; margin-bottom: 6px; }
.ro-dashboard-header p { color: rgba(255,255,255,0.85); font-size: 0.98rem; margin: 0; }
.ro-dashboard-notif { background: rgba(255,255,255,0.12); color: var(--ro-blanc); padding: 10px 16px; border-radius: var(--ro-radius); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.ro-notif-dot { background: var(--ro-sos); color: var(--ro-blanc); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }

.ro-dashboard-stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px; padding: 26px 20px; background: var(--ro-creme); }
.ro-dash-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 16px; }
.ro-dash-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--ro-bois); line-height: 1; }
.ro-dash-stat-label { font-size: 0.8rem; color: var(--ro-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Onglets — gros, défilables, état actif net */
.ro-dashboard-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 20px; max-width: 1100px; margin: 0 auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ro-dashboard-tabs::-webkit-scrollbar { display: none; }
.ro-tab { min-height: 50px; padding: 12px 22px; border: 2px solid var(--ro-border); border-radius: 30px; background: var(--ro-blanc); cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.96rem; color: var(--ro-muted); white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.ro-tab.active { background: var(--ro-bois); border-color: var(--ro-bois); color: var(--ro-blanc); }
.ro-tab-content { display: none; max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.ro-tab-content.active { display: block; }

.ro-leads-list { display: grid; gap: 16px; }
.ro-lead-card { background: var(--ro-blanc); border: 1.5px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 22px; box-shadow: var(--ro-shadow); position: relative; }
.ro-lead-new { border-color: var(--ro-or); }
.ro-lead-badge { position: absolute; top: -12px; left: 22px; background: var(--ro-or); color: var(--ro-blanc); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.ro-lead-badge.ro-badge-green { background: var(--ro-confiance); }
.ro-lead-unlocked { border-color: var(--ro-confiance); }
.ro-lead-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 12px; flex-wrap: wrap; }
.ro-lead-type { font-weight: 700; color: var(--ro-terre); font-size: 1.05rem; }
.ro-lead-price { background: var(--ro-creme); color: var(--ro-bois); font-weight: 700; padding: 5px 14px; border-radius: 20px; font-size: 0.9rem; }
.ro-lead-status { color: var(--ro-confiance); font-weight: 700; font-size: 0.92rem; }
.ro-lead-desc { font-size: 0.98rem; color: var(--ro-texte); margin-bottom: 12px; }
.ro-lead-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; color: var(--ro-muted); margin-bottom: 16px; }
.ro-lead-contact { padding: 12px 14px; border-radius: var(--ro-radius); margin-bottom: 16px; }
.ro-lead-contact.ro-masked { background: var(--ro-creme); border: 1px dashed var(--ro-border); color: var(--ro-muted); }
.ro-lead-contact.ro-unlocked { background: #eafaf0; border: 1px solid var(--ro-confiance); }
.ro-lead-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ro-lead-actions .ro-btn { flex: 1; min-width: 160px; }

/* Secrétariat */
.ro-secretariat-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.ro-secretariat-header h2 { font-size: 1.4rem; }
.ro-docs-table { margin-bottom: 24px; }
.ro-secretariat-quota { background: var(--ro-creme); border-radius: var(--ro-radius); padding: 18px 20px; }
.ro-secretariat-quota p { margin-bottom: 12px; font-size: 0.95rem; }
.ro-quota-bar { height: 12px; background: var(--ro-creme-dark); border-radius: 10px; overflow: hidden; }
.ro-quota-fill { height: 100%; background: linear-gradient(90deg, var(--ro-bois), var(--ro-or)); border-radius: 10px; }

/* Assurances */
.ro-assurance-status { margin-bottom: 24px; }
.ro-assurance-status h2 { font-size: 1.4rem; margin-bottom: 8px; }
.ro-assurance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 24px; }
.ro-assurance-card { background: var(--ro-blanc); border: 2px solid var(--ro-border); border-radius: var(--ro-radius-lg); padding: 24px 20px; text-align: center; }
.ro-assurance-ok { border-color: var(--ro-confiance); }
.ro-assurance-warn { border-color: var(--ro-warning); }
.ro-assurance-missing { border-style: dashed; }
.ro-assurance-icon { font-size: 2.2rem; margin-bottom: 10px; }
.ro-assurance-name { font-weight: 700; color: var(--ro-terre); margin-bottom: 4px; font-size: 1.05rem; }
.ro-assurance-detail { font-size: 0.88rem; color: var(--ro-muted); margin-bottom: 14px; }
.ro-assurance-help { background: var(--ro-creme); border-left: 4px solid var(--ro-or); padding: 18px 20px; border-radius: 0 var(--ro-radius) var(--ro-radius) 0; }
.ro-assurance-help p { margin-bottom: 8px; }

/* Profil */
.ro-profil h2 { font-size: 1.4rem; margin-bottom: 8px; }
.ro-profil-note { font-size: 0.92rem; color: var(--ro-muted); margin-bottom: 24px; }

/* ─── RESPONSIVE GÉNÉRAL ─────────────────────────────────────── */
@media (max-width: 768px) {
    .ro-section { padding: 44px 16px; }
    .ro-hero { padding: 52px 16px 60px; }
    .ro-stats-bar, .ro-dashboard-stats { padding: 24px 14px; }
    .ro-stat-num { font-size: 2rem; }
    .ro-stat { padding: 8px 10px; }
    .ro-pricing-grid { grid-template-columns: 1fr; }
    .ro-artisans-grid, .ro-blog-articles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ro-page { font-size: 16px; }
    .ro-branches { grid-template-columns: 1fr 1fr; }
    .ro-lead-actions .ro-btn { min-width: 100%; }
}

/* ─── INTÉGRATION THÈME (pleine largeur sections foncées) ───── */
.entry-content .ro-hero,
.entry-content .ro-section-blue,
.entry-content .ro-section-bois,
.entry-content .ro-section-sos,
.entry-content .ro-dashboard-header,
.entry-content .ro-dashboard-stats,
.entry-content .ro-dashboard-tabs,
.entry-content .ro-stats-bar,
.entry-content .ro-page-header,
.entry-content .ro-annuaire-cta {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw; max-width: 100vw;
}
.entry-content > .ro-page { margin-top: 0; }

/* ════════════════════════════════════════════════════════════
   v4.1 — Portfolio artisan · Fiche modale · Avis · Facturation
   ════════════════════════════════════════════════════════════ */

/* ─── Annuaire : mini-portfolio sur la card ─────────────────── */
.ro-artisan-portfolio { margin-bottom: 16px; }
.ro-portfolio-label { font-size: 0.82rem; font-weight: 600; color: var(--ro-muted); margin-bottom: 8px; }
.ro-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ro-thumb { aspect-ratio: 4/3; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--ro-border); }
.ro-artisan-actions { display: flex; gap: 10px; }
.ro-artisan-actions .ro-btn { flex: 1; }
.ro-artisan-rating span { color: var(--ro-muted); font-weight: 500; font-size: 0.82rem; }

/* ─── Fiche artisan : MODALE ─────────────────────────────────── */
.ro-modal {
    position: fixed; inset: 0; z-index: 9999; background: rgba(45,24,16,0.6);
    display: none; align-items: flex-start; justify-content: center;
    padding: 24px 16px; overflow-y: auto; backdrop-filter: blur(3px);
}
.ro-modal.open { display: flex; }
.ro-modal-box {
    background: var(--ro-blanc); border-radius: var(--ro-radius-lg); max-width: 720px; width: 100%;
    padding: 32px 28px 28px; position: relative; box-shadow: var(--ro-shadow-lg); margin: auto;
}
.ro-modal-close {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--ro-creme); color: var(--ro-bois); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.ro-modal-close:hover { background: var(--ro-creme-dark); }
.ro-modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.ro-avatar-lg { width: 70px; height: 70px; font-size: 2rem; }
.ro-modal-head h2 { font-size: 1.5rem; margin-bottom: 2px; }
.ro-modal-metier { color: var(--ro-bois); font-weight: 600; margin: 0; }
.ro-modal-rating { color: #4A4D4F; font-weight: 700; font-size: 0.95rem; margin-top: 2px; }
.ro-modal-badges { margin-bottom: 14px; }
.ro-modal-desc { color: var(--ro-texte); margin-bottom: 8px; }
.ro-modal-section { font-size: 1.25rem; margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ro-creme-dark); }

/* Galerie réalisations (modal) */
.ro-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.ro-gallery-item { margin: 0; }
.ro-gallery-img { aspect-ratio: 4/3; border-radius: var(--ro-radius); background-size: cover; background-position: center; border: 1px solid var(--ro-border); }
.ro-gallery-item figcaption { font-size: 0.82rem; color: var(--ro-muted); margin-top: 6px; line-height: 1.4; }

/* Avis clients */
.ro-reviews { display: grid; gap: 14px; }
.ro-review { background: var(--ro-creme); border-radius: var(--ro-radius); padding: 16px 18px; border-left: 3px solid var(--ro-or); }
.ro-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ro-review-head strong { color: var(--ro-terre); }
.ro-review-stars { color: var(--ro-or); font-size: 0.95rem; white-space: nowrap; }
.ro-review-date { font-size: 0.78rem; color: var(--ro-muted); margin-bottom: 6px; }
.ro-review p { margin: 0; font-size: 0.94rem; color: var(--ro-texte); }
.ro-modal-cta { margin-top: 28px; }
.ro-modal-note { text-align: center; font-size: 0.85rem; color: var(--ro-muted); margin-top: 10px; }
@media (max-width: 520px) { .ro-modal-box { padding: 28px 18px 22px; } .ro-modal-head { flex-direction: column; text-align: center; } }

/* ─── Dashboard : FACTURATION ────────────────────────────────── */
.ro-billing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ro-billing-head h2 { font-size: 1.4rem; margin-bottom: 4px; }
.ro-billing-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 24px; }
.ro-bill-stat { background: var(--ro-creme); border-radius: var(--ro-radius); padding: 18px; text-align: center; }
.ro-bill-stat-label { display: block; font-size: 0.8rem; color: var(--ro-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.ro-bill-stat-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--ro-bois); }
.ro-bill-stat-num.ro-amber { color: var(--ro-warning); }
.ro-bill-stat-num.ro-red { color: var(--ro-sos); }
.ro-billing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ro-billing-actions .ro-btn { flex: 1; min-width: 180px; }
.ro-billing-subtitle { font-size: 1.2rem; margin-bottom: 14px; }
.ro-billing-export { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: var(--ro-creme); border-radius: var(--ro-radius-lg); padding: 22px 24px; margin-top: 24px; border-left: 4px solid var(--ro-or); }
.ro-billing-export strong { color: var(--ro-terre); }
.ro-billing-export p { margin: 4px 0 0; color: var(--ro-muted); }

/* ─── Dashboard : MES RÉALISATIONS ───────────────────────────── */
.ro-realis-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ro-realis-head h2 { font-size: 1.4rem; margin-bottom: 4px; }
.ro-realis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 22px; }
.ro-realis-item { margin: 0; position: relative; background: var(--ro-blanc); border: 1px solid var(--ro-border); border-radius: var(--ro-radius); overflow: hidden; box-shadow: var(--ro-shadow); }
.ro-realis-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.ro-realis-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--ro-creme); color: var(--ro-muted); }
.ro-realis-item figcaption { padding: 10px 12px; font-size: 0.86rem; color: var(--ro-texte); font-weight: 500; }
.ro-realis-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(45,24,16,0.7); color: #fff; cursor: pointer; font-size: 0.85rem; }
.ro-realis-del:hover { background: var(--ro-sos); }
.ro-realis-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border: 2px dashed var(--ro-border); border-radius: var(--ro-radius); background: var(--ro-creme); color: var(--ro-bois); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all .2s; }
.ro-realis-add:hover { border-color: var(--ro-or); background: var(--ro-creme-dark); }
.ro-realis-add-icon { font-size: 2.2rem; line-height: 1; }
