/* ==========================================================================
   WebApp42 — styles du thème
   Couleurs : modifiables dans Personnaliser → WebApp42 → Couleurs
   ========================================================================== */

/* ---------- Polices locales (aucune requête vers Google) ---------- */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
	--w42-primary: #3B74F2;
	--w42-dark: #111318;
	--w42-darker: #0B0D11;
	--w42-text: #4B5563;
	--w42-heading: #111318;
	--w42-light: #F4F7FE;
	--w42-soft: #EAF1FE;
	--w42-border: #E3E8F2;
	--w42-on-dark: #C9D3E6;
	--w42-radius: 16px;
	--w42-shadow: 0 18px 40px -18px rgba(17, 19, 24, .22);
	--w42-header-h: 84px;
	--w42-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--w42-text);
	font-family: var(--w42-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--w42-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--w42-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--w42-font); color: var(--w42-heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.125rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.3125rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.3125rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: .9375rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--w42-primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--w42-primary); color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.w42-skip {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: #fff; color: var(--w42-dark); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.w42-skip:focus { top: 12px; }
.w42-main:focus { outline: none; }

.w42-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.w42-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--w42-font); font-size: 16px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.w42-btn--primary { background: var(--w42-primary); color: #fff; box-shadow: 0 10px 22px -10px var(--w42-primary); }
.w42-btn--primary:hover, .w42-btn--primary:focus-visible { background: var(--w42-dark); color: #fff; transform: translateY(-2px); }
.w42-btn--ghost { background: transparent; color: var(--w42-dark); border-color: var(--w42-border); }
.w42-btn--ghost:hover { border-color: var(--w42-primary); color: var(--w42-primary); }
.w42-btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- En-tête ---------- */
.w42-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--w42-dark);
	transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.w42-header-overlay .w42-header { position: fixed; left: 0; right: 0; background: transparent; }
.w42-header-overlay .w42-header.is-scrolled {
	background: rgba(17, 19, 24, .94);
	-webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
	box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
}
/* Menu mobile ouvert : fond plein, et surtout pas de backdrop-filter
   (il casserait le positionnement du panneau du menu). */
.w42-header.is-open,
.w42-header-overlay .w42-header.is-open { background: var(--w42-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.admin-bar .w42-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .w42-header { top: 46px; } .admin-bar .w42-header.is-scrolled { top: 0; } }

.w42-header__inner {
	max-width: 1240px; margin: 0 auto; padding: 0 24px;
	min-height: var(--w42-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.w42-brand { flex-shrink: 0; }
.w42-brand .custom-logo { max-height: 52px; width: auto; display: block; }

.w42-logo {
	display: inline-flex; align-items: flex-start; text-decoration: none; color: #fff;
	font-family: var(--w42-font); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.5px;
}
.w42-logo:hover { color: #fff; }
.w42-logo__web { color: #fff; }
.w42-logo__app { color: #fff; }
.w42-logo__num { font-size: .52em; margin-left: 2px; color: #8FB0FF; top: 0; position: relative; }

.w42-nav { display: flex; align-items: center; gap: 28px; }
.w42-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.w42-menu > li { position: relative; display: flex; align-items: center; }
.w42-menu a {
	display: block; padding: 10px 14px; color: #fff; text-decoration: none;
	font-weight: 600; font-size: 16px; border-radius: 8px; transition: color .2s, background-color .2s;
}
.w42-menu > li > a:hover, .w42-menu > li:focus-within > a { color: #A9C2FF; }
.w42-menu > .current-menu-item > a, .w42-menu > .current-menu-ancestor > a { color: #fff; box-shadow: inset 0 -2px 0 var(--w42-primary); border-radius: 0; }
.w42-sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; margin-left: -10px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 6px;
}
.w42-sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.w42-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 260px;
	background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -16px rgba(17, 19, 24, .35);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.w42-menu .sub-menu a { color: var(--w42-dark); padding: 10px 14px; font-weight: 600; }
.w42-menu .sub-menu a:hover, .w42-menu .sub-menu .current-menu-item > a { background: var(--w42-light); color: var(--w42-primary); }
.w42-menu li:hover > .sub-menu, .w42-menu li:focus-within > .sub-menu, .w42-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.w42-menu li.is-open > .w42-sub-toggle svg { transform: rotate(180deg); }
.w42-header__cta { white-space: nowrap; }

.w42-burger {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.w42-burger svg { width: 24px; height: 24px; }
.w42-burger__close { display: none; }
.w42-burger[aria-expanded="true"] .w42-burger__open { display: none; }
.w42-burger[aria-expanded="true"] .w42-burger__close { display: inline-flex; }

@media (max-width: 1100px) {
	.w42-burger { display: inline-flex; }
	.w42-nav {
		position: fixed; left: 0; right: 0; top: var(--w42-header-h); bottom: 0;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 24px 32px;
		background: var(--w42-dark); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .w42-nav { top: calc(var(--w42-header-h) + 46px); }
	.w42-header.is-open .w42-nav { opacity: 1; visibility: visible; transform: none; }
	.w42-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.w42-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.w42-menu > li > a { flex: 1; padding: 16px 4px; font-size: 18px; }
	.w42-menu > .current-menu-item > a { box-shadow: none; color: #A9C2FF; }
	.w42-sub-toggle { width: 48px; height: 48px; margin: 0; }
	.w42-menu .sub-menu {
		position: static; width: 100%; min-width: 0; display: none; padding: 0 0 12px 12px;
		background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none;
	}
	.w42-menu li:hover > .sub-menu, .w42-menu li:focus-within > .sub-menu { display: none; }
	.w42-menu li.is-open > .sub-menu { display: block; }
	.w42-menu .sub-menu a { color: var(--w42-on-dark); padding: 10px 4px; }
	.w42-menu .sub-menu a:hover { background: transparent; color: #fff; }
	.w42-header__cta { width: 100%; }
	body.w42-nav-open { overflow: hidden; }
}

/* ---------- Pages Elementor : aides de mise en page ---------- */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-button { font-family: var(--w42-font); }

/* Bannières (hero) : formes décoratives comme sur le site d'origine */
.elementor-section.w42-hero { overflow: hidden; }
.elementor-section.w42-hero > .elementor-container { position: relative; z-index: 2; }
.elementor-section.w42-hero::before,
.elementor-section.w42-hero::after {
	content: ""; position: absolute; pointer-events: none; border-radius: 50%; z-index: 1;
}
.elementor-section.w42-hero::before {
	width: 720px; height: 720px; right: -200px; top: -260px;
	background: radial-gradient(circle at center, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 65%);
}
.elementor-section.w42-hero::after {
	width: 640px; height: 640px; left: -260px; bottom: -380px;
	border: 110px solid rgba(255, 255, 255, .045);
}

/* Largeur de lecture confortable */
.elementor-widget.w42-narrow { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.elementor-widget.w42-narrow-sm { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }

/* Cartes (classe « w42-card » sur une colonne Elementor) */
.elementor-column.w42-card > .elementor-widget-wrap.elementor-element-populated {
	margin: 10px; padding: 30px 28px;
	background: #fff; border: 1px solid var(--w42-border); border-radius: var(--w42-radius);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.elementor-column.w42-card:hover > .elementor-widget-wrap.elementor-element-populated {
	transform: translateY(-4px); box-shadow: var(--w42-shadow); border-color: transparent;
}
.elementor-column.w42-card--compact > .elementor-widget-wrap.elementor-element-populated { padding: 22px 18px; }
.elementor-column.w42-card--dark > .elementor-widget-wrap.elementor-element-populated {
	background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1);
}
.elementor-column.w42-card--dark:hover > .elementor-widget-wrap.elementor-element-populated { background: rgba(255, 255, 255, .07); box-shadow: none; }
/* Toute la carte est cliquable si le titre a un lien */
.w42-card .elementor-icon-box-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.w42-card .elementor-icon-box-title a { color: inherit; text-decoration: none; }
.w42-card .elementor-icon-box-title a:focus-visible { outline: none; }
.elementor-column.w42-card:focus-within > .elementor-widget-wrap { outline: 3px solid var(--w42-primary); outline-offset: 2px; }
.w42-card .elementor-icon-box-description { margin: 0; }

/* Cartes de prix */
.elementor-column.w42-price > .elementor-widget-wrap.elementor-element-populated {
	margin: 12px; padding: 36px 32px;
	background: #fff; border: 1px solid var(--w42-border); border-radius: 20px;
	box-shadow: 0 1px 0 rgba(17, 19, 24, .02);
	transition: transform .2s ease, box-shadow .2s ease;
}
.elementor-column.w42-price:hover > .elementor-widget-wrap.elementor-element-populated { transform: translateY(-4px); box-shadow: var(--w42-shadow); }
.elementor-column.w42-price.is-featured > .elementor-widget-wrap.elementor-element-populated { border: 2px solid var(--w42-primary); }
.w42-price .w42-price__from { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w42-text); margin-bottom: 4px; }
.w42-price .w42-price__cur { font-size: .45em; font-weight: 700; color: var(--w42-text); margin-left: 4px; }
.elementor-column.w42-price > .elementor-widget-wrap.elementor-element-populated { flex-direction: column; flex-wrap: nowrap; }
.elementor-column.w42-price .elementor-widget-button { margin-top: auto; }

/* Étapes numérotées */
.w42-step-num .elementor-heading-title {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 16px; background: var(--w42-soft);
}

/* FAQ (widget Accordéon) */
.w42-faq .elementor-accordion .elementor-accordion-item {
	border-style: solid; border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: #fff;
}
.w42-faq .elementor-accordion .elementor-accordion-item + .elementor-accordion-item { border-top-style: solid; border-top-width: 1px; }
.w42-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon { font-size: 14px; }
.w42-faq .elementor-accordion .elementor-tab-title { font-weight: 700; }
.w42-faq .elementor-accordion .elementor-tab-title a { color: inherit; text-decoration: none; }
.w42-faq .elementor-accordion .elementor-tab-content { border-top: 1px solid var(--w42-border) !important; }

/* Liste à puces en ligne (réassurance sous les titres) */
.w42-trust .elementor-icon-list-items.elementor-inline-items { justify-content: center; row-gap: 8px; }

/* Encadré de contact */
.elementor-column.w42-contact-box > .elementor-widget-wrap.elementor-element-populated {
	background: #fff; border-radius: 22px; padding: 44px 40px; box-shadow: 0 30px 60px -30px rgba(17, 19, 24, .35); border: 1px solid var(--w42-border);
}
@media (max-width: 767px) {
	.elementor-column.w42-contact-box > .elementor-widget-wrap.elementor-element-populated { padding: 28px 20px; }
	.elementor-column.w42-price > .elementor-widget-wrap.elementor-element-populated { margin: 8px 0; }
	.elementor-column.w42-card > .elementor-widget-wrap.elementor-element-populated { margin: 8px 0; }
	.elementor-column.w42-card--compact > .elementor-widget-wrap.elementor-element-populated { margin: 6px; padding: 18px 10px; }
}

/* ---------- Formulaire de contact ---------- */
.w42-form-wrap { font-family: var(--w42-font); scroll-margin-top: calc(var(--w42-header-h) + 24px); }
.w42-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.w42-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.w42-field--full { grid-column: 1 / -1; }
.w42-field label { font-weight: 700; color: var(--w42-heading); font-size: 15px; }
.w42-field input[type="text"], .w42-field input[type="email"], .w42-field input[type="tel"], .w42-field select, .w42-field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	border: 1.5px solid #CDD5E3; border-radius: 12px; background: #fff;
	font: inherit; color: var(--w42-heading); transition: border-color .2s, box-shadow .2s;
}
.w42-field textarea { min-height: 150px; resize: vertical; }
.w42-field input:focus, .w42-field select:focus, .w42-field textarea:focus {
	outline: none; border-color: var(--w42-primary); box-shadow: 0 0 0 4px rgba(59, 116, 242, .18);
}
.w42-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.w42-consent input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--w42-primary); }
.w42-consent label { font-weight: 400; color: var(--w42-text); }
.w42-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 22px 0 0; }
.w42-form-actions .w42-btn svg { width: 18px; height: 18px; }
.w42-form-note { font-size: 14px; color: #6B7280; }
.w42-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.w42-form-msg { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; }
.w42-form-msg.is-success { background: #E8F7EE; color: #14532D; border: 1px solid #B7E4C7; }
.w42-form-msg.is-error { background: #FDECEC; color: #7F1D1D; border: 1px solid #F5C2C2; }
@media (max-width: 640px) { .w42-form-grid { grid-template-columns: 1fr; } }

/* ---------- Pages simples (légales, blog) ---------- */
.w42-page-hero {
	background: linear-gradient(225deg, var(--w42-primary) 0%, var(--w42-dark) 65%);
	color: #fff; padding: 72px 0 64px;
}
.w42-header-overlay .w42-page-hero { padding-top: calc(var(--w42-header-h) + 72px); }
.w42-page-hero__title { color: #fff; margin: 0; }
.w42-page-hero__meta { color: var(--w42-on-dark); margin: 0 0 8px; }
.w42-prose { max-width: 820px; padding-top: 56px; padding-bottom: 80px; font-size: 17px; }
.w42-prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.w42-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.w42-prose ul, .w42-prose ol { padding-left: 1.3em; }
.w42-prose li { margin-bottom: .35em; }
.w42-prose table { width: 100%; border-collapse: collapse; }
.w42-prose th, .w42-prose td { border: 1px solid var(--w42-border); padding: 10px 12px; text-align: left; }
.w42-featured { border-radius: var(--w42-radius); margin-bottom: 28px; }

.w42-posts { padding-top: 56px; padding-bottom: 80px; }
.w42-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.w42-post-card { border: 1px solid var(--w42-border); border-radius: var(--w42-radius); overflow: hidden; background: #fff; }
.w42-post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.w42-post-card__body { padding: 22px 24px; }
.w42-post-card__meta { font-size: 14px; color: #6B7280; margin-bottom: 6px; }
.w42-post-card__title { font-size: 1.25rem; }
.w42-post-card__title a { color: var(--w42-heading); text-decoration: none; }
.w42-post-card__title a:hover { color: var(--w42-primary); }

.w42-404 { padding: calc(var(--w42-header-h) + 80px) 0 100px; text-align: center; }
.w42-404__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0 0 12px; color: var(--w42-soft); -webkit-text-stroke: 2px var(--w42-primary); }
.w42-404 .w42-page-hero__title { color: var(--w42-heading); }
.w42-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Pied de page ---------- */
.w42-footer { background: var(--w42-darker); color: var(--w42-on-dark); font-size: 15px; }
.w42-footer__inner {
	max-width: 1240px; margin: 0 auto; padding: 72px 24px 48px;
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
}
.w42-footer__about p { margin: 18px 0 20px; max-width: 360px; }
.w42-footer__title { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 18px; }
.w42-footer__menu, .w42-footer__contact, .w42-socials { list-style: none; margin: 0; padding: 0; }
.w42-footer__menu li { margin-bottom: 10px; }
.w42-footer a { color: var(--w42-on-dark); text-decoration: none; }
.w42-footer a:hover { color: #fff; text-decoration: underline; }
.w42-footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.w42-footer__contact .w42-icon { flex-shrink: 0; margin-top: 3px; color: #8FB0FF; width: 18px; height: 18px; }
.w42-footer .w42-btn--primary { color: #fff; margin-top: 6px; }
.w42-footer .w42-btn--primary:hover { text-decoration: none; background: #fff; color: var(--w42-dark); }
.w42-socials { display: flex; gap: 10px; }
.w42-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.w42-socials a:hover { background: var(--w42-primary); }
.w42-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.w42-footer__bottom p { max-width: 1240px; margin: 0 auto; padding: 22px 24px; font-size: 14px; color: #9AA6BD; }
@media (max-width: 1024px) { .w42-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .w42-footer__inner { grid-template-columns: 1fr; padding-top: 56px; gap: 32px; } }

/* ---------- Accessibilité : moins d'animations si demandé ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
