/* =========================================================
   theme.css : design « GetYourGuide + Indeed » (décembre 2026)
   Chargé après redesign.css et avant responsive.css.
   - Police Lexend partout, encre bleu nuit #1A2B49, violet #5B4DF5, jaune #FFB938.
   - Fond blanc, cartes bordées et arrondies, boutons en pilule.
   - Bandeaux photo avec barre de recherche blanche (comme GetYourGuide).
   - Listes avec la fiche du choix à droite sur ordinateur (comme Indeed).
   ========================================================= */

:root {
  --encre: #1A2B49;          /* titres et texte principal */
  --encre-2: #3D4A63;        /* texte courant */
  --gris: #63687A;           /* texte secondaire (contraste 5,6:1 sur blanc) */
  --trait: #EBEEF1;          /* bordures légères */
  --trait-fort: #DCDFE4;     /* bordures des champs et des filtres */
  --doux: #F5F6F8;           /* blocs gris très clair */
  --pastille: #F1F0F6;       /* petites étiquettes */
  --violet: #5B4DF5;         /* couleur principale */
  --violet-fonce: #4337C9;   /* texte violet sur fond clair */
  --violet-clair: #EEEDFE;
  --jaune: #FFB938;
  --etoile: #E8A400;
  --vert: #1F8A52;
  --vert-clair: #E3F4EA;
  --vert-texte: #17603D;
  --rayon: 16px;
  --rayon-carte: 14px;
  --ombre-x: 0 6px 24px rgba(26, 43, 73, .08);
  --ombre-recherche: 0 8px 24px rgba(0, 0, 0, .25);
  --largeur: 1240px;

  /* Les anciens noms de variables pointent vers la nouvelle palette : tout le site suit. */
  --cream: var(--doux);
  --deep: var(--encre);
  --deep-2: #24375C;
  --text-dark: var(--encre);
  --text-body: var(--encre-2);
  --text-muted: var(--gris);
  --border: var(--trait);
  --terracotta: var(--violet);
  --terracotta-text: var(--violet-fonce);
  --terracotta-light: var(--violet-clair);
  --sage-light: var(--violet-clair);
  --sage-text: var(--violet-fonce);
  --ombre: var(--ombre-x);
  --ombre-forte: 0 14px 40px rgba(26, 43, 73, .14);
}

/* ---------- Base ---------- */
body {
  font-family: 'Lexend', system-ui, sans-serif;
  background: #fff;
  color: var(--encre);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3, h4, .serif { font-family: 'Lexend', system-ui, sans-serif; color: var(--encre); letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
button, input, select, textarea { font-family: inherit; }
.wrap { max-width: var(--largeur); padding-left: max(24px, 3vw); padding-right: max(24px, 3vw); }
main { background: #fff; }
::selection { background: var(--violet-clair); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ---------- En-tête ---------- */
header.tete { background: #fff; border-bottom: 1px solid var(--trait); backdrop-filter: none; position: sticky; top: 0; z-index: 30; }
header.tete .wrap { height: 72px; padding-top: 0; padding-bottom: 0; gap: 24px; }
.logo { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--violet); line-height: 1; }
.logo span { color: var(--jaune); }
header.tete .nav-links { flex: 1; align-items: stretch; height: 72px; gap: 24px; }
@media (min-width: 861px) { header.tete .nav-links { display: flex; } }
.tete-rubriques { display: flex; align-items: stretch; gap: 26px; margin-left: 12px; }
.tete-rubriques a { display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--encre); white-space: nowrap; }
header.tete .nav-links .tete-rubriques a:not(.btn-primary):hover { color: var(--violet); }
header.tete .nav-links .tete-rubriques a.active { color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet); font-weight: 600; }
.tete-outils { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.tete-ico { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; font-size: 12.5px; font-weight: 500; color: var(--gris); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; position: relative; }
header.tete .nav-links a.tete-ico { color: var(--gris); font-size: 12.5px; }
.tete-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
header.tete .nav-links a.tete-ico:hover, .tete-ico:hover { color: var(--encre); }
header.tete .nav-links a.tete-ico.active { color: var(--violet); }
.tete-ico .avatar { width: 22px; height: 22px; font-size: 10px; border-radius: 50%; }
.nav-avatar .avatar { width: 22px; height: 22px; font-size: 10px; border-radius: 50%; }
.notif-bell.tete-ico { width: auto; height: auto; border-radius: 0; background: none; }
.notif-bell .ico-notif { width: 20px; height: 20px; }
.notif-dot { top: 4px; right: 8px; }
header.tete .nav-links .tete-publier { color: #fff; padding: 10px 20px; font-size: 14px; box-shadow: none; }
header.tete .nav-links .tete-publier:hover { color: #fff; }
.hamburger { background: var(--doux); border-radius: 12px; }
.hamburger .bar { background: var(--encre); }
.notif-panel { border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: var(--ombre-forte); }
.menu-drawer .menu-link.highlight { color: var(--violet); }

/* ---------- Boutons ---------- */
.btn-primary, .btn-submit, .btn-menu-primary, .btn-manage {
  background: var(--violet); color: #fff; border: 0; border-radius: 999px; font-weight: 600; box-shadow: none;
}
.btn-primary:hover, .btn-submit:hover, .btn-menu-primary:hover { background: var(--violet-fonce); color: #fff; box-shadow: none; transform: none; }
.btn-secondary, .btn-ghost, .btn-menu-secondary { background: #fff; color: var(--encre); border: 1px solid var(--encre); border-radius: 999px; font-weight: 600; }
.btn-secondary:hover, .btn-ghost:hover { background: var(--encre); color: #fff; }
.btn-light { border-radius: 999px; color: var(--encre); }
.btn-deep { background: var(--encre); }
.btn-x { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; font-family: inherit; }
.btn-x-plein { background: var(--violet); color: #fff; }
.btn-x-plein:hover { background: var(--violet-fonce); color: #fff; }
.btn-x-contour { background: #fff; color: var(--encre); border-color: var(--encre); }
.btn-x-contour:hover { background: var(--encre); color: #fff; }
.btn-rond { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait-fort); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--encre); padding: 0; }
.btn-rond svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-rond.on svg, .btn-rond[aria-pressed="true"] svg { fill: var(--violet); stroke: var(--violet); }

/* ---------- Champs de formulaire ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="tel"], select, textarea {
  border-radius: 12px; border-color: var(--trait-fort);
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); }

/* ---------- Messages ---------- */
.flash { border-radius: 12px; font-size: 14px; }

/* ---------- Bandeau photo + recherche (GetYourGuide) ---------- */
.x-haut { max-width: var(--largeur); margin: 0 auto; padding: 24px max(24px, 3vw) 0; box-sizing: border-box; }
.bandeau { position: relative; border-radius: var(--rayon); overflow: visible; min-height: 260px; display: flex; flex-direction: column; justify-content: center; padding: 36px max(24px, 5%); box-sizing: border-box; background: var(--encre); isolation: isolate; }
.bandeau-grand { min-height: 400px; }
.bandeau-moyen { min-height: 300px; }
.bandeau-petit { min-height: 200px; padding-top: 28px; padding-bottom: 28px; }
.bandeau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; border-radius: inherit; }
.bandeau::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, rgba(26, 43, 73, .9), rgba(26, 43, 73, .35) 78%); }
.bandeau h1 { margin: 0; color: #fff; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; max-width: 680px; }
.bandeau p.bandeau-sous { margin: 10px 0 0; color: #E6E9F0; font-size: 17px; max-width: 580px; line-height: 1.5; }
.bandeau-fil { color: #C9D0DD; font-size: 14px; margin: 0 0 8px; }
.bandeau-fil a { color: #fff; text-decoration: underline; }

.recherche-x { margin-top: 24px; max-width: 860px; display: flex; flex-wrap: wrap; background: #fff; border-radius: var(--rayon); padding: 0; overflow: hidden; box-shadow: var(--ombre-recherche); gap: 0; }
.recherche-x label { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; padding: 0 20px; min-height: 68px; min-width: 0; cursor: text; }
.recherche-x label + label { border-left: 1px solid var(--trait); }
.recherche-x svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--encre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.recherche-x .rx-champ { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.recherche-x .rx-etiquette { font-size: 12px; font-weight: 600; color: var(--gris); line-height: 1.3; }
.recherche-x input { border: 0; padding: 0; margin: 0; font: 600 16px 'Lexend', sans-serif; color: var(--encre); width: 100%; min-width: 0; background: transparent; outline: none; box-shadow: none; border-radius: 0; }
.recherche-x input::placeholder { color: #8B90A0; font-weight: 400; }
.recherche-x input:focus { border: 0; }
/* Un seul repère au clic : le champ garde un fond gris clair, sans double cadre violet (cadre du champ + contour du texte). */
.recherche-x input:focus, .recherche-x input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
.recherche-x label:focus-within { background: var(--doux); border-radius: 0; box-shadow: none; }
.recherche-x button[type="submit"] { border: 0; border-radius: 12px; background: var(--violet); color: #fff; font: 600 15px 'Lexend', sans-serif; padding: 0 28px; min-height: 56px; margin: 6px; cursor: pointer; }
.recherche-x button[type="submit"]:hover { background: var(--violet-fonce); }
.rx-geo { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rx-geo .geo-btn { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 8px 14px; font: 500 14px 'Lexend', sans-serif; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; }
.rx-geo .geo-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.rx-geo .geo-msg { color: #fff; font-size: 14px; }

/* ---------- Rangée de secteurs en icônes ---------- */
.secteurs-x { margin-top: 24px; display: flex; gap: 34px; overflow-x: auto; border-bottom: 1px solid var(--trait); scrollbar-width: thin; }
.secteurs-x a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px 14px; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--gris); text-decoration: none; min-width: 56px; }
.secteurs-x a:hover { color: var(--encre); }
.secteurs-x a.on { color: var(--encre); box-shadow: inset 0 -3px 0 var(--encre); }
.secteurs-x svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secteurs-x .sx-em { font-size: 24px; line-height: 26px; height: 26px; filter: grayscale(1); opacity: .8; }
.secteurs-x a.on .sx-em, .secteurs-x a:hover .sx-em { filter: none; opacity: 1; }

/* ---------- Filtres en pilules ---------- */
.pilules-x { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pilule { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--trait-fort); background: #fff; color: var(--encre); border-radius: 999px; padding: 8px 14px; font: 500 14px 'Lexend', sans-serif; text-decoration: none; min-height: 40px; box-sizing: border-box; cursor: pointer; white-space: nowrap; }
.pilule:hover { border-color: var(--encre); }
.pilule.on { border-color: var(--violet); background: var(--violet-clair); color: var(--violet-fonce); font-weight: 600; }
.pilule-select { position: relative; display: inline-flex; }
.pilule-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--trait-fort); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A2B49' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 999px; padding: 8px 34px 8px 14px; font: 500 14px 'Lexend', sans-serif; color: var(--encre); min-height: 40px; cursor: pointer; max-width: 260px; }
.pilule-select select.on { border-color: var(--violet); background-color: var(--violet-clair); color: var(--violet-fonce); font-weight: 600; }
.pilules-x .pilules-compte { margin-left: auto; font-size: 14px; color: var(--gris); }
.pilules-x .pilules-tri { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--gris); }
.pilules-x .pilules-tri a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.pilules-x .pilules-tri a.on { color: var(--encre); font-weight: 600; text-decoration: none; }
.pilules-x .lien-reset { font-size: 14px; color: var(--violet-fonce); font-weight: 600; text-decoration: underline; }
.pilules-x .btn-appliquer { border: 0; background: var(--encre); color: #fff; border-radius: 999px; padding: 8px 16px; font: 600 14px 'Lexend', sans-serif; min-height: 40px; cursor: pointer; }
.js .pilules-x .btn-appliquer { display: none; }

/* ---------- Liste + fiche à droite (Indeed) ---------- */
.liste-x { max-width: var(--largeur); margin: 0 auto; padding: 20px max(24px, 3vw) 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 24px; align-items: start; }
.liste-x-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.carte-x { display: grid; grid-template-columns: 120px minmax(0, 1fr); border: 1px solid var(--trait); border-radius: var(--rayon-carte); overflow: hidden; text-decoration: none; color: var(--encre); background: #fff; transition: border-color .15s, box-shadow .15s; position: relative; }
.carte-x:hover { border-color: #C9CEDA; box-shadow: var(--ombre-x); text-decoration: none; }
.carte-x.choisie { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.carte-x-visuel { position: relative; min-height: 112px; background: var(--doux); }
.carte-x-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-x-tuile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.carte-x-tuile svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tuile-1 { background: #ECEBFF; color: var(--violet); }
.tuile-2 { background: #FFF1D6; color: #9A6400; }
.tuile-3 { background: var(--vert-clair); color: var(--vert-texte); }
.tuile-4 { background: #FDE8EE; color: #9B1F57; }
.tuile-5 { background: #E3EEF9; color: #1F4E8A; }
.tuile-0 { background: var(--doux); color: var(--encre); }
.carte-x-corps { padding: 14px 16px; min-width: 0; }
.carte-x-sur { font-size: 11.5px; font-weight: 600; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; display: block; }
.carte-x-titre { margin: 0; max-width: none; display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--encre); }
.carte-x-titre a { color: inherit; text-decoration: none; }
.carte-x-titre a::after { content: ""; position: absolute; inset: 0; }   /* toute la carte est cliquable */
.carte-x-titre a:hover { text-decoration: underline; }
.carte-x-meta { display: block; font-size: 13px; color: var(--gris); margin-top: 2px; }
.carte-x-etiquettes { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.etiquette { background: var(--pastille); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--encre); }
.etiquette-nouveau { background: var(--vert-clair); color: var(--vert-texte); }
.etiquette-jaune { background: var(--jaune); color: var(--encre); }
.carte-x .fav-form { position: absolute; top: 8px; right: 8px; z-index: 2; }
.liste-x-plus { align-self: center; margin-top: 6px; }

.apercu-x { position: sticky; top: 92px; min-width: 0; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-x); background: #fff; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.apercu-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 104px 104px; gap: 4px; }
.apercu-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apercu-photos img:first-child { grid-row: span 2; }
.apercu-photo-unique { aspect-ratio: 11 / 5; position: relative; }   /* même format que les images « -large » (2,2:1) */
.apercu-photo-unique img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apercu-tete { padding: 22px 24px 18px; box-shadow: 0 4px 8px -6px rgba(26, 43, 73, .25); position: sticky; top: 0; background: #fff; z-index: 1; }
.apercu-tete h2 { margin: 8px 0 4px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.apercu-tete .apercu-sur { font-size: 12px; font-weight: 600; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; }
.apercu-meta { color: var(--gris); font-size: 14px; }
.apercu-meta a { color: var(--violet-fonce); font-weight: 600; text-decoration: underline; }
.apercu-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.apercu-actions form { display: inline-flex; }
.apercu-corps { padding: 4px 24px 26px; }
.apercu-corps h3 { margin: 22px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.apercu-corps p { color: var(--encre-2); line-height: 1.6; margin: 10px 0 0; }
.cases-x { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case-x { background: var(--doux); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.case-x span { font-size: 12px; color: var(--gris); display: block; }
.case-x b { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.encadre-x { margin-top: 20px; background: var(--violet-clair); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--encre); }
.pour-contre-x { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pour-contre-x > div { border-radius: 12px; padding: 14px; }
.pour-contre-x b { display: block; font-weight: 600; margin-bottom: 6px; }
.pour-contre-x ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--encre-2); }
.pour-x { border: 1px solid #CDE9D8; background: #F1FAF4; }
.contre-x { border: 1px solid #F3D6C7; background: #FDF5F1; }
.lien-carte-x { display: flex; gap: 12px; align-items: center; border: 1px solid var(--trait); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--encre); margin-bottom: 10px; }
.lien-carte-x:hover { border-color: #C9CEDA; }
.lien-carte-x b { display: block; font-weight: 600; font-size: 14px; }
.lien-carte-x span span, .lien-carte-x small { font-size: 13px; color: var(--gris); }
.lien-carte-x img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.rond-initiale { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--encre); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.coches-x { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
.coches-x li { display: flex; gap: 8px; }
.coches-x li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / contain; }
template.apercu-modele { display: none; }

/* ---------- Sections et grilles ---------- */
.section-x { max-width: var(--largeur); margin: 0 auto; padding: 56px max(24px, 3vw) 0; box-sizing: border-box; }
.section-x-tete { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-x-tete h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.section-x-tete a { margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--encre); }
.section-x-tete p { width: 100%; margin: 0; color: var(--gris); }
.grille-x { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tuile-photo { position: relative; display: block; height: 220px; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; background: var(--encre); }
.tuile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tuile-photo:hover img { transform: scale(1.04); }
.tuile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7)); }
.tuile-photo div { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; }
.tuile-photo b { display: block; font-size: 21px; font-weight: 700; }
.tuile-photo span { font-size: 14px; }
.carte-v { display: block; text-decoration: none; color: var(--encre); }
.carte-v-visuel { position: relative; height: 180px; border-radius: 12px; overflow: hidden; background: var(--doux); }
.carte-v-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-v-sur { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; }
.carte-v b { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.carte-v-meta { font-size: 13px; color: var(--gris); margin-top: 4px; }
.carte-v:hover b { text-decoration: underline; }
.atouts-x { background: var(--doux); border-radius: var(--rayon); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.atouts-x b { display: block; font-weight: 600; }
.atouts-x span { font-size: 14px; color: var(--gris); }

/* ---------- En-tête de page simple (pages sans bandeau) ---------- */
.page-header { padding-top: 40px; padding-bottom: 8px; }
.page-header h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--encre); }
.page-header p { color: var(--gris); }
.fil-x { font-size: 14px; color: var(--gris); padding-top: 20px; }
.fil-x a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.fil-x a:hover { color: var(--encre); }

/* ---------- Cartes de l'ancien site (pages sans maquette) ---------- */
.card { border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: none; background: #fff; }
.card:hover { box-shadow: var(--ombre-x); }
.card-title { font-weight: 600; }
.badge { border-radius: 6px; font-weight: 600; font-size: 11px; letter-spacing: .02em; }
.empty-state { border: 1px dashed var(--trait-fort); border-radius: var(--rayon); background: #fff; }
.page-num { border-radius: 999px; min-width: 40px; height: 40px; }
.page-num.active { background: var(--encre); border-color: var(--encre); }
.side-card, .settings-card, .form-card, .auth-card { border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: var(--ombre-x); }

/* ---------- Pied de page ---------- */
.nl-bas { background: #fff; }
footer.pied { margin-top: 72px; background: var(--encre); color: #C9D0DD; padding: 0; }
footer.pied .wrap.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; align-items: start; justify-content: initial; }
.pied-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; min-width: 0; }
.pied-col a { color: #C9D0DD; text-decoration: none; }
.pied-col a:hover { color: #fff; text-decoration: underline; }
.pied-titre { color: #fff; font-weight: 600; margin: 0 0 2px; }
.pied-texte { margin: 4px 0 0; max-width: 300px; line-height: 1.6; }
footer.pied .logo { color: #fff; font-size: 24px; }
.nl-bas + footer.pied { margin-top: 0; }

/* Sur téléphone, le menu fermé ne projette pas d'ombre sur le bord de l'écran */
.menu-drawer:not(.open) { box-shadow: none; }
.carte-x-titre { text-wrap: pretty; }

/* ---------- Ordinateur moyen ---------- */
@media (max-width: 1100px) {
  .tete-rubriques { gap: 18px; margin-left: 4px; }
  .tete-outils { gap: 14px; }
}

/* ---------- Tablettes et téléphones ---------- */
@media (max-width: 999px) {
  .liste-x { grid-template-columns: minmax(0, 1fr); }
  .liste-x .apercu-x { display: none; }
  .liste-x-col { max-width: none; }
  .carte-x.choisie { border-color: var(--trait); box-shadow: none; }
  footer.pied .wrap.pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  header.tete .wrap { height: 64px; }
  .tete-outils .tete-publier { display: none; }
}
@media (max-width: 599px) {
  .x-haut { padding-top: 12px; }
  .bandeau { padding: 26px 18px; min-height: 0; border-radius: 14px; }
  .bandeau-grand, .bandeau-moyen { min-height: 0; padding-top: 40px; padding-bottom: 24px; }
  .bandeau h1 { font-size: 28px; }
  .bandeau p.bandeau-sous { font-size: 15px; }
  .recherche-x { flex-direction: column; }
  .recherche-x label { flex-basis: auto; min-height: 60px; }
  .recherche-x label + label { border-left: 0; border-top: 1px solid var(--trait); }
  .recherche-x button[type="submit"] { width: calc(100% - 12px); }
  .secteurs-x { gap: 22px; }
  .carte-x { grid-template-columns: 92px minmax(0, 1fr); }
  .carte-x-visuel { min-height: 100px; }
  .section-x { padding-top: 40px; }
  .section-x-tete h2 { font-size: 22px; }
  .cases-x, .pour-contre-x, .coches-x { grid-template-columns: minmax(0, 1fr); }
  .pilules-x .pilules-compte { margin-left: 0; width: 100%; }
  footer.pied .wrap.pied-grille { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tuile-photo { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .tuile-photo img { transition: none; }
  .tuile-photo:hover img { transform: none; }
}

/* ---------- Formations : tuiles à initiales, cœur sur la carte ---------- */
.carte-x-initiales { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.carte-x { padding-right: 0; }
.carte-x > .fav-form { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.carte-x > .fav-form + * { }
.carte-x .carte-x-corps { padding-right: 56px; }
.btn-rond .coeur { width: 18px; height: 18px; fill: none; stroke: var(--encre); stroke-width: 2; }
.btn-rond.on .coeur { fill: var(--violet); stroke: var(--violet); }
.btn-rond-petit { width: 40px; height: 40px; }
.apercu-source { font-size: 13px; color: var(--gris); }
.fav-btn.btn-rond { box-shadow: none; }

/* ---------- Page Formations : cartes « type de formation » ---------- */
.section-types .gloss { margin: 0; padding: 0; background: none; border: 0; }
.section-types .gloss h2 { font-size: 26px; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.01em; }
.section-types .gloss-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; overflow: visible; }
.section-types .gloss-card { border: 1px solid var(--trait); border-radius: var(--rayon-carte); background: #fff; box-shadow: none; padding: 18px; min-height: 0; width: auto; display: flex; flex-direction: column; gap: 6px; color: var(--encre); }
.section-types .gloss-card::before, .section-types .gloss-card::after { display: none; }
.section-types .gloss-card:hover { border-color: #C9CEDA; box-shadow: var(--ombre-x); transform: none; }
.section-types .gloss-card b { font-size: 17px; font-weight: 600; color: var(--encre); }
.section-types .gloss-card span { font-size: 14px; color: var(--gris); line-height: 1.5; }
.section-types .gloss-card em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--violet-fonce); }
.section-types .gloss-plus i { display: none; }

/* ---------- Accueil ---------- */
.section-x-serre { padding-top: 36px; }
.section-x-serre .section-x-tete { margin-bottom: 0; }
.liste-x-accueil { padding-top: 8px; }
.tuile-photo-haute { height: 260px; }
.appel-x { background: var(--encre); color: #fff; border-radius: var(--rayon); padding: 36px max(24px, 4%); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.appel-x h2 { color: #fff; margin: 0; font-size: 26px; font-weight: 700; max-width: 640px; }
.appel-x p { margin: 8px 0 0; color: #C9D0DD; }
.appel-x .btn-x-plein { background: var(--jaune); color: var(--encre); }
.appel-x .btn-x-plein { transition: transform .15s ease, box-shadow .15s ease; }
.appel-x .btn-x-plein:hover { background: var(--jaune); color: var(--encre); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { .appel-x .btn-x-plein { transition: none; } .appel-x .btn-x-plein:hover { transform: none; } }

/* ---------- Fiche parcours ---------- */
.detail-x .flash { margin-top: 16px; }
.detail-x-photo { margin-top: 14px; height: 300px; border-radius: var(--rayon); overflow: hidden; position: relative; background: var(--doux); }
.detail-x-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-x-grille { max-width: var(--largeur); margin: 0 auto; padding: 28px max(24px, 3vw) 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail-x-article { min-width: 0; }
.detail-x-article .detail-title { margin: 12px 0 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--encre); font-family: 'Lexend', sans-serif; }
.detail-x-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; color: var(--gris); font-size: 14px; }
.detail-x-auteur { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); font-weight: 600; }
.detail-x-auteur > a:last-child { text-decoration: underline; text-underline-offset: 3px; }
.detail-x-auteur .avatar { width: 28px; height: 28px; font-size: 12px; border-radius: 50%; }
.detail-x-article .apercu-actions { margin-top: 18px; }
.cases-x-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 24px; }
.case-x small { display: block; font-size: 12px; color: var(--gris); margin-top: 2px; }
.detail-x-h2 { margin: 32px 0 12px; font-size: 22px; font-weight: 700; }
.detail-x-article .recit { font-size: 16px; line-height: 1.75; color: var(--encre-2); }
.detail-x-article .recit p { margin: 0 0 14px; }
.detail-x-article .avis { margin-top: 24px; }
.detail-x-article .avis-carte { border-radius: var(--rayon-carte); }
.detail-x-article .detail-actions { margin-top: 24px; border-top: 1px solid var(--trait); padding-top: 18px; display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.detail-x-article .like-btn { border-radius: 999px; border: 1px solid var(--trait-fort); padding: 8px 16px; background: #fff; min-height: 44px; }
.detail-x-article .like-btn.liked { border-color: var(--violet); background: var(--violet-clair); color: var(--violet-fonce); }
.detail-x-article .share { margin-top: 20px; background: var(--doux); border: 0; border-radius: var(--rayon-carte); padding: 18px; }
.detail-x-article .share-btn { border-radius: 999px; }
.detail-x-article .share-url { border-radius: 999px; }
.detail-x-cote { position: sticky; top: 92px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail-x-boite { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre-x); background: #fff; }
.detail-x-boite-titre { display: block; font-weight: 600; margin-bottom: 10px; font-size: 16px; }
.detail-x-boite .lien-carte-x { margin-bottom: 0; }
.detail-x-boite-appel { background: var(--violet-clair); border-color: transparent; box-shadow: none; }
.detail-x-boite-appel p { margin: 0 0 14px; color: var(--encre-2); font-size: 14px; }
.detail-x-similaires { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.detail-x-similaires h2 { font-size: 17px; font-weight: 600; margin: 6px 0 0; }
.detail-x-similaires .carte-x { grid-template-columns: 90px minmax(0, 1fr); }
.detail-x-similaires .carte-x-titre { font-size: 15px; }
.detail-x-similaires .carte-x-titre a { font-size: inherit; }
.detail-x-commentaires { grid-column: 1; min-width: 0; }
.detail-x-commentaires .comments { margin-top: 8px; padding: 0; background: none; border: 0; box-shadow: none; }
.detail-x-commentaires .comments h2 { font-size: 22px; font-weight: 700; }
.comment-form textarea { border-radius: 14px; }
@media (max-width: 999px) {
  .detail-x-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-x-cote { position: static; }
  .detail-x-photo { height: 200px; }
}

/* ---------- Fiches métier et formation : bandeau bleu nuit (photo si disponible) ---------- */
.bandeau-fiche { position: relative; isolation: isolate; overflow: hidden; background: var(--encre) !important; color: #fff; border-radius: var(--rayon); box-shadow: none; border: 0; }
.bandeau-fiche::before, .bandeau-fiche::after { display: none !important; }
.bandeau-fiche > .bandeau-fiche-photo { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; z-index: -2 !important; margin: 0 !important; border-radius: 0 !important; }
.bandeau-fiche > .bandeau-fiche-voile { position: absolute !important; inset: 0; z-index: -1 !important; background: linear-gradient(90deg, rgba(26, 43, 73, .94), rgba(26, 43, 73, .6) 80%); }
.bandeau-fiche h1, .bandeau-fiche .fdetail-etab, .bandeau-fiche .fiche-accroche { color: #fff; }
.bandeau-fiche .fdetail-lieu, .bandeau-fiche p { color: #E6E9F0; }
.bandeau-fiche .metier-secteur, .bandeau-fiche .ftag { background: var(--jaune); color: var(--encre); border: 0; }
.bandeau-fiche .ftag-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.bandeau-fiche .fd-init { color: rgba(255, 255, 255, .12); }
.bandeau-fiche .chiffres li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.bandeau-fiche .chiffres li em, .bandeau-fiche .chiffres li span { color: #C9D0DD; }
.bandeau-fiche .chiffres li strong { color: #fff; }
.bandeau-fiche .btn-fav { background: var(--violet); color: #fff; border-color: var(--violet); }
.bandeau-fiche .btn-fav.on { background: #fff; color: var(--violet-fonce); }
.bandeau-fiche .fdetail-actions a, .bandeau-fiche .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.bandeau-fiche .fdetail-actions a:hover { background: #fff; color: var(--encre); }
.bandeau-fiche a:not([class]) { color: #fff; }
.fiche .fil-x, .fdetail .fil-x { padding-bottom: 14px; }
.fiche-bloc, .fd-card, .fd-list { border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: none; }

/* ---------- Blog ---------- */
.pilule-n { font-size: 12px; color: var(--gris); font-weight: 500; }
.pilule.on .pilule-n { color: var(--violet-fonce); }
.coches-x-1 { grid-template-columns: minmax(0, 1fr); }
.bandeau-petit h1 { font-size: clamp(26px, 3vw, 36px); }

/* ---------- Grands bandeaux de l'ancien site : bleu nuit avec photo (à propos, contact, comment ça marche, connexion) ---------- */
:root { --degrade: linear-gradient(110deg, #1A2B49 0%, #24375C 100%); }
.page-hero { background: linear-gradient(90deg, rgba(26, 43, 73, .92), rgba(26, 43, 73, .55)), url("../img/photos/eleves.9d4d9ef76b74.webp") center 40% / cover no-repeat; max-width: var(--largeur); margin: 24px auto 0; border-radius: var(--rayon); box-sizing: border-box; width: calc(100% - 2 * max(24px, 3vw)); }
.page-hero::before, .page-hero::after { display: none; }
.auth-visual { background: linear-gradient(180deg, rgba(26, 43, 73, .25), rgba(26, 43, 73, .9)), url("../img/photos/lyon.c404d9b84f03.webp") center / cover no-repeat; }
.auth-visual::before, .auth-visual::after { display: none; }
.cta-band { background: var(--encre); }
.side-card-dark { background: var(--encre); }
.blog-cta { background: var(--encre); }
.fav-strip { background: var(--encre); }
.m-today { background: var(--encre); }
.page-hero h1, main .page-hero h1 { color: #fff; font-weight: 700; }
.page-hero p { color: #E6E9F0; }
.btn-submit.btn-deep { background: var(--violet); }
.btn-submit.btn-deep:hover { background: var(--violet-fonce); }

/* ---------- Profil ---------- */
.profile-cover { background: linear-gradient(90deg, rgba(26, 43, 73, .55), rgba(26, 43, 73, .2)), url("../img/photos/lyon.c404d9b84f03.webp") center 60% / cover no-repeat; max-width: var(--largeur); margin: 24px auto 0; border-radius: var(--rayon); width: calc(100% - 2 * max(24px, 3vw)); }
.profile-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.profile-head-actions form { display: inline-flex; }
.btn-deconnexion { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ---------- Accueil d'un membre connecté ---------- */
.dash-x { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.dash-x-carte { display: flex; align-items: center; gap: 14px; border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 14px 18px; color: var(--encre); text-decoration: none; background: #fff; flex-wrap: wrap; }
a.dash-x-carte:hover { border-color: #C9CEDA; box-shadow: var(--ombre-x); }
.dash-x-carte > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dash-x-carte b { font-weight: 600; }
.dash-x-carte small { font-size: 13px; color: var(--gris); }
.dash-x-carte .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.dash-x .dash-x-chiffres { flex-direction: row; gap: 16px; flex: none; font-size: 13px; color: var(--gris); }
.dash-x-chiffres b { color: var(--encre); font-size: 16px; }
.dash-x-appel { background: var(--violet-clair); border-color: transparent; }
.lien-carte-x .avatar { flex: none; }
@media (max-width: 599px) {
  .dash-x-carte { flex-direction: column; align-items: flex-start; }
  .dash-x-carte > span { flex: none; width: 100%; }
  .dash-x .dash-x-chiffres { width: auto; }
}

/* Barre de recherche : plus d'étiquette au-dessus (lue seulement par les lecteurs d'écran), tout est dans le texte gris du champ. */
.recherche-x input::placeholder { color: #63687A; font-weight: 500; }

/* ---------- Organismes de formation (accueil, page Formations) ---------- */
a

/* ---------- Organismes de formation : photo + nom ---------- */
.grille-organismes { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tuile-organisme { height: 170px; }
.tuile-organisme b { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }

/* ---------- Publier un parcours : étapes, carte du formulaire, aperçu ---------- */
.pub-page { max-width: 1180px; padding-top: 28px; padding-bottom: 56px; }
.pub-etapes { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pub-etapes li { border-top: 4px solid var(--trait); padding-top: 10px; font-size: 15px; color: var(--gris); }
.pub-etapes li.fait { border-color: var(--vert-texte, #1E7F58); color: var(--vert-texte, #1E7F58); font-weight: 600; }
.pub-etapes li.fait span::before { content: "✓ "; }
.pub-etapes li.en-cours { border-color: var(--violet); color: var(--encre); font-weight: 600; }
.pub-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pub-page:not(.pub-page--publier) .pub-grille { grid-template-columns: minmax(0, 760px); justify-content: center; }
.pub-page:not(.pub-page--publier) .pub-cote { display: none; }
.pub-carte { background: #fff; border-radius: 16px; padding: 32px; min-width: 0; }
.pub-carte .form-title { font-size: 28px; margin: 0 0 6px; color: var(--encre); }
.pub-carte .form-sub { margin: 0 0 24px; color: var(--gris); }
.pub-carte .publish-form { background: none; border: 0; padding: 0; border-radius: 0; }
.pub-page .etape-question { font-size: 17px; font-weight: 700; margin: 0 0 14px; letter-spacing: 0; }
.pub-page--publier .quiz-progression, .pub-page--publier .quiz-rail { display: none; }
.pub-page .quiz-boutons { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait); }
.pub-page .quiz-boutons .quiz-precedent { color: var(--encre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pub-page .form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait); }
.pub-cote { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.pub-boite { background: #fff; border-radius: 16px; padding: 20px; margin: 0; }
.pub-boite h2 { font-size: 15px; font-weight: 600; color: var(--gris); margin: 0 0 14px; }
.pub-apercu { border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; background: #fff; }
.pub-apercu-photo { position: relative; height: 64px; background: var(--doux); }   /* bandeau uni : plus de photo de catégorie */
.pub-apercu-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-apercu-badge { position: absolute; left: 10px; bottom: 10px; background: var(--jaune); color: var(--encre); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.pub-apercu-texte { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pub-apercu-texte b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pub-apercu-texte span { font-size: 13px; color: var(--gris); }
.pub-rassurance { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.pub-rassurance li { padding-left: 26px; position: relative; }
.pub-rassurance li::before { content: "✓"; position: absolute; left: 0; color: var(--vert-texte, #1E7F58); font-weight: 700; }
@media (max-width: 900px) {
  .pub-grille { grid-template-columns: minmax(0, 1fr); }
  .pub-cote { position: static; order: 2; }
  .pub-etapes li { font-size: 13px; }
}
@media (max-width: 600px) { .pub-carte { padding: 20px; } .pub-etapes { gap: 4px; } }
main:has(.pub-page) { background: #F4F5F8; }
.bandeau-grand > img { object-position: center 14%; }

/* ---------- Suggestions sous la barre de recherche ---------- */
.recherche-x { overflow: visible; position: relative; }
.recherche-x label { position: relative; }
.recherche-x label:first-of-type { border-radius: var(--rayon) 0 0 var(--rayon); }
@media (max-width: 700px) { .recherche-x label:first-of-type { border-radius: var(--rayon) var(--rayon) 0 0; } }
.sugg-x { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 12px 30px rgba(26, 43, 73, .18); min-width: 260px; }
.sugg-x li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 8px; font: 500 15px 'Lexend', sans-serif; color: var(--encre); cursor: pointer; }
.sugg-x li small { font-size: 12px; font-weight: 400; color: var(--gris); flex: none; }
.sugg-x li:hover, .sugg-x li[aria-selected="true"] { background: var(--doux); }
.sugg-x[hidden] { display: none; }

.bandeau:focus-within { z-index: 6; }

/* Liste des formations : cartes sans photo (texte seul) */
.carte-x.carte-x-texte { grid-template-columns: minmax(0, 1fr); }

/* Accueil : photo de randonneurs en silhouette, on garde le bas de l'image (les personnes) */
.bandeau-grand > img.photo-marche { object-position: center 100%; }

/* Publier : un tiret par question (publier_apercu.js) ; le nom de l'étape reste lisible par les lecteurs d'écran */
.pub-etapes.pub-etapes--tirets { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.pub-etapes--tirets li { padding-top: 0; height: 5px; border-top-width: 0; border-radius: 3px; background: var(--trait); font-size: 0; }
.pub-etapes--tirets li.fait { background: var(--vert-texte, #1E7F58); }
.pub-etapes--tirets li.en-cours { background: var(--violet); }
.pub-etapes--tirets li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-etapes--tirets li.fait span::before { content: none; }
@media (max-width: 600px) { .pub-etapes.pub-etapes--tirets { gap: 4px; } }

/* Connexion / inscription : tout le texte posé sur la photo reste blanc */
.auth-visual, .auth-visual h2, .auth-visual .reason-item .title, .auth-visual .quote-block .q { color: #fff; }
.auth-visual .reason-item .desc, .auth-visual .quote-block cite { color: #E6E9F0; }

/* Petits écrans (≈425px) : l'icône de catégorie reste une petite tuile carrée, elle ne s'étire plus sur toute la hauteur de la carte */
@media (max-width: 480px) {
  .carte-x, .detail-x-similaires .carte-x { grid-template-columns: 76px minmax(0, 1fr); }
  .carte-x-visuel { min-height: 0; background: transparent; padding: 14px 0 0 14px; align-self: start; }
  .carte-x-tuile { position: static; width: 52px; height: 52px; border-radius: 14px; font-size: 24px; }
  .carte-x-tuile svg { width: 26px; height: 26px; }
}

/* Pied de page en petit format : logo, texte et liens bien centrés ensemble */
@media (max-width: 860px) {
  .pied-col { align-items: center; text-align: center; }
  .pied-texte { margin-left: auto; margin-right: auto; }
}

/* Filtres (blog, parcours) en petit format : une seule ligne qu'on fait défiler, comme les catégories de métiers */
@media (max-width: 860px) {
  .pilules-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .pilules-x > *, .pilules-x .pilule-select { flex: none; white-space: nowrap; }
  .pilules-x .pilules-compte { margin-left: 0; width: auto; }
}

/* Page parcours en petit format : la rangée des secteurs passe sous les filtres (Tous, Reconversion…) */
@media (max-width: 860px) {
  .x-haut { display: flex; flex-direction: column; }
  .x-haut > .bandeau { order: 0; }
  .x-haut > .pilules-x { order: 1; }
  .x-haut > .secteurs-x-parcours { order: 2; margin-top: 18px; }
}

/* Page parcours en petit format : le tri (« Trier par … ») est masqué */
@media (max-width: 860px) { .pilules-x .pilules-tri { display: none; } }

/* Parcours en petit format : seuls Tous, Reconversion, Réorientation, Études et Métier restent dans la ligne de filtres */
@media (max-width: 860px) {
  .pilules-x .pilule-select, .pilules-x .lien-reset, .pilules-x .pilules-compte { display: none; }
}

/* Icône en haut à droite des cartes métier : teinte plus profonde, assortie à la couleur de la carte */
.m-c1 .m-em .ico-secteur { color: var(--violet-fonce); }
.m-c2 .m-em .ico-secteur { color: #9A6400; }
.m-c3 .m-em .ico-secteur { color: var(--vert-texte, #1E7F58); }
.m-c4 .m-em .ico-secteur { color: #9B1F57; }
.m-c5 .m-em .ico-secteur { color: #1F4E8A; }

/* Accueil : cartes « type de formation » colorées, comme sur la page Formations */
.fc-t0 { --fc-bg: #ECEBFF; } .fc-t1 { --fc-bg: #FFF1D3; } .fc-t2 { --fc-bg: #E3F7EE; }
.fc-t3 { --fc-bg: #FFE6EE; } .fc-t4 { --fc-bg: #E5EEFF; } .fc-t5 { --fc-bg: #F3E8FF; }
.carte-type { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 20px; min-height: 190px; border-radius: 22px; background: var(--fc-bg, #ECEBFF); color: var(--encre); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.carte-type:hover, .carte-type:focus-visible { transform: translateY(-4px); box-shadow: var(--ombre-x); }
.carte-type b { font-size: 19px; font-weight: 600; color: var(--encre); }
.carte-type span { font-size: 14px; line-height: 1.55; color: var(--gris); }
.carte-type em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--violet-fonce); }
@media (max-width: 560px) { .carte-type { min-height: 0; } }

/* Accueil : les parcours récents côte à côte (2 par ligne), sans panneau d'aperçu à droite ; un clic ouvre le parcours */
.parcours-accueil { max-width: var(--largeur); margin: 0 auto; padding: 8px max(24px, 3vw) 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.parcours-accueil-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .parcours-accueil-grille { grid-template-columns: minmax(0, 1fr); } }
/* Tablette : cartes plus compactes (pas de bouton favori ici, donc pas de marge réservée à droite) */
.parcours-accueil-grille .carte-x .carte-x-corps { padding-right: 16px; }
@media (max-width: 1100px) {
  .parcours-accueil-grille .carte-x { grid-template-columns: 84px minmax(0, 1fr); }
  .parcours-accueil-grille .carte-x-visuel { min-height: 0; }
  .parcours-accueil-grille .carte-x-corps { padding: 12px 14px; }
  .parcours-accueil-grille .carte-x-titre { font-size: 15px; }
}

/* Barre de recherche : séparateur entre les deux champs plus visible */
.recherche-x label + label { border-left: 2px solid #C9CEDA; }
@media (max-width: 599px) { .recherche-x label + label { border-left: 0; border-top: 2px solid #C9CEDA; } }

/* Accueil : table de réunion vue du dessus, cadrée sur la droite pour rester visible à côté du texte */
.bandeau-grand > picture { display: contents; }
.bandeau > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: inherit; }
.bandeau-grand > picture > img.photo-etude { object-position: 70% 40%; }
@media (max-width: 599px) { .bandeau-grand > picture > img.photo-etude { object-position: center 40%; } }   /* téléphone : autre photo, en hauteur */

/* Témoignages : atelier de poterie, visages dans le cadre */
.bandeau > img.photo-poterie { object-position: center 30%; }

/* Tablette : bandeau d'accueil de la même hauteur que celui des autres pages, et barre de recherche
   assez large pour que « Quel métier ou quelle formation ? » ne soit plus coupé */
@media (min-width: 600px) and (max-width: 1100px) {
  .bandeau.bandeau-grand { min-height: 300px; }
  .bandeau-grand .recherche-x { margin-top: 18px; }
  .recherche-x label { padding: 0 12px; gap: 8px; }
  .recherche-x svg { width: 18px; height: 18px; }
  .recherche-x input { font-size: 15px; }
  .recherche-x input::placeholder { font-size: 14px; }
  .recherche-x label:first-of-type { flex: 7 1 0; }
  .recherche-x label + label { flex: 4 1 0; }
  .recherche-x button[type="submit"] { padding: 0 14px; margin: 5px; font-size: 14px; }
}
/* Petites tablettes (moins de 760 px) : le champ « métier ou formation » prend toute la largeur, ville et bouton dessous */
@media (min-width: 600px) and (max-width: 759px) {
  .recherche-x label:first-of-type { flex: 1 1 100%; }
  .recherche-x label:first-of-type + label { border-left: 0; border-top: 2px solid #C9CEDA; }
}

/* Accueil, tablette : la pastille de couleur à gauche des témoignages ne s'étire plus sur toute la hauteur de la carte,
   elle devient un petit carré arrondi en haut à gauche (comme sur téléphone) */
@media (min-width: 481px) and (max-width: 1100px) {
  .parcours-accueil-grille .carte-x { grid-template-columns: 78px minmax(0, 1fr); }
  .parcours-accueil-grille .carte-x-visuel { background: transparent; padding: 14px 0 0 14px; align-self: start; min-height: 0; }
  .parcours-accueil-grille .carte-x-tuile { position: static; width: 52px; height: 52px; border-radius: 14px; font-size: 24px; }
  .parcours-accueil-grille .carte-x-tuile svg { width: 26px; height: 26px; }
  .parcours-accueil-grille .carte-x-visuel img { position: static; width: 52px; height: 52px; border-radius: 14px; }
}

/* Étiquette de formation des cartes : texte complet, à la ligne si besoin (plus de coupure) */
.carte-x-etiquettes .etiquette { max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }

/* Accueil : catégories de témoignages. Style « bulle » sombre, volontairement différent des cartes pastel de Formations / Écoles. */
.carte-temoin { --ct: #FFB938; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 20px; min-height: 190px; border-radius: 24px 24px 24px 6px; background: var(--encre); color: #fff; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.carte-temoin:hover, .carte-temoin:focus-visible { transform: translateY(-4px); box-shadow: var(--ombre-x); }
.carte-temoin-guill { font: 700 76px/0.8 Georgia, 'Times New Roman', serif; color: var(--ct); height: 34px; margin-top: 4px; font-style: normal; }
.carte-temoin b { font-size: 19px; font-weight: 600; color: #fff; }
.carte-temoin span { font-size: 14px; line-height: 1.55; color: #C9D0DE; }
.carte-temoin em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--ct); }
.carte-temoin.ct-1 { --ct: #FFB938; } .carte-temoin.ct-4 { --ct: #8FB4FF; } .carte-temoin.ct-2 { --ct: #5FD6A0; } .carte-temoin.ct-5 { --ct: #C79BFF; }
@media (max-width: 560px) { .carte-temoin { min-height: 0; } }
