/* =========================================================
   Logetic — composants propres au site produit
   ========================================================= */

:root {
	--lg-orange: #DD7A3E;
	--lg-orange-dark: #C4662C;
	--lg-peach: #FCEBDD;
}

/* Boutons principaux en orange Logetic */
.wp-block-button.is-style-nf-primary .wp-block-button__link,
.nf-btn--primary { background: var(--lg-orange); color: #fff; }
.wp-block-button.is-style-nf-primary .wp-block-button__link:hover,
.nf-btn--primary:hover { background: var(--lg-orange-dark); color: #fff; }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-bar__cta { background: var(--lg-orange); color: #fff; }
body.nf-has-hero .nf-header:not(.is-scrolled):not(.is-mega) .nf-bar__cta:hover { background: var(--lg-orange-dark); color: #fff; }
.nf-logo__svg { width: 150px; }
.nf-header.is-scrolled .nf-logo__svg { width: 136px; }
.nf-logo--drawer .nf-logo__svg { width: 128px; }
@media (max-width: 760px) { .nf-logo__svg, .nf-header.is-scrolled .nf-logo__svg { width: 124px; } }
[class*="nf-ico-"]::before { background-color: var(--nf-ink); }
.nf-section--mist [class*="nf-ico-"]::before { background-color: var(--nf-ink); }
.lg-cards .nf-feature:nth-child(3n+2) [class*="nf-ico-"]::before { background-color: var(--lg-orange); }

/* Icônes supplémentaires */
.nf-ico-phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.nf-ico-ticket::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v2M14 11v2M14 16v2'/%3E%3C/svg%3E"); }
.nf-ico-chart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.nf-ico-globe::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }

/* ---------- Héro d'accueil ---------- */
.wp-block-cover.lg-hero { align-items: center; }
.lg-hero .wp-block-cover__image-background { object-position: 62% 40%; }
.lg-hero__grid { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lg-hero__grid > * { margin: 0 !important; }
.lg-hero h1 { max-width: 16ch; }
.lg-hero .wp-block-buttons { gap: 12px; }
@media (max-width: 1000px) {
	.lg-hero__grid { grid-template-columns: 1fr; }
	.lg-portal--hero { display: none; }
}

/* ---------- Fenêtre du portail ---------- */
.lg-portal {
	position: relative;
	width: min(330px, 100%);
	margin-inline: auto;
	padding: 22px 26px 18px;
	border-radius: 26px;
	background: #fff;
	color: var(--nf-slate);
	text-align: center;
	box-shadow: 0 50px 90px -40px rgba(0, 20, 26, .65), 0 0 0 1px rgba(0, 67, 84, .06);
	font-size: 13px;
	line-height: 1.4;
}
.lg-portal p { margin: 0; }
.lg-portal__lang { display: flex; justify-content: flex-end; gap: 2px; margin: 0 -6px 6px auto; width: max-content; padding: 2px; border-radius: 999px; background: #F1F4F5; font-size: 11px; font-weight: 600; color: var(--nf-muted); }
.lg-portal__lang > * { padding: 2px 9px; border-radius: 999px; }
.lg-portal__lang b { background: #fff; color: var(--nf-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lg-portal__logo { display: block; width: 150px; height: auto; margin: 4px auto 18px; }
.lg-portal__title { font-size: 21px; font-weight: 700; font-stretch: 105%; color: var(--nf-ink); line-height: 1.2; }
.lg-portal__sub { margin-top: 6px !important; color: var(--nf-muted); }
.lg-portal__field { margin-top: 18px; padding: 12px 14px; border: 1px solid #D5DEE1; border-radius: 12px; text-align: left; color: #8A9BA2; }
.lg-portal__check { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; }
.lg-portal__check i { flex: none; width: 15px; height: 15px; border-radius: 4px; background: var(--lg-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.lg-portal__link { margin-top: 6px !important; font-size: 12px; color: var(--lg-orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.lg-portal__btn { margin-top: 16px; padding: 13px; border-radius: 12px; background: var(--lg-orange); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lg-portal__powered { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid #EEF2F3; font-size: 11px; color: #8A9BA2; }
.lg-portal__powered span { display: inline-block; margin-left: 4px; padding: 2px 8px; border: 1px dashed #C6D2D6; border-radius: 6px; font-weight: 600; color: var(--nf-muted); }
.lg-portal--hero { animation: lg-float 7s ease-in-out infinite; }
@keyframes lg-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lg-portal--hero { animation: none; } }

/* Photo + portail superposé */
.lg-stack { padding-bottom: 40px; }
.lg-stack .wp-block-image img { aspect-ratio: 4 / 4.3; }
.lg-stack .lg-portal { position: absolute; right: -24px; bottom: 0; width: 280px; margin: 0; padding: 18px 20px 14px; font-size: 12px; }
.is-reversed .lg-stack .lg-portal { right: auto; left: -24px; }
.lg-stack .lg-portal__logo { width: 120px; margin-bottom: 12px; }
.lg-stack .lg-portal__title { font-size: 18px; }
.lg-stack .lg-portal__field { margin-top: 12px; padding: 10px 12px; }
.lg-stack .lg-portal__btn { margin-top: 12px; padding: 11px; font-size: 12px; }
.lg-stack .lg-portal__powered { display: none; }
@media (max-width: 1100px) { .lg-stack .lg-portal { right: 12px; } .is-reversed .lg-stack .lg-portal { left: 12px; } }
@media (max-width: 600px) {
	.lg-stack { padding-bottom: 0; }
	.lg-stack .wp-block-image img { aspect-ratio: 4 / 3.4; }
	.lg-stack .lg-portal, .is-reversed .lg-stack .lg-portal { position: relative; right: auto; left: auto; margin: -64px 12px 0 auto; width: min(260px, 82%); }
	.lg-stack .lg-portal__sub, .lg-stack .lg-portal__link { display: none; }
}
.lg-portal--panel { width: min(360px, 100%); }

/* ---------- Console (journal, profils) ---------- */
.lg-console { border-radius: 20px; background: #fff; box-shadow: var(--nf-shadow); overflow: hidden; font-size: 13px; color: var(--nf-slate); }
.lg-console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--nf-ink); color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 600; }
.lg-console__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.lg-console__bar i:first-child { background: var(--lg-orange); }
.lg-console__bar span { margin-left: 8px; }
.lg-console__head, .lg-console__rows li { display: grid; grid-template-columns: .8fr 1.5fr 1fr .8fr; gap: 10px; align-items: center; padding: 10px 18px; }
.lg-console__head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-muted); border-bottom: 1px solid var(--nf-line); }
.lg-console__rows { list-style: none; margin: 0; padding: 0; }
.lg-console__rows li { border-bottom: 1px solid #EEF2F3; font-variant-numeric: tabular-nums; }
.lg-console__rows li > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-console__rows b { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #EEF2F3; font-size: 11.5px; font-weight: 600; color: var(--nf-muted); }
.lg-console__rows b.is-on { background: var(--lg-peach); color: var(--lg-orange-dark); }
.lg-console--profiles .lg-console__rows b { padding: 0; background: none; font-size: 13.5px; color: var(--nf-ink); }
.lg-console__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 18px; font-size: 12px; color: var(--nf-muted); }
.lg-seal { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--nf-ink); }
.lg-seal::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4662C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 520px) {
	.lg-console__head, .lg-console__rows li { grid-template-columns: .9fr 1.4fr .9fr; padding: 9px 14px; }
	.lg-console__head > :nth-child(3), .lg-console__rows li > :nth-child(3) { display: none; }
}

/* ---------- Étapes ---------- */
.nf-steps:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-contact .nf-steps { grid-template-columns: 1fr !important; gap: 20px; margin-top: 32px; }
.nf-contact .nf-steps::before { display: none; }
@media (max-width: 900px) { .nf-steps:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr; } }

/* ---------- Déploiement ---------- */
.lg-deploy { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-deploy > * { margin: 0 !important; }
.lg-deploy__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--nf-r-l); background: #fff; box-shadow: var(--nf-shadow-soft); border-top: 4px solid var(--lg-orange); }
.lg-deploy__card--soon { border-top-color: var(--nf-ink); background: linear-gradient(160deg, #fff 0%, #F6F9F9 100%); }
.lg-deploy__card h3 { margin: 16px 0 12px; }
.lg-deploy__card .wp-block-list { margin: 24px 0 0; }
.lg-badge { display: inline-flex !important; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--lg-peach); color: var(--lg-orange-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lg-badge--soon { background: #E3ECEE; color: var(--nf-ink); }
@media (max-width: 800px) { .lg-deploy { grid-template-columns: 1fr; } }

/* ---------- Schéma de flux ---------- */
.lg-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: lg; }
.lg-flow__node { position: relative; padding: 28px 24px; border-radius: var(--nf-r-m); background: var(--nf-mist); border: 1px solid var(--nf-line); }
.lg-flow__node b { display: block; margin-bottom: 6px; font-size: 18px; font-stretch: 105%; color: var(--nf-ink); }
.lg-flow__node span { font-size: 14.5px; color: var(--nf-muted); }
.lg-flow__node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 20px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD7A3E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.lg-flow__node.is-logetic { background: var(--nf-ink); border-color: var(--nf-ink); box-shadow: var(--nf-shadow); }
.lg-flow__node.is-logetic b { color: #fff; }
.lg-flow__node.is-logetic span { color: var(--nf-glacier); }
@media (max-width: 900px) {
	.lg-flow { grid-template-columns: 1fr; gap: 26px; }
	.lg-flow__node:not(:last-child)::after { top: auto; bottom: -24px; right: 50%; transform: translateX(50%) rotate(90deg); }
}

/* ---------- Conformité ---------- */
.lg-law { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-law > * { margin: 0 !important; }
.lg-law__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--nf-r-l); border: 1px solid var(--nf-line); background: #fff; }
.lg-law__flag { display: inline-flex !important; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--nf-ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lg-law__card h3 { margin: 16px 0 12px; }
.lg-law__card .wp-block-list { margin: 24px 0 0; }
@media (max-width: 800px) { .lg-law { grid-template-columns: 1fr; } }
.lg-table-wrap { overflow-x: auto; border-radius: var(--nf-r-m); background: #fff; box-shadow: var(--nf-shadow-soft); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--nf-line); vertical-align: top; }
.lg-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-muted); background: #F8FAFA; }
.lg-table tbody th { color: var(--nf-ink); font-weight: 650; }
.lg-table tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
	.lg-table thead { display: none; }
	.lg-table tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--nf-line); }
	.lg-table th, .lg-table td { display: block; padding: 2px 0; border: 0; }
}
.lg-cards--after { margin-top: 48px !important; }
.lg-disclaimer { margin-top: 40px !important; padding: 18px 22px; border-left: 3px solid var(--lg-orange); border-radius: 0 12px 12px 0; background: var(--nf-mist); font-size: 14px; color: var(--nf-muted); max-width: 820px; }

/* ---------- Secteurs (6 tuiles) ---------- */
.nf-tiles.lg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; }
.nf-tiles.lg-tiles > :first-child, .nf-tiles.lg-tiles > :nth-child(6) { grid-column: auto; grid-row: auto; }
@media (max-width: 1000px) { .nf-tiles.lg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nf-tiles.lg-tiles { grid-template-columns: 1fr; grid-auto-rows: 260px; } }

/* ---------- Divers ---------- */
.lg-split--mock { align-items: center; }
.lg-split .wp-block-buttons { margin-top: 8px; }
.lg-footer__cta .wp-block-buttons { margin: 0; }

/* ---------- Ajustements ---------- */
.lg-hero h1.nf-display { font-size: clamp(2.4rem, 4.6vw, 4.4rem) !important; max-width: 17ch; }
.lg-nowrap { white-space: nowrap; }
.wp-block-cover.nf-page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 240px; background: linear-gradient(180deg, rgba(0, 34, 43, .6), rgba(0, 34, 43, 0)); z-index: 1; pointer-events: none; }
.lg-split--mock > .wp-block-column { display: flex; flex-direction: column; justify-content: center; }
