/* Ventura Piscines, page d'accueil.
   Calme, beaucoup d'espace, de grandes photos. Jost pour les titres et les actions, Source Serif 4 pour les textes.
   Un fond, une encre, un accent. Angles droits partout. */

@font-face { font-family: "Jost"; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Fond noir (version claire : bg #f3f2ef, surface #e6e4df, ink #1d1f23, muted #5d6168, accent #3f6f6c) */
  color-scheme: dark;
  --bg: #0e0f11;
  --surface: #17191c;
  --ink: #ecebe7;
  --muted: #9a9ea5;
  --accent: #8fbdb8;
  --accent-ink: #0e0f11;
  --field: #17191c;
  --field-ink: #ecebe7;
  --field-muted: #9a9ea5;
  --scrim: rgba(29, 31, 35, 0.8);

  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-small: 0.9375rem;                                  /* 15px */
  --step-body: 1.125rem;                                    /* 18px */
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);   /* 22 a 30px */
  --step-head: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);         /* 32 a 56px */

  --margin: clamp(1.25rem, 5vw, 5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 9vw, 8.5rem);
  --header: 5.5rem;
  --radius: 999px;
  --round: 1.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-reveal: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--field-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; hyphens: none; }
p { max-width: 52ch; text-wrap: pretty; }
strong { font-weight: 600; }
.small { font-size: var(--step-small); line-height: 1.5; }
.soft { color: var(--muted); }
.head { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.4; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.98); }
.button--small { min-height: 2.75rem; padding: 0 1.25rem; font-size: var(--step-small); }
.button--large { min-height: 3.75rem; padding: 0 2.25rem; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--ink); } }

/* ---------------------------------------------------------------- En-tête */

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 0.25rem; min-height: var(--header); padding: 0.6rem var(--margin); background: var(--bg); }
.top__brand { display: contents; }
.top__tag { order: 3; flex: 1 0 100%; max-width: none; font-family: var(--font-display); font-weight: 300; font-size: 1.0625rem; line-height: 1.3; color: var(--muted); }
.top__mark { order: 1; }
.top__nav { order: 2; }
@media (min-width: 48em) {
  .top { flex-wrap: nowrap; }
  .top__brand { display: grid; gap: 0.15rem; }
  .top__tag { font-size: 1.2rem; }
}
@media (min-width: 80em) {
  :root { --header: 5.5rem; }
  .top__brand { display: flex; align-items: center; gap: 1.25rem; }
  .top__tag { padding-left: 1.25rem; border-left: 1px solid var(--muted); line-height: 1.9; /* taste-skill-ignore : barre de la charte des devis, voulue par le client */ }
}
.top__mark { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); }
.top__name { font-weight: 500; font-size: 1.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.top__sub { font-weight: 300; font-size: 1.8rem; letter-spacing: 0.02em; }
.top__nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.5rem); font-family: var(--font-display); font-weight: 400; font-size: var(--step-small); }
.top__link { display: none; }
@media (min-width: 48em) { .top__link { display: inline; } }
@media (max-width: 47.99em) {
  .top__name, .top__sub { font-size: 1.4rem; }
  .top .button--small { padding: 0 1rem; }
  .top__mark { gap: 0.4rem; }
  .top__name { letter-spacing: 0.1em; }
}

/* ---------------------------------------------------------------- Accueil */

.hero { position: relative; height: clamp(27.5rem, 60svh, 42.5rem); margin: 0 var(--gutter); overflow: hidden; background: var(--surface); border-radius: var(--round); }
.hero__pic, .hero__pic img { width: 100%; height: 100%; }
.hero__pic { position: relative; overflow: hidden; }
.hero__pic img { object-fit: cover; object-position: 50% 62%; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.hero__slide.is-on { opacity: 1; }
.hero__cap { position: absolute; z-index: 2; left: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); width: fit-content; max-width: 19em; margin: 0; padding: 1.25rem 1.75rem; border-radius: 1.5rem; color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(3px) saturate(1.8) brightness(0.92); backdrop-filter: blur(3px) saturate(1.8) brightness(0.92); box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.12), inset 0 -9px 14px -7px rgba(255, 255, 255, 0.5), inset 0 7px 12px -8px rgba(255, 255, 255, 0.3), 0 10px 34px rgba(20, 30, 60, 0.16); /* taste-skill-ignore : cadre en verre voulu par le client, une seule occurrence */ }
@media (max-width: 47.99em) {
  .hero__pic img { object-position: 50% 50%; }
  .hero { height: clamp(20rem, 46svh, 26rem); }
  .hero__cap { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; max-width: none; padding: 1rem 1.25rem; border-radius: 1.25rem; font-size: 1.5rem; }
}

/* ---------------------------------------------------------------- Présentation */

.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; padding: var(--section) var(--margin) 0; }
.intro h2 { grid-column: 2 / 10; max-width: 16ch; }
.intro p { grid-column: 2 / 9; }
.intro .intro__more { font-size: var(--step-body); max-width: 46ch; }
@media (max-width: 47.99em) { .intro h2, .intro p { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Réalisations en quinconce */

.rows { display: grid; row-gap: var(--section); padding: var(--section) var(--margin) 0; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.row figure { min-width: 0; }
.row img { width: 100%; border-radius: var(--round); }
.row__text { min-width: 0; display: grid; gap: 1.25rem; align-content: center; }
.head--row { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem); line-height: 1.1; }

.row--1 figure { grid-column: 1 / 9; }
.row--1 .row__text { grid-column: 10 / 13; }
.row--2 .row__text { grid-column: 2 / 6; grid-row: 1; }
.row--2 figure { grid-column: 7 / 13; grid-row: 1; }
.row--3 figure { grid-column: 2 / 9; }
.row--3 .row__text { grid-column: 10 / 13; }

@media (max-width: 63.99em) {
  .rows { row-gap: 4.5rem; }
  .row { row-gap: 1.5rem; }
  .row figure, .row__text { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .row--2 figure,   .row--3 figure { width: 92%; }
  .row__text { max-width: 36rem; }
  .row--2 .row__text, }

/* ---------------------------------------------------------------- Page réalisations */

.more { padding: 4.5rem var(--margin) 0; display: flex; justify-content: center; }
.gal-head { display: grid; gap: 1.5rem; padding: calc(var(--section) * 0.6) var(--margin) 0; max-width: 60rem; margin-left: clamp(0rem, 8vw, 8rem); }
.gal-head h1 { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.02em; }
.gal-lead { padding: 2.5rem var(--margin) 0; }
.gal-lead img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--round); display: block; }
@media (max-width: 47.99em) { .gal-lead img { aspect-ratio: 4 / 3; } }
.gal { columns: 3 22rem; column-gap: clamp(1rem, 2vw, 2rem); padding: 4rem var(--margin) 0; }
.gal figure { break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 2rem); }
.gal img { width: 100%; height: auto; display: block; border-radius: var(--round); }
@media (max-width: 47.99em) { .gal { columns: 1; } .gal-head { margin-left: 0; } }

/* ---------------------------------------------------------------- Méthode */

.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; padding: var(--section) var(--margin) 0; }
.how h2 { grid-column: 2 / 6; align-self: start; max-width: 10ch; }
.steps { grid-column: 7 / 13; display: grid; gap: 2.25rem; }
.steps li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: var(--gutter); align-items: baseline; }
.steps strong { font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); }
.steps span { color: var(--ink); max-width: 40ch; }
@media (max-width: 63.99em) {
  .how h2, .steps { grid-column: 1 / -1; }
  .how h2 { max-width: none; }
  .steps { max-width: 40rem; }
}
@media (max-width: 47.99em) {
  .steps li { grid-template-columns: 1fr; row-gap: 0.25rem; }
}

/* ---------------------------------------------------------------- Garanties */

.proof { display: grid; gap: 3rem; padding: var(--section) var(--margin) 0; }
.proof h2 { margin-left: clamp(0rem, 8vw, 8rem); }
.proof__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.proof__list li { display: grid; gap: 0.6rem; align-content: start; }
.proof__list img { width: auto; height: 9rem; border-radius: 1rem; margin-bottom: 0.9rem; justify-self: start; }
.proof__list strong { font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); }
.proof__list span { max-width: 32ch; }
@media (max-width: 47.99em) { .proof__list { grid-template-columns: 1fr; gap: 2.5rem; } .proof h2 { margin-left: 0; } }

/* ---------------------------------------------------------------- Contact */

.start { margin-top: var(--section); background: var(--surface); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.start__text { grid-column: 2 / 7; align-content: start; max-width: 22ch; }
.start__note { color: var(--muted); font-family: var(--font-display); font-size: var(--step-small); }
.start__tel { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; }
.start__act { grid-column: 8 / 13; display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.pick { border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pick__legend { flex: 0 0 100%; margin-bottom: 0.75rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); padding: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: var(--step-body); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip input:checked + span { background: var(--ink); color: var(--field-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.chip:active span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { background: var(--chip-hover); } }
@media (max-width: 63.99em) {
  .start__text, .start__act { grid-column: 1 / -1; }
}
@media (max-width: 47.99em) {
  .button--large { width: 100%; }
}

/* ---------------------------------------------------------------- Pied de page */

.foot { border-top: 1px solid rgba(255, 255, 255, 0.08); /* taste-skill-ignore : filet de separation sur fond noir */ background: var(--field); color: var(--field-ink); padding: clamp(3rem, 6vw, 5rem) var(--margin) 1.5rem; }
.foot__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; font-family: var(--font-display); }
.foot__cols div { display: grid; gap: 0.25rem; align-content: start; color: var(--field-muted); overflow-wrap: anywhere; }
.foot__cols div:nth-child(1) { grid-column: 1 / 5; }
.foot__cols div:nth-child(2) { grid-column: 6 / 9; }
.foot__cols div:nth-child(3) { grid-column: 9 / 13; }
.foot__cols strong { color: var(--field-ink); font-weight: 500; }
.foot__legal { margin-top: clamp(3rem, 6vw, 5rem); color: var(--field-muted); font-family: var(--font-display); max-width: none; }
@media (max-width: 47.99em) {
  .foot__cols div:nth-child(n) { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Mouvement (le contenu reste visible sans script) */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__pic { clip-path: inset(0 0 100% 0); animation: shutter 1200ms var(--ease-in-out) 150ms forwards; }
  .js .hero__pic img { transform: scale(1.12); animation: settle 1700ms var(--ease-out) 150ms forwards; }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 700ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes shutter { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* Mentions légales */
.legal { display: grid; gap: 2.75rem; padding: 3rem var(--margin) var(--section); max-width: 60rem; margin-left: clamp(0rem, 8vw, 8rem); }
.legal__block { display: grid; gap: 0.75rem; }
.legal__block h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-lead); line-height: 1.2; }
.legal__block p { max-width: 62ch; }
@media (max-width: 47.99em) { .legal { margin-left: 0; } }
@media (min-width: 64em) { .hero__cap { max-width: 12.5em; } }

/* Reflet de bord du verre : fin liseré lumineux, fort en haut à gauche et en bas à droite, presque absent ailleurs */
.hero__cap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.05) 62%, rgba(255, 255, 255, 0.75)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; /* taste-skill-ignore : reflet de bord du cadre en verre */ }
@media (min-width: 64em) { .hero__cap { left: 0; right: 0; margin-inline: auto; max-width: none; white-space: nowrap; text-align: center; padding: 1.1rem 2.5rem; font-size: clamp(1.75rem, 1rem + 1.4vw, 2.4rem); } }

.has-lens .hero__cap { -webkit-backdrop-filter: url(#lens) blur(2px) saturate(1.8) brightness(0.92); backdrop-filter: url(#lens) blur(2px) saturate(1.8) brightness(0.92); /* taste-skill-ignore : cadre en verre voulu par le client */ }

/* Instagram */
.insta { display: grid; gap: 2rem; padding: var(--section) var(--margin) 0; }
.insta[hidden] { display: none; }
.insta h2 { margin-left: clamp(0rem, 8vw, 8rem); }
.insta__list { display: grid; grid-template-columns: repeat(3, minmax(0, 23rem)); justify-content: start; margin-left: clamp(0rem, 8vw, 8rem); gap: clamp(1rem, 2.5vw, 2rem); }
.insta__item a { display: grid; gap: 0.9rem; color: inherit; text-decoration: none; }
.insta__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--round); display: block; transition: transform 500ms var(--ease-out); }
.insta__item a:hover img { transform: scale(1.015); }
.insta__date { font-family: var(--font-display); font-size: var(--step-small); color: var(--muted); }
.insta__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 36ch; }
.insta__more { display: flex; justify-content: center; max-width: none; }
@media (max-width: 47.99em) { .insta__list { grid-template-columns: minmax(0, 18rem); margin-left: 0; gap: 2.5rem; } .insta h2 { margin-left: 0; } }

/* Surtitre blanc centré en haut de la photo, avec un voile neutre pour rester lisible */
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 48%; background: linear-gradient(to bottom, rgba(12, 16, 20, 0.62), rgba(12, 16, 20, 0)); pointer-events: none; z-index: 1; /* taste-skill-ignore : voile neutre sur photo pour la lisibilité du surtitre */ }
.hero__kicker { position: absolute; z-index: 2; top: clamp(1.1rem, 2.4vw, 1.9rem); left: 0; right: 0; margin: 0; max-width: none; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.1rem); letter-spacing: 0.24em; text-transform: uppercase; }
