/* Perotti Multiservices — feuille de styles */

/* ── Polices hébergées en local ── */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C8181E;
  --red-dk: #9E1217;
  --red-lt: #E03038;
  --white:  #FFFFFF;
  --off:    #F9F7F5;
  --light:  #F2EDEA;
  --border: #E4DBD6;
  --text:   #1C1612;
  --muted:  #63544C;
  --dark:   #180C08;
  --H: 'Poppins', system-ui, sans-serif;
  --B: 'Inter', system-ui, sans-serif;
  --nav-h: 88px;
  --pad-x: 6%;
  --max: 1280px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.no-scroll { overflow: hidden; }
body { font-family: var(--B); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-red :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 500;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 5px;
  font-family: var(--H); font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ════════ NAV ════════ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.13); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: var(--nav-h);
}
.nav-logo img { height: 66px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--H); font-size: 13px; font-weight: 600;
  color: #2A1E18; text-decoration: none; padding: 9px 16px; border-radius: 5px;
  letter-spacing: 0.3px; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--red); background: rgba(200,24,30,0.06); }
.nav-links a.nav-cta { background: var(--red); color: #fff; padding: 10px 22px; margin-left: 8px; }
.nav-links a.nav-cta:hover { background: var(--red-dk); color: #fff; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; cursor: pointer; border: none; background: none;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px var(--pad-x) 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--H); font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.nav-mobile a:last-child { border-bottom: none; color: var(--red); }

/* ════════ HERO ════════ */
.hero {
  position: relative; min-height: min(92vh, 920px);
  display: flex; align-items: center; overflow: hidden;
  background: var(--dark); margin-top: var(--nav-h);
  padding: 72px 0 120px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(24,12,8,0.86) 38%, rgba(24,12,8,0.2) 100%);
}
/* content-box : la largeur utile du texte ne dépend plus des marges latérales (en % de l'écran) */
.hero-content { position: relative; z-index: 2; box-sizing: content-box; padding: 0 var(--pad-x); max-width: 820px; animation: fadeUp 0.85s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 3.5px; text-transform: uppercase; color: rgba(255,214,196,0.95);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1.5px; background: rgba(255,180,150,0.7); flex-shrink: 0; }

.hero-title {
  font-family: var(--H); font-size: min(72px, max(5.5vw, min(30px, 10vw)));
  font-weight: 800; color: #fff; line-height: 1.08;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
/* Toujours deux lignes : la première ne se coupe jamais, la taille du texte s'adapte à l'écran */
.hero-title span { display: block; white-space: nowrap; }
.hero-title .l2 { color: #FF4A50; }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px); font-weight: 300; color: rgba(255,255,255,0.85);
  max-width: 520px; margin-bottom: 36px; line-height: 1.75;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 5px; border: 1.5px solid transparent;
  font-family: var(--H); font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: #fdf0e8; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); }

.hero-stats {
  position: absolute; bottom: 40px; right: var(--pad-x); z-index: 2;
  display: flex; gap: 40px; list-style: none; animation: fadeUp 1s 0.35s ease both;
}
.stat-num { font-family: var(--H); font-size: 38px; font-weight: 800; color: #fff; line-height: 1; display: block; }
.stat-lbl { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 4px; display: block; }

/* Pictogrammes flottants */
.hero-pictos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.picto { position: absolute; fill: rgba(255,255,255,0.11); animation: float 8s ease-in-out infinite; }
/* côté droit */
.p1  { top: 6%;  right: 4%;  width: 96px; animation-duration: 7s; }
.p2  { top: 40%; right: 13%; width: 108px; }
.p3  { top: 62%; right: 3%;  width: 80px; animation-duration: 6.5s; animation-delay: 0.6s; }
.p4  { top: 11%; right: 30%; width: 72px; animation-duration: 9s; animation-delay: 1s; }
.p5  { top: 60%; right: 31%; width: 62px; animation-duration: 7.5s; animation-delay: 0.5s; }
.p6  { top: 34%; right: 44%; width: 74px; animation-duration: 8.500s; animation-delay: 1.5s; }
.p7  { top: 24%; right: 19%; width: 54px; animation-duration: 10s; animation-delay: 0.3s; }
.p8  { top: 5%;  right: 17%; width: 46px; animation-duration: 6s; animation-delay: 1.2s; }
.p9  { top: 46%; right: 26%; width: 50px; animation-duration: 9.500s; animation-delay: 2s; }
/* derrière le texte et en bordure : plus discrets */
.p10 { top: 5%;  left: 3%;  width: 84px; fill: rgba(255,255,255,0.055); animation-duration: 10s; animation-delay: 0.8s; }
.p11 { bottom: 9%; left: 5%; width: 68px; fill: rgba(255,255,255,0.055); animation-duration: 9.500s; animation-delay: 2s; }
.p12 { top: 4%;  left: 46%; width: 54px; fill: rgba(255,255,255,0.07); animation-duration: 8.500s; animation-delay: 0.3s; }
.p13 { bottom: 6%; left: 40%; width: 58px; fill: rgba(255,255,255,0.07); animation-duration: 9s; animation-delay: 1.8s; }
.p14 { top: 44%; left: 1.500%; width: 52px; fill: rgba(255,255,255,0.05); animation-duration: 11s; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 64px 0 72px; }
  .hero-stats { display: none; }
  /* Sur mobile, on ne garde que quelques pictos, en bordure */
  .picto { display: none; }
  .p1, .p3, .p8, .p13 { display: block; }
  .p1 { width: 64px; top: 4%; right: 5%; }
  .p3 { width: 56px; top: auto; bottom: 5%; right: 6%; }
  .p8 { width: 34px; top: 3%; right: 38%; }
  .p13 { width: 44px; bottom: 3%; left: 8%; }
}

/* ════════ SECTIONS ════════ */
.section { padding: clamp(64px, 8vw, 104px) var(--pad-x); position: relative; }
.section > .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); flex-shrink: 0; }
.stitle {
  font-family: var(--H); font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800; color: var(--text); line-height: 1.12;
  margin-bottom: 14px; letter-spacing: -0.3px;
}
.sintro { font-size: 16px; color: var(--muted); max-width: 600px; line-height: 1.8; }

/* ════════ SERVICES ════════ */
#services { background: var(--off); }
.services-top { margin-bottom: 40px; }

.srv-explorer {
  display: grid; grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px); align-items: stretch;
}

/* ── Menu : sans JavaScript il est masqué et les trois services s'affichent à la suite ── */
.srv-menu { display: none; position: relative; flex-direction: column; gap: 10px; }
.js-tabs .srv-menu { display: flex; }

/* Pastille rouge qui glisse d'un service à l'autre */
.srv-menu-ind {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  background: var(--red); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(200,24,30,0.3);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), width 0.3s, height 0.3s;
  pointer-events: none;
}
.srv-tab {
  position: relative; z-index: 1; overflow: hidden;
  display: flex; align-items: center; gap: 14px; width: 100%;
  flex: 1; padding: 18px 20px; text-align: left; cursor: pointer;
  color: var(--text); background: var(--white);
  border: 1.5px solid var(--border); border-radius: 12px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s;
}
.srv-tab:hover { border-color: var(--red); transform: translateX(5px); }
.srv-tab[aria-selected="true"] { background: transparent; border-color: transparent; color: #fff; transform: none; }
.srv-tab[aria-selected="true"]:focus-visible { outline-color: var(--text); }

.srv-tab-ico {
  flex: 0 0 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,24,30,0.08);
  transition: background 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.srv-tab-ico svg { width: 26px; height: 26px; fill: var(--red); transition: fill 0.25s; }
.srv-tab:hover .srv-tab-ico { transform: rotate(-14deg) scale(1.12); }
.srv-tab[aria-selected="true"] .srv-tab-ico { background: rgba(255,255,255,0.2); transform: scale(1.08); }
.srv-tab[aria-selected="true"] .srv-tab-ico svg { fill: #fff; }

.srv-tab-txt strong { display: block; font-family: var(--H); font-size: 17px; font-weight: 700; line-height: 1.25; }
.srv-tab-txt small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.35; transition: color 0.25s; }
.srv-tab[aria-selected="true"] .srv-tab-txt small { color: rgba(255,255,255,0.9); }

/* Barre de progression du défilement automatique */
.srv-tab-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255,255,255,0.75); }
.autoplay .srv-tab[aria-selected="true"] .srv-tab-bar { animation: srvProgress 7s linear forwards; }
.autoplay:hover .srv-tab-bar, .autoplay:focus-within .srv-tab-bar { animation-play-state: paused; }
@keyframes srvProgress { from { width: 0; } to { width: 100%; } }

/* ── Panneaux ── */
.srv-panels { display: grid; gap: 24px; }
.srv-panel {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 34px rgba(28,22,18,0.06);
}
/* Avec JavaScript : les panneaux sont superposés, la hauteur ne saute donc jamais */
.js-tabs .srv-panel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985);
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}
.js-tabs .srv-panel.active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.45s 0.08s, transform 0.45s 0.08s;
}

.srv-img { position: relative; min-height: 340px; overflow: hidden; background: var(--light); }
.srv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js-tabs .srv-panel.active .srv-img img { animation: srvZoom 7s ease-out both; }
@keyframes srvZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.srv-img::after { content: ''; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, rgba(24,12,8,0.55)); }
.srv-num {
  position: absolute; left: 22px; bottom: 10px; z-index: 1;
  font-family: var(--H); font-size: 68px; font-weight: 800; line-height: 1; color: #fff; opacity: 0.92;
}

.srv-body { padding: 32px 34px; align-self: center; }
.srv-title { font-family: var(--H); font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.srv-sub {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--red); margin-bottom: 22px;
}
.srv-items { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.srv-items li { position: relative; padding-left: 20px; }
.srv-items li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
}
.srv-items h4 { font-family: var(--B); font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.srv-items p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Les prestations arrivent l'une après l'autre */
.js-tabs .srv-panel.active .srv-items li { animation: srvItem 0.5s ease both; }
.js-tabs .srv-panel.active .srv-items li:nth-child(1) { animation-delay: 0.12s; }
.js-tabs .srv-panel.active .srv-items li:nth-child(2) { animation-delay: 0.2s; }
.js-tabs .srv-panel.active .srv-items li:nth-child(3) { animation-delay: 0.28s; }
.js-tabs .srv-panel.active .srv-items li:nth-child(4) { animation-delay: 0.36s; }
@keyframes srvItem { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .srv-explorer { grid-template-columns: 1fr; }
  .js-tabs .srv-menu { flex-direction: row; }
  .srv-tab { padding: 14px 16px; }
  .srv-tab-ico { flex-basis: 46px; height: 46px; }
  .srv-tab-ico svg { width: 22px; height: 22px; }
  .srv-tab-txt strong { font-size: 15px; }
  .srv-tab-txt small { font-size: 12px; }
  .srv-tab:hover { transform: translateY(-3px); }
  .srv-tab[aria-selected="true"] { transform: none; }
}
@media (max-width: 860px) {
  .srv-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .srv-body { align-self: start; }
  .srv-img { min-height: 0; aspect-ratio: 16 / 9; }
  .srv-num { font-size: 48px; left: 16px; bottom: 6px; }
  .srv-body { padding: 24px 22px 26px; }
  .srv-title { font-size: 22px; }
}
@media (max-width: 640px) {
  .srv-menu { gap: 8px; }
  .srv-tab { flex-direction: column; gap: 8px; padding: 12px 6px; text-align: center; }
  .srv-tab-ico { flex-basis: auto; width: 40px; height: 40px; }
  .srv-tab-txt strong { font-size: 12px; }
  .srv-tab-txt small { display: none; }
}

/* ════════ ABOUT ════════ */
#about { background: var(--white); overflow: hidden; }
#about::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Crect x='1' y='1' width='76' height='17' rx='1' fill='none' stroke='%23c8181e' stroke-opacity='.04'/%3E%3Crect x='-39' y='21' width='76' height='17' rx='1' fill='none' stroke='%23c8181e' stroke-opacity='.04'/%3E%3Crect x='41' y='21' width='76' height='17' rx='1' fill='none' stroke='%23c8181e' stroke-opacity='.04'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 24px; right: -14px;
  background: var(--red); color: #fff;
  padding: 18px 22px; text-align: center; border-radius: 8px;
  box-shadow: 0 8px 32px rgba(200,24,30,0.4);
}
.about-badge strong { display: block; font-family: var(--H); font-size: 38px; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.about-p { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.about-p strong { color: var(--text); }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; list-style: none; }
.about-feats li {
  display: flex; align-items: center; gap: 10px;
  background: var(--off); border-radius: 7px; padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: var(--H); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
}
.about-feats li::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* ════════ APPARITION AU DÉFILEMENT ════════ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ════════ BARRE D'APPEL MOBILE ════════ */
.call-bar { display: none; }

/* ════════ PAGE 404 ════════ */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 6%; background: var(--off); }
.page-404 img { height: 90px; width: auto; margin-bottom: 32px; }
.page-404 .code { font-family: var(--H); font-size: clamp(72px, 16vw, 140px); font-weight: 800; color: var(--red); line-height: 1; }
.page-404 h1 { font-family: var(--H); font-size: clamp(22px, 4vw, 32px); font-weight: 800; margin: 8px 0 12px; }
.page-404 p { color: var(--muted); max-width: 460px; margin-bottom: 28px; }
.page-404 .hero-btns { justify-content: center; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: rgba(200,24,30,0.06); }

/* ════════ PARTNERS ════════ */
#partners { background: var(--white); border-top: 3px solid var(--red); overflow: hidden; }
#partners::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(200,24,30,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.partners-top { margin-bottom: 48px; }
.p-block { margin-bottom: 44px; }
.p-block:last-child { margin-bottom: 0; }
.p-block-lbl {
  font-family: var(--B); font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.p-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; list-style: none; }
.p-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 20px 24px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.p-card:hover { border-color: var(--red); box-shadow: 0 6px 20px rgba(200,24,30,0.09); }
.p-card img { max-height: 66px; max-width: 100%; width: auto; object-fit: contain; }

/* ════════ CTA ════════ */
#cta { background: var(--red); padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); overflow: hidden; }
#cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 32px);
}
.cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.cta-row h2 { font-family: var(--H); font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 8px; }
.cta-row p { font-size: 16px; color: rgba(255,255,255,0.92); max-width: 480px; line-height: 1.72; }
.cta-row .btn { padding: 16px 36px; font-size: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.14); }

/* ════════ FOOTER ════════ */
.site-footer { background: var(--dark); padding: clamp(48px, 6vw, 72px) var(--pad-x) 32px; color: rgba(255,255,255,0.72); }
.foot-top {
  border-bottom: 1px solid rgba(200,24,30,0.4);
  padding-bottom: 32px; margin-bottom: 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.foot-logo { height: 52px; width: auto; }
.foot-tag { font-family: var(--H); font-size: 17px; font-weight: 700; color: rgba(255,200,175,0.95); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.foot-desc { font-size: 14px; line-height: 1.75; }
.site-footer h3 { font-family: var(--H); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.foot-links a, .foot-contact a { font-size: 14px; color: rgba(255,255,255,0.72); text-decoration: none; display: inline-block; padding: 4px 0; transition: color 0.2s; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; }
.foot-contact { font-style: normal; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.f-r { display: flex; gap: 10px; align-items: flex-start; }
.f-r svg { width: 15px; height: 15px; fill: #FF8F7A; flex-shrink: 0; margin-top: 7px; }
.f-r span { padding: 4px 0; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}

/* ════════ TIROIR DEVIS (dialog) ════════ */
.quote-drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0;
  width: min(640px, 100vw); height: 100dvh; max-height: none; max-width: none;
  border: none; padding: 0; background: var(--white); color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 8px 0 48px rgba(0,0,0,0.2);
}
.quote-drawer[open] { animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.quote-drawer::backdrop { background: rgba(24,12,8,0.6); backdrop-filter: blur(3px); }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.d-header {
  position: sticky; top: 0; z-index: 10; background: var(--white);
  border-bottom: 1px solid var(--border); padding: 22px 28px 18px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.d-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.d-title { font-family: var(--H); font-size: 24px; font-weight: 800; line-height: 1.2; }
.d-close {
  width: 44px; height: 44px; border-radius: 50%; background: var(--light);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s, transform 0.25s;
}
.d-close:hover { background: rgba(200,24,30,0.12); transform: rotate(90deg); }
.d-close svg { width: 18px; height: 18px; fill: var(--muted); }
.d-body { padding: 22px 28px 40px; }

.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-g { display: flex; flex-direction: column; gap: 6px; border: none; min-width: 0; }
.fg-g.full { grid-column: 1 / -1; }
.fg-g > label, .fg-g > legend { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.fg-g > legend { margin-bottom: 8px; }
.fg-g input[type="text"], .fg-g input[type="email"], .fg-g input[type="tel"], .fg-g select, .fg-g textarea {
  font-family: var(--B); font-size: 16px; color: var(--text);
  background: var(--off); border: 1.5px solid #cfc3bc; border-radius: 6px;
  padding: 11px 13px; width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.fg-g input:focus, .fg-g select:focus, .fg-g textarea:focus { border-color: var(--red); background: var(--white); outline: 2px solid rgba(200,24,30,0.25); outline-offset: 0; }
.fg-g textarea { resize: vertical; min-height: 110px; }

/* Champ piège anti-robots : invisible pour les humains */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.d-legal { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.d-status { display: none; padding: 14px 16px; border-radius: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; border: 1.5px solid; }
.d-status.ok { display: block; color: #1b5e20; background: #edf7ee; border-color: #2e7d32; }
.d-status.err { display: block; color: var(--red-dk); background: rgba(200,24,30,0.05); border-color: var(--red); }

/* ════════ FORMULAIRE PAR ÉTAPES ════════ */
/* Sans JavaScript : toutes les étapes s'affichent à la suite, avec le seul bouton d'envoi. */
.wz-head, #wz-back, #wz-next, .wz-done { display: none; }
.wz-step { margin-bottom: 28px; }
.wz-title { font-family: var(--H); font-size: 21px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.wz-title:focus { outline: none; }
.wz-hint { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.wz-sub { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }

/* ── Progression ── */
.js-wizard .wz-head { display: block; position: relative; margin-bottom: 28px; }
.wz-track { position: absolute; top: 17px; left: 16.66%; right: 16.66%; height: 3px; background: var(--border); border-radius: 3px; }
.wz-fill { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.wz-progress { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.wz-progress li { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wz-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--border); color: var(--muted);
  font-family: var(--H); font-size: 14px; font-weight: 700;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wz-lbl { font-size: 12px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.wz-progress li.current .wz-dot { border-color: var(--red); color: var(--red); transform: scale(1.14); box-shadow: 0 0 0 5px rgba(200,24,30,0.12); }
.wz-progress li.current .wz-lbl { color: var(--text); }
.wz-progress li.done .wz-dot {
  border-color: var(--red); color: transparent;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ── Étapes ── */
.js-wizard .wz-step { display: none; margin-bottom: 0; }
.js-wizard .wz-step.current { display: block; animation: wzIn 0.4s ease both; }
.js-wizard.going-back .wz-step.current { animation-name: wzInBack; }
@keyframes wzIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

/* ── Tuiles de services ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px 16px; cursor: pointer; text-align: center;
  background: var(--white); border: 1.5px solid #cfc3bc; border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tile input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(200,24,30,0.12); }
.tile-ico {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(200,24,30,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile-ico svg { width: 26px; height: 26px; fill: var(--red); transition: fill 0.2s; }
.tile-lbl { font-family: var(--H); font-size: 14px; font-weight: 700; }
.tile::after {
  content: ''; position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile:has(input:checked) { border-color: var(--red); background: rgba(200,24,30,0.05); }
.tile:has(input:checked)::after { transform: scale(1); }
.tile:has(input:checked) .tile-ico { background: var(--red); transform: scale(1.08) rotate(-8deg); }
.tile:has(input:checked) .tile-ico svg { fill: #fff; }
.tile:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

/* ── Pastilles (type de bien, délai) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: var(--white); border: 1.5px solid #cfc3bc; border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
/* Variante compacte : les cinq types de bien tiennent sur une ligne dans le tiroir */
.chips-tight { gap: 6px; }
.chips-tight .chip { padding: 8px 11px; font-size: 13px; gap: 5px; }
.chips-tight .chip svg { width: 15px; height: 15px; }
.chip svg { width: 17px; height: 17px; fill: var(--muted); transition: fill 0.2s; }
.chip:hover { border-color: var(--red); }
.chip:has(input:checked) { border-color: var(--red); background: var(--red); color: #fff; }
.chip:has(input:checked) svg { fill: #fff; }

/* ── Récapitulatif ── */
.wz-recap { display: none; margin-top: 22px; padding: 4px 18px 14px; background: var(--off); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 8px; }
.js-wizard .wz-recap { display: block; }
.wz-recap .wz-sub { margin-top: 14px; }
.wz-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.wz-recap dt { color: var(--muted); }
.wz-recap dd { font-weight: 600; overflow-wrap: anywhere; }

/* ── Navigation ── */
.wz-nav { display: flex; gap: 12px; margin-top: 24px; }
.wz-nav .btn { padding: 15px 22px; font-size: 14px; }
.wz-nav #wz-next, .wz-nav #d-submit { flex: 1; }
.wz-nav .btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.js-wizard #wz-back, .js-wizard #wz-next { display: inline-flex; }
.js-wizard[data-step="1"] #wz-back { display: none; }
.js-wizard[data-step="3"] #wz-next { display: none; }
.js-wizard:not([data-step="3"]) #d-submit { display: none; }

/* ── Confirmation ── */
.wizard.sent > :not(.wz-done) { display: none; }
.wizard.sent .wz-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 8px 12px; animation: wzIn 0.4s ease both; }
.wz-done:focus { outline: none; }
.wz-done p { color: var(--muted); max-width: 400px; margin: 6px 0 26px; }
.wz-check { width: 92px; height: 92px; margin-bottom: 22px; }
.wz-check circle { fill: #2e7d32; transform-origin: center; animation: wzPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.wz-check path {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: wzDraw 0.45s 0.35s ease forwards;
}
@keyframes wzPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wzDraw { to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  .wz-title { font-size: 19px; }
  /* Types de bien et délais : blocs strictement identiques, sur deux colonnes */
  .chips-tight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chips-tight .chip {
    justify-content: flex-start; gap: 8px; min-height: 46px; padding: 0 14px;
    font-size: 14px; border-radius: 10px; white-space: nowrap;
  }
  .chips-tight .chip svg { width: 17px; height: 17px; flex-shrink: 0; }
  .tile { padding: 16px 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wz-check path { stroke-dashoffset: 0; }
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; --pad-x: 5%; }
  .nav-logo img { height: 50px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }


  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-txt { order: -1; }
  .about-img { aspect-ratio: 16 / 10; }
  .about-badge { right: 12px; bottom: 16px; padding: 14px 18px; }
  .about-badge strong { font-size: 30px; }

  .p-card { height: 92px; padding: 16px 20px; }
  .p-card img { max-height: 54px; }


  .call-bar {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 150;
    padding: 10px 5% calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 6px; text-decoration: none;
    font-family: var(--H); font-size: 14px; font-weight: 700;
  }
  .call-bar-tel { color: var(--red); border: 1.5px solid var(--red); }
  .call-bar-tel svg { width: 17px; height: 17px; fill: currentColor; }
  .call-bar-devis { background: var(--red); color: #fff; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .page-404 { padding-bottom: 40px; }
}

@media (max-width: 640px) {

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .about-feats { grid-template-columns: 1fr; }
  .p-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; align-items: flex-start; }

  .fg { grid-template-columns: 1fr; }
  .d-header { padding: 16px 20px 14px; }
  .d-body { padding: 18px 20px 32px; }
  .d-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Petits téléphones : les pastilles du formulaire restent sur une ligne de texte */
@media (max-width: 380px) {
  .chips-tight .chip { font-size: 13px; padding: 0 10px; gap: 6px; }
}
