/* Variables globales */
:root {
    --color-primary: #0f9fbf;
    --color-primary-dark: #0b7a92;
    --color-shell: #2d607d;
    --color-bg: #f5f7fb;
    --color-bg-alt: #ffffff;
    --color-text: #1f2933;
    --color-muted: #4b5563;
    --shadow-soft: 0 10px 30px rgba(15, 159, 191, 0.15);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --transition-fast: 0.2s ease;
    --container-width: min(1350px, 100% - 3rem);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Styles de base */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #96cae2;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #96cae2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='336' viewBox='0 0 224 336'%3E%3Crect width='56' height='56' x='0' y='0' fill='%2374bcda' fill-opacity='0.33'/%3E%3Crect width='56' height='56' x='56' y='0' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='112' y='0' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='168' y='0' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='0' y='56' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='56' y='56' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='112' y='56' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='168' y='56' fill='%2374bcda' fill-opacity='0.33'/%3E%3Crect width='56' height='56' x='0' y='112' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='56' y='112' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='112' y='112' fill='%2374bcda' fill-opacity='0.33'/%3E%3Crect width='56' height='56' x='168' y='112' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='0' y='168' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='56' y='168' fill='%2374bcda' fill-opacity='0.33'/%3E%3Crect width='56' height='56' x='112' y='168' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='168' y='168' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='0' y='224' fill='%2374bcda' fill-opacity='0.33'/%3E%3Crect width='56' height='56' x='56' y='224' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='112' y='224' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='168' y='224' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='0' y='280' fill='%2397d6eb' fill-opacity='0.35'/%3E%3Crect width='56' height='56' x='56' y='280' fill='%2384c8e7' fill-opacity='0.27'/%3E%3Crect width='56' height='56' x='112' y='280' fill='%23b5dff0' fill-opacity='0.3'/%3E%3Crect width='56' height='56' x='168' y='280' fill='%2374bcda' fill-opacity='0.33'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.22) 0,
            rgba(255, 255, 255, 0.22) 2px,
            transparent 2px,
            transparent 56px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.22) 0,
            rgba(255, 255, 255, 0.22) 2px,
            transparent 2px,
            transparent 56px
        ),
        linear-gradient(180deg, #78bedc 0%, #97cfe6 45%, #b5dff0 100%);
    background-size:
        auto,
        224px 336px,
        56px 56px,
        56px 56px,
        auto;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
}

/* Garder le contenu du site au-dessus du fond anime. */
body > :not(.cookie-banner):not(.image-zoom-modal) {
    position: relative;
    z-index: 1;
}

/* Typo harmonisee sur tout le site */
body {
    font-size: 1.22rem;
}

/* Pages legales: fond blanc + texte plus lisible */
body.legal-page {
    --container-width: min(1650px, 100% - 3rem);
    background: #ffffff;
    background-image: none;
    font-size: 1.3rem;
}

body.legal-page .section,
body.legal-page .section-alt {
    background: #ffffff;
}

body.legal-page .section-grid {
    grid-template-columns: 1fr;
}

body.legal-page .section h2 {
    font-size: 2.5rem;
}

body.legal-page h3 {
    font-size: 1.5rem;
}

body.legal-page p,
body.legal-page li {
    font-size: 1.15em;
    line-height: 1.75;
}

@media (max-width: 640px) {
    body.legal-page {
        --container-width: min(1650px, 100% - 1.6rem);
        font-size: 1.02rem;
        line-height: 1.55;
    }

    body.legal-page .section {
        padding: 2.4rem 0;
    }

    body.legal-page .section h2 {
        font-size: 1.8rem;
    }

    body.legal-page h3 {
        font-size: 1.2rem;
    }

    body.legal-page p,
    body.legal-page li {
        font-size: 1em;
        line-height: 1.6;
    }
}

/* Pages legales: conserver le logo entier au-dessus du contenu */
body.legal-page.header-home-layout .header {
    z-index: 300;
    overflow: visible;
}

body.legal-page.header-home-layout .header-content {
    position: relative;
    z-index: 301;
}

body.legal-page.header-home-layout .header-content .logo {
    position: relative;
    z-index: 302;
}

/* Layout de base */

.container {
    width: var(--container-width);
    margin: 0 auto;
}

.site-main {
    flex: 1 0 auto;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-shell);
    box-shadow: 0 2px 12px rgba(9, 23, 33, 0.28);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    display: block;
    width: 286px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Navigation */

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-size: 1.12rem;
    color: #deedf4;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: #9edcf0;
    transition: width var(--transition-fast);
}

.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
    border-radius: 0.35rem;
}

.nav a:focus-visible::after {
    width: 100%;
}

/* Bouton menu mobile */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* HERO */

.hero {
    padding: 4rem 0 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content-solo {
    grid-template-columns: 1fr;
    justify-items: center;
}

.hero-content-solo .hero-image {
    max-width: 980px;
}

.hero-text h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--color-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Slider hero */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, #0f9fbf1a, #55c1dc33);
}

.hero-slides {
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.15);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.hero-slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.hero-slider-btn.prev {
    left: 0.7rem;
}

.hero-slider-btn.next {
    right: 0.7rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 0.8rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 159, 191, 0.35);
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: var(--color-primary);
}

/* Mosaique hero */
.hero-mosaic {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 120px;
    grid-auto-flow: dense;
    gap: 0.95rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 252, 0.92));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.hero-mosaic-item {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #dfe9f1;
    box-shadow: 0 8px 18px rgba(18, 53, 74, 0.12);
    cursor: zoom-in;
}

.hero-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.005);
    transition: transform 0.45s ease;
}


.hero-mosaic-item:hover img {
    transform: scale(1.04);
}

.hero-mosaic-item:focus-visible {
    outline: 3px solid rgba(15, 159, 191, 0.5);
    outline-offset: 2px;
}

.hero-mosaic-tall {
    grid-row: span 3;
}

.hero-mosaic-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.hero-mosaic-medium {
    grid-row: span 2;
}

.hero-mosaic-small {
    grid-row: span 1;
}

.hero-mosaic-bottom-left {
    grid-column: 1 / span 2;
    grid-row: 4 / span 1;
}

.hero-mosaic-bottom-right {
    grid-column: 5 / span 2;
    grid-row: 3 / span 2;
}

/* Zoom image mosaïque */
.image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(7, 19, 29, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1.2rem;
}

.image-zoom-modal[hidden] {
    display: none;
}

.image-zoom-preview {
    width: min(1200px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 0.95rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
    background: #eef5f9;
}

.image-zoom-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    color: #0f3349;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* Boutons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 1.12rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid #0a3b52;
    outline-offset: 3px;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-dark);
    border-color: rgba(15, 159, 191, 0.4);
}

.btn-outline:hover {
    background: rgba(15, 159, 191, 0.05);
}

[data-cookie-settings-open].btn-outline {
    background: #ffffff;
    color: #0a556b;
    border-color: #0b7a92;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(10, 85, 107, 0.16);
}

[data-cookie-settings-open].btn-outline:hover {
    background: #e9f6fb;
    color: #08485b;
}

/* Sections */

.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section h2 {
    font-size: 2.35rem;
    margin-bottom: 1rem;
}

.section-intro {
    margin-bottom: 2rem;
    color: var(--color-muted);
}

/* Grilles */

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

#about .section-grid {
    grid-template-columns: 1fr;
}

/* Cartes services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.card p {
    margin: 0;
    color: var(--color-muted);
}

.fpp-link-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.fpp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(11, 122, 146, 0.18);
    padding: 0.6rem 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fpp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.fpp-link:focus-visible {
    outline: 3px solid rgba(15, 159, 191, 0.45);
    outline-offset: 3px;
}

.fpp-link img {
    display: block;
    width: min(320px, 75vw);
    height: auto;
}

/* Piscines page: 4 aligned steps + compact FPP logo bottom-right */
body.page-piscines {
    --container-width: min(1580px, 100% - 2rem);
}

/* Spa page: make hero carousel a bit larger than default */
body.page-spa .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

body.page-spa .hero-slider {
    max-width: 1120px;
}

body.page-piscines .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

body.page-piscines .cards-grid .card {
    height: 100%;
}

body.page-piscines .fpp-link-wrap {
    margin-top: 0.9rem;
    justify-content: flex-start;
    gap: 1rem;
}

body.page-spa .fpp-link-wrap {
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

body.page-piscines .fpp-link {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-piscines .fpp-link:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

body.page-piscines .fpp-link img {
    width: 150px;
    max-width: 100%;
}

body.page-piscines .fpp-link.gr-spa-link,
body.page-spa .fpp-link.gr-spa-link {
    width: 160px;
    height: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #ffffff !important;
    border-radius: 10px;
    background: transparent;
}

body.page-piscines .fpp-link.gr-spa-link .gr-spa-logo,
body.page-spa .fpp-link.gr-spa-link .gr-spa-logo {
    width: 88%;
    max-width: none;
    height: auto;
    display: block;
}

body.page-piscines .fpp-footer-row {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Piscines page: header styled like footer bar */
body.page-piscines .header {
    background: var(--color-shell);
    box-shadow: none;
    border-bottom: 1px solid rgba(9, 23, 33, 0.32);
}

body.page-piscines .header .container {
    width: var(--container-width);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

body.page-piscines .header-content {
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0.8rem 0;
}

body.page-piscines .header-content .logo {
    align-self: center;
    line-height: normal;
}

body.page-piscines .header-content .logo-image {
    width: 286px;
    max-width: min(72vw, 286px);
    object-position: center;
}

body.page-piscines .header-content .nav {
    align-self: center;
}

body.page-piscines .header-content .nav > a {
    color: #d7e8f0;
}

body.page-piscines .header-content .nav > a:hover {
    color: #ffffff;
}

body.page-piscines .header-content .nav > a.client-access {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: normal;
    text-shadow: none;
}

@media (max-width: 1200px) {
    body.page-piscines .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.page-piscines .cards-grid {
        grid-template-columns: 1fr;
    }
}

#services.section-alt {
    background: transparent;
}

#services .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 122, 146, 0.14);
}

/* Grille galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: #ffffff;
    border: 1px solid rgba(11, 122, 146, 0.28);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gallery-link {
    background: #ffffff;
    color: var(--color-primary-dark);
    text-decoration: none;
    display: grid;
    place-items: center;
    min-height: 3.4rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.gallery-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
    background: rgba(15, 159, 191, 0.08);
}

.gallery-link:focus-visible {
    outline: 3px solid rgba(15, 159, 191, 0.4);
    outline-offset: 2px;
}

.client-access.gallery-item {
    background: linear-gradient(135deg, #0f9fbf1c, #0f9fbf33);
    border: 0;
    padding: 1rem;
    box-shadow: none;
}

.client-access.gallery-link {
    color: inherit;
    min-height: 3.2rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: normal;
    text-shadow: none;
}

.client-access.gallery-link:hover {
    background: transparent;
}

/* Contact */

/* Coordonnees et contact */
.contact-infos {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-infos li {
    margin-bottom: 0.4rem;
}

.contact-stack {
    display: grid;
    gap: 1.2rem;
}

.contact-page {
    display: grid;
    gap: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
}

.contact-card,
.hours-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}


.contact-card h3,
.hours-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
}

.map-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Carte integree */
.map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #e5e7eb;
    flex: 1;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}

.map-consent-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.8rem;
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
}

.map-consent-placeholder[hidden] {
    display: none !important;
}

.map-consent-placeholder p {
    margin: 0;
    color: #475569;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.hours-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: rgba(15, 159, 191, 0.06);
}

.hours-day {
    font-weight: 600;
}

.hours-time {
    color: var(--color-muted);
}

.contact-form {
    background: #ffffff;
    padding: 1.7rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.form-group {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

#otherService {
    margin-top: 0.6rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

input[type="checkbox"] {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 2px solid #9ca3af;
    display: inline-grid;
    place-items: center;
    margin: 0;
    background: #ffffff;
    position: relative;
}

input[type="checkbox"]:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(45deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%);
}

textarea {
    resize: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(15, 159, 191, 0.2);
}

.form-message {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.form-message.is-success {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.char-counter {
    display: block;
    margin-top: 0.35rem;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5f7380;
}

.attachment-status {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.attachment-item {
    border: 1px solid #dbe4ea;
    border-radius: 0.65rem;
    padding: 0.55rem 0.65rem;
    background: #f8fbfd;
}

.attachment-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.attachment-name {
    font-weight: 600;
    color: #0b3b54;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    color: #4b6677;
    flex-shrink: 0;
}

.attachment-remove {
    margin-left: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #334155;
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    cursor: pointer;
}

.attachment-remove:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.attachment-bar {
    width: 100%;
    height: 0.45rem;
    border-radius: 999px;
    background: #d7e6ee;
    overflow: hidden;
}

.attachment-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #28b1d7, #0f9fbf);
    transition: width 160ms ease;
}

.attachment-state {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #3d596a;
}

.attachment-item.is-ready .attachment-bar-fill {
    width: 100%;
}

.attachment-item.is-uploading .attachment-bar-fill {
    background: linear-gradient(90deg, #67d6f1, #0f9fbf);
}

.attachment-item.is-error {
    border-color: #f2b9b9;
    background: #fff6f6;
}

.attachment-item.is-error .attachment-bar-fill {
    width: 100%;
    background: #de5a5a;
}

.attachment-item.is-error .attachment-state {
    color: #a23434;
}

/* Notes en carres a cocher */
.rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rating-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.rating-item input {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 2px solid #9ca3af;
    display: grid;
    place-items: center;
    margin: 0;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
}

.rating-item input:checked {
    border-color: var(--color-primary);
    background: #ffffff;
}

.rating-item input:checked::after {
    content: "";
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(45deg, transparent 42%, var(--color-primary) 43%, var(--color-primary) 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, var(--color-primary) 43%, var(--color-primary) 57%, transparent 58%);
}

.rating-item:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(15, 159, 191, 0.18);
}

/* Consentement aligné à gauche */
.consent-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

.consent-row input {
    margin-top: 0;
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 1rem !important;
    z-index: 1000 !important;
    display: none;
    justify-content: center;
    padding: 0 1rem;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(120%);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.cookie-banner.is-visible {
    position: fixed !important;
    z-index: 1000 !important;
    display: flex;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    width: min(980px, 100%);
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1rem 1.4rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.cookie-content p {
    margin: 0;
    color: var(--color-muted);
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0.8rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Footer */

/* Bas de page */
.footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(9, 23, 33, 0.32);
    padding: 1.2rem 0;
    background: var(--color-shell);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 1rem;
    color: #d7e8f0;
}

.footer-content p {
    margin: 0;
    white-space: nowrap;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    color: #bfe3f0;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-content,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 95px;
        gap: 0.65rem;
    }

    .hero-mosaic-bottom-left,
    .hero-mosaic-bottom-right {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .header {
        z-index: 2100;
        overflow: visible;
    }

    .header-content {
        position: relative;
        z-index: 1201;
        padding: 0.6rem 0;
    }

    .nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--color-shell);
        flex-direction: column;
        padding: 0.8rem 1rem;
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        z-index: 2200;
        box-shadow: 0 10px 20px rgba(9, 23, 33, 0.28);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
    }

    .nav.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
    }

    .cards-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 86px;
        gap: 0.55rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .footer-content p {
        white-space: normal;
        overflow-wrap: anywhere;
    }

}

/* Tableau politique cookies */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid #cbd5e1;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.cookie-table thead th {
    background: #f1f5f9;
    font-weight: 600;
}

@media (max-width: 640px) {
    body.legal-page .cookie-table {
        table-layout: fixed;
        border: 0;
        background: transparent;
    }

    body.legal-page .cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.legal-page .cookie-table tbody {
        display: grid;
        gap: 0.7rem;
    }

    body.legal-page .cookie-table tr {
        display: block;
        border: 1px solid #cbd5e1;
        border-radius: 0.8rem;
        background: #ffffff;
        padding: 0.45rem 0.6rem;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    }

    body.legal-page .cookie-table th,
    body.legal-page .cookie-table td {
        display: block;
        border: 0;
        padding: 0.3rem 0;
        font-size: 0.9em;
    }

    body.legal-page .cookie-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    body.legal-page .cookie-table td::before {
        display: block;
        margin-bottom: 0.08rem;
        color: var(--color-primary-dark);
        font-weight: 600;
    }

    body.legal-page .cookie-table td:nth-child(1)::before {
        content: "Nom du cookie";
    }

    body.legal-page .cookie-table td:nth-child(2)::before {
        content: "Finalité";
    }

    body.legal-page .cookie-table td:nth-child(3)::before {
        content: "Fournisseur";
    }

    body.legal-page .cookie-table td:nth-child(4)::before {
        content: "Durée de conservation";
    }

    body.legal-page .cookie-table td:nth-child(5)::before {
        content: "Consentement requis";
    }
}

/* index.html specific styles */
body.page-home-index {
    --container-width: min(1800px, 100% - 4rem);
    min-height: auto;
    display: block;
    background: #073f5c !important;
    background-image: none !important;
    overflow-x: clip;
}

body.page-home-index::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% 15%, rgba(255, 255, 255, 0.32), transparent 60%),
        linear-gradient(175deg, #89e7ff 0%, #27b6dc 45%, #0a5f87 100%);
    transform: none;
    clip-path: inset(0);
}

body.page-home-index::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(
            circle at -20% 110%,
            rgba(255, 255, 255, 0.12) 0 2px,
            rgba(255, 255, 255, 0) 2px 19px
        ),
        repeating-radial-gradient(
            circle at 120% -10%,
            rgba(255, 255, 255, 0.08) 0 2px,
            rgba(255, 255, 255, 0) 2px 17px
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0) 80%
        );
    mix-blend-mode: screen;
    opacity: 0.24;
    will-change: transform, opacity;
    animation: heroSheenDrift 16s ease-in-out infinite;
    clip-path: inset(0);
}

/* Service pages: same background atmosphere as index */
body.page-service {
    background: #073f5c !important;
    background-image: none !important;
    overflow-x: clip;
}

body.page-service::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% 15%, rgba(255, 255, 255, 0.32), transparent 60%),
        linear-gradient(175deg, #89e7ff 0%, #27b6dc 45%, #0a5f87 100%);
    clip-path: inset(0);
}

body.page-service::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(
            circle at -20% 110%,
            rgba(255, 255, 255, 0.12) 0 2px,
            rgba(255, 255, 255, 0) 2px 19px
        ),
        repeating-radial-gradient(
            circle at 120% -10%,
            rgba(255, 255, 255, 0.08) 0 2px,
            rgba(255, 255, 255, 0) 2px 17px
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0) 80%
        );
    mix-blend-mode: screen;
    opacity: 0.24;
    animation: heroSheenDrift 16s ease-in-out infinite;
    clip-path: inset(0);
}

body.page-home-index #hero.hero {
    position: relative;
    min-height: auto;
    display: block;
    overflow: hidden;
    isolation: isolate;
    padding: 2.2rem 0 1.2rem;
}

body.page-home-index #hero .hero-content-solo {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
}

body.page-home-index #hero .hero-content-solo .hero-image {
    max-width: 1500px;
}

body.page-home-index #hero .hero-slider-mobile {
    display: none;
}

body.page-home-index #hero .hero-mosaic {
    max-width: 1500px;
    grid-auto-rows: 150px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.page-home-index #hero .hero-mosaic .hero-mosaic-bottom-left {
    grid-column: 1 / span 2;
    grid-row: 4 / span 1;
}

body.page-home-index #hero .hero-mosaic .hero-mosaic-bottom-right {
    grid-column: 5 / span 2;
    grid-row: 3 / span 2;
}

body.page-home-index .header-content,
body.header-home-layout .header-content {
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
    height: 68px;
    padding-top: 0;
    padding-bottom: 0;
}

body.page-home-index .header-content .logo,
body.header-home-layout .header-content .logo {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
    line-height: 0;
    overflow: visible;
}

body.page-home-index .header-content .logo-image,
body.header-home-layout .header-content .logo-image {
    width: 300px;
    max-width: min(72vw, 300px);
    height: auto;
    object-position: left top;
}

body.page-home-index .header-content .nav,
body.header-home-layout .header-content .nav {
    order: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

body.page-home-index .header-content .nav > a,
body.header-home-layout .header-content .nav > a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

body.page-home-index .header-content .nav > a.client-access,
body.header-home-layout .header-content .nav > a.client-access {
    min-height: 0;
    padding: 0.7rem 1.35rem;
    border-radius: 1rem;
}

body.page-home-index .header-content .nav-toggle,
body.header-home-layout .header-content .nav-toggle {
    order: 3;
}

body.page-home-index .header .container,
body.header-home-layout .header .container {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0.9rem;
}

body.page-home-index .footer,
body.header-home-layout .footer {
    margin-top: 0;
}

body.page-service.header-home-layout .footer {
    margin-top: auto;
}

/* Contact page using home background: keep footer pinned to viewport bottom */
body.header-home-layout.page-home-index {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.header-home-layout.page-home-index .footer {
    margin-top: auto;
}

body.page-home-index .contact-card,
body.page-home-index .hours-card,
body.page-home-index .map-card {
    text-align: left;
}

body.page-home-index .contact-card h3,
body.page-home-index .hours-card h3,
body.page-home-index .map-card h3 {
    text-align: left;
}

body.page-home-index .contact-card,
body.page-home-index .hours-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

body.page-home-index .contact-infos {
    width: 100%;
    margin: 1.5rem 0 0;
    text-align: left;
}

body.page-home-index .contact-infos li {
    margin-bottom: 1rem;
}

body.page-home-index .contact-infos li:last-child {
    margin-bottom: 0;
}

body.page-home-index .hours-list {
    width: 100%;
    margin: 0;
    text-align: left;
}

body.page-home-index .hours-list li {
    width: 100%;
}

/* Section boutique (index): left cards keep natural height, map can be taller */
.boutique-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "intro intro"
        "left right";
    gap: 2rem;
    align-items: stretch;
}

#contact .boutique-container .contact-intro {
    grid-area: intro;
}

#contact .boutique-container .colonne-gauche {
    grid-area: left;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.2rem;
    align-self: stretch;
    height: 100%;
}

#contact .boutique-container .colonne-droite {
    grid-area: right;
    align-self: stretch;
    height: 100%;
}

#contact .boutique-container .colonne-gauche > * {
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#contact .boutique-container .colonne-gauche > * {
    width: 100%;
}

#contact .boutique-container .colonne-droite .map-frame {
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
}

body.page-home-index #contact.section {
    padding-bottom: 2.2rem;
}

@media (max-width: 900px) {
    .boutique-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "left"
            "right";
        align-items: start;
    }

    #contact .boutique-container .colonne-gauche {
        grid-template-rows: auto;
        height: auto;
    }

    #contact .boutique-container .colonne-gauche > * {
        height: auto;
    }

    #contact .boutique-container .colonne-droite {
        height: auto;
    }

    #contact .boutique-container .colonne-droite .map-frame {
        min-height: 320px;
    }
}

@keyframes heroSheenDrift {
    0% {
        transform: translate3d(-2%, 0, 0);
        opacity: 0.18;
    }
    50% {
        transform: translate3d(2%, -1%, 0);
        opacity: 0.26;
    }
    100% {
        transform: translate3d(-2%, 0, 0);
        opacity: 0.18;
    }
}

@media (max-width: 640px) {
    body.page-home-index #hero.hero {
        padding: 1.4rem 0 0.8rem;
    }

    body.page-home-index {
        --container-width: min(1800px, 100% - 2rem);
        font-size: 0.98rem;
        line-height: 1.48;
    }

    body.page-home-index .section h2 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    body.page-home-index .section-intro {
        font-size: 0.92rem;
    }

    body.page-home-index .nav a {
        font-size: 0.94rem;
    }

    body.page-home-index .btn {
        font-size: 0.92rem;
    }

    body.page-home-index::after {
        animation: none;
        opacity: 0.16;
    }

    body.page-home-index #hero .hero-slider-mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    body.page-home-index #hero .hero-slider-mobile .hero-slide img {
        object-position: center center;
    }

    body.page-home-index #hero .hero-mosaic {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home-index::after {
        animation: none;
    }
}

@media (prefers-contrast: more) {
    body.page-home-index::after {
        display: none;
    }

    .section-intro,
    .card p,
    .hours-time,
    .cookie-content p {
        color: #334155;
    }

    .nav a:focus-visible,
    .btn:focus-visible,
    .gallery-link:focus-visible,
    .hero-mosaic-item:focus-visible {
        outline-width: 4px;
    }
}

/* Actualites */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 122, 146, 0.16);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.news-card.news-card-layout-left,
.news-card.news-card-layout-right {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
}

.news-card.news-card-layout-right {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
}

.news-card.news-card-layout-right .news-card-image {
    order: 2;
}

.news-card.news-card-layout-right .news-card-content {
    order: 1;
}

.news-card-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.15rem 1.25rem 1.3rem;
}

.news-card-date {
    margin: 0 0 0.5rem;
    color: #47687b;
    font-size: 0.95rem;
}

.news-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
}

.news-card-summary {
    margin: 0 0 0.6rem;
    color: #244b63;
    font-weight: 600;
}

.news-card-actions {
    margin-top: 0.9rem;
}

.news-card-body {
    margin: 0;
    color: #1f2933;
}

.news-state {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 122, 146, 0.2);
}

.news-list {
    display: grid;
    gap: 0.75rem;
}

.news-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 122, 146, 0.2);
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.news-row:hover {
    background: #ffffff;
    border-color: rgba(11, 122, 146, 0.35);
}

.news-row-title {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
}

.news-row-summary {
    margin: 0;
    color: #32556b;
}

.news-row-meta {
    text-align: right;
    display: grid;
    gap: 0.25rem;
    justify-items: end;
}

.news-row-date {
    margin: 0;
    color: #47687b;
    font-size: 0.94rem;
}

.news-row-read {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.news-row.is-read .news-row-read {
    color: #166534;
    background: rgba(22, 101, 52, 0.12);
}

.news-row.is-unread .news-row-read {
    color: #9f1239;
    background: rgba(159, 18, 57, 0.1);
}

/* Edition actualites */
.news-editor-app {
    display: grid;
    gap: 1.2rem;
}

.news-editor-mobile-notice {
    display: none;
    margin: 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(11, 122, 146, 0.2);
    border-left: 4px solid #0b7a92;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1f3f52;
}

.news-editor-auth,
.news-editor-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 122, 146, 0.16);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
}

.news-editor-auth-form {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: end;
}

.news-editor-auth-mobile-message {
    display: none;
    margin: 0;
    color: #1f3f52;
    font-weight: 600;
}

.news-editor-auth-form .form-group {
    margin: 0;
    min-width: 240px;
    flex: 1 1 240px;
}

.news-editor-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.news-editor-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-editor-toolbar-row .news-editor-toolbar {
    margin-bottom: 0;
}

.news-editor-toolbar-primary {
    justify-content: flex-start;
}

.news-editor-toolbar-secondary {
    justify-content: flex-end;
}

.news-admin-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.news-admin-counter {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    border: 1px solid rgba(11, 122, 146, 0.2);
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
    background: rgba(255, 255, 255, 0.85);
    color: #32556b;
    font-size: 0.95rem;
}

.news-admin-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1rem;
}

.news-admin-toolbar .form-group {
    margin: 0;
}

.news-admin-toolbar-actions {
    display: flex;
    align-items: end;
}

.news-editor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
    align-items: stretch;
}

.news-editor-card {
    background: #ffffff;
    border: 1px solid rgba(11, 122, 146, 0.18);
    border-radius: 0.9rem;
    padding: 1rem;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 0.35rem;
}

.news-editor-card h3 {
    margin: 0 0 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.2em;
}

.news-editor-meta {
    margin: 0 0 0.4rem;
    color: #47687b;
    font-size: 0.95rem;
}

.news-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.16rem 0.62rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-status-badge.is-published {
    color: #166534;
    background: rgba(22, 101, 52, 0.14);
    border: 1px solid rgba(22, 101, 52, 0.25);
}

.news-status-badge.is-draft {
    color: #8a6b00;
    background: rgba(202, 162, 0, 0.14);
    border: 1px solid rgba(202, 162, 0, 0.26);
}

.news-editor-summary {
    margin: 0.45rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.5em;
}

.news-editor-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    align-self: end;
}

.news-editor-empty {
    margin: 0;
    color: #38566d;
}

.news-admin-pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.news-admin-page-label {
    color: #32556b;
    font-size: 0.95rem;
}

.news-image-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.news-image-layout-grid {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.news-layout-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 0.6rem;
    border: 1px solid rgba(11, 122, 146, 0.35);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
    font-size: 0.92rem;
    padding: 0.35rem 0.5rem;
}

.news-layout-btn:hover {
    border-color: rgba(11, 122, 146, 0.7);
    background: rgba(11, 122, 146, 0.08);
}

.news-layout-btn.is-active {
    border-color: #0b7a92;
    background: rgba(15, 159, 191, 0.22);
}

.news-upload-status {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.news-upload-status.is-success {
    color: #166534;
}

.news-upload-status.is-error {
    color: #9f1239;
}

.news-editor-section {
    border: 1px solid rgba(11, 122, 146, 0.16);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

.news-editor-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #1f3f52;
}

.news-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.news-image-tools {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(11, 122, 146, 0.2);
    border-radius: 0.7rem;
    background: rgba(240, 249, 255, 0.8);
}

.news-image-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
}

.news-image-tools-row label {
    color: #1f3f52;
    font-size: 0.95rem;
}

.news-image-tools-label {
    color: #1f3f52;
    font-weight: 600;
    min-width: 86px;
}

.news-image-align-group {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.news-image-align-group .btn.is-active {
    border-color: #0b7a92;
    background: rgba(15, 159, 191, 0.2);
}

.news-image-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
}

.news-image-tools input[type="number"],
.news-image-tools select {
    min-width: 90px;
    max-width: 120px;
    padding: 0.45rem 0.5rem;
}

.news-image-tools-note {
    color: #4a6576;
    font-size: 0.9rem;
}

.news-image-tools small {
    color: #4a6576;
}

.news-rich-editor {
    min-height: 220px;
    border: 1px solid rgba(11, 122, 146, 0.3);
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.75rem;
    line-height: 1.5;
}

.news-rich-editor:focus {
    outline: none;
    border-color: #0b7a92;
    box-shadow: 0 0 0 3px rgba(11, 122, 146, 0.12);
}

.news-rich-editor img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.news-rich-editor img.news-content-image {
    display: block;
}

.news-rich-editor img.news-img-left {
    float: left;
}

.news-rich-editor img.news-img-right {
    float: right;
}

.news-rich-editor img.news-img-center {
    float: none;
    clear: both;
}

.news-rich-editor img.is-selected {
    outline: 3px solid rgba(11, 122, 146, 0.45);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.news-image-resize-box {
    position: absolute;
    border: 2px dashed rgba(11, 122, 146, 0.75);
    pointer-events: none;
    z-index: 1200;
    box-sizing: border-box;
}

.news-image-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #0b7a92;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.news-image-handle.is-nw {
    top: -8px;
    left: -8px;
    cursor: nwse-resize;
}

.news-image-handle.is-ne {
    top: -8px;
    right: -8px;
    cursor: nesw-resize;
}

.news-image-handle.is-sw {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize;
}

.news-image-handle.is-se {
    bottom: -8px;
    right: -8px;
    cursor: nwse-resize;
}

.news-image-layout-grid-visual .news-layout-btn {
    min-height: 46px;
    position: relative;
}

.news-image-layout-grid-visual .news-layout-btn[data-layout^="top-"]::after,
.news-image-layout-grid-visual .news-layout-btn[data-layout^="left-"]::after,
.news-image-layout-grid-visual .news-layout-btn[data-layout^="right-"]::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0b7a92;
    position: absolute;
}

.news-image-layout-grid-visual .news-layout-btn[data-layout="top-left"]::after { top: 8px; left: 8px; }
.news-image-layout-grid-visual .news-layout-btn[data-layout="top-center"]::after { top: 8px; left: 50%; transform: translateX(-50%); }
.news-image-layout-grid-visual .news-layout-btn[data-layout="top-right"]::after { top: 8px; right: 8px; }
.news-image-layout-grid-visual .news-layout-btn[data-layout="left-top"]::after { top: 8px; left: 8px; }
.news-image-layout-grid-visual .news-layout-btn[data-layout="left-center"]::after { top: 50%; left: 8px; transform: translateY(-50%); }
.news-image-layout-grid-visual .news-layout-btn[data-layout="left-bottom"]::after { bottom: 8px; left: 8px; }
.news-image-layout-grid-visual .news-layout-btn[data-layout="right-top"]::after { top: 8px; right: 8px; }
.news-image-layout-grid-visual .news-layout-btn[data-layout="right-center"]::after { top: 50%; right: 8px; transform: translateY(-50%); }
.news-image-layout-grid-visual .news-layout-btn[data-layout="right-bottom"]::after { bottom: 8px; right: 8px; }

.news-image-preview {
    margin-top: 0.75rem;
    width: min(420px, 100%);
    max-height: 240px;
    object-fit: cover;
    border-radius: 0.7rem;
    border: 1px solid rgba(11, 122, 146, 0.25);
}

.news-media-library {
    margin-top: 1rem;
    border: 1px solid rgba(11, 122, 146, 0.14);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.85rem;
}

.news-media-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.news-media-library-header h4 {
    margin: 0;
    color: #1f3f52;
}

.news-media-list {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}

.news-media-card {
    border: 1px solid rgba(11, 122, 146, 0.16);
    border-radius: 0.65rem;
    background: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.news-media-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.news-media-card-body {
    padding: 0.55rem;
}

.news-media-name,
.news-media-meta {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-media-name {
    font-weight: 600;
    color: #1f3f52;
}

.news-media-meta {
    color: #4a6576;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.news-media-actions {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.news-media-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.article-view article {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 122, 146, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.article-view article::after {
    content: "";
    display: block;
    clear: both;
}

.article-view article.article-layout-top {
    display: grid;
    grid-template-columns: 1fr;
}

.article-view article.article-layout-top .article-image {
    width: 100%;
    grid-column: 1 / -1;
}

.article-view article.article-layout-top-left .article-image {
    width: min(62%, 460px);
    float: left;
    margin: 0 1rem 1rem 0;
}

.article-view article.article-layout-top-center .article-image {
    max-width: 62%;
    margin-left: auto;
    margin-right: auto;
}

.article-view article.article-layout-top-right .article-image {
    width: min(62%, 460px);
    float: right;
    margin: 0 0 1rem 1rem;
}

.article-view article.article-layout-full-top .article-image,
.article-view article.article-layout-full-center .article-image,
.article-view article.article-layout-full-bottom .article-image {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.article-view article.article-layout-left .article-image,
.article-view article.article-layout-left-top .article-image,
.article-view article.article-layout-left-center .article-image,
.article-view article.article-layout-left-bottom .article-image {
    width: min(46%, 420px);
    float: left;
    margin: 0 1rem 1rem 0;
}

.article-view article.article-layout-right .article-image,
.article-view article.article-layout-right-top .article-image,
.article-view article.article-layout-right-center .article-image,
.article-view article.article-layout-right-bottom .article-image {
    width: min(46%, 420px);
    float: right;
    margin: 0 0 1rem 1rem;
}

.article-view article.article-layout-left-top .article-image,
.article-view article.article-layout-right-top .article-image {
    margin-top: 0;
}

.article-view article.article-layout-left-center .article-image,
.article-view article.article-layout-right-center .article-image {
    margin-top: 0.85rem;
}

.article-view article.article-layout-left-bottom .article-image,
.article-view article.article-layout-right-bottom .article-image {
    margin-top: 1.6rem;
}

.article-date {
    margin: 0 0 0.35rem;
    color: #47687b;
    font-size: 0.95rem;
}

.article-title {
    margin: 0 0 0.8rem;
}

.article-summary {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #244b63;
}

.article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 1px solid rgba(11, 122, 146, 0.2);
    margin-bottom: 1rem;
}

.article-body {
    margin-bottom: 1.2rem;
}

.article-view article > p:last-child {
    clear: both;
}

.form-message.is-error {
    color: #9f1239;
}

@media (max-width: 900px) {
    #newsEditorApp .news-editor-mobile-notice {
        display: none;
    }

    #newsEditorApp .news-editor-panel {
        display: none;
    }

    #newsEditorApp .news-editor-auth-form .form-group,
    #newsEditorApp .news-editor-auth-form .btn,
    #newsEditorApp #editorMessage {
        display: none;
    }

    #newsEditorApp .news-editor-auth-mobile-message {
        display: block;
    }
}

@media (max-width: 900px) {
    .news-grid,
    .news-editor-list {
        grid-template-columns: 1fr;
    }

    .news-card.news-card-layout-left,
    .news-card.news-card-layout-right {
        display: block;
    }

    .news-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .news-image-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-image-tools-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-image-inline-check {
        margin-left: 0;
    }

    .news-admin-toolbar {
        grid-template-columns: 1fr;
    }

    .news-row-meta {
        justify-items: start;
        text-align: left;
    }

    .article-view article.article-layout-left,
    .article-view article.article-layout-right {
        display: block;
    }
}

/* Satisfaction questionnaire */
.satisfaction-page {
    background: transparent;
}

.satisfaction-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.25rem);
    color: #113746;
    letter-spacing: 0.01em;
}

.satisfaction-intro {
    margin: 0 0 1.35rem;
    color: #3a4c56;
}

.satisfaction-form {
    background: #ffffff;
    border: 1px solid #d8e5ec;
    box-shadow: 0 14px 30px rgba(16, 40, 54, 0.08);
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
}

.identity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.survey-block {
    padding: 1rem 0;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed #c2d2db;
}

.survey-block h2 {
    margin: 0 0 0.95rem;
    font-size: 1.18rem;
    line-height: 1.45;
    color: #153f4f;
}

.survey-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: #dff2f7;
    color: #0b7a92;
    font-weight: 700;
    font-size: 0.92rem;
}

.survey-options {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.survey-options-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.survey-tech-list {
    grid-template-columns: 1fr;
    max-width: 360px;
}

.survey-options label,
.survey-rating-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    transition: background-color var(--transition-fast);
    font-size: 1rem;
    font-weight: 400;
}

.satisfaction-form input[type="checkbox"],
.satisfaction-form input[type="radio"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.28rem;
    border: 2px solid #8ea3ad;
    display: inline-grid;
    place-items: center;
    margin: 0;
    background: #ffffff;
    position: relative;
}

.satisfaction-form input[type="checkbox"]:checked,
.satisfaction-form input[type="radio"]:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.satisfaction-form input[type="checkbox"]:checked::after,
.satisfaction-form input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 0.72rem;
    height: 0.72rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(45deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #ffffff 43%, #ffffff 57%, transparent 58%);
}

.survey-options label:hover,
.survey-rating-options label:hover {
    background: rgba(15, 159, 191, 0.08);
}

.survey-inline-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.survey-inline-field.hidden {
    display: none;
}

.survey-inline-field input,
.survey-inline-dotted input {
    flex: 1 1 240px;
    border: 1px solid #c7d6de;
    background: #fbfdfe;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.satisfaction-form .survey-inline-field input.survey-input-box {
    border: 1px solid #c7d6de !important;
    border-bottom: 1px solid #c7d6de !important;
    background: #fbfdfe !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.8rem !important;
}

.survey-rating-row {
    margin-bottom: 1rem;
}

.survey-rating-row p {
    margin: 0 0 0.45rem;
    color: #1d2e36;
    font-weight: 500;
}

.survey-rating-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.survey-inline-dotted {
    display: grid;
    gap: 0.5rem;
}

.survey-inline-dotted input {
    width: 100%;
}

.satisfaction-form textarea {
    border: 1px solid #c7d6de;
    background: #fbfdfe;
    min-height: 140px;
    height: 140px;
    max-height: 140px;
    resize: none;
}

.satisfaction-form textarea:focus,
.satisfaction-form input[type="text"]:focus {
    outline: none;
    border-color: #0f9fbf;
    box-shadow: 0 0 0 3px rgba(15, 159, 191, 0.12);
}

.survey-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.35rem;
}

.survey-certification {
    margin-top: 0.7rem;
}

.survey-certification label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #1d2e36;
}

.survey-certification input[type="checkbox"] {
    margin-top: 0.16rem;
    flex-shrink: 0;
}

.survey-certification-text {
    margin-top: 0.14rem;
}

@media (max-width: 900px) {
    .survey-options-3,
    .survey-rating-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .satisfaction-form {
        padding: 0.95rem;
    }

    .identity-row {
        grid-template-columns: 1fr;
    }

    .survey-block h2 {
        font-size: 1.08rem;
    }

    .survey-options-3,
    .survey-rating-options {
        grid-template-columns: 1fr;
    }

    .survey-inline-field {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Historique */
body.history-page-body {
    background: #f8f5ee;
    background-image: none;
    color: #2f3e46;
    --container-width: min(1180px, 100% - 3rem);
}

body.satisfaction-page-body .header {
    z-index: 300;
    overflow: visible;
}

body.satisfaction-page-body .header-content,
body.satisfaction-page-body .header-content .logo {
    position: relative;
    z-index: 301;
    overflow: visible;
}

body.history-page-body .header {
    z-index: 300;
    overflow: visible;
}

body.history-page-body .header-content,
body.history-page-body .header-content .logo {
    position: relative;
    z-index: 301;
    overflow: visible;
}

.history-page {
    background: linear-gradient(180deg, #f8f5ee 0%, #fdfcf9 46%, #f8f5ee 100%);
}

.history-page h1,
.history-page h2,
.history-page h3,
.history-page blockquote p {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.015em;
    color: #1f4b5c;
}

.history-page p,
.history-page li,
.history-page cite {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #33424b;
}

.history-section {
    padding: 5.5rem 0;
}

.history-hero {
    min-height: min(76vh, 720px);
    background: #0f2f3a;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.history-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 43, 53, 0.78), rgba(18, 43, 53, 0.78));
    z-index: 1;
}

.history-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.history-hero-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.25);
    min-width: 100%;
    min-height: 100%;
}

.history-hero-overlay {
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 4.8rem 0;
    position: relative;
    z-index: 2;
}
.history-hero-content {
    display: grid;
    gap: 1rem;
    color: #f7f7f1;
}

.history-video-consent-placeholder {
    max-width: 32rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    background: rgba(9, 23, 33, 0.62);
}

.history-video-consent-placeholder p {
    margin: 0 0 0.65rem;
    color: #f8fafc;
}
.history-hero-kicker {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffffff !important;
}

.history-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw + 0.7rem, 3.8rem);
    max-width: 18ch;
    color: #f8fbfc;
}

.history-hero-subtitle {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.history-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    max-width: 940px;
}

.history-badges li {
    background: rgba(248, 245, 238, 0.92);
    border: 1px solid rgba(230, 220, 201, 0.95);
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.1rem;
    box-shadow: 0 8px 20px rgba(17, 29, 35, 0.08);
}

.history-badges strong {
    color: #1f4b5c;
    font-size: 1.06rem;
    font-family: Georgia, "Times New Roman", serif;
}

.history-badges span {
    color: #4c5c64;
    font-size: 0.94rem;
}

.history-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 2.4rem;
    align-items: center;
}

.history-story-text h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.8rem, 2.5vw + 0.6rem, 2.8rem);
}

.history-story-text p {
    margin: 0 0 1.3rem;
    line-height: 1.82;
    max-width: 74ch;
}

.history-story-image {
    margin: 0;
    position: sticky;
    top: 6.8rem;
}

.history-story-image img {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(194, 182, 165, 0.7);
    box-shadow: 0 18px 28px rgba(27, 40, 48, 0.12);
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.history-timeline-section {
    background: #f4efe5;
    border-top: 1px solid #e5dcc9;
    border-bottom: 1px solid #e5dcc9;
}

.history-timeline-section h2 {
    margin: 0 0 2.2rem;
    font-size: clamp(1.65rem, 2vw + 0.8rem, 2.3rem);
}

.history-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.7rem;
    position: relative;
    display: grid;
    gap: 2rem;
}

.history-timeline::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 1px;
    background: #a6b2b7;
}

.history-timeline li {
    position: relative;
    padding-left: 1.3rem;
}

.history-timeline li::before {
    content: "";
    position: absolute;
    left: -1.35rem;
    top: 0.55rem;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #1f4b5c;
    box-shadow: 0 0 0 3px #f4efe5;
}

.history-timeline h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: #244f60;
}

.history-timeline p {
    margin: 0;
    line-height: 1.7;
}

.history-commitments h2 {
    margin: 0 0 2rem;
    font-size: clamp(1.65rem, 2vw + 0.8rem, 2.3rem);
}

.history-commitments-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-card {
    background: #ffffff;
    border: 1px solid #dbe0e3;
    border-radius: 0.8rem;
    padding: 1.35rem;
    box-shadow: 0 8px 18px rgba(21, 34, 41, 0.08);
}

.history-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
}

.history-card p {
    margin: 0;
    line-height: 1.7;
}

.history-quote {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
}

.history-quote blockquote {
    margin: 0;
    padding: 2rem 2.3rem;
    border-left: 2px solid #1f4b5c;
    background: #fffdfa;
    border-radius: 0.45rem;
}

.history-quote blockquote p {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw + 0.5rem, 2rem);
    line-height: 1.45;
    color: #1f4b5c;
}

.history-quote cite {
    display: block;
    margin-top: 0.9rem;
    font-style: normal;
    color: #495962;
}

.history-cta {
    padding-top: 2.8rem;
    padding-bottom: 6rem;
    text-align: center;
}

.history-cta h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw + 0.55rem, 2.4rem);
}

.history-cta-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.history-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.78rem 1.45rem;
    border: 1px solid transparent;
}

.history-button-primary {
    background: #1f4b5c;
    color: #ffffff;
    border-color: #1f4b5c;
}

.history-button-primary:hover {
    background: #183d4b;
    border-color: #183d4b;
}

.history-button-outline {
    background: transparent;
    color: #1f4b5c;
    border-color: #1f4b5c;
}

.history-button-outline:hover {
    background: #e9eff1;
}

.history-button:focus-visible {
    outline: 3px solid #1f4b5c;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .history-section {
        padding: 4.3rem 0;
    }

    .history-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
    }

    .history-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-story-image {
        position: static;
    }

    .history-story-image img {
        aspect-ratio: 16 / 10;
    }

    .history-commitments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.history-page-body {
        --container-width: min(1180px, 100% - 1.6rem);
    }

    .history-hero {
        min-height: 62vh;
    }

    .history-hero-overlay {
        padding: 3.8rem 0;
    }

    .history-badges {
        grid-template-columns: 1fr;
    }

    .history-timeline {
        padding-left: 1.35rem;
    }

    .history-timeline li {
        padding-left: 1rem;
    }

    .history-timeline li::before {
        left: -1.13rem;
    }

    .history-commitments-grid {
        grid-template-columns: 1fr;
    }

    .history-quote blockquote {
        padding: 1.5rem 1.3rem;
    }
}


/* About page */

/* About page skin */
.about-page-body {
    --container-width: min(1180px, 100% - 3rem);
    background: #f8f5ee;
    background-image: none;
    color: #2f3e46;
}

.about-page {
    background: linear-gradient(180deg, #f8f5ee 0%, #fdfcf9 40%, #f8f5ee 100%);
}

.about-page h1,
.about-page h2,
.about-page h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #1f4b5c;
    letter-spacing: 0.015em;
    font-weight: 500;
}

.about-page p,
.about-page li,
.about-page cite,
.about-page a {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* hero */
.about-hero {
    min-height: min(70vh, 660px);
    background-image: linear-gradient(rgba(20, 44, 54, 0.46), rgba(20, 44, 54, 0.46)), url("/assets/img/a-propos-hero.jpg");
    background-size: cover;
    background-position: center;
}

.about-hero-overlay {
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 4.6rem 0;
}

.about-hero-content {
    display: grid;
    gap: 0.9rem;
}

.about-hero-content h1 {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(2rem, 3vw + 0.7rem, 3.5rem);
    line-height: 1.18;
    color: #f7f9f8;
}

.about-hero-subtitle {
    margin: 0;
    color: #e9efec;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
}

/* narrative */
.about-narrative {
    padding: 5.6rem 0 4.4rem;
}

.about-narrative-inner {
    width: min(720px, 100%);
    margin: 0 auto;
}

.about-narrative-inner h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.8rem, 2.4vw + 0.6rem, 2.7rem);
}

.about-narrative-inner p {
    margin: 0 0 1.35rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #36454d;
}

/* image-break */
.about-image-break {
    padding: 0 0 4.6rem;
}

.about-break-figure {
    margin: 0;
}

.about-break-figure img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 16px;
    border: 1px solid #d8d0c2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.about-break-figure figcaption {
    margin-top: 0.9rem;
    color: #4d5d65;
    font-size: 0.98rem;
    text-align: center;
}

/* pillars */
.about-pillars {
    padding: 1rem 0 4.8rem;
}

.about-pillars h2 {
    margin: 0 0 1.7rem;
    font-size: clamp(1.7rem, 2.1vw + 0.8rem, 2.35rem);
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-pillar {
    background: #fffdf8;
    border: 1px solid #d9dfe2;
    border-radius: 0.7rem;
    padding: 1.25rem;
    box-shadow: 0 8px 18px rgba(18, 34, 42, 0.07);
}

.about-pillar h3 {
    margin: 0 0 0.5rem;
    font-size: 1.28rem;
}

.about-pillar p {
    margin: 0;
    color: #3f4f58;
    line-height: 1.7;
}

/* quote */
.about-quote {
    padding: 0 0 3.8rem;
}

.about-quote blockquote {
    margin: 0;
    width: min(820px, 100%);
    padding: 1.7rem 2rem;
    border-left: 2px solid #1f4b5c;
    background: #fffdfa;
    border-radius: 0.45rem;
}

.about-quote p {
    margin: 0;
    font-size: clamp(1.3rem, 2.1vw + 0.5rem, 1.9rem);
    line-height: 1.45;
    color: #1f4b5c;
    font-family: Georgia, "Times New Roman", serif;
}

.about-quote cite {
    display: block;
    margin-top: 0.8rem;
    font-style: normal;
    color: #4b5a62;
}

/* cta */
.about-cta {
    padding: 0 0 5.6rem;
}

.about-cta-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    text-align: center;
}

.about-cta h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2vw + 0.7rem, 2.3rem);
}

.about-cta-actions {
    margin-top: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
}

.about-button-primary {
    background: #1f4b5c;
    color: #ffffff;
    border-color: #1f4b5c;
}

.about-button-primary:hover {
    background: #183d4b;
    border-color: #183d4b;
}

.about-services-link {
    color: #1f4b5c;
    text-underline-offset: 0.2rem;
    text-decoration-thickness: 1px;
}

.about-services-link:hover {
    color: #183d4b;
}

.about-button:focus-visible,
.about-services-link:focus-visible {
    outline: 3px solid #1f4b5c;
    outline-offset: 3px;
    border-radius: 0.4rem;
}

@media (max-width: 960px) {
    .about-narrative,
    .about-image-break,
    .about-pillars,
    .about-quote,
    .about-cta {
        padding-left: 0;
        padding-right: 0;
    }

    .about-pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-page-body {
        --container-width: min(1180px, 100% - 1.6rem);
    }

    .about-hero {
        min-height: 58vh;
    }

    .about-hero-overlay {
        padding: 3.5rem 0;
    }

    .about-narrative {
        padding: 4.2rem 0 3.5rem;
    }

    .about-image-break {
        padding-bottom: 3.8rem;
    }

    .about-pillars {
        padding-bottom: 3.8rem;
    }

    .about-quote blockquote {
        padding: 1.35rem 1.2rem;
    }

    .about-cta {
        padding-bottom: 4.7rem;
    }
}

/* Final override: piscines header should match index header layout */
body.page-piscines.header-home-layout .header {
    background: var(--color-shell);
    box-shadow: 0 2px 12px rgba(9, 23, 33, 0.28);
    border-bottom: 0;
}

body.page-piscines.header-home-layout .header .container {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0.9rem;
}

body.page-piscines.header-home-layout .header-content {
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
    height: 68px;
    padding-top: 0;
    padding-bottom: 0;
}

body.page-piscines.header-home-layout .header-content .logo {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
    line-height: 0;
    overflow: visible;
}

body.page-piscines.header-home-layout .header-content .logo-image {
    display: block;
    width: 300px;
    max-width: min(72vw, 300px);
    height: auto;
    object-fit: contain;
    object-position: left top;
}

body.page-piscines.header-home-layout .header-content .nav {
    order: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

body.page-piscines.header-home-layout .header-content .nav > a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

body.page-piscines.header-home-layout .header-content .nav > a.client-access {
    min-height: 0;
    padding: 0.7rem 1.35rem;
    border-radius: 1rem;
}

body.page-piscines.header-home-layout .footer {
    margin-top: auto;
}

@media (max-width: 900px) {
    body.page-piscines.header-home-layout .header-content .logo {
        font-size: 1.45rem;
    }
}

/* Mobile nav hardening for Android Chrome stacking contexts */
@media (max-width: 640px) {
    body.page-home-index .header,
    body.header-home-layout .header {
        top: 0;
        z-index: 99990 !important;
    }

    body.page-home-index #mainNav.nav,
    body.header-home-layout #mainNav.nav {
        position: fixed !important;
        left: 0;
        right: 0;
        top: 68px;
        z-index: 99999 !important;
        isolation: isolate;
    }
}

