/* =========================================================
   BTS.fr — Signal Orientation · Design System
   Police : Satoshi (Fontshare) · JetBrains Mono pour les data
   Bleu marine #0A1740 · Bleu France #0055FF · Rouge #E1001A
   ========================================================= */

:root {
  color-scheme: light only;
  --navy: #0A1740;
  --navy-deep: #060F2E;
  --blue: #0055FF;
  --blue-pale: #E7EEFF;
  --red: #E1001A;
  --red-deep: #C10016;
  --white: #FFFFFF;
  --gray-repere: #F3F5F8;
  --gray-line: #E5E7EB;
  --gray-text: #667085;
  --sage: #1A9E6F;
  --sage-pale: #E4F6EF;
  --gold: #D99400;
  --gold-pale: #FBF1DC;
}
html { color-scheme: light only; background: var(--white); scroll-behavior: smooth; }
@media (prefers-color-scheme: dark) { html, body { background: var(--white) !important; color: var(--navy) !important; } }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Satoshi', -apple-system, sans-serif; background: var(--white); color: var(--navy); font-weight: 400; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4, h5 { font-family: 'Satoshi', sans-serif; color: var(--navy); letter-spacing: -0.03em; line-height: 1.02; font-weight: 900; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.5rem; font-family: 'Satoshi', sans-serif; font-size: 0.92rem; font-weight: 700; border-radius: 10px; border: none; transition: all 0.18s; letter-spacing: -0.01em; white-space: nowrap; }
.btn svg { transition: transform 0.18s; }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(225, 0, 26, 0.25); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #0044d6; transform: translateY(-1px); }
.btn-ghost { background: var(--white); border: 1.5px solid var(--gray-line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-text { background: transparent; border: none; color: var(--navy); padding: 0.9rem 0.5rem; font-weight: 700; }
.btn-text:hover { color: var(--blue); }
.btn-big { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ LOGO ============ */
.logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-text { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--navy); letter-spacing: -0.05em; }
.logo-chevrons { display: inline-flex; align-items: center; gap: 1px; }
.logo-chevrons svg { width: 14px; height: 17px; }

/* ============ HEADER ============ */
header.site-header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-line); z-index: 100; padding: 1rem 0; }
.header-inner { max-width: 1340px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.main-nav { display: flex; gap: 0.1rem; align-items: center; }
.nav-link { padding: 0.5rem 0.85rem; font-size: 0.93rem; font-weight: 500; color: var(--navy); border-radius: 7px; transition: all 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-pale); }
.header-right { display: flex; align-items: center; gap: 0.6rem; }
.header-icon-btn { width: 42px; height: 42px; border-radius: 10px; background: transparent; border: none; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); transition: all 0.2s; }
.header-icon-btn:hover { background: var(--gray-repere); color: var(--blue); }

/* ============ BREADCRUMB ============ */
.breadcrumb-wrap { padding: 1.5rem 0 0; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-text); font-weight: 600; flex-wrap: wrap; }
.breadcrumb a { color: var(--navy); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--gray-line); }
.breadcrumb .current { color: var(--blue); }

/* ============ PAGE HERO (interne) ============ */
.page-hero { padding: 2rem 0 2.5rem; }
.page-hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.page-hero h1 { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 1.2rem; }
.page-hero h1 .blue { color: var(--blue); }
.page-hero h1 .dot-red { color: var(--red); }
.page-hero-sub { font-size: 1.15rem; line-height: 1.5; color: var(--gray-text); max-width: 56ch; }

/* Hero foncé (variante marine) */
.page-hero-dark { background: var(--navy); border-radius: 24px; padding: 3rem 3.5rem; color: var(--white); position: relative; overflow: hidden; }
.page-hero-dark::before { content: ''; position: absolute; right: -6%; bottom: -40%; width: 45%; height: 160%; background: linear-gradient(135deg, transparent 45%, rgba(0, 85, 255, 0.14) 45%, rgba(0, 85, 255, 0.14) 55%, transparent 55%); pointer-events: none; }
.page-hero-dark > * { position: relative; z-index: 2; }
.page-hero-dark h1 { color: var(--white); }
.page-hero-dark .page-hero-sub { color: rgba(255,255,255,0.75); }
.page-hero-dark .page-hero-eyebrow { color: #7DA0FF; }

/* ============ SECTION ============ */
.section { padding: 1rem 0 3rem; }
.section-eyebrow { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: uppercase; color: var(--navy); margin-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section-head .section-eyebrow { margin-bottom: 0; }
.link-arrow { color: var(--blue); font-size: 0.92rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.link-arrow:hover { gap: 0.7rem; }

/* ============ SEARCH / FILTER MODULE ============ */
.signal-search { background: var(--gray-repere); border-radius: 18px; padding: 1.6rem; display: grid; gap: 0.7rem; }
.signal-search.cols-5 { grid-template-columns: 1.6fr 1.2fr 1fr 0.9fr auto; }
.signal-search.cols-4 { grid-template-columns: 1.6fr 1.2fr 1fr auto; }
.signal-input, .signal-select { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--gray-line); border-radius: 10px; font-family: 'Satoshi', sans-serif; font-size: 0.9rem; color: var(--navy); background: var(--white); transition: border-color 0.18s; }
.signal-input::placeholder { color: var(--gray-text); }
.signal-input:focus, .signal-select:focus { outline: none; border-color: var(--blue); }
.signal-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A1740' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }

/* ============ TABLE SIGNAL ============ */
.table-scroll { overflow-x: auto; }
.signal-table { width: 100%; border-collapse: collapse; border: 1px solid var(--gray-line); border-radius: 14px; overflow: hidden; }
.signal-table thead { background: var(--navy); }
.signal-table thead th { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--white); padding: 1rem 1.3rem; text-align: left; }
.signal-table thead th.center { text-align: center; }
.signal-table tbody tr { border-bottom: 1px solid var(--gray-line); transition: background 0.15s; }
.signal-table tbody tr:hover { background: var(--gray-repere); }
.signal-table tbody tr:last-child { border-bottom: none; }
.signal-table tbody tr.highlight { background: var(--blue-pale); }
.signal-table tbody td { padding: 0.95rem 1.3rem; font-size: 0.92rem; color: var(--navy); }
.signal-table tbody td:first-child { font-weight: 700; }
.signal-table tbody td.coef { text-align: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--blue); font-size: 1rem; }
.signal-table tbody td.center { text-align: center; }
.signal-table .epreuve-pill { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 5px; background: var(--blue-pale); color: var(--blue); white-space: nowrap; }
.signal-table .epreuve-pill.oral { background: var(--gold-pale); color: var(--gold); }
.signal-table .epreuve-pill.pratique { background: var(--sage-pale); color: var(--sage); }
.signal-table tfoot td { background: rgba(225, 0, 26, 0.05); padding: 1rem 1.3rem; font-family: 'Satoshi', sans-serif; font-weight: 900; color: var(--navy); font-size: 0.95rem; }
.signal-table tfoot td.coef { text-align: center; font-family: 'JetBrains Mono', monospace; color: var(--red); font-size: 1.1rem; }
.dl-link { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }

/* ============ TAGS / PILLS ============ */
.pill { display: inline-flex; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 5px; }
.pill-navy { background: var(--navy); color: var(--white); }
.pill-blue { background: var(--blue-pale); color: var(--blue); }
.pill-red { background: rgba(225,0,26,0.08); color: var(--red); }
.pill-gray { background: var(--gray-repere); color: var(--gray-text); }
.pill-sage { background: var(--sage-pale); color: var(--sage); }

/* ============ CARDS ============ */
.card { background: var(--white); border: 1px solid var(--gray-line); border-radius: 16px; transition: all 0.2s; }
.card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 23, 64, 0.08); }

/* ============ CTA BAND ROUGE ============ */
.cta-band { padding: 3rem 0; }
.cta-band-inner { background: var(--red); border-radius: 24px; padding: 3rem 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.cta-band-inner::before { content: ''; position: absolute; right: -5%; top: -50%; width: 40%; height: 200%; background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.08) 55%, transparent 55%); pointer-events: none; }
.cta-band-text { position: relative; z-index: 2; }
.cta-band-text h2 { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; color: var(--white); margin-bottom: 0.6rem; }
.cta-band-text p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); max-width: 44ch; }
.cta-band-actions { position: relative; z-index: 2; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============ PARCOURS 4 ÉTAPES ============ */
.parcours-steps { display: flex; gap: 0; }
.parcours-step { flex: 1; position: relative; padding: 1.5rem 1.5rem 1.5rem 2.6rem; color: var(--white); display: flex; align-items: center; gap: 1.2rem; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%); margin-left: -24px; }
.parcours-step:first-child { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); margin-left: 0; border-radius: 12px 0 0 12px; padding-left: 1.8rem; }
.parcours-step.s1 { background: var(--navy); z-index: 4; }
.parcours-step.s2 { background: var(--blue); z-index: 3; }
.parcours-step.s3 { background: #0044d6; z-index: 2; }
.parcours-step.s4 { background: var(--red); z-index: 1; border-radius: 0 12px 12px 0; }
.parcours-num { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 2.6rem; letter-spacing: -0.05em; opacity: 0.5; line-height: 1; flex-shrink: 0; }
.parcours-text strong { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.05rem; display: block; margin-bottom: 0.2rem; letter-spacing: -0.01em; text-transform: uppercase; }
.parcours-text span { font-size: 0.82rem; opacity: 0.85; line-height: 1.3; display: block; }

/* ============ FOOTER ============ */
footer.site-footer { background: var(--navy); color: var(--white); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-tagline { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 1.05rem; margin-top: 1.1rem; margin-bottom: 1.3rem; color: var(--white); letter-spacing: -0.02em; line-height: 1.3; max-width: 24ch; }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-social { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.08); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); transition: all 0.2s; }
.footer-social:hover { background: var(--blue); }
.footer-col h5 { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--white); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom .fb-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ============ RESPONSIVE GLOBAL ============ */
@media (max-width: 1000px) {
  .parcours-steps { flex-direction: column; }
  .parcours-step { clip-path: none !important; margin-left: 0 !important; border-radius: 10px !important; margin-bottom: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .main-nav { display: none; }
  .signal-search.cols-5, .signal-search.cols-4 { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 2.2rem; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signal-search.cols-5, .signal-search.cols-4 { grid-template-columns: 1fr; }
  .signal-table { font-size: 0.82rem; }
  .signal-table thead th, .signal-table tbody td { padding: 0.7rem 0.8rem; }
  .header-icon-btn.fav { display: none; }
  .page-hero-dark { padding: 2rem; }
}

/* ============ CONTENU GUTENBERG (pages éditables) ============ */
.entry-content { max-width: 1340px; margin: 0 auto; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 1.5rem; margin-bottom: 1.5rem; padding-left: 2rem; padding-right: 2rem; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: 100%; padding-left: 0; padding-right: 0; }
.entry-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.entry-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p { line-height: 1.65; }
.entry-content .wp-block-columns { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.entry-content .wp-block-column { flex: 1; min-width: 240px; }
.entry-content .wp-block-column > * { margin-top: 0; padding: 0; }
.entry-content .wp-block-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .entry-content > * { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* =========================================================
   COMPOSANTS — classes extraites des styles inline (v1.1)
   Code plus propre, HTML plus léger, design centralisé.
   ========================================================= */

/* Accents de couleur réutilisables */
.txt-red { color: var(--red); }
.txt-blue { color: var(--blue); }
.txt-muted { color: var(--gray-text); }
.dot-red { color: var(--red); }

/* Espacements utilitaires (rythme vertical harmonisé) */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.section-pad { padding: 2rem 0; }
.section-pad-sm { padding: 2rem 0 1.5rem; }

/* Hero interne : titre + sous-titre standardisés */
.page-hero h1 .accent { color: var(--blue); }

/* Sections d'une fiche (présentation, programme…) */
.fiche-section { margin-bottom: 3rem; scroll-margin-top: 130px; }
.fiche-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.fiche-section-num {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--blue); flex-shrink: 0;
}
.fiche-section h2 { font-size: 1.8rem; }
.fiche-section h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }

/* Listes de contenu (missions, compétences…) */
.bts-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bts-list li { color: #2a3550; line-height: 1.6; }
.bts-list li::marker { color: var(--blue); }

/* Prose (contenu rédactionnel) */
.prose { font-size: 1.02rem; line-height: 1.65; color: #2a3550; }
.prose-lg { font-size: 1.08rem; line-height: 1.7; color: #2a3550; max-width: 720px; }

/* Layout fiche avec sidebar */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; padding: 1rem 0 3rem; align-items: start; }
.detail-layout.wide-aside { grid-template-columns: 1fr 340px; }
.detail-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
@media (max-width: 980px) { .detail-layout, .detail-layout.wide-aside { grid-template-columns: 1fr; } .detail-sidebar { position: static; } }

/* Grilles de cards réutilisables */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Card de stat (fiches métiers) */
.stat-box { background: var(--gray-repere); border-radius: 14px; padding: 1.4rem; transition: transform 0.18s, box-shadow 0.18s; }
.stat-box:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,23,64,0.06); }
.stat-box-num { font-weight: 900; font-size: 1.6rem; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.stat-box-label { font-size: 0.8rem; color: var(--gray-text); margin-top: 0.3rem; }

/* Encart sidebar marine */
.side-card-navy { background: var(--navy); color: #fff; border: none; border-radius: 16px; padding: 1.6rem; }
.side-card-navy h5, .side-card-navy .label { color: #7DA0FF; }

/* Carte article (mutualisée) */
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-img { aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--gray-repere); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.article-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }

/* Barre de tension (métier) */
.tension-track { height: 10px; background: var(--gray-line); border-radius: 100px; overflow: hidden; margin: 0.6rem 0; }
.tension-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--sage), var(--blue)); transition: width 0.6s ease; }

/* =========================================================
   RAFFINEMENTS DESIGN (v1.1) — micro-interactions & polish
   ========================================================= */

/* Transitions douces globales sur les éléments interactifs */
a, button, .card, .explore-card, .direction-panel { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* Liens de contenu : soulignement animé dans la prose */
.prose a, .prose-lg a { color: var(--blue); text-decoration: none; background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.25s ease; }
.prose a:hover, .prose-lg a:hover { background-size: 100% 1.5px; }

/* Focus visible homogène et accessible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

/* Boutons : ressort plus naturel + halo au survol */
.btn { will-change: transform; }
.btn-red:active, .btn-navy:active, .btn-blue:active { transform: translateY(1px) scale(0.99); }

/* Cards : ombre plus subtile et montée plus fluide */
.card { box-shadow: 0 1px 2px rgba(10,23,64,0.03); }

/* Sélection de texte aux couleurs de la marque */
::selection { background: var(--blue); color: #fff; }

/* Apparition douce au chargement (respecte prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-left > *, .direction-panel { animation: bts-fade-up 0.5s cubic-bezier(0.22,1,0.36,1) backwards; }
  .hero-left > *:nth-child(1) { animation-delay: 0.02s; }
  .hero-left > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-left > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-left > *:nth-child(4) { animation-delay: 0.20s; }
  .direction-panel:nth-child(1) { animation-delay: 0.10s; }
  .direction-panel:nth-child(2) { animation-delay: 0.16s; }
  .direction-panel:nth-child(3) { animation-delay: 0.22s; }
  .direction-panel:nth-child(4) { animation-delay: 0.28s; }
}
@keyframes bts-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar discrète aux couleurs du thème (navigateurs compatibles) */
@supports (scrollbar-color: auto) { html { scrollbar-color: var(--gray-line) transparent; } }

/* Amélioration tactile : zones cliquables plus confortables sur mobile */
@media (max-width: 640px) {
  .nav-link, .footer-col ul a { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .btn { min-height: 44px; }
}

/* Fiche métier — classes spécifiques */
.metier-title { font-size: 2.4rem; }
.metier-accroche { font-size: 1.1rem; color: var(--gray-text); margin-top: 0.5rem; max-width: 50ch; }
.metier-h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.tension-score { font-size: 0.82rem; }
.side-card-pad { padding: 1.6rem; }
.side-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 1rem; }
.side-card-navy .side-label { color: #7DA0FF; margin-bottom: 0.8rem; }
.side-card-navy-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem; }
.bts-mini { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--gray-line); }
.bts-mini:last-child { border-bottom: none; }
.bts-mini strong { font-weight: 700; font-size: 0.95rem; }
.bts-mini:hover { color: var(--blue); }

/* =========================================================
   COMPOSANTS v1.2 — conversion complète des styles inline
   ========================================================= */

/* Paddings de section normalisés */
.sec-2-2 { padding: 2rem 0; }
.sec-2-15 { padding: 2rem 0 1.5rem; }
.sec-2-25 { padding: 2rem 0 2.5rem; }
.pad-card { padding: 1.6rem; }
.pad-card-sm { padding: 1.3rem; }
.pad-hero-dark { padding: 3rem 3.5rem; }

/* Utilitaires de flux */
.mt-15 { margin-top: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mb-07 { margin-bottom: 0.7rem; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.txt-sky { color: #7DA0FF; }
.row-actions { display: flex; gap: 0.7rem; margin-top: 1rem; flex-wrap: wrap; }
.col-form { display: flex; flex-direction: column; gap: 0.8rem; }

/* Attributs en pills sur fond foncé (hero BTS) */
.attr-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 0.5rem 1rem; font-size: 0.85rem; color: #fff;
}

/* Liens d'action latéraux (sidebar fiche BTS) */
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 1rem; border: 1px solid var(--gray-line); border-radius: 10px; transition: border-color 0.18s, color 0.18s; }
.side-link:hover { border-color: var(--blue); color: var(--blue); }
.side-link span { font-size: 0.9rem; font-weight: 600; }

/* Visionneuse PDF (annales) */
.pdf-frame { border: 1px solid var(--gray-line); border-radius: 14px; overflow: hidden; background: var(--gray-repere); }
.pdf-frame iframe { width: 100%; height: 780px; border: none; display: block; }

/* Ligne établissement (fiche BTS) */
.ecole-row { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--gray-line); }
.ecole-row:last-child { border-bottom: none; }
.ecole-logo-sq { width: 48px; height: 48px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; background: var(--navy); }
.ecole-logo-sq.partner { background: linear-gradient(135deg, var(--red), var(--blue)); }
.ecole-row-info { flex: 1; }
.ecole-row-info strong { font-weight: 700; font-size: 1.02rem; display: block; }
.ecole-row-info span { font-size: 0.82rem; color: var(--gray-text); }

/* État vide / message dans une cellule */
.empty-cell { padding: 2.5rem; text-align: center; color: var(--gray-text); }

/* Titres de cards génériques */
.card-title-lg { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; }
.card-title-md { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.h4-article { font-size: 1.02rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }

/* Eyebrow mono de sélecteur */
.sel-eyebrow { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 0.6rem; }

/* Pills de listing (formations) */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Liste à puces de bénéfices (guides) */
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.benefits-list li { display: flex; align-items: center; gap: 0.7rem; }

/* Numéro 404 */
.error-num { font-size: 5rem; font-weight: 700; color: var(--blue); letter-spacing: -0.05em; line-height: 1; }

/* Pill rouge plein (badge Partenaire / Sponsorisé) */
.pill-solid { background: var(--red); color: #fff; }

/* ===== Home : classes portées depuis la maquette (v1.2) ===== */
.hero h1 {font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 0.92; letter-spacing: -0.045em; color: var(--navy); margin-bottom: 1.8rem; text-transform: uppercase;}
.hero h1 .blue {color: var(--blue);}
.hero h1 .dot-red {color: var(--red);}
.stats-grid {display: grid; grid-template-columns: repeat(4, 1fr); background: var(--gray-repere); border-radius: 18px; overflow: hidden;}
.stat-cell {padding: 1.8rem 2rem; display: flex; align-items: center; gap: 1.1rem; position: relative;}
.stat-cell:not(:last-child)::after {content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: var(--gray-line);}
.stat-icon {color: var(--navy); flex-shrink: 0;}
.stat-num {font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1; margin-bottom: 0.2rem;}
.stat-label {font-size: 0.85rem; color: var(--gray-text); line-height: 1.3;}
.explore-icon {width: 52px; height: 52px; border-radius: 13px; background: var(--gray-repere); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: all 0.2s;}
.explore-card h3 {font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: uppercase; color: var(--navy);}
.explore-card p {font-size: 0.92rem; color: var(--gray-text); line-height: 1.5; flex: 1;}
.explore-link {font-size: 0.88rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s;}
.articles-list {display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;}
.stat-cell:nth-child(2)::after {display: none;}
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.explore-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.7rem 1.6rem; background: var(--white); border: 1px solid var(--gray-line); border-radius: 16px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.explore-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 23, 64, 0.08); }
.articles-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.6rem; align-items: start; }
.newsletter-card { background: var(--navy); border-radius: 18px; padding: 2rem 1.8rem; position: relative; overflow: hidden; }
.newsletter-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; position: relative; z-index: 2; }
.newsletter-form { display: flex; gap: 0.6rem; position: relative; z-index: 2; }
.newsletter-input { flex: 1; min-width: 0; padding: 0.8rem 1rem; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-family: 'Satoshi', sans-serif; font-size: 0.9rem; }
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.2rem; border-radius: 10px; border: none; background: var(--red); color: #fff; font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.18s; }
.newsletter-btn:hover { background: var(--red-deep); }
.stat-cell::after {display: none !important;}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2)::after { display: none; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .articles-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell::after { display: none !important; }
  .explore-grid { grid-template-columns: 1fr; }
  .articles-list { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .newsletter-form { flex-direction: column; }
}

/* Home : structures de base hero (desktop) */
.hero { padding: 3.5rem 0 2.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; position: relative; }
.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: 1.2rem; line-height: 1.5; color: var(--gray-text); margin-bottom: 2.2rem; max-width: 42ch; }
.hero-right { position: relative; }
.hero-big-arrow { position: absolute; right: -2rem; top: 50%; transform: translateY(-50%); width: 230px; height: 230px; z-index: 1; pointer-events: none; }
.direction-panels { display: flex; flex-direction: column; gap: 0.7rem; position: relative; z-index: 3; }
.direction-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 14px; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.18s, box-shadow 0.18s; }
.direction-panel:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(10, 23, 64, 0.14); }
.direction-panel .dp-text { display: flex; flex-direction: column; gap: 0.15rem; }
.direction-panel .dp-title { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.1; }
.direction-panel .dp-sub { font-size: 0.85rem; font-weight: 500; line-height: 1.25; }
.direction-panel .dp-arrow { flex-shrink: 0; display: inline-flex; align-items: center; }
.direction-panel.is-navy { background: var(--navy); color: #fff; }
.direction-panel.is-blue { background: var(--blue); color: #fff; }
.direction-panel.is-red { background: var(--red); color: #fff; }
.direction-panel.is-white { background: var(--white); color: var(--navy); border-color: var(--gray-line); }
.direction-panel.is-navy .dp-sub, .direction-panel.is-blue .dp-sub, .direction-panel.is-red .dp-sub { color: rgba(255, 255, 255, 0.82); }
.direction-panel.is-white .dp-sub { color: var(--gray-text); }
.stat-num { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.85rem; color: var(--gray-text); line-height: 1.3; }
.explore-card h3 { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: uppercase; color: var(--navy); }
.explore-card p { font-size: 0.92rem; color: var(--gray-text); line-height: 1.5; flex: 1; }
.explore-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--gray-repere); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.explore-card:hover .explore-icon { background: var(--blue); color: #fff; }
.newsletter-card h3 { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 1.35rem; color: #fff; letter-spacing: -0.025em; text-transform: uppercase; margin-bottom: 0.6rem; position: relative; z-index: 2; }
.newsletter-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.45; margin-bottom: 1.4rem; position: relative; z-index: 2; }
.newsletter-card::before { content: ''; position: absolute; right: -20%; top: -30%; width: 60%; height: 160%; background: linear-gradient(135deg, transparent 45%, rgba(0,85,255,0.18) 45%, rgba(0,85,255,0.18) 55%, transparent 55%); pointer-events: none; }
@media (max-width: 1200px) { .hero-big-arrow { display: none; } }

/* Fiche offre d'alternance */
.alt-head { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 2rem; }
.alt-logo { width: 72px; height: 72px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.8rem; flex-shrink: 0; }
.alt-title { font-size: 2rem; margin-bottom: 0.4rem; }
.alt-company { font-size: 1.05rem; color: var(--gray-text); font-weight: 500; }
.alt-attrs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.sec-h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.alt-salary-big { font-weight: 900; font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.alt-salary-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1.4rem; }

/* Helpers couleur/texte */
.txt-white { color: #fff; }
.txt-white-75 { color: rgba(255,255,255,0.75); }
.txt-sm { font-size: 0.92rem; }
.pill-lg { font-size: 0.78rem; padding: 0.45rem 0.9rem; }

/* Fiche établissement */
.ecole-partner-badge { margin-bottom: 1rem; display: inline-block; }
.empower-box { margin-top: 2rem; background: var(--gray-repere); border-radius: 16px; padding: 1.8rem; border-left: 4px solid var(--blue); }
.empower-box-title { display: block; margin-bottom: 0.4rem; }

/* Landing guide (lead magnet) */
.guide-hero { background: var(--navy); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.guide-hero::before { content: ''; position: absolute; right: -4%; top: -50%; width: 35%; height: 200%; background: linear-gradient(135deg, transparent 45%, rgba(0,85,255,0.16) 45%, rgba(0,85,255,0.16) 55%, transparent 55%); pointer-events: none; }
.guide-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.guide-hero-title { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
.guide-hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 2rem; }
.guide-benefit { display: flex; align-items: center; gap: 0.7rem; font-size: 1rem; color: rgba(255,255,255,0.9); }
.guide-form-card { background: #fff; border-radius: 20px; padding: 2rem; }
.guide-mockup { aspect-ratio: 3/4; max-width: 200px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, var(--blue), var(--navy)); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: #fff; }
.guide-mockup .chev-big { font-weight: 900; font-size: 3rem; }
.guide-form-title { font-size: 1.3rem; text-align: center; margin-bottom: 0.4rem; color: var(--navy); }
.guide-form-sub { font-size: 0.88rem; color: var(--gray-text); text-align: center; margin-bottom: 1.5rem; }
.guide-form-field { margin-bottom: 0.7rem; }
.guide-form-legal { font-size: 0.72rem; color: var(--gray-text); text-align: center; margin-top: 0.8rem; }
.guide-learn { padding-top: 3rem; }
.learn-num { font-weight: 900; font-size: 2rem; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.learn-title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.learn-desc { font-size: 0.9rem; color: var(--gray-text); line-height: 1.5; }
@media (max-width: 900px) { .guide-hero-grid { grid-template-columns: 1fr; } }

/* Onglets annale (sujet / corrigé) */
.annale-section { padding-top: 0.5rem; }
.annale-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--gray-line); margin-bottom: 1.8rem; }
.annale-tab { padding: 0.9rem 1.6rem; font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 0.95rem; background: transparent; border: none; border-bottom: 3px solid transparent; color: var(--gray-text); cursor: pointer; transition: color 0.18s, border-color 0.18s; }
.annale-tab.active { border-bottom-color: var(--blue); color: var(--navy); }
.annale-tab:hover { color: var(--navy); }
.annale-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.annale-panel[hidden] { display: none; }
.annale-prose { margin-top: 2.5rem; }
@media (max-width: 900px) { .annale-layout { grid-template-columns: 1fr; } }

/* Comparateur BTS */
.sec-2-1 { padding: 2rem 0 1rem; }
.compare-selectors { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 2rem 0; }
.compare-selector { background: var(--gray-repere); border-radius: 16px; padding: 1.5rem 1.8rem; }
.compare-selector.a { border: 2px solid var(--navy); }
.compare-selector.b { border: 2px solid var(--blue); }
.sel-desc { font-size: 0.88rem; color: var(--gray-text); margin-top: 0.2rem; }
.compare-vs { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.verdict-block { background: var(--navy); border-radius: 20px; padding: 2.5rem 3rem; color: #fff; margin-top: 2rem; position: relative; overflow: hidden; }
.verdict-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7DA0FF; margin-bottom: 1.3rem; }
.verdict-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.verdict-h4 { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 0.6rem; }
.verdict-p { color: rgba(255,255,255,0.8); line-height: 1.55; }
@media (max-width: 700px) { .compare-selectors, .verdict-cols { grid-template-columns: 1fr; } }

/* Encart "informations en cours de complétion" (fiches catalogue) */
.info-pending { background: #FFF8E8; border: 1px solid #F0E0B0; }
.info-pending p { color: #6b5a1e; font-size: 0.95rem; line-height: 1.55; margin: 0; }
