/* iPoolGo France - feuille de style unique, sans dépendance. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #fff;
  --lagon: #005f73;
  --lagon-clair: #0a9396;
  --encre: #0b2a33;
  --encre-douce: #48626a;
  --eau: #eef7f7;
  --trait: #c9dfdf;
  --sable: #f8f0dc;
  --sable-fonce: #e9d8a6;
  --ambre: #7a5a00;
  --corail: #d0432a;
  --corail-fonce: #ae3520;
  --erreur: #b3261e;

  --titre: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rayon: 24px;
  --rayon-moyen: 14px;
  --rayon-petit: 8px;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
  --espace-section: clamp(4rem, 9vw, 7.5rem);
  --ombre: 0 18px 40px -22px rgb(0 95 115 / 45%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 56rem) {
  html {
    scroll-padding-top: 5.5rem;
  }
}

/* Le bandeau cookies ne doit pas masquer l'élément qui reçoit le focus. */
html:has(.cookies:not([hidden])) {
  scroll-padding-bottom: 12.5rem;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--lagon);
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.35rem + 4vw, 4.1rem);
  font-weight: 800;
  line-height: 1;
}

h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.85rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.2;
}

p,
ul,
ol,
dl,
figure,
table {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--lagon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid var(--lagon-clair);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--lagon);
  color: var(--blanc);
  border-radius: var(--rayon-petit);
  transform: translateY(-200%);
}

.evitement:focus {
  transform: none;
}

.conteneur {
  width: min(100% - 2 * var(--marge), 74rem);
  margin-inline: auto;
}

.conteneur--etroit {
  width: min(100% - 2 * var(--marge), 46rem);
}

.section {
  padding-block: var(--espace-section);
}

.section--eau {
  background: var(--eau);
}

.section--finale {
  padding-top: 0;
}

.section--lagon {
  background: var(--lagon);
  color: var(--blanc);
}

.section--lagon .duo {
  align-items: start;
}

.section--lagon h2,
.section--lagon h3 {
  color: var(--blanc);
}

.section__tete {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__tete p {
  margin-top: 1rem;
  color: var(--encre-douce);
  font-size: 1.15rem;
}

.section--lagon .section__tete p {
  color: #d6eeee;
}

.chapo {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
}

/* ------------------------------------------------------------ boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--rayon-moyen);
  background: var(--corail);
  color: var(--blanc);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.bouton:hover {
  background: var(--corail-fonce);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton[disabled] {
  background: #c5d2d4;
  color: #3b4f55;
  cursor: not-allowed;
}

.bouton--contour {
  border-color: var(--lagon);
  background: transparent;
  color: var(--lagon);
}

.bouton--contour:hover {
  background: var(--lagon);
  color: var(--blanc);
}

.bouton--petit {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.975rem;
}

.bouton--large {
  width: 100%;
}

@media (min-width: 36rem) {
  .hero__actions .bouton--large {
    width: auto;
    padding-inline: 2.25rem;
  }
}

.lien-fleche {
  display: inline-block;
  padding-block: 0.65rem;
  font-weight: 650;
}

/* ------------------------------------------------------------ en-tête */

.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-block: 0.75rem;
}

.marque {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.6rem;
  color: var(--lagon);
  font-family: var(--titre);
  font-weight: 700;
  text-decoration: none;
}

.marque img {
  width: clamp(104px, 30vw, 132px);
  height: auto;
  align-self: center;
}

@media (max-width: 22.5rem) {
  .marque span {
    display: none;
  }
}

.menu {
  order: 3;
  flex: 1 0 100%;
  margin-inline: calc(-1 * var(--marge));
  overflow-x: auto;
  scrollbar-width: none;
}

.menu ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0 calc(var(--marge) - 0.6rem);
  list-style: none;
  white-space: nowrap;
}

.menu a {
  display: block;
  padding: 0.55rem 0.6rem;
  color: var(--encre);
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--rayon-petit);
}

/* Sur mobile, le menu défile : le fondu à droite signale les liens masqués. */
@media (max-width: 55.99rem) {
  .menu {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  }

  .menu ul {
    width: max-content;
    padding-right: 3rem;
  }
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--lagon);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

@media (min-width: 56rem) {
  .entete {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .menu {
    order: 0;
    flex: 0 1 auto;
    margin-inline: auto 0;
    overflow: visible;
  }

  .menu ul {
    gap: 0.5rem;
    padding: 0;
  }
}

/* ------------------------------------------------------------ accueil : ouverture */

.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero__grille {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__texte .chapo {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--encre-douce);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.hero__preuve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 1.75rem;
  color: var(--encre-douce);
  font-size: 0.975rem;
}

.hero__visuel {
  position: relative;
}

.hero__visuel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--rayon);
}

.offre {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  align-items: center;
  max-width: 25rem;
  margin: -2.5rem 1rem 0;
  padding: 1.1rem 1.25rem;
  position: relative;
  background: var(--sable);
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon-moyen);
  box-shadow: var(--ombre);
}

.offre__valeur {
  grid-row: span 2;
  color: var(--lagon);
  font-family: var(--titre);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.offre__titre {
  color: var(--encre);
  font-weight: 700;
  line-height: 1.25;
}

.offre__detail {
  color: var(--ambre);
  font-size: 0.925rem;
  line-height: 1.35;
}

@media (min-width: 60rem) {
  .hero__grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .hero__visuel {
    margin-right: calc(-1 * clamp(0rem, (100vw - 74rem) / 2, 6rem));
  }

  .offre {
    position: absolute;
    left: -2.5rem;
    bottom: -1.75rem;
    margin: 0;
  }
}

.etoiles {
  display: inline-block;
  flex: none;
  width: 5.5em;
  height: 1.1em;
  fill: #b7791f;
  vertical-align: -0.15em;
}

/* ------------------------------------------------------------ atouts */

.atouts {
  border-block: 1px solid var(--trait);
}

.atouts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin: 0;
  padding: 1.75rem 0;
  list-style: none;
}

.atouts li {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--encre-douce);
}

.atouts strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--encre);
  font-family: var(--titre);
  font-size: 1.075rem;
  font-weight: 700;
}

@media (min-width: 56rem) {
  .atouts ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .atouts li + li {
    padding-left: 2rem;
    border-left: 1px solid var(--trait);
  }
}

/* ------------------------------------------------------------ modèles */

.modeles {
  display: grid;
  gap: 1.5rem;
}

.modele {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
}

.modele__image {
  background: #f1f1ef;
}

.modele__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.modele__corps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.modele__corps p {
  color: var(--encre-douce);
}

.modele__prix {
  color: var(--encre);
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 700;
}

.modele__prix small {
  color: var(--encre-douce);
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 400;
}

.modele__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.pastille {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  background: var(--sable);
  border: 1px solid var(--sable-fonce);
  border-radius: 999px;
  color: var(--ambre);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
}

@media (min-width: 48rem) {
  .modeles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ technologie */

.duo {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.schema {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--blanc);
  border-radius: var(--rayon);
}

.schema figcaption,
.plan figcaption {
  margin-top: 0.75rem;
  color: var(--encre-douce);
  font-size: 0.9rem;
}

.schema svg {
  width: 100%;
}

.schema text {
  font-family: var(--texte);
  font-size: 17px;
  fill: var(--encre);
  text-anchor: middle;
}

.schema__eau {
  fill: #bfe6e4;
}

.schema__vague {
  fill: none;
  stroke: var(--lagon-clair);
  stroke-width: 3;
}

.schema__sol {
  fill: #dfe9d2;
}

.schema__air {
  fill: #f7fbfb;
}

.schema__fils {
  fill: none;
  stroke: var(--lagon-clair);
  stroke-width: 1.5;
}

.schema__pvc {
  fill: none;
  stroke: #2f3c40;
  stroke-width: 9;
}

.schema__trait {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.5;
}

.schema__repere circle {
  fill: var(--lagon);
}

.schema .schema__repere text {
  fill: var(--blanc);
  font-family: var(--titre);
  font-weight: 700;
}

.schema .schema__mot {
  fill: var(--encre-douce);
}

.schema__legende {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.4rem;
  color: var(--encre);
  font-size: 0.95rem;
}

.schema__legende li::marker {
  color: var(--lagon);
  font-weight: 700;
}

.liste-faits {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.liste-faits li {
  padding-left: 1.6rem;
  position: relative;
}

.liste-faits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border: 3px solid var(--lagon-clair);
  border-radius: 50%;
}

/* ------------------------------------------------------------ tableaux */

.tableau-defile {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-moyen);
  background: var(--blanc);
}

.tableau {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.975rem;
  line-height: 1.45;
}

.tableau th,
.tableau td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}

.tableau tbody tr:last-child > * {
  border-bottom: 0;
}

.tableau thead th {
  background: var(--eau);
  color: var(--lagon);
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
}

.tableau tbody th {
  color: var(--encre);
  font-weight: 650;
}

.tableau .tableau__fort {
  background: #f3fbfa;
  box-shadow: inset 3px 0 0 var(--lagon-clair);
}

.tableau__prix {
  white-space: nowrap;
}

.tableau__prix a {
  margin-left: 0.75rem;
  font-weight: 650;
}

.tableau--fiche {
  min-width: 0;
}

.tableau--fiche th {
  width: 38%;
}

.tableau-note {
  max-width: 68ch;
  margin-top: 0.9rem;
  color: var(--encre-douce);
  font-size: 0.925rem;
}

/* ------------------------------------------------------------ contenu du colis */

.colis {
  display: grid;
  gap: 1.25rem;
}

.colis__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-moyen);
}

.colis__item--offert {
  background: var(--sable);
  border-color: var(--sable-fonce);
}

.colis__item img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  background: var(--blanc);
  border-radius: var(--rayon-petit);
}

.colis__item p {
  margin-top: 0.3rem;
  color: var(--encre-douce);
  font-size: 0.975rem;
  line-height: 1.45;
}

.colis__prix {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--ambre);
  font-weight: 700;
}

.colis__prix s {
  margin-right: 0.4rem;
  color: var(--encre-douce);
  font-weight: 400;
}

@media (min-width: 56rem) {
  .colis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .colis__item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .colis__item img {
    width: 100%;
    height: 11rem;
  }
}

/* ------------------------------------------------------------ étapes */

.etapes {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  grid-row: span 2;
  background: var(--blanc);
  border: 2px solid var(--blanc);
  border-radius: 50%;
  color: var(--lagon);
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 800;
  z-index: 1;
}

.etapes li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: rgb(255 255 255 / 35%);
}

.etapes h3 {
  align-self: end;
  font-size: 1.2rem;
}

.etapes p {
  grid-column: 2;
  margin-top: 0.3rem;
  color: #d6eeee;
}

.etapes .duree {
  color: var(--sable-fonce);
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ------------------------------------------------------------ avis */

.note-globale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.note-globale__valeur {
  color: var(--lagon);
  font-family: var(--titre);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.note-globale .etoiles {
  font-size: 1.35rem;
}

.avis-liste {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .avis-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .avis-liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.avis {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.4rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-moyen);
}

.avis blockquote {
  margin: 0;
  line-height: 1.5;
}

.avis footer {
  margin-top: auto;
  color: var(--encre-douce);
  font-size: 0.925rem;
}

.avis footer strong {
  color: var(--encre);
  text-transform: capitalize;
}

/* ------------------------------------------------------------ configurateur */

.commande {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .commande {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  /* Plus haut que la plupart des écrans : il se cale sur le bas de la fenêtre,
     pour que le total reste visible pendant la saisie. */
  .commande__recap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    position: sticky;
    bottom: 1rem;
  }

  .commande__client {
    grid-column: 1;
  }
}

@media (min-width: 62rem) and (min-height: 60rem) {
  .commande__recap {
    align-self: start;
    top: 5.5rem;
    bottom: auto;
  }
}

.bloc {
  min-width: 0;
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
}

.bloc > legend {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  color: var(--lagon);
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.choix-modele {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.choix {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  position: relative;
  background: var(--blanc);
  border: 2px solid var(--trait);
  border-radius: var(--rayon-moyen);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choix img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border-radius: var(--rayon-petit);
  background: #f1f1ef;
}

.choix input,
.taille input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choix__nom {
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 700;
}

.choix__info {
  color: var(--encre-douce);
  font-size: 0.925rem;
}

.choix:hover,
.taille:hover {
  border-color: var(--lagon-clair);
}

.choix:has(input:checked),
.taille:has(input:checked) {
  background: #f3fbfa;
  border-color: var(--lagon);
  box-shadow: inset 0 0 0 1px var(--lagon);
}

/* Le choix retenu se lit aussi sans la couleur. */
.choix:has(input:checked) .choix__nom::before,
.taille:has(input:checked) .taille__nom::before {
  content: "";
  display: inline-block;
  width: 0.34em;
  height: 0.62em;
  margin: 0 0.5em 0.08em 0.15em;
  border: solid var(--lagon);
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}

.choix:has(input:focus-visible),
.taille:has(input:focus-visible) {
  outline: 3px solid var(--lagon-clair);
  outline-offset: 3px;
}

.tailles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.6rem;
}

.taille {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  position: relative;
  background: var(--blanc);
  border: 2px solid var(--trait);
  border-radius: var(--rayon-moyen);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.taille__nom {
  font-weight: 650;
}

.taille__info {
  grid-row: 2;
  color: var(--encre-douce);
  font-size: 0.875rem;
  line-height: 1.35;
}

.taille__prix {
  grid-row: span 2;
  font-family: var(--titre);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.champs {
  display: grid;
  gap: 1rem;
}

@media (min-width: 36rem) {
  .champs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .champ {
    grid-column: span 6;
  }

  .champ--moitie {
    grid-column: span 3;
  }

  .champ--tiers {
    grid-column: span 2;
  }

  .champ--deux-tiers {
    grid-column: span 4;
  }
}

.champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.champ input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  background: var(--blanc);
  border: 1.5px solid #6f8d93;
  border-radius: var(--rayon-petit);
  color: var(--encre);
  font: inherit;
}

.champ input:focus-visible {
  outline-offset: 1px;
  border-color: var(--lagon);
}

.champ input[aria-invalid="true"] {
  border-color: var(--erreur);
  box-shadow: inset 0 0 0 1px var(--erreur);
}

.champ__aide {
  display: block;
  margin-top: 0.3rem;
  color: var(--encre-douce);
  font-size: 0.875rem;
}

.champ__erreur {
  margin-top: 0.3rem;
  color: var(--erreur);
  font-size: 0.925rem;
  font-weight: 550;
}

.champ--piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consentement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--eau);
  border-radius: var(--rayon-moyen);
}

.consentement input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--lagon);
}

.consentement label {
  font-weight: 600;
}

.note-donnees {
  max-width: 68ch;
  margin-top: 0.9rem;
  color: var(--encre-douce);
  font-size: 0.9rem;
  line-height: 1.5;
}

.paiement {
  margin-top: 1.5rem;
}

.paiement__aide {
  margin-top: 0.75rem;
  color: var(--encre-douce);
  font-size: 0.925rem;
  text-align: center;
}

.moyens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.moyen {
  display: block;
  width: 3.25rem;
  height: 2.125rem;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 6px;
}

.moyen--nu {
  width: 3.4rem;
  border: 0;
  background: none;
}

.moyens__3ds {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.125rem;
  padding-inline: 0.65rem;
  color: var(--lagon);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 6px;
}

.icone {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.securite {
  display: grid;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  color: var(--encre-douce);
  font-size: 0.9rem;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-petit);
}

.securite li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.securite .icone {
  margin-top: 0.15rem;
  color: var(--lagon);
}

.commande-page {
  padding-top: 0;
}

.commande-page .fil {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.commande-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.message {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--rayon-petit);
  font-weight: 550;
}

.message--erreur {
  background: #fdeceb;
  color: #8c1d18;
}

.message--info {
  background: var(--eau);
  color: var(--encre);
}

.recap {
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.recap__titre {
  font-size: 1.35rem;
}

.recap__sous-titre {
  margin-top: 0.2rem;
  color: var(--encre-douce);
}

.plan {
  margin: 1rem 0 1.25rem;
}

.plan__svg {
  width: 100%;
  background: var(--eau);
  border-radius: var(--rayon-moyen);
}

.plan__grille {
  fill: none;
  stroke: #cfe3e3;
  stroke-width: 1;
}

.plan__paroi {
  fill: #2f3c40;
}

.plan__eau {
  fill: #1fa3a0;
}

.plan__nageur {
  fill: #fdf6e3;
}

.plan__cote {
  fill: none;
  stroke: var(--lagon);
  stroke-width: 2;
}

.plan__texte {
  fill: var(--lagon);
  font-family: var(--titre);
  font-size: 30px;
  font-weight: 700;
  text-anchor: middle;
}

.plan__forme > * {
  transition: x 0.35s ease, y 0.35s ease, width 0.35s ease, height 0.35s ease, rx 0.35s ease;
}

.recap__lignes {
  display: grid;
  gap: 0;
}

.recap__lignes > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--trait);
}

.recap__lignes dt {
  color: var(--encre-douce);
}

.recap__lignes dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.recap__lignes .recap__offert dd {
  color: var(--ambre);
}

.recap__lignes .recap__offert s {
  margin-right: 0.35rem;
  color: var(--encre-douce);
  font-weight: 400;
}

.recap__lignes .recap__total {
  padding-top: 0.9rem;
  border-bottom: 0;
  font-family: var(--titre);
  font-size: 1.45rem;
  font-weight: 800;
}

.recap__lignes .recap__total dt,
.recap__lignes .recap__total dd {
  color: var(--encre);
  font-weight: 800;
}

.recap__note {
  margin-top: 0.75rem;
  color: var(--encre-douce);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------ FAQ */

.faq {
  border-top: 1px solid var(--trait);
}

.faq__item {
  border-bottom: 1px solid var(--trait);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--encre);
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--lagon-clair);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item > :not(summary) {
  max-width: 44rem;
  padding-bottom: 1.25rem;
  color: var(--encre-douce);
}

.faq__item > :not(summary) + :not(summary) {
  margin-top: -0.5rem;
}

/* ------------------------------------------------------------ appel final */

.appel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--sable);
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon);
}

.appel p {
  margin-top: 0.6rem;
  color: #5b4a12;
}

@media (min-width: 52rem) {
  .appel {
    grid-template-columns: 1fr auto;
  }
}

/* ------------------------------------------------------------ pied de page */

.pied {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: #043d4a;
  color: #cfe6e8;
  font-size: 0.975rem;
}

.pied a,
.pied button {
  color: var(--blanc);
}

.pied__grille {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 52rem) {
  .pied__grille {
    grid-template-columns: 5fr 3fr 3fr 4fr;
  }
}

.pied__marque {
  color: var(--blanc);
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 700;
}

.pied__titre {
  margin-bottom: 0.8rem;
  color: var(--blanc);
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pied ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied li a,
.pied li button {
  display: inline-block;
  padding-block: 0.45rem;
}

.pied address {
  font-style: normal;
  line-height: 1.6;
}

.lien-bouton {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.pied__bas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #a9cdd1;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------ bandeau cookies */

.cookies {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 1rem var(--marge);
  background: var(--blanc);
  border-top: 1px solid var(--trait);
  box-shadow: 0 -12px 30px -18px rgb(0 60 75 / 45%);
}

.cookies__contenu {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 74rem);
  margin-inline: auto;
  align-items: center;
}

.cookies p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.cookies__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cookies__actions .bouton {
  min-height: 2.9rem;
  padding: 0.5rem 1rem;
  background: var(--lagon);
  border-color: var(--lagon);
}

.cookies__actions .bouton:hover {
  background: #044a59;
}

@media (min-width: 48rem) {
  .cookies__contenu {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }

  .cookies__actions {
    width: 22rem;
  }
}

/* ------------------------------------------------------------ pages produit */

.fil {
  padding-top: 1.25rem;
  color: var(--encre-douce);
  font-size: 0.925rem;
}

.fil ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fil a {
  display: inline-block;
  padding-block: 0.5rem;
}

.fil li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #8fa9ad;
}

.produit {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--espace-section);
  align-items: start;
}

@media (min-width: 60rem) {
  .produit {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .produit__galerie {
    align-self: end;
    position: sticky;
    bottom: 1rem;
  }
}

@media (min-width: 60rem) and (min-height: 72rem) {
  .produit__galerie {
    align-self: start;
    top: 5.5rem;
    bottom: auto;
  }
}

.produit__galerie {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 59.99rem) {
  .produit__galerie {
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 26rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .produit__galerie img {
    scroll-snap-align: start;
  }
}

.produit__galerie img {
  width: 100%;
  border-radius: var(--rayon);
  background: #f1f1ef;
}

.produit__achat h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.04;
}

.produit__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin-top: 0.9rem;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.produit__intro {
  margin-top: 1.1rem;
  color: var(--encre-douce);
}

.produit__prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin: 1.25rem 0;
}

.produit__prix strong {
  color: var(--encre);
  font-family: var(--titre);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.produit__prix span {
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.produit__achat .bloc {
  margin-bottom: 1.25rem;
}

.produit__achat .bloc > legend {
  font-size: 1.1rem;
}

.produit__achat .recap {
  margin-top: 1.5rem;
  box-shadow: none;
}

.produit__action {
  margin-top: 1.5rem;
}

.garanties {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.garanties li {
  padding-left: 1.5rem;
  position: relative;
}

.garanties li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--lagon-clair);
  border-bottom: 2px solid var(--lagon-clair);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------ texte long */

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem);
}

.prose h3 {
  margin-top: 1.8em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose .tableau-defile {
  margin-top: 1.5em;
}

.page-tete {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-tete h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.04;
}

.page-tete .chapo {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--encre-douce);
}

.page-tete .maj {
  margin-top: 1rem;
  color: var(--encre-douce);
  font-size: 0.925rem;
}

.encadre {
  padding: 1.25rem 1.4rem;
  background: var(--eau);
  border-left: 4px solid var(--lagon-clair);
  border-radius: 0 var(--rayon-moyen) var(--rayon-moyen) 0;
}

.encadre--sable {
  background: var(--sable);
  border-left-color: #c9a227;
}

.cartes-choix {
  display: grid;
  gap: 1rem;
  margin-top: 1.5em;
}

@media (min-width: 48rem) {
  .cartes-choix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.carte-choix {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-moyen);
}

.carte-choix h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.carte-choix p {
  color: var(--encre-douce);
}

/* ------------------------------------------------------------ page merci */

.merci {
  min-height: 55vh;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.merci h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.05;
}

.merci .chapo {
  margin-top: 1.25rem;
  color: var(--encre-douce);
}

.merci .recap {
  margin-top: 2rem;
  box-shadow: none;
}

.merci__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Le titre reçoit le focus par script pour annoncer le nouvel état : pas de contour. */
.merci h1:focus {
  outline: none;
}

.merci__suite {
  margin-top: 1.5rem;
  color: var(--encre-douce);
}

.prose code {
  padding: 0.1em 0.35em;
  background: var(--eau);
  border-radius: 0.3em;
  font-size: 0.95em;
}

.encadre > * + * {
  margin-top: 0.85em;
}

.encadre ol {
  padding-left: 1.25em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .entete,
  .pied,
  .cookies,
  .bouton {
    display: none !important;
  }
}
