/* =========================================================================
   Info H'Emploi — design system
   Charte : terracotta, sauge, vert d'eau, ivoire, anthracite (cahier des
   charges) + nuit #101B4F et teal #12897B repris du logotype et de
   l'identite APREMIS.
   Signature : "le fil" — une ligne de liaison ponctuee de noeuds qui relie
   les sections, echo des passerelles entre hebergement et emploi.
   ========================================================================= */

@font-face {
  font-family: 'Fraunces';
  src: url('/static/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  src: url('/static/fonts/karla-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/static/fonts/jost-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #101B4F;
  --nuit-clair: #1D2A63;
  --nuit-voile: rgba(16, 27, 79, .08);
  --terracotta: #C96E56;
  --terracotta-fonce: #A8543D;
  --terracotta-voile: #F6E7E1;
  --sauge: #A7B89A;
  --sauge-fonce: #6F8265;
  --eau: #C8E3DD;
  --eau-clair: #E7F3F0;
  --teal: #12897B;
  --ivoire: #FAF7F2;
  --ivoire-fonce: #F2ECE2;
  --blanc: #FFFFFF;
  --anthracite: #3D4348;
  --gris: #6E6A64;
  --bord: #E7DFD3;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --corps: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --logo: 'Jost', 'Karla', sans-serif;

  --rayon: 14px;
  --rayon-s: 8px;
  --ombre: 0 1px 2px rgba(16, 27, 79, .04), 0 8px 24px -12px rgba(16, 27, 79, .18);
  --contenu: 1180px;
  --texte: 720px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--anthracite);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--nuit);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 20, 'WONK' 0, 'opsz' 40;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-fonce); }

:focus-visible {
  outline: 3px solid var(--terracotta-fonce);
  outline-offset: 3px;
  border-radius: 3px;
}

img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--bord); margin: 2.5rem 0; }

.conteneur { width: min(100% - 2.5rem, var(--contenu)); margin-inline: auto; }
.mesure { max-width: var(--texte); }
.centre { text-align: center; margin-inline: auto; }

.evite {
  position: absolute; left: -9999px; top: 0; background: var(--nuit);
  color: #fff; padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0;
}
.evite:focus { left: 0; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Logotype ----------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
        color: var(--nuit); }
.site-pied .logo { color: var(--ivoire); }
.logo__mot {
  font-family: var(--logo);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--nuit);
  display: block;
}
.logo__mot span { display: block; }
.logo svg { flex: none; }
.logo:hover .logo__mot { color: var(--nuit-clair); }
.site-pied .logo__mot { color: var(--ivoire); }

/* --- En-tete ------------------------------------------------------------ */
.site-entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--bord);
}
.entete__barre {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 74px; padding: .55rem 0;
}
.entete__nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }

.nav__item { position: relative; }
.nav__lien {
  display: inline-block; padding: .55rem .7rem; border-radius: var(--rayon-s);
  font-size: .95rem; font-weight: 500; color: var(--nuit);
  text-decoration: none; white-space: nowrap;
}
.nav__lien:hover, .nav__lien:focus-visible { background: var(--ivoire-fonce); color: var(--nuit); }
.nav__lien[aria-current="page"], .nav__item--actif > .nav__lien {
  color: var(--terracotta-fonce);
  box-shadow: inset 0 -2px 0 var(--terracotta);
}
.nav__sous {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 250px;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: .4rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__sous,
.nav__item:focus-within .nav__sous { opacity: 1; visibility: visible; transform: none; }
.nav__sous a {
  display: block; padding: .5rem .7rem; border-radius: var(--rayon-s);
  color: var(--nuit); text-decoration: none; font-size: .93rem;
}
.nav__sous a:hover { background: var(--eau-clair); color: var(--nuit); }

.entete__action { margin-left: .5rem; }
.burger {
  display: none; margin-left: auto; background: var(--blanc);
  border: 1px solid var(--bord); border-radius: var(--rayon-s);
  width: 46px; height: 42px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--nuit);
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; content: ''; position: relative;
}
.burger span::before { top: -6px; position: absolute; }
.burger span::after { top: 6px; position: absolute; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--corps); font-size: .97rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .12s ease,
  background-color .16s ease, border-color .16s ease, color .16s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--principal { background: var(--terracotta-fonce); color: #fff; }
.btn--principal:hover { background: #96482F; color: #fff; }
.btn--nuit { background: var(--nuit); color: #fff; }
.btn--nuit:hover { background: var(--nuit-clair); color: #fff; }
.btn--contour { background: transparent; border-color: var(--nuit); color: var(--nuit); }
.btn--contour:hover { background: var(--nuit); color: #fff; }
.btn--clair {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--clair:hover { background: #fff; color: var(--nuit); border-color: #fff; }
.btn--petit { padding: .5rem .95rem; font-size: .88rem; }
.btn--large { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--serre { padding: clamp(2.2rem, 4vw, 3.5rem) 0; }
.section--ivoire { background: var(--ivoire-fonce); }
.section--eau { background: var(--eau-clair); }
.section--nuit { background: var(--nuit); color: #E4E7F2; }
.section--nuit h2, .section--nuit h3 { color: #fff; }
.section--nuit a { color: var(--eau); }

.surtitre {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terracotta-fonce);
  margin: 0 0 1rem;
}
.surtitre::before {
  content: ''; width: 26px; height: 1px; background: currentColor; display: block;
}
.section--nuit .surtitre { color: var(--eau); }

.chapo { font-size: 1.16rem; line-height: 1.6; color: var(--gris); }
.section--nuit .chapo { color: #C3C9DE; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: var(--nuit);
  color: #DFE3F0;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--teal) 0 33%, var(--sauge) 33% 66%,
              var(--terracotta) 66% 100%);
}
.hero__grille {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero .surtitre { color: var(--eau); }
.hero__texte { font-size: 1.1rem; color: #C6CCE2; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero__financement {
  margin-top: 1.4rem; font-size: .88rem; color: #A8B0CE;
  display: inline-flex; align-items: center; gap: .55rem;
}
.hero__financement::before {
  content: ''; width: 18px; height: 1px; background: var(--eau); flex: none;
}
.hero__repere {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .88rem; color: #AEB6D2;
}
.hero__repere strong { color: #fff; font-weight: 600; display: block; font-size: 1.05rem; }

/* Signature : la passerelle animee */
/* Etat par defaut : tout est visible. L'animation n'est qu'un enrichissement,
   pour que le schema reste lisible si elle ne s'execute pas. */
.hero__visuel { width: 100%; max-width: 520px; margin-inline: auto; }
.passerelle { width: 100%; height: auto; display: block; }
.passerelle .arc { stroke-dasharray: 460; stroke-dashoffset: 0; }
.passerelle .mobile {
  offset-path: path('M 40 168 C 110 34, 250 34, 320 168');
  offset-distance: 50%; opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .passerelle .arc {
    stroke-dashoffset: 460;
    animation: tracer 2.2s cubic-bezier(.4, 0, .2, 1) .3s forwards;
  }
  .passerelle .mobile { opacity: 0; animation: cheminer 7s linear 2.4s infinite; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes cheminer {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* --- Le fil : dispositif structurel ------------------------------------- */
.fil { list-style: none; margin: 0; padding: 0; position: relative; }
.fil::before {
  content: ''; position: absolute; left: 15px; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(var(--eau), var(--sauge), var(--terracotta));
}
.fil > li { position: relative; padding: 0 0 1.9rem 3.2rem; }
.fil > li:last-child { padding-bottom: 0; }
.fil__noeud {
  position: absolute; left: 5px; top: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--ivoire); border: 2px solid var(--sauge);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: var(--sauge-fonce);
  font-family: var(--corps);
}
.fil__noeud--fort { background: var(--terracotta-fonce); border-color: var(--terracotta-fonce); color: #fff; }
.fil__date {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--terracotta-fonce); display: block;
}
.fil h3 { margin-bottom: .25rem; }
.section--ivoire .fil::before, .section--ivoire .fil__noeud { background-color: var(--ivoire-fonce); }
.section--ivoire .fil::before { background: linear-gradient(var(--eau), var(--sauge), var(--terracotta)); }

/* --- Cartes ------------------------------------------------------------- */
.grille { display: grid; gap: 1.4rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.carte {
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: var(--rayon); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; position: relative;
}
.carte--lien { text-decoration: none; color: inherit; transition: border-color .16s, box-shadow .16s, transform .16s; }
.carte--lien:hover { border-color: var(--sauge); box-shadow: var(--ombre); transform: translateY(-2px); color: inherit; }
.carte__filet { height: 4px; border-radius: 4px 4px 0 0; margin: -1.6rem -1.5rem 1.2rem; }
.carte__filet--m1 { background: var(--teal); }
.carte__filet--m2 { background: var(--sauge-fonce); }
.carte__filet--m3 { background: var(--terracotta); }
.carte h3 { margin-bottom: .4rem; }
.carte p { color: var(--gris); font-size: .97rem; }
.carte__pied { margin-top: auto; padding-top: 1.1rem; }

.jeton {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--eau-clair); color: var(--teal);
}
.jeton--sauge { background: #EDF1E9; color: var(--sauge-fonce); }
.jeton--terre { background: var(--terracotta-voile); color: var(--terracotta-fonce); }
.jeton--nuit { background: var(--nuit-voile); color: var(--nuit); }

.code-module {
  font-family: var(--display); font-size: 2.1rem; font-weight: 700;
  line-height: 1; display: block; margin-bottom: .5rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 120;
}
.code-module--m1 { color: var(--teal); }
.code-module--m2 { color: var(--sauge-fonce); }
.code-module--m3 { color: var(--terracotta); }

.liste-puces { list-style: none; margin: 0; padding: 0; }
.liste-puces li {
  position: relative; padding-left: 1.5rem; margin-bottom: .5rem;
  font-size: .97rem;
}
.liste-puces li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sauge);
}
.liste-puces--terre li::before { background: var(--terracotta); }

.encadre {
  border-left: 3px solid var(--terracotta); background: var(--terracotta-voile);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
  font-size: .97rem;
}
.encadre--eau { border-left-color: var(--teal); background: var(--eau-clair); }
.encadre strong { color: var(--nuit); }

/* --- Bandeau d'appel ---------------------------------------------------- */
.appel {
  background: var(--nuit); color: #fff; border-radius: var(--rayon);
  padding: clamp(1.8rem, 4vw, 2.8rem); display: flex; flex-wrap: wrap;
  gap: 1.5rem; align-items: center; justify-content: space-between;
}
.appel h2 { color: #fff; margin-bottom: .3rem; }
.appel p { color: #C3C9DE; margin: 0; max-width: 46ch; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* --- Formulaires -------------------------------------------------------- */
.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font-weight: 600; font-size: .93rem; color: var(--nuit); }
.champ .aide { font-size: .84rem; color: var(--gris); }
.champ .requis { color: var(--terracotta-fonce); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], input[type="url"],
select, textarea {
  font-family: var(--corps); font-size: 1rem; color: var(--anthracite);
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: var(--rayon-s); padding: .7rem .85rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 137, 123, .14);
  outline: none;
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.case { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.case input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--terracotta-fonce); }
.piege { position: absolute; left: -9999px; opacity: 0; height: 0; }

.messages {
  border-left: 3px solid var(--terracotta-fonce); background: #FBEDE8;
  padding: 1rem 1.2rem; border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
}
.messages ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.messages--ok { border-left-color: var(--teal); background: var(--eau-clair); }

.bloc-formulaire {
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: var(--rayon); padding: clamp(1.4rem, 3vw, 2.2rem);
}
fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
legend {
  font-family: var(--display); font-size: 1.15rem; color: var(--nuit);
  font-weight: 600; padding: 0; margin-bottom: .9rem;
}

/* --- Agenda de rendez-vous ---------------------------------------------- */
.agenda { display: grid; gap: 1rem; }
.agenda__jours {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem;
  scrollbar-width: thin;
}
.jour {
  flex: none; min-width: 92px; padding: .7rem .5rem; border-radius: var(--rayon-s);
  border: 1px solid var(--bord); background: var(--blanc); cursor: pointer;
  text-align: center; font-family: var(--corps); color: var(--nuit);
  transition: border-color .15s, background .15s;
}
.jour:hover { border-color: var(--sauge); }
.jour[aria-pressed="true"] { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.jour__nom { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.jour__num { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.jour__mois { display: block; font-size: .74rem; opacity: .75; }

.creneaux { display: flex; flex-wrap: wrap; gap: .5rem; }
.creneau {
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--bord);
  background: var(--blanc); cursor: pointer; font-family: var(--corps);
  font-size: .95rem; font-weight: 600; color: var(--nuit);
}
.creneau:hover { border-color: var(--teal); }
.creneau[aria-pressed="true"] { background: var(--terracotta-fonce); border-color: var(--terracotta-fonce); color: #fff; }
.choix-resume {
  background: var(--eau-clair); border-radius: var(--rayon-s); padding: .9rem 1.1rem;
  font-size: .95rem; color: var(--nuit);
}
.choix-resume strong { font-weight: 700; }

/* --- Tableaux ----------------------------------------------------------- */
.tableau-enveloppe { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--blanc); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--ivoire); }

/* --- Ressources et actualites ------------------------------------------- */
.ressource {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0;
  border-bottom: 1px solid var(--bord);
}
.ressource:last-child { border-bottom: 0; }
.ressource__type {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--eau-clair); color: var(--teal); display: flex;
  align-items: center; justify-content: center; font-size: .7rem;
  font-weight: 700; text-transform: uppercase;
}
.ressource h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.ressource p { font-size: .93rem; color: var(--gris); margin: 0; }

.vide {
  border: 1px dashed var(--bord); border-radius: var(--rayon);
  padding: 1.6rem; color: var(--gris); background: var(--blanc); font-size: .96rem;
}

.actu__date { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--terracotta-fonce); font-weight: 700; }
.article-corps { max-width: var(--texte); }
.article-corps h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-corps ul { padding-left: 1.2rem; }

/* --- Fil d'ariane ------------------------------------------------------- */
.ariane { font-size: .85rem; color: var(--gris); padding: 1rem 0 0; }
.ariane a { color: var(--gris); }
.ariane span { margin: 0 .4rem; opacity: .5; }

.page-entete { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.5rem, 3vw, 2.4rem); }
.page-entete h1 { margin-bottom: .4rem; }

/* --- Partenaires -------------------------------------------------------- */
.partenaire {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 1.6rem; text-align: center;
}
.partenaire img { height: 84px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 1rem; }
.marque-texte {
  font-family: var(--display); font-size: 1.35rem; color: var(--nuit);
  font-weight: 600; letter-spacing: .01em; margin-bottom: .8rem;
}

/* --- Pied de page ------------------------------------------------------- */
.site-pied { background: var(--nuit); color: #B9C0D8; padding: 3.5rem 0 1.8rem; margin-top: 0; }
.site-pied h4 { color: #fff; font-family: var(--corps); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.site-pied a { color: #C8CFE5; text-decoration: none; }
.site-pied a:hover { color: #fff; text-decoration: underline; }
.pied__grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.pied__liste { list-style: none; margin: 0; padding: 0; }
.pied__liste li { margin-bottom: .5rem; font-size: .93rem; }
.pied__bas {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: #939CBB;
}
.pied__legaux { display: flex; flex-wrap: wrap; gap: 1rem; }
.pied__baseline { font-family: var(--display); font-size: 1.02rem; color: #DDE2F1; margin: .9rem 0 1.2rem; max-width: 30ch; }
.pied__logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.pied__logos a { display: inline-flex; border-radius: 8px; transition: transform .16s ease, box-shadow .16s ease; }
.pied__logos a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); }
.partenaire a:has(img) { display: inline-flex; border-radius: 8px; transition: transform .16s ease; }
.partenaire a:has(img):hover { transform: translateY(-2px); }
.partenaire h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.partenaire h3 a { color: var(--nuit); text-decoration: none; }
.partenaire h3 a:hover { color: var(--terracotta-fonce); text-decoration: underline; }
.pied__logos img {
  background: #fff; border-radius: 8px; padding: .5rem .7rem;
  height: 56px; width: auto; max-width: 190px; object-fit: contain;
}

/* --- Bandeau d'information --------------------------------------------- */
.bandeau {
  background: var(--sauge); color: #23301C; font-size: .92rem;
  padding: .6rem 0; text-align: center;
}
.bandeau a { color: #23301C; font-weight: 700; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__visuel { order: -1; max-width: 440px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .entete__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanc); border-bottom: 1px solid var(--bord);
    flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.4rem;
    gap: .1rem; box-shadow: var(--ombre); max-height: 78vh; overflow-y: auto;
  }
  .entete__nav.ouvert { display: flex; }
  .nav__lien { display: block; padding: .75rem .4rem; }
  .nav__sous {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--bord);
    border-radius: 0; margin: 0 0 .4rem .6rem; padding: 0 0 0 .4rem; min-width: 0;
  }
  .entete__action { margin: .7rem 0 0; }
  .entete__action .btn { width: 100%; justify-content: center; }
  .duo { grid-template-columns: 1fr; }
  .appel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pied__grille { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* --- Impression --------------------------------------------------------- */
@media print {
  .site-entete, .site-pied, .hero__actions, .appel { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* --- Schema de l'ecosysteme des acteurs --------------------------------- */
.ecosysteme { margin: 0; }
.ecosysteme svg { width: 100%; height: auto; display: block; background: none; }
.eco-legende {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1rem;
  font-size: .82rem; color: var(--gris);
}
.eco-legende span { display: inline-flex; align-items: center; gap: .5rem; }
.section--nuit .eco-legende { color: #AEB6D2; }
.eco-cle { display: inline-block; flex: none; }
.eco-cle--trait { width: 22px; height: 0; border-top: 2px solid #17356B; }
.eco-cle--pointille { width: 22px; height: 0; border-top: 2px dashed #0B62AE; }
.eco-cle--point { width: 9px; height: 9px; border-radius: 50%; background: #17356B; }
.section--nuit .eco-cle--trait { border-top-color: #7E8CB8; }
.section--nuit .eco-cle--point { background: #7E8CB8; }

@media (prefers-reduced-motion: no-preference) {
  /* Les acteurs font le tour du centre ; chacun contre-tourne sur lui-meme
     a la meme vitesse pour que texte et pictogramme restent droits. */
  .eco-satellites, .eco-sat, .eco-orbites { transform-box: view-box; }
  .eco-satellites { animation: eco-tourner 64s linear infinite; }
  .eco-sat { animation: eco-contre-tourner 64s linear infinite; }
  .eco-orbites { animation: eco-contre-tourner 150s linear infinite; }
  .eco-liens path {
    stroke-dashoffset: 64;
    animation: eco-courant 2.6s linear infinite;
  }
  .eco-points circle {
    animation: eco-respirer 4s ease-in-out infinite;
    transform-box: fill-box; transform-origin: center;
  }
  .eco-points circle:nth-child(2n) { animation-delay: .5s; }
  .eco-points circle:nth-child(3n) { animation-delay: 1.1s; }
  .eco-pulse { animation: eco-onde 4s ease-out infinite; }
}
@keyframes eco-tourner { to { transform: rotate(360deg); } }
@keyframes eco-contre-tourner { to { transform: rotate(-360deg); } }
@keyframes eco-courant { to { stroke-dashoffset: 0; } }
@keyframes eco-respirer {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.35); opacity: 1; }
}
@keyframes eco-onde {
  0% { stroke-opacity: .5; r: 72; }
  70%, 100% { stroke-opacity: 0; r: 96; }
}
