/* =========================================================
   10ᵉ feuille — gabarits des pages internes
   (héros de page, grille/carrousel de sous-pages, encadrés
   à tirets, listes à puces « pin », visuels arrondis)
   ========================================================= */

/* ---------- Héros de page : image plein cadre + voile lisible.
   L'overlay des conteneurs Elementor 4 est rendu en ::before à
   opacité réduite → on force notre propre voile (méthode cqcarr). ---------- */
.cq-hpage{position:relative;overflow:hidden}
.cq-hpage::before{
  content:""!important;position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(13,28,36,.93) 0%,rgba(13,28,36,.68) 46%,rgba(13,28,36,.26) 100%)!important;
  opacity:1!important;
}
.cq-hpage > .e-con{position:relative;z-index:1}
.cq-hpage .cq-title .elementor-heading-title{color:#fff;text-shadow:0 2px 26px rgba(0,0,0,.3)}
.cq-hpage .cq-lead p{color:rgba(255,255,255,.88)}

/* Fil de section au-dessus du titre (lien retour vers la page parente) */
.cq-fil-page .elementor-heading-title,
.cq-fil-page .elementor-heading-title a{
  display:inline-flex;align-items:center;gap:14px;
  font-family:'Libre Franklin',sans-serif;font-weight:600;font-size:12px;line-height:1;
  letter-spacing:.18em;text-transform:uppercase;color:#fff;text-decoration:none;
}
.cq-fil-page .elementor-heading-title::before{content:"";flex:none;width:28px;height:1px;background:#E83E33}
.cq-fil-page .elementor-heading-title a:hover{color:#E83E33}

/* ---------- Cartes de sous-page (communes grille et carrousel) ---------- */
.cq-pcard{
  display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 1px 0 rgba(29,29,27,.07);text-decoration:none;transition:box-shadow .4s;cursor:pointer;
}
.cq-pcard:hover{box-shadow:0 18px 40px -22px rgba(29,29,27,.4)}
.cq-pcard__img{display:block;overflow:hidden}
.cq-pcard__img img{
  display:block;width:100%!important;height:210px!important;max-width:none;
  object-fit:cover;border-radius:0;transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.cq-pcard:hover .cq-pcard__img img{transform:scale(1.05)}
.cq-pcard__body{display:flex;flex-direction:column;gap:9px;padding:20px 22px 22px;flex:1}
.cq-pcard__t{font-family:'Libre Franklin',sans-serif;font-weight:500;font-size:20px;line-height:1.3;color:#2A4854;transition:color .25s}
.cq-pcard:hover .cq-pcard__t{color:#E83E33}
.cq-pcard__x{font-family:Roboto,sans-serif;font-size:14.5px;line-height:1.6;color:#626A77}
.cq-pcard__pied{display:flex;margin-top:auto;padding-top:16px}
.cq-pcard__go{
  display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;
  border:1px solid rgba(42,72,84,.25);color:#2A4854;transition:.25s;
}
.cq-pcard:hover .cq-pcard__go{background:#E83E33;border-color:#E83E33;color:#fff}

/* ---------- Présentation « grille » (pages de rubrique) ---------- */
.cq-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media(max-width:1024px){.cq-grille{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767px){.cq-grille{grid-template-columns:1fr}}

/* ---------- Présentation « carrousel » (maillage en pied de page) ----------
   Cartes compactes, défilement natif à accroche, filet de progression et
   flèches réunis en pied (aucun risque de chevaucher le titre de section).
   La barre de défilement est masquée : le filet rouge sert de repère. */
.cq-slide{position:relative}
.cq-slide__piste{
  display:flex;gap:22px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;
}
.cq-slide__piste::-webkit-scrollbar{display:none}
.cq-slide__piste > .cq-pcard{flex:0 0 296px;width:296px;scroll-snap-align:start}

.cq-slide__pied{display:flex;align-items:center;gap:26px;margin-top:26px}
.cq-slide__bar{flex:1 1 auto;min-width:0;height:2px;background:rgba(42,72,84,.14);border-radius:2px;overflow:hidden}
.cq-slide__bar i{display:block;width:0;height:100%;background:#E83E33;transition:width .18s linear}
.cq-slide__nav{display:flex;flex:none;gap:10px}
.cq-slide__fl{
  width:44px;height:44px;flex:none;border-radius:50%;padding:0;
  border:1px solid rgba(42,72,84,.25);background:transparent;color:#2A4854;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background .25s,border-color .25s,color .25s,opacity .25s;
}
.cq-slide__fl:hover:not(:disabled){background:#E83E33;border-color:#E83E33;color:#fff}
.cq-slide__fl:disabled{opacity:.32;cursor:default}
.cq-slide__fl svg{display:block}

/* Cartes plus petites en carrousel */
.cq-slide .cq-pcard__img img{height:158px!important}
.cq-slide .cq-pcard__body{gap:7px;padding:16px 18px 18px}
.cq-slide .cq-pcard__t{font-size:17.5px}
.cq-slide .cq-pcard__x{font-size:13.5px;line-height:1.55}
.cq-slide .cq-pcard__pied{padding-top:13px}
.cq-slide .cq-pcard__go{width:30px;height:30px}
.cq-slide .cq-pcard__go svg{width:12px;height:12px}

/* Tout tient déjà à l'écran : ni flèches ni filet */
.cq-slide--fixe .cq-slide__pied{display:none}

/* Sur fond sombre, le filet reste visible */
.cq-dark .cq-slide__bar{background:rgba(255,255,255,.18)}
.cq-dark .cq-slide__fl{border-color:rgba(255,255,255,.4);color:#fff}

@media(max-width:1024px){
  .cq-slide__piste > .cq-pcard{flex:0 0 262px;width:262px}
}
@media(max-width:767px){
  .cq-slide__nav{display:none}
  .cq-slide__piste{gap:16px}
  .cq-slide__piste > .cq-pcard{flex:0 0 232px;width:232px}
  .cq-slide__pied{margin-top:20px}
}

/* ---------- Encadrés à tirets (code graphique officiel) ---------- */
.cq-tiret{
  background:#fff;border:1.5px dashed rgba(71,162,164,.6);border-radius:14px;
}
.cq-tiret .cq-sub .elementor-heading-title{font-size:17px;font-weight:600}

/* ---------- Listes à puces « pin » rouges (widget Éditeur de texte) ---------- */
.cq-liste ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cq-liste li{
  position:relative;padding-left:27px;font-family:Roboto,sans-serif;
  font-size:15.5px;line-height:1.6;color:#626A77;
}
.cq-liste li::before{
  content:"";position:absolute;left:2px;top:7px;width:10px;height:10px;
  border-radius:50% 50% 50% 0;background:#E83E33;transform:rotate(-45deg);
}
:is(.cq-dark,.cq-hpage) .cq-liste li{color:rgba(255,255,255,.84)}

/* ---------- Visuels arrondis des pages internes ---------- */
.cq-visuel img{border-radius:16px!important;object-fit:cover;width:100%!important}
