@import url("../fonts/fonts.css");

/* ============================================================================
   intermittent.fr — design system
   Flat design « pop » : aucune ombre floue, aucun dégradé décoratif.
   Les ombres sont pleines (box-shadow sans flou), les rayons généreux.
   ========================================================================== */

:root {
  /* Encres et fonds */
  --ink:            #17123A;
  --ink-2:          #2A2356;
  --ink-admin:      #0F0C26;
  --cream:          #FFF7ED;
  --white:          #FFFFFF;
  --rule:           #EAE1D4;

  /* Accents */
  --coral:          #FF4B3E;
  /*
   * Variante assombrie, réservée aux aplats portant du texte blanc.
   * Le corail de la charte ne donne que 3,32:1 avec du blanc, sous les 4,5
   * exigés par le handoff ; celle-ci donne 4,86:1 pour une différence à peine
   * perceptible. Le #FF4B3E reste utilisé partout ailleurs : ombres portées,
   * bordures, étiquette « .fr », points d'état, filets de survol.
   */
  --coral-solid:    #D92B21;
  --yellow:         #FFC531;
  --violet:         #6D4AFF;
  --teal:           #0FBFA4;
  --teal-ink:       #06231E;
  --pink:           #FF7AB8;

  /* Textes */
  --text:           #4A4470;
  --text-2:         #6B6590;
  --meta:           #7A6F5E;   /* 4,64:1 sur crème — ne pas éclaircir */

  /* Emplacements publicitaires */
  --ad-bg:          #FDF0DA;
  --ad-line:        #C9BFAE;

  /* États */
  --ok-bg:          #E4F7F2;  --ok-fg:   #0A7A68;
  --wait-bg:        #FFF1DC;  --wait-fg: #8A6B1F;
  --err-bg:         #FFE7E4;  --err-fg:  #B4291E;

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Structure */
  --container: 1240px;
  --gutter: 24px;
  --card-border: 2.5px solid var(--ink);
  --card-shadow: 5px 6px 0 var(--ink);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ------------------------------------------------------------------ reset */

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

/* Un display: d'auteur l'emporte sur la feuille du navigateur : sans ça,
   [hidden] ne masque pas les éléments en flex/grid (panneau Régie, pop-up). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 132px;   /* place réservée à la barre CTA fixe */
}

body.is-admin { background: var(--ink-admin); color: #fff; padding-bottom: 40px; }

p, h1, h2, h3, h4 { text-wrap: pretty; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
/*
 * Le survol générique ne doit pas repeindre les composants qui fixent déjà
 * leur propre couleur. `a:hover` a une spécificité de (0,1,1) et l'emportait
 * sur `.btn-coral` (0,1,0) : un bouton-lien passait en encre au survol, donc
 * en encre sur encre — invisible — sur les boutons dont le fond devient sombre.
 */
a:not(.btn):not(.tag):not(.chip):not(.card-link):hover { color: var(--ink); }
::selection { background: var(--yellow); color: var(--ink); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* -------------------------------------------------------------- keyframes */

@keyframes haloCoral  { 0%,100% { box-shadow: 0 0 0 0 rgba(255,75,62,.55) }  50% { box-shadow: 0 0 0 16px rgba(255,75,62,0) } }
@keyframes haloViolet { 0%,100% { box-shadow: 0 0 0 0 rgba(109,74,255,.55) } 50% { box-shadow: 0 0 0 16px rgba(109,74,255,0) } }
@keyframes floaty  { 0%,100% { transform: translateY(0) }      50% { transform: translateY(-10px) } }
@keyframes popIn   { from { opacity: 0; transform: translateY(16px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(100%) } to { opacity: 1; transform: none } }
/* Variante pour un élément déjà centré horizontalement : le décalage est préservé. */
@keyframes slideUpCentered { from { opacity: 0; transform: translate(-50%, 100%) } to { opacity: 1; transform: translate(-50%, 0) } }
@keyframes blink   { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
@keyframes ticker  { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes wobble  { 0%,100% { transform: rotate(12deg) } 50% { transform: rotate(-8deg) translateY(-8px) } }
@keyframes sway    { 0%,100% { transform: rotate(-9deg) } 50% { transform: rotate(9deg) } }

/* --------------------------------------------------------------- structure */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 76px; }
.section:last-of-type { padding-bottom: 20px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; max-width: 560px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 86px); line-height: .95; letter-spacing: -.025em; }
h1.h1-sub { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: 16px; letter-spacing: -.01em; }

.lede { font-size: 17.5px; line-height: 1.6; color: var(--text); }
.meta { font-size: 12.5px; color: var(--meta); }
.muted { color: var(--text-2); }

/* ----------------------------------------------------------------- boutons */
/* Survol : un dégradé de 200 % de large dont on anime la position, donc la
   nouvelle couleur entre par la gauche. Un seul élément, aucun pseudo-élément. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 999px;
  /* Un <button> a un fond gris par défaut : sans ça il transparaît sous la
     moitié transparente du dégradé des variantes fantômes. */
  background-color: transparent;
  padding: 13px 24px; min-height: 44px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position .5s var(--ease), color .35s ease, transform .3s ease;
}
.btn:hover { background-position: 0% 0; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/*
 * Lisibilité au survol.
 *
 * Le fond glisse en 500 ms ; si la couleur du texte se fond en 350 ms, elle
 * arrive avant lui et on obtient, au milieu du geste, du blanc sur jaune
 * (1,58:1) ou de l'encre sur encre (1:1). Deux règles évitent ça :
 *
 *  1. Quand une seule couleur de texte tient sur les deux fonds, on ne
 *     l'anime pas du tout (jaune, blanc, violet).
 *  2. Quand le basculement est inévitable (corail ↔ encre), la couleur change
 *     d'un coup à mi-parcours, au moment où la frontière du dégradé passe
 *     sous le texte — jamais en fondu.
 */
.btn-swap {
  transition: background-position .5s var(--ease), transform .3s ease, color 0s linear .25s;
}

.btn-coral  { color: #fff;       background-image: linear-gradient(90deg, var(--ink) 0 50%, var(--coral-solid) 50% 100%); }
.btn-ink    { color: #fff;       background-image: linear-gradient(90deg, var(--coral-solid) 0 50%, var(--ink) 50% 100%); }
.btn-violet { color: #fff;       background-image: linear-gradient(90deg, var(--ink) 0 50%, var(--violet) 50% 100%); }
.btn-white  { color: var(--ink); background-image: linear-gradient(90deg, var(--yellow) 0 50%, var(--white) 50% 100%); }

/* Jaune → corail : l'encre tient sur les deux (11,22 et 5,34), donc pas de
   changement de couleur du tout. C'était la variante la plus illisible. */
.btn-yellow { color: var(--ink); background-image: linear-gradient(90deg, var(--coral) 0 50%, var(--yellow) 50% 100%); }

/* Corail → encre : le texte doit passer de l'encre au blanc, d'un coup. */
.btn-ink:hover {
  color: #fff;
  transition: background-position .5s var(--ease), transform .3s ease, color 0s linear .25s;
}
.btn-ink { transition: background-position .5s var(--ease), transform .3s ease, color 0s linear .25s; }

.btn-ghost {
  border: 1.5px solid var(--ink); color: var(--ink);
  background-image: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position .5s var(--ease), transform .3s ease, color 0s linear .25s;
}
.btn-ghost:hover { color: #fff; }

.btn-ghost-light {
  border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  background-image: linear-gradient(90deg, var(--white) 0 50%, transparent 50% 100%);
  transition: background-position .5s var(--ease), transform .3s ease, color 0s linear .25s;
}
.btn-ghost-light:hover { color: var(--ink); }

.btn-sm { padding: 9px 17px; font-size: 13.5px; min-height: 38px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* Halo alterné de la barre CTA : les deux boutons pulsent en opposition. */
.halo-cv  { animation: haloCoral  3.6s ease-in-out infinite; }
.halo-job { animation: haloViolet 3.6s ease-in-out infinite 1.8s; }

/* ------------------------------------------------------------------ cartes */

.card {
  background: var(--white);
  border: var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 22px;
}
.card-lg { border-radius: 26px; padding: 28px; }
.card-sm { border-radius: 16px; padding: 16px; box-shadow: 4px 5px 0 var(--ink); }

/* Le survol incliné ne s'applique qu'aux cartes cliquables. */
.card-link { display: block; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card-link:hover {
  color: inherit;
  transform: translate(-3px, -7px) rotate(-1.2deg);
  box-shadow: 10px 13px 0 var(--yellow);
}
.card-link:focus-visible { transform: translate(-3px, -7px) rotate(-1.2deg); box-shadow: 10px 13px 0 var(--yellow); }

.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-yellow { background: var(--yellow); border-color: var(--ink); }

/* ------------------------------------------------ étiquettes et pastilles */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; min-width: 0;
}
.tag-soft   { background: var(--cream); color: var(--text); border: 1px solid var(--rule); }
.tag-ink    { background: var(--ink); color: #fff; }
.tag-coral  { background: var(--coral-solid); color: #fff; }
.tag-violet { background: var(--violet); color: #fff; }
.tag-teal   { background: var(--teal); color: var(--teal-ink); }
.tag-pink   { background: var(--pink); color: var(--ink); }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; max-width: 100%; }

/* Offre venue d'une source externe : reconnaissable sans casser la grille.
   Bordure en tireté plutôt qu'en plein, et mention de provenance. */
.tag-external {
  background: transparent; color: var(--violet);
  border: 1.5px solid var(--violet); font-weight: 800;
}
.job-row.is-external { border-style: dashed; box-shadow: 4px 5px 0 rgba(23, 18, 58, .35); }
.job-row.is-external:hover { box-shadow: 9px 12px 0 var(--violet); }
.job-row.is-external .job-title::after {
  content: '↗'; margin-left: 7px; font-size: .8em; color: var(--violet); font-weight: 700;
}

.external-note {
  display: flex; align-items: center; gap: 9px;
  background: var(--cream); border: 1px solid var(--rule); border-radius: 14px;
  padding: 11px 15px; font-size: 13px; color: var(--text-2); margin-top: 14px;
}

.pill-status {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal); color: var(--teal-ink);
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800;
  transform: rotate(-1.5deg);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.8s ease-in-out infinite; flex: none; }

/* Badges autocollants du hero */
.sticker {
  font-size: 13px; font-weight: 800; padding: 8px 15px; border-radius: 12px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35);
}
.sticker-coral  { background: var(--coral-solid);  color: #fff; transform: rotate(-2.5deg); }
.sticker-white  { background: var(--white);  color: var(--ink); transform: rotate(1.8deg); }
.sticker-violet { background: var(--violet); color: #fff; transform: rotate(-1.2deg); }

/* Tuile d'initiale colorée, ou vraie image quand la fiche en a une. */
.tile-media { overflow: hidden; padding: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Un logo se voit en entier : on ne le rogne pas comme un portrait. */
.tile-logo img { object-fit: contain; background: #fff; padding: 3px; }
/* Le conteneur n'existe que pour porter la classe : il ne doit pas devenir
   lui-même un élément flex, sinon il casse l'alignement de la carte. */
.tile-logo { display: contents; }

/* Tuile d'initiale colorée */
.tile {
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex: none;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
}
.tile-40 { width: 40px; height: 40px; font-size: 16px; }
.tile-46 { width: 46px; height: 46px; font-size: 18px; border-radius: 14px; }
.tile-48 { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; }
.tile-50 { width: 50px; height: 50px; font-size: 19px; border-radius: 14px; }
.tile-60 { width: 60px; height: 60px; font-size: 23px; border-radius: 16px; }
.tile-64 { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
.tile-92 { width: 92px; height: 92px; font-size: 34px; border-radius: 26px; }

/* ------------------------------------------------------------ formulaires */

.field { display: block; margin-bottom: 4px; }
.field > label, .label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 7px; color: var(--ink);
}
.label .opt { font-weight: 500; color: var(--meta); }

.input, .select, .textarea {
  width: 100%;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 3px 4px 0 var(--coral);
}
.form-violet .input:focus, .form-violet .select:focus, .form-violet .textarea:focus {
  border-color: var(--violet); box-shadow: 3px 4px 0 var(--violet);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err-fg); }

.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--coral); border-radius: 6px; }

.field-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--err-fg); }

.notice { border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.notice-ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.notice-wait { background: var(--wait-bg); color: var(--wait-fg); }
.notice-err  { background: var(--err-bg);  color: var(--err-fg); }

/* Nuage de compétences : le fond jaune glisse de la gauche au survol. */
.chip {
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600;
  background-image: linear-gradient(90deg, var(--yellow) 0 50%, transparent 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position .45s var(--ease), color .3s ease;
}
.chip:hover { background-position: 0% 0; }
.chip[aria-pressed="true"], .chip.is-on { background-position: 0% 0; border-color: var(--ink); }

/* Zone de dépôt de fichier */
.dropzone {
  display: block;   /* c'est un <label> : sans ça, le cadre pointillé se fragmente */
  position: relative; cursor: pointer;
  border: 2.5px dashed var(--ink); border-radius: 18px;
  padding: 30px 22px; text-align: center; background: var(--white);
  transition: border-color .3s ease, background .3s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--coral); background: var(--cream); }
.dropzone input[type="file"] { position: absolute; opacity: 0; width: .1px; height: .1px; }
.dropzone .dz-name { font-weight: 700; margin-top: 10px; }

/* Frise d'étapes */
.steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 0; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex: none;
  background: var(--white); border: 2.5px solid var(--ink); color: var(--ink);
  transition: background .3s ease, color .3s ease;
}
.step.is-done .step-num, .step.is-current .step-num { background: var(--coral-solid); color: #fff; border-color: var(--coral-solid); }
.step-label { font-size: 13.5px; font-weight: 700; }
.step-bar { flex: 1 1 24px; min-width: 18px; height: 2.5px; background: var(--rule); }

/* ------------------------------------------- autocomplétion des lieux */

.ac-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.ac-wrap > input { width: 100%; }

.ac-list {
  position: absolute; top: calc(100% + 8px); left: -10px; right: -10px; z-index: 40;
  margin: 0; padding: 6px; list-style: none;
  background: var(--white);
  border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 6px 0 var(--ink);
  max-height: 290px; overflow-y: auto;
  animation: popIn .18s var(--ease) both;
}
.ac-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.ac-list li.is-active, .ac-list li:hover { background: var(--yellow); }
.ac-list .ac-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-list .ac-count {
  font-size: 11px; font-weight: 800; color: var(--meta);
  background: var(--cream); border-radius: 999px; padding: 2px 8px; flex: none;
}
/* Une région se distingue d'une ville d'un coup d'œil. */
.ac-list li.is-region .ac-name::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 2px; margin-right: 8px;
  background: var(--teal);
}

/* ------------------------------------------------------------- révélation */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =========================================================== en-tête */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 247, 237, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}

/* Logo purement typographique : « intermittent » + étiquette « .fr » inclinée,
   alignée sur la ligne de base des lettres. */
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 36px;
  letter-spacing: -.04em; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.logo:hover { color: var(--ink); }
.logo .tld {
  display: inline-block;
  background: var(--coral); color: #fff;
  font-size: 15px; letter-spacing: -.01em;
  padding: 3px 7px 4px; border-radius: 8px;
  transform-origin: 0 100%; transform: rotate(-7deg);
  transition: transform .4s var(--ease-back);
}
.logo:hover .tld { transform: rotate(4deg); }
.logo-sm { font-size: 26px; }
.logo-sm .tld { font-size: 11px; padding: 2px 5px 3px; border-radius: 6px; }
.logo-light { color: #fff; }
.logo-light .tld { background: var(--yellow); color: var(--ink); }

.site-nav { display: flex; gap: 26px; flex: 1; }
.nav-login { display: none; }   /* doublon du bouton d'en-tête, visible seulement en menu déplié */
.site-nav.is-open .nav-login { display: block; }
/* Filet qui se déploie de gauche à droite au survol. */
.site-nav a, .footer-col a {
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: left bottom;
  transition: background-size .35s var(--ease), color .3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule); background: var(--white);
  border-radius: 999px; padding: 7px 13px;
  font-size: 13px; font-weight: 700; min-height: 44px;
  transition: border-color .25s ease, transform .2s ease;
}
.lang-btn:hover { border-color: var(--ink); transform: translateY(-1px); }

.lang-menu {
  position: absolute; top: 46px; right: 0; width: 220px; z-index: 5;
  background: var(--white); border: 1px solid var(--rule); border-radius: 16px;
  padding: 8px; box-shadow: 5px 6px 0 var(--ink);
  animation: popIn .25s var(--ease) both;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 10px; padding: 9px 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: background .2s ease;
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--cream); }
.lang-menu .code { font-size: 11px; color: var(--text-2); font-weight: 700; }
.lang-menu .note { padding: 9px 11px 4px; font-size: 11px; color: var(--text-2); line-height: 1.5; }

.translated-banner {
  background: var(--yellow); color: var(--ink);
  padding: 9px var(--gutter); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.translated-banner .soft { font-weight: 400; }
.translated-banner a { color: var(--ink); text-decoration: underline; }

/* ============================================================== le hero */

.hero {
  background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
  padding: 118px 0 96px; margin-top: 22px;
}
.hero-catwalk { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--ink-admin); border-bottom: 3px solid var(--ink-2); }
.hero-rig {
  position: absolute; top: 14px; left: 0; right: 0;
  display: flex; justify-content: space-around; padding: 0 4%;
  pointer-events: none;
}
.spot { display: flex; flex-direction: column; align-items: center; transform-origin: top center; }
.spot-rod  { width: 5px; background: var(--ink-2); }
.spot-body {
  width: 44px; height: 30px; background: var(--ink-2);
  border-radius: 6px 6px 14px 14px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px;
}
.spot-lens { width: 26px; height: 8px; border-radius: 3px; }
.spot-beam { clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }

.spot-1 { animation: sway 5.5s ease-in-out infinite; }
.spot-2 { animation: sway 6.5s ease-in-out infinite 1.1s; }
.spot-3 { animation: sway 6s   ease-in-out infinite .6s; }
.spot-4 { animation: sway 7s   ease-in-out infinite 1.7s; }

.hero-inner { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); position: relative; text-align: center; }
.hero h1 { margin: 24px 0 18px; }
.hero h1 .highlight {
  display: inline-block; background: var(--yellow); color: var(--ink);
  padding: 2px 18px 8px; border-radius: 16px;
  transform: rotate(-1.8deg); margin-top: 8px;
}
.hero-lede { margin: 0 auto 30px; max-width: 580px; font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.78); }
.hero-stickers { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.searchbar {
  background: var(--white); border-radius: 22px; padding: 10px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  box-shadow: 7px 8px 0 var(--coral);
  max-width: 780px; margin: 0 auto;
}
.searchbar .sb-field { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.searchbar input {
  border: none; outline: none; background: transparent;
  font-size: 15px; width: 100%; padding: 14px 0; color: var(--ink);
}
.searchbar .sb-sep { width: 1px; height: 28px; background: var(--rule); }
.searchbar .btn { border-radius: 16px; padding: 15px 28px; }

.hero-cats { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-cats a {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 14px;
  background-image: linear-gradient(90deg, var(--yellow) 0 50%, transparent 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  /* Même règle que les boutons : bascule nette à mi-parcours, sinon on lit du
     blanc sur jaune pendant le glissement. */
  transition: background-position .45s var(--ease), color 0s linear .22s;
}
.hero-cats a:hover { background-position: 0% 0; color: var(--ink); }

/* En-tête sombre des pages intérieures */
.page-head {
  background: var(--ink); color: #fff;
  border-radius: 28px; padding: 44px 34px;
  margin-top: 26px;
}
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,.76); margin: 12px 0 0; max-width: 620px; }

/* ------------------------------------------------------- bandeau défilant */

.ticker { background: var(--yellow); overflow: hidden; padding: 13px 0; }
.ticker-track {
  display: flex; gap: 34px; width: max-content;
  animation: ticker 26s linear infinite;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); white-space: nowrap;
}

/* Bandeau de chiffres, repris du site d'origine. */
.stats-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-top: 44px;
}
.stat {
  background: var(--white); border: var(--card-border); border-radius: 20px;
  box-shadow: var(--card-shadow); padding: 22px; text-align: center;
}
.stat-n {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 48px); line-height: 1; letter-spacing: -.03em;
}
.stat-l { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--meta); }

/* ------------------------------------------------------------- grilles */

.grid-families { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid-jobs     { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid-cv       { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grid-employers{ display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 16px; }
.grid-steps    { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.family-card { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 18px; }
.family-card .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.family-card .count { font-size: 12.5px; color: var(--meta); }

/* Les cartes sont des <a> : leurs sous-éléments sont des <span> qu'il faut
   repasser en bloc pour retrouver le flux vertical. */
.job-card .company, .job-card .age, .job-card .job-title, .job-card .job-foot,
.job-row .job-body, .job-row .job-title, .job-row .job-sub,
.cv-card .cv-name, .cv-card .cv-role, .cv-card .cv-meta,
.employer-card .name, .employer-card .sub,
.family-card .name, .family-card .count { display: block; }

/* Carte d'offre */
.job-card { display: flex; flex-direction: column; gap: 12px; height: 100%; min-width: 0; overflow: hidden; }
.job-card .job-top { display: flex; align-items: center; gap: 11px; }
.job-card .company { font-size: 13px; font-weight: 700; line-height: 1.3; }
.job-card .age {
  font-size: 11.5px; color: var(--meta);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card .job-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.job-card .job-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--meta); font-weight: 600;
}

/* Ligne d'offre (page liste) */
.job-row { display: flex; gap: 15px; align-items: flex-start; }
.job-row .job-body { flex: 1; min-width: 0; }
.job-row .job-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.job-row .job-sub { font-size: 13.5px; color: var(--text-2); margin: 3px 0 10px; }
.job-row .job-aside { text-align: right; flex: none; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.job-row .job-pay { font-weight: 800; font-size: 14px; }

/* Carte de CV */
.cv-card { min-width: 0; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; }
.cv-card .cv-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.cv-card .cv-role { font-size: 13.5px; color: var(--text); font-weight: 600; }
.cv-card .cv-meta { font-size: 12px; color: var(--meta); }
.cv-card .tag-row { justify-content: center; margin-top: 4px; }

/* Carte employeur */
/* Nom et baseline occupent toute la largeur ; le compteur passe en pied de
   carte plutôt que de se disputer la place avec un nom long. */
.employer-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.employer-card .employer-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.employer-card .employer-id { flex: 1; min-width: 0; }
.employer-card .employer-foot {
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--rule);
  display: flex;
}
.employer-card .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.employer-card .sub {
  font-size: 12.5px; color: var(--meta);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------ « comment ça marche » */

.tabs { display: inline-flex; gap: 4px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 5px; }
.tabs a, .tabs button {
  border: none; background: transparent; color: var(--ink);
  border-radius: 999px; padding: 9px 20px;
  font-size: 14px; font-weight: 700;
  transition: background .28s ease, color .28s ease;
}
.tabs a[aria-selected="true"], .tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.step-card { animation: popIn .42s var(--ease) both; }
.step-card:nth-child(2) { animation-delay: .07s; }
.step-card:nth-child(3) { animation-delay: .14s; }
.step-card .n {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: var(--coral); line-height: 1; margin-bottom: 10px;
}
.step-card p { margin: 8px 0 0; color: var(--text); font-size: 14.5px; }

/* ----------------------------------------------------- liste et filtres */

.layout-list { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 26px; }
.filters { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.filter-card h3 { font-size: 15px; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 9px; }
.filter-list .check { font-size: 13.5px; }
.filter-list .check > span:first-of-type { flex: 1; min-width: 0; }
.filter-list .n { margin-left: auto; font-size: 11.5px; color: var(--meta); font-weight: 700; }

.filter-bar {
  background: var(--white); border-radius: 22px; padding: 10px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  box-shadow: 5px 6px 0 var(--coral); margin-top: 22px;
}
.filter-bar .fb-field { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.filter-bar input { border: none; outline: none; background: transparent; font-size: 15px; width: 100%; padding: 13px 0; }
.filter-bar .btn { border-radius: 16px; }

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.result-count { font-weight: 700; font-size: 15px; }
.result-list { display: flex; flex-direction: column; gap: 14px; }

.pagination { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 700; color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.pagination a:hover { background: var(--yellow); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; }
.pagination .is-off { opacity: .35; pointer-events: none; }

.empty { text-align: center; padding: 50px 20px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-2); margin: 0 0 18px; }

/* ------------------------------------------------- détail offre / profil */

.layout-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 22px; }
.layout-detail .detail-main { grid-column: span 2; min-width: 0; }
.detail-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 16px; }

.detail-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.detail-head .company { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }

.prose { font-size: 16px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 22px; color: var(--ink); margin: 30px 0 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 24px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.9; }
.prose li { margin-bottom: 4px; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--yellow); background: var(--white); border-radius: 0 12px 12px 0; }

.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 26px; }
.back-link:hover { color: var(--coral); }

.timeline { display: flex; flex-direction: column; }
.timeline-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .period { font-size: 13px; font-weight: 700; color: var(--meta); }
.timeline-row .role { font-weight: 700; font-size: 15px; }
.timeline-row .org { font-size: 13.5px; color: var(--text-2); }
.timeline-row .notes { font-size: 13.5px; color: var(--text); margin-top: 5px; line-height: 1.6; }

/* Bandeau de profil */
.profile-head {
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: 34px; margin-top: 26px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.profile-head h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.profile-head .role { font-size: 16px; color: rgba(255,255,255,.8); margin-top: 6px; }
.profile-head .profile-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ==================================================== barre CTA fixe */

.cta-bar {
  position: fixed; left: 50%; bottom: 0; z-index: 70;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 24px));
  background: var(--white);
  border: var(--card-border); border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  animation: slideUpCentered .6s var(--ease) both;
}
.cta-bar .cta-note {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.cta-bar .cta-note .dot { background: var(--coral); }
.cta-bar .cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Bandeau CTA de bas de page (bloc, pas la barre fixe) */
.cta-banner {
  background: var(--ink); color: #fff; border-radius: 30px;
  padding: 44px 34px; text-align: center; margin-top: 76px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.72); margin: 12px 0 24px; }
.cta-banner .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================= assistant IA « Régie » */

/*
 * Le lanceur s'aligne sur la ligne des boutons de la barre CTA dès qu'il y a
 * la place à droite d'elle. En dessous, la barre occupe toute la largeur et il
 * repasse au-dessus pour ne jamais la chevaucher.
 *
 * Seuil : la barre fait au plus 880 px et reste centrée ; le lanceur mesure
 * ~120 px et vit à 20 px du bord. Il faut donc 50vw > 580px, soit 1160 px.
 */
.regie { position: fixed; right: 20px; bottom: 104px; z-index: 75; }
.is-admin .regie { bottom: 22px; }

@media (min-width: 1180px) {
  .regie { bottom: 15px; }   /* centre du lanceur aligné sur celui des boutons */
}

.regie-launcher {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px; padding: 9px 18px 9px 9px;
  font-size: 14px; font-weight: 700;
  box-shadow: 4px 5px 0 var(--yellow);
  background-image: linear-gradient(90deg, var(--coral-solid) 0 50%, var(--ink) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position .5s var(--ease), transform .3s ease;
}
.regie-launcher:hover { background-position: 0% 0; transform: translateY(-2px); }
.regie-avatar {
  width: 32px; height: 32px; border-radius: 10px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; flex: none;
}

.regie-panel {
  width: 340px; max-width: calc(100vw - 40px);
  background: var(--cream);
  border: var(--card-border); border-radius: 20px;
  overflow: hidden; box-shadow: var(--card-shadow);
  animation: popIn .3s var(--ease) both;
  display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 160px));
}
.regie-head {
  background: var(--ink); color: #fff; padding: 13px 15px;
  display: flex; align-items: center; gap: 11px;
}
.regie-head .who { flex: 1; min-width: 0; }
.regie-head .name { font-weight: 800; font-size: 14.5px; }
.regie-head .sub { font-size: 11px; color: rgba(255,255,255,.62); }
.regie-close { background: none; border: none; color: #fff; padding: 4px; border-radius: 8px; line-height: 0; }
.regie-close:hover { background: rgba(255,255,255,.12); }

.regie-thread { padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.bubble { max-width: 86%; padding: 10px 13px; font-size: 13.5px; line-height: 1.55; }
.bubble-bot  { background: var(--white); border-radius: 16px 16px 16px 5px; align-self: flex-start; border: 1px solid var(--rule); }
.bubble-user { background: var(--ink); color: #fff; border-radius: 16px 16px 5px 16px; align-self: flex-end; }
.bubble-bot .source { display: block; margin-top: 7px; font-size: 11.5px; color: var(--meta); }

.regie-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 12px; }
.regie-suggestions button {
  border: 1px solid var(--rule); background: var(--white);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  transition: background .25s ease, border-color .25s ease;
}
.regie-suggestions button:hover { background: var(--yellow); border-color: var(--ink); }

.regie-form { display: flex; gap: 8px; padding: 12px 13px; border-top: 1px solid var(--rule); background: var(--white); }
.regie-form input { flex: 1; border: 1.5px solid var(--rule); border-radius: 999px; padding: 10px 14px; font-size: 13.5px; outline: none; }
.regie-form input:focus { border-color: var(--ink); }
.regie-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex: none;
  background: var(--coral-solid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.regie-send:hover { transform: scale(1.06); }

/* ==================================================== pop-up de sortie */

.exit-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(23, 18, 58, .6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.exit-card {
  width: 620px; max-width: 100%;
  background: var(--cream); border: var(--card-border); border-radius: 26px;
  box-shadow: 8px 10px 0 var(--ink);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; overflow: hidden;
  animation: popIn .35s var(--ease) both;
}
.exit-left { padding: 28px; }
.exit-left h2 { font-size: 27px; margin: 14px 0 10px; }
.exit-left p { color: var(--text); font-size: 14.5px; margin: 0 0 20px; }
.exit-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.exit-decline { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-2); text-decoration: underline; background: none; border: none; padding: 0; }
.exit-right { background: var(--ink); padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.exit-right .mini-card { background: var(--white); border-radius: 14px; padding: 13px; animation: floaty 5s ease-in-out infinite; }
.exit-right .mini-card:nth-child(2) { animation: floaty 6.5s ease-in-out infinite .8s; }
.exit-right .mini-card .t { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.exit-right .mini-card .s { font-size: 11.5px; color: var(--meta); margin-top: 4px; }

/* ===================================================== pied de page */

.site-footer { background: var(--ink); color: #fff; margin-top: 76px; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  color: rgba(255,255,255,.76); font-size: 14px; font-weight: 500;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: left bottom;
  padding-bottom: 3px;
  transition: background-size .4s var(--ease), color .3s ease;
}
.footer-col a:hover { color: #fff; background-size: 100% 2px; }
.footer-about { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.65; margin: 14px 0 18px; }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .3s ease, color .3s ease;
  background-image: none; padding: 0;
}
.socials a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }

/* Bloc avis Google */
.reviews .score { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.reviews .stars { display: flex; gap: 2px; margin: 6px 0 14px; }
.reviews .review { display: flex; gap: 10px; margin-bottom: 12px; }
.reviews .review .who { font-size: 12.5px; font-weight: 700; }
.reviews .review .txt { font-size: 12.5px; color: rgba(255,255,255,.68); line-height: 1.5; }
.reviews .all { font-size: 13px; font-weight: 700; color: var(--yellow); }

.footer-legal {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.footer-legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.62); }
.footer-legal a:hover { color: #fff; }

/* ============================================== emplacements publicitaires */

.ad-slot { margin: 30px 0; }
.ad-slot .ad-frame {
  border: 2px dashed var(--ad-line); background: var(--ad-bg);
  border-radius: 16px; min-height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--meta); font-size: 12px; font-weight: 700; text-align: center; padding: 14px;
}
.ad-slot .ad-frame .fmt { font-weight: 500; font-size: 11px; }
.ad-slot[data-slot="list_side"] .ad-frame { min-height: 320px; }
.ad-slot[data-slot="profile_side"] .ad-frame { min-height: 250px; }

/* Bandeau de consentement */
.cmp {
  position: fixed; left: 16px; bottom: 16px; z-index: 96;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--white); border: var(--card-border); border-radius: 20px;
  box-shadow: var(--card-shadow); padding: 20px;
  animation: popIn .35s var(--ease) both;
}
.cmp h4 { margin-bottom: 8px; }
.cmp p { font-size: 13px; color: var(--text); margin: 0 0 16px; line-height: 1.55; }
.cmp .row { display: flex; flex-direction: column; gap: 8px; }

/* ================================================= sobriété d'animation */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .spot, .ticker-track, .halo-cv, .halo-job, .dot,
  .exit-right .mini-card { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card-link:hover { transform: none; }
}

/* ======================================================== responsive */

@media (max-width: 1080px) {
  .layout-detail { grid-template-columns: minmax(0, 1fr); }
  .layout-detail .detail-main { grid-column: auto; }
  .detail-aside { position: static; }
}

@media (max-width: 900px) {
  .layout-list { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; }
  .filters > * { flex: 1 1 240px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 18px var(--gutter);
  }
  .nav-toggle { display: inline-flex; }
  .exit-card { grid-template-columns: minmax(0, 1fr); }
  .exit-right { flex-direction: row; }
}

@media (min-width: 901px) { .nav-toggle { display: none; } }

/* Sous 720 px, le logo cède la place aux commandes plutôt que de pousser
   l'en-tête hors de l'écran. */
@media (max-width: 720px) {
  .site-header .inner { gap: 10px; padding: 10px var(--gutter); }
  .logo { font-size: 26px; }
  .logo .tld { font-size: 11px; padding: 2px 5px 3px; border-radius: 6px; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-actions .btn { padding: 8px 13px; font-size: 13px; }
  .lang-btn { padding: 7px 10px; }
  .lang-menu { width: min(260px, calc(100vw - 32px)); }
}

@media (max-width: 400px) {
  .logo { font-size: 22px; }
  .header-actions .btn-ghost { display: none; }   /* « Connexion » vit dans le menu */
}

@media (max-width: 720px) {
  body { padding-bottom: 168px; }
  .hero { padding: 88px 0 72px; }
  .hero-rig { opacity: .55; }
  .searchbar { border-radius: 20px; }
  .searchbar .sb-sep { display: none; }
  .searchbar .btn { width: 100%; }
  .cta-bar { border-radius: 18px 18px 0 0; padding: 12px 16px; gap: 10px; }
  .cta-bar .cta-buttons { width: 100%; }
  .cta-bar .cta-buttons .btn { flex: 1 1 140px; }
  .regie { right: 12px; bottom: 148px; }
  .page-head { padding: 32px 22px; border-radius: 22px; }
  .profile-head { padding: 26px 22px; }
  .profile-head .profile-actions { margin-left: 0; width: 100%; }
  .timeline-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .card { padding: 18px; }
  .job-row { flex-wrap: wrap; }
  .job-row .job-aside { text-align: left; align-items: flex-start; width: 100%; }
  .cmp { left: 8px; right: 8px; width: auto; bottom: 8px; }
}

.nav-toggle {
  align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--ink); background: var(--white);
}

/* ========================================================= impression */

@media print {
  .site-header, .cta-bar, .regie, .ad-slot, .site-footer, .cmp, .exit-overlay { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border-width: 1px; }
}
