/* AlcaPiscine — « La ligne d'eau »
   Pierre de margelle en surface, frise de mosaïque à la ligne d'eau, bassin en profondeur. */

:root {
    --abyss: #062a33;
    --abyss-2: #0a3a45;
    --bassin: #0b6a7a;
    --bassin-2: #0b8a9a;
    --lagon: #5fd3da;
    --pierre: #efe9df;
    --pierre-2: #e4dccd;
    --pierre-ink: #2c3a3c;
    --ocre: #e09a3a;
    --ocre-2: #c97f1f;
    --tesselle-1: #1d5fa8;
    --tesselle-2: #2a7fc0;
    --tesselle-3: #164a86;
    --white: #ffffff;

    --text: var(--abyss);
    --text-soft: #3d5257;
    --on-water: #e8f6f7;
    --on-water-soft: #b7dde1;

    --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(16px, 4vw, 40px);
    --wrap: 1200px;
    --radius: 14px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 72px;

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--pierre);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lagon); color: var(--abyss); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--bassin) var(--pierre-2); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--abyss); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 56px; padding: 0.8em 1.5em;
    border-radius: 999px; border: 2px solid transparent;
    font: 600 1.0625rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 220ms var(--ease-out), color 160ms;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sun { background: var(--ocre); color: var(--abyss); box-shadow: 0 6px 18px -6px rgb(6 42 51 / 0.45); }
.btn--sun:hover { background: #eaa94e; box-shadow: 0 10px 24px -8px rgb(6 42 51 / 0.5); transform: translateY(-1px); }
.btn__sub { font-weight: 500; opacity: 0.8; padding-left: 0.6em; border-left: 1px solid rgb(6 42 51 / 0.3); font-variant-numeric: tabular-nums; }
.btn--ghost { color: var(--on-water); border-color: rgb(232 246 247 / 0.55); }
.btn--ghost:hover { background: rgb(232 246 247 / 0.12); border-color: var(--on-water); }
.btn--ink { background: var(--abyss); color: var(--pierre); }
.btn--ink:hover { background: var(--abyss-2); transform: translateY(-1px); }
.btn--block { width: 100%; }
@media (max-width: 480px) { .hide-sm { display: none; } }

.link-arrow { display: inline-flex; gap: 0.4em; align-items: center; font-weight: 600; text-decoration: none; color: var(--bassin); }
.link-arrow span { transition: transform 200ms var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow--ink { color: var(--abyss); }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    transition: background-color 260ms, box-shadow 260ms, backdrop-filter 260ms;
}
.site-header.is-scrolled {
    background: rgb(239 233 223 / 0.88);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 1px 0 rgb(6 42 51 / 0.08), 0 8px 24px -16px rgb(6 42 51 / 0.35);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--abyss); margin: 0; }
.brand__word span { color: var(--bassin); }
.brand__word--light { color: var(--pierre); }
.brand__word--light span { color: var(--lagon); }

.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__list a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; position: relative; }
.nav__list a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bassin);
    transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav__list a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { background: var(--abyss); color: var(--pierre); padding: 10px 18px !important; border-radius: 999px; transition: background-color 160ms; }
.nav__cta:hover { background: var(--bassin); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
    .nav__toggle {
        display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px;
        background: transparent; color: var(--abyss); cursor: pointer;
    }
    .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
        display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
        transition: transform 240ms var(--ease-out), opacity 160ms;
    }
    .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav__toggle-bars::before { top: -7px; }
    .nav__toggle-bars::after { top: 7px; }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

    .nav__list {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--pierre); padding: 8px var(--gutter) 24px;
        box-shadow: 0 18px 30px -18px rgb(6 42 51 / 0.45);
        clip-path: inset(0 0 100% 0); visibility: hidden;
        transition: clip-path 340ms var(--ease-out), visibility 0s 340ms;
    }
    .nav__list.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 380ms var(--ease-out), visibility 0s; }
    .nav__list li a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgb(6 42 51 / 0.1); }
    .nav__list li a::after { display: none; }
    .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Hero : la ligne d'eau ---------- */
.hero { position: relative; }
.hero__stone {
    background: var(--grain), var(--pierre);
    padding: calc(var(--header-h) + clamp(40px, 9vh, 110px)) 0 clamp(36px, 6vh, 64px);
}
.hero__title {
    font-size: clamp(2.9rem, 7.4vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
    font-variation-settings: "opsz" 96;
    max-width: 19ch;
}
.hero__title .line { display: block; }
.hero__title .line:last-child { color: var(--bassin); }
.hero__lede { margin-top: clamp(20px, 3vh, 32px); max-width: 52ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--text-soft); }

/* Frise de mosaïque : 2 rangs de tesselles 2×2 cm, comme à la ligne d'eau d'un bassin */
.frieze {
    position: relative; z-index: 2; height: 30px;
    background-color: var(--tesselle-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cg stroke='%23e9eef0' stroke-width='1.2'%3E%3Crect x='0' y='0' width='15' height='15' fill='%231d5fa8'/%3E%3Crect x='15' y='0' width='15' height='15' fill='%232a7fc0'/%3E%3Crect x='30' y='0' width='15' height='15' fill='%23164a86'/%3E%3Crect x='45' y='0' width='15' height='15' fill='%231d5fa8'/%3E%3Crect x='60' y='0' width='15' height='15' fill='%23256fb2'/%3E%3Crect x='75' y='0' width='15' height='15' fill='%23164a86'/%3E%3Crect x='90' y='0' width='15' height='15' fill='%232a7fc0'/%3E%3Crect x='105' y='0' width='15' height='15' fill='%231d5fa8'/%3E%3Crect x='0' y='15' width='15' height='15' fill='%232a7fc0'/%3E%3Crect x='15' y='15' width='15' height='15' fill='%23164a86'/%3E%3Crect x='30' y='15' width='15' height='15' fill='%231d5fa8'/%3E%3Crect x='45' y='15' width='15' height='15' fill='%232a7fc0'/%3E%3Crect x='60' y='15' width='15' height='15' fill='%23164a86'/%3E%3Crect x='75' y='15' width='15' height='15' fill='%231d5fa8'/%3E%3Crect x='90' y='15' width='15' height='15' fill='%23256fb2'/%3E%3Crect x='105' y='15' width='15' height='15' fill='%23164a86'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 30px;
    box-shadow: 0 -1px 0 rgb(6 42 51 / 0.25);
    overflow: hidden;
}
.frieze::after {
    /* reflet du soleil qui glisse sur l'émail */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 0 40%, rgb(255 255 255 / 0.38) 48%, transparent 56% 100%);
    background-size: 260% 100%;
    animation: glint 9s var(--ease-out) 1.2s infinite;
    mix-blend-mode: soft-light;
}
.frieze.is-paused::after { animation-play-state: paused; }
.frieze--thin { height: 15px; background-size: 60px 15px; }
@keyframes glint { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }

.hero__water {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        linear-gradient(180deg, rgb(11 138 154 / 0.55), rgb(6 42 51 / 0.92) 92%),
        url("../img/sous-l-eau.jpg") center 30% / cover no-repeat,
        var(--bassin);
    color: var(--on-water);
    padding: clamp(40px, 7vh, 80px) 0 clamp(56px, 9vh, 104px);
}
.water-surface { position: absolute; inset: 0 0 auto; height: 28px; z-index: 1; overflow: hidden; pointer-events: none; }
.water-surface svg { width: 200%; height: 100%; fill: rgb(95 211 218 / 0.22); animation: swell 11s linear infinite; }
@keyframes swell { to { transform: translateX(-50%); } }

.caustics { position: absolute; inset: -20%; z-index: -1; pointer-events: none; mix-blend-mode: overlay; opacity: 0.32; }
.caustics span {
    position: absolute; inset: 0;
    background: url("../img/caustiques.svg") 0 0 / 520px 520px repeat;
    animation: drift-a 26s linear infinite;
}
.caustics span + span { background-size: 380px 380px; opacity: 0.7; animation: drift-b 19s linear infinite; }
@keyframes drift-a { to { transform: translate3d(-520px, -260px, 0); } }
@keyframes drift-b { to { transform: translate3d(380px, -380px, 0) ; } }
.is-paused .caustics span, .is-paused .water-surface svg { animation-play-state: paused; }

.hero__water-inner { position: relative; display: grid; gap: clamp(28px, 4vh, 44px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; }
.hero__facts div { min-width: 0; }
.hero__facts dt { font-size: 0.82rem; color: var(--on-water-soft); }
.hero__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }

/* Entrée : la ligne d'eau se pose */
@media (prefers-reduced-motion: no-preference) {
    .js .hero__title .line { animation: rise 900ms var(--ease-out) both; }
    .js .hero__title .line:last-child { animation-delay: 110ms; }
    .js .hero__lede { animation: rise 900ms var(--ease-out) 220ms both; }
    .js .hero .frieze { animation: settle 1400ms var(--ease-out) 150ms both; }
    .js .hero__water-inner { animation: surface 1100ms var(--ease-out) 380ms both; }
}
@keyframes rise { from { transform: translateY(0.35em); opacity: 0.001; } }
@keyframes settle { 0% { transform: translateY(-10px); } 45% { transform: translateY(3px); } 70% { transform: translateY(-1px); } 100% { transform: none; } }
@keyframes surface { from { transform: translateY(18px); filter: blur(6px); opacity: 0.4; } }

/* Étoiles */
.stars {
    --size: 26px;
    display: inline-block; width: calc(var(--size) * 5); height: var(--size);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars--sm { --size: 16px; color: var(--ocre); }

/* ---------- Saisons ---------- */
.seasons {
    background: linear-gradient(180deg, var(--abyss) 0%, #073540 100%);
    color: var(--on-water);
    padding: clamp(72px, 11vw, 136px) 0;
}
.seasons__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.seasons__head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
.seasons__head p { color: var(--on-water-soft); font-size: 1.15rem; max-width: 60ch; }

.year { --gap: 4px; }
.year__months, .year__track { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.year__months li { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-water-soft); text-align: center; padding-bottom: 10px; }
.year__track { position: relative; height: 14px; }
.seg { grid-column: calc(var(--from) + 1) / calc(var(--to) + 1); border-radius: 999px; transform-origin: left; }
.seg--remise { background: #7fd6a8; }
.seg--saison { background: var(--lagon); }
.seg--hiver { background: #9db8d6; }
.seg--travaux { background: var(--ocre); }
@media (prefers-reduced-motion: no-preference) {
    .js .year .seg { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
    .js .year.is-visible .seg { transform: scaleX(1); }
    .js .year.is-visible .seg:nth-child(2) { transition-delay: 90ms; }
    .js .year.is-visible .seg:nth-child(3) { transition-delay: 180ms; }
    .js .year.is-visible .seg:nth-child(4) { transition-delay: 270ms; }
    .js .year.is-visible .seg:nth-child(5) { transition-delay: 360ms; }
}
.year__now {
    position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; background: var(--white); border-radius: 2px;
    left: calc(var(--pos, 0) * 100%);
    box-shadow: 0 0 0 4px rgb(6 42 51 / 0.9);
    transition: left 1200ms var(--ease-out) 400ms;
}
.year__now-label {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
    white-space: nowrap; font-size: 0.78rem; font-weight: 600; color: var(--abyss);
    background: var(--white); padding: 3px 9px; border-radius: 999px;
}

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: 64px; }
.phase { position: relative; padding-top: 22px; border-top: 1px solid rgb(232 246 247 / 0.2); transition: border-color 300ms; }
.phase::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--c); }
.phase[data-phase="remise"] { --c: #7fd6a8; }
.phase[data-phase="saison"] { --c: var(--lagon); }
.phase[data-phase="hiver"] { --c: #9db8d6; }
.phase[data-phase="travaux"] { --c: var(--ocre); }
.phase__when { font-size: 0.86rem; color: var(--on-water-soft); font-variant-numeric: tabular-nums; }
.phase h3 { font-size: 1.5rem; font-weight: 700; margin: 6px 0 10px; }
.phase p:last-child { color: var(--on-water-soft); font-size: 0.98rem; }
.phase.is-current { border-top-color: var(--c); }
.phase.is-current::before { width: 100%; }
.phase.is-current::after {
    content: "En ce moment"; position: absolute; top: 20px; right: 0;
    font-size: 0.74rem; font-weight: 600; color: var(--abyss); background: var(--c); padding: 2px 9px; border-radius: 999px;
}
.phase::before { transition: width 900ms var(--ease-out) 600ms; }
.seasons__now { margin-top: 44px; font-size: 1.1rem; color: var(--on-water); max-width: 64ch; }
.seasons__now a { color: var(--lagon); font-weight: 600; }

@media (max-width: 900px) {
    .phases { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 560px) {
    .year__months li { font-size: 0; padding-bottom: 8px; }
    .year__months li::first-letter { font-size: 0.72rem; }
    .phases { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services { background: var(--grain), var(--pierre); padding: clamp(72px, 11vw, 136px) 0; }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.services__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.services__aside h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
.services__aside p { color: var(--text-soft); font-size: 1.12rem; max-width: 42ch; }
.service-list { border-top: 1px solid rgb(6 42 51 / 0.16); }
.service {
    display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
    padding: 26px 0; border-bottom: 1px solid rgb(6 42 51 / 0.16);
    position: relative;
}
.service::before {
    /* la ligne d'eau monte sous le service survolé */
    content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 12px;
    background: linear-gradient(0deg, rgb(11 138 154 / 0.12), rgb(11 138 154 / 0.04));
    clip-path: inset(100% 0 0 0 round 12px); transition: clip-path 420ms var(--ease-out);
}
.service:hover::before { clip-path: inset(0 0 0 0 round 12px); }
.services { position: relative; z-index: 0; }
.service__icon { width: 48px; height: 48px; fill: none; stroke: var(--bassin); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--ease-out); }
.service:hover .service__icon { transform: translateY(-3px); }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; margin-bottom: 6px; }
.service p { color: var(--text-soft); max-width: 52ch; }
@media (max-width: 860px) {
    .services__grid { grid-template-columns: 1fr; }
    .services__aside { position: static; }
    .service { grid-template-columns: 44px 1fr; gap: 16px; }
    .service__icon { width: 40px; height: 40px; }
}

/* ---------- L'artisan ---------- */
.artisan { background: var(--pierre-2); padding: clamp(72px, 11vw, 136px) 0; }
.artisan__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.artisan__photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(6 42 51 / 0.55); }
.artisan__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.artisan__photo figcaption {
    font-size: 0.78rem; color: var(--text-soft);
}
.artisan__photo figcaption { position: absolute; right: 10px; bottom: 10px; background: rgb(239 233 223 / 0.88); padding: 2px 8px; border-radius: 6px; }
.artisan__text { display: grid; gap: 20px; }
.artisan__text h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
.artisan__lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 500; line-height: 1.45; }
.artisan__text > p:not(.artisan__lead):not(.signature) { color: var(--text-soft); max-width: 60ch; }
.pledges { display: grid; gap: 12px; margin-top: 4px; }
.pledges li { position: relative; padding-left: 30px; color: var(--text-soft); }
.pledges li::before {
    content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--bassin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pledges strong { color: var(--abyss); font-weight: 600; }
.signature { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-top: 8px; display: grid; }
.signature span { font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--text-soft); }
@media (max-width: 860px) {
    .artisan__grid { grid-template-columns: 1fr; }
    .artisan__photo { max-width: 460px; }
    .artisan__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Avis : plein soleil ---------- */
.reviews { background: var(--ocre); color: var(--abyss); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.reviews::before {
    content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -24vmax; top: -40vmax; border-radius: 50%;
    background: radial-gradient(circle, rgb(255 214 140 / 0.65), transparent 62%);
    pointer-events: none;
}
.reviews__grid { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.reviews__score { display: grid; justify-items: start; gap: 10px; }
.score { font-family: var(--font-display); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; display: flex; align-items: baseline; font-variation-settings: "opsz" 96; }
.score span { font-size: clamp(6rem, 14vw, 11rem); }
.score small { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin-left: 6px; }
.reviews__score .stars { --size: 30px; color: var(--abyss); }
.score__src { font-size: 0.92rem; font-weight: 500; }
.reviews__text { display: grid; gap: 18px; }
.reviews__text h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
.reviews__text p { font-size: 1.12rem; max-width: 56ch; color: #2a2a1e; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 6px; }
@media (max-width: 760px) { .reviews__grid { grid-template-columns: 1fr; } }
.quotes { position: relative; columns: 3 300px; column-gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.quotes li { break-inside: avoid; margin-bottom: 20px; }
.quote {
    margin: 0; display: grid; gap: 12px; padding: 24px 26px; border-radius: var(--radius);
    background: var(--pierre); color: var(--abyss); box-shadow: 0 18px 40px -28px rgb(6 42 51 / 0.6);
}
.quote .stars--sm { color: var(--ocre-2); }
.quote p { font-size: 1rem; line-height: 1.55; }
.quote footer { font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }

/* ---------- Sur le terrain ---------- */
.field { background: var(--pierre); padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.field__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; margin-bottom: 40px; }
.field__head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; grid-column: 1; }
.field__head p { grid-column: 1; color: var(--text-soft); font-size: 1.1rem; }
.field__links { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; }
.social {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
    border: 1.5px solid rgb(6 42 51 / 0.25); text-decoration: none; font-weight: 600;
    transition: background-color 160ms, border-color 160ms, color 160ms;
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.social:hover { background: var(--abyss); color: var(--pierre); border-color: var(--abyss); }
.carousel__track {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
    padding: 4px var(--edge) 12px;
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--bassin); outline-offset: 4px; }
.carousel__item { flex: 0 0 clamp(240px, 24vw, 320px); scroll-snap-align: start; }
.carousel__item figure { margin: 0; }
.carousel__item picture { display: block; border-radius: var(--radius); overflow: hidden; background: var(--pierre-2); }
.carousel__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 900ms var(--ease-out); }
.carousel__item figure:hover img { transform: scale(1.04); }
.carousel__item figcaption { margin-top: 12px; color: var(--text-soft); font-size: 0.95rem; line-height: 1.45; }
.carousel__item figcaption span {
    display: block; margin-bottom: 2px; color: var(--bassin); font-weight: 700;
    font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.carousel__btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid rgb(6 42 51 / 0.25); background: transparent; color: var(--abyss); cursor: pointer;
    transition: background-color 160ms, border-color 160ms, color 160ms, opacity 160ms;
}
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn:hover:not(:disabled) { background: var(--abyss); color: var(--pierre); border-color: var(--abyss); }
.carousel__btn:focus-visible { outline: 3px solid var(--bassin); outline-offset: 2px; }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
html:not(.js) .carousel__nav { display: none; }
@media (max-width: 760px) {
    .field__head { grid-template-columns: 1fr; }
    .field__links { grid-column: 1; grid-row: auto; }
    .carousel__item { flex-basis: 78%; }
}

/* ---------- Contact ---------- */
.contact { background: var(--abyss); color: var(--on-water); padding: clamp(72px, 11vw, 136px) 0; position: relative; overflow: hidden; }
.contact::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
    background: url("../img/caustiques.svg") 0 0 / 640px 640px repeat;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 20px; }
.contact__info h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--white); }
.contact__info > p { color: var(--on-water-soft); font-size: 1.12rem; max-width: 46ch; }
.contact__list { display: grid; gap: 18px; margin-top: 12px; }
.contact__list li { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid rgb(232 246 247 / 0.14); }
.contact__label { font-size: 0.82rem; color: var(--on-water-soft); }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--lagon); text-decoration: underline; }
.contact__big { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--white); font-variant-numeric: tabular-nums; }

.form {
    background: var(--pierre); color: var(--abyss); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px);
    display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
}
.form__title { font-size: 1.6rem; font-weight: 800; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-input { display: grid; gap: 6px; }
.field-input label { font-size: 0.92rem; font-weight: 600; }
.field-input input, .field-input select, .field-input textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--abyss);
    background: var(--white); border: 1.5px solid #c9c0b0; border-radius: 10px; padding: 12px 14px; min-height: 50px;
    caret-color: var(--bassin);
    transition: border-color 160ms, box-shadow 160ms;
}
.field-input textarea { resize: vertical; min-height: 120px; }
.field-input select {
    appearance: none; padding-right: 40px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6a7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field-input ::placeholder { color: #5f6e70; }
.field-input input:hover, .field-input select:hover, .field-input textarea:hover { border-color: #a99f8c; }
.field-input input:focus-visible, .field-input select:focus-visible, .field-input textarea:focus-visible {
    outline: none; border-color: var(--bassin); box-shadow: 0 0 0 4px rgb(11 106 122 / 0.18);
}
.field-input__err { display: none; font-size: 0.86rem; color: #a3341f; }
.field-input.is-invalid input { border-color: #a3341f; }
.field-input.is-invalid .field-input__err { display: block; }
.form__hint { font-size: 0.88rem; color: var(--text-soft); }
.form__hint.is-done { color: var(--bassin); font-weight: 600; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: #041f26; color: var(--on-water-soft); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; padding-block: 44px 40px; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand p:last-child { font-size: 0.92rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { text-decoration: none; font-size: 0.95rem; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; font-size: 0.84rem; padding-top: 20px; border-top: 1px solid rgb(232 246 247 / 0.1); }
@media (max-width: 680px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
    body { padding-bottom: 76px; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        position: fixed; inset: auto 0 0; z-index: 40;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgb(6 42 51 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        transform: translateY(110%); transition: transform 380ms var(--ease-out);
    }
    .mobile-bar.is-visible { transform: none; }
    .mobile-bar a {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px;
        font-weight: 600; text-decoration: none;
    }
    .mobile-bar__call { background: var(--ocre); color: var(--abyss); }
    .mobile-bar__quote { color: var(--on-water); border: 1.5px solid rgb(232 246 247 / 0.5); }
    .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .caustics span, .water-surface svg, .frieze::after { animation: none; }
    *, *::before, *::after { transition-duration: 1ms !important; }
}
