/* flexee.tn - charte Flexee : navy dominant, bleu, rose en accent ; Poppins (titres), Nunito (texte). */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --navy: #1C1B67;
  --blue: #1B29A4;
  --pink: #FF1087;
  --deep: #0D145A;
  --indigo: #3B4BC8;
  --light: #F5F6FB;
  --mist: #E9EBF5;
  --pink-pale: #FFE3F0;
  --ink-soft: #4A4E7A;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; color: var(--navy); background: var(--light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Poppins", "Segoe UI", Arial, sans-serif; color: var(--navy); line-height: 1.18; margin: 0 0 16px; }
h1 { font-weight: 800; font-size: clamp(1.7rem, 2.9vw, 2.45rem); letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.1rem; }
p { margin: 0 0 14px; }
.shell { width: min(1160px, 100% - 32px); margin: 0 auto; }
.kicker { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; z-index: 60; }

/* En-tête */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--mist); }
[id] { scroll-margin-top: 92px; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 34px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: .95rem; }
.header-nav a { text-decoration: none; color: var(--navy); }
.header-nav a:hover { color: var(--blue); }
.lang { display: inline-flex; background: var(--mist); border-radius: 10px; padding: 3px; }
.lang a, .lang span { padding: 4px 10px; border-radius: 8px; font-size: .85rem; }
.lang span { background: #fff; }

/* Boutons : pleins, sans contour coloré */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: .95rem; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #E6007E; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--deep); }
.btn-light { background: #fff; color: var(--navy); }

/* Hero */
.hero { background: #fff; padding: 36px 0 56px; }
.hero .shell { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-signature { width: min(230px, 60%); margin-bottom: 20px; }
.hero-visual img { width: 100%; max-width: 380px; margin: 0 auto; }

/* Sections */
.section { padding: 64px 0; }
.section-white { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.two img { width: 100%; max-width: 380px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.chips li { background: var(--mist); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .9rem; }

/* Les trois solutions : bandeau, écrans, légende et pastilles en HTML (traduisibles) */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.solution { display: flex; flex-direction: column; }
.sol-card { background: #fff; border: 1px solid var(--mist); border-radius: 26px; overflow: hidden; margin-bottom: 18px; }
.sol-head { display: grid; grid-template-columns: 58px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; color: #fff; }
.sol-head img { grid-row: span 2; width: 58px; height: 58px; border-radius: 14px; }
.sol-name { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.4rem; line-height: 1.1; color: #fff; margin: 0; }
.sol-name[data-name]::before { content: attr(data-name); }
.sol-tag { margin: 3px 0 0; font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.sol-academy .sol-head { background: linear-gradient(100deg, #161D61, #2C3990); }
.sol-young .sol-head { background: linear-gradient(100deg, #ED3086, #FD6AAB); }
.sol-pay .sol-head { background: linear-gradient(100deg, #2F3C97, #4E59CC); }
.sol-screens { margin: 0; position: relative; }
.sol-screens img { width: 100%; }
.sol-caption { text-align: center; font-weight: 800; font-size: 1rem; line-height: 1.35; color: var(--navy); margin: 4px 18px 12px; }
.sol-chips { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 18px 20px; margin: 0; }
.sol-chips li { display: inline-flex; align-items: center; gap: 8px; background: #E3E6F7; color: #2B3594; font-weight: 800; font-size: .92rem; padding: 6px 16px; border-radius: 999px; }
.sol-chips svg { width: 18px; height: 18px; }
.soon { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--navy); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 12px; white-space: nowrap; }
.sol-below-title { font-size: 1.05rem; margin-bottom: 6px; }
.solution > p { color: var(--ink-soft); font-size: .98rem; margin: 0 4px 10px; }
.solution .more { margin: 0 4px; font-weight: 800; text-decoration: none; }
.solution .more::after { content: " \2192"; }
.solution .more.muted { color: var(--ink-soft); font-weight: 700; }
.solution .more.muted::after { content: none; }
.solution > .sol-below-title { margin-left: 4px; }

/* Parcours */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.journey li { background: #fff; border-radius: var(--radius); padding: 26px; }
.journey .when { display: inline-block; background: var(--pink-pale); color: #B0005A; font-weight: 800; border-radius: 10px; padding: 3px 12px; font-size: .9rem; margin-bottom: 12px; }
.journey p { margin: 0; font-weight: 700; font-size: 1.05rem; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { background: var(--light); border-radius: 22px; padding: 24px; }
.pillar svg { width: 40px; height: 40px; margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Classement F6S et partenaires (logos d'origine, non retouchés, sur tuiles blanches) */
.trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: stretch; }
.trust-f6s { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.trust-f6s .kicker { color: #fff; opacity: .75; }
.trust-f6s h2 { color: #fff; }
.trust-f6s p { color: #D9DCF2; }
.trust-badge { background: #fff; border-radius: 22px; padding: 16px 22px; margin-top: 14px; }
.trust-badge img { width: 100%; max-width: 420px; margin: 0 auto; }
.trust-partners { background: #fff; border-radius: var(--radius); padding: 32px 34px; }
.trust-partners h3 { font-size: 1.15rem; margin-bottom: 18px; }
.trust-logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-logos li { border: 1px solid var(--mist); border-radius: 18px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; }
.trust-logos img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }

/* Pied de page */
.site-footer { background: var(--deep); color: #C9CDEB; padding: 46px 0 34px; margin-top: 76px; font-size: .95rem; }
.site-footer .shell { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.site-footer img { height: 32px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 8px; font-size: .85rem; }

@media (max-width: 960px) {
  .hero .shell, .two, .trust, .site-footer .shell { grid-template-columns: 1fr; }
  .solutions, .journey { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .header-nav .hide-sm { display: none; }
  .trust-f6s, .trust-partners { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
