/* Les fonctionnalités en onglets, sous le haut de l'accueil.
   Une barre d'onglets à icônes, puis pour chacun : le texte à gauche,
   l'aperçu du logiciel à droite, dans un cadre teinté. */

.fo { background: #fff; padding: 72px 24px 80px; }
.fo-inner { max-width: 1160px; margin: 0 auto; }
.fo-titre-section {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fg, #0f172a);
}

/* La barre d'onglets */
.fo-onglets {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 44px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fo-onglets::-webkit-scrollbar { display: none; }
.fo-onglets[hidden] { display: none; }
.fo-onglet {
  appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fg-2, #475569);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.fo-onglet .bi { font-size: 17px; line-height: 1; }
.fo-onglet:hover { background: #f5f4ff; color: var(--fg, #0f172a); }
.fo-onglet.est-actif { background: #ecebfe; color: #3f3ac2; font-weight: 650; }
.fo-onglet:focus-visible { outline: 2px solid #5d59f3; outline-offset: 2px; }

/* Un panneau */
.fo-panneau {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}
.fo-panneau[hidden] { display: none; }
.fo-panneau + .fo-panneau { margin-top: 64px; }
.fo--onglets .fo-panneau + .fo-panneau { margin-top: 0; }

.fo-surtitre {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 650;
  color: #3f3ac2;
}
/* Sans onglets (pas de script, ou téléphone), le surtitre dit de quoi on parle. */
.fo:not(.fo--onglets) .fo-surtitre { display: inline-flex; }

.fo-texte h3 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--fg, #0f172a);
}
.fo-texte ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.fo-texte li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--fg-2, #334155); }
.fo-texte li .bi { color: #5d59f3; font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.fo-lien {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border: 1.5px solid var(--fg, #0f172a);
  border-radius: 999px;
  color: var(--fg, #0f172a);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.fo-lien:hover { background: var(--fg, #0f172a); color: #fff; text-decoration: none; }

/* L'aperçu, dans un cadre teinté */
.fo-visuel {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(160deg, #f3f2ff 0%, #ecebfe 100%);
}
.fo-visuel > * { width: 100%; max-width: 460px; box-shadow: 0 20px 50px -20px rgba(47, 42, 158, .35); }
.fo-mock .ft-mock-title { margin-bottom: 4px; }
.fo-mock-sous { margin: 0 0 14px; font-size: 12px; color: var(--fg-2, #64748b); }
.fo-facture { margin: 0; }

/* L'écran de consultation, reproduit d'après consultation.php */
.fo-consult { background: #f8fafc; border-radius: 16px; overflow: hidden; border: 1px solid #e8eaf2; }
.fo-consult-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #eef0f4; }
.fo-consult-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: #5d59f3; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.fo-consult-qui { flex: 1; min-width: 0; display: grid; font-size: 13.5px; color: #0f172a; line-height: 1.3; }
.fo-consult-qui small { font-size: 11px; color: #64748b; }
.fo-consult-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 9px; background: #5d59f3; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.fo-consult-btn--ghost { background: #fff; color: #3f3ac2; border: 1px solid #c9c7fb; }
.fo-consult-etapes { display: flex; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #eef0f4; overflow: hidden; }
.fo-consult-etapes span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid #e2e8f0; font-size: 11px; font-weight: 600; color: #334155; white-space: nowrap; }
.fo-consult-etapes i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: #f1f5f9; font-style: normal; font-size: 10px; color: #64748b; }
.fo-consult-etapes .est-fait i { background: #dcfce7; color: #15803d; }
.fo-consult-etapes .est-actif { border-color: #c9c7fb; background: #f3f2ff; color: #3f3ac2; }
.fo-consult-etapes .est-actif i { background: #5d59f3; color: #fff; }
.fo-consult-carte { margin: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #eef0f4; }
.fo-consult-carte-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #0f172a; }
.fo-consult-carte-titre i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #5d59f3; color: #fff; font-style: normal; font-size: 12px; }
.fo-consult-motif { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
.fo-consult-corps { display: grid; justify-items: center; gap: 8px; padding: 10px 8px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef0f4; }
.fo-consult-vues { display: flex; padding: 2px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; }
.fo-consult-vues span { padding: 3px 6px; border-radius: 6px; font-size: 9.5px; font-weight: 600; color: #64748b; white-space: nowrap; }
.fo-consult-vues .est-actif { background: #5d59f3; color: #fff; }
.fo-consult-champs { display: grid; align-content: start; gap: 6px; }
.fo-consult-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 600; color: #0f172a; }
.fo-consult-label b { font-size: 15px; color: #3f3ac2; }
.fo-consult-label small { font-size: 10px; color: #94a3b8; }
.fo-consult-texte { padding: 9px 10px; margin-bottom: 6px; border-radius: 9px; border: 1px solid #e2e8f0; font-size: 12px; line-height: 1.45; color: #334155; background: #fff; }
.fo-consult-jauge { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fo-consult-jauge span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a7f3d0, #fcd34d 55%, #f87171); }
.fo-consult-graduation { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #94a3b8; }

.fo-import { background: #fff; border-radius: 16px; padding: 20px 22px; }
.fo-import-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.fo-import-tete > .bi {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #ecebfe; color: #3f3ac2; font-size: 19px;
}
.fo-import-tete span { display: grid; gap: 2px; font-size: 14.5px; color: var(--fg, #0f172a); }
.fo-import-tete small { font-size: 12.5px; color: var(--fg-2, #64748b); }
.fo-import ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.fo-import li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f8fafc; font-size: 14px; color: var(--fg-2, #334155); }
.fo-import li .bi { color: #059669; }
.fo-import li b { color: var(--fg, #0f172a); }
.fo-import-annuler { font-size: 13px; color: var(--fg-2, #64748b); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .fo { padding: 56px 16px 64px; }
  .fo-onglets { justify-content: flex-start; margin-bottom: 28px; }
  .fo-panneau { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fo-visuel { order: -1; min-height: 0; padding: 24px 16px; border-radius: 20px; }
  .fo-texte li { font-size: 15px; }
}

/* ─── Accompagnement : trois cartes ────────────────────────────────── */
.acc { padding: 80px 24px; background: linear-gradient(180deg, #f7f6ff 0%, #f1f0fe 100%); }
.acc-inner { max-width: 1160px; margin: 0 auto; }
.acc h2 { margin: 0; text-align: left; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.02em; color: var(--fg, #0f172a); }
.acc-lead { max-width: 620px; margin: 12px 0 36px; text-align: left; font-size: 17px; line-height: 1.55; color: var(--fg-2, #475569); }
.acc-cartes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
/* La première carte occupe toute la hauteur ; les deux autres se lisent à
   l'horizontale, texte à gauche et visuel à droite. */
.acc-carte:first-child { grid-row: span 2; }
.acc-carte:not(:first-child) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 26px;
  align-content: center;
  padding: 28px;
}
.acc-carte:not(:first-child) h3,
.acc-carte:not(:first-child) p { grid-column: 1; }
.acc-carte:not(:first-child) h3 { align-self: end; }
.acc-carte:not(:first-child) p { align-self: start; }
.acc-carte:not(:first-child) .acc-visuel { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; min-height: 0; align-items: center; }
.acc-carte {
  display: flex; flex-direction: column;
  padding: 32px 30px 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.acc-carte h3 { margin: 0 0 12px; font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--fg, #0f172a); }
.acc-carte p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-2, #475569); }
.acc-visuel { position: relative; margin-top: auto; padding-top: 32px; min-height: 260px; display: grid; align-items: end; }

/* Carte 1 : un graphique de recettes */
.acc-graphe {
  margin: 0 0 28px;
  padding: 16px 18px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef0f4;
  box-shadow: 0 18px 40px -18px rgba(47, 42, 158, .35);
}
.acc-graphe-label { font-size: 12px; color: #64748b; }
.acc-graphe strong { display: block; margin: 2px 0 12px; font-size: 22px; font-weight: 700; color: #0f172a; }
.acc-courbe { display: block; width: 100%; height: 150px; }
.acc-carte:first-child .acc-courbe { height: 250px; }
.acc-carte:first-child .acc-graphe { padding: 20px 22px 14px; }
.acc-carte:first-child .acc-graphe strong { font-size: 28px; }
.acc-mois { display: flex; gap: 10px; margin-top: 6px; }
.acc-mois span { flex: 1; text-align: center; font-size: 10.5px; color: #94a3b8; }
.acc-pastille {
  position: absolute; top: 18px; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #1e1b4b;
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .5);
}
.acc-pastille .bi { color: #86efac; }
.acc-visuel--graphe .acc-pastille { top: 50px; right: 18px; background: #ecfdf5; color: #065f46; box-shadow: none; border: 1px solid #a7f3d0; }
.acc-visuel--graphe .acc-pastille .bi { color: #10b981; }
.acc-pastille--bas { top: auto; bottom: 0; right: 8px; background: #fff; color: #0f172a; border: 1px solid #eef0f4; }
.acc-pastille--bas .bi { color: #5d59f3; }

/* Carte 2 : l'équipe */
.acc-equipe-photo { width: 100%; height: 230px; margin-bottom: 40px; object-fit: cover; object-position: 30% 50%; border-radius: 18px; }
.acc-bulle {
  position: absolute; left: -10px; bottom: 0; right: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px -12px rgba(15, 23, 42, .35);
}
.acc-bulle img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.acc-bulle span { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: #334155; }
.acc-bulle b { font-size: 12px; color: #0f172a; }

/* Carte 3 : l'expert-comptable */
.acc-expert {
  margin: 0 0 40px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef0f4;
  box-shadow: 0 18px 40px -18px rgba(47, 42, 158, .35);
}
.acc-expert-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.acc-expert-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: #ecebfe; color: #3f3ac2; font-weight: 700; }
.acc-expert-tete span:last-child { display: grid; gap: 2px; font-size: 14.5px; color: #0f172a; }
.acc-expert-tete small { font-size: 12px; color: #64748b; }
.acc-expert ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-expert li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #334155; }
.acc-expert li .bi { color: #5d59f3; }

.acc-suite { margin-top: 28px; }
.acc-lien {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #5d59f3;
  color: #fff;
  font-size: 15.5px; font-weight: 600;
  text-decoration: none;
  transition: background-color .15s;
}
.acc-lien:hover { background: #4741ce; color: #fff; text-decoration: none; }

@media (max-width: 980px) {
  .acc { padding: 56px 16px; }
  .acc-cartes { grid-template-columns: minmax(0, 1fr); }
  .acc-carte:first-child { grid-row: auto; }
  .acc-carte:first-child .acc-courbe { height: 150px; }
  .acc-carte { padding: 26px 22px 0; }
  .acc-carte:not(:first-child) { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 22px; }
  .acc-carte:not(:first-child) .acc-visuel { grid-column: 1; grid-row: auto; margin-top: 22px; }
  .acc-visuel { min-height: 0; }
}
@media (max-width: 900px) {
  .fo-consult-btn--ghost { display: none; }
}
@media (max-width: 480px) {
  .fo-consult-motif { grid-template-columns: 96px minmax(0, 1fr); }
  .fo-consult-vues { display: none; }
}

/* ─── Facturation électronique ─────────────────────────────────────── */
.fea { padding: 80px 24px; background: #fff; }
.fea-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fea-sur { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4741ce; }
.fea h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.02em; color: var(--fg, #0f172a); }
.fea-lead { margin: 12px 0 22px; font-size: 17px; line-height: 1.55; color: var(--fg-2, #475569); }
.fea-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.fea-points li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--fg, #0f172a); }
.fea-points i { flex-shrink: 0; color: #4741ce; font-size: 18px; line-height: 1.4; }
.fea-lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #4741ce; text-decoration: none; }
.fea-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.fea-carte { padding: 32px; border-radius: 24px; background: linear-gradient(160deg, #f5f4ff 0%, #fff 70%); border: 1px solid #ecebfb;
             box-shadow: 0 30px 60px -40px rgba(71, 65, 206, .45); display: grid; gap: 14px; }
.fea-logo { width: 220px; height: auto; margin-bottom: 6px; mix-blend-mode: multiply; }
.fea-notif { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff;
             box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25); }
.fea-notif-ico { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #ede9fe; color: #4741ce; font-size: 18px; }
.fea-notif-txt { display: grid; gap: 2px; min-width: 0; }
.fea-notif-txt strong { font-size: 14.5px; color: #16152b; }
.fea-notif-txt span { font-size: 13px; color: #6b6a85; }
.fea-legende { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #6b6a85; }
@media (max-width: 900px) {
  .fea { padding: 56px 20px; }
  .fea-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
