.home-page { letter-spacing: 0; }
.home-services { background: #f6f8f9; scroll-margin-top: 90px; }
.home-services .section-title { margin-bottom: 28px; }
.home-services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.home-service {
    grid-column: span 2; min-width: 0; overflow: hidden;
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #dce4e7; border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
}
.home-service:nth-last-child(2):nth-child(3n+1),
.home-service:last-child:nth-child(3n+2) { grid-column: span 3; }
.home-service:hover, .home-service:focus-within { border-color: #8dabb6; box-shadow: 0 5px 18px #193e4e0d; }
.home-service-photo { display: block; width: 100%; height: 200px; object-fit: cover; }
.home-service-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.home-service h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.35; color: #203f4c; }
.home-service p { margin: 0 0 22px; color: #53636b; font-size: .95rem; line-height: 1.65; }
.home-service a { margin-top: auto; align-self: flex-start; padding: 8px 0; color: #006d88; font-weight: 700; text-underline-offset: 5px; }
.home-service a:hover { text-decoration: underline; }
.home-page a:focus-visible { outline: 2px solid #007ea0; outline-offset: 5px; }
.home-page .home-service-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.home-page .home-service-shortcuts a { padding: 6px 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: .875rem; color: #475f6a; text-decoration: underline; text-underline-offset: 4px; }
.home-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; padding: 28px 0; border-top: 1px solid #d4dfe3; }
.home-tools h3 { grid-column: 1 / -1; margin: 0 0 8px; color: #203f4c; font-size: 1.2rem; }
.home-tools a { display: inline-flex; align-items: center; gap: 14px; padding: 8px 0; color: #006d88; font-weight: 600; }
.home-tools a.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 76px; margin: 0; padding: 14px 16px; border-radius: 6px; background: linear-gradient(135deg, var(--cyan, #01a7c2), #0b7fa8); color: var(--white); font-size: .95rem; font-weight: 800; line-height: 1.45; text-align: center; white-space: normal; box-shadow: none; text-decoration: none; transition: transform .2s ease; }
.home-tools a.btn-primary:hover { transform: translateY(-2px); }
.home-page .home-hero .badge { border-radius: 4px; box-shadow: none; }
.home-page .hero-actions .btn { border-radius: 6px; box-shadow: none; }
.home-page .hero-card { text-align: left; }
.home-page .hero-3d-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.home-page .hero-3d.is-fallback .hero-3d-fallback { display: block; }
.home-page .hero-3d:not(.is-ready) canvas { visibility: hidden; }
@media (max-width: 1000px) {
    .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .home-service, .home-service:nth-last-child(2):nth-child(3n+1), .home-service:last-child:nth-child(3n+2) { grid-column: auto; }
}
@media (max-width: 600px) {
    .home-services-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .home-service-photo { display: none; }
    .home-service-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-service { transition: none; }
}
@media (max-width: 1100px) {
    .home-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .home-tools a.btn-primary { grid-column: span 2; }
    .home-tools a.btn-primary:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 600px) {
    .home-tools { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 20px 0; }
    .home-tools h3 { flex: 0 0 100%; margin-bottom: 4px; }
    .home-tools a.btn-primary,
    .home-tools a.btn-primary:nth-last-child(-n+2) {
        display: inline-block; width: auto; min-height: 0; padding: 6px 0;
        border-radius: 0; background: none; color: #006d88;
        font-size: .9rem; font-weight: 700; line-height: 1.45; text-align: left;
        text-decoration: underline; text-underline-offset: 4px;
    }
    .home-tools a.btn-primary:hover { background: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .home-tools a.btn-primary { transition: none; }
    .home-tools a.btn-primary:hover { transform: none; }
}

/* ---------- Sections ajoutees : avis, tarifs, realisations, communes, publics ---------- */
.home-alt { background: #f6f8f9; }
.home-extra .section-title { margin-bottom: 24px; }
.home-page .home-intro { max-width: 70ch; margin: 0 0 24px; color: #53636b; line-height: 1.65; }
.home-more { margin: 24px 0 0; }
.home-more a { display: inline-block; padding: 8px 0; color: #006d88; font-weight: 700; text-underline-offset: 4px; }
.home-more a:hover { text-decoration: underline; }

/* Avis : memes cartes que la page avis clients, sans charger sa feuille */
.home-page .reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-page .review-item { min-width: 0; padding: 24px; border: 1px solid #dce4e7; border-radius: 8px; background: #fff; }
.home-page .review-item h3 { margin: 0 0 8px; font-size: 1rem; }
.home-page .review-stars { color: #a56409; font-size: 1.1rem; }
.home-page .review-stars-empty { color: #737f86; }
.home-page .review-item blockquote { margin: 18px 0 0; }
.home-page .review-item blockquote p { margin: 0; color: #435864; overflow-wrap: anywhere; }

/* Tarifs reperes */
.home-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.home-prices li { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid #dce4e7; border-radius: 8px; }
.home-price-label { color: #203f4c; font-weight: 600; line-height: 1.45; }
.home-price-value { margin-top: auto; color: #006d88; font-size: 1.5rem; line-height: 1.2; }
.home-prices-note { max-width: 75ch; margin: 20px 0 0; color: #53636b; font-size: .95rem; line-height: 1.6; }

/* Realisations */
.home-works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-work { min-width: 0; margin: 0; }
.home-work img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.home-work figcaption { margin-top: 10px; color: #435864; font-size: .875rem; line-height: 1.45; }

/* Communes desservies */
.home-zone-list { columns: 4; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.home-zone-list li { break-inside: avoid; }
.home-zone-list a { display: inline-block; padding: 6px 0; color: #475f6a; text-decoration: underline; text-underline-offset: 4px; }
.home-zone-list a:hover { color: #006d88; }

/* Publics */
.home-audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.home-audiences article { min-width: 0; padding-top: 12px; border-top: 2px solid #8eb9c1; }
.home-audiences h3 { margin: 0 0 10px; color: #203f4c; font-size: 1.15rem; }
.home-audiences p { margin: 0 0 12px; color: #53636b; font-size: .95rem; line-height: 1.65; }
.home-audiences a { color: #006d88; font-weight: 600; text-underline-offset: 4px; }
.home-method { max-width: 85ch; margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid #68a4b0; color: #435864; line-height: 1.65; }

@media (max-width: 1000px) {
    .home-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-zone-list { columns: 3; }
}
@media (max-width: 900px) {
    .home-page .reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
    .home-works-grid { gap: 12px; }
    .home-work img { aspect-ratio: 1 / 1; }
    .home-audiences, .home-prices { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-price-value { font-size: 1.25rem; }
    .home-zone-list { columns: 2; }
    .home-page .review-item { padding: 20px; }
}
