/* =================================================================
   Installateur Panneaux Solaires — style v2 « éditorial énergie »
   Papier crème + encre marine + ambre solaire.
   Typo : Bricolage Grotesque (titres) / Source Sans 3 (texte).
   ================================================================= */

/* Polices auto-hébergées (variables, latin) — pas de requête externe. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
    font-weight: 600 800;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --paper:      #faf6ee;
    --paper-deep: #f3edde;
    --card:       #fffdf7;
    --ink:        #22293a;
    --night:      #12233c;
    --night-2:    #1d3a5f;
    --slate:      #5f6b7a;
    --sun:        #f2a007;
    --sun-deep:   #c77f00;
    --sun-ink:    #241503;
    --sun-pale:   #fdeed2;
    --leaf:       #2e7d4f;
    --line:       #e5dcc8;
    --line-dark:  #d5c9ac;
    --danger:     #b3362c;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 2px rgba(18, 35, 60, .06);
    --shadow:     0 10px 30px -12px rgba(18, 35, 60, .18);
    --maxw:       1180px;
    --font-body:  "Source Sans 3", "Segoe UI", Frutiger, Calibri, sans-serif;
    --font-disp:  "Bricolage Grotesque", "Source Sans 3", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0425rem;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-disp);
    line-height: 1.12;
    margin: 0 0 .5em;
    color: var(--night);
    letter-spacing: -.015em;
    font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--slate); }

.icon { width: 1.1em; height: 1.1em; vertical-align: -.16em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------ Overlines ------------------------ */
.overline {
    display: flex; align-items: center; gap: .8rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--sun-deep); margin-bottom: .9rem;
}
.overline::before { content: ""; width: 34px; height: 2px; background: var(--sun); }

/* ------------------------------- Boutons ------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-body); font-weight: 700; font-size: .98rem; line-height: 1;
    padding: .9em 1.5em; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); border-color: var(--sun-deep); color: var(--sun-ink); }
.btn-primary:hover { background: #ffb01e; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-light { background: var(--card); border-color: var(--line-dark); color: var(--night); }
.btn-light:hover { border-color: var(--night); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--line-dark); color: var(--night); }
.btn-outline:hover { border-color: var(--sun-deep); color: var(--sun-deep); }
.btn-ghost { background: transparent; color: var(--night); }
.btn-sm { padding: .62em 1.05em; font-size: .87rem; }
.btn-lg { padding: 1.02em 1.9em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ------------------------------- Header -------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 246, 238, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-disp); font-weight: 700; font-size: 1.06rem; color: var(--night); letter-spacing: -.01em; }
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
    background: var(--night); color: var(--sun);
}
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2; }
.brand-text strong { color: var(--sun-deep); }
.main-nav { display: flex; align-items: center; gap: 1.45rem; }
.main-nav > a:not(.btn) { font-weight: 600; font-size: .97rem; color: var(--night-2); border-bottom: 2px solid transparent; padding: .2rem 0; transition: color .14s, border-color .14s; }
.main-nav > a:not(.btn):hover { color: var(--sun-deep); border-color: var(--sun); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--night); border-radius: 2px; }

/* -------------------------------- Hero --------------------------- */
.hero { position: relative; background: var(--night); color: #e9e4d8; overflow: hidden; }
.hero-sun { position: absolute; right: -4%; bottom: -12%; width: min(46vw, 560px); height: auto; opacity: .9; pointer-events: none; }
.hero-photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 62% 38%;
}
.hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(15, 27, 47, .93) 0%, rgba(15, 27, 47, .82) 38%, rgba(15, 27, 47, .45) 68%, rgba(15, 27, 47, .22) 100%),
                linear-gradient(0deg, rgba(15, 27, 47, .55) 0%, rgba(15, 27, 47, 0) 30%);
}
.hero--photo .container { position: relative; z-index: 2; }
.hero-inner { position: relative; padding: 78px 24px 120px; max-width: 700px; }
.hero .overline { color: var(--sun); }
.hero .overline::before { background: var(--sun); }
.hero-title { font-size: clamp(2.15rem, 4.6vw, 3.35rem); font-weight: 800; color: #fdfaf2; margin-bottom: .45em; }
.hero-title em { font-style: normal; color: var(--sun); }
.hero-sub { font-size: 1.16rem; color: #b9c2cf; max-width: 540px; margin: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.hero-trust li {
    display: inline-flex; align-items: baseline; gap: .45rem;
    border: 1px solid rgba(233, 228, 216, .25); border-radius: 999px;
    padding: .42em 1em; font-size: .9rem; color: #cfd6df;
}
.hero-trust strong { font-family: var(--font-disp); color: #fff; font-size: 1.02rem; }

/* Carte de recherche à cheval sur le hero */
.search-band { position: relative; margin-top: -62px; z-index: 5; }
.search-box {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end;
    background: var(--card); border: 1px solid var(--line-dark);
    padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.search-field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 0 0 .4rem .1rem; }
.search-field select, .search-field input {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--paper);
}
.search-field select:focus, .search-field input:focus { outline: 2px solid var(--sun); outline-offset: 1px; background: #fff; }
.btn-search { height: 51px; }

/* ------------------------------ Sections ------------------------- */
.section { padding: 74px 0; }
.section--deep { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-title { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; }
.section-lead { color: var(--slate); font-size: 1.08rem; margin: 0; }

/* ---------------------------- Catégories ------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.cat-card {
    display: flex; flex-direction: column; gap: .85rem;
    padding: 1.5rem 1.3rem; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); font-weight: 600; color: var(--night); transition: .16s;
}
.cat-card:hover { border-color: var(--sun-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--sun-pale); color: var(--sun-deep); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-name { font-size: .98rem; line-height: 1.3; }

/* --------------------------- Cartes fiches ----------------------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.listing-card {
    position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.45rem; display: flex; flex-direction: column; gap: .9rem; transition: .16s;
}
.listing-card:hover { border-color: var(--sun-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.badge-featured {
    position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    color: var(--sun-deep); background: var(--sun-pale); border: 1px solid var(--line-dark);
    padding: .28em .7em; border-radius: 999px; text-transform: uppercase;
}
.listing-card-head { display: flex; gap: .85rem; align-items: center; }
.listing-avatar {
    flex: none; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center;
    background: var(--night); color: var(--sun); font-family: var(--font-disp); font-weight: 700; font-size: 1.25rem;
}
.listing-avatar--lg { width: 74px; height: 74px; border-radius: var(--radius-lg); font-size: 2rem; }
.listing-name { font-size: 1.1rem; margin: 0; }
.listing-name a:hover { color: var(--sun-deep); }
.listing-loc { margin: .1rem 0 0; color: var(--slate); font-size: .89rem; }
.listing-tag { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--night-2); background: var(--paper-deep); border: 1px solid var(--line); padding: .3em .75em; border-radius: 999px; }
.listing-desc { color: var(--slate); font-size: .95rem; margin: 0; flex: 1; }
.listing-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.rge-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--leaf); }
.rge-chip .icon { width: 1em; height: 1em; }
.rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; }
.rating-stars { color: var(--sun-deep); letter-spacing: 1px; }
.rating-num { font-weight: 700; color: var(--night); }
.rating-count { color: var(--slate); font-size: .82rem; }

/* ------------------------------- Étapes -------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.step { padding: 2rem 1.7rem; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-num { font-family: var(--font-disp); font-size: 2.4rem; font-weight: 800; color: var(--sun); line-height: 1; display: block; margin-bottom: .7rem; }
.step h3 { font-size: 1.16rem; }
.step p { color: var(--slate); margin: 0; font-size: .97rem; }

/* --------------------- Bande simulateur (accueil) ---------------- */
.sim-band { background: var(--night); color: #e9e4d8; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.sim-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.6rem 2.8rem; flex-wrap: wrap; position: relative; }
.sim-band h2 { color: #fdfaf2; margin: 0 0 .35rem; font-size: 1.65rem; }
.sim-band p { margin: 0; color: #b9c2cf; max-width: 520px; }
.sim-band .hero-sun { width: 240px; right: -30px; bottom: -50px; opacity: .5; }

/* ---------------------- Nuage de départements -------------------- */
.dept-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-chip {
    display: inline-flex; align-items: center; gap: .5rem; padding: .42em .95em; background: var(--card);
    border: 1px solid var(--line); border-radius: 999px; font-size: .89rem; font-weight: 600; color: var(--night-2); transition: .14s;
}
.dept-chip:hover { border-color: var(--sun-deep); color: var(--sun-deep); }
.dept-chip span { background: var(--paper-deep); border: 1px solid var(--line); color: var(--slate); font-size: .74rem; font-weight: 700; padding: .05em .5em; border-radius: 999px; }

/* -------------------------------- CTA ---------------------------- */
.cta { background: var(--sun); border-top: 1px solid var(--sun-deep); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 52px 24px; flex-wrap: wrap; }
.cta h2 { color: var(--sun-ink); margin: 0 0 .25rem; font-size: 1.7rem; }
.cta p { margin: 0; color: #5b3d0d; font-size: 1.08rem; }
.cta .btn { background: var(--night); color: #fdfaf2; border-color: transparent; }
.cta .btn:hover { background: var(--night-2); }

/* ------------------------------ Footer --------------------------- */
.site-footer { background: var(--night); color: #a7b2c1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 42px; }
.brand--footer { color: #fdfaf2; }
.footer-tagline { color: #7e8ca0; max-width: 300px; margin: 1rem 0 0; font-size: .93rem; }
.site-footer h4 { color: #fdfaf2; font-size: .95rem; margin: 0 0 1rem; }
.site-footer a { display: block; color: #a7b2c1; padding: .22rem 0; font-size: .93rem; transition: color .14s; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 24px; font-size: .85rem; color: #66788f; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ------------------------- Entête de page ------------------------ */
.page-head { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-head h1 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); margin: .25rem 0 .4rem; }
.page-head p { color: var(--slate); margin: 0; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: var(--slate); margin-bottom: .3rem; }
.breadcrumb a:hover { color: var(--sun-deep); }
.page-head--listing { padding-bottom: 34px; }
.listing-hero { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.1rem; }
.listing-hero h1 { margin: 0 0 .15rem; }
.listing-hero-loc { color: var(--slate); margin: 0 0 .45rem; }

/* --------------------------- Recherche --------------------------- */
.search-layout { display: grid; grid-template-columns: 275px 1fr; gap: 30px; padding-top: 38px; padding-bottom: 74px; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.filters-title { font-size: 1.08rem; margin: 0 0 1.2rem; }
.filter-group { margin-bottom: 1.05rem; }
.filter-group label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); margin-bottom: .4rem; }
.filter-group select, .filter-group input { width: 100%; padding: .68rem .85rem; border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: .96rem; font-family: inherit; background: var(--paper); }
.filter-group select:focus, .filter-group input:focus { outline: 2px solid var(--sun); outline-offset: 1px; background: #fff; }
.filters-reset { display: block; text-align: center; margin-top: .8rem; font-size: .86rem; color: var(--slate); }
.filters-reset:hover { color: var(--sun-deep); }

.dept-intro { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--sun); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin-bottom: 1.6rem; }
.dept-intro p { margin: 0 0 .7em; color: var(--ink); font-size: .99rem; }
.dept-intro p:last-child { margin-bottom: 0; }
.dept-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.dept-fact { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .86rem; color: var(--slate); }
.dept-fact strong { color: var(--night); font-family: var(--font-disp); }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; margin-top: 2.4rem; }
.pager-link { display: inline-grid; place-items: center; min-width: 41px; height: 41px; padding: 0 .7rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--card); font-weight: 700; font-size: .92rem; color: var(--night-2); transition: .14s; }
.pager-link:hover { border-color: var(--sun-deep); color: var(--sun-deep); }
.pager-link.is-active { background: var(--night); border-color: var(--night); color: var(--sun); }
.pager-gap { color: var(--slate); padding: 0 .2rem; }

.empty-state { text-align: center; padding: 4rem 1.5rem; background: var(--card); border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); }
.empty-state .icon { width: 40px; height: 40px; color: var(--slate); margin-bottom: .8rem; }

/* ------------------------ Détail installateur -------------------- */
.listing-detail { display: grid; grid-template-columns: 1fr 335px; gap: 40px; padding: 42px 24px 74px; align-items: start; }
.listing-main h2 { font-size: 1.32rem; margin-top: 2.1rem; }
.listing-main h2:first-of-type { margin-top: .9rem; }
.listing-description { color: var(--ink); }
.rge-banner { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--leaf); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .94rem; color: var(--slate); }
.rge-banner .icon { color: var(--leaf); width: 22px; height: 22px; margin-top: .1rem; }
.rge-banner strong { color: var(--night); }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; list-style: none; padding: 0; }
.service-list li { display: flex; align-items: center; gap: .6rem; padding: .68rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; }
.service-list .icon { color: var(--leaf); }
.reviews { display: flex; flex-direction: column; gap: 1rem; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.listing-side { position: sticky; top: 92px; }
.contact-card { background: var(--card); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.18rem; }
.contact-row { display: flex; align-items: center; gap: .7rem; padding: .68rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .96rem; }
.contact-row .icon { color: var(--sun-deep); }
.contact-row:hover { color: var(--sun-deep); }
.contact-address { color: var(--slate); font-size: .9rem; display: flex; gap: .7rem; margin: .8rem 0 1.2rem; }
.contact-address .icon { margin-top: .25rem; color: var(--sun-deep); }

/* ---------------------------- Simulateur ------------------------- */
.sim-layout { display: grid; grid-template-columns: 420px 1fr; gap: 34px; padding-top: 40px; padding-bottom: 74px; align-items: start; }
.sim-form { background: var(--card); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.sim-form h2 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.sim-results { display: none; }
.sim-results.is-visible { display: block; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 1.2rem 0 1.6rem; }
.sim-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.sim-stat-num { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 800; color: var(--night); line-height: 1.1; display: block; }
.sim-stat-num small { font-size: 1rem; font-weight: 700; color: var(--slate); }
.sim-stat-label { font-size: .86rem; color: var(--slate); font-weight: 600; }
.sim-stat--hero { background: var(--night); border-color: var(--night); }
.sim-stat--hero .sim-stat-num { color: var(--sun); }
.sim-stat--hero .sim-stat-label { color: #b9c2cf; }
.sim-note { font-size: .86rem; color: var(--slate); background: var(--paper-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.sim-placeholder { border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); padding: 3.4rem 1.5rem; text-align: center; color: var(--slate); }
.sim-placeholder .icon { width: 38px; height: 38px; margin-bottom: .7rem; color: var(--sun-deep); }

/* ------------------------------- Guides -------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; transition: .16s; }
.guide-card:hover { border-color: var(--sun-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.guide-card h2 { font-size: 1.18rem; margin: 0; }
.guide-card p { color: var(--slate); font-size: .95rem; margin: 0; flex: 1; }
.guide-card .guide-more { color: var(--sun-deep); font-weight: 700; font-size: .92rem; }
.prose { padding-top: 40px; padding-bottom: 74px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.13rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--sun-deep); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: var(--card); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .9rem; text-align: left; }
.prose th { background: var(--paper-deep); font-weight: 700; }

/* -------------------------------- FAQ ---------------------------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; padding: 2.4rem 0 0; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq-item summary { cursor: pointer; padding: 1.15rem 1.5rem; font-weight: 700; font-family: var(--font-disp); font-size: 1.04rem; color: var(--night); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--sun-deep); font-weight: 400; transition: transform .18s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.5rem 1.2rem; color: var(--slate); }

/* ------------------------------ Formulaires ---------------------- */
.form-wrap { padding: 42px 24px 74px; max-width: 830px; }
.form-card { background: var(--card); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.form-card legend { font-family: var(--font-disp); font-weight: 700; font-size: 1.06rem; color: var(--night); padding: 0 0 .5rem; margin-bottom: 1rem; width: 100%; border-bottom: 1px solid var(--line); }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .38rem; color: var(--night-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: .78rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fdf3f2; }
.error-msg { display: block; color: var(--danger); font-size: .84rem; margin-top: .35rem; }
.form-note { color: var(--slate); font-size: .86rem; margin-top: 1rem; }
.auth-card { max-width: 440px; margin: 0 auto; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-weight: 600; border: 1px solid; }
.alert-success { background: #eef7ef; color: #22633c; border-color: #bfdec7; }
.alert-error { background: #fdf1f0; color: var(--danger); border-color: #ecc8c4; }

.success-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 2.4rem; display: grid; place-items: center; }
.error-code { font-family: var(--font-disp); font-size: 5rem; font-weight: 800; color: var(--sun); line-height: 1; margin-bottom: .5rem; }

/* ------------------------------- Admin --------------------------- */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1.5rem 0 2rem; }
.admin-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .15s; }
a.admin-card:hover { border-color: var(--sun-deep); transform: translateY(-2px); }
.admin-card-num { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; color: var(--sun-deep); line-height: 1; }
.admin-card-label { font-weight: 600; color: var(--night-2); font-size: .94rem; }
.admin-card--muted { background: var(--paper-deep); }
.admin-card--muted .admin-card-num { color: var(--night); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 3rem; }
.admin-table th, .admin-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--paper-deep); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.admin-actions form { display: flex; gap: .5rem; }

/* --------------------------- Animations -------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .hero .overline, .hero-title, .hero-sub, .hero-trust { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
    .hero-sub { animation-delay: .08s; }
    .hero-trust { animation-delay: .16s; }
    .search-band .search-box { animation: rise .6s .22s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------ Responsive ----------------------- */
@media (max-width: 940px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .listing-detail { grid-template-columns: 1fr; }
    .listing-side { position: static; }
    .sim-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-sun { opacity: .35; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 24px 1.4rem; gap: .4rem;
        box-shadow: var(--shadow); display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav > a:not(.btn) { padding: .6rem 0; border-bottom: 1px solid var(--line); }
    .search-box { grid-template-columns: 1fr; }
    .btn-search { height: auto; }
    .cta-inner, .sim-band-inner { flex-direction: column; align-items: flex-start; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .hero-inner { padding: 56px 24px 100px; }
    .steps { grid-template-columns: 1fr; }
    .step { border-left: 0; border-top: 1px solid var(--line); }
    .step:first-child { border-top: 0; }
}
