/* =========================================================
   UpDrive — styles de la page d'accueil (Elementor)
   Toutes les règles sont limitées à body.updrive-home.
   ========================================================= */

:root {
	--ud-navy: #0E1E3D;
	--ud-blue: #1E78E6;
	--ud-blue-dark: #0F5BB8;
	--ud-muted: #4B5B78;
	--ud-text: #3F4F6C;
	--ud-line: #DCE7F5;
	--ud-line-strong: #B9CCE6;
	--ud-white: #FFFFFF;
	--ud-shadow: 0 10px 30px rgba(14, 30, 61, .07);
}

/* ---------- Fond ciel + nuages ---------- */
body.updrive-home {
	position: relative;
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #BFDFFF 0%, #D6EBFF 25%, #E6F2FF 50%, #EEF6FF 75%, #F6FAFF 100%) !important;
	color: var(--ud-navy);
	font-family: 'Barlow', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
body.updrive-home .elementor { position: relative; z-index: 1; }
body.updrive-home [id] { scroll-margin-top: 90px; }

.updrive-sky {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.updrive-cloud {
	position: absolute;
	left: 0;
	animation-name: updrive-drift;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}
.updrive-cloud svg { display: block; width: 100%; height: auto; fill: #FFFFFF; }
@keyframes updrive-drift {
	from { transform: translateX(-440px); }
	to   { transform: translateX(calc(100vw + 440px)); }
}
@media (prefers-reduced-motion: reduce) {
	.updrive-cloud { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Bases typographiques ---------- */
body.updrive-home .elementor-widget-text-editor,
body.updrive-home .elementor-heading-title,
body.updrive-home .elementor-button,
body.updrive-home .elementor-icon-list-text,
body.updrive-home .ud-form {
	font-family: 'Barlow', system-ui, sans-serif;
}
body.updrive-home .elementor-widget-text-editor { color: var(--ud-text); font-size: 17px; line-height: 1.55; }
body.updrive-home .elementor-widget-text-editor p { margin: 0; }
body.updrive-home .elementor-widget-text-editor a { color: var(--ud-blue); }
body.updrive-home .elementor-heading-title { margin: 0; color: var(--ud-navy); }
body.updrive-home .elementor-widget { margin-bottom: 0; }

/* ---------- Mise en page ---------- */
body.updrive-home .e-con.ud-col {
	flex: 1 1 440px !important;
	min-width: 0;
	width: auto !important;
	max-width: 100%;
}
body.updrive-home .e-con.ud-grid {
	--display: grid;
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	width: 100% !important;
}
body.updrive-home .e-con.ud-grid > .e-con { width: auto !important; max-width: none; }
body.updrive-home .e-con.ud-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
body.updrive-home .e-con.ud-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
body.updrive-home .e-con.ud-grid-offers {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	max-width: 980px;
	margin: 0 auto;
	align-items: stretch;
}
body.updrive-home .e-con.ud-grid-agency { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
body.updrive-home .ud-center { text-align: center; align-items: center !important; max-width: 720px; margin: 0 auto; }

/* ---------- En-tête collant ---------- */
body.updrive-home .e-con.ud-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: rgba(255, 255, 255, .88) !important;
	border-bottom: 1px solid var(--ud-line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
body.updrive-home .ud-logo img { height: 46px; width: auto; display: block; }
body.updrive-home .ud-nav p { display: flex; flex-wrap: wrap; gap: 26px; }
body.updrive-home .ud-nav a {
	color: var(--ud-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	padding: 10px 0;
}
body.updrive-home .ud-nav a:hover { color: var(--ud-blue); }
body.updrive-home .ud-header-actions { width: auto !important; }

/* ---------- Boutons ---------- */
body.updrive-home .ud-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 1.5px solid transparent;
	box-shadow: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
body.updrive-home .ud-btn .elementor-button:hover { transform: translateY(-1px); }
body.updrive-home .ud-btn-primary .elementor-button { background: var(--ud-blue); color: #FFFFFF; }
body.updrive-home .ud-btn-primary .elementor-button:hover,
body.updrive-home .ud-btn-primary .elementor-button:focus-visible { background: var(--ud-blue-dark); color: #FFFFFF; }
body.updrive-home .ud-btn-ghost .elementor-button { background: rgba(255, 255, 255, .85); color: var(--ud-navy); border-color: var(--ud-line-strong); }
body.updrive-home .ud-btn-ghost .elementor-button:hover,
body.updrive-home .ud-btn-ghost .elementor-button:focus-visible { border-color: var(--ud-blue); color: var(--ud-blue); background: #FFFFFF; }
body.updrive-home .ud-btn-link .elementor-button { background: transparent; color: var(--ud-navy); padding: 12px 4px; font-weight: 600; }
body.updrive-home .ud-btn-link .elementor-button:hover { color: var(--ud-blue); }
body.updrive-home .ud-btn-lg .elementor-button { min-height: 56px; padding: 16px 30px; font-size: 18px; }
body.updrive-home .ud-btn-lg.ud-btn-primary .elementor-button { box-shadow: 0 10px 24px rgba(30, 120, 230, .3); }
body.updrive-home .ud-btn-block { width: 100%; margin-top: auto; }
body.updrive-home .ud-btn-block .elementor-button { display: flex; width: 100%; min-height: 54px; font-size: 17px; }
body.updrive-home .elementor-button:focus-visible { outline: 3px solid rgba(30, 120, 230, .45); outline-offset: 3px; }

/* ---------- Accueil ---------- */
body.updrive-home .ud-pill { width: auto !important; align-self: flex-start; }
body.updrive-home .ud-pill p {
	display: inline-block;
	color: var(--ud-blue);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .08em;
	background: rgba(255, 255, 255, .8);
	border: 1px solid #CFE0F5;
	padding: 8px 16px;
	border-radius: 999px;
}
body.updrive-home .ud-h1 .elementor-heading-title {
	font-style: italic;
	font-weight: 900;
	font-size: clamp(46px, 6vw, 80px);
	line-height: .98;
	letter-spacing: -.01em;
}
body.updrive-home .ud-accent { color: var(--ud-blue); }
body.updrive-home .ud-lead { font-size: 20px; line-height: 1.55; max-width: 540px; }
body.updrive-home .ud-lead-sm { font-size: 18px; max-width: none; }
body.updrive-home .ud-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 28px;
	border: 6px solid #FFFFFF;
	box-shadow: 0 24px 60px rgba(14, 30, 61, .18);
}
body.updrive-home .ud-photo-hero img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; box-shadow: 0 30px 70px rgba(14, 30, 61, .22); }
body.updrive-home .ud-photo-square img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 44px rgba(14, 30, 61, .14); }
body.updrive-home .ud-photo-cta img { max-width: 440px; border: 4px solid rgba(255, 255, 255, .6); border-radius: 20px; box-shadow: none; }

/* ---------- Titres de section ---------- */
body.updrive-home .ud-eyebrow p {
	color: var(--ud-blue);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
}
body.updrive-home .ud-eyebrow-light p { color: #7CC0FF; }
body.updrive-home .ud-h2 .elementor-heading-title {
	font-style: italic;
	font-weight: 800;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.05;
	margin-bottom: 24px;
}
body.updrive-home .ud-center .ud-h2 .elementor-heading-title { margin-bottom: 4px; }
body.updrive-home .ud-h2-light .elementor-heading-title { color: #FFFFFF; }
body.updrive-home .ud-h2-xl .elementor-heading-title { font-weight: 900; font-size: clamp(38px, 5vw, 62px); line-height: 1; margin-bottom: 0; }
body.updrive-home .ud-h3 .elementor-heading-title { font-weight: 800; font-size: 28px; line-height: 1.15; }
body.updrive-home .ud-h4 .elementor-heading-title { font-weight: 700; font-size: 20px; line-height: 1.25; }
body.updrive-home .ud-h4-light .elementor-heading-title { color: #FFFFFF; }
body.updrive-home .ud-h5 .elementor-heading-title { font-weight: 700; font-size: 19px; }
body.updrive-home .ud-body { font-size: 16px; color: var(--ud-muted); }
body.updrive-home .ud-body-light { color: #C9D6EA; }
body.updrive-home .ud-note { text-align: center; font-size: 15px; color: var(--ud-muted); }

/* ---------- Cartes ---------- */
body.updrive-home .e-con.ud-card {
	background: #FFFFFF !important;
	border: 1px solid var(--ud-line);
	border-radius: 22px;
	box-shadow: var(--ud-shadow);
}
body.updrive-home .e-con.ud-card-soft { background: rgba(255, 255, 255, .92) !important; box-shadow: none; }

/* Bandeau de garanties */
body.updrive-home .e-con.ud-trust { border-radius: 24px; box-shadow: 0 12px 40px rgba(14, 30, 61, .08); }
body.updrive-home .ud-trust-list .elementor-icon-list-items {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
	gap: 20px 20px;
	margin: 0 !important;
}
body.updrive-home .ud-trust-list .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
body.updrive-home .ud-trust-list .elementor-icon-list-item::after { display: none !important; }
body.updrive-home .ud-trust-list .elementor-icon-list-text { font-weight: 600; font-size: 16px; color: var(--ud-navy); padding-left: 12px; }

/* Icônes des listes (police ou SVG) */
body.updrive-home .elementor-icon-list-icon i { color: var(--ud-blue); font-size: 20px; }
body.updrive-home .elementor-icon-list-icon svg { fill: var(--ud-blue); width: 20px; height: 20px; }

/* Forfaits */
body.updrive-home .e-con.ud-offer { position: relative; border-radius: 26px; box-shadow: 0 14px 40px rgba(14, 30, 61, .09); }
body.updrive-home .e-con.ud-offer-featured { border: 2px solid var(--ud-blue); box-shadow: 0 22px 54px rgba(30, 120, 230, .18); }
body.updrive-home .ud-badge { position: absolute !important; top: -15px; left: 34px; width: auto !important; }
body.updrive-home .ud-badge p {
	background: var(--ud-blue);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	line-height: 1.2;
}
body.updrive-home .ud-kicker p { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ud-muted); }
body.updrive-home .ud-price .elementor-heading-title { font-style: italic; font-weight: 900; font-size: 60px; line-height: 1; color: var(--ud-navy); }
body.updrive-home .ud-price-featured .elementor-heading-title { color: var(--ud-blue); }
body.updrive-home .ud-price small { font-style: normal; font-weight: 600; font-size: 16px; color: var(--ud-muted); margin-left: 4px; }
body.updrive-home .ud-checklist { border-top: 1px solid #E3EBF6; padding-top: 22px; }
body.updrive-home .ud-checklist .elementor-icon-list-item { padding: 6px 0 !important; align-items: flex-start !important; }
body.updrive-home .ud-checklist .elementor-icon-list-icon { margin-top: 3px; }
body.updrive-home .ud-checklist .elementor-icon-list-text { font-size: 17px; color: var(--ud-navy); padding-left: 12px; line-height: 1.4; }

/* Étapes */
body.updrive-home .e-con.ud-dark { background: var(--ud-navy) !important; border-radius: 32px; }
body.updrive-home .ud-step-num .elementor-heading-title { font-style: italic; font-weight: 900; font-size: 52px; line-height: 1; color: #4CA7FF; }

/* Avis */
body.updrive-home .ud-stars p { color: #F5A623; font-size: 20px; letter-spacing: 4px; }
body.updrive-home .ud-quote p { font-size: 17px; color: #24345A; }
body.updrive-home .ud-author p { font-weight: 700; font-size: 15px; color: var(--ud-muted); }
body.updrive-home .ud-more a { font-weight: 700; font-size: 16px; text-decoration: none; }

/* Agence */
body.updrive-home .ud-contact-list .elementor-icon-list-item { padding: 8px 0 !important; align-items: flex-start !important; }
body.updrive-home .ud-contact-list .elementor-icon-list-text { font-size: 17px; color: var(--ud-navy); padding-left: 12px; }
body.updrive-home .ud-contact-list a { color: var(--ud-navy); text-decoration: none; }
body.updrive-home .ud-map iframe { border-radius: 16px; display: block; width: 100%; }

/* ---------- Bloc inscription ---------- */
body.updrive-home .e-con.ud-cta {
	background-color: #1E78E6 !important;
	background-image: linear-gradient(135deg, #1E78E6 0%, #0F5BB8 100%) !important;
	border-radius: 32px;
}
body.updrive-home .ud-lead-light { color: #E6F1FF; font-size: 19px; }
body.updrive-home .e-con.ud-form-card { background: #FFFFFF !important; border-radius: 24px; box-shadow: 0 24px 60px rgba(8, 30, 70, .3); }

.ud-form { display: flex; flex-direction: column; gap: 18px; color: #0E1E3D; font-family: 'Barlow', system-ui, sans-serif; }
.ud-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ud-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; color: #0E1E3D; margin: 0; }
.ud-form .ud-optional { font-weight: 500; color: #4B5B78; }
.ud-form input[type="text"],
.ud-form input[type="tel"],
.ud-form input[type="email"],
.ud-form select {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid #C5D5EA;
	background: #F6FAFF;
	color: #0E1E3D;
	font: 500 16px 'Barlow', system-ui, sans-serif;
}
.ud-form input:focus,
.ud-form select:focus { outline: 3px solid rgba(30, 120, 230, .3); border-color: #1E78E6; }
.ud-form .ud-consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 14px; color: #4B5B78; line-height: 1.45; }
.ud-form .ud-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1E78E6; flex-shrink: 0; }
.ud-form .ud-submit {
	height: 56px;
	border: 0;
	border-radius: 999px;
	background: #1E78E6;
	color: #FFFFFF;
	font: 700 18px 'Barlow', system-ui, sans-serif;
	cursor: pointer;
	transition: background-color .2s;
}
.ud-form .ud-submit:hover,
.ud-form .ud-submit:focus-visible { background: #0F5BB8; }
.ud-form .ud-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ud-form-msg { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.ud-form-msg-success { background: #E6F6EC; color: #14622E; border: 1px solid #B7E2C4; }
.ud-form-msg-error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F3C1C1; }

/* ---------- Pied de page ---------- */
body.updrive-home .e-con.ud-footer { background: #FFFFFF !important; border-top: 1px solid var(--ud-line); }
body.updrive-home .ud-logo-footer img { height: 38px; width: auto; display: block; border: 0; box-shadow: none; border-radius: 0; }
body.updrive-home .ud-footer-info { font-size: 14px; color: var(--ud-muted); width: auto !important; }
body.updrive-home .ud-footer-links { width: auto !important; }
body.updrive-home .ud-footer-links p { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
body.updrive-home .ud-footer-links a { color: var(--ud-muted); }
body.updrive-home .ud-footer-links a:hover { color: var(--ud-blue); }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
	body.updrive-home .ud-nav { display: none !important; }
}
@media (max-width: 767px) {
	body.updrive-home .ud-phone { display: none !important; }
	body.updrive-home .ud-logo img { height: 38px; }
	body.updrive-home .e-con.ud-hero { --padding-top: 48px; --padding-bottom: 56px; }
	body.updrive-home .e-con.ud-dark,
	body.updrive-home .e-con.ud-cta { --padding-left: 24px; --padding-right: 24px; --padding-top: 40px; --padding-bottom: 40px; border-radius: 24px; }
	body.updrive-home .e-con.ud-form-card { --padding-left: 20px; --padding-right: 20px; --padding-top: 24px; --padding-bottom: 24px; }
	body.updrive-home .e-con.ud-offer { --padding-left: 24px; --padding-right: 24px; }
	body.updrive-home .ud-price .elementor-heading-title { font-size: 48px; }
	body.updrive-home .ud-h3 .elementor-heading-title { font-size: 24px; }
	body.updrive-home .ud-lead { font-size: 18px; }
}

/* ---------- Verrouillage de la charte ----------
   Garde les couleurs UpDrive même si des couleurs globales Elementor
   sont appliquées aux widgets dans l'éditeur. */
body.updrive-home .elementor-heading-title { color: #0E1E3D !important; font-family: 'Barlow', system-ui, sans-serif !important; }
body.updrive-home .ud-accent,
body.updrive-home .ud-price-featured .elementor-heading-title { color: #1E78E6 !important; }
body.updrive-home .ud-h2-light .elementor-heading-title,
body.updrive-home .ud-h4-light .elementor-heading-title { color: #FFFFFF !important; }
body.updrive-home .ud-step-num .elementor-heading-title { color: #4CA7FF !important; }
body.updrive-home .elementor-widget-text-editor { color: #3F4F6C !important; font-family: 'Barlow', system-ui, sans-serif !important; }
body.updrive-home .ud-body { color: #4B5B78 !important; }
body.updrive-home .ud-body-light { color: #C9D6EA !important; }
body.updrive-home .ud-lead-light { color: #E6F1FF !important; }
body.updrive-home .ud-quote { color: #24345A !important; }
body.updrive-home .ud-note,
body.updrive-home .ud-footer-info,
body.updrive-home .ud-author { color: #4B5B78 !important; }
body.updrive-home .elementor-icon-list-text { color: #0E1E3D !important; font-family: 'Barlow', system-ui, sans-serif !important; }
body.updrive-home .elementor-icon-list-icon i { color: #1E78E6 !important; }
body.updrive-home .elementor-icon-list-icon svg { fill: #1E78E6 !important; }
body.updrive-home .ud-btn .elementor-button { font-family: 'Barlow', system-ui, sans-serif !important; font-weight: 700 !important; border-radius: 999px !important; }
body.updrive-home .ud-btn-primary .elementor-button { background-color: #1E78E6 !important; color: #FFFFFF !important; fill: #FFFFFF !important; }
body.updrive-home .ud-btn-primary .elementor-button:hover,
body.updrive-home .ud-btn-primary .elementor-button:focus-visible { background-color: #0F5BB8 !important; }
body.updrive-home .ud-btn-ghost .elementor-button { background-color: rgba(255, 255, 255, .85) !important; color: #0E1E3D !important; border: 1.5px solid #B9CCE6 !important; }
body.updrive-home .ud-btn-ghost .elementor-button:hover,
body.updrive-home .ud-btn-ghost .elementor-button:focus-visible { background-color: #FFFFFF !important; color: #1E78E6 !important; border-color: #1E78E6 !important; }
body.updrive-home .ud-btn-link .elementor-button { background-color: transparent !important; color: #0E1E3D !important; font-weight: 600 !important; }
body.updrive-home .ud-btn-link .elementor-button:hover { color: #1E78E6 !important; }
