@import "https://cdn-uicons.flaticon.com/2.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css";

#ftc-root{
  --primary:#18063b;
  --secondary:#65c1be;
  --border: rgba(24,6,59,.18);
  --border2: rgba(24,6,59,.12);
  --shadow: 0 10px 26px rgba(0,0,0,.08);
  --shadow2: 0 14px 34px rgba(0,0,0,.10); /* FIX: manquant */
  color: var(--primary);
}

#ftc-root .ftc-stale{ display:none !important; }

/* wrap: pas de background ici (Elementor) */
#ftc-root .ftc-wrap{
  max-width: 1260px;
  margin: 0 auto;
  padding: 0;
}

/* --- Search --- */
#ftc-root .ftc-topRow{ display:flex; justify-content:center; margin-bottom: 14px; }
#ftc-root .ftc-searchRow{ position:relative; width:min(980px,100%); }

#ftc-root .ftc-search{
  width:100%;
  height:52px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  padding:0 56px 0 58px;
  font-size:18px;
  outline:none;
}

#ftc-root .ftc-search:focus{
  border-color: rgba(101,193,190,.9);
  box-shadow: 0 0 0 4px rgba(101,193,190,.18);
}

/* Loupe plus grosse + compat Safari */
#ftc-root .ftc-searchRow::before{
  content:"";
  position:absolute;
  left:18px; top:50%;
  transform:translateY(-50%);
  width:22px; height:22px;
  opacity:.45;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18Zm0-2a6 6 0 1 0-4.243-10.243A6 6 0 0 0 10 16Zm10.707 5.293-5.4-5.4 1.414-1.414 5.4 5.4-1.414 1.414Z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18Zm0-2a6 6 0 1 0-4.243-10.243A6 6 0 0 0 10 16Zm10.707 5.293-5.4-5.4 1.414-1.414 5.4 5.4-1.414 1.414Z'/%3E%3C/svg%3E") no-repeat center/contain;
}

#ftc-root .ftc-clear{
  position:absolute;
  right:14px; top:50%;
  transform:translateY(-50%);
  width:34px; height:34px;
  border-radius:999px;
  border:none;
  background:transparent;
  color:var(--secondary);
  font-size:18px;
  cursor:pointer;
}

#ftc-root .ftc-clear:hover{ background: rgba(101,193,190,.12); }

/* --- Label maturité --- */
#ftc-root .ftc-phaseLabel{
  width: min(980px, 100%);
  margin: 6px auto 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
#ftc-root .ftc-phaseLabel .accent{ color: var(--secondary); }

/* --- Phases buttons --- */
#ftc-root .ftc-phases{
  width:min(980px,100%);
  margin: 0 auto 22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

@media (min-width:768px){
  #ftc-root .ftc-phases{ flex-direction:row; justify-content:space-between; gap:18px; }
}

#ftc-root .ftc-phase-btn{
  width:min(520px,100%);
  height:44px;
  border-radius:999px;
  border:1px solid rgba(101,193,190,.75);
  background:#fff;
  color:var(--primary);
  font-weight:600;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease;
}

@media (min-width:768px){ #ftc-root .ftc-phase-btn{ width:32%; } }

#ftc-root .ftc-phase-btn:hover{ background: rgba(101,193,190,1); }
#ftc-root .ftc-phase-btn.is-active{
  background: var(--secondary);
  border-color: transparent;
}

/* Enlève le bord noir au clic/focus (scopé FTC) */
#ftc-root .ftc-phase-btn,
#ftc-root .ftc-clear{
  outline: none !important;
  box-shadow: none; /* base */
}

/* Supprime le focus ring “noir” imposé par certains thèmes */
#ftc-root .ftc-phase-btn:focus,
#ftc-root .ftc-phase-btn:focus-visible,
#ftc-root .ftc-phase-btn:active{
  outline: none !important;
  box-shadow: none !important;
}


/* radio dot injecté par JS */
#ftc-root .ftc-radio{
  width:18px; height:18px;
  border-radius:999px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 18px;
  border: 1px solid rgba(24,6,59,.18);
}

#ftc-root .ftc-radio::after{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: var(--primary);
  opacity: 0;
  transition: opacity .15s ease;
}

#ftc-root .ftc-phase-btn.is-active .ftc-radio{ border-color: transparent; }
#ftc-root .ftc-phase-btn.is-active .ftc-radio::after{ opacity: 1; }

/* --- Themes grid --- */
#ftc-root .ftc-grid-3{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
}
@media (min-width:1024px){
  #ftc-root .ftc-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* === IMPORTANT: Cards = “rien” (tu ne veux pas de bg/arrondi/ombre) === */
#ftc-root .ftc-card{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: unset !important;
  display:flex;
  flex-direction:column;
}
#ftc-root .ftc-card:hover{ box-shadow: none !important; }

#ftc-root .ftc-cardHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#ftc-root .ftc-cardTitleRow{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  min-width: 0;
}

#ftc-root .ftc-themeIcon{
  color: var(--secondary);
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

#ftc-root .ftc-cardTitle{
  margin:0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

/* ---- Domains tiles (ici oui: fond + bord) ---- */
#ftc-root .ftc-domain{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border2);
  border-radius: 5px;
  background:#fff;
  cursor:pointer;
  transition: background .15s ease;
  margin-top: 12px;
}
#ftc-root .ftc-domain:hover{ background: rgba(24,6,59,.03); }

#ftc-root .ftc-domain > div:first-child{
  color: var(--secondary);
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}

#ftc-root .ftc-domain-title{
  margin:0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

/* --- Footer link "Toutes les questions →" bottom-right --- */
#ftc-root .ftc-cardFooter{
  margin-top: auto;
  display:flex;
  justify-content:flex-end;
  padding-top: 10px;
}

#ftc-root .ftc-allLink{
  color: var(--secondary);
  font-weight: 700;
  font-size: 14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 6px;
}
#ftc-root .ftc-allLink:hover{ text-decoration: underline; }

#ftc-root .ftc-allLink::after{
  content:"\2192";
  font-weight: 900;
  line-height: 1;
}

#ftc-root .ftc-noresults{
  text-align:center;
  margin: 46px 0 30px;
}
#ftc-root .ftc-noresults .t1{
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
}
#ftc-root .ftc-noresults .t2{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
/* ====== SPACING (pixel-ish like Le Poool) ====== */

/* espace global du bloc FTC */
#ftc-root .ftc-wrap{
  padding-top: 10px; /* léger */
}

/* Search */
#ftc-root .ftc-topRow{ margin-bottom: 22px !important; }      /* + d'air sous la search */

/* Label + boutons */
#ftc-root .ftc-phaseLabel{ margin: 0 auto 14px !important; }  /* label collé au dessus */
#ftc-root .ftc-phases{ margin: 0 auto 44px !important; }      /* gros espace avant la grille */

/* Grille thématiques : Poool a beaucoup d'air */
#ftc-root .ftc-grid-3{
  column-gap: 44px !important;
  row-gap: 54px !important;
}

/* Card = container invisible, mais on met un “rythme” interne */
#ftc-root .ftc-card{
  padding: 0 !important;
}

/* Header (icon + titre) */
#ftc-root .ftc-cardHead{
  margin-bottom: 18px !important;
}

/* Liste domains : même rythme */
#ftc-root .ftc-domain{ 
  margin-top: 14px !important; 
}
#ftc-root .ftc-domain:first-child{
  margin-top: 0 !important;
}

/* Footer en bas à droite */
#ftc-root .ftc-cardFooter{
  padding-top: 18px !important;
}

/* Responsive : sur tablette, Poool réduit un peu les gaps */
@media (max-width: 1023px){
  #ftc-root .ftc-grid-3{
    row-gap: 40px !important;
    column-gap: 28px !important;
  }
  #ftc-root .ftc-card{
    min-height: 300px !important;
  }
}
/* 1) + d'espace entre maturité (boutons) et cards */
#ftc-root .ftc-phases{
  margin-bottom: 64px !important; /* augmente / ajuste si besoin */
}

/* 2) boutons moins larges (Poool-like) */
#ftc-root .ftc-phase-btn{
  width: min(360px, 100%) !important;   /* au lieu de 520 */
  height: 42px !important;             /* un poil plus compact */
  font-size: 13px !important;
}

/* sur desktop: pas 32% (trop large), on laisse “auto” et on centre */
@media (min-width:768px){
  #ftc-root .ftc-phases{
    justify-content: center !important;
    gap: 26px !important;
  }
  #ftc-root .ftc-phase-btn{
    width: 340px !important;           /* fixe desktop */
  }
}

/* 3) on supprime toute contrainte d'alignement du footer */
#ftc-root .ftc-card{
  min-height: unset !important;
}

/* SECTIONS */
#ftc-root .ftc-section{ margin-top: 30px; }
#ftc-root .ftc-title{
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 800;
}
#ftc-root .ftc-empty{
  color: rgba(24,6,59,.55);
  font-weight: 600;
  padding: 10px 0;
}

/* COMPANIES + EXPERTS cards */
#ftc-root .ftc-logos,
#ftc-root .ftc-experts{
  display:flex;
  flex-wrap:wrap;
  gap: 16px;
}

#ftc-root .ftc-org,
#ftc-root .ftc-expert{ width: 170px; }

#ftc-root .ftc-org a,
#ftc-root .ftc-expert a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  background:#fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}

#ftc-root .ftc-org a:hover,
#ftc-root .ftc-expert a:hover{
  box-shadow: var(--shadow2);
}

#ftc-root .ftc-org img{
  width:120px; height:120px;
  object-fit: contain;
  background:#fff;
  border-radius: 12px;
}

#ftc-root .ftc-expert img{
  width:120px; height:120px;
  object-fit: cover;
  background:#fff;
  border-radius: 999px;
}

#ftc-root .ftc-lbl{
  text-align:center;
  font-weight: 600;
  font-size: 13px;
  color: rgba(24,6,59,.65);
  word-break: break-word;
}