/*
 * Elkalock — Layout & Gutenberg structural fixes
 *
 * Single-file CSS, ecrit a la main, zero build step, zero framework.
 *
 * Principe :
 *   - Tokens design (couleurs, typo, spacing) vivent dans theme.json (SSOT
 *     derive de theme/src/design-tokens.css via sync-theme-from-tokens.js).
 *   - WordPress genere les utilities has-*-color / has-*-font-size / les
 *     custom properties --wp--preset--* automatiquement a partir de
 *     theme.json. Les patterns consomment ces slugs via les attributs natifs
 *     (backgroundColor, textColor, fontSize, fontFamily, style.spacing).
 *   - Ce fichier ne contient QUE des regles structurelles Gutenberg non
 *     couvertes par theme.json (fixes cascade, dimensions par defaut des
 *     blocs natifs, etat actif navigation).
 *
 * Regle absolue : zero `!important`. Specificite plate (1 classe ou 1 element
 * + pseudo-classe max). Si un conflit de cascade apparait, diagnostiquer la
 * source (editor styles, block supports, plugin tiers) au lieu de patcher.
 *
 * Ce fichier est charge via wp_enqueue_style() ET add_editor_style() pour
 * garantir Back = Front (cf. theme/functions.php).
 */

/* ==========================================================================
   STACKING — flush vertical entre blocs top-level
   Supprime l'espacement par defaut que WP ajoute entre frere-du-site, pour
   laisser les patterns gerer leur propre padding vertical (section-py).
   ========================================================================== */

.wp-site-blocks > * + * { margin-block-start: 0; }
.is-layout-constrained > .alignfull + .alignfull { margin-block-start: 0; }

/* ==========================================================================
   SEPARATOR — largeur 60px par defaut, full width via is-style-wide
   ========================================================================== */

.wp-block-separator:not(.is-style-wide) { width: 60px; max-width: 60px; }
.wp-block-separator.is-style-wide { width: 100%; max-width: 100%; }
.is-content-justification-center > .wp-block-separator { margin-inline: auto; }

/* ==========================================================================
   NAVIGATION — etat actif
   Hover gere dans theme.json > styles.elements.link.
   ========================================================================== */

.wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--primary); }

/* ==========================================================================
   COLUMNS — egaliser la hauteur des cards imbriquees
   ========================================================================== */

.wp-block-columns > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns > .wp-block-column > .wp-block-group { flex: 1; }

/* ==========================================================================
   NAVIGATION OFF-CANVAS — overrides projet
   Surcharge les variables exposees par le mu-plugin elkalock-navigation.
   Decommenter les lignes utiles, supprimer les autres.
   Doc complete : wp-content/mu-plugins/elkalock-navigation/README.md
   ========================================================================== */

/*
.elkalock-nav-offcanvas {
	--elkalock-nav-offcanvas-bg:      var(--wp--preset--color--bg-dark);
	--elkalock-nav-offcanvas-color:   var(--wp--preset--color--text-white);
	--elkalock-nav-offcanvas-overlay: color-mix(in srgb, var(--wp--preset--color--navy-deep) 70%, transparent);
	--elkalock-nav-offcanvas-width:   min(480px, 90vw);
}
*/

/* ==========================================================================
   PAGE ACCUEIL — composants (blocs patterns/blocks/*)
   Source : prototype/prototype.css (accueil). Couleurs/tailles/spacing portes
   par les attributs de bloc ; ici : structure, decor, pseudo-elements, hover.
   Icones/cadran = fichiers SVG du theme (assets/images), pas de core/group vide.
   ========================================================================== */
.ek-sec { position: relative; overflow: hidden; }
.ek-sec p, .ek-sec h1, .ek-sec h2, .ek-sec h3 { margin-block: 0; }
.ek-sec a, .ek-footer a, .ek-header a { text-decoration: none; }
.ek-hero .ek-eyebrow { display: flex; align-items: center; gap: var(--wp--preset--spacing--14); }
.ek-hero .ek-eyebrow::before { content: ""; width: 32px; height: 1.5px; background: var(--wp--preset--color--gold); }
.ek-accent { display: block; color: var(--wp--preset--color--gold); }
.ek-row-flex { display: flex; }

/* Boutons (icones en fond, un seul element cliquable) */
.ek-btn-call .wp-block-button__link, .ek-btn-pill .wp-block-button__link, .ek-btn-ghost .wp-block-button__link, .ek-bigtel .wp-block-button__link { display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.2,1), filter .25s, background-color .25s; }
.ek-btn-call .wp-block-button__link:hover, .ek-btn-pill .wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.07); }
.ek-btn-call .wp-block-button__link { gap: var(--wp--preset--spacing--16); min-height: 68px; padding: var(--wp--preset--spacing--9) var(--wp--preset--spacing--30) var(--wp--preset--spacing--9) var(--wp--preset--spacing--9); box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent); }
.ek-btn-call .wp-block-button__link::before { content: ""; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--wp--preset--color--navy) url("../images/phone-gold.svg") center / 21px no-repeat; }
.ek-btn-call--sm .wp-block-button__link { min-height: 52px; padding: 0 var(--wp--preset--spacing--22); gap: var(--wp--preset--spacing--10); box-shadow: none; }
.ek-btn-call--sm .wp-block-button__link::before { width: 17px; height: 17px; background: url("../images/phone-navy.svg") center / contain no-repeat; }
.ek-btn-call--head .wp-block-button__link { min-height: 46px; padding: 0 var(--wp--preset--spacing--20); gap: var(--wp--preset--spacing--9); box-shadow: none; }
.ek-btn-call--head .wp-block-button__link::before { width: 16px; height: 16px; background: url("../images/phone-navy.svg") center / contain no-repeat; }
.ek-btn-ghost .wp-block-button__link { gap: var(--wp--preset--spacing--10); min-height: 68px; padding: 0 var(--wp--preset--spacing--28); border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 22%, transparent); background: transparent; }
.ek-btn-ghost .wp-block-button__link::after { content: ""; width: 18px; height: 18px; background: url("../images/arrow-mist.svg") center / contain no-repeat; }
.ek-btn-ghost .wp-block-button__link:hover { background-color: color-mix(in srgb, var(--wp--preset--color--text-white) 8%, transparent); color: var(--wp--preset--color--text-white); }
.ek-btn-pill .wp-block-button__link { gap: var(--wp--preset--spacing--8); min-height: 48px; padding: 0 var(--wp--preset--spacing--20); }
.ek-btn-pill .wp-block-button__link::after { content: ""; width: 16px; height: 16px; background: url("../images/arrow-navy.svg") center / contain no-repeat; }

/* Listes a pastille (garanties) */
.ek-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--14) var(--wp--preset--spacing--30); }
.ek-checks li { display: flex; align-items: center; gap: var(--wp--preset--spacing--10); margin: 0; }
.ek-checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--gold); background: url("../images/check-gold.svg") center / 12px no-repeat; }
.ek-checks--navy { flex-direction: column; flex-wrap: nowrap; gap: var(--wp--preset--spacing--12); }
.ek-checks--navy li::before { width: 26px; height: 26px; border: 0; background: var(--wp--preset--color--navy) url("../images/check-gold.svg") center / 13px no-repeat; }

/* Header / logo */
.ek-logo a { display: flex; align-items: center; gap: var(--wp--preset--spacing--12); color: inherit; }
.ek-logo a::before { content: ""; width: 42px; height: 42px; border-radius: 13px; background: var(--wp--preset--color--gold) url("../images/logo-key-navy.svg") center / 20px no-repeat; }
.ek-logo--foot::before { content: ""; display: inline-block; vertical-align: middle; margin-right: var(--wp--preset--spacing--12); width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--gold) url("../images/logo-key-navy.svg") center / 19px no-repeat; }
.ek-pill-status { display: inline-flex; align-items: center; gap: var(--wp--preset--spacing--9); padding: var(--wp--preset--spacing--9) var(--wp--preset--spacing--15); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 12%, transparent); background: color-mix(in srgb, var(--wp--preset--color--text-white) 4%, transparent); }
.ek-pill-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--gold); }
.ek-nav a:hover, .ek-footer a:hover { color: var(--wp--preset--color--gold); }
.ek-nav a { transition: color .2s; }

/* Hero (sec-1) */
.ek-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--wp--preset--color--text-white) 05%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--text-white) 05%, transparent) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(60% 70% at 72% 45%, #000 20%, transparent 72%); }
.ek-hero__row { position: relative; z-index: 2; }
.ek-hero__copy { flex: 1.15 1 560px; min-width: 0; }
.ek-hero__lead { max-width: 520px; }
.ek-hero__visual { flex: 1 1 480px; min-width: 0; position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; }
.ek-hero__visual::before { content: ""; position: absolute; width: 620px; height: 620px; max-width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--gold) 20%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--gold) 6%, transparent) 38%, transparent 66%); }
.ek-hero__visual::after { content: ""; position: absolute; width: 600px; height: 600px; max-width: 118%; aspect-ratio: 1; background: url("../images/dial.svg") center / contain no-repeat; }
.ek-hero__img { position: relative; z-index: 2; width: min(560px, 100%); margin: 0; }
.ek-hero__img img, .ek-card__img img, .ek-about__img img { display: block; width: 100%; height: auto; }
.ek-hero__img img { filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--wp--preset--color--navy-deep) 50%, transparent)); }
.ek-badge { position: absolute; z-index: 3; display: flex; flex-direction: column; padding: var(--wp--preset--spacing--13) var(--wp--preset--spacing--18) var(--wp--preset--spacing--13) 63px; border-radius: 18px; background: color-mix(in srgb, var(--wp--preset--color--navy-soft) 72%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 12%, transparent); backdrop-filter: blur(14px); }
.ek-badge::before { content: ""; position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--wp--preset--color--gold) 14%, transparent) url("../images/moon-gold.svg") center / 19px no-repeat; }
.ek-badge--fast::before { background-image: url("../images/clock-gold.svg"); }
.ek-badge--night { top: 64px; left: 0; }
.ek-badge--fast { bottom: 150px; right: -8px; }

/* Bandeau (sec-2) */
.ek-trust { border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 08%, transparent); }
.ek-trust-item { display: flex; align-items: center; gap: var(--wp--preset--spacing--10); }
.ek-trust-item::before { content: ""; width: 14px; height: 14px; background: url("../images/person-gold.svg") center / contain no-repeat; }

/* En-tetes de section */
.ek-sechead__aside { max-width: 390px; }
.ek-sechead__aside--sm { max-width: 360px; }

/* Cartes services (sec-3) */
.ek-cards-row > .ek-card { min-width: 0; position: relative; overflow: hidden; border-radius: 30px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.ek-card--wide { flex: 2 1 560px; min-height: 460px; }
.ek-card--narrow { flex: 1 1 320px; min-height: 460px; border: 1px solid var(--wp--preset--color--line); }
.ek-card--soft { min-height: 440px; }
.ek-cards-row > .ek-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--wp--preset--color--navy-deep) 55%, transparent); }
.ek-card__top, .ek-card__bottom { position: relative; z-index: 2; }
.ek-card__lead { max-width: 340px; }
.ek-card__lead--sm { max-width: 300px; }
.ek-pill { display: inline-flex; padding: var(--wp--preset--spacing--7) var(--wp--preset--spacing--13); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 45%, transparent); }
.ek-from { font-size: var(--wp--preset--font-size--lg); font-weight: 600; letter-spacing: 0; color: var(--wp--preset--color--slate-300); }
.ek-from--dark { font-size: var(--wp--preset--font-size--17); color: var(--wp--preset--color--slate-600); }
.ek-card__num { position: absolute; right: 0; top: 0; }
.ek-cards-row:last-child > .ek-card { min-height: 440px; }
.ek-card--lock .ek-card__top::before { content: ""; display: block; width: 58px; height: 58px; border-radius: 18px; background: var(--wp--preset--color--navy) url("../images/lock-gold.svg") center / 26px no-repeat; }
.ek-card--lock .ek-card__num { top: 21px; }
.ek-card--lock::after { content: ""; position: absolute; right: -70px; bottom: -60px; width: 320px; height: 320px; background: url("../images/person-outline-gold.svg") center / contain no-repeat; }
.ek-card--dark::before { content: ""; position: absolute; right: -120px; top: -90px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 07%, transparent); }
.ek-card--dark::after { content: ""; position: absolute; right: -40px; top: -10px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--gold) 16%, transparent), transparent 65%); }
.ek-card--soft::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--wp--preset--color--text-white) 04%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--text-white) 04%, transparent) 1px, transparent 1px); background-size: 40px 40px; }
.ek-card--soft::after { content: ""; position: absolute; right: 30px; top: 30px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--sky) 20%, transparent), transparent 65%); }
.ek-card__img { position: absolute; margin: 0; z-index: 1; }
.ek-card__img--a { right: -10px; top: 10px; width: 400px; }
.ek-card__img--a img { filter: drop-shadow(0 30px 30px color-mix(in srgb, var(--wp--preset--color--navy-deep) 55%, transparent)); }
.ek-card__img--c { right: -40px; bottom: -50px; width: 280px; }
.ek-card__img--c img { filter: drop-shadow(0 24px 24px color-mix(in srgb, var(--wp--preset--color--navy) 28%, transparent)); }
.ek-card__img--d { right: 70px; top: 26px; width: 210px; z-index: 1; }
.ek-card__img--d img { filter: drop-shadow(-20px 30px 30px color-mix(in srgb, var(--wp--preset--color--navy-deep) 50%, transparent)); }
.ek-card__top--d { max-width: 400px; }
.ek-card img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ek-card:hover img { transform: scale(1.07) rotate(-3deg); }

/* Formulaires (sec-4, sec-8) */
.ek-callback::before { content: ""; position: absolute; left: -160px; top: -200px; width: 520px; height: 520px; opacity: .6; background: url("../images/dial.svg") center / contain no-repeat; }
.ek-callback__row { position: relative; }
.ek-callback__intro { flex: 1 1 380px; min-width: 0; }
.ek-form { min-width: 0; font-family: var(--wp--preset--font-family--sans); }
.ek-form input, .ek-form select, .ek-form textarea { font: inherit; font-size: var(--wp--preset--font-size--base); color: var(--wp--preset--color--navy); background: var(--wp--preset--color--text-white); width: 100%; box-sizing: border-box; }
.ek-form input:focus-visible, .ek-form select:focus-visible, .ek-form textarea:focus-visible, .ek-form button:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.ek-field { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--8); }
.ek-hp { display: none; }
.ek-form__msg { margin: 0; flex: 1 0 100%; font-size: var(--wp--preset--font-size--sm); min-height: 1em; }
.ek-form--dark { flex: 1.6 1 600px; padding: var(--wp--preset--spacing--26); border-radius: 26px; background: color-mix(in srgb, var(--wp--preset--color--text-white) 5%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 12%, transparent); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wp--preset--spacing--14); }
.ek-form--dark .ek-field { flex: 1 1 170px; min-width: 0; }
.ek-form--dark .ek-field--wide { flex: 1.3 1 210px; }
.ek-form--dark label { font-size: var(--wp--preset--font-size--13); font-weight: 600; color: var(--wp--preset--color--slate-200); }
.ek-form--dark input, .ek-form--dark select { height: 56px; padding: 0 var(--wp--preset--spacing--16); border: 0; border-radius: 14px; }
.ek-form--dark .ek-form__msg { color: var(--wp--preset--color--slate-200); }
/* Widget ALTCHA (shadow DOM) sur fond sombre : seules les custom properties traversent ; fond transparent par defaut. */
.ek-form--dark altcha-widget { flex: 1 1 100%; --altcha-max-width: 100%; --altcha-border-radius: 14px; --altcha-color-text: var(--wp--preset--color--text-white); --altcha-color-border: color-mix(in srgb, var(--wp--preset--color--text-white) 25%, transparent); --altcha-color-border-focus: var(--wp--preset--color--gold); --altcha-color-active: var(--wp--preset--color--gold); --altcha-color-footer-bg: transparent; --altcha-color-error-text: var(--wp--preset--color--slate-200); }
.ek-btn-submit { cursor: pointer; border: 0; font-family: inherit; font-weight: 700; transition: transform .25s cubic-bezier(.2,.7,.2,1), filter .25s; }
.ek-btn-submit:hover { transform: translateY(-2px); filter: brightness(1.07); }
.ek-btn-submit--gold { flex: 0 0 auto; height: 56px; padding: 0 var(--wp--preset--spacing--26); border-radius: 14px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); font-size: var(--wp--preset--font-size--base); }
.ek-btn-submit--navy { margin-top: var(--wp--preset--spacing--26); width: 100%; height: 60px; border-radius: 999px; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--text-white); font-family: var(--wp--preset--font-family--bricolage); font-size: var(--wp--preset--font-size--19); display: flex; align-items: center; justify-content: center; gap: var(--wp--preset--spacing--10); }
.ek-btn-submit--navy::after { content: ""; width: 18px; height: 18px; background: url("../images/arrow-gold.svg") center / contain no-repeat; }
.ek-form--light { flex: 1.6 1 600px; padding: var(--wp--preset--spacing--40); border-radius: 30px; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); }
/* Widget ALTCHA : element custom inline par defaut, display:block pour que la marge s'applique (colle a la case RGPD sinon). */
.ek-form--light altcha-widget { display: block; margin-top: var(--wp--preset--spacing--16); --altcha-max-width: 100%; --altcha-border-radius: 14px; --altcha-color-text: var(--wp--preset--color--navy); --altcha-color-border: var(--wp--preset--color--line); --altcha-color-border-focus: var(--wp--preset--color--navy); --altcha-color-active: var(--wp--preset--color--navy); --altcha-color-footer-bg: transparent; --altcha-color-error-text: var(--wp--preset--color--slate-700); }
.ek-form--light .ek-form__msg { margin-top: var(--wp--preset--spacing--14); color: var(--wp--preset--color--slate-700); }
.ek-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ek-fieldset legend { padding: 0; font-size: var(--wp--preset--font-size--sm); font-weight: 700; color: var(--wp--preset--color--navy); }
.ek-chips { margin-top: var(--wp--preset--spacing--14); display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--10); }
.ek-chip { position: relative; cursor: pointer; }
.ek-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ek-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--wp--preset--spacing--18); border-radius: 999px; border: 1px solid var(--wp--preset--color--line-strong); background: var(--wp--preset--color--text-white); font-size: var(--wp--preset--font-size--15); font-weight: 600; color: var(--wp--preset--color--slate-800); transition: background-color .2s, color .2s, border-color .2s; }
.ek-chip input:checked + span { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--text-white); border-color: var(--wp--preset--color--navy); }
.ek-chip input:focus-visible + span { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.ek-grid2 { margin-top: var(--wp--preset--spacing--26); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--wp--preset--spacing--16); }
.ek-field--block { margin-top: var(--wp--preset--spacing--16); }
.ek-form--light label { font-size: var(--wp--preset--font-size--sm); font-weight: 600; color: var(--wp--preset--color--slate-800); }
.ek-form--light input:not([type="checkbox"]):not([type="radio"]), .ek-form--light select { height: 54px; padding: 0 var(--wp--preset--spacing--16); border: 1px solid var(--wp--preset--color--line-strong); border-radius: 14px; }
.ek-form--light textarea { padding: var(--wp--preset--spacing--14) var(--wp--preset--spacing--16); border: 1px solid var(--wp--preset--color--line-strong); border-radius: 14px; line-height: 1.5; resize: vertical; }
.ek-consent { margin-top: var(--wp--preset--spacing--18); display: flex; align-items: flex-start; gap: var(--wp--preset--spacing--12); }
.ek-consent input { width: 20px; height: 20px; margin: var(--wp--preset--spacing--2) 0 0; accent-color: var(--wp--preset--color--navy); }
.ek-consent label { font-size: var(--wp--preset--font-size--sm); line-height: 1.55; font-weight: 400; color: var(--wp--preset--color--slate-600); }
.ek-quote__row { align-items: flex-start; }
.ek-quote__intro { flex: 1 1 360px; min-width: 0; }
.ek-dark-box { position: relative; overflow: hidden; border-radius: 24px; }
.ek-dark-box::before { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 30%, transparent); }
.ek-dark-box > * { position: relative; }

/* Etapes (sec-5) */
.ek-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--wp--preset--spacing--40); }
.ek-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: var(--wp--preset--color--line-soft); }
.ek-steps::after { content: ""; position: absolute; top: 59.5px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wp--preset--color--gold) 20%, transparent); }
.ek-step { position: relative; z-index: 1; }
.ek-num { display: inline-block; width: fit-content; padding: 0 var(--wp--preset--spacing--18); background: var(--wp--preset--color--text-white); color: transparent; -webkit-text-stroke: 1.5px var(--wp--preset--color--navy); transition: color .4s, -webkit-text-stroke-color .4s; }
.ek-step:first-child .ek-num { padding-left: 0; }
.ek-step:hover .ek-num { color: var(--wp--preset--color--gold); -webkit-text-stroke-color: var(--wp--preset--color--gold); }

/* Zone & tarifs (sec-6) */
.ek-zone__row { align-items: center; }
.ek-zone__map, .ek-zone__info { flex: 1 1 460px; min-width: 0; }
.ek-map { position: relative; width: min(540px, 100%); aspect-ratio: 1 / 1; margin-inline: auto; container-type: inline-size; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent); background: url("../images/dial-map.svg") center / 100% 100% no-repeat; }
.ek-map::before, .ek-map::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.ek-map::before { background: conic-gradient(color-mix(in srgb, var(--wp--preset--color--gold) 32%, transparent), transparent 75deg, transparent 360deg); animation: ek-spin 6s linear infinite; }
.ek-map::after { border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent); animation: ek-ping 3.6s ease-out infinite; }
.ek-map__center::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100cqw; aspect-ratio: 1; margin: -50cqw 0 0 -50cqw; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent); animation: ek-ping 3.6s 1.8s ease-out infinite backwards; pointer-events: none; }
@keyframes ek-spin { to { transform: rotate(360deg); } }
@keyframes ek-ping { 0% { transform: scale(.18); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ek-map::before, .ek-map::after, .ek-map__center::after { animation: none; } }
.ek-map__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: var(--wp--preset--spacing--10); }
.ek-map__center::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--wp--preset--color--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wp--preset--color--gold) 25%, transparent), 0 0 30px color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent); }
.ek-pin__label { padding: var(--wp--preset--spacing--7) var(--wp--preset--spacing--14); border-radius: 999px; background: var(--wp--preset--color--gold); }
.ek-pin { position: absolute; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--navy-soft) 94%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 20%, transparent); }
.ek-pin--92 { left: 27%; top: 52%; border-color: color-mix(in srgb, var(--wp--preset--color--gold) 60%, transparent); }
.ek-pin--93 { left: 68%; top: 31%; border-color: color-mix(in srgb, var(--wp--preset--color--gold) 60%, transparent); }
.ek-pin--94 { left: 68%; top: 70%; border-color: color-mix(in srgb, var(--wp--preset--color--gold) 60%, transparent); }
.ek-pin--95 { left: 50%; top: 6%; }
.ek-pin--77 { left: 94%; top: 50%; }
.ek-pin--91 { left: 50%; top: 94%; }
.ek-pin--78 { left: 6%; top: 50%; }
.ek-pricing { border-radius: 26px; background: color-mix(in srgb, var(--wp--preset--color--text-white) 4%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 10%, transparent); }
.ek-price-row { align-items: baseline; }
.ek-price-row::after { content: ""; order: 1; flex: 1 1 0; border-bottom: 1px dotted color-mix(in srgb, var(--wp--preset--color--text-white) 25%, transparent); }
.ek-price-row > :last-child { order: 2; }

/* A propos (sec-7) */
.ek-about__row { align-items: center; }
.ek-about__card { flex: 1 1 420px; min-width: 0; position: relative; overflow: hidden; min-height: 560px; border-radius: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.ek-about__card::before { content: ""; position: absolute; right: -190px; top: -190px; width: 480px; height: 480px; opacity: .8; background: url("../images/dial.svg") center / contain no-repeat; }
.ek-about__img { position: absolute; right: -50px; bottom: 26px; width: 250px; margin: 0; }
.ek-about__img img { filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--wp--preset--color--navy-deep) 55%, transparent)); }
.ek-about__big, .ek-about__small { position: relative; }
.ek-about__small { margin-top: var(--wp--preset--spacing--40); padding-top: var(--wp--preset--spacing--28); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 12%, transparent); max-width: 230px; }
.ek-about__text { flex: 1.1 1 480px; min-width: 0; }
.ek-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--wp--preset--spacing--16); }
.ek-stat { border-radius: 20px; border: 1px solid var(--wp--preset--color--line); }

/* FAQ (sec-9) */
.ek-faq__row { align-items: flex-start; }
.ek-faq__intro { flex: 1 1 320px; min-width: 0; }
.ek-faq__list { flex: 2 1 600px; min-width: 0; }
.ek-faq-item { border-radius: 22px; border: 1px solid var(--wp--preset--color--line); }
.ek-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--wp--preset--spacing--16); padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--28); cursor: pointer; list-style: none; letter-spacing: -0.015em; }
.ek-faq-item summary::-webkit-details-marker { display: none; }
.ek-faq-item summary::after { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--wp--preset--color--paper) url("../images/plus-navy.svg") center / 16px no-repeat; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s; }
.ek-faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--wp--preset--color--gold); }
.ek-faq-item > p { margin: 0; padding: 0 var(--wp--preset--spacing--28) var(--wp--preset--spacing--26); }

/* CTA final (sec-10) */
.ek-cta { text-align: center; }
.ek-cta__dial, .ek-cta__halo { position: absolute; margin: 0; }
.ek-cta__dial { left: calc(50% - 450px); top: calc(50% - 450px); width: 900px; opacity: .7; }
.ek-cta__halo { left: calc(50% - 300px); top: calc(50% - 300px); width: 600px; }
.ek-cta__dial img, .ek-cta__halo img { display: block; width: 100%; height: auto; }
.ek-cta__inner { position: relative; z-index: 1; }
.ek-cta .ek-eyebrow { justify-content: center; }
.ek-bigtel .wp-block-button__link { padding: 0; background: none; border-radius: 0; }
.ek-bigtel .wp-block-button__link:hover { color: var(--wp--preset--color--gold); }

/* Header en surimpression de la page d'accueil (template page-accueil) : le hero demarre
   a y=0 et couvre le header (sec-1 de la maquette = header + hero, 90px de header). */
/* Header sticky (landing page, demande Steven) : colle en haut sur tous les ecrans ; >= 1100px il est
   fixe par-dessus le hero (la maquette compte header + hero comme sec-1, header de 90px). */
.ek-header--overlay { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
html { scroll-padding-top: 96px; }
@media (min-width: 1100px) {
  .ek-header--overlay { position: fixed; inset-inline: 0; }
  .ek-header--overlay + .wp-block-post-content .ek-hero { padding-top: 90px; }
}
/* Mobile : en-tete reduit au logo + burger ; pastille 24h/24 et telephone vivent dans le menu (parts/menu-mobile.html). */
/* Nav centree sur la page : logo | nav | actions en 1fr auto 1fr (space-between la decalait selon la largeur du logo/actions). */
@media (min-width: 600px) {
  .ek-header .ek-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .ek-header .ek-header__actions { justify-self: end; }
}
@media (max-width: 599px) { .ek-header .ek-header__actions { display: none; } }
.ek-overlay { min-height: 100vh; }
.ek-overlay__top { margin-bottom: var(--wp--preset--spacing--48); }
.ek-overlay__menu .ek-overlay__nav a { padding-block: var(--wp--preset--spacing--8); }
.ek-overlay__bottom { margin-top: var(--wp--preset--spacing--48); display: flex; flex-direction: column; align-items: flex-start; }
.ek-overlay .wp-block-navigation-overlay-close { color: var(--wp--preset--color--text-white); }


/* Footer */
.ek-foot__tel a { font-family: var(--wp--preset--font-family--bricolage); font-size: var(--wp--preset--font-size--22); font-weight: 700; }
.ek-foot__links { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--16); }
.ek-foot__row { align-items: flex-start; }
.ek-foot__col { flex: 0 1 240px; min-width: 0; }
.ek-foot__col--brand { flex: 1 1 300px; }
.ek-foot__lead { max-width: 320px; }
.ek-foot__legal { border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--text-white) 08%, transparent); padding-top: var(--wp--preset--spacing--24); }

@media (max-width: 575px) {
  .ek-cta__dial, .ek-cta__halo { left: 0; top: 50%; width: 100%; translate: 0 -50%; }
  .ek-callback::before { left: 24px; top: 0; width: 60%; height: auto; aspect-ratio: 1; }
  .ek-sec :not(p) > a, .ek-footer :not(p) > a, .ek-foot__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
  .ek-consent input { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ek-sec *, .ek-sec *::before, .ek-sec *::after { transition: none; } }

/* Rail 1240px (padding 40 inclus) centre — ancre de mesure figma-sec-N-div-M. */
/* core impose 1.25em 2.375em aux groupes a fond : les paddings des sections sont portes par les attributs. */
.ek-sec.has-background, .ek-header.has-background, .ek-footer.has-background { padding: 0; }
.ek-rail { width: 100%; max-width: 1240px; margin-inline: auto; box-sizing: border-box; }
.ek-form, .ek-form * { box-sizing: border-box; }
.ek-faq__intro a { color: var(--wp--preset--color--navy); font-weight: 700; }
.ek-faq-item summary { font-weight: 700; font-family: var(--wp--preset--font-family--display); }
.ek-faq-item summary h3 { margin: 0; font: inherit; font-family: var(--wp--preset--font-family--display); letter-spacing: inherit; color: inherit; }
/* Les sections de la page sont collees bord a bord : pas de blockGap entre elles. */
.wp-block-post-content > * + * { margin-block-start: 0; }
.ek-steps > *, .ek-stats > *, .ek-grid2 > * { margin-block-start: 0; }
.ek-card > *, .ek-about__card > *, .ek-hero__visual > *, .ek-map > * { margin-block-start: 0; }
.ek-foot__links a { font-size: var(--wp--preset--font-size--sm); }
.ek-sec *, .ek-sec *::before, .ek-sec *::after, .ek-header *, .ek-footer * { box-sizing: border-box; }
.ek-sec p { text-wrap: pretty; }
.ek-sec h1, .ek-sec h2, .ek-sec h3 { text-wrap: balance; }
.ek-form__msg:empty { display: none; }

.ek-cta > * { margin-block: 0; }

/* Hero sec-1 : flottement de la cle et des pastilles (demande Steven, step 09 ; keyframes de la maquette). */
@keyframes ek-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-1.4deg); } }
@keyframes ek-floatb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.ek-hero__img { animation: ek-float 7s ease-in-out infinite; }
.ek-badge--night { animation: ek-floatb 6s ease-in-out infinite; }
.ek-badge--fast { animation: ek-floatb 7s 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ek-hero__img, .ek-badge { animation: none; } }

/* Defilement en douceur vers les ancres du menu (demande Steven, step 09). */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* FAQ : pendant la fermeture animee le plus reste anime aussi (l'attribut open ne tombe qu'a la fin). */
.ek-faq-item.is-closing summary::after { transform: none; background-color: var(--wp--preset--color--paper); }
