/* AquaPrestige Piscine - Clean premium one-page styles */

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --ink: #1b2a3b;
    --muted: #5a6a7c;
    --line: #dbe5f0;
    /* Bleu de reference fourni */
    --brand: #003f66;
    --brand-2: #0d5b87;
    --brand-dark: #022e4b;
    --success: #1c7f4f;

    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 18px;

    --shadow-1: 0 3px 12px rgba(9, 31, 53, 0.08);
    --shadow-2: 0 10px 28px rgba(9, 31, 53, 0.14);

    --container: 1180px;
    --space-1: 0.5rem;
    --space-2: 0.9rem;
    --space-3: 1.2rem;
    --space-4: 1.6rem;
    --space-5: 2.2rem;
    --space-6: 3.4rem;

    --header-height: 78px;
    --bar-height: 74px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

section {
    padding: var(--space-6) 0;
    position: relative;
    z-index: 1;
}

/* Seamless curved separators between sections */
section + section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -54px;
    height: 54px;
    background: inherit;
    border-top-left-radius: 55% 100%;
    border-top-right-radius: 55% 100%;
    z-index: 0;
}

section + section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-top-left-radius: 60% 100%;
    border-top-right-radius: 60% 100%;
    opacity: 0.45;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.section-description {
    max-width: 760px;
    margin: 0 auto var(--space-5);
    text-align: center;
    color: var(--muted);
}

/* Floating contact bar */
.floating-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    min-height: var(--bar-height);
}

.contact-btn {
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-s);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: 0.2s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.contact-btn .label {
    display: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
    border-bottom-color: var(--brand-2);
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding-top: var(--space-6);
}

.hero-background,
.hero-overlay,
.hero-video {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero.hero-video-unavailable .hero-video {
    display: none;
}

.hero-overlay {
    z-index: -2;
    background: transparent;
}

.hero-content {
    width: min(920px, calc(100% - 2rem));
    text-align: center;
    color: #fff;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: -1.2rem;
}

.hero-logo img {
    width: clamp(198px, 28.6vw, 352px);
    height: auto;
    object-fit: contain;
    display: block;
    margin-inline: auto;
    transform: translateX(4px);
}

.quick-nav {
    background: var(--brand);
    color: #fff;
    padding: 4.5rem 0 5rem;
}

.quick-nav-intro {
    max-width: 980px;
    margin: 0 auto 2.3rem;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    opacity: 0.99;
}

.quick-nav-title {
    text-align: center;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 1020px;
    margin: 0 auto 3.2rem;
    font-weight: 800;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.7rem 4.2rem;
    max-width: 980px;
    margin: 0 auto;
}

.quick-nav-item {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem;
    border-radius: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.quick-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
}

.quick-nav-item span:last-child {
    font-size: clamp(1.5rem, 2.9vw, 2.25rem);
    font-weight: 700;
    text-align: center;
}

.quick-icon {
    width: clamp(88px, 13vw, 142px);
    height: clamp(88px, 13vw, 142px);
}

.quick-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.95;
    margin-bottom: var(--space-3);
    text-wrap: balance;
}

.hero-title-sub {
    font-size: 0.65em;
    font-weight: 400;
    display: block;
    margin-top: -0.15em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 600;
    margin-bottom: var(--space-2);
    opacity: 0.98;
}

.hero-description {
    opacity: 0.9;
    margin-bottom: var(--space-5);
}

.hero-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-m);
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    width: 100%;
    min-height: 50px;
}

/* Services overview */
.services {
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.service-image {
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: var(--space-3);
}

.service-content h3 {
    margin-bottom: var(--space-1);
    color: var(--brand-dark);
}

.service-content p {
    color: var(--muted);
    margin-bottom: var(--space-2);
}

.link-arrow {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.link-arrow:hover {
    color: var(--brand-dark);
}

/* Service detail blocks */
.service-detail {
    background: var(--bg);
    border-top: 1px solid var(--line);
    position: relative;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
}

.service-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 46, 75, 0.75), rgba(13, 91, 135, 0.75));
    z-index: 0;
}

.service-detail.alt {
    background-color: var(--surface-soft);
}

.service-detail-content {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-detail-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-detail-content .lead {
    color: #f0f0f0;
    margin-bottom: var(--space-4);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: var(--space-3);
}

.feature h3 {
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
    font-size: 1.04rem;
}

.feature p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Zone */
.zones {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #fff;
}

.zones .section-title {
    color: #fff;
}

.zones-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.zones-content p {
    margin-bottom: var(--space-4);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-2);
}

.city-badge {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-weight: 700;
    font-size: 0.92rem;
}

/* Contact */
.contact-section {
    background: url("../assets/images/gallery/aquaprestige_normandie.jpg") center/cover no-repeat;
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: var(--space-2);
}

.contact-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 840px;
}

.contact-form {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-2);
    padding: var(--space-5);
    backdrop-filter: blur(2px);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group > label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.required {
    color: #c62828;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(13, 94, 168, 0.22);
    border-color: var(--brand);
}

.checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.2rem;
}

.checkbox {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0;
}

.checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    accent-color: var(--brand);
    cursor: pointer;
}

.checkbox span {
    color: var(--brand-dark);
    font-weight: 600;
    line-height: 1.2;
}

.form-notice {
    margin-top: var(--space-2);
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
}

.form-success-message {
    max-width: 760px;
    margin: var(--space-3) auto 0;
    border: 1px solid #b6e1c8;
    background: #e8f7ee;
    color: var(--success);
    padding: var(--space-3);
    border-radius: var(--radius-m);
    font-weight: 700;
}

/* Footer */
.footer {
    background: #0f2235;
    color: #d8e4f0;
    padding: var(--space-6) 0 calc(var(--space-6) + var(--bar-height));
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: var(--space-2);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.45rem;
}

.footer-section a {
    color: #d8e4f0;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: var(--space-3);
    font-size: 0.94rem;
    text-align: center;
}


/* Lightweight reveal animation used by JS */
.service-card,
.feature,
.city-badge {
    opacity: 0;
    transform: translateY(10px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Responsive */
@media (max-width: 1120px) {
    .nav-links {
        gap: 0.9rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 72px;
    }

    .nav-links {
        position: static;
        display: flex;
        gap: 0.6rem 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 78vh;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .checkboxes {
        grid-template-columns: 1fr;
    }

    .contact-btn .label {
        display: none;
    }

    .quick-nav-grid {
        gap: var(--space-4) var(--space-3);
    }

    .quick-nav-title {
        font-size: clamp(1.95rem, 8vw, 3rem);
    }

    .quick-nav-item span:last-child {
        font-size: clamp(1.35rem, 5.4vw, 1.9rem);
    }

}

@media (max-width: 640px) {
    :root {
        --bar-height: 68px;
    }

    section {
        padding: var(--space-5) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form {
        padding: var(--space-3);
    }

    .floating-contact-bar {
        gap: 6px;
    }

    .contact-btn {
        font-size: 0.75rem;
        padding: 0.55rem 0.4rem;
    }

    .contact-btn .icon {
        font-size: 1rem;
    }

    .quick-nav-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

@media (min-width: 900px) {
    .contact-btn .label {
        display: inline;
    }
}
