/* Nouveau design (fiches produit, accueil, pages profil). Fira Sans (SIL Open Font License) via @fontsource/fira-sans 5.0.20, sous-ensemble latin. */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fira-sans-latin-700-normal.woff2") format("woff2"); }

.fp {
    --fp-encre: #1c1d26;
    --fp-bleu: #1f4fd1;
    --fp-bleu-survol: #163a9e;
    --fp-bleu-clair: #8fb0ff;
    --fp-pale: #eaf1fb;
    --fp-carte: #f5f8fd;
    --fp-texte-2: #4a4d5a;
    --fp-clair: #c9cbd4;
    --fp-clair-2: #9a9caa;
    --fp-bord: #e4e6eb;
    --fp-marge: max(72px, calc((100% - 1160px) / 2));
    --fp-ombre: 0 1px 2px rgba(28, 29, 38, .04), 0 8px 24px rgba(28, 29, 38, .06);
    --fp-entete: 100px;
    font-family: "Fira Sans", sans-serif;
    color: var(--fp-encre);
    background: #fff;
}
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
.fp a { text-decoration: none; }
.fp h1, .fp h2, .fp h3, .fp p, .fp ul, .fp ol { margin: 0; }
.fp h1, .fp h2, .fp h3 { font-family: inherit; font-style: normal; }
.fp :focus-visible { outline: 3px solid var(--fp-bleu-clair); outline-offset: 2px; }

/* Boutons de demande (omn_boutons_demande) */
.fp .omn-demande { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.fp .omn-demande li { margin: 0; padding: 0; }
.fp .omn-demande a {
    display: inline-block; min-width: 0; padding: 12px 22px; line-height: 1.2;
    border-radius: 8px; font: 500 15px/1.2 "Fira Sans", sans-serif; transition: background .2s, color .2s, border-color .2s;
}
.fp .omn-demande__plein a { background: var(--fp-bleu); color: #fff; border: 1px solid var(--fp-bleu); box-shadow: 0 1px 2px rgba(31, 79, 209, .25), 0 4px 12px rgba(31, 79, 209, .2); }
.fp .omn-demande__plein a:hover { background: var(--fp-bleu-survol); border-color: var(--fp-bleu-survol); color: #fff; }
.fp .omn-demande__contour a { background: none; color: #fff; border: 1px solid #4a4c5a; }
.fp .omn-demande__contour a:hover { border-color: #fff; color: #fff; }

/* Hero sombre ; la vidéo déborde de 120 px sur la section suivante */
.fp-hero {
    background: radial-gradient(60% 70% at 50% 0%, rgba(31, 79, 209, .35), transparent 70%), var(--fp-encre); color: #fff;
    padding: calc(var(--fp-entete) + 32px) var(--fp-marge) 0;
    display: flex; flex-direction: column; gap: 40px;
}
.fp-ariane ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 14px; color: var(--fp-clair-2); }
.fp-ariane li + li::before { content: "›"; margin-right: 8px; }
.fp-ariane a { color: var(--fp-clair-2); }
.fp-ariane a:hover { color: #fff; }
.fp-ariane [aria-current] { color: #fff; }

.fp-hero__texte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.fp-pastille { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--fp-bleu-clair); background: rgba(143, 176, 255, .08); border: 1px solid rgba(143, 176, 255, .25); padding: 5px 12px; border-radius: 999px; }
.fp-hero h1 { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.fp-hero__sous-titre { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--fp-clair); max-width: 640px; }
.fp-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.fp-bouton-video {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid #4a4c5a; border-radius: 8px;
    color: #fff; font-weight: 500; font-size: 15px; line-height: 1.2;
}
.fp-bouton-video:hover { border-color: #fff; color: #fff; }
.fp-bouton-video span { font-size: 12px; }

.fp-hero__media { width: 100%; max-width: 960px; align-self: center; margin-bottom: -96px; position: relative; scroll-margin-top: calc(var(--fp-entete) + 24px); }

/* Cadre « navigateur » des visuels */
.fp-cadre { border: 1px solid #d8dde7; border-radius: 14px; padding: 8px; background: #fff; box-shadow: 0 2px 4px rgba(28, 29, 38, .04), 0 24px 48px -12px rgba(28, 29, 38, .18); }
.fp-cadre__barre { display: flex; gap: 6px; padding: 4px 6px 10px; }
.fp-cadre__barre span { width: 9px; height: 9px; border-radius: 50%; background: #e0e3ea; }
.fp-cadre img, .fp-cadre video { display: block; width: 100%; height: auto; border-radius: 8px; background: #000; }
.fp-cadre img { background: none; }
.fp-hero__media video { max-height: 440px; }

/* Cartes d'accroche vers les atouts */
.fp-accroches { padding: 152px var(--fp-marge) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.fp-accroches--sans-media { padding-top: 56px; }
.fp-accroches a {
    display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--fp-bord); border-radius: 12px; background: #fff; color: var(--fp-encre);
    font-size: 17px; line-height: 1.35; font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fp-accroches a::after { content: "↓"; flex: none; color: var(--fp-bleu); }
.fp-accroches a:hover { border-color: #c4d3f5; box-shadow: var(--fp-ombre); transform: translateY(-2px); color: var(--fp-encre); }

/* Atouts alternés */
.fp-atouts { padding: 96px var(--fp-marge) 0; display: flex; flex-direction: column; gap: 96px; }
.fp-atout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; scroll-margin-top: calc(var(--fp-entete) + 24px); }
.fp-atout--inverse { grid-template-columns: 1.4fr 1fr; }
.fp-atout--inverse .fp-atout__texte { order: 2; }
.fp-atout:not(:has(.fp-atout__media)) { grid-template-columns: minmax(0, 760px); }
.fp-atout__texte { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; color: var(--fp-texte-2); }
.fp-atout__texte h2 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--fp-encre); }
.fp-atout__texte p { font-size: 16px; line-height: 1.6; color: var(--fp-texte-2); }
.fp-atout__texte .media-text { display: flex; flex-direction: column; gap: 12px; }
.fp-atout__texte ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.fp-atout__texte li { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 500; color: var(--fp-encre); }
.fp-atout__texte li::before {
    content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--fp-pale); color: var(--fp-bleu);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* Encadré d'appel à l'action */
.fp-cta {
    margin: 96px var(--fp-marge) 0; background: radial-gradient(80% 120% at 100% 0%, rgba(31, 79, 209, .45), transparent 60%), var(--fp-encre); border-radius: 16px; padding: 40px 48px;
    display: flex; justify-content: space-between; align-items: center; gap: 48px; color: #fff;
}
.fp-cta > div { display: flex; flex-direction: column; gap: 8px; }
.fp-cta h2 { font-size: 26px; line-height: 1.2; font-weight: 600; color: #fff; }
.fp-cta p { font-size: 16px; line-height: 1.5; color: var(--fp-clair); }
.fp-cta .omn-demande { flex: none; justify-content: flex-end; }

/* Autres solutions */
.fp-autres { padding: 88px var(--fp-marge); display: flex; flex-direction: column; gap: 24px; }
.fp-autres h2 { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--fp-encre); }
.fp-autres ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fp-autres a {
    height: 100%; border: 1px solid var(--fp-bord); border-radius: 10px; padding: 20px;
    display: flex; flex-direction: column; gap: 6px; color: var(--fp-encre); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fp-autres a:hover { border-color: #c4d3f5; box-shadow: var(--fp-ombre); transform: translateY(-2px); color: var(--fp-encre); }
.fp-autres strong { font-size: 16px; font-weight: 600; }
.fp-autres span { font-size: 14px; line-height: 1.4; color: var(--fp-texte-2); }

/* Barre flottante */
.fp-barre {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
    background: var(--fp-encre); color: #fff; border-radius: 12px; padding: 12px 12px 12px 24px;
    display: flex; align-items: center; gap: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); font-size: 15px; white-space: nowrap;
}
.fp-barre[hidden] { display: none; }
.fp-barre a { background: var(--fp-bleu); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 500; }
.fp-barre a:hover { background: var(--fp-bleu-survol); color: #fff; }

.fp-espace { height: 96px; }

/* Hero clair (accueil, pages profil) */
.fp-hero-clair {
    background: radial-gradient(50% 80% at 90% 10%, rgba(31, 79, 209, .12), transparent 70%), linear-gradient(180deg, #f4f7fd, #fff);
    padding: calc(var(--fp-entete) + 72px) var(--fp-marge) 72px;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px 64px; align-items: center;
}
.fp-hero-clair--profil { padding-top: calc(var(--fp-entete) + 40px); }
.fp-hero-clair--profil .fp-ariane { grid-column: 1 / -1; }
.fp-ariane--clair ol, .fp-ariane--clair a { color: #6b6e7c; }
.fp-ariane--clair a:hover { color: var(--fp-encre); }
.fp-ariane--clair [aria-current] { color: var(--fp-encre); }
.fp-hero-clair__texte { display: flex; flex-direction: column; gap: 16px; }
.fp-hero-clair h1 { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--fp-encre); text-wrap: pretty; }
.fp-hero-clair--profil h1 { font-size: 44px; }
.fp-hero-clair__sous-titre { font-size: 20px; line-height: 1.4; font-weight: 500; color: var(--fp-texte-2); }
.fp-hero-clair__intro, .fp-hero-clair__intro p { font-size: 17px; line-height: 1.55; color: var(--fp-texte-2); max-width: 480px; }
.fp-hero-clair__actions { margin-top: 8px; }
.fp-hero-clair__choix { align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.fp-hero-clair__choix .fp-hero-clair__actions { margin-top: 0; }
.fp-hero-clair__img img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(28, 29, 38, .25); }
.fp-profils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--fp-texte-2); }
.fp-profils a { padding: 8px 16px; background: #fff; border: 1px solid var(--fp-bord); border-radius: 999px; font-size: 14px; color: var(--fp-encre); font-weight: 500; transition: border-color .2s, background .2s; }
.fp-profils a:hover { border-color: var(--fp-bleu); background: #fff; color: var(--fp-encre); }

/* Initiale produit (emplacement d'icône) */
.fp-initiale {
    flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--fp-pale); color: var(--fp-bleu);
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.fp-initiale--grande { width: 44px; height: 44px; border-radius: 10px; font-size: 17px; background: linear-gradient(135deg, var(--fp-pale), #dbe6fb); }
.fp-initiale--icone { background: #fff; border: 1px solid var(--fp-bord); padding: 6px; }
.fp-initiale--grande.fp-initiale--icone { padding: 8px; background: #fff; }
.fp-initiale--icone img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fp-initiale--hero { width: 64px; height: 64px; border-radius: 16px; padding: 12px; border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }

/* Accueil : nos solutions par profil */
.fp-solutions { padding: 88px var(--fp-marge) 0; display: flex; flex-direction: column; gap: 40px; }
.fp-solutions > h2, .fp-cartes > h2, .fp-metier > h2 { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-align: center; color: var(--fp-encre); text-wrap: balance; }
.fp-solutions__profils { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fp-solutions__profil { border: 1px solid var(--fp-bord); border-radius: 16px; padding: 28px; background: #fff; box-shadow: var(--fp-ombre); display: flex; flex-direction: column; gap: 12px; }
.fp-solutions__profil h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fp-solutions__profil h3 a { color: var(--fp-bleu); }
.fp-solutions__profil h3 a:hover { color: var(--fp-bleu-survol); }
.fp-solutions__profil ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fp-solutions__profil li a { display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; color: var(--fp-encre); transition: background .2s; }
.fp-solutions__profil li a:hover { background: var(--fp-carte); color: var(--fp-encre); }
.fp-solutions__profil li a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.fp-solutions__profil strong { font-size: 15px; font-weight: 600; }
.fp-solutions__profil li a > span:last-child > span { font-size: 14px; color: var(--fp-texte-2); }

/* Accueil : vidéo et métier */
.fp-metier { padding: 88px var(--fp-marge) 0; display: flex; flex-direction: column; gap: 48px; }
.fp-metier__grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.fp-metier__video video { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--fp-encre); box-shadow: 0 24px 48px -16px rgba(28, 29, 38, .3); }
.fp-metier__texte { display: flex; flex-direction: column; gap: 16px; }
.fp-intitule { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fp-bleu); }
.fp-metier__texte p:not(.fp-intitule) { font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--fp-encre); }

/* Logos clients */
.fp-confiance { padding: 88px var(--fp-marge) 0; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.fp-confiance h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6b6e7c; }
.fp-confiance ul { list-style: none; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 32px; }
.fp-confiance li { height: 64px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; }
.fp-confiance img { max-width: 100%; max-height: 32px; width: auto; height: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.fp-confiance li:hover img { filter: none; opacity: 1; }

/* Pages profil : cartes produit */
.fp-cartes { padding: 88px var(--fp-marge) 0; display: flex; flex-direction: column; gap: 40px; }
.fp-cartes__grille { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fp-cartes__grille--3 { grid-template-columns: repeat(3, 1fr); }
.fp-cartes article { height: 100%; border: 1px solid var(--fp-bord); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.fp-cartes article:hover { border-color: #c4d3f5; box-shadow: var(--fp-ombre); transform: translateY(-2px); }
.fp-cartes h3 { margin: 6px 0 0; font-size: 19px; font-weight: 600; color: var(--fp-encre); }
.fp-cartes p { font-size: 15px; line-height: 1.5; color: var(--fp-texte-2); flex: 1; }
.fp-cartes__lien { font-size: 15px; font-weight: 500; color: var(--fp-bleu); margin-top: 8px; }
.fp-cartes__lien:hover { color: var(--fp-bleu-survol); }
.fp-cartes__demo { font-size: 13px; color: var(--fp-texte-2); text-decoration: underline !important; text-underline-offset: 3px; }
.fp-cartes__demo:hover { color: var(--fp-encre); }

@media (prefers-reduced-motion: no-preference) {
    html:has(.fp) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    .fp a, .fp article { transition: none !important; transform: none !important; }
}

@media (max-width: 1279px) {
    .fp { --fp-marge: max(40px, calc((100% - 1160px) / 2)); }
}

@media (max-width: 1024px) {
    .fp { --fp-entete: 70px; }
}

@media (max-width: 1023px) {
    .fp-hero h1 { font-size: 48px; }
    .fp-atout, .fp-atout--inverse { grid-template-columns: 1fr; gap: 40px; }
    .fp-atout--inverse .fp-atout__texte { order: 0; }
    .fp-atouts { gap: 88px; }
    .fp-cta { flex-direction: column; align-items: flex-start; }
    .fp-cta .omn-demande { justify-content: flex-start; }
    .fp-hero-clair, .fp-metier__grille { grid-template-columns: 1fr; }
    .fp-solutions__profils { grid-template-columns: 1fr; }
    .fp-cartes__grille, .fp-cartes__grille--3 { grid-template-columns: repeat(2, 1fr); }
    .fp-confiance ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .fp { --fp-marge: 20px; }
    .fp-hero { padding-top: calc(var(--fp-entete) + 32px); gap: 40px; }
    .fp-hero h1 { font-size: 40px; }
    .fp-hero__sous-titre { font-size: 18px; }
    .fp-hero__media { margin-bottom: -64px; }
    .fp-accroches { padding-top: 112px; gap: 16px; }
    .fp-accroches a { font-size: 16px; padding: 18px; }
    .fp-atouts { padding-top: 72px; gap: 72px; }
    .fp-atout__texte h2 { font-size: 26px; }
    .fp-cta { margin-top: 72px; padding: 36px 24px; }
    .fp-cta h2 { font-size: 22px; }
    .fp-autres { padding: 72px var(--fp-marge) 104px; }
    .fp-espace { height: 104px; }
    .fp-hero-clair, .fp-hero-clair--profil { padding-top: calc(var(--fp-entete) + 40px); padding-bottom: 64px; }
    .fp-hero-clair h1, .fp-hero-clair--profil h1 { font-size: 34px; }
    .fp-hero-clair__sous-titre { font-size: 18px; }
    .fp-solutions, .fp-metier, .fp-cartes, .fp-confiance { padding-top: 72px; gap: 32px; }
    .fp-solutions > h2, .fp-cartes > h2, .fp-metier > h2 { font-size: 26px; }
    .fp-metier > h2 br, .fp-hero-clair h1 br { display: none; }
    .fp-solutions__profil { padding: 24px 20px; }
    .fp-metier__texte p:not(.fp-intitule) { font-size: 18px; }
    .fp-cartes__grille, .fp-cartes__grille--3 { grid-template-columns: 1fr; }
    .fp-confiance ul { grid-template-columns: repeat(2, 1fr); }
    .fp .omn-demande, .fp .omn-demande li, .fp .omn-demande a { width: 100%; text-align: center; }
    .fp-hero__actions { width: 100%; }
    .fp-hero-clair__choix { align-self: stretch; align-items: stretch; }
    .fp-bouton-video { width: 100%; justify-content: center; }
    .fp-barre { left: 0; right: 0; bottom: 0; transform: none; border-radius: 0; justify-content: space-between; padding: 10px 12px 10px 20px; white-space: normal; }
}
