/* ==========================================================================
   OINTECH — logiciels : méga-menu « Nos solutions », annuaire /solutions/
   et pages dédiées /solutions/{logiciel}/
   ========================================================================== */

/* Pastille colorée (initiale du logiciel) */
.sol-badge {
	display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px;
	background: var(--sol, var(--navy-700)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .8rem; line-height: 1;
}
.sol-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--slate-900); letter-spacing: -.02em; }
.sol-wordmark .sol-badge { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }

/* Méga-menu (ordinateur) */
@media (min-width: 1025px) {
	.site-header .container { position: relative; }
	.nav__item--mega { position: static; }
	.mega { left: 24px; right: 24px; width: auto; transform: translateY(6px); padding: 32px 36px 24px; }
	.nav__item--has-sub:hover .mega, .nav__item--has-sub:focus-within .mega { transform: translateY(0); }
	.mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 40px; }
}
.mega__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-900); }
.subnav a.mega__link { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--slate-700); }
.subnav a.mega__link:hover { background: var(--navy-50); color: var(--navy-700); }
.subnav a.mega__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 16px 0 0; width: 100%; border-top: 1px solid var(--line); border-radius: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.subnav a.mega__all:hover { background: none; }
.subnav a.mega__all .icon { width: 16px; height: 16px; }
@media (max-width: 1024px) {
	.mega__grid { display: grid; gap: 18px; padding: 4px 4px 0; }
	.subnav a.mega__all { margin-top: 12px; }
}

/* Logos cliquables (annuaire) */
.hero-logos a {
	display: grid; place-items: center; width: 200px; height: 92px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.hero-logos a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-100); }
.hero-logos a img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.hero-logos a .sol-wordmark { font-size: 1.3rem; }

/* Annuaire par catégorie */
.sol-cats { border-top: 1px solid var(--line); }
.sol-cat { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.sol-cat h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sol-cat p { margin: 0; color: var(--slate-600); }
.sol-cat__items { display: grid; gap: 10px; align-content: start; }
.sol-chip {
	display: grid; grid-template-columns: auto 1fr 20px; align-items: center; gap: 14px; padding: 14px 18px;
	border: 1px solid var(--line); border-radius: 12px; color: var(--slate-700); transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.sol-chip:hover { border-color: var(--navy-100); background: var(--navy-50); transform: translateX(4px); color: var(--slate-700); }
.sol-chip .sol-badge { width: 36px; height: 36px; border-radius: 9px; font-size: 1rem; }
.sol-chip b { display: block; font-family: var(--font-head); color: var(--slate-900); }
.sol-chip small { display: block; color: var(--slate-500); font-size: .875rem; line-height: 1.4; }
.sol-chip > .icon { width: 18px; height: 18px; color: var(--navy-700); }

/* Page d'un logiciel : en-tête */
.sol-hero { position: relative; padding: 72px 0 96px; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.sol-hero::before {
	content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%;
	background: var(--sol); opacity: .07; pointer-events: none;
}
.sol-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.sol-hero .breadcrumbs { color: var(--slate-400); }
.sol-hero .breadcrumbs a { color: var(--slate-600); }
.sol-hero__logo { margin-bottom: 24px; }
.sol-hero__logo img { height: 46px; width: auto; }
.sol-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.sol-hero__text > p { color: var(--slate-600); margin-bottom: 32px; }

/* Lecteur vidéo */
.video {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; cursor: pointer;
	border-radius: var(--radius-lg); background: var(--navy-900); box-shadow: var(--shadow-lg); font: inherit;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: var(--navy-700); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	transition: transform .3s var(--ease);
}
.video__play .icon { width: 40px; height: 40px; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video--empty, .video--dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.video--empty { cursor: default; }
.video--empty .video__play { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.video__soon { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: #AEBBD3; font-size: .95rem; }
.video--file { cursor: default; }

/* Modules (sans cadres) */
.sol-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; border-top: 1px solid var(--line); }
.sol-module { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.sol-module > .icon { width: 28px; height: 28px; color: var(--navy-700); margin-top: 2px; }
.sol-module h3 { font-size: 1.1rem; margin-bottom: 4px; }
.sol-module p { margin: 0; color: var(--slate-600); }

/* Étapes d'accompagnement */
.sol-label { margin: 28px 0 14px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.sol-steps { counter-reset: st; display: grid; }
.sol-steps li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sol-steps li:first-child { padding-top: 0; }
.sol-steps li::before { content: counter(st, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 800; color: var(--gold-500); font-size: 1.1rem; }
.sol-steps b { font-family: var(--font-head); color: #fff; font-size: 1.05rem; }
.sol-steps span { color: #AEBBD3; }

/* Vidéos */
.sol-empty { display: flex; gap: 20px; align-items: center; padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sol-empty > .icon { width: 40px; height: 40px; color: var(--navy-600); flex: none; }
.sol-empty p { margin: 0; color: var(--slate-600); }
.sol-video { margin: 0; }
.sol-video .video { box-shadow: var(--shadow); border-radius: var(--radius); }
.sol-video figcaption { margin-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--slate-900); }
.sol-faq p { margin: 0; color: var(--slate-600); }

/* Autres logiciels */
.sol-others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-other {
	display: grid; grid-template-columns: 1fr 20px; gap: 10px 12px; align-items: center;
	padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--slate-600);
	transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.sol-other:hover { border-color: var(--navy-100); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--slate-600); }
.sol-other__logo img { height: 30px; width: auto; }
.sol-other__logo .sol-wordmark { font-size: 1.15rem; }
.sol-other__text { grid-column: 1; font-size: .95rem; line-height: 1.5; }
.sol-other > .icon { grid-column: 2; grid-row: 1; width: 18px; height: 18px; color: var(--navy-700); }

@media (max-width: 1024px) {
	.sol-hero__grid, .sol-cat { grid-template-columns: 1fr; gap: 32px; }
	.sol-modules { grid-template-columns: 1fr; }
	.sol-others { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.sol-hero { padding: 48px 0 64px; }
	.sol-hero h1 { font-size: 1.8rem; }
	.sol-hero__logo img { height: 36px; }
	.video__play { width: 64px; height: 64px; }
	.video__play .icon { width: 30px; height: 30px; }
	.sol-others { grid-template-columns: 1fr; }
	.sol-empty { flex-direction: column; text-align: center; padding: 24px; }
	.hero-logos a { width: calc(50% - 5px); height: 64px; }
	.hero-logos a img { height: 26px; }
	.hero-logos a .sol-wordmark { font-size: 1.05rem; }
	.sol-cat { padding: 28px 0; gap: 18px; }
}

/* Les pastilles ne doivent pas hériter des styles génériques du menu ou des logos */
.subnav .sol-badge, .hero-logos .sol-badge, .sol-wordmark .sol-badge {
	display: inline-grid; place-items: center; margin: 0; color: #fff; font-family: var(--font-head); font-weight: 800; line-height: 1;
	background: var(--sol, var(--navy-700)); border: 0; box-shadow: none; transform: none;
}
.subnav .sol-badge { width: 26px; height: 26px; font-size: .8rem; border-radius: 7px; }
.hero-logos .sol-badge, .sol-wordmark .sol-badge { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }
.hero-logos .sol-wordmark { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; width: auto; height: auto; border: 0; box-shadow: none; background: none; }


/* Captures de l'interface : rangée de 3 images (comme sur les pages produit des éditeurs) */
.sol-screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.sol-screens img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 1024px) { .sol-screens { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .sol-screens { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; } }

/* Mobile : au toucher, le sous-menu prend le focus ; on neutralise le décalage prévu pour l'ordinateur */
@media (max-width: 1024px) {
	.nav__item--has-sub:hover .subnav, .nav__item--has-sub:focus-within .subnav,
	.nav__item--has-sub:hover .mega, .nav__item--has-sub:focus-within .mega { transform: none; }
	.mega { padding: 4px 0 16px; }
	.mega__grid { gap: 20px; }
	.mega__col { padding: 14px 16px; background: var(--surface); border-radius: 12px; }
	.mega__title { font-size: .72rem; margin-bottom: 8px; color: var(--slate-500); }
	.subnav a.mega__link { padding: 9px 8px; font-size: 1rem; color: var(--slate-900); }
}
.sol-other__text b { display: block; font-family: var(--font-head); color: var(--slate-900); font-size: 1rem; margin-bottom: 2px; }

/* Méga-menu : vrai logo de l'éditeur devant le nom du logiciel */
.mega__logo { display: inline-flex; align-items: center; justify-content: flex-start; flex: none; width: 62px; height: 22px; }
.mega__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* Menu mobile : textes plus compacts */
@media (max-width: 1024px) {
	.nav__link { font-size: 1rem; padding: 15px 4px; }
	.subnav a b { font-size: .9rem; }
	.subnav span { font-size: .8rem; }
	.subnav a.mega__link { font-size: .9rem; padding: 7px 8px; }
	.mega__title { font-size: .68rem; }
	.nav .header-cta--mobile { font-size: .925rem; padding: 14px 22px; }
}

/* ==========================================================================
   Dispositions des pages logiciel (champ « Disposition de la page »)
   ========================================================================== */
/* Vitrine : en-tête centré, grande vidéo dessous */
.sol-hero--vitrine .sol-hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
.sol-hero--vitrine .sol-hero__text { max-width: 780px; margin: 0 auto; }
.sol-hero--vitrine .sol-hero__logo img { margin: 0 auto; }
.sol-hero--vitrine .btn-row { justify-content: center; }
.sol-hero--vitrine .sol-hero__video { width: 100%; max-width: 980px; margin: 0 auto; }
/* Bandeau : en-tête à la couleur du logiciel */
.sol-hero--bandeau { background: linear-gradient(135deg, var(--sol), color-mix(in srgb, var(--sol) 55%, #050F24)); }
.sol-hero--bandeau::before { background: #fff; opacity: .06; }
.sol-hero--bandeau h1 { color: #fff; }
.sol-hero--bandeau .sol-hero__text > p { color: rgba(255, 255, 255, .85); }
.sol-hero--bandeau .sol-hero__logo { display: inline-flex; padding: 12px 18px; background: #fff; border-radius: 12px; }
.sol-hero--bandeau .sol-hero__logo img { height: 38px; }
/* Inversée : vidéo à gauche */
.sol-hero--inversee .sol-hero__grid { grid-template-columns: 1.05fr 1fr; }
.sol-hero--inversee .sol-hero__video { order: -1; }

/* Fonctionnalités en cartes */
.sol-modules--cards { grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 0; }
.sol-modules--cards .sol-module { grid-template-columns: 1fr; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sol-modules--cards .sol-module > .icon { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--sol) 10%, #fff); color: var(--sol); }
/* Fonctionnalités numérotées */
.sol-modules--numbers { counter-reset: mod; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.sol-modules--numbers .sol-module { counter-increment: mod; grid-template-columns: 1fr; gap: 8px; }
.sol-modules--numbers .sol-module > .icon { display: none; }
.sol-modules--numbers .sol-module::before { content: counter(mod, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--sol); }
/* Fonctionnalités en lignes alternées */
.sol-modules--rows { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; border-top: 0; gap: 16px; }
.sol-modules--rows .sol-module { grid-template-columns: 72px 1fr; gap: 24px; align-items: center; padding: 22px 26px; border: 0; border-radius: var(--radius); background: var(--surface); }
.sol-modules--rows .sol-module > .icon { width: 72px; height: 72px; padding: 20px; margin: 0; border-radius: 16px; background: var(--sol); color: #fff; }
.sol-modules--rows .sol-module:nth-child(even) { grid-template-columns: 1fr 72px; text-align: right; }
.sol-modules--rows .sol-module:nth-child(even) > .icon { order: 2; }

/* Avantages centrés (vitrine, inversée) */
.sol-benefits--center { max-width: 900px; text-align: center; }
.sol-benefits--center .eyebrow { justify-content: center; }
.sol-benefits--center .sol-benefits__list { margin-top: 32px; text-align: left; }

@media (max-width: 1024px) {
	.sol-hero--inversee .sol-hero__grid { grid-template-columns: 1fr; }
	.sol-hero--inversee .sol-hero__video { order: 0; }
	.sol-modules--cards, .sol-modules--numbers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.sol-modules--cards, .sol-modules--numbers { grid-template-columns: 1fr; }
	.sol-modules--cards .sol-module { padding: 22px; }
	.sol-modules--rows .sol-module, .sol-modules--rows .sol-module:nth-child(even) { grid-template-columns: 52px 1fr; gap: 16px; padding: 18px; text-align: left; }
	.sol-modules--rows .sol-module:nth-child(even) > .icon { order: 0; }
	.sol-modules--rows .sol-module > .icon { width: 52px; height: 52px; padding: 14px; border-radius: 12px; }
}

/* Cadre vidéo : sans contour ni ombre, miniature nette (pas de bandes noires) */
.video, .sol-video .video { box-shadow: none; background: transparent; }
.video img { opacity: 1; }
.video:hover img { transform: scale(1.02); }
.video img.is-letterbox { transform: scale(1.04); } /* version 480×360 : on rogne les bandes noires */
.video:hover img.is-letterbox { transform: scale(1.06); }
.video--empty, .video--dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }

/* ==========================================================================
   Disposition « Moderne » (page Odoo)
   ========================================================================== */
.sol-hero--moderne { background: linear-gradient(180deg, color-mix(in srgb, var(--sol) 7%, #fff), #fff); }
.sol-hero--moderne::before { display: none; }
.sol-hero--moderne .sol-hero__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
.sol-hero--moderne .sol-hero__logo img { height: 52px; }
/* Modules : image officielle du module, nom et texte */
.sol-modules--apps { grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 0; }
.sol-modules--apps .sol-module { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border: 0; border-radius: var(--radius); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.sol-modules--apps .sol-module:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sol-modules--apps .sol-module__img { width: 64px; height: 64px; object-fit: contain; }
.sol-modules--apps .sol-module > .icon { width: 40px; height: 40px; color: var(--sol); }
.sol-modules--apps .sol-module h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sol-modules--apps .sol-module p { font-size: .94rem; }
/* Pourquoi choisir : image + texte */
.sol-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sol-why__media img { width: 100%; height: auto; }
.sol-why .checklist { margin-top: 24px; }

@media (max-width: 1024px) {
	.sol-hero--moderne .sol-hero__grid, .sol-why__grid { grid-template-columns: 1fr; gap: 32px; }
	.sol-modules--apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.sol-modules--apps { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sol-modules--apps .sol-module { padding: 20px 16px; gap: 12px; }
	.sol-modules--apps .sol-module__img { width: 48px; height: 48px; }
	.sol-modules--apps .sol-module h3 { font-size: .95rem; }
	.sol-modules--apps .sol-module p { font-size: .85rem; }
}
@media (max-width: 680px) {
	.sol-modules--apps { grid-template-columns: 1fr; gap: 10px; }
	.sol-modules--apps .sol-module { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px; }
	.sol-modules--apps .sol-module__img { flex: none; width: 44px; height: 44px; }
	.sol-modules--apps .sol-module h3 { font-size: 1rem; margin-bottom: 4px; }
	.sol-modules--apps .sol-module p { font-size: .9rem; }
}
/* Les miniatures YouTube ont une ligne noire de 1 px en haut et en bas : léger zoom permanent pour la rogner. */
.video img { transform: scale(1.03); }
.video:hover img { transform: scale(1.05); }
.video img.is-letterbox { transform: scale(1.06); }
.video:hover img.is-letterbox { transform: scale(1.08); }

/* Icône propre au logiciel (ex. icônes Sage 100) */
.sol-hero__logo { display: flex; align-items: center; gap: 16px; }
.sol-hero__logo .sol-app-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; }
.mega__logo .sol-app-icon { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.mega__logo:has(.sol-app-icon) { width: 22px; }
.sol-other__logo .sol-app-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.sol-why__grid--text { align-items: start; }
@media (max-width: 680px) { .sol-hero__logo .sol-app-icon { width: 44px; height: 44px; border-radius: 11px; } }

/* Fonctionnalités : nombre de colonnes choisi pour des lignes complètes (--cols, calculé dans le gabarit) */
@media (min-width: 1025px) {
	.sol-modules--apps, .sol-modules--cards, .sol-modules--numbers { grid-template-columns: repeat(var(--cols, 3), 1fr); }
}
@media (min-width: 681px) and (max-width: 1024px) {
	.sol-modules--apps, .sol-modules--cards, .sol-modules--numbers { grid-template-columns: repeat(2, 1fr); }
}
/* Icône du module à côté de « Pourquoi choisir… » */
.sol-why__title { display: flex; align-items: center; gap: 18px; }
.sol-why__title .sol-app-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; }
@media (max-width: 680px) { .sol-why__title { gap: 14px; } .sol-why__title .sol-app-icon { width: 48px; height: 48px; border-radius: 12px; } }
.sol-hero__text > p:last-child { margin-bottom: 0; }

/* Logo du logiciel plus grand (réglage « Taille du logo » de la fiche) */
.sol-hero__logo--grand img, .sol-hero--moderne .sol-hero__logo--grand img { height: 84px; }
@media (max-width: 680px) { .sol-hero__logo--grand img, .sol-hero--moderne .sol-hero__logo--grand img { height: 64px; } }

/* Moins de jaune dans les textes : étiquette et numéros en blanc atténué (le jaune reste sur les icônes et les boutons). */
.sol-label { color: rgba(255, 255, 255, .8); }
.sol-steps li::before { color: rgba(255, 255, 255, .55); }
