/* ==========================================================================
   ENTRES-PRENDS CONNECT — feuille de style principale
   Charte alignée sur la plateforme ENTRE-PRENDS : or/orange chaud,
   anthracite, fonds bruns profonds à motif pointillé, police Plus Jakarta Sans.
   ========================================================================== */

:root {
    /* Marque */
    --color-orange: #E8961E;
    --color-orange-dark: #C07B10;
    --color-gold: #F5B041;
    --color-red-accent: #D64541;
    --color-blue-accent: #2e5c8a;
    --color-anthracite: #2D2D2D;
    --color-anthracite-light: #4A4A4A;
    --gradient-primary: linear-gradient(135deg, #F5B041 0%, #E8961E 55%, #C07B10 100%);
    --gradient-dark:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0) 0 0/28px 28px,
        radial-gradient(ellipse at 85% 15%, rgba(232, 150, 30, 0.24) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 95%, rgba(214, 69, 65, 0.15) 0%, transparent 50%),
        linear-gradient(160deg, #17140F 0%, #2D2418 60%, #3A2C1A 100%);
    --gradient-bar: linear-gradient(135deg, #2D2D2D 0%, #4A3520 100%);

    /* Surfaces & texte */
    --color-bg: #f4f6fa;
    --color-bg-alt: #ffffff;
    --color-surface: #ffffff;
    --color-border: #e9ecef;
    --color-text: #1e293b;
    --color-heading: #2D2D2D;
    --color-text-muted: #6c757d;
    --color-success: #198754;
    --color-danger: #D64541;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 6px 20px rgba(232, 150, 30, 0.35);
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #131110;
        --color-bg-alt: #1a1715;
        --color-surface: #1f1c19;
        --color-border: #332e29;
        --color-text: #ece8e3;
        --color-heading: #f5f1ec;
        --color-text-muted: #a39b91;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--color-orange-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-orange); }

h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

p { margin: 0 0 1em; }

::selection { background: rgba(232, 150, 30, 0.3); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.ti { line-height: 1; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(232, 150, 30, 0.45); outline-offset: 2px; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 14px rgba(232, 150, 30, 0.28); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232, 150, 30, 0.45); filter: brightness(1.05); }
.btn-outline { background: var(--color-surface); color: var(--color-heading); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-orange); color: var(--color-orange-dark); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; border-radius: 8px; }
.btn-sm.btn-primary { box-shadow: 0 2px 8px rgba(232, 150, 30, 0.25); }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--color-heading); text-decoration: none; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(232, 150, 30, 0.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.06em; }
.brand-text small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.42em; color: var(--color-orange); margin-top: 5px; }
.brand-light, .brand-light:hover { color: #fff; }

/* ---------- En-tête public ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 22, 17, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { background: rgba(26, 22, 17, 0.97); box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.site-header .brand { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { white-space: nowrap; color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.92rem; padding: 8px 13px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.main-nav a.active { color: #fff; background: rgba(232, 150, 30, 0.16); }
.main-nav .nav-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.14); margin: 0 8px; }
.main-nav .btn-primary { color: #fff; padding: 9px 18px; margin-left: 4px; }
.main-nav .btn-primary:hover { background: var(--gradient-primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #fff; padding: 4px; }

@media (max-width: 1100px) {
    .main-nav { position: fixed; inset: 74px 0 auto 0; max-height: calc(100vh - 74px); background: rgba(26, 22, 17, 0.98); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 4px; transform: translateY(-120%); transition: transform .25s var(--ease); overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav a { padding: 12px 14px; }
    .main-nav .nav-divider { width: 100%; height: 1px; margin: 8px 0; }
    .main-nav .btn-primary { margin: 6px 0 0; }
    .nav-toggle { display: block; }
}

/* ---------- Surfaces sombres (hero, bandeaux) ---------- */
.surface-dark { background: var(--gradient-dark); color: #fff; position: relative; overflow: hidden; }
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: #fff; }

/* ---------- Bannière d'accueil ---------- */
.hero {
    background: var(--gradient-dark);
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero .container > :only-child { grid-column: 1 / -1; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge { display: inline-block; background: rgba(232, 150, 30, 0.18); color: var(--color-gold); padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }

.hero-home { padding: 96px 0 120px; min-height: min(calc(100vh - 74px), 860px); display: flex; align-items: center; }
.hero-home h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero-home h1 .hl { position: relative; color: var(--color-gold); white-space: nowrap; z-index: 0; }
.hero-home h1 .hl::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: 4px; height: 10px; border-radius: 10px; background: rgba(232, 150, 30, 0.35); z-index: -1; }
.hero-home .hero-desc { font-size: 1.1rem; line-height: 1.75; max-width: 540px; }

.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; margin-bottom: 24px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.hero-kicker-tag { padding: 3px 10px; border-radius: 999px; background: var(--color-orange); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ti { color: var(--color-gold); font-size: 1.15rem; }

.hero-visual { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.hero-visual::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 220px 220px 24px 24px; border: 2px solid rgba(232, 150, 30, 0.45); }
.hero-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 24px 24px; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(245, 176, 65, 0.35) 0%, transparent 60%), linear-gradient(180deg, #3d3226 0%, #241d15 100%); box-shadow: 0 30px 80px rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; }
.hero-frame img { width: 62%; border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) 0 0/22px 22px; pointer-events: none; }
.hero-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; color: #2D2D2D; box-shadow: 0 16px 40px rgba(0,0,0,0.3); animation: floatCard 5s ease-in-out infinite; }
.hero-float strong { display: block; font-size: 0.86rem; font-weight: 800; line-height: 1.2; color: #2D2D2D; }
.hero-float small { display: block; font-size: 0.74rem; color: #6c757d; }
.hero-float-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: var(--gradient-primary); }
.hero-float-icon.is-green { background: linear-gradient(135deg, #34c38f, #198754); }
.hero-float-icon.is-red { background: linear-gradient(135deg, #f0776f, #D64541); }
.hero-float-a { top: 12%; left: -56px; }
.hero-float-b { bottom: 24%; right: -44px; animation-delay: -2.5s; }
.hero-float-c { left: 50%; bottom: -22px; transform: translateX(-50%); animation: none; white-space: nowrap; padding: 10px 18px; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Photo de fond discrète sous le dégradé sombre du hero */
.hero-photo::before { content: ''; position: absolute; inset: 0; background: var(--section-photo) center 35%/cover no-repeat; opacity: .16; filter: grayscale(30%); pointer-events: none; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.15) 60%, transparent 100%); pointer-events: none; }

.hero-divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--color-bg); clip-path: ellipse(75% 100% at 50% 100%); z-index: 1; pointer-events: none; }

@media (max-width: 960px) {
    .hero .container { grid-template-columns: minmax(0, 1fr); }
    .hero-home { min-height: 0; padding: 64px 0 96px; }
    .hero-visual { max-width: 320px; margin-top: 24px; }
    .hero-float-a { left: -12px; }
    .hero-float-b { right: -12px; }
}
@media (max-width: 560px) {
    .hero-home h1 .hl { white-space: normal; }
    .hero-kicker { flex-wrap: wrap; border-radius: 18px; }
    .hero-actions .btn { flex: 1 1 100%; white-space: normal; }
    .hero-visual { max-width: 260px; }
    .hero-float small { display: none; }
    .site-header .container { gap: 12px; }
}

/* ---------- Sections vitrine ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--color-bg-alt); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.section-title .link-more { font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.section-title .link-more:hover { gap: 10px; text-decoration: none; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 12px; }
.section-head p { font-size: 1.05rem; color: var(--color-text-muted); margin: 0; }

.kicker { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-orange-dark); background: rgba(232, 150, 30, 0.12); padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--color-gold); } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s var(--ease), border-color .25s ease; }
.card-grid > .card:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(232, 150, 30, 0.35); }
.card-body { padding: 20px 22px; }
.card-cover { height: 150px; background: var(--gradient-dark); background-size: cover; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); font-weight: 700; position: relative; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 10px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.badge-placeholder { background: var(--color-border); color: var(--color-text-muted); }
.badge-orange { background: rgba(232, 150, 30, 0.15); color: var(--color-orange-dark); }
.badge-blue { background: rgba(46, 92, 138, 0.14); color: var(--color-blue-accent); }
@media (prefers-color-scheme: dark) {
    .badge-orange { color: var(--color-gold); }
    .badge-blue { color: #8fb6de; }
}

.progress-bar { height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-orange), var(--color-gold)); transition: width 1s var(--ease); }

/* Bandeau de chiffres (sombre) */
.stats-band { background: var(--gradient-bar); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0) 0 0/28px 28px; pointer-events: none; }
.stats-band .stats-grid { position: relative; }
.stats-band .stat-tile { background: none; border: none; padding: 8px 12px; }
.stats-band .stat-tile + .stat-tile { border-left: 1px solid rgba(255,255,255,0.1); }
.stats-band .stat-tile strong { color: var(--color-gold); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.1; margin-bottom: 6px; }
.stats-band .stat-tile span { color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; font-weight: 700; }
.stats-band .placeholder-note { color: rgba(255,255,255,0.45); text-align: center; margin: 24px 0 0; position: relative; }
@media (max-width: 720px) { .stats-band .stat-tile + .stat-tile { border-left: none; } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat-tile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px 12px; box-shadow: var(--shadow-sm); }
.stat-tile strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--color-orange-dark); }
.stat-tile span { font-size: 0.85rem; color: var(--color-text-muted); }

.placeholder-note { font-size: 0.8rem; color: var(--color-text-muted); font-style: italic; }

.empty-state { text-align: center; padding: 40px 24px; border: 1.5px dashed var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text-muted); }
.empty-state > .ti { font-size: 2.2rem; color: var(--color-orange); display: block; margin-bottom: 10px; }
.empty-state p { margin: 0 auto; max-width: 52ch; font-size: 0.92rem; }

/* Étapes « Comment ça marche » */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step-tile { text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-orange); border-radius: var(--radius-lg); padding: 30px 22px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease; }
.step-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-tile h3 { font-size: 1.05rem; }
.step-number { width: 52px; height: 52px; border-radius: 16px; background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin: 0 auto 16px; box-shadow: var(--shadow-glow); }
.step-tile:nth-child(4n+2) { border-top-color: var(--color-red-accent); }
.step-tile:nth-child(4n+2) .step-number { background: linear-gradient(135deg, #f0776f, #D64541); box-shadow: 0 6px 20px rgba(214, 69, 65, 0.3); }
.step-tile:nth-child(4n+3) { border-top-color: var(--color-success); }
.step-tile:nth-child(4n+3) .step-number { background: linear-gradient(135deg, #34c38f, #198754); box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3); }
.step-tile:nth-child(4n+4) { border-top-color: var(--color-anthracite); }
.step-tile:nth-child(4n+4) .step-number { background: linear-gradient(135deg, #5a5a5a, #2D2D2D); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

/* Parcours « Comment ça marche » : frise reliant les étapes */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.journey::before, .journey::after { content: ''; position: absolute; top: 38px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; }
.journey::before { background: var(--color-border); }
.journey::after { background: linear-gradient(90deg, #E8961E, #D64541 35%, #198754 68%, #2e5c8a); transform-origin: left; }
.journey-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.journey-marker { position: relative; width: 80px; height: 80px; border-radius: 50%; background: var(--color-surface); border: 4px solid var(--step-color); color: var(--step-color); display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 0 0 8px var(--color-bg-alt), 0 10px 24px rgba(0,0,0,0.1); transition: background-color .3s ease, color .3s ease, transform .3s var(--ease); }
.journey-num { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--step-color); color: #fff; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid var(--color-bg-alt); }
.journey-card { margin-top: 24px; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 24px 20px 22px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.journey-card::before { content: ''; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; background: inherit; border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border); transform: translateX(-50%) rotate(45deg); }
.journey-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--step-color); margin-bottom: 6px; }
.journey-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.journey-card p { font-size: 0.88rem; color: var(--color-text-muted); margin: 0 0 16px; flex: 1; }
.journey-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--step-color); background: color-mix(in srgb, var(--step-color) 12%, transparent); }
.journey-step:hover .journey-marker { background: var(--step-color); color: #fff; transform: scale(1.06); }
.journey-step:hover .journey-card { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--step-color) 40%, var(--color-border)); }

/* Animation : la ligne se trace puis les étapes apparaissent l'une après l'autre */
.js-reveal .journey.reveal { opacity: 1; transform: none; }
.js-reveal .journey::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js-reveal .journey.is-visible::after { transform: scaleX(1); }
.js-reveal .journey .journey-step { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i) * 0.18s + 0.15s); }
.js-reveal .journey.is-visible .journey-step { opacity: 1; transform: none; }

.journey-cta { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px dashed rgba(232, 150, 30, 0.5); }
.journey-cta > div:nth-child(2) { flex: 1; min-width: 220px; }
.journey-cta strong { display: block; color: var(--color-heading); font-size: 0.98rem; }
.journey-cta span:not(.icon-tile) { font-size: 0.88rem; color: var(--color-text-muted); }
.journey-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .journey { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .journey::before, .journey::after { display: none; }
    /* Un trait par étape, du rond courant jusqu'au suivant */
    .journey-step:not(:last-child)::after { content: ''; position: absolute; z-index: -1; left: 38px; top: 80px; bottom: -20px; width: 4px; border-radius: 4px; background: var(--step-color); transform-origin: top; }
    .js-reveal .journey-step:not(:last-child)::after { transform: scaleY(0); transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 0.18s + 0.5s); }
    .js-reveal .journey.is-visible .journey-step::after { transform: scaleY(1); }
    .journey-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; }
    .journey-marker { flex-shrink: 0; }
    .journey-card { margin-top: 0; align-items: flex-start; padding: 18px 18px 16px; }
    .journey-card::before { top: 32px; left: -8px; transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
    .js-reveal .journey::after { transform: none !important; transition: none; }
    .js-reveal .journey .journey-step { opacity: 1; transform: none; transition: none; }
}

/* Section avec photo de fond discrète (image passée via --section-photo) */
.section-photo { position: relative; isolation: isolate; overflow: hidden; }
.section-photo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--section-photo) center 40%/cover no-repeat; opacity: .12; filter: grayscale(35%) sepia(20%); }
.section-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, var(--color-bg) 0%, transparent 22%, transparent 70%, var(--color-bg) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 0%, color-mix(in srgb, var(--color-bg) 45%, transparent) 100%); }
@media (prefers-color-scheme: dark) { .section-photo::before { opacity: .1; } }

/* ---------- Pages intérieures : bannière + recherche (marketplace) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page-hero { background: var(--gradient-dark); color: #fff; position: relative; overflow: hidden; padding: 40px 0 130px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 24ch; margin-bottom: 14px; }
.page-hero h1 .hl { color: var(--color-gold); }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 60ch; }
.page-hero .hero-trust { margin-top: 24px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.breadcrumb a { color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 5px; }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb .ti-chevron-right { font-size: 0.8rem; opacity: .6; }
.breadcrumb [aria-current] { color: var(--color-gold); font-weight: 700; }

.search-panel { position: relative; z-index: 2; margin-top: -88px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.search-main { display: flex; gap: 12px; }
.search-main .input-icon { flex: 1; }
.search-main .btn { padding-inline: 26px; }
.input-icon { position: relative; }
.input-icon > .ti { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--color-text-muted); pointer-events: none; }
.input-icon .form-control { padding-left: 44px; height: 50px; font-size: 1rem; }
.search-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--color-border); }
.search-filters .form-group { margin: 0; }
.search-filters label { display: flex !important; align-items: center; gap: 6px; font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted) !important; }
.search-filters label .ti { color: var(--color-orange); font-size: 1rem; }
.search-hint { margin: 14px 0 0; font-size: 0.82rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }
.search-hint .ti { color: var(--color-orange); font-size: 1.05rem; }

.orient { margin: 28px 0 8px; }
.orient-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.orient-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: rgba(232, 150, 30, 0.07); border: 1px solid rgba(232, 150, 30, 0.18); position: relative; }
.orient-steps li:not(:last-child)::after { content: '\203A'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--color-surface); border: 1px solid rgba(232, 150, 30, 0.3); color: var(--color-orange); font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 1; line-height: 1; }
.orient-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--gradient-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(232, 150, 30, 0.3); }
.orient-steps strong { display: block; font-size: 0.92rem; color: var(--color-heading); }
.orient-steps span:not(.orient-num) { font-size: 0.82rem; color: var(--color-text-muted); }

.results-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 20px; }
.results-title { font-size: 1.3rem; margin: 0; }
.results-sort { font-size: 0.84rem; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: rgba(232, 150, 30, 0.12); color: var(--color-orange-dark); }
.filter-chip .ti { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; background: rgba(232, 150, 30, 0.2); }
.filter-chip:hover { background: rgba(232, 150, 30, 0.22); color: var(--color-orange-dark); }
.filter-chip-reset { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); }

.empty-state-rich { padding: 48px 24px; }
.empty-state-rich h3 { margin-bottom: 6px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.project-card { display: flex; flex-direction: column; color: var(--color-text); }
.project-card:hover { color: var(--color-text); text-decoration: none; }
.project-card .card-body { flex: 1; display: flex; flex-direction: column; }
.project-initials { font-size: 2.4rem; font-weight: 800; letter-spacing: .04em; color: rgba(255,255,255,0.85); }
.project-score { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.95); color: #2D2D2D; font-size: 0.78rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.project-score .ti { color: var(--color-orange); }
.project-sector { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(23,20,15,0.65); color: #fff; font-size: 0.72rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.project-slogan { font-size: 0.86rem; color: var(--color-text-muted); margin: 0 0 12px; }
.project-funding { margin-top: auto; padding: 12px 14px; border-radius: 10px; background: var(--color-bg); }
.project-funding-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; }
.project-funding-head span { font-weight: 800; color: var(--color-orange-dark); }
.project-funding small { font-size: 0.75rem; color: var(--color-text-muted); }
.project-funding .progress-bar { margin: 8px 0 6px; }
.project-quotas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--color-orange-dark); transition: gap .2s ease; }
.project-card:hover .project-cta { gap: 10px; }

.legend { margin-top: 48px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.legend h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.legend h2 .ti { color: var(--color-orange); }
.legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.legend-grid > div { display: flex; gap: 12px; align-items: flex-start; }
.legend-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(232, 150, 30, 0.12); color: var(--color-orange-dark); font-size: 1.1rem; }
.legend-grid strong { display: block; font-size: 0.88rem; color: var(--color-heading); }
.legend-grid span:not(.legend-icon) { font-size: 0.8rem; color: var(--color-text-muted); }

.audience { margin-top: 48px; }
.audience h2 { font-size: 1.3rem; margin-bottom: 16px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.audience-card .role-icon { width: 46px; height: 46px; font-size: 1.35rem; border-radius: 13px; margin: 0; flex-shrink: 0; }
.audience-card strong { display: block; font-size: 0.95rem; color: var(--color-heading); }
.audience-card span:not(.role-icon) { font-size: 0.82rem; color: var(--color-text-muted); }
.audience-card > .ti { color: var(--role-color); font-size: 1.2rem; transition: transform .2s ease; }
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--role-color) 45%, var(--color-border)); color: var(--color-text); text-decoration: none; }
.audience-card:hover > .ti { transform: translateX(4px); }

.risk-notice { margin-top: 32px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-md); background: rgba(214, 69, 65, 0.06); border: 1px solid rgba(214, 69, 65, 0.2); }
.risk-notice > .ti { font-size: 1.4rem; color: var(--color-red-accent); flex-shrink: 0; }
.risk-notice p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.risk-notice strong { color: var(--color-heading); }
.risk-notice a { font-weight: 700; white-space: nowrap; }

@media (max-width: 960px) {
    .search-filters, .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orient-steps, .audience-grid { grid-template-columns: minmax(0, 1fr); }
    .orient-steps li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -13px; transform: rotate(90deg); }
}
@media (max-width: 560px) {
    .page-hero { padding-bottom: 110px; }
    .search-main { flex-direction: column; }
    .search-filters, .legend-grid { grid-template-columns: minmax(0, 1fr); }
    .search-panel { padding: 16px; }
}

/* ---------- Pages intérieures : composants partagés ---------- */
.page-hero-plain { padding-bottom: 96px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.page-hero-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.page-hero-meta .ti { color: var(--color-gold); }
.narrow { max-width: 760px; }

/* Barre « Sur cette page » : ancres internes, collante sous l'en-tête */
.page-nav { position: sticky; top: calc(74px + env(safe-area-inset-top, 0px) + 10px); z-index: 20; margin-top: -40px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.page-nav + .section { padding-top: 36px; }
.page-nav-label { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-right: 6px; }
.page-nav-label .ti { color: var(--color-orange); font-size: 1rem; }
.page-nav a { padding: 6px 12px; border-radius: 8px; font-size: 0.86rem; font-weight: 600; color: var(--color-heading); }
.page-nav a:hover { background: rgba(232, 150, 30, 0.1); color: var(--color-orange-dark); }
.anchor-section { scroll-margin-top: 160px; }
@media (max-width: 720px) {
    .page-nav { position: relative; top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .page-nav a { white-space: nowrap; }
}

/* Mise en page « contenu + colonne latérale » */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-layout .detail-aside { position: sticky; top: 100px; }
@media (max-width: 960px) {
    .detail-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-layout .detail-aside { position: static; }
}

.panel { padding: 26px; margin-bottom: 20px; overflow: visible; }
.panel > p:last-child { margin-bottom: 0; }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 800; color: var(--color-heading); line-height: 1.3; margin: 0 0 16px; padding: 0; }
.panel-title .legend-icon { flex-shrink: 0; }
.panel .btn-block { white-space: normal; text-align: center; }
.error-page.section-photo::before { opacity: .07; }
.panel-title small { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); margin-left: auto; }
.panel h4 { font-size: 0.95rem; }

.side-card h3 { font-size: 1rem; margin-bottom: 14px; }
.side-card-accent { border-top: 4px solid var(--color-orange); }
.side-subtitle { font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin: 22px 0 10px; }
.side-note { font-size: 0.84rem; color: var(--color-text-muted); margin: 10px 0 0; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: var(--color-heading); transition: background-color .15s ease, color .15s ease; }
.side-link > .ti:first-child { color: var(--color-orange); font-size: 1.1rem; }
.side-link > .ti-arrow-right { margin-left: auto; opacity: .5; transition: transform .2s ease; }
.side-link:hover { background: rgba(232, 150, 30, 0.08); color: var(--color-orange-dark); }
.side-link:hover > .ti-arrow-right { transform: translateX(3px); opacity: 1; }
.side-link.is-active { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 12px rgba(232, 150, 30, 0.3); }
.side-link.is-active > .ti { color: #fff; }

.info-list { margin: 0; display: grid; gap: 2px; }
.info-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: 0.88rem; }
.info-list > div:last-child { border-bottom: none; }
.info-list dt { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); flex-shrink: 0; }
.info-list dt .ti { color: var(--color-orange); }
.info-list dd { margin: 0; font-weight: 700; color: var(--color-heading); text-align: right; }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 18px 0; border-radius: var(--radius-md); background: rgba(46, 92, 138, 0.07); border: 1px solid rgba(46, 92, 138, 0.18); }
.callout > .ti { color: var(--color-blue-accent); font-size: 1.3rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: 0.88rem; color: var(--color-text); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.check-list .ti { color: var(--color-orange); font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.check-list-sm li { font-size: 0.86rem; }
.back-link { margin: 16px 0 0; font-size: 0.88rem; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.req { color: var(--color-danger); }

.phase-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.phase-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--color-bg); font-size: 0.86rem; font-weight: 600; }
.phase-list span { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: #fff; background: var(--gradient-primary); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: 26px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); border-top: 4px solid var(--role-color); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card .role-icon { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 14px; margin-bottom: 14px; }
.feature-card .journey-label { --step-color: var(--role-color); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.goal-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.goal-item p { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--color-heading); }
@media (max-width: 960px) { .feature-grid, .goal-grid { grid-template-columns: minmax(0, 1fr); } }

/* Repères d'orientation placés sous une bannière sans panneau de recherche */
.orient-raised { position: relative; z-index: 2; margin-top: -48px; padding: 14px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.level-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--color-text-muted); }
.level-legend span { display: inline-flex; align-items: center; gap: 6px; }
.level-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Étapes d'un processus avec état (fait / en cours / à venir) */
.process-steps { list-style: none; margin: -48px 0 0; padding: 18px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.process-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; opacity: .55; }
.process-steps li.is-current { opacity: 1; background: rgba(232, 150, 30, 0.08); }
.process-steps li.is-done { opacity: 1; }
.process-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--color-bg); color: var(--color-text-muted); border: 2px solid var(--color-border); }
.is-current .process-icon { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.is-done .process-icon { background: var(--color-success); color: #fff; border-color: transparent; }
.process-steps strong { display: block; font-size: 0.92rem; color: var(--color-heading); }
.process-steps span:not(.process-icon) { font-size: 0.8rem; color: var(--color-text-muted); }
@media (max-width: 720px) { .process-steps { grid-template-columns: minmax(0, 1fr); } }

fieldset.form-section { margin: 0 0 20px; min-width: 0; }
fieldset.form-section legend.panel-title { float: left; width: 100%; }
fieldset.form-section legend + * { clear: both; }

.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.module-list > li { padding: 14px 16px; border-radius: var(--radius-md); background: var(--color-bg); }
.module-head { display: flex; align-items: center; gap: 12px; }
.module-head .orient-num { width: 28px; height: 28px; font-size: 0.82rem; border-radius: 8px; }
.module-list ul { list-style: none; margin: 10px 0 0 40px; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--color-text-muted); }
.module-list ul .ti { color: var(--color-orange); font-size: 0.9rem; margin-right: 4px; }

.verify-card { text-align: center; margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.verify-card .info-list { text-align: left; max-width: 480px; margin: 20px auto 0; }
.verify-seal { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; }
.is-valid .verify-seal { background: linear-gradient(135deg, #34c38f, #198754); box-shadow: 0 8px 24px rgba(25, 135, 84, 0.35); }
.is-invalid .verify-seal { background: linear-gradient(135deg, #f0776f, #D64541); box-shadow: 0 8px 24px rgba(214, 69, 65, 0.35); }
.verify-card h2 { font-size: 1.4rem; }
.verify-uuid { margin: 18px 0 0 !important; font-size: 0.8rem; color: var(--color-text-muted); }
.verify-uuid code { font-size: 0.78rem; padding: 2px 8px; border-radius: 6px; background: var(--color-bg); word-break: break-all; }

/* Profils « Pour qui ? » : une couleur par profil via --role-color */
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.role-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); color: var(--color-text); overflow: hidden; position: relative; transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--role-color); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: 2; }
.role-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px color-mix(in srgb, var(--role-color) 18%, rgba(0,0,0,0.08)); border-color: color-mix(in srgb, var(--role-color) 45%, var(--color-border)); color: var(--color-text); text-decoration: none; }
.role-card:hover::before { transform: scaleX(1); }

.role-head { position: relative; overflow: hidden; padding: 26px 24px 22px; background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--role-color) 22%, transparent) 1px, transparent 0) 0 0/18px 18px,
    linear-gradient(160deg, color-mix(in srgb, var(--role-color) 14%, var(--color-surface)) 0%, var(--color-surface) 100%); }
.role-watermark { position: absolute; right: -18px; top: -14px; font-size: 7.5rem; color: var(--role-color); opacity: .08; transition: transform .5s var(--ease), opacity .4s ease; }
.role-card:hover .role-watermark { transform: rotate(-10deg) scale(1.08); opacity: .14; }
.role-icon { position: relative; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--role-color) 70%, #fff), var(--role-color)); box-shadow: 0 8px 20px color-mix(in srgb, var(--role-color) 35%, transparent); margin-bottom: 16px; transition: transform .35s var(--ease); }
.role-card:hover .role-icon { transform: scale(1.08) rotate(-4deg); }
.role-tag { position: relative; display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--role-color); margin-bottom: 4px; }
.role-head h3 { position: relative; margin: 0; font-size: 1.2rem; }

.role-body { flex: 1; display: flex; flex-direction: column; padding: 4px 24px 22px; }
.role-body p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 16px; }
.role-perks { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--color-border); display: grid; gap: 10px; flex: 1; align-content: start; }
.role-perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; font-weight: 500; line-height: 1.4; }
.role-perks .ti { color: var(--role-color); font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.role-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; color: var(--role-color); background: color-mix(in srgb, var(--role-color) 10%, transparent); transition: background-color .25s ease, color .25s ease, gap .25s ease; }
.role-card:hover .role-cta { background: var(--role-color); color: #fff; gap: 12px; }

.role-combo { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 24px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.role-combo-avatars { display: flex; }
.role-combo-avatars span { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; background: var(--role-color); border: 3px solid var(--color-surface); margin-left: -10px; transition: transform .25s var(--ease); }
.role-combo-avatars span:first-child { margin-left: 0; }
.role-combo:hover .role-combo-avatars span { transform: translateY(-3px); }
.role-combo-avatars span:nth-child(2) { transition-delay: .05s; }
.role-combo-avatars span:nth-child(3) { transition-delay: .1s; }
.role-combo-avatars span:nth-child(4) { transition-delay: .15s; }
.role-combo-text { flex: 1; min-width: 220px; }
.role-combo-text strong { display: block; color: var(--color-heading); font-size: 0.98rem; }
.role-combo-text span { font-size: 0.86rem; color: var(--color-text-muted); }

@media (max-width: 1080px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .role-grid { grid-template-columns: minmax(0, 1fr); }
    .role-combo { border-radius: var(--radius-lg); }
}
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(232, 150, 30, 0.12); color: var(--color-orange-dark); }
.icon-tile.is-red { background: rgba(214, 69, 65, 0.12); color: var(--color-red-accent); }
.icon-tile.is-green { background: rgba(25, 135, 84, 0.12); color: var(--color-success); }
.icon-tile.is-blue { background: rgba(46, 92, 138, 0.12); color: var(--color-blue-accent); }

/* Appel à l'action */
.cta-band { border-radius: 24px; padding: 56px 32px; text-align: center; background: var(--gradient-dark); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* Animation d'apparition au défilement */
/* Masqué uniquement quand le JS est actif (classe posée par app.js) */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
    .hero-float { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--color-anthracite); color: rgba(255,255,255,0.7); padding: 64px 0 28px; margin-top: 64px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-gold), var(--color-orange), var(--color-red-accent)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.68); display: block; margin-bottom: 9px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-gold); text-decoration: none; }
.footer-grid a.brand { display: inline-flex; margin: 0; color: #fff; }
.footer-about { font-size: 0.88rem; line-height: 1.7; margin: 16px 0 0; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; text-align: center; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Authentification (deux panneaux) ---------- */
.auth-shell { display: flex; min-height: calc(100vh - 74px); align-items: center; justify-content: center; padding: 48px 20px; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 74px); }
.auth-aside { background: var(--gradient-dark); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside-body { max-width: 460px; margin: 0 auto; position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: 12px; }
.auth-aside h2 span { color: var(--color-gold); }
.auth-aside-subtitle { color: var(--color-gold); font-style: italic; font-weight: 500; margin-bottom: 28px; }
.auth-perks { list-style: none; margin: 0; padding: 0; }
.auth-perks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.auth-perks-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(232, 150, 30, 0.16); color: var(--color-gold); }
.auth-perks strong { display: block; font-size: 0.95rem; color: #fff; }
.auth-perks span { font-size: 0.85rem; color: rgba(255,255,255,0.62); }
.auth-split .auth-shell { min-height: 0; }
.auth-card { width: 100%; max-width: 460px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07); }
.auth-card-wide { max-width: 560px; }
.auth-card h1 { font-size: 1.6rem; text-align: left; margin-bottom: 6px; }
.auth-card h1::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--gradient-primary); margin-bottom: 18px; }
.auth-subtitle { text-align: left; color: var(--color-text-muted); margin-bottom: 28px; font-size: 0.92rem; }
@media (max-width: 960px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-split { min-height: 0; }
    .auth-split .auth-shell { padding-block: 32px 16px; }
}
@media (max-width: 520px) { .auth-card { padding: 28px 22px; } }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 7px; color: var(--color-heading); }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:hover { border-color: #d5d9de; }
.form-control:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 4px rgba(232, 150, 30, 0.15); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-error { color: var(--color-danger); font-size: 0.8rem; margin-top: 6px; font-weight: 600; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; min-width: 0; }
@media (max-width: 560px) { .form-row { flex-direction: column; gap: 0; } }
.form-check { display: flex !important; align-items: flex-start; gap: 10px; font-size: 0.86rem; font-weight: 500 !important; color: var(--color-text) !important; }
.form-check input { accent-color: var(--color-orange); margin-top: 3px; width: 16px; height: 16px; }
.form-links { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.form-links a { font-weight: 700; }

.alert { padding: 13px 16px 13px 18px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 18px; border: 1px solid transparent; border-left-width: 4px; cursor: pointer; }
.alert-success { background: rgba(25, 135, 84, 0.09); color: var(--color-success); border-color: rgba(25, 135, 84, 0.25); border-left-color: var(--color-success); }
.alert-error { background: rgba(214, 69, 65, 0.08); color: #b23531; border-color: rgba(214, 69, 65, 0.25); border-left-color: var(--color-danger); }
@media (prefers-color-scheme: dark) {
    .alert-success { color: #5fd29b; }
    .alert-error { color: #f08a85; }
}

/* ---------- Tableaux ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: rgba(232, 150, 30, 0.04); }

/* ---------- Dashboard ---------- */
.dashboard-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.dashboard-sidebar { background: var(--color-surface); border-right: 1px solid var(--color-border); color: var(--color-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-brand { height: 68px; flex-shrink: 0; display: flex; align-items: center; padding: 0 20px; background: var(--gradient-bar); }
.sidebar-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.sidebar-brand .brand-text strong { font-size: 0.92rem; }
.sidebar-nav { padding: 18px 14px 24px; }
.sidebar-nav a, .sidebar-nav .sidebar-nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--color-text); opacity: .85; font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; transition: background-color .15s ease, color .15s ease, opacity .15s ease; }
.sidebar-nav a .ti, .sidebar-nav-link .ti { font-size: 1.2rem; width: 22px; text-align: center; opacity: .7; }
.sidebar-nav a:hover, .sidebar-nav .sidebar-nav-link:hover { background: rgba(232, 150, 30, 0.08); color: var(--color-orange-dark); opacity: 1; text-decoration: none; }
.sidebar-nav a.active { background: var(--gradient-primary); color: #fff; font-weight: 700; opacity: 1; box-shadow: 0 4px 12px rgba(232, 150, 30, 0.3); }
.sidebar-nav a.active .ti { opacity: 1; }
.sidebar-nav a.is-soon { opacity: .5; }
.sidebar-nav .sidebar-nav-link { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; color: var(--color-danger); }
.sidebar-nav .sidebar-nav-link:hover { background: rgba(214, 69, 65, 0.08); color: var(--color-danger); }
.sidebar-section-title { text-transform: uppercase; font-size: 0.68rem; font-weight: 800; letter-spacing: .1em; color: var(--color-text-muted); margin: 22px 12px 8px; }

.dashboard-main { display: flex; flex-direction: column; min-width: 0; }
.dashboard-topbar { background: var(--gradient-bar); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 68px; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.topbar-title { font-size: 0.9rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.topbar-title strong { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.profile-switcher select { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.profile-switcher select option { color: #1e293b; }
.notif-bell { position: relative; font-size: 1.3rem; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); transition: background-color .15s ease; }
.notif-bell:hover { background: rgba(255,255,255,0.1); color: #fff; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-red-accent); box-shadow: 0 0 0 2px #2D2D2D; }
.user-menu { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 700; color: #fff; }
.avatar-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.dashboard-topbar .nav-toggle { color: #fff; }

.dashboard-content { padding: 32px; flex: 1; }
.dashboard-content > h1:first-child { font-size: 1.6rem; margin-bottom: 6px; }
.dashboard-footer { padding: 18px 32px; font-size: 0.8rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border); text-align: center; }

.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 28px; }
.widget-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s ease; }
.widget-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient-primary); }
.widget-card:nth-child(4n+2)::before { background: linear-gradient(180deg, #f0776f, #D64541); }
.widget-card:nth-child(4n+3)::before { background: linear-gradient(180deg, #34c38f, #198754); }
.widget-card:nth-child(4n+4)::before { background: linear-gradient(180deg, #5a7fa8, #2e5c8a); }
.widget-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.widget-card h3 { font-size: 0.74rem; font-weight: 800; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.widget-card strong { font-size: 1.9rem; font-weight: 800; color: var(--color-heading); line-height: 1.1; }

.sidebar-backdrop { display: none; }
@media (max-width: 960px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: fixed; left: -290px; width: 264px; z-index: 60; transition: left .25s var(--ease); box-shadow: var(--shadow-lg); }
    .dashboard-sidebar.is-open { left: 0; }
    .dashboard-sidebar.is-open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; }
    .dashboard-topbar { padding: 0 16px; }
    .dashboard-topbar .nav-toggle { display: block !important; }
    .dashboard-content { padding: 22px 16px; }
    .user-menu span, .topbar-title { display: none; }
}

/* ---------- Erreurs ---------- */
.error-page { text-align: center; padding: 90px 20px 100px; margin-bottom: -64px; }
.error-page-inner { max-width: 620px; margin: 0 auto; }
.error-icon { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; background: var(--gradient-primary); box-shadow: var(--shadow-glow); }
.error-page .code { font-size: clamp(5rem, 14vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.error-page p { color: var(--color-text-muted); margin-bottom: 28px; }
.error-links { margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--color-border); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; font-size: 0.86rem; color: var(--color-text-muted); }
.error-links span { width: 100%; margin-bottom: 4px; }
.error-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); font-weight: 600; color: var(--color-heading); }
.error-links a:hover { border-color: var(--color-orange); color: var(--color-orange-dark); }

@media print {
    .site-header, .site-footer, .dashboard-sidebar, .dashboard-topbar, .no-print { display: none !important; }
}
