/* Europass – site d'orientation (ausbildung.europassacademy.com). Charte identique au portail / CRM. */
@font-face { font-family: "Archivo"; src: url("archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #0B1A33; --navy-2: #12264A; --blue: #003094; --blue-deep: #00226B; --blue-tint: #E7EDF9;
  --red: #CE0011; --red-tint: #FDECEE; --white: #fff; --grey: #F4F6FA; --line: #DCE2EC;
  --ink: #0B1A33; --muted: #47536B; --green: #0F7B4E; --green-tint: #E3F4EC; --amber: #A15C00; --amber-tint: #FFF3E0;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif; --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px; --shadow: 0 1px 2px rgba(11,26,51,.06), 0 10px 30px rgba(11,26,51,.07);
}
html[dir="rtl"] { --font-display: "Cairo", "Archivo", Arial, sans-serif; --font-body: "Cairo", "Inter", Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(0,48,148,.35); outline-offset: 2px; }
.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.discret { color: var(--muted); }
.petit { font-size: 14px; }
.etiquette { font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: inline-block; }
html[dir="rtl"] .etiquette { letter-spacing: 0; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.entete .conteneur { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 32px; width: auto; display: block; }
.logo span { font-size: 13px; color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 10px; line-height: 1.2; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.langue-lien { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px !important; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 16px/1 var(--font-body); padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .1s; }
.btn:hover { border-color: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn--primaire { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primaire:hover { background: #A6000E; border-color: #A6000E; }
.btn--bleu { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--bleu:hover { background: var(--blue-deep); }
.btn--petit { padding: 10px 16px; font-size: 14px; }

/* Héros */
.heros { background: radial-gradient(1200px 500px at 85% -10%, #1d3b78 0%, transparent 60%), var(--navy); color: #fff; padding: 64px 0 56px; }
.heros h1 { color: #fff; max-width: 860px; }
.heros p.chapo { font-size: clamp(17px, 2vw, 20px); color: #C9D3E6; max-width: 720px; }
.heros .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.heros .btn { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.heros .btn--primaire { background: var(--red); border-color: var(--red); }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 40px; max-width: 860px; }
.chiffre { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; }
.chiffre b { display: block; font: 800 clamp(26px, 4vw, 38px)/1.1 var(--font-display); color: #fff; }
.chiffre span { font-size: 14px; color: #C9D3E6; }
.fil { font-size: 14px; margin-bottom: 14px; color: #C9D3E6; }
.fil a { color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section--gris { background: var(--grey); }
.grille { display: grid; gap: 16px; }
.grille--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.carte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
a.carte { text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .15s; }
a.carte:hover { border-color: var(--blue); transform: translateY(-2px); }
.carte h3 { margin-bottom: 6px; }
.compteur { font: 800 26px/1 var(--font-display); color: var(--blue); }
.barre { height: 8px; background: var(--grey); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.barre i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.etapes { counter-reset: etape; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.etape { position: relative; padding-top: 44px; }
.etape::before { counter-increment: etape; content: counter(etape); position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Outil « Quelles sont mes chances ? » */
.outil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.champ select { font: 400 16px/1.4 var(--font-body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.champ select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-tint); }
.verdict { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); min-height: 260px; }
.verdict .niveau { display: inline-block; font: 800 22px/1.2 var(--font-display); padding: 8px 14px; border-radius: 12px; margin-bottom: 12px; }
.n-excellent { background: var(--green-tint); color: var(--green); }
.n-bon { background: var(--blue-tint); color: var(--blue); }
.n-possible { background: var(--amber-tint); color: var(--amber); }
.n-difficile { background: var(--red-tint); color: var(--red); }
.verdict ul { padding-inline-start: 20px; margin: 10px 0 16px; }
.verdict li { margin: 6px 0; }

/* Tableaux et listes */
table.donnees { width: 100%; border-collapse: collapse; font-size: 15px; }
table.donnees th, table.donnees td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.donnees th { font-size: 13px; color: var(--muted); font-weight: 600; }
.exemples li { margin: 8px 0; }
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--grey); color: var(--muted); }
.pastille--vert { background: var(--green-tint); color: var(--green); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.encart { background: var(--blue-tint); border-radius: var(--radius); padding: 22px; }
.encart--alerte { background: var(--amber-tint); }
.appel { background: var(--navy); color: #fff; border-radius: 22px; padding: 36px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.appel h2 { color: #fff; margin: 0; }
.appel p { color: #C9D3E6; margin: 6px 0 0; }

/* Pied */
.pied { background: var(--navy); color: #C9D3E6; padding: 34px 0; font-size: 14px; }
.pied a { color: #fff; }
.pied .conteneur { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 820px) {
  .outil { grid-template-columns: minmax(0, 1fr); }
  .chiffres { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.langue-lien):not(.btn) { display: none; }
  .heros { padding: 44px 0 40px; }
  .section { padding: 44px 0; }
  .appel { padding: 26px; }
}
