/* ============================================================
   Permisejour.ch — design system
   Palette : fond #F5F1E8 · encre #141517 · rouge suisse #C8362A
   Permis G #2B5C8A · B #C8362A · C #2E6B4F
   ============================================================ */

/* ---------- Polices auto-hébergées (variable fonts, /fonts/) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

body {
  margin: 0;
  background: #F5F1E8;
  color: #141517;
  font-family: 'Hanken Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, textarea, select { font-family: inherit; }
a { color: #B5302A; }
a:hover { color: #8E2521; }
input::placeholder, textarea::placeholder { color: #9A9486; }

.serif { font-family: 'Newsreader', serif; }
.accent { color: #C8362A; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }

/* ---------- Header ---------- */
.top-hairline { height: 4px; background: #C8362A; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E0DACB;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 0; }
.logo-mark { width: 28px; height: 28px; background: #C8362A; border-radius: 6px; position: relative; display: inline-block; flex: none; }
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: #fff; border-radius: 2px;
}
.logo-mark::before { width: 14px; height: 3.6px; }
.logo-mark::after { width: 3.6px; height: 14px; }
.logo-text { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: #141517; white-space: nowrap; }

.logo { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); }
.nav-link { background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: #3D4046; white-space: nowrap; padding: 0; text-decoration: none; }
.nav-link:hover { color: #141517; }
.nav-link .caret { font-size: 11px; opacity: 0.6; }

/* Menu déroulant « Les permis » */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; z-index: 70;
  display: none; flex-direction: column; gap: 2px; min-width: 265px;
  background: #fff; border: 1px solid #E3DCCB; border-radius: 13px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.nav-drop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: flex; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #3D4046; font-size: 14.5px; font-weight: 600; padding: 10px 12px; border-radius: 9px;
}
.nav-drop-menu a:hover { background: #F5F1E8; color: #141517; }
.drop-badge {
  flex: none; width: 26px; height: 26px; border-radius: 7px; color: #fff;
  font-family: 'Newsreader', serif; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.nav-drop-menu .drop-compare { border-top: 1px solid #ECE6D6; margin-top: 4px; padding-top: 12px; color: #B5302A; }

/* Mega menu */
.mega-menu {
  flex-direction: row; flex-wrap: wrap; width: 620px; padding: 14px; gap: 6px;
}
.mega-permits { flex: 1.35; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mega-permit { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.mega-permit:hover { background: #F5F1E8; }
.mega-permit-main { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; text-decoration: none; padding: 10px 8px 10px 10px; border-radius: 10px; }
.mega-permit-txt { display: flex; flex-direction: column; min-width: 0; }
.mega-permit-txt strong { font-size: 14.5px; color: #1B1D20; }
.mega-permit-txt small { font-size: 12.5px; color: #75705F; }
.mega-permit-aid { flex: none; font-size: 12.5px; font-weight: 700; color: #B5302A; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.mega-permit-aid:hover { background: #F8EAE7; color: #8E2521; }
.mega-side { flex: 1; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #ECE6D6; padding-left: 12px; }
.mega-link { display: block; text-decoration: none; color: #3D4046; font-size: 13.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.mega-link:hover { background: #F5F1E8; color: #141517; }
.mega-cta {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 8px; padding: 14px 16px; border-radius: 12px; text-decoration: none;
  background: #141517; color: #fff;
}
.mega-cta:hover { background: #24262B; color: #fff; }
.mega-cta-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-cta-txt strong { font-size: 14.5px; }
.mega-cta-txt span { font-size: 12.5px; color: #B8BBC1; }
.mega-cta-btn { flex: none; background: #C8362A; color: #fff; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 9px; white-space: nowrap; }

.lang-switch { flex: none; display: flex; align-items: center; border: 1px solid #D3CCBB; border-radius: 8px; overflow: hidden; }
.lang-btn { border: none; cursor: pointer; padding: 6px 11px; font-size: 13px; font-weight: 700; background: transparent; color: #6B6E74; text-decoration: none; }
.lang-btn.active { background: #141517; color: #fff; cursor: default; }

.header-cta {
  cursor: pointer; background: #C8362A; color: #fff; border: none; border-radius: 9px;
  padding: 10px 18px; font-size: 14px; font-weight: 700; white-space: nowrap; flex: none;
  text-decoration: none;
}
.header-cta:hover { background: #B5302A; color: #fff; }

/* ---------- Boutons (button ou lien) ---------- */
.btn { cursor: pointer; border: none; border-radius: 11px; font-size: 17px; font-weight: 700; padding: 17px 30px; display: inline-block; text-align: center; text-decoration: none; }
.btn-primary { background: #C8362A; color: #fff; box-shadow: 0 8px 24px rgba(200, 54, 42, 0.28); }
.btn-primary:hover { color: #fff; }
.btn-outline { background: #fff; color: #1B1D20; font-weight: 600; border: 1px solid #D8D1C0; }
.btn-outline:hover { color: #1B1D20; }

/* ---------- Hero ---------- */
.hero { padding-top: 84px; padding-bottom: 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid #DCC9B2; background: #FAF0E4; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #8F471C; margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #C8362A; }
.hero h1 {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 62px; line-height: 1.03;
  letter-spacing: -0.025em; margin: 0 0 24px; color: #111214; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: #C8362A; }
.hero-sub { font-size: 20px; line-height: 1.55; color: #4E5158; margin: 0 0 34px; max-width: 29em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: #75705F; }
.check-green { color: #2E6B4F; font-weight: 700; }

.hero-visual { position: relative; height: 420px; }
.hero-card {
  position: absolute; width: 310px; height: 194px; border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16); padding: 22px 24px; color: #fff;
}
.hero-card .big-letter { font-family: 'Newsreader', serif; font-size: 42px; font-weight: 600; opacity: 0.94; }
.hero-card .card-label { position: absolute; bottom: 20px; left: 24px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; }
.hero-card.card-c { right: 64px; top: 14px; background: #2E6B4F; transform: rotate(-9deg); }
.hero-card.card-g { right: 20px; top: 86px; background: #2B5C8A; transform: rotate(5deg); }
.hero-card.card-b {
  right: 66px; top: 172px; width: 324px; height: 204px; background: #C8362A;
  transform: rotate(-3deg); box-shadow: 0 26px 56px rgba(0, 0, 0, 0.24); padding: 24px 26px;
}
.hero-card.card-b .big-letter { font-size: 48px; opacity: 1; }
.hero-card.card-b .card-label { bottom: 22px; left: 26px; opacity: 0.9; }
.hero-card .card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.plus-badge { width: 32px; height: 32px; border-radius: 7px; background: rgba(255, 255, 255, 0.18); position: relative; }
.plus-badge::before, .plus-badge::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: #fff; border-radius: 2px;
}
.plus-badge::before { width: 15px; height: 3px; }
.plus-badge::after { width: 3px; height: 15px; }

/* ---------- Barre de preuves ---------- */
.proof-bar { border-top: 1px solid #E0DACB; border-bottom: 1px solid #E0DACB; background: #FCFAF4; }
.proof-grid { padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-item { display: flex; flex-direction: column; gap: 3px; border-left: 2px solid #C8362A; padding-left: 16px; }
.proof-item .v { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 600; color: #141517; }
.proof-item .l { font-size: 13.5px; font-weight: 600; color: #75705F; }

/* ---------- Sections numérotées ---------- */
.section { padding-top: 72px; padding-bottom: 72px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 10px; }
.section-head .num { font-family: 'Newsreader', serif; font-size: 15px; font-weight: 600; color: #C8362A; letter-spacing: 0.08em; }
.section-head h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 40px; letter-spacing: -0.02em; margin: 0; color: #141517; }
.section-sub { font-size: 17px; color: #55584F; margin: 0 0 36px 40px; max-width: 44em; }
.indent { margin-left: 40px; }

/* ---------- Orientation (cartes permis) ---------- */
.orient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.permit-card {
  text-align: left; cursor: pointer; background: #fff; border: 1px solid #E3DCCB;
  border-radius: 18px; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none; color: inherit;
}
.permit-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(0, 0, 0, 0.1); }
.permit-card-head { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.permit-card-head .tagline { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.permit-card-head .name { font-family: 'Newsreader', serif; font-size: 25px; font-weight: 600; }
.permit-card-head .letter { font-family: 'Newsreader', serif; font-size: 44px; font-weight: 600; opacity: 0.55; }
.permit-card-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.permit-card-body p { font-size: 15.5px; line-height: 1.55; color: #4E5158; margin: 0; flex: 1; }
.card-link { font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card-link .arrow { font-size: 16px; }

/* ---------- Quiz (section sombre) ---------- */
.quiz-section { background: #111214; color: #fff; scroll-margin-top: 70px; }
.quiz-grid { padding-top: 76px; padding-bottom: 76px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.quiz-section .section-head .num { color: #E06055; }
.quiz-section .section-head h2 { color: #fff; line-height: 1.08; }
.quiz-intro { font-size: 17px; line-height: 1.6; color: #A4A7AD; margin: 0 0 26px 40px; }
.quiz-benefits { margin-left: 40px; display: flex; flex-direction: column; gap: 12px; }
.quiz-benefit { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #C6C9CE; line-height: 1.5; }
.quiz-benefit .tick { flex: none; color: #E06055; font-weight: 700; }

.quiz-card { background: #1B1D21; border: 1px solid #2B2E34; border-radius: 20px; padding: 36px; }
.quiz-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.quiz-progress-label { font-size: 13px; font-weight: 700; color: #7B8087; letter-spacing: 0.05em; }
.quiz-bar { flex: 1; height: 3px; background: #2B2E34; border-radius: 2px; overflow: hidden; display: block; }
.quiz-bar-fill { display: block; height: 100%; background: #C8362A; }
.quiz-question { font-family: 'Newsreader', serif; font-weight: 500; font-size: 26px; margin: 0 0 24px; color: #fff; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  text-align: left; cursor: pointer; background: #25282D; border: 1px solid #35393F;
  color: #E9EAEC; font-size: 16px; font-weight: 500; padding: 17px 19px; border-radius: 12px; line-height: 1.4;
}
.quiz-option:hover { background: #2E3238; border-color: #4A5058; }

.rec-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rec-letter {
  flex: none; width: 58px; height: 58px; border-radius: 14px; color: #fff;
  font-family: 'Newsreader', serif; font-size: 32px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.rec-letter.lg { width: 62px; height: 62px; font-size: 34px; }
.rec-kicker { font-size: 13px; font-weight: 700; color: #7B8087; letter-spacing: 0.05em; text-transform: uppercase; }
.rec-name { font-family: 'Newsreader', serif; font-size: 25px; font-weight: 600; color: #fff; }
.rec-tagline { font-size: 14px; color: #A4A7AD; }
.gate-pitch { font-size: 15.5px; line-height: 1.6; color: #B8BBC1; margin: 0 0 20px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-input {
  width: 100%; padding: 15px 17px; border: 1px solid #35393F; border-radius: 11px;
  background: #25282D; color: #fff; font-size: 15.5px;
}
.gate-submit { cursor: pointer; background: #C8362A; border: none; border-radius: 11px; padding: 15px; font-size: 16px; font-weight: 700; color: #fff; }
.gate-skip { cursor: pointer; background: none; border: none; padding: 4px; font-size: 13.5px; font-weight: 600; color: #7B8087; text-decoration: underline; }
.gate-privacy { font-size: 12px; line-height: 1.5; color: #63676E; margin: 14px 0 0; }
.gate-thanks { display: flex; gap: 10px; align-items: center; background: #1F2C24; border: 1px solid #2E6B4F; border-radius: 10px; padding: 12px 15px; margin-bottom: 16px; }
.gate-thanks .tick { color: #5BBD8B; font-weight: 700; }
.gate-thanks span:last-child { font-size: 14px; color: #BFE3D0; }
.rec-short { font-size: 15.5px; line-height: 1.6; color: #B8BBC1; margin: 0 0 22px; }
.rec-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rec-go { border: none; cursor: pointer; background: #C8362A; color: #fff; font-size: 15.5px; font-weight: 700; padding: 14px 24px; border-radius: 11px; display: inline-block; text-decoration: none; }
.rec-go:hover { color: #fff; }
.rec-go[disabled] { opacity: 0.6; cursor: wait; }
.rec-restart { cursor: pointer; background: none; border: 1px solid #3A3F45; color: #C9CCD1; font-size: 15.5px; font-weight: 600; padding: 14px 20px; border-radius: 11px; }

/* ---------- Accompagnement (questionnaire en slides) ---------- */
.acc-wrap { max-width: 680px; }
.acc-reassure { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #55584F; margin: -14px 0 26px; }
.acc-hint { font-size: 13.5px; color: #7B8087; margin: -16px 0 20px; }
.acc-back { background: none; border: none; cursor: pointer; color: #7B8087; font-size: 14px; font-weight: 600; margin-top: 18px; text-decoration: underline; }
.acc-back:hover { color: #B8BBC1; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-label { display: block; font-size: 13.5px; font-weight: 600; color: #B8BBC1; margin: 14px 0 6px; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: #C9CCD1; line-height: 1.5; cursor: pointer; }
.acc-check input { margin-top: 3px; flex: none; accent-color: #C8362A; }
.acc-error { margin: 14px 0 0; color: #FF9E97; font-size: 14px; font-weight: 600; }
.acc-recap {
  background: #25282D; border: 1px solid #35393F; border-radius: 11px;
  padding: 14px 16px; font-size: 15px; font-weight: 600; color: #E9EAEC; margin-bottom: 6px;
}
textarea.gate-input { resize: vertical; width: 100%; }

/* Une question par slide : entrée animée */
@keyframes acc-slide-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.acc-slide { animation: acc-slide-in 0.28s ease-out; }
@media (prefers-reduced-motion: reduce) { .acc-slide { animation: none; } }

/* Options avec touche A/B/C */
.acc-option { display: flex; align-items: center; gap: 14px; }
.acc-option .opt-key {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid #4A5058; background: #1B1D21; color: #B8BBC1;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.acc-option:hover .opt-key { border-color: #C8362A; color: #fff; }
.acc-option .opt-sub { display: block; font-size: 13px; color: #9A9EA5; margin-top: 2px; }
.quiz-option.selected { border-color: #C8362A; background: #2E2325; }
.quiz-option.selected .opt-key { background: #C8362A; border-color: #C8362A; color: #fff; }

/* ---------- Comment ça marche ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-left: 40px; margin-top: 30px; }
.how-item { display: flex; flex-direction: column; gap: 13px; border-top: 2px solid #141517; padding-top: 18px; }
.how-item .n { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 600; color: #C8362A; }
.how-item h3 { font-size: 19px; font-weight: 700; margin: 0; color: #1B1D20; }
.how-item p { font-size: 15px; line-height: 1.55; color: #55584F; margin: 0; }

/* ---------- Témoignages ---------- */
.testi-section { border-top: 1px solid #E0DACB; background: #FCFAF4; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-left: 40px; margin-top: 30px; }
.testi-card { background: #fff; border: 1px solid #E3DCCB; border-radius: 16px; padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.stars { color: #D9A441; font-size: 15px; letter-spacing: 2px; }
.testi-card blockquote { font-family: 'Newsreader', serif; font-size: 17.5px; font-style: italic; line-height: 1.5; color: #2B2D31; margin: 0; flex: 1; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.testi-name { display: block; font-size: 14.5px; font-weight: 700; color: #1B1D20; }
.testi-role { display: block; font-size: 13px; color: #75705F; }

/* ---------- CTA final ---------- */
.final-cta {
  background: #C8362A; border-radius: 24px; padding: 56px 60px; color: #fff;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.final-cta .watermark {
  position: absolute; right: -40px; bottom: -70px; font-family: 'Newsreader', serif;
  font-size: 280px; font-weight: 600; color: rgba(255, 255, 255, 0.07); line-height: 1; pointer-events: none;
}
.final-cta h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.final-cta .sub { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); margin: 0; }
.final-cta .col { position: relative; }
.final-cta .actions { display: flex; flex-direction: column; gap: 12px; }
.final-cta .btn-white { cursor: pointer; background: #fff; color: #C8362A; border: none; border-radius: 12px; padding: 17px; font-size: 17px; font-weight: 800; text-align: center; text-decoration: none; display: block; }
.final-cta .btn-white:hover { color: #C8362A; }
.final-cta .btn-ghost { cursor: pointer; background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; display: block; }
.final-cta .btn-ghost:hover { color: #fff; }
.final-cta .reassure { text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Page permis : bandeau ---------- */
.permit-hero { color: #fff; }
.permit-hero-inner { padding-top: 44px; padding-bottom: 40px; }
.breadcrumb { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.75); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .cur { color: #fff; }
.permit-id { display: flex; align-items: center; gap: 26px; }
.permit-id-letter {
  flex: none; width: 84px; height: 84px; border-radius: 18px; background: rgba(255, 255, 255, 0.16);
  font-family: 'Newsreader', serif; font-size: 46px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.permit-id .tagline { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.permit-id h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; margin: 4px 0 0; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 18px; margin-top: 32px; }
.meta-box { background: rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 14px 18px; }
.meta-box .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.meta-box .v { font-size: 15.5px; font-weight: 700; margin-top: 3px; }

/* ---------- Page permis : layout ---------- */
.detail-layout { padding-top: 44px; padding-bottom: 110px; display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.detail-aside { position: sticky; top: 86px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.side-nav a { text-decoration: none; color: #4E5158; font-size: 14.5px; font-weight: 600; padding: 9px 13px; border-radius: 9px; }
.side-nav a:hover { background: #ECE6D6; color: #141517; }

.lead-side { background: #141517; border-radius: 16px; padding: 22px; color: #fff; }
.lead-side .title { font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.lead-side p { font-size: 13.5px; line-height: 1.5; color: #A4A7AD; margin: 0 0 14px; }
.lead-side .cta {
  display: block; width: 100%; text-align: center; text-decoration: none; border: none; cursor: pointer;
  color: #fff; font-size: 14.5px; font-weight: 700; padding: 12px 14px; border-radius: 10px;
}
.urgency { margin-top: 14px; background: #FAF0E4; border: 1px solid #E8D4BC; border-radius: 13px; padding: 16px 18px; font-size: 13.5px; line-height: 1.5; color: #8F471C; }
.urgency strong { display: block; margin-bottom: 3px; }

.detail-content section { scroll-margin-top: 90px; margin-bottom: 44px; }
.detail-content h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 31px; letter-spacing: -0.015em; margin: 0 0 14px; color: #141517; }
.who-text { font-size: 17.5px; line-height: 1.65; color: #3D4046; margin: 0; }
.who-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-permit { cursor: pointer; color: #fff; border: none; border-radius: 10px; padding: 14px 24px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-permit:hover { color: #fff; }
.btn-plain { cursor: pointer; background: #fff; color: #1B1D20; border: 1px solid #D8D1C0; border-radius: 10px; padding: 14px 24px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-plain:hover { color: #1B1D20; }

.cond-list { display: flex; flex-direction: column; gap: 12px; }
.cond-item { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid #E3DCCB; border-radius: 13px; padding: 16px 19px; }
.cond-item .tick { flex: none; margin-top: 1px; width: 21px; height: 21px; border-radius: 50%; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cond-item .label { font-size: 15.5px; line-height: 1.55; color: #3D4046; }

.docs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.docs-head h2 { margin: 0; }
.docs-progress { font-size: 14px; font-weight: 700; }
.docs-hint { font-size: 15px; color: #55584F; margin: 0 0 18px; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { text-align: left; cursor: pointer; display: flex; gap: 13px; align-items: center; border-radius: 13px; padding: 15px 19px; border: 1px solid #E3DCCB; background: #fff; }
.doc-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.8px solid #C4BCA8; background: #fff; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.doc-label { font-size: 15.5px; font-weight: 500; color: #3D4046; }
.doc-item.checked { background: var(--pt, #F8EAE7); border-color: var(--pc55, #C8362A55); }
.doc-item.checked .doc-box { background: var(--pc, #C8362A); border-color: var(--pc, #C8362A); }
.doc-item.checked .doc-box::after { content: "✓"; }
.doc-item.checked .doc-label { text-decoration: line-through; }

.magnet { margin-top: 22px; background: #fff; border-radius: 15px; padding: 22px 24px; }
.magnet-row { display: flex; gap: 18px; align-items: center; }
.magnet-icon { flex: none; width: 46px; height: 46px; border-radius: 11px; font-size: 21px; display: flex; align-items: center; justify-content: center; }
.magnet-title { font-size: 16px; font-weight: 700; color: #1B1D20; }
.magnet-sub { font-size: 13.5px; color: #55584F; margin-top: 2px; }
.magnet-form { display: flex; gap: 10px; margin-top: 16px; }
.magnet-form input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid #D8D1C0; border-radius: 10px; background: #FCFAF4; color: #141517; font-size: 15px; }
.magnet-form button { flex: none; cursor: pointer; color: #fff; border: none; border-radius: 10px; padding: 13px 20px; font-size: 14.5px; font-weight: 700; }
.magnet-done { display: flex; gap: 13px; align-items: center; }
.magnet-done .tick { flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.magnet-done span:last-child { font-size: 15px; font-weight: 600; color: #1B1D20; }

.step-row { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.step-track { display: flex; flex-direction: column; align-items: center; }
.step-dot {
  flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff;
  font-family: 'Newsreader', serif; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step-line { width: 2px; flex: 1; min-height: 18px; }
.step-body { padding-bottom: 26px; }
.step-body h3 { font-size: 18.5px; font-weight: 700; margin: 6px 0 6px; color: #1B1D20; }
.step-body p { font-size: 15px; line-height: 1.6; color: #55584F; margin: 0; }

.renew-box { border-radius: 15px; padding: 22px 26px; border: 1px solid transparent; }
.renew-box p { font-size: 16px; line-height: 1.65; color: #3D4046; margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid #E3DCCB; border-radius: 13px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; cursor: pointer; background: none; border: none; padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .q { font-size: 16.5px; font-weight: 700; color: #1B1D20; }
.faq-q .plus { flex: none; font-size: 21px; color: #C8362A; transition: transform 0.15s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { font-size: 15px; line-height: 1.65; color: #4E5158; margin: 0; padding: 0 21px 21px; display: none; }
.faq-item.open .faq-a { display: block; }
.home-faq-list { max-width: 840px; }

/* ---------- Bannière lead ---------- */
.lead-banner { scroll-margin-top: 90px; margin-top: 44px; border-radius: 22px; padding: 38px 40px; color: #fff; overflow: hidden; position: relative; }
.lead-banner .watermark {
  position: absolute; right: -30px; top: -40px; font-family: 'Newsreader', serif;
  font-size: 220px; font-weight: 600; color: rgba(255, 255, 255, 0.08); line-height: 1; pointer-events: none;
}
.lead-banner .inner { position: relative; max-width: 580px; }
.lead-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.82; margin-bottom: 10px; }
.lead-banner h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 32px; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 24px; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lead-fields input { width: 100%; padding: 14px 16px; border: none; border-radius: 11px; font-size: 15.5px; color: #141517; background: rgba(255, 255, 255, 0.96); }
.lead-fields .full { grid-column: 1 / -1; }
.lead-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.9); margin-bottom: 18px; cursor: pointer; }
.lead-consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: #fff; }
.lead-text { font-size: 16px; line-height: 1.6; margin: -8px 0 24px; opacity: 0.92; }
.lead-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-submit { cursor: pointer; background: #fff; border: none; border-radius: 11px; padding: 15px 28px; font-size: 16.5px; font-weight: 800; display: inline-block; text-align: center; text-decoration: none; }
.lead-reassure { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); max-width: 19em; line-height: 1.45; }
.lead-done { display: flex; gap: 14px; align-items: center; }
.lead-done .tick { flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.lead-done p { font-size: 17px; line-height: 1.5; margin: 0; color: #fff; }

.disclaimer { margin-top: 32px; display: flex; gap: 12px; align-items: flex-start; background: #FAF0E4; border: 1px solid #E8D4BC; border-radius: 13px; padding: 16px 19px; }
.disclaimer .ico { flex: none; font-size: 16px; }
.disclaimer p { font-size: 13.5px; line-height: 1.55; color: #8F471C; margin: 0; }
.disclaimer .date { opacity: 0.8; }

/* ---------- Barre CTA fixe (page permis) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(20, 21, 23, 0.96); backdrop-filter: blur(10px); border-top: 1px solid #2B2E34; }
.sticky-cta-inner { max-width: 1240px; margin: 0 auto; padding: 13px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sticky-cta .info { display: flex; align-items: center; gap: 13px; color: #fff; }
.sticky-cta .badge { flex: none; width: 34px; height: 34px; border-radius: 9px; font-family: 'Newsreader', serif; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.sticky-cta .txt { font-size: 15px; font-weight: 600; }
.sticky-cta .actions { display: flex; gap: 10px; flex: none; }
.sticky-cta .primary { text-decoration: none; background: #C8362A; color: #fff; font-size: 14.5px; font-weight: 700; padding: 11px 20px; border-radius: 9px; white-space: nowrap; }
.sticky-cta .secondary { cursor: pointer; background: none; color: #C9CCD1; border: 1px solid #3A3F45; border-radius: 9px; padding: 11px 18px; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-decoration: none; display: inline-block; }
.sticky-cta .secondary:hover { color: #fff; }

/* ---------- Pages simples (titres) ---------- */
.page-main { padding-top: 52px; padding-bottom: 72px; }
.page-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 44px; letter-spacing: -0.02em; margin: 0 0 12px; color: #111214; }
.page-sub { font-size: 17.5px; line-height: 1.55; color: #4E5158; margin: 0 0 44px; max-width: 44em; }

/* ---------- Suivi ---------- */
.pick-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #8A8371; margin-bottom: 10px; }
.track-tabs { display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.track-tab { display: flex; align-items: center; gap: 10px; cursor: pointer; background: #fff; color: #4E5158; border: 1px solid #DED7C4; border-radius: 11px; padding: 12px 17px; font-size: 15px; font-weight: 700; }
.track-tab .letter { font-family: 'Newsreader', serif; font-size: 18px; font-weight: 600; }
.track-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.overall-card { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid #E3DCCB; border-radius: 17px; padding: 26px; margin-bottom: 32px; }
.ring { flex: none; width: 98px; height: 98px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ring-inner { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Newsreader', serif; font-size: 24px; font-weight: 600; color: #141517; }
.overall-k { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #8A8371; margin-bottom: 4px; }
.overall-v { font-family: 'Newsreader', serif; font-size: 25px; font-weight: 600; color: #141517; }

.track-h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 27px; letter-spacing: -0.015em; margin: 0 0 6px; color: #141517; }
.track-hint { font-size: 14.5px; color: #55584F; margin: 0 0 18px; }
.stage-row { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.stage-track { display: flex; flex-direction: column; align-items: center; }
.stage-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #D3CCBB; background: #fff; font-family: 'Newsreader', serif; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stage-line { width: 2px; flex: 1; min-height: 14px; }
.stage-card { text-align: left; cursor: pointer; background: #fff; border: 1px solid #E3DCCB; border-radius: 13px; padding: 15px 19px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage-title { display: block; font-size: 16px; font-weight: 700; color: #1B1D20; }
.stage-desc { display: block; font-size: 14px; line-height: 1.5; color: #55584F; margin-top: 3px; }
.stage-status { flex: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

.docs-track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 36px 0 14px; }
.docs-track-head h2 { margin: 0; }

.suivi-aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.deadline-card { background: #fff; border: 1px solid #E3DCCB; border-radius: 17px; padding: 26px; }
.deadline-card h3 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 21px; margin: 0 0 6px; color: #141517; }
.deadline-card .hint { font-size: 14px; line-height: 1.55; color: #55584F; margin: 0 0 16px; }
.deadline-card label { display: block; font-size: 13px; font-weight: 700; color: #3D4046; margin-bottom: 7px; }
.deadline-card input[type="date"] { width: 100%; padding: 12px 14px; border: 1px solid #D3CCBB; border-radius: 10px; font-size: 15px; color: #141517; background: #FCFAF4; }
.deadline-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ECE6D6; }
.deadline-days { font-family: 'Newsreader', serif; font-size: 29px; font-weight: 600; line-height: 1.1; }
.deadline-renew { font-size: 13.5px; color: #55584F; margin-top: 10px; }
.deadline-renew strong { color: #141517; }
.deadline-empty { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: #8A8371; }
.alert-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ECE6D6; display: flex; flex-direction: column; gap: 10px; }
.alert-form .t { font-size: 13.5px; font-weight: 700; color: #1B1D20; }
.alert-form input { width: 100%; padding: 12px 14px; border: 1px solid #D3CCBB; border-radius: 10px; background: #FCFAF4; color: #141517; font-size: 14.5px; }
.alert-form button { cursor: pointer; background: #141517; color: #fff; border: none; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 700; }
.alert-done { margin-top: 16px; display: flex; gap: 9px; align-items: center; background: #E8F1EC; border: 1px solid #BCD8C9; border-radius: 10px; padding: 11px 14px; }
.alert-done .tick { color: #2E6B4F; font-weight: 800; }
.alert-done span:last-child { font-size: 13.5px; font-weight: 600; color: #2E6B4F; }

/* ---------- Ressources ---------- */
.res-section { margin-bottom: 52px; }
.res-h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 29px; letter-spacing: -0.015em; margin: 0 0 6px; color: #141517; }
.res-sub { font-size: 15px; color: #55584F; margin: 0 0 22px; max-width: 46em; }
.cantons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res-card { background: #fff; border: 1px solid #E3DCCB; border-radius: 14px; padding: 19px 21px; }
.res-card .k { font-size: 16px; font-weight: 800; color: #141517; margin-bottom: 4px; display: block; }
.res-card .v { font-size: 13.5px; line-height: 1.5; color: #55584F; display: block; }
.res-card-link { text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.res-card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07); }
.res-card-link .ext { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #C8362A; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.glossary-grid .k { font-size: 15.5px; font-weight: 800; color: #C8362A; margin-bottom: 5px; }
.glossary-grid .v { font-size: 14.5px; line-height: 1.6; color: #3D4046; }

/* ---------- Aide ---------- */
.aide-layout { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
.contact-card { background: #141517; border-radius: 18px; padding: 30px; color: #fff; position: sticky; top: 86px; }
.contact-card h3 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 23px; margin: 0 0 18px; }
.contact-text { font-size: 15px; line-height: 1.65; color: #B8BBC1; margin: 0 0 16px; }
.contact-email { margin: 0 0 20px; font-size: 16.5px; font-weight: 700; }
.contact-email a { color: #fff; text-decoration: none; border-bottom: 2px solid #C8362A; }
.contact-email a:hover { color: #F0C9C4; }
.contact-card .btn-primary { width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 13px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #35393F; border-radius: 11px;
  background: #1E2125; color: #fff; font-size: 15px;
}
.contact-form textarea { resize: vertical; }
.contact-form button { cursor: pointer; background: #C8362A; border: none; border-radius: 11px; padding: 14px; font-size: 15.5px; font-weight: 700; color: #fff; }
.contact-note { font-size: 12.5px; line-height: 1.5; color: #7B8087; margin: 2px 0 0; }
.contact-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-done .tick { width: 46px; height: 46px; border-radius: 50%; background: #2E6B4F; color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.contact-done p { font-size: 15px; line-height: 1.6; color: #D6D8DB; margin: 0; }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card {
  text-align: left; cursor: pointer; background: #fff; border: 1px solid #E3DCCB; border-radius: 17px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none; color: inherit;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.09); color: inherit; }
.guide-meta { display: flex; align-items: center; gap: 10px; }
.guide-badge { flex: none; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-family: 'Newsreader', serif; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.guide-meta span:last-child { font-size: 13px; font-weight: 700; color: #75705F; }
.guide-card h2, .guide-card h3 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: #141517; }
.guide-card p { font-size: 15px; line-height: 1.55; color: #55584F; margin: 0; flex: 1; }
.guide-card .card-link { color: #C8362A; }
.all-guides-link { margin: 22px 0 0; font-size: 15px; font-weight: 700; }
.all-guides-link a { text-decoration: none; }

/* ---------- Guides liés / carte SEM ---------- */
.related-guides { display: flex; flex-direction: column; gap: 10px; }
.related-guide {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border: 1px solid #E3DCCB; border-radius: 13px; padding: 15px 19px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-guide:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07); }
.rg-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rg-title { font-size: 15.5px; font-weight: 700; color: #1B1D20; line-height: 1.35; }
.rg-read { font-size: 13px; font-weight: 600; color: #75705F; }
.rg-arrow { flex: none; font-size: 17px; color: #C8362A; font-weight: 700; }
.article-related { margin-top: 32px; }
.article-related h2 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 24px; margin: 0 0 14px; color: #141517; }
.sources-line { margin: 28px 0 0; font-size: 13.5px; color: #75705F; }

.sem-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #141517; border-radius: 15px; padding: 20px 24px; color: #fff;
}
.sem-card:hover { color: #fff; }
.sem-badge {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: #C8362A; color: #fff;
  font-family: 'Newsreader', serif; font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.sem-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sem-body .k { font-size: 16px; font-weight: 700; color: #fff; }
.sem-body .v { font-size: 13.5px; line-height: 1.5; color: #A4A7AD; }
.sem-card .rg-arrow { color: #E06055; }

/* ---------- Article guide ---------- */
.article-main { max-width: 840px; margin: 0 auto; padding: 44px 36px 72px; }
.back-link { background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 700; color: #75705F; margin-bottom: 26px; padding: 0; }
.article-main .guide-meta { margin-bottom: 16px; }
.article-main .guide-meta span:last-child { font-size: 13.5px; }
.article-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 30px; color: #111214; text-wrap: balance; }
.article-section { margin-bottom: 30px; }
.article-section h2 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 12px; color: #141517; }
.article-section p { font-size: 16.5px; line-height: 1.7; color: #3D4046; margin: 0; }
.article-cta { margin: 38px 0 0; background: #141517; border-radius: 18px; padding: 30px 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-cta .txt { flex: 1; min-width: 260px; }
.article-cta .t { font-family: 'Newsreader', serif; font-size: 23px; font-weight: 600; margin-bottom: 5px; }
.article-cta p { font-size: 14.5px; line-height: 1.5; color: #A4A7AD; margin: 0; }
.article-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.article-cta .primary { cursor: pointer; background: #C8362A; color: #fff; border: none; border-radius: 10px; padding: 14px 22px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block; }
.article-cta .primary:hover { color: #fff; }
.article-cta .secondary { cursor: pointer; background: none; color: #C9CCD1; border: 1px solid #3A3F45; border-radius: 10px; padding: 14px 20px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; }
.article-cta .secondary:hover { color: #fff; }
.back-link { text-decoration: none; display: inline-block; }
.article-main .guide-meta a { color: #75705F; }
.article-main .disclaimer { margin-top: 26px; }

/* ---------- À propos ---------- */
.about-main { max-width: 840px; margin: 0 auto; padding: 52px 36px 72px; }
.about-main .page-title { margin-bottom: 34px; }
.about-section { margin-bottom: 30px; border-top: 2px solid #141517; padding-top: 18px; }
.about-section h2 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 26px; margin: 0 0 12px; color: #141517; }
.about-section p { font-size: 16.5px; line-height: 1.7; color: #3D4046; margin: 0; }
.about-cta { background: #C8362A; border-radius: 18px; padding: 30px 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 38px; }
.about-cta .t { font-family: 'Newsreader', serif; font-size: 23px; font-weight: 600; }
.about-cta button, .about-cta a { cursor: pointer; background: #fff; color: #C8362A; border: none; border-radius: 10px; padding: 14px 24px; font-size: 15px; font-weight: 800; text-decoration: none; display: inline-block; }
.about-cta a:hover { color: #C8362A; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #E0DACB; background: #111214; color: #C9CCD1; }
.footer-grid { padding-top: 52px; padding-bottom: 38px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 24px; height: 24px; border-radius: 5px; }
.footer-brand .logo-mark::before { width: 12px; height: 3px; }
.footer-brand .logo-mark::after { width: 3px; height: 12px; }
.footer-brand .name { font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; color: #fff; }
.footer-about { font-size: 14px; line-height: 1.6; color: #8C9097; margin: 0 0 14px; max-width: 30em; }
.footer-date { font-size: 12.5px; color: #63676E; margin: 0; }
.footer-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #6E727A; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.footer-links button, .footer-links a { text-align: left; background: none; border: none; cursor: pointer; color: #C9CCD1; font-size: 14.5px; padding: 0; text-decoration: none; }
.footer-links button:hover, .footer-links a:hover { color: #fff; }
.footer-legal { font-size: 13.5px; line-height: 1.6; color: #8C9097; margin: 0; }
.footer-bottom { border-top: 1px solid #22252A; }
.footer-bottom-inner { padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #6E727A; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; justify-self: end; width: 100%; }
  .quiz-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 980px) {
  .orient-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .track-layout { grid-template-columns: 1fr; }
  .suivi-aside { position: static; }
  .aide-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .cantons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; gap: 10px 16px; }
  .main-nav { width: 100%; order: 3; overflow-x: auto; padding-bottom: 4px; gap: 18px; }
  .nav-drop-menu { position: fixed; left: 16px; right: 16px; top: 108px; min-width: 0; }
  .mega-menu { width: auto; flex-direction: column; max-height: calc(100vh - 130px); overflow-y: auto; }
  .mega-side { border-left: none; border-top: 1px solid #ECE6D6; padding-left: 0; padding-top: 8px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; margin-left: 0; }
  .testi-grid { margin-left: 0; }
  .final-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .guides-grid { grid-template-columns: 1fr; }
  .sticky-cta .txt { display: none; }
}

@media (max-width: 700px) {
  .meta-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .cantons-grid { grid-template-columns: 1fr; }
  .lead-fields { grid-template-columns: 1fr; }
  .lead-fields .full { grid-column: auto; }
  .magnet-form { flex-direction: column; }
  .permit-id { gap: 16px; }
  .permit-id-letter { width: 64px; height: 64px; font-size: 34px; border-radius: 14px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17.5px; }
  .hero-visual { height: 320px; transform: scale(0.72); transform-origin: top right; margin-bottom: -60px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .section-head h2 { font-size: 30px; }
  .section-sub, .quiz-intro { margin-left: 0; }
  .indent, .quiz-benefits { margin-left: 0; }
  .quiz-card { padding: 24px 20px; }
  .acc-grid { grid-template-columns: 1fr; }
  .final-cta h2 { font-size: 30px; }
  .final-cta .watermark { font-size: 180px; }
  .page-title { font-size: 32px; }
  .permit-id h1 { font-size: 30px; }
  .detail-content h2 { font-size: 26px; }
  .article-title { font-size: 30px; }
  .article-main, .about-main { padding-left: 20px; padding-right: 20px; }
  .sticky-cta-inner { padding: 11px 20px; }
  .proof-grid { grid-template-columns: 1fr; gap: 16px; }
}
