/*
Theme Name: Autan Climatisation
Theme URI: https://www.autan-clim.fr
Author: Autan Climatisation
Description: Thème bloc sur mesure d'Autan Climatisation, installateur de climatisation réversible en Occitanie. Contenus 100 % éditables dans l'éditeur de blocs.
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: autan-climatisation
Tags: block-theme, full-site-editing, business, one-column
*/

/* ==========================================================================
   Construit à partir de la maquette HTML validée (dossier maquette/).
   Palette : #304269 · #91BED4 · #D9E8F5 · #FFFFFF · #F26101
   Les classes de la maquette sont posées sur les blocs (« Classes CSS
   additionnelles ») : chaque sélecteur cible le balisage réel des blocs.
   Police Hanken Grotesk : déclarée dans theme.json (auto-hébergée).
   Icônes : assets/icones.css (masques CSS, une classe icon-… par icône).
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --navy: #304269;
  --navy-hover: #24345a;
  --orange: #F26101;
  --orange-hover: #d95600;
  --orange-link-hover: #c94f00;
  --sky: #91BED4;
  --ice: #D9E8F5;
  --ice-soft: #E8F1F9;
  --ice-faint: #F7FAFD;
  --muted: #56627e;
  --muted-strong: #46536f;
  --muted-alt: #4b5874;
  --muted-light: #6a7690;
  --line: #e3ebf3;
  --field-line: #d3e0ec;
  --placeholder: #8f9ab2;
  --ink: 36, 50, 82; /* rgb du bleu nuit des voiles photo */

  --container: 1200px;
  --gutter: 32px;
  --section-y: 120px;
  --pill: 999px;

  /* Mouvement : mêmes courbes et durées partout pour une animation cohérente */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --reveal-distance: 28px;
  --reveal-duration: .8s;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
a:hover { color: var(--orange-link-hover); }

input, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Espacement automatique de WordPress : coupé dans theme.json (blockGap 0)
   et par add_theme_support( 'disable-layout-styles' ). Filet de sécurité à
   spécificité nulle, pour ne jamais écraser les marges des composants. */
:where(.wp-site-blocks, .wp-block-post-content, .wp-block-group) > :where(*) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

/* Icônes : pseudo-élément masqué par la forme de l'icône (--icon, voir icones.css) */
.header-phone > a::before,
.header-round > a::before,
.menu-toggle::before,
.hero__phone > a::before,
.hero__trust li::before,
.feature-list li::before,
.service__head::before,
.service__link > a::after,
.reassurance__item::before,
.contact-list li::before,
.faq__phone > a::before,
.footer__contact-item > a::before,
.footer__contact-item--top::before,
.step__num::after,
.next-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement ajouté par WordPress (« Aller au contenu ») */
html .skip-link.screen-reader-text:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  padding: 12px 18px;
  border-radius: var(--pill);
  box-shadow: 0 8px 24px rgba(48, 66, 105, .2);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Boutons ----------
   Bloc Bouton : la classe (btn…) est posée sur le conteneur div.wp-block-button,
   le style vise le lien. Les conteneurs sont transparents à la mise en page
   (display: contents) : le lien se place comme le bouton de la maquette. */
div.wp-block-buttons,
.wp-block-buttons > .wp-block-button.btn { display: contents; }
/* Conteneurs qui portent une marge ou une animation : ils gardent une boîte */
div.wp-block-buttons.expertise__cta,
div.wp-block-buttons.cta-band__btn { display: flex; }

.btn > .wp-block-button__link,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: var(--pill);
  font-weight: 700;
  line-height: normal;
  text-align: center;
  word-break: normal;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .3s var(--ease-out), transform .3s var(--ease-out), translate .35s var(--ease-out);
}
.btn--orange > .wp-block-button__link, button.btn--orange { background: var(--orange); color: #fff; }
.btn--orange > .wp-block-button__link:hover, button.btn--orange:hover { background: var(--orange-hover); color: #fff; }
.btn--navy > .wp-block-button__link { background: var(--navy); color: #fff; }
.btn--navy > .wp-block-button__link:hover { background: var(--navy-hover); color: #fff; }
.btn--white > .wp-block-button__link { background: #fff; color: var(--navy); }
.btn--white > .wp-block-button__link:hover { background: var(--navy); color: #fff; }

/* ---------- Éléments de titres ---------- */
.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section { padding: var(--section-y) 0; }

.section-head {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}
.section-head--wide { margin-bottom: 56px; }

.section-lead {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--pill);
}
.pill--light {
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  letter-spacing: .18em;
  padding: 8px 16px;
}
.pill--navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  letter-spacing: .16em;
  padding: 7px 15px;
}
.pill--navy::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ========================================================================== */
/* En-tête (parts/header.html) */
/* ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.admin-bar .site-header { top: 32px; }

.site-header__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}

/* Logo : rond blanc et trois traits « souffle de vent », dessinés en CSS.
   Le lien du nom couvre tout le logo (pseudo-élément étiré). */
.brand,
.footer__logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand::before,
.footer__logo::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.footer__logo::before { width: 40px; height: 40px; }

.brand::after, .brand__text::before, .brand__text::after,
.footer__logo::after, .footer__name::before, .footer__name::after {
  content: "";
  position: absolute;
  left: 12px;
  height: 2.5px;
  border-radius: 2px;
  pointer-events: none;
  transform-origin: left center;
  transition: translate .5s var(--ease-out), scale .5s var(--ease-out);
}
.footer__logo::after, .footer__name::before, .footer__name::after { left: 11px; }
.brand::after, .footer__logo::after { top: calc(50% - 6.75px); width: 17px; background: var(--navy); }
.brand__text::before, .footer__name::before { top: calc(50% - 1.25px); width: 12px; background: var(--orange); }
.brand__text::after, .footer__name::after { top: calc(50% + 4.25px); width: 15px; background: var(--sky); }

.brand__name a, .footer__name a,
.brand__name a:hover, .footer__name a:hover { color: inherit; }
.brand__name a::after, .footer__name a::after { content: ""; position: absolute; inset: 0; }
.brand__name a:focus-visible, .footer__name a:focus-visible { outline: none; }
.brand__name a:focus-visible::after, .footer__name a:focus-visible::after {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 24px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.brand__tag {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}

/* Menu : bloc Navigation (éditable dans l'éditeur de site) */
:is(.site-header, .editor-styles-wrapper) nav.site-nav {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
:is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation__container {
  display: flex;
  align-items: stretch;
  gap: 6px 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
:is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item { display: flex; }
:is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item .wp-block-navigation-item__content { display: block; padding: 0; color: #fff; }
:is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover { color: var(--sky); }
:is(.site-header, .editor-styles-wrapper) .site-nav .site-nav__cta { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone { display: flex; }
.header-phone > a {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-phone > a::before { font-size: 18px; }
.header-phone > a:hover { color: var(--sky); }

.header-cta .wp-block-button__link { font-size: 14.5px; padding: 11px 20px; white-space: nowrap; }

.header-round, .menu-toggle { display: none; }

/* ========================================================================== */
/* Hero */
/* ========================================================================== */
.hero {
  position: relative;
  min-height: 860px;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media .wp-block-image { height: 100%; }
.hero__media .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media .hero__img--mobile { display: none; }

/* Voile bleu nuit au-dessus de la photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--ink), .9) 0%, rgba(var(--ink), .72) 40%, rgba(var(--ink), .25) 72%, rgba(var(--ink), .1) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 170px var(--gutter) 110px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__title {
  color: #fff;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero__lead {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  max-width: 540px;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.hero__ctas .btn > .wp-block-button__link,
.thanks__ctas .btn > .wp-block-button__link { font-size: 15.5px; padding: 17px 30px; }

.hero__phone { display: flex; }
.hero__phone > a {
  flex: 1 1 auto;
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__phone > a::before { font-size: 19px; }
.hero__phone > a:hover { color: var(--sky); }

.hero__trust {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { font-size: 19px; background-color: var(--orange); }

/* ========================================================================== */
/* Expertise */
/* ========================================================================== */
.expertise {
  background: var(--ice);
  padding: var(--section-y) 0;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 72px;
  align-items: center;
}

.expertise__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.expertise__title {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.expertise__lead {
  color: var(--muted-strong);
  font-size: 16.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}
.feature-list li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.feature-list li::before { font-size: 21px; background-color: var(--orange); }

.wp-block-buttons.expertise__cta { margin-top: 14px; }
.expertise__cta .wp-block-button__link { font-size: 15px; padding: 15px 26px; }

.expertise__visual { position: relative; }

.wp-block-image.expertise__media {
  aspect-ratio: 4 / 3.2;
  border-radius: 18px;
  overflow: hidden;
  background: #c6dbec;
}
.wp-block-image.expertise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: -24px;
  bottom: 44px;
  max-width: 240px;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px rgba(48, 66, 105, .14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.floating-card__title { font-weight: 800; font-size: 16px; line-height: 1.25; }
.floating-card__text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ========================================================================== */
/* Prestations */
/* ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}
.service--featured { border: 1.5px solid var(--sky); }

.service__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--pill);
}

/* Icône de la carte : 28 px, puis 22 px jusqu'au titre (16 + 6 dans la maquette) */
.service__head { display: flex; flex-direction: column; gap: 4px; }
.service__head::before { font-size: 28px; margin-bottom: 18px; background-color: var(--sky); }
.service__title { font-size: 21px; font-weight: 800; }
.service__subtitle { font-size: 14px; color: var(--muted); font-weight: 500; }

.service__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  margin-top: 6px;
}
.service__list li { display: flex; align-items: center; gap: 10px; }
.service__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.service__link {
  display: flex;
  align-self: flex-start;
  margin-top: 10px;
}
.service__link > a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service__link > a::after { font-size: 17px; }
.service__link > a:hover { color: var(--orange); }

/* ========================================================================== */
/* Réassurance */
/* ========================================================================== */
.reassurance {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}

.reassurance__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}

.reassurance__item { display: flex; flex-direction: column; gap: 8px; }
.reassurance__item::before { font-size: 26px; background-color: #fff; }
.reassurance__title {
  margin-top: 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--orange);
}
.reassurance__item p { color: #fff; font-size: 14px; line-height: 1.6; }

/* ========================================================================== */
/* Réalisations */
/* ========================================================================== */
.realisations { background: var(--ice-soft); }
.realisations .section-lead { color: var(--muted-alt); }

.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.work {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #cddff0;
}
.work .wp-block-image { height: 100%; }
.work .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--ink), 0) 35%, rgba(var(--ink), .78) 78%, rgba(var(--ink), .86) 100%);
}
.work__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work__cat {
  color: var(--orange);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.work__title { color: #fff; font-size: 15.5px; font-weight: 700; }

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.section-cta .wp-block-button__link { font-size: 15px; padding: 16px 28px; }

/* ========================================================================== */
/* Bandeau d'appel à l'action */
/* ========================================================================== */
.cta-band {
  background: var(--orange);
  padding: 60px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band__text { display: flex; flex-direction: column; gap: 8px; }
.cta-band__title {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cta-band__text p { color: #fff; font-size: 15.5px; }
.cta-band .wp-block-button__link { font-size: 15px; padding: 16px 28px; }

/* ========================================================================== */
/* Avis clients */
/* ========================================================================== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.review {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
}
.review__stars { color: var(--orange); font-size: 14px; letter-spacing: 3px; }
.wp-block-quote.review__quote { flex: 1; margin: 0; padding: 0; border: 0; }
.review__quote p { font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.review__author { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.review__name { font-weight: 800; font-size: 15px; }
.review__meta { font-size: 13px; color: var(--muted-light); }

/* ========================================================================== */
/* Formulaire de devis (Contact Form 7, classes de la maquette dans le gabarit) */
/* ========================================================================== */
.devis { background: var(--ice-faint); }

.devis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 72px;
  align-items: start;
}

.devis__intro { display: flex; flex-direction: column; gap: 18px; }
.devis__intro .section-lead { max-width: 460px; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  font-size: 15.5px;
}
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.contact-list li::before { font-size: 20px; background-color: var(--orange); }
.contact-list a { color: var(--navy); }
.contact-list a:hover { color: var(--orange); }

.devis__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}

.devis__card form.form { display: flex; flex-direction: column; gap: 18px; }
.devis__card .hidden-fields-container { display: none; }
.devis__card .wpcf7-form-control-wrap { display: block; }
.devis__card .wpcf7-form-control-wrap > input,
.devis__card .wpcf7-form-control-wrap > textarea { display: block; }

.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice__legend { padding: 0; margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.devis__card .choice__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.devis__card .choice__options .wpcf7-list-item { display: block; margin: 0; }
.devis__card .choice__options label { position: relative; display: block; }
.choice__options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.devis__card .choice__options .wpcf7-list-item-label {
  display: block;
  padding: 12px 8px;
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.devis__card .choice__options .wpcf7-list-item-label::before,
.devis__card .choice__options .wpcf7-list-item-label::after { content: none; }
.choice__options input:hover:not(:checked) + .wpcf7-list-item-label { border-color: #b4c6d9; }
.devis__card .choice__options input:checked + .wpcf7-list-item-label { border-color: var(--navy); background: var(--ice); }
.choice__options input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--navy); outline-offset: 2px; }

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 400;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { display: block; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(48, 66, 105, .12);
}
.field input:user-invalid,
.field .wpcf7-not-valid { border-color: #c8412c; }
.devis__card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #9f3420;
  font-size: 12.5px;
  font-weight: 600;
}

/* Message d'erreur : même encadré que la maquette, au-dessus du bouton ([response]) */
.devis__card .wpcf7 form.form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #fdeeea;
  color: #9f3420;
  font-size: 14px;
  line-height: 1.5;
}
.devis__card .wpcf7 form.form.sent .wpcf7-response-output { display: none; }

.form__submit { margin-top: 4px; width: 100%; font-size: 15.5px; padding: 16px; }
.form__submit:disabled { opacity: .75; cursor: progress; }

.form__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted-light);
  line-height: 1.5;
  text-align: center;
}
.form__note a { color: inherit; text-decoration: underline; }
.form__note a:hover { color: var(--navy); }

/* Piège à robots : champ invisible pour les humains */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================================================== */
/* FAQ (blocs Détails) */
/* ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px 72px;
  align-items: start;
}

.faq__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
}

.faq__phone {
  display: flex;
  align-self: flex-start;
  margin-top: 8px;
}
.faq__phone > a {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq__phone > a::before { font-size: 19px; background-color: var(--orange); }
.faq__phone > a:hover { color: var(--orange); }

.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }

.faq__item > summary {
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px; /* icône +/− de 24 px + marges : hauteur d'une question sur une ligne */
  padding: 24px 48px 24px 0;
  cursor: pointer;
  color: var(--navy);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  transition: color .2s ease;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover { color: var(--orange-link-hover); }

/* Icône + qui se transforme en − à l'ouverture */
.faq__item > summary::before, .faq__item > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--orange);
  transition: rotate .4s var(--ease-out);
}
.faq__item > summary::after { rotate: 90deg; }
.faq__item[open]:not(.is-closing) > summary::after { rotate: 0deg; }

.faq__panel { overflow: hidden; }

.faq__answer {
  padding: 0 48px 26px 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ========================================================================== */
/* Pied de page (parts/footer.html) */
/* ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

.footer__brand {
  grid-column: span 2;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer__name { font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.footer__brand > p { color: var(--ice); font-size: 14.5px; line-height: 1.7; }
.footer__brand .wp-block-button__link { font-size: 14px; padding: 12px 22px; }

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ice);
}
.footer__title {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__col a { color: var(--ice); }
.footer__col a:hover { color: #fff; }

.footer__contact-item { display: flex; align-items: center; gap: 8px; }
.footer__contact-item > a { display: flex; align-items: center; gap: 8px; }
.footer__contact-item--top { align-items: flex-start; }
.footer__contact-item > a::before,
.footer__contact-item--top::before { font-size: 17px; background-color: var(--orange); }

.footer__bottom {
  max-width: var(--container);
  margin: 64px auto 0;
  padding: 24px var(--gutter);
  border-top: 1px solid rgba(217, 232, 245, .18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ice);
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--ice); }
.footer__legal a:hover { color: #fff; }

/* ========================================================================== */
/* Page « Mentions légales & confidentialité » */
/* ========================================================================== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 160px 0 72px;
}
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.page-hero__title {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.page-hero__lead { color: var(--ice); font-size: 16.5px; line-height: 1.7; max-width: 620px; }

.legal { padding: 80px 0 112px; }
.legal__body { max-width: 760px; }
.legal__body h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 64px 0 8px;
  scroll-margin-top: 24px;
}
.legal__body > h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 17.5px; font-weight: 800; margin: 32px 0 10px; }
.legal__body p, .legal__body li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal__body p + p { margin-top: 10px; }
.legal__body ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.legal__body a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.legal__body a:hover { color: var(--orange); }
.legal__body strong { color: var(--navy); }

/* Informations à compléter : surlignage de l'éditeur (Surligner) */
.legal__body mark {
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}

/* ========================================================================== */
/* Adaptations tablette et mobile */
/* ========================================================================== */
@media (max-width: 1080px) {
  :is(.site-header, .editor-styles-wrapper) nav.site-nav {
    order: 3;
    flex-basis: 100%;
  }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation__container { justify-content: flex-start; }
  .hero::after {
    background: linear-gradient(90deg, rgba(var(--ink), .9) 0%, rgba(var(--ink), .78) 50%, rgba(var(--ink), .5) 100%);
  }
}

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-y: 80px;
  }

  /* En-tête compact avec menu déroulant */
  .site-header__inner {
    flex-wrap: nowrap;
    column-gap: 12px;
    padding: 16px var(--gutter);
  }
  .brand__tag { white-space: nowrap; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .header-phone,
  .site-header__actions .header-cta { display: none; }

  .header-round, .menu-toggle { display: flex; }
  .header-round > a, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 0;
    cursor: pointer;
    transition: background-color .15s ease;
  }
  .header-round > a:hover, .menu-toggle:hover { background: rgba(255, 255, 255, .18); color: #fff; }
  .header-round > a::before, .menu-toggle::before { font-size: 22px; }
  .menu-toggle { --icon: var(--i-menu); }
  .site-header.is-open .menu-toggle { --icon: var(--i-close); }

  :is(.site-header, .editor-styles-wrapper) nav.site-nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 10px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(20, 30, 55, .3);
    white-space: normal;
  }
  .site-header.is-open nav.site-nav { display: block; }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation__container { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item .wp-block-navigation-item__content {
    flex: 1 1 auto;
    color: var(--navy);
    font-size: 17px;
    font-weight: 600;
    padding: 13px 14px;
    border-radius: 10px;
  }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover { color: var(--navy); background: var(--ice-faint); }
  :is(.site-header, .editor-styles-wrapper) .site-nav .site-nav__cta { display: flex; }
  :is(.site-header, .editor-styles-wrapper) .site-nav .site-nav__cta .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 15px;
    background: var(--orange);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: var(--pill);
  }
  :is(.site-header, .editor-styles-wrapper) .site-nav .site-nav__cta .wp-block-navigation-item__content:hover { color: #fff; background: var(--orange-hover); }

  /* Hero */
  .hero { min-height: 0; }
  .hero__inner { padding: 128px var(--gutter) 72px; }
  .hero__media .hero__img--desktop { display: none; }
  .hero__media .hero__img--mobile { display: block; }
  .hero::after {
    background: linear-gradient(180deg, rgba(var(--ink), .84) 0%, rgba(var(--ink), .74) 55%, rgba(var(--ink), .88) 100%);
  }
  .hero__content { gap: 22px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hero__phone > a { justify-content: center; padding: 14px 18px; }
  .hero__trust { flex-direction: column; gap: 12px; margin-top: 6px; }

  /* Sections */
  .section-head, .section-head--wide { margin-bottom: 36px; }
  .expertise__grid, .devis__grid { gap: 48px; }
  .floating-card {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 14px 18px;
  }
  .cta-band__btn.wp-block-buttons,
  .cta-band .wp-block-button__link { width: 100%; }
  .devis__card { padding: 26px 20px; }
  .devis__card .choice__options .wpcf7-list-item-label { padding: 12px 4px; font-size: 13.5px; }
  .faq__item > summary { min-height: 64px; font-size: 16.5px; padding-top: 20px; padding-bottom: 20px; }
  .faq__answer { padding-right: 0; }

  /* Pied de page */
  .site-footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { margin-top: 48px; }

  .page-hero { padding: 128px 0 56px; }
  .legal { padding: 56px 0 80px; }
}

@media (max-width: 400px) {
  .site-header .brand__tag { font-size: 10px; letter-spacing: .08em; }
}

@media (max-width: 350px) {
  .site-header .brand__tag { display: none; }
}

/* ========================================================================== */
/* Page de remerciement */
/* ========================================================================== */
.thanks {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 176px 0 112px;
}
.thanks::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(640px circle at 88% 0%, rgba(145, 190, 212, .22), transparent 62%), radial-gradient(560px circle at 6% 100%, rgba(242, 97, 1, .14), transparent 60%);
}
.thanks__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* Pastille cochée (la coche se dessine : animation dans le SVG) et onde */
.thanks__inner::before {
  content: "";
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 88'%3E%3Cstyle%3E@media (prefers-reduced-motion:no-preference){path{animation:d .6s cubic-bezier(.22,1,.36,1) .55s both}}@keyframes d{from{stroke-dashoffset:48}to{stroke-dashoffset:0}}%3C/style%3E%3Ccircle cx='44' cy='44' r='42' fill='rgba(242,97,1,.14)' stroke='%23F26101' stroke-width='2'/%3E%3Cpath d='M28 45 L39 56 L61 33' fill='none' stroke='%23F26101' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='48'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.thanks__inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.thanks__title {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.thanks__lead {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}
/* Variantes personnalisées : présentes dans la page, affichées par app.js */
.thanks__lead--precis:not(.est-actif),
.thanks__recap:not(.est-actif),
.thanks__lead--generique.est-masque { display: none; }
.thanks__recap {
  max-width: 560px;
  padding: 14px 20px;
  border: 1px solid rgba(217, 232, 245, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--ice);
  font-size: 15px;
  line-height: 1.6;
}
.thanks__recap strong { color: #fff; white-space: nowrap; }
.thanks__recap a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.thanks__recap a:hover { color: var(--sky); }
.thanks__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.section--compact { padding: 96px 0; }

/* Étapes suivantes */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}
.step__num::after { font-size: 28px; background-color: var(--sky); }
.step__title { margin-top: 8px; font-size: 19px; font-weight: 800; }
.step__text { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* En attendant notre appel : cartes entièrement cliquables (lien étiré du titre) */
.wait { background: var(--ice-soft); }
.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.next-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
}
.wp-block-image.next-link__media {
  width: 112px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ice);
}
.wp-block-image.next-link__media img { width: 100%; height: 100%; object-fit: cover; }
.next-link--faq::before {
  content: "";
  width: 112px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23304269'%3E%3Cpath d='M513.5-254.5Q528-269 528-290t-14.5-35.5Q499-340 478-340t-35.5 14.5Q428-311 428-290t14.5 35.5Q457-240 478-240t35.5-14.5ZM442-394h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
}
.next-link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-link__title { font-size: 17px; font-weight: 800; }
.next-link__title a { color: inherit; }
.next-link__title a:hover { color: inherit; }
.next-link__title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.next-link__title a:focus-visible { outline: none; }
.next-link__title a:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 3px; }
.next-link__text { color: var(--muted); font-size: 14px; line-height: 1.5; }
.next-link::after { --icon: var(--i-arrow-forward); font-size: 22px; background-color: var(--navy); }
.service__link > a::after { --icon: var(--i-arrow-forward); }

@media (max-width: 720px) {
  .thanks { padding: 128px 0 80px; }
  .section--compact { padding: 64px 0; }
  .thanks__lead { font-size: 17px; }
  .thanks__ctas { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .next-link { gap: 16px; padding-right: 16px; }
  .wp-block-image.next-link__media, .next-link--faq::before { width: 88px; }
}

/* ========================================================================== */
/* Animations & micro-interactions */
/* - Rien ne bouge si le visiteur a demandé à réduire les animations : la    */
/*   classe .has-motion n'est alors pas ajoutée (script en tête de page).    */
/* - Les effets liés au survol et au curseur sont réservés aux appareils     */
/*   équipés d'une souris ou d'un pavé tactile.                              */
/* ========================================================================== */

/* ---------- Apparition au défilement (classes reveal / reveal-zoom) ---------- */
.has-motion .reveal,
.has-motion .reveal-zoom {
  opacity: 0;
  translate: 0 var(--reveal-distance);
  transition: opacity var(--reveal-duration) var(--ease-out), translate var(--reveal-duration) var(--ease-out), scale var(--reveal-duration) var(--ease-out);
}
.has-motion .reveal-zoom { translate: none; scale: .96; }
.has-motion .reveal.is-revealed,
.has-motion .reveal-zoom.is-revealed { opacity: 1; translate: none; scale: none; }

/* ---------- Entrée en haut de page (CSS seul : ne dépend d'aucun script) ---------- */
@keyframes rise-in {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-settle {
  from { scale: 1.08; }
  to { scale: 1; }
}
@keyframes badge-pop {
  0% { opacity: 0; scale: .6; }
  60% { opacity: 1; scale: 1.06; }
  100% { opacity: 1; scale: 1; }
}
@keyframes ring-out {
  0% { opacity: 0; scale: 1; }
  10% { opacity: .7; }
  100% { opacity: 0; scale: 1.7; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header__inner { animation: fade-in .9s ease .1s both; }
  :is(.hero__content, .page-hero__inner, .thanks__inner) > * {
    animation: rise-in .9s var(--ease-out) both;
  }
  :is(.hero__content, .page-hero__inner) > :nth-child(1) { animation-delay: .1s; }
  :is(.hero__content, .page-hero__inner) > :nth-child(2) { animation-delay: .18s; }
  :is(.hero__content, .page-hero__inner) > :nth-child(3) { animation-delay: .26s; }
  :is(.hero__content, .page-hero__inner) > :nth-child(4) { animation-delay: .34s; }
  :is(.hero__content, .page-hero__inner) > :nth-child(5) { animation-delay: .42s; }
  /* Page merci : la pastille (pseudo-élément) ouvre la marche */
  .thanks__inner > .pill { animation-delay: .18s; }
  .thanks__inner > .thanks__title { animation-delay: .26s; }
  .thanks__inner > .thanks__lead { animation-delay: .34s; }
  .thanks__inner > .thanks__recap { animation-delay: .42s; }
  .thanks__inner > .thanks__ctas { animation-delay: .5s; }

  /* La photo du hero se pose doucement au chargement */
  .hero__media .wp-block-image img { animation: hero-settle 1.8s var(--ease-out) both; }
  /* Marge autour de la photo du hero pour la parallaxe et l'effet curseur */
  .hero__media { inset: -12px; }

  .thanks__inner::before { animation: badge-pop .7s var(--ease-out) .1s both; }
  .thanks__inner::after { animation: ring-out 1.3s var(--ease-out) .9s both; }
}

/* Calques de parallaxe (déplacés par app.js) */
.has-motion .hero__media, .has-motion .floating-card { will-change: transform; }

/* ---------- Boutons ---------- */
.btn > .wp-block-button__link:active, button.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
button.btn:disabled, button.btn:disabled:hover { transform: none; box-shadow: none; }

@keyframes spin {
  to { rotate: 360deg; }
}
.form__submit.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Choix du besoin : petit rebond à la sélection */
@keyframes pop {
  0% { scale: .95; }
  60% { scale: 1.02; }
  100% { scale: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .choice__options input:checked + .wpcf7-list-item-label { animation: pop .35s var(--ease-out); }
}

/* ---------- Transitions des éléments survolables ---------- */
.service__link > a::after { transition: translate .35s var(--ease-out); }
.next-link::after { transition: translate .35s var(--ease-out), background-color .2s ease; }
.wp-block-image.next-link__media img { transition: scale .8s var(--ease-out); }
.work .wp-block-image img { transition: scale 1s var(--ease-out); }
.work__caption { transition: translate .5s var(--ease-out); }
.service, .next-link {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease;
}
.review { transition: border-color .3s ease, box-shadow .4s var(--ease-out); }
.service__head::before { transition: background-color .3s ease, scale .45s var(--ease-out); }

/* Halo qui suit le curseur sur les cartes de prestations */
.service { isolation: isolate; }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(145, 190, 212, .22), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

/* Le téléphone « sonne » au survol des liens d'appel */
@keyframes ring {
  0%, 100% { rotate: 0deg; }
  15% { rotate: -14deg; }
  30% { rotate: 12deg; }
  45% { rotate: -9deg; }
  60% { rotate: 6deg; }
  75% { rotate: -3deg; }
}

@media (hover: hover) {
  .btn > .wp-block-button__link:hover, button.btn:hover { transform: translateY(-2px); }
  .btn--orange > .wp-block-button__link:hover, button.btn--orange:hover { box-shadow: 0 14px 28px -14px rgba(242, 97, 1, .7); }
  .btn--navy > .wp-block-button__link:hover { box-shadow: 0 14px 28px -14px rgba(36, 50, 82, .65); }
  .btn--white > .wp-block-button__link:hover { box-shadow: 0 14px 28px -14px rgba(36, 50, 82, .55); }

  /* Logo : les trois traits s'étirent comme un souffle de vent */
  .brand:hover::after, .footer__logo:hover::after { translate: 3px 0; }
  .brand:hover .brand__text::before, .footer__logo:hover .footer__name::before { translate: 6px 0; scale: 1.25 1; transition-delay: .05s; }
  .brand:hover .brand__text::after, .footer__logo:hover .footer__name::after { translate: 2px 0; scale: .8 1; transition-delay: .1s; }

  a[href^="tel:"]:hover::before { animation: ring .8s ease-in-out; }

  .service__link > a:hover::after { translate: 4px 0; }

  .service:hover {
    transform: translateY(-4px);
    border-color: #c4d9e8;
    box-shadow: 0 26px 50px -30px rgba(48, 66, 105, .5);
  }
  .service--featured:hover { border-color: var(--sky); }
  .service:hover::before { opacity: 1; }
  .service:hover .service__head::before { background-color: var(--orange); scale: 1.1; }

  .work:hover .wp-block-image img { scale: 1.045; }
  .work:hover .work__caption { translate: 0 -4px; }

  .review:hover { border-color: #c4d9e8; box-shadow: 0 20px 44px -30px rgba(48, 66, 105, .45); }

  .next-link:hover {
    transform: translateY(-3px);
    border-color: #c4d9e8;
    box-shadow: 0 22px 44px -30px rgba(48, 66, 105, .5);
  }
  .next-link:hover::after { translate: 4px 0; background-color: var(--orange); }
  .next-link:hover .wp-block-image.next-link__media img { scale: 1.06; }
}

/* Soulignement animé du menu (ordinateur) */
@media (min-width: 721px) and (hover: hover) {
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item:not(.site-nav__cta) > .wp-block-navigation-item__content { position: relative; }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item:not(.site-nav__cta) > .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    scale: 0 1;
    transform-origin: right center;
    transition: scale .35s var(--ease-out);
  }
  :is(.site-header, .editor-styles-wrapper) .site-nav .wp-block-navigation-item:not(.site-nav__cta) > .wp-block-navigation-item__content:hover::after { scale: 1 1; transform-origin: left center; }
}

/* ---------- Mouvements réduits et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .reveal, .reveal-zoom { opacity: 1 !important; translate: none !important; scale: none !important; }
}
