/* SPO CSS refonte v1.1.0 - migrated from CSS additionnel.txt */

/* =========================================================
   SPO — QUI SOMMES-NOUS (page-id-299)
   FIX HERO + LISERET VERT + OVERRIDES SAFE
   Objectifs :
   - Le header/hero doit reprendre le style OFFRES/DEMANDES (archiveHead)
   - Le liseret vert ne doit plus coller au texte
   - Forcer la prise en charge même si ListingHive/HivePress surcharge
   - Additif / no-regression
   ========================================================= */

/* ---------
   Scope
   --------- */
body.page-id-299 .spo-about{
  overflow-wrap:anywhere;
}

/* ---------
   Skip links (A11Y)
   --------- */
body.page-id-299 .spo-skip-link{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}
body.page-id-299 .spo-skip-link:focus,
body.page-id-299 .spo-skip-link:focus-visible{
  position:fixed !important;
  left:16px !important;
  top:16px !important;
  width:auto !important;
  height:auto !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  z-index:999999 !important;
  background:#fff !important;
  color:#0F2A44 !important;
  box-shadow:0 10px 26px rgba(0,0,0,.18) !important;
  border:1px solid rgba(15,42,68,.18) !important;
}

/* ---------
   Container / frame
   --------- */
body.page-id-299 .spo-about__container{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
body.page-id-299 .spo-about__frame{
  padding-top:18px;
  padding-bottom:30px;
}

/* =========================================================
   HERO — Forcer le mode "archiveHead" (OFFRES/DEMANDES)
   Problème constaté : le style hero n'est pas pris => on "lock"
   ========================================================= */

/* Le header doit se comporter comme OFFRES/DEMANDES */
body.page-id-299 .spo-about__hero.spo-archiveHead,
body.page-id-299 .spo-archiveHead--about{
  display:block !important;
  padding-top:18px !important;
  padding-bottom:18px !important;
}

/* Inner : respiration + alignement strict + éviter le "collage" */
body.page-id-299 .spo-about__hero.spo-archiveHead .spo-archiveHead__inner,
body.page-id-299 .spo-archiveHead--about .spo-archiveHead__inner{
  width:100% !important;
  max-width:1100px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:18px !important;
  padding-right:18px !important;
  box-sizing:border-box !important;
}

/* Hero card : cohérence + empêcher les resets du thème */
body.page-id-299 .spo-about__hero .spo-heroCard{
  border-radius:18px !important;
  overflow:hidden !important;
}

/* Titre / sous-titre */
body.page-id-299 .spo-about__title{
  letter-spacing:-0.02em;
  line-height:1.15;
}
body.page-id-299 .spo-about__subtitle{
  max-width:80ch;
}

/* =========================================================
   LISERET VERT — trop proche du texte (sur la capture)
   Cause probable : pseudo-element/outline/left-border d'un composant
   => on ajoute du padding-left + on recentre le liseret
   ========================================================= */

/* Donne de l'air à tout bloc qui porte le liseret (hero + cards) */
body.page-id-299 .spo-about__hero .spo-heroCard,
body.page-id-299 .spo-card{
  padding-left:18px !important;  /* espace entre liseret et contenu */
  padding-right:18px !important;
}

/* Si le liseret est un border-left direct */
body.page-id-299 .spo-about__hero .spo-heroCard,
body.page-id-299 .spo-card{
  border-left-width:6px !important; /* un peu plus "premium" */
  border-left-style:solid !important;
  border-left-color:inherit; /* ne change pas la couleur, conserve le design existant */
}

/* Si le liseret est un ::before (cas fréquent ListingHive) */
body.page-id-299 .spo-about__hero .spo-heroCard::before,
body.page-id-299 .spo-card::before{
  left:0 !important;
}

/* Évite que le contenu colle au haut dans le hero */
body.page-id-299 .spo-about__hero .spo-heroCard{
  padding-top:18px !important;
  padding-bottom:18px !important;
}

/* =========================================================
   Badges / Sommaire
   ========================================================= */
body.page-id-299 .spo-about__badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
body.page-id-299 .spo-about__badges--jump .spo-badge{
  text-decoration:none;
}
body.page-id-299 .spo-about__jump{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.22);
}

/* =========================================================
   Cards spacing
   ========================================================= */
body.page-id-299 .spo-card{
  margin:0 0 16px;
}
body.page-id-299 .spo-card__desc{
  max-width:90ch;
}

/* =========================================================
   Mini grid
   ========================================================= */
body.page-id-299 .spo-miniGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:860px){
  body.page-id-299 .spo-miniGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
body.page-id-299 .spo-miniCard{
  border:1px solid rgba(15,42,68,.10);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.85);
  box-shadow:0 10px 24px rgba(15,42,68,.06);
}

/* =========================================================
   Two columns
   ========================================================= */
body.page-id-299 .spo-twoCols{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:980px){
  body.page-id-299 .spo-twoCols{
    grid-template-columns:1fr 1fr;
  }
}

/* =========================================================
   CTA rows
   ========================================================= */
body.page-id-299 .spo-panel__cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
body.page-id-299 .spo-panel__cta .spo-btn{
  min-height:44px;
}
@media (max-width:760px){
  body.page-id-299 .spo-panel__cta{
    flex-direction:column;
    align-items:stretch;
  }
  body.page-id-299 .spo-panel__cta .spo-btn{
    width:100%;
    justify-content:center;
  }
}

/* CTA hero : beaucoup de boutons => ligne propre */
body.page-id-299 .spo-about__quicklinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:14px;
}
@media (max-width:760px){
  body.page-id-299 .spo-about__quicklinks{
    flex-direction:column;
    align-items:stretch;
  }
  body.page-id-299 .spo-about__quicklinks .spo-btn{
    width:100%;
    justify-content:center;
  }
}

/* =========================================================
   Notes / SoftBox
   ========================================================= */
body.page-id-299 .spo-note,
body.page-id-299 .spo-softBox{
  border-radius:16px;
}

/* =========================================================
   Breadcrumbs (lisibilité + séparation)
   ========================================================= */
body.page-id-299 .spo-breadcrumbs{
  margin:10px 0 12px !important;
}
body.page-id-299 .spo-breadcrumbs__list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
body.page-id-299 .spo-breadcrumbs__item{
  display:flex;
  align-items:center;
  gap:8px;
}
body.page-id-299 .spo-breadcrumbs__item:not(:last-child)::after{
  content:"›";
  opacity:.55;
}

/* =========================================================
   FAQ
   ========================================================= */
body.page-id-299 .spo-faq__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:980px){
  body.page-id-299 .spo-faq__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
body.page-id-299 details.spo-faq__item{
  border:1px solid rgba(15,42,68,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,42,68,.08);
  overflow:hidden;
}
body.page-id-299 details.spo-faq__item > summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  font-weight:900;
  display:flex;
  align-items:flex-start;
  gap:10px;
}
body.page-id-299 details.spo-faq__item summary::-webkit-details-marker{
  display:none;
}
body.page-id-299 details.spo-faq__item[open] > summary{
  background:rgba(15,42,68,.05);
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.08);
}
body.page-id-299 .spo-faq__a{
  padding:0 14px 14px;
  color:rgba(31,41,55,.92);
}

/* =========================================================
   Focus visible
   ========================================================= */
body.page-id-299 a:focus-visible,
body.page-id-299 button:focus-visible,
body.page-id-299 summary:focus-visible,
body.page-id-299 .spo-btn:focus-visible{
  outline:3px solid rgba(15,42,68,.35);
  outline-offset:3px;
  border-radius:14px;
}

/* =========================================================
   Anchors scroll margin (header sticky)
   ========================================================= */
body.page-id-299 #spo-about-top,
body.page-id-299 #spo-about-mission,
body.page-id-299 #spo-about-cadre,
body.page-id-299 #spo-about-perimetre,
body.page-id-299 #spo-about-entreprises,
body.page-id-299 #spo-about-candidats,
body.page-id-299 #spo-about-lexique,
body.page-id-299 #spo-about-communaute,
body.page-id-299 #spo-about-faq,
body.page-id-299 #spo-about-contact{
  scroll-margin-top:90px;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  body.page-id-299 *{
    scroll-behavior:auto !important;
  }
}

/* =========================================================
   SPO - Qui sommes-nous - compact hero v2.0.2
   ========================================================= */
body.page-id-299 .spo-about{
  background:#f5f7fa;
}

body.page-id-299 .spo-about__hero .spo-heroCard{
  height:auto !important;
  min-height:0 !important;
  padding:22px clamp(18px, 3vw, 30px) !important;
}

body.page-id-299 .spo-about__jump{
  margin-top:16px !important;
  padding-top:14px !important;
  border-top:1px solid rgba(15, 42, 68, .12) !important;
}

body.page-id-299 .spo-about__badges--jump{
  display:flex !important;
  flex-wrap:wrap;
  gap:8px;
  opacity:1 !important;
  visibility:visible !important;
}

body.page-id-299 .spo-about__badges--jump .spo-badge{
  display:inline-flex !important;
  align-items:center;
  min-height:40px;
  color:#123e66 !important;
  background:#f4f7fb !important;
  border:1px solid rgba(15, 42, 68, .12) !important;
}

body.page-id-299 .spo-about__badges--jump .spo-badge:hover{
  color:#0d2b47 !important;
  background:#eaf1f8 !important;
}

@media (max-width:640px){
  body.page-id-299 .spo-about__hero .spo-heroCard{
    padding:18px 14px !important;
  }
}

