/* Site Django Home Nanny : composants (chargé après site.css) */
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.narrow-wide { width: min(980px, 100% - 2.5rem); margin-inline: auto; }
.h-page { font-size: clamp(2rem, 4vw, 2.8rem); }
.h-sub { margin-top: 3rem; font-size: 1.6rem; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-list li, .hero-points li { display: block; position: relative; padding-left: 1.9rem; }
.check-list li::before, .hero-points li::before { position: absolute; left: 0; top: 0.2em; margin: 0; }

/* En-tête : sous-menu et téléphone */
.main-nav ul { gap: 1.4rem; }
.main-nav .has-sub { position: relative; }
.main-nav .sub-nav {
  display: none; position: absolute; top: 100%; left: -1rem; min-width: 250px;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0.5rem;
  box-shadow: var(--shadow);
}
.main-nav .sub-nav a:not(.btn) { display: block; padding: 0.55rem 0.8rem; border: 0; border-radius: 8px; }
.main-nav .sub-nav a:hover { background: var(--blush); }
.main-nav .has-sub:hover .sub-nav, .main-nav .has-sub:focus-within .sub-nav { display: flex; }
.main-nav .nav-phone a { color: var(--green); white-space: nowrap; }
@media (max-width: 1140px) {
  .main-nav .sub-nav { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .main-nav .sub-nav a:not(.btn) { padding: 0.6rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-nav a:hover { background: none; }
}

.flash-wrap { padding-top: 1.2rem; }
.flash { padding: 0.9rem 1.2rem; border-radius: 12px; font-weight: 700; margin: 0 0 0.6rem; }
.flash-success { background: var(--mint-soft); color: var(--green); }
.flash-warning, .flash-error { background: var(--pink-soft); color: #9c3d36; }

/* Ouverture vidéo / photos */
.hero-banner {
  position: relative; min-height: min(86vh, 760px); display: flex; align-items: center;
  overflow: hidden; color: var(--white); isolation: isolate;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-video, .hero-poster, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { display: none; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide-default { object-position: 70% 22%; }
.hero-overlay {
  z-index: -1;
  background: linear-gradient(100deg, rgba(8,59,57,.94) 0%, rgba(8,59,57,.82) 42%, rgba(8,59,57,.3) 75%, rgba(8,59,57,.12) 100%);
}
.hero-content { padding: clamp(4rem, 9vw, 7rem) 0; }
.hero-content h1 { color: var(--white); max-width: 15ch; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero-content .lead { color: rgba(255,255,255,.9); max-width: 38rem; }
.hero-content .hero-points { color: rgba(255,255,255,.92); }
.hero-content .hero-points li::before { background-color: var(--gold); }
.hero-pause {
  position: absolute; right: 1.5rem; bottom: 1.5rem; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25); color: var(--white); cursor: pointer; font-size: 0.8rem;
}
.hero-dots { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--gold); width: 26px; border-radius: 6px; }
@media (max-width: 760px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(8,59,57,.55) 0%, rgba(8,59,57,.92) 55%); }
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { display: block; }
  .hero-pause { display: none; }
}

/* Chiffres clés */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 1.6rem 1.2rem; text-align: center; border-left: 1px solid var(--line); display: grid; gap: 0.15rem; }
.facts-grid > div:first-child { border-left: 0; }
.facts-grid strong { font: 600 1.25rem var(--font-title); color: var(--green); }
.facts-grid span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3) { border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Cartes services (accueil) */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--blush); }
.service-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.6rem 1.8rem; flex: 1; }
.service-card-body strong { font: 600 1.25rem/1.25 var(--font-title); }
.service-card-body > span:not(.service-tag):not(.link-arrow-dark) { color: var(--muted); flex: 1; }
.service-card .service-tag { align-self: flex-start; margin: 0; }
.link-arrow-dark { color: var(--green); font-weight: 800; }
.link-arrow-dark::after { content: " →"; }

/* En-têtes de pages */
.page-hero { background: linear-gradient(180deg, var(--white) 0%, var(--blush) 100%); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero-compact { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero-compact .lead { margin-inline: auto; }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.page-hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.page-hero-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.page-hero-gallery img:nth-child(even) { transform: translateY(1.5rem); }
.page-hero-gallery img.wide { aspect-ratio: 318 / 196; grid-column: 1 / -1; transform: none; }
.page-hero-gallery img.wide:nth-child(2) { margin-left: 2rem; width: calc(100% - 2rem); }
.page-hero-photo img { width: 100%; max-width: 420px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-gallery { grid-template-columns: repeat(4, 1fr); }
  .page-hero-gallery img:nth-child(even) { transform: none; }
  .page-hero-gallery img.wide { grid-column: auto; }
  .page-hero-gallery img.wide:nth-child(2) { margin-left: 0; width: 100%; }
  .page-hero-photo img { margin: 0 auto; max-width: 320px; }
  .service-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.feature-grid article { background: var(--blush); border-radius: var(--radius); padding: 1.8rem; }
.feature-grid article p { color: var(--muted); margin: 0; }
.feature-grid .feature-highlight { background: var(--green); }
.feature-grid .feature-highlight h3 { color: var(--white); }
.feature-grid .feature-highlight p { color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.prices { grid-template-columns: repeat(3, 1fr); }
.prices-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.prices-1 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
.bundle .btn { margin-left: auto; flex: none; }
.policies-grid { margin-top: 1rem; }
.policies-grid > div { background: var(--white); border: 1px solid var(--line); }

/* Témoignages */
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.testimonial-track > * { scroll-snap-align: start; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.testimonial {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.testimonial blockquote { margin: 0; flex: 1; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; color: var(--muted); line-height: 1.35; }
.testimonial figcaption strong { color: var(--ink); }
.testimonial figcaption img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-weight: 800; }
.empty-state { text-align: center; background: var(--blush); border-radius: var(--radius); padding: 2.5rem 1.5rem; }
.section-blush .empty-state { background: var(--white); }
.empty-state p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.2rem; }

/* Réalisations */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-bar a { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.93rem; }
.filter-bar a.is-active, .filter-bar a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.real-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.real-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.real-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.real-media { position: relative; display: block; }
.real-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.real-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,79,76,.85); color: var(--white); font-size: 1.1rem; padding-left: 4px; }
.real-count { position: absolute; right: 0.8rem; bottom: 0.8rem; background: rgba(0,0,0,.6); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.real-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.2rem 1.4rem 1.4rem; }
.real-body .service-tag { align-self: flex-start; margin: 0 0 0.3rem; }
.real-body strong { font: 600 1.15rem var(--font-title); }
.real-body > span:not(.service-tag) { color: var(--muted); font-size: 0.95rem; }
.real-body small { color: var(--mint); font-weight: 700; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.meta { color: var(--mint); font-weight: 700; }
.real-video { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; background: #000; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin: 1.5rem 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.5rem 0; }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-main { grid-column: span 2; grid-row: span 2; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.before-after figure { margin: 0; position: relative; }
.before-after img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.before-after figcaption { position: absolute; left: 0.8rem; top: 0.8rem; background: var(--white); padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 20, 20, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 10px; }
.lightbox figcaption { color: var(--white); }
.lightbox button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: var(--white); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; }
.lightbox-next { right: 1.2rem; top: 50%; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .before-after { grid-template-columns: 1fr; }
}

/* Formulaires */
.card-form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field .help { color: var(--muted); font-size: 0.85rem; }
.field .error { color: #c0392b; font-weight: 700; font-size: 0.88rem; }
.field-check label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.field-check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--green); flex: none; padding: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.check-row .field { margin-bottom: 0.6rem; }
.radio-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; }
.radio-inline .label { font-weight: 700; font-size: 0.95rem; width: 100%; }
.radio-inline label { display: flex; gap: 0.4rem; align-items: center; font-weight: 600; }
.radio-inline input { accent-color: var(--green); padding: 0; }
.form-alert { background: var(--pink-soft); color: #9c3d36; padding: 0.9rem 1.1rem; border-radius: 12px; font-weight: 700; margin-bottom: 1.2rem; }
.rating-field { border: 0; padding: 0; }
.rating-field legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.2rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 4px; }

/* Demande de devis */
.quote-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 3rem; align-items: start; }
.quote-aside { position: sticky; top: 100px; }
.quote-aside > p { color: var(--muted); }
.aside-contact { margin-top: 2rem; padding: 1.4rem; background: var(--blush); border-radius: var(--radius); display: grid; gap: 0.6rem; justify-items: start; }
.aside-contact p { margin: 0; font-weight: 700; }
.aside-mail { font-size: 0.93rem; word-break: break-all; }
.stepper { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; color: var(--muted); padding-bottom: 0.7rem; border-bottom: 3px solid var(--line); }
.stepper li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 0.85rem; flex: none; }
.stepper li.is-current, .stepper li.is-done { color: var(--green); border-color: var(--green); }
.stepper li.is-current span, .stepper li.is-done span { background: var(--green); color: var(--white); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .step:not(.is-current) { display: none; }
.step-title { font: 600 1.5rem var(--font-title); margin-bottom: 0.4rem; padding: 0; }
.step-hint { color: var(--muted); }
.step-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.no-js .step-actions button[type="button"] { display: none; }
.service-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.2rem 0 0.5rem; }
.service-option { position: relative; display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.service-option:hover { border-color: var(--mint); }
.service-option input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--green); flex: none; }
.service-option strong { display: block; line-height: 1.3; }
.service-option small { color: var(--muted); font-weight: 700; }
.service-option:has(input:checked) { border-color: var(--green); background: var(--mint-soft); }
.service-picker.has-error .service-option { border-color: #e7a8a0; }
.cond-title { font-size: 1.1rem; color: var(--green); margin: 1.4rem 0 0.8rem; }
.js .cond:not(.is-visible), .js .cond-inline:not(.is-visible) { display: none; }
.zone-warning { background: var(--gold-soft); color: #6f5420; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.93rem; }
@media (max-width: 960px) {
  .quote-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote-aside { position: static; }
  .quote-aside .check-list, .aside-contact { display: none; }
}
@media (max-width: 640px) {
  .service-picker { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
  .stepper li span { font-size: 0.85rem; }
}

/* Merci / offre */
.thanks-icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-size: 2rem; font-weight: 800; }
.steps-light { text-align: left; margin: 2rem 0; }
.steps-light li { background: var(--blush); border: 0; }
.steps-light h3 { color: var(--ink); }
.steps-light p { color: var(--muted); }
.offer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; box-shadow: var(--shadow); overflow-x: auto; }
.offer-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.97rem; }
.offer-table th { text-align: left; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border-bottom: 2px solid var(--green); padding: 0.5rem; }
.offer-table td { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table td:nth-child(n+2), .offer-table th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.offer-table td small { display: block; color: var(--muted); }
.offer-table tfoot td { border: 0; padding: 0.35rem 0.5rem; color: var(--muted); text-align: right; }
.offer-table tfoot tr.total td { background: var(--blush); color: var(--green); font-weight: 800; font-size: 1.1rem; padding: 0.8rem 0.5rem; }
.offer-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0.8rem; }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--green); color: rgba(255,255,255,.85); padding: 3.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 0.3rem; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Pied de page */
.footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer-logo { height: 64px; }
.socials { display: flex; gap: 1rem; margin-top: 0.8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer li { color: rgba(255,255,255,.75); }

/* Bouton d'appel mobile */
.call-fab {
  display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  align-items: center; gap: 0.5rem; padding: 0.85rem 1.2rem; border-radius: 999px;
  background: var(--gold); color: var(--green-dark); font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.call-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .call-fab { display: inline-flex; }
  .site-footer { padding-bottom: 5rem; }
  .bundle .btn { margin-left: 0; }
}
@media (max-width: 640px) { .prices, .prices-2, .footer-inner { grid-template-columns: 1fr; } }
