/*
Theme Name: Ideal3DPrint
Theme URI: https://www.ideal3dprint.fr
Author: IdealPrint
Description: Thème bloc sur mesure pour Ideal3DPrint : modélisation et impression 3D. Devis STL instantané ([i3d_devis]), formulaire de contact ([i3d_contact]) et animation 3D d'accueil ([i3d_scene_3d]). Couleurs, polices et logo dans Apparence → Éditeur → Styles ; en-tête et pied de page dans Apparence → Éditeur → Compositions.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ideal3dprint
Tags: block-theme, full-site-editing
*/

/* ==========================================================================
   1 · Jetons — alias des couleurs de theme.json (modifiables dans Styles)
   ========================================================================== */
:root {
  --brand: var(--wp--preset--color--accent);
  --brand-bright: var(--wp--preset--color--accent-vif);
  --brand-soft: var(--wp--preset--color--accent-doux);
  --accent: var(--wp--preset--color--chaud);
  --ink: var(--wp--preset--color--texte);
  --ink-2: var(--wp--preset--color--texte-2);
  --muted: var(--wp--preset--color--sourdine);
  --line: var(--wp--preset--color--trait);
  --bg: var(--wp--preset--color--fond);
  --bg-2: var(--wp--preset--color--surface);
  --dark: var(--wp--preset--color--sombre);
  --dark-2: var(--wp--preset--color--sombre-2);
  --on-dark: #dfe6f5;
  --on-dark-2: #9aa7c2;
  --dark-line: rgba(255, 255, 255, .1);

  --font-head: var(--police-titres, var(--wp--preset--font-family--titres));
  --font-body: var(--police-texte, var(--wp--preset--font-family--texte));
  --font-mono: var(--wp--preset--font-family--technique);

  --radius: var(--wp--custom--rayon, 18px);
  --shadow: 0 20px 50px -20px rgba(4, 22, 64, .25);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1200px;
  --header-h: 76px;
  --admin-h: 0px;
}
.admin-bar { --admin-h: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-h: 46px; } }

/* ==========================================================================
   2 · Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; }
h1 { font-size: var(--wp--preset--font-size--titre-1); }
h2 { font-size: var(--wp--preset--font-size--titre-2); }
h3 { font-size: var(--wp--preset--font-size--titre-3); }
p { margin: 0 0 1em; }
ul { margin: 0; }
figure.wp-block-image { margin: 0; }
:where(.wp-block-group) > :where(*) { margin-block-start: 0; }
::selection { background: var(--brand-bright); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark :is(h2, h3) { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .page-hero .eyebrow, .quote-teaser .eyebrow, .contact-card .eyebrow, .timeline .eyebrow, .cta-band .eyebrow { color: #7fa6ff; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.section--dark .lead { color: #a9b5cf; }
/* accent typographique : <em> nu dans un titre */
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-bright), #7fb0ff 50%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { max-width: 18ch; margin: 0; }
.sec-head .lead { margin: 0; max-width: 46ch; }
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center h2 { margin-inline: auto; }

/* ==========================================================================
   3 · Boutons (core/button) — la classe de variante est sur le conteneur
   ========================================================================== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button .wp-block-button__link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  overflow: hidden; isolation: isolate; text-decoration: none;
  transition: transform .3s var(--ease), color .3s, box-shadow .3s;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 60%, transparent);
}
.wp-block-button .wp-block-button__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--brand-bright), color-mix(in srgb, var(--brand-bright) 70%, #fff));
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.wp-block-button .wp-block-button__link::after { content: "→"; transition: transform .3s var(--ease); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); color: #fff; }
.wp-block-button .wp-block-button__link:hover::before { transform: none; }
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px); }
.btn-ghost .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost .wp-block-button__link::before { background: var(--ink); }
.btn-light .wp-block-button__link { background: #fff; color: var(--ink); box-shadow: none; }
.btn-light .wp-block-button__link::before { background: var(--brand-soft); }
.btn-light .wp-block-button__link:hover { color: var(--ink); }
.btn-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-outline-light .wp-block-button__link::before { background: rgba(255,255,255,.12); }
.btn-plain .wp-block-button__link::after { content: none; }
/* bouton HTML des outils (devis, contact) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1.2 var(--font-body); color: #fff; background: var(--brand);
  overflow: hidden; isolation: isolate; transition: transform .3s var(--ease);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-bright); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: none; }
.btn::after { content: "→"; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   4 · En-tête (partie de modèle « header »)
   ========================================================================== */
.site-header {
  position: fixed; top: var(--admin-h); left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled, .is-solid-header .site-header {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled { height: 64px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .wp-block-site-logo img { height: 30px; width: auto; }
.header-nav { margin-left: auto; }
.header-nav .wp-block-navigation__container { gap: 4px; }
.header-nav .wp-block-navigation-item__content {
  position: relative; padding: 8px 14px; font-weight: 500; font-size: .95rem; color: var(--ink-2);
  border-radius: 999px; transition: color .25s, background .25s;
}
.header-nav .wp-block-navigation-item__content:hover { color: var(--ink); background: var(--bg-2); }
.header-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--brand); }
.header-nav .current-menu-item > .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.header-cta .wp-block-button__link { padding: 11px 20px; font-size: .95rem; }
.menu-mobile-seul { display: none !important; }

/* en-tête clair posé sur un bandeau sombre (pages internes), avant défilement */
.has-page-hero .site-header:not(.is-scrolled) .wp-block-site-logo img { filter: brightness(0) invert(1); }
.has-page-hero .site-header:not(.is-scrolled) .header-nav .wp-block-navigation-item__content { color: rgba(255,255,255,.8); }
.has-page-hero .site-header:not(.is-scrolled) .header-nav .wp-block-navigation-item__content:hover { color: #fff; background: rgba(255,255,255,.08); }
.has-page-hero .site-header:not(.is-scrolled) .header-nav .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
.has-page-hero .site-header:not(.is-scrolled) .wp-block-navigation__responsive-container-open { color: #fff; }

/* menu replié (≤ 1024 px) */
.header-nav .wp-block-navigation__responsive-container-open { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); align-items: center; justify-content: center; }
.has-page-hero .site-header:not(.is-scrolled) .wp-block-navigation__responsive-container-open { background: rgba(255,255,255,.12); }
@media (min-width: 1025px) {
  .header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block !important; position: static; background: none; }
  .header-nav .wp-block-navigation__responsive-container-open { display: none !important; }
}
@media (max-width: 1024px) {
  .site-header .header-cta { display: none !important; }
  .header-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
  .header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .wp-block-navigation.header-nav .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--bg) !important; color: var(--ink) !important;
    padding: calc(var(--admin-h) + 24px) 24px 40px !important;
  }
  .header-nav .is-menu-open .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; top: calc(var(--admin-h) + 16px); right: 20px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; }
  .header-nav .is-menu-open .wp-block-navigation__container { gap: 6px !important; align-items: center !important; justify-content: center; min-height: 70vh; }
  .header-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: center !important; }
  .header-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--ink) !important; padding: 8px 18px; }
  .header-nav .is-menu-open .menu-mobile-seul { display: flex !important; }
  .header-nav .is-menu-open .menu-mobile-seul .wp-block-navigation-item__content { margin-top: 18px; background: var(--brand); color: #fff !important; font-family: var(--font-body); font-size: 1.05rem; padding: 16px 28px; border-radius: 999px; }
  .header-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--brand) !important; }
}

/* ==========================================================================
   5 · Héros d'accueil
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% 30%, color-mix(in srgb, var(--brand-bright) 14%, transparent), transparent 60%),
    radial-gradient(700px 500px at 70% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hero h1 { margin-bottom: 24px; animation: fadeUp 1s var(--ease) both; }
.hero .eyebrow { animation: fadeUp 1s var(--ease) both; }
.hero .lead { animation: fadeUp 1s .2s var(--ease) both; }
.hero .wp-block-buttons { margin-top: 34px; animation: fadeUp 1s .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-badges { list-style: none; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 46px !important; animation: fadeUp 1s .5s var(--ease) both; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.hero-badges li::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--brand); -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.b-eclair { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.b-drapeau { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4M4 4h13l-2 4 2 4H4'/%3E%3C/svg%3E"); }
.b-bouclier { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }

.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: end; }
.hero-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-stage .hud {
  position: absolute; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-2);
  background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; line-height: 1.5; box-shadow: var(--shadow); animation: fadeUp 1s 1s var(--ease) both;
}
.hero-stage .hud b { color: var(--brand); font-weight: 600; }
.hud--a { top: 12%; left: 0; }
.hud--b { bottom: 14%; right: 0; animation-delay: 1.2s !important; }
.hud .bar { width: 120px; height: 4px; background: var(--line); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.hud .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-bright), var(--accent)); }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 380px; justify-self: center; }
}

/* ---------- Bandeau défilant (liste dupliquée par le script) ---------- */
.marquee { background: var(--brand); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee ul { list-style: none; padding: 0; display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee li::after { content: "✦"; color: var(--accent); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   6 · En-tête de page (pages internes)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 90px; overflow: hidden; color: #fff; background: var(--dark); }
.page-hero__bg { position: absolute !important; inset: 0; }
.page-hero__bg img { width: 100%; height: 100% !important; object-fit: cover; opacity: .45; transform: scale(1.08); animation: slowZoom 14s ease-out forwards; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,11,23,.96) 25%, rgba(6,11,23,.55) 70%, color-mix(in srgb, var(--brand) 35%, transparent)); }
@keyframes slowZoom { to { transform: scale(1); } }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 16ch; color: #fff; animation: fadeUp 1s .1s var(--ease) both; }
.page-hero .lead { color: #c3cde3; animation: fadeUp 1s .25s var(--ease) both; }
.page-hero .eyebrow { animation: fadeUp 1s var(--ease) both; }
.crumbs { font-family: var(--font-mono); font-size: .78rem; color: #8592ad; margin: 30px 0 0; animation: fadeUp 1s .4s var(--ease) both; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: #fff; }

/* ==========================================================================
   7 · Composants de contenu
   ========================================================================== */
/* image + texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.media-stack { position: relative; }
.media-stack .m1 { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.media-stack .m1 img { width: 100%; height: 100% !important; object-fit: cover; }
.media-stack .m2 { position: absolute !important; right: -24px; bottom: -34px; width: 48%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.media-stack .m2 img { width: 100%; height: 100% !important; object-fit: cover; }
.media-stack .tag {
  position: absolute; left: -18px; top: 30px; margin: 0; background: var(--ink); color: #fff; padding: 14px 18px;
  border-radius: 14px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; box-shadow: var(--shadow);
}
.media-stack .tag strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 34px !important; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .media-stack { margin: 0 20px 40px 0; }
  .media-stack .m2 { right: -20px; }
}

/* icônes : image de fond SVG choisie par une classe ic-* */
.ic-imprimante { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3h16v4H4zM6 7v6M18 7v6M9 13h6l-1.5 3h-3z'/%3E%3Cpath d='M3 21h18M8 18h8v3H8z'/%3E%3C/svg%3E"); }
.ic-cube { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M12 22V12M21 7l-9 5-9-5'/%3E%3C/svg%3E"); }
.ic-fusee { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15c-1.5 1.5-2 5-2 5s3.5-.5 5-2c.8-.8.8-2.2 0-3s-2.2-.8-3 0z'/%3E%3Cpath d='M9 12a22 22 0 0 1 11-9c0 3-1 8-9 11zM9 12H5l3-4h4M12 15v4l4-3v-4'/%3E%3C/svg%3E"); }
.ic-cle { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E"); }
.ic-drapeau { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4M4 4h13l-2 4 2 4H4'/%3E%3C/svg%3E"); }
.ic-personne { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.ic-puce { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.ic-bouclier { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ic-fusee-bleue { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15c-1.5 1.5-2 5-2 5s3.5-.5 5-2c.8-.8.8-2.2 0-3s-2.2-.8-3 0z'/%3E%3Cpath d='M9 12a22 22 0 0 1 11-9c0 3-1 8-9 11zM9 12H5l3-4h4M12 15v4l4-3v-4'/%3E%3C/svg%3E"); }
.ic-cube-bleu { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M12 22V12M21 7l-9 5-9-5'/%3E%3C/svg%3E"); }
.ic-horloge { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004aad' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* cartes services (fond sombre) — carte entière cliquable via le lien étiré */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: var(--dark-2);
  border: 1px solid var(--dark-line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s; display: flex; flex-direction: column; min-height: 360px;
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(400px 260px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand-bright) 35%, transparent), transparent 70%); }
.svc:hover { transform: translateY(-8px); border-color: rgba(127,166,255,.35); }
.svc:hover::before { opacity: 1; }
.svc__num { font-family: var(--font-mono); font-size: .8rem; color: #7fa6ff; letter-spacing: .1em; margin: 0; }
.svc__num::after {
  content: ""; display: block; width: 58px; height: 58px; border-radius: 16px; margin: 26px 0 24px;
  background: var(--ic) center/28px no-repeat, linear-gradient(135deg, rgba(42,107,255,.25), rgba(42,107,255,.05));
  border: 1px solid rgba(127,166,255,.25); transition: transform .5s var(--ease);
}
.svc:hover .svc__num::after { transform: rotate(-8deg) scale(1.08); }
.svc h3 { color: #fff; }
.svc p:not(.svc__num):not(.svc__link) { color: var(--on-dark-2); font-size: .96rem; flex: 1; }
.svc__link { margin: 0; font-weight: 600; font-size: .92rem; }
.svc__link a { color: #fff; }
.svc__link a::after { content: " →"; }
.svc__link a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* encart devis (accueil) */
.quote-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 55%, var(--dark)) 100%); color: #fff;
  border-radius: 28px; padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden;
}
.quote-teaser::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.quote-teaser > * { position: relative; }
.quote-teaser h2 { color: #fff; }
.steps-mini { display: grid; gap: 14px; margin: 28px 0 34px !important; padding: 0; list-style: none; counter-reset: s; }
.steps-mini li { display: flex; gap: 14px; align-items: center; counter-increment: s; color: #e3ebff; }
.steps-mini li::before { content: counter(s); width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: var(--font-mono); font-size: .85rem; }
.drop-demo {
  position: relative; border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; padding: 44px 30px; text-align: center;
  background: rgba(255,255,255,.05); transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.drop-demo::before {
  content: ""; display: block; width: 74px; height: 90px; margin: 0 auto 20px; animation: floaty 3.4s ease-in-out infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 90' fill='none'%3E%3Cpath d='M7 2h44l22 22v58a6 6 0 0 1-6 6H7a6 6 0 0 1-6-6V8a6 6 0 0 1 6-6z' fill='%23fff' stroke='%23c4cfe3' stroke-width='2'/%3E%3Cpath d='M51 2v16a6 6 0 0 0 6 6h16' fill='%23e8f0ff' stroke='%23c4cfe3' stroke-width='2'/%3E%3Cpath d='M37 38l14 8v16l-14 8-14-8V46zM37 54v16M51 46l-14 8-14-8' stroke='%23004aad' stroke-width='2.4' stroke-linejoin='round'/%3E%3Crect x='14' y='76' width='22' height='9' rx='2' fill='%23004aad'/%3E%3C/svg%3E") center/contain no-repeat;
}
.drop-demo:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: scale(1.02); }
.drop-demo p { margin: 0; color: #b8ceff; font-size: .92rem; }
.drop-demo p:first-child { font-family: var(--font-head); font-size: 1.2rem; color: #fff; font-weight: 600; margin-bottom: 4px; }
.drop-demo a { color: inherit; }
.drop-demo a::before { content: ""; position: absolute; inset: 0; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (max-width: 860px) { .quote-teaser { grid-template-columns: 1fr; } }

/* processus : la ligne est dessinée par ::before / ::after du conteneur */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process::before, .process::after { content: ""; position: absolute; left: 0; top: 27px; height: 2px; background: var(--line); width: 100%; }
.process::after { width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1.6s var(--ease); }
.process.is-in::after { width: 100%; }
.step { position: relative; z-index: 1; }
.step__dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--brand);
  margin: 0 0 24px; transition: border-color .4s, background .4s, color .4s;
}
.section--tint .step__dot { background: var(--bg-2); }
.process.is-in .step__dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.process.is-in .step:nth-child(2) .step__dot { transition-delay: .35s; }
.process.is-in .step:nth-child(3) .step__dot { transition-delay: .7s; }
.process.is-in .step:nth-child(4) .step__dot { transition-delay: 1.05s; }
.step p:not(.step__dot) { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 10px; }
  .process::before, .process::after { left: 27px; top: 0; width: 2px !important; height: 100%; }
  .process::after { height: 0; transition: height 1.6s var(--ease); }
  .process.is-in::after { height: 100%; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; }
  .step__dot { grid-row: span 2; }
}

/* valeurs / piliers */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value, .pillar { padding: 36px 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; position: relative; overflow: hidden; }
.value:hover, .pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value::before, .pillar::before { content: ""; display: block; width: 52px; height: 52px; border-radius: 14px; background: var(--ic) center/26px no-repeat, var(--brand-soft); margin-bottom: 22px; }
.value p, .pillar p { color: var(--muted); margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .6s var(--ease); }
.pillar:hover::after { width: 100%; }
@media (max-width: 860px) { .values, .pillars { grid-template-columns: 1fr; } }

/* aperçu des réalisations (images avec légende) */
.reel { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px; gap: 16px; }
.reel .wp-block-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.reel .wp-block-image:nth-child(1) { grid-column: span 5; grid-row: span 4; }
.reel .wp-block-image:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.reel .wp-block-image:nth-child(3) { grid-column: span 3; grid-row: span 3; }
.reel .wp-block-image:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.reel .wp-block-image:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.reel .wp-block-image a { display: block; height: 100%; }
.reel img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--ease); }
.reel .wp-block-image:hover img { transform: scale(1.07); }
.reel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 16px; text-align: left;
  color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(6,11,23,.8));
  transform: translateY(100%); transition: transform .5s var(--ease); pointer-events: none;
}
.reel .wp-block-image:hover figcaption { transform: none; }
@media (max-width: 860px) {
  .reel { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .reel .wp-block-image:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .reel .wp-block-image:nth-child(1) { grid-row: span 2; }
  .reel figcaption { transform: none; }
}

/* matériaux */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.mat { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.02); transition: background .3s, transform .4s var(--ease); }
.mat:hover { background: rgba(255,255,255,.05); transform: translateY(-4px); }
.mat::before { content: ""; display: block; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; background: var(--sw, var(--brand-bright)); box-shadow: inset 0 -6px 12px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.05); }
.mat h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mat p { color: #8f9bb6; font-size: .9rem; margin: 0; }
.sw-bleu { --sw: #2a6bff; } .sw-orange { --sw: #ff7a1a; } .sw-gris-clair { --sw: #d9dde5; } .sw-vert { --sw: #2f9e57; } .sw-gris { --sw: #8a9099; }

/* FAQ (core/details) */
.faq { max-width: 860px; margin: 0 auto; }
.faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--brand), var(--brand)) center/14px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center/2px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; }

/* appel final */
.cta-band { position: relative; overflow: hidden; background: var(--dark); color: #fff; text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.cta-band p { color: #a9b5cf; max-width: 52ch; margin: 0 auto 36px; }
.cta-band .wp-block-buttons { justify-content: center; }

/* services (page) */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: 50px 0; scroll-margin-top: 90px; }
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row:nth-child(even) > .wp-block-image { order: 2; }
.svc-row > .wp-block-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.svc-row > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-row:hover > .wp-block-image img { transform: scale(1.05); }
.svc-row__num { font-family: var(--font-mono); font-size: 4.5rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--brand); opacity: .4; margin-bottom: 14px; }
.svc-row p { color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px !important; padding: 0; list-style: none; }
.pills li { font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; padding: 30px 0; } .svc-row:nth-child(even) > .wp-block-image { order: 0; } }

/* à propos */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.timeline > .wp-block-group { padding: 40px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid var(--dark-line); }
.timeline p:not(.eyebrow) { color: var(--on-dark-2); margin: 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* réalisations : filtres (paragraphes) + images */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters p {
  margin: 0; border: 1px solid var(--line); background: var(--bg); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: .92rem; color: var(--ink-2); transition: all .3s var(--ease); user-select: none;
}
.filters p:hover { border-color: var(--brand); color: var(--brand); }
.filters p.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.works { columns: 3 320px; column-gap: 20px; }
.works .wp-block-image {
  break-inside: avoid; margin: 0 0 20px; position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--bg-2); transition: transform .4s var(--ease), box-shadow .4s;
}
.works .wp-block-image:hover { box-shadow: var(--shadow); }
.works img { width: 100%; transition: transform 1s var(--ease); }
.works .wp-block-image:hover img { transform: scale(1.05); }
.works figcaption {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 50px 22px 20px; color: #fff; text-align: left;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9dbcff;
  background: linear-gradient(transparent, rgba(6,11,23,.85));
}
.works figcaption strong { display: block; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: #fff; margin-top: 4px; }
.works .wp-block-image.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3,7,15,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; padding: 60px 20px; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; display: grid; gap: 18px; justify-items: center; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 12px; }
.lightbox figcaption { color: #9dbcff; text-align: center; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.lightbox figcaption strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lb-close { top: calc(var(--admin-h) + 20px); right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -25px; }
.lb-next { right: 20px; top: 50%; margin-top: -25px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-card { background: var(--dark); color: #c3cde3; border-radius: 24px; padding: 40px; position: sticky; top: calc(var(--admin-h) + 100px); overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-bright) 45%, transparent), transparent 70%); }
.contact-card > * { position: relative; }
.contact-card h3 { color: #fff; font-size: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 !important; display: grid; gap: 22px; }
.contact-list li { position: relative; padding-left: 62px; min-height: 46px; color: #fff; font-weight: 500; line-height: 1.45; display: flex; flex-direction: column; justify-content: center; }
.contact-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--ic) center/21px no-repeat, rgba(255,255,255,.07); }
.contact-list li a { color: #fff; }
.contact-list em { font-style: normal; display: block; font-size: .72rem; color: #7d8aa6; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-weight: 500; }
.ct-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.ct-tel { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ct-lieu { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.ct-horloge { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: relative; top: 0; } }

/* pages légales et contenu libre */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.page-default { padding: calc(var(--header-h) + 70px) 0 100px; }

/* ==========================================================================
   8 · Pied de page
   ========================================================================== */
.site-footer { background: #03070f; color: #8592ad; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .wp-block-site-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 20px; }
.site-footer .wp-block-site-logo img { height: 24px; width: auto; }
.footer-title { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }
.footer-links p { margin: 0 0 10px; }
.site-footer a { color: #8592ad; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-big {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 14vw, 12rem); line-height: .9; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); margin: 60px 0 0; white-space: nowrap; overflow: hidden; user-select: none;
}
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   9 · Outils : formulaires et devis (sortie des shortcodes)
   ========================================================================== */
.i3d-form { display: grid; gap: 18px; }
.i3d-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .i3d-form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .25s, box-shadow .25s; font: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: 0; border-color: var(--brand-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-bright) 15%, transparent); }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-status { padding: 14px 18px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.is-ok { display: block; background: #e7f8ee; color: #16794a; }
.form-status.is-err { display: block; background: #fdecec; color: #b42328; }
.file-pick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--line); cursor: pointer; color: var(--muted); font-size: .95rem; transition: border-color .25s, background .25s; }
.file-pick:hover { border-color: var(--brand-bright); background: var(--brand-soft); color: var(--brand); }
.file-pick::before { content: "📎"; }
.file-pick input { display: none; }

.quote { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: start; }
@media (max-width: 1000px) { .quote { grid-template-columns: 1fr; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 10px 40px -25px rgba(4,22,64,.3); }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-bottom: 18px; }
.panel h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; }
.dropzone {
  position: relative; border: 2px dashed #c4cfe3; border-radius: 20px; min-height: 420px; overflow: hidden;
  background: linear-gradient(color-mix(in srgb, var(--brand) 5%, transparent) 1px, transparent 1px) 0 0/32px 32px, linear-gradient(90deg, color-mix(in srgb, var(--brand) 5%, transparent) 1px, transparent 1px) 0 0/32px 32px, var(--bg-2);
  transition: border-color .3s, background-color .3s;
}
.dropzone.is-over { border-color: var(--brand-bright); background-color: var(--brand-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--line); }
.dropzone__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; cursor: pointer; }
.dropzone.has-file .dropzone__empty { display: none; }
.dropzone__empty .file { width: 84px; margin: 0 auto 22px; animation: floaty 3.4s ease-in-out infinite; }
.dropzone__empty strong { display: block; font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 6px; }
.dropzone__empty span { color: var(--muted); }
.dropzone__empty .btn { margin-top: 22px; color: #fff; }
.dropzone.is-over .dropzone__empty .file { animation: bounce .6s infinite alternate; }
@keyframes bounce { to { transform: translateY(-14px) scale(1.05); } }
.viewer { position: absolute; inset: 0; display: none; }
.dropzone.has-file .viewer { display: block; }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer__dims { position: absolute; left: 16px; top: 16px; font-family: var(--font-mono); font-size: .76rem; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.6; pointer-events: none; }
.viewer__dims b { color: var(--brand); }
.viewer__tools { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.viewer__tools button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; }
.viewer__tools button:hover { background: var(--brand-soft); }
.viewer__tools svg { width: 18px; height: 18px; color: var(--ink-2); }
.viewer__hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 5px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.loader { position: absolute; inset: 0; display: none; place-items: center; background: rgba(245,247,251,.85); z-index: 3; font-weight: 600; color: var(--brand); }
.loader.is-on { display: grid; }
.loader i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; display: block; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.files { list-style: none; padding: 0; margin: 16px 0 0 !important; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; font-size: .92rem; }
.files li.is-active { border-color: var(--brand-bright); background: var(--brand-soft); }
.files li .ext { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 6px; border-radius: 6px; }
.files li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files li .price { font-family: var(--font-mono); font-weight: 600; color: var(--brand); }
.files li .rm { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; display: grid; }
.files li .rm:hover { color: #e5484d; background: #fdecec; }
.files li .rm svg { width: 16px; height: 16px; }
.add-more { margin-top: 12px; font-size: .9rem; color: var(--brand); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 0; display: none; }
.has-files .add-more { display: inline-flex; }
.opts { display: grid; gap: 18px; }
.opt-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.opt-label em { font-style: normal; font-weight: 400; color: var(--muted); text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 500; transition: all .2s; }
.chips input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.chips label:hover span { border-color: var(--brand-bright); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s; }
.swatches input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); transform: scale(1.08); }
.range { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.range input[type=range] { flex: 1; accent-color: var(--brand); min-width: 140px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--bg-2); cursor: pointer; font-size: 1.1rem; }
.qty input { width: 56px; text-align: center; border: 0; height: 40px; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.disabled-block { opacity: .4; pointer-events: none; }
.summary { position: sticky; top: calc(var(--admin-h) + 90px); display: grid; gap: 18px; }
.price-card { background: var(--dark); color: #c3cde3; border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-bright) 50%, transparent), transparent 70%); }
.price-card > * { position: relative; }
.price-card small { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #7d8aa6; }
.price-big { font-family: var(--font-head); font-weight: 700; font-size: 3rem; color: #fff; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -.03em; }
.price-big sup { font-size: 1.2rem; vertical-align: top; position: relative; top: .5em; margin-left: 4px; }
.price-sub { font-size: .85rem; color: #8592ad; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; }
.stats div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px; }
.stats small { font-size: .66rem; }
.stats b { display: block; color: #fff; font-family: var(--font-mono); font-size: .98rem; font-weight: 600; margin-top: 2px; }
.breakdown { list-style: none; padding: 16px 0 0; margin: 20px 0 0 !important; font-size: .88rem; display: grid; gap: 7px; border-top: 1px solid rgba(255,255,255,.08); }
.breakdown li { display: flex; justify-content: space-between; gap: 10px; }
.breakdown li span:last-child { font-family: var(--font-mono); color: #fff; }
.warn { background: #fff6e8; color: #8a4b00; border-radius: 12px; padding: 12px 14px; font-size: .88rem; display: none; }
.warn.is-on { display: block; }
.disclaimer { font-size: .8rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   10 · Animations au défilement (classes posées par le script)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.progress { position: fixed; top: var(--admin-h); left: 0; height: 3px; width: 100%; z-index: 101; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--accent)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
