/* ==========================================================
   Nico Propreté — feuille de style
   ========================================================== */

:root {
  --blue: #0092FF;
  --ink: #101826;
  --ink-soft: #4B5568;
  --bg-alt: #F2F8FF;
  --border: #E3ECF7;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 38, 0.15);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .6em;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(0, 146, 255, .55);
}
.btn-primary:hover { background: var(--blue); }

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--bg-alt); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { color: var(--blue); }

.btn-lg { padding: 1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo { height: 34px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--blue); }

.nav-item.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
}
.dropdown-menu::before {
  content: "";
  display: block;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.dropdown-menu > a,
.dropdown-sub > a,
.submenu > a {
  display: block;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 20px;
  white-space: nowrap;
  font-size: .9rem;
}
.dropdown-menu > a:first-child { border-radius: 10px 10px 0 0; padding-top: 12px; }
.dropdown-menu > a:last-child { border-radius: 0 0 10px 10px; padding-bottom: 12px; }
.dropdown-menu > a:not(:last-child),
.dropdown-sub > a { border-bottom: none; }
.dropdown-menu > a:hover,
.dropdown-sub > a:hover,
.submenu > a:hover { background: var(--bg-alt); }

/* Sous-menu (Textile > Canapés / Matelas) */
.dropdown-sub { position: relative; }
.dropdown-sub > a::after {
  content: "\203A";
  float: right;
  margin-left: 18px;
  color: var(--blue);
  font-weight: 600;
}
.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  padding-left: 6px;
}
.submenu > a:first-child { border-radius: 10px 10px 0 0; padding-top: 12px; border-bottom: none; }
.submenu > a:last-child { border-radius: 0 0 10px 10px; padding-bottom: 12px; }
.dropdown-sub:hover .submenu,
.dropdown-sub:focus-within .submenu { display: block; }
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone { font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding: 120px 0 0;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg, .hero-bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-bg { opacity: 0; transition: opacity .4s ease; }
.hero.has-photo .hero-bg { opacity: 1; }
.hero-bg-fallback {
  background: linear-gradient(160deg, var(--blue) 0%, var(--ink) 100%);
  transition: opacity .4s ease;
}
.hero.has-photo .hero-bg-fallback { opacity: 0; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,16,32,.3) 0%, rgba(6,16,32,.15) 50%, rgba(6,16,32,.65) 100%),
    linear-gradient(100deg, rgba(6,16,32,.92) 0%, rgba(6,16,32,.75) 32%, rgba(6,16,32,.2) 62%, rgba(6,16,32,.05) 85%);
}

.hero > .container { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-inner { max-width: 1000px; margin: 0 auto; padding-bottom: 48px; text-align: center; }

.eyebrow-light { color: var(--blue); }

.hero-lead { font-size: 1.08rem; max-width: 46ch; color: rgba(255,255,255,.85); }
.hero h1 { color: var(--white); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
}

.btn-outline-light {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); }

.stars { color: #FFB400; letter-spacing: 2px; }
.stars-lg { font-size: 1.4rem; }

.hero-stats {
  position: relative;
  background: var(--white);
  box-shadow: 0 -20px 40px -20px rgba(0,0,0,.15);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding: 22px 12px;
  border-left: 1px solid var(--border);
}
.hero-stat:first-child { border-left: none; }
.hero-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-stat-label {
  font-size: .8rem;
  color: var(--ink-soft);
}

/* ---------- Section shells ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { margin-bottom: .4em; }
.section-lead { font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
  scroll-margin-top: 96px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.service-card:hover .service-photo img { transform: scale(1.05); }

.service-card-body { padding: 22px 26px 28px; }

.service-card h3 {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.service-card p { font-size: .95rem; margin-bottom: 0; position: relative; z-index: 1; }
.service-link {
  display: inline-block;
  margin-top: .9em;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue);
}
.service-link:hover { text-decoration: underline; }

/* ---------- Tarifs ---------- */
.tarifs { scroll-margin-top: 40px; }
.tarifs + .steps { padding-top: 0; }

.tarifs-subtitle {
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 26px;
}
.tarifs-subtitle::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--blue);
}
.tarifs-grid + .tarifs-subtitle { margin-top: 64px; }
.tarifs-subtitle { scroll-margin-top: 96px; }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tarif-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 30px 26px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tarif-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tarif-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tarif-card:hover .tarif-bg { transform: scale(1.05); }
.tarif-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16,24,38,.45) 0%, rgba(16,24,38,.72) 100%);
}
.tarifs-grid-canape .tarif-card-devis { grid-column: 1 / -1; }
.tarif-card-devis .tarif-bg { object-position: center 72%; }
.tarif-content { position: relative; z-index: 2; }
.tarif-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  opacity: .85;
  margin: 0 0 .5em;
}
.tarif-card h3 { font-size: 1.15rem; margin-bottom: .5em; color: var(--white); }
.tarif-price {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin: 0;
}
.tarif-price span { font-size: 1.4rem; margin-left: 3px; }
.tarif-link {
  display: inline-block;
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  margin-top: .3em;
}
.tarif-link:hover { color: var(--blue); }

.tarifs-cta { text-align: center; margin-top: 36px; }

/* ---------- Steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card { text-align: center; }
.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.why-card h3 { font-size: 1.02rem; }
.why-card p { font-size: .9rem; }

/* ---------- Zone ---------- */
.zone-radius {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.zone-radius-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}
.zone-radius-badge svg {
  width: 26px;
  height: 26px;
  fill: var(--blue);
  margin-bottom: 4px;
}
.zone-radius-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}
.zone-radius-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.zone-note {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-alt); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-mark {
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: 'Poppins', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  opacity: .18;
  line-height: 1;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--ink);
  margin: 8px 0 0;
  flex: 1;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong { font-size: .92rem; }
.testimonial-author .stars { font-size: .8rem; }

.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px auto 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.review-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue);
}
.review-score .stars { font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list svg { width: 22px; height: 22px; fill: var(--blue); flex-shrink: 0; }
.contact-list li > div { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: .8rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--blue); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.social-links .facebook svg { width: 42px; height: 42px; fill: #1877F2; }

.social-links .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-links .instagram svg { width: 20px; height: 20px; fill: var(--white); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row[hidden] { display: none; }
.form-row label { font-weight: 600; font-size: .9rem; }
.required { color: #e5484d; }
.form-note .required { margin-right: 2px; }
.form-row input,
.form-row textarea { -webkit-appearance: none; appearance: none; }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: .75em .9em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,146,255,.15);
}
.form-note {
  font-size: .8rem;
  text-align: center;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 96px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-logo { height: 24px; opacity: .8; }
.footer-inner p { margin: 0; font-size: .85rem; }
.footer-inner a { font-size: .85rem; font-weight: 600; color: var(--blue); }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--blue);
  color: var(--white);
  padding: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 -8px 24px rgba(0,0,0,.15);
}

/* ---------- Pages dédiées aux services ---------- */
.service-page { padding: 48px 0 80px; }
.service-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue);
}
.service-back:hover { text-decoration: underline; }
.service-page-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-page-text h1 { margin-bottom: .5em; }
.service-page-lead { font-size: 1.12rem; margin-bottom: 1.6em; }
.service-page-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.service-page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-page + .tarifs { padding-top: 24px; }

.other-services { background: var(--bg-alt); padding: 64px 0; }
.other-services .section-head { margin-bottom: 28px; }
.other-services h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.service-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.service-chip {
  padding: .7em 1.4em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.service-chip:hover { color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .service-page-inner { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
  .tarifs-grid-canape .tarif-card:nth-child(3) { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .header-actions .btn-primary { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .site-header.nav-open .dropdown-menu {
    display: flex;
    position: static;
    transform: none;
    flex-direction: column;
    padding: 10px 0 0 12px;
    gap: 10px;
  }
  .site-header.nav-open .dropdown-menu::before { display: none; }
  .site-header.nav-open .dropdown-menu > a,
  .site-header.nav-open .dropdown-sub > a {
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--ink-soft);
    font-size: .88rem;
  }
  .site-header.nav-open .dropdown-sub > a::after { display: none; }
  .site-header.nav-open .submenu {
    display: flex;
    position: static;
    flex-direction: column;
    padding: 8px 0 0 14px;
    gap: 8px;
  }
  .site-header.nav-open .submenu > a {
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--ink-soft);
    font-size: .84rem;
  }

  section { padding: 56px 0; }
  .service-page { padding: 32px 0 56px; }
  .service-page-actions .btn { width: 100%; }
  .other-services { padding: 48px 0; }
  .tarifs-grid { gap: 14px; }
  .tarif-card { padding: 22px 12px; min-height: 190px; }
  .tarif-price { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .review-summary { flex-direction: column; text-align: center; }
  .testimonials { grid-template-columns: 1fr; }

  .hero { padding-top: 96px; }
  .hero-inner { padding-bottom: 64px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: none; }
  .hero-stat { border-bottom: 1px solid var(--border); }

  .steps-row { grid-template-columns: 1fr; gap: 40px; }
  .steps-row::before { display: none; }

  .mobile-call-bar { display: flex; }
  .site-footer { padding-bottom: 100px; }
}


/* ==========================================================
   Adaptation multi-écrans : téléphones, tablettes, grands écrans
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(0, 146, 255, .15); touch-action: manipulation; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
.contact-list a { overflow-wrap: anywhere; }
.hero .eyebrow-light { text-shadow: 0 1px 10px rgba(6, 16, 32, .85); }

/* Encoches (iPhone) : marges de sécurité */
.container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.mobile-call-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* Menu déroulant ouvert au toucher (tablettes) */
.nav-item.has-dropdown.open .dropdown-menu { display: block; }
.dropdown-sub.open .submenu { display: block; }

/* Écrans tactiles : pas d'effets de survol "collés" */
@media (hover: none) {
  .btn:hover, .service-card:hover, .tarif-card:hover,
  .social-links a:hover, .service-chip:hover { transform: none; }
  .service-card:hover, .tarif-card:hover,
  .social-links a:hover, .service-chip:hover { box-shadow: none; }
  .service-card:hover .service-photo img,
  .tarif-card:hover .tarif-bg { transform: none; }
}

/* ---------- Tablettes et petits écrans : zones tactiles confortables ---------- */
@media (max-width: 1024px) {
  .brand, .tarif-link { position: relative; }
  .brand::after, .tarif-link::before {
    content: "";
    position: absolute;
    inset: -10px -8px;
  }
  .service-link { padding: 10px 0; margin-top: .2em; }
  .service-back { padding: 10px 0; margin-bottom: 18px; }
  .legal .back { padding: 8px 0; }
  .legal li a { display: inline-block; padding: 6px 0; }
  .contact-list a { display: inline-block; padding: 6px 0; }
  .footer-inner a { padding: 10px 6px; }
  .form-row input,
  .form-row select,
  .form-row textarea { font-size: 16px; min-height: 48px; }
  .form-row textarea { min-height: 120px; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .main-nav > a, .nav-item.has-dropdown > a { position: relative; }
  .main-nav > a::after, .nav-item.has-dropdown > a::after {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }
}

/* ---------- Tablettes ---------- */
@media (max-width: 980px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,16,32,.6) 0%, rgba(6,16,32,.48) 50%, rgba(6,16,32,.78) 100%),
      linear-gradient(100deg, rgba(6,16,32,.55) 0%, rgba(6,16,32,.3) 100%);
  }
  .hero-stat-value { font-size: 1.05rem; text-align: center; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .testimonials > .testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
  .services-grid > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

/* ---------- Téléphones ---------- */
@media (max-width: 760px) {
  .nav-toggle { width: 44px; height: 44px; }

  .site-header.nav-open .main-nav {
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
  }
  .site-header.nav-open .main-nav > a,
  .site-header.nav-open .nav-item.has-dropdown > a {
    padding: 11px 0;
    font-size: 1.02rem;
  }
  .site-header.nav-open .dropdown-menu { gap: 0; padding: 0 0 6px 12px; }
  .site-header.nav-open .dropdown-menu > a,
  .site-header.nav-open .dropdown-sub > a { padding: 10px 0; font-size: .96rem; }
  .site-header.nav-open .submenu { gap: 0; padding: 0 0 0 14px; }
  .site-header.nav-open .submenu > a { padding: 9px 0; font-size: .92rem; }

  .eyebrow, .tarif-label { font-size: .8rem; }
  .hero-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { padding: 18px 8px; }
  .hero-stat-value { flex-wrap: wrap; justify-content: center; }
  .contact-form { padding: 24px 18px; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Très petits téléphones (iPhone SE, anciens Android) */
@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .hero-stat-value { font-size: .88rem; }
  .hero-actions .btn { width: 100%; }
  .tarif-card { padding: 20px 8px; }
  .tarif-card h3 { font-size: 1.02rem; }
  .tarif-label { font-size: .74rem; letter-spacing: .05em; }
  .tarif-link { font-size: .88rem; white-space: nowrap; }
}

/* Téléphones à l'horizontale */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 980px) {
  .hero { min-height: 0; padding-top: 84px; }
  .hero-inner { padding-bottom: 36px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { margin-top: 16px; }
  .service-page { padding-top: 24px; }
}

/* ---------- Grands écrans ---------- */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  html { font-size: 112.5%; }
  .hero { min-height: 720px; }
  .brand-logo { height: 38px; }
  .tarif-card { min-height: 260px; }
  section { padding: 100px 0; }
}
@media (min-width: 2200px) {
  :root { --container: 1560px; }
  html { font-size: 125%; }
  .hero { min-height: 820px; }
  .brand-logo { height: 44px; }
  .tarif-card { min-height: 300px; }
  section { padding: 112px 0; }
}

/* Accessibilité : respecter la réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
