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

:root {
  --blanc: #ffffff;
  --encre: #1b2f45;
  --encre-douce: #4a5b6c;
  --filet: #d9e3ea;
  --turquoise: #19a7a6;
  --corail: #f26b4f;
  --corail-clair: #f6866d;
  --soleil: #ffc83d;
  --pied-texte: #d3dde7;

  --gouttiere: clamp(16px, 4vw, 40px);
  --largeur: 1200px;
  --rayure: 56px;
  --feston: 28px;
  --rayon: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

::selection { background: var(--turquoise); color: var(--encre); }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--corail); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 2px; }

h1, h2 {
  margin: 0;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 24px; }

p { margin: 0 0 16px; }

figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--encre);
  color: var(--blanc);
  border-radius: 999px;
}
.skip:focus { top: 16px; }

/* Toile : la bande rayée et son feston */

.toile { overflow: hidden; padding-bottom: 8px; margin-bottom: -8px; filter: drop-shadow(0 3px 3px rgb(27 47 69 / 0.16)); }
.toile-rayures,
.toile-feston {
  background: repeating-linear-gradient(90deg, var(--turquoise) 0 var(--rayure), var(--blanc) var(--rayure) calc(var(--rayure) * 2));
}
.toile-rayures { height: 76px; }
.toile-feston,
.pied-feston {
  height: var(--feston);
  -webkit-mask: radial-gradient(var(--feston) at var(--feston) 0, #000 98%, transparent) 0 0 / calc(var(--feston) * 2) var(--feston) repeat-x;
  mask: radial-gradient(var(--feston) at var(--feston) 0, #000 98%, transparent) 0 0 / calc(var(--feston) * 2) var(--feston) repeat-x;
}

@media (prefers-reduced-motion: no-preference) {
  .toile-rayures,
  .toile-feston {
    animation: deroule 0.9s var(--ease) both;
  }
  .toile-feston { animation-duration: 1.1s; }
}
@keyframes deroule {
  from { transform: translateY(-104px); }
  to { transform: none; }
}

/* En-tête */

.entete,
.section,
.pied-contenu {
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.barre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.barre ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.barre a { text-decoration: none; }
.barre a:hover { text-decoration: underline; text-decoration-color: var(--corail); }
.barre ul { margin-left: auto; }
.bouton.bouton--barre {
  margin-top: 0;
  padding: 10px 20px;
  font-size: 0.9375rem;
  box-shadow: none;
}
.bouton.bouton--barre:hover { text-decoration: none; box-shadow: none; }

.une {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: end;
  padding-top: 48px;
}
.une-texte { padding-bottom: 36px; }
.une-ligne { margin: 20px 0 0; max-width: 30ch; font-size: 1.25rem; font-weight: 500; }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 26px;
  border-radius: 999px;
  background: var(--corail);
  color: var(--encre);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgb(242 107 79 / 0.35);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bouton svg { flex: none; transition: transform 0.3s var(--ease); }
.bouton:hover { background: var(--corail-clair); color: var(--encre); transform: translateY(-1px); box-shadow: 0 10px 22px rgb(242 107 79 / 0.42); }
.bouton:hover svg { transform: translateX(4px); }
.bouton:active { transform: translateY(1px); box-shadow: 0 3px 8px rgb(242 107 79 / 0.35); }

.une-photos {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 12px;
  align-items: end;
}
.une-photos img { width: 100%; object-fit: cover; border-radius: var(--rayon); }
.une-photos figure:first-child img { aspect-ratio: 4 / 5; }
.une-photos figure:last-child img { aspect-ratio: 3 / 4; }

.faits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  overflow: hidden;
  font-weight: 600;
}
.faits li { padding: 22px 24px; }
.faits b {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.faits-turquoise { background: var(--turquoise); color: var(--encre); }
.faits-corail { background: var(--corail); color: var(--encre); }
.faits-soleil { background: var(--soleil); color: var(--encre); }
.faits-encre { background: var(--encre); color: var(--blanc); }

/* Sections */

.section { padding-top: 104px; }
.section--deux {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.section--etroite > * { max-width: 820px; }
.texte > p { max-width: 46ch; }
@media (min-width: 961px) {
  .section--deux .texte { position: sticky; top: 32px; }
}

.bande-soleil {
  margin-top: 104px;
  padding-bottom: 96px;
  background: var(--soleil);
}
.bande-soleil .section { padding-top: 88px; }
.bande-soleil .echantillon { box-shadow: 0 0 0 4px var(--blanc); }
.bande-soleil .fiche > div { border-bottom-color: rgb(27 47 69 / 0.22); }
.bande-soleil ::selection { background: var(--encre); color: var(--soleil); }

.echantillon {
  display: block;
  width: 168px;
  height: 14px;
  margin-bottom: 24px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--turquoise) 0 30px, var(--blanc) 30px 36px,
    var(--corail) 36px 50px, var(--blanc) 50px 56px,
    var(--soleil) 56px 92px, var(--blanc) 92px 98px,
    var(--corail) 98px 112px, var(--blanc) 112px 118px,
    var(--turquoise) 118px 168px);
}

.fiche { margin: 24px 0 0; }
.fiche > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--filet);
}
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; }

.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.photos-large { grid-column: span 2; }
.photos-large img { aspect-ratio: 16 / 10; }

/* Chambres : rangées justifiées, aucune photo recadrée */

.rangee {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
h2 + .rangee { margin-top: 28px; }
.rangee li { flex: var(--r) 1 0; min-width: 0; }
.rangee img { width: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: var(--rayon); }

/* Carte : trajets depuis la maison, infos posées sur la carte */

.acces-adresse { max-width: 46ch; }
.carte { margin-top: 32px; }
.carte-plan {
  --vbx: 240; --vby: 110; --vbw: 900; --vbh: 400;
  position: relative;
  aspect-ratio: 900 / 400;
  border-radius: 12px;
  overflow: hidden;
  background: #bfe7e6;
}
.carte-plan img,
.carte-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.carte-traces--mobile { display: none; }
.trace {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trace--plage { stroke: var(--turquoise); }
.trace--gournaise { stroke: var(--corail); }
.trace--port { stroke: var(--encre); }

.repere {
  position: absolute;
  left: calc((var(--x) - var(--vbx)) / var(--vbw) * 100%);
  top: calc((var(--y) - var(--vby)) / var(--vbh) * 100%);
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid var(--blanc);
  box-shadow: 0 2px 6px rgb(27 47 69 / 0.35);
}
.repere--maison { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: var(--corail); }
.repere--plage { background: var(--turquoise); }
.repere--gournaise { background: var(--corail); }
.repere--port { background: var(--encre); }

.etiquette {
  position: absolute;
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--blanc);
  color: var(--encre);
  font-size: 0.875rem;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgb(27 47 69 / 0.18);
}
.etiquette-temps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.etiquette-nom { font-weight: 700; }
.etiquette-note { color: var(--encre-douce); font-weight: 500; }
.picto {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.repere--plage .picto { color: var(--turquoise); }
.repere--gournaise .picto { color: var(--corail); }
.repere--port .picto { color: var(--encre); }

/* Placement des étiquettes autour de leur point */
.repere--maison .etiquette { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 4px 10px; }
.repere--plage .etiquette { left: 50%; bottom: calc(100% + 10px); transform: translateX(-30%); }
.repere--gournaise .etiquette { left: -14px; bottom: calc(100% + 10px); }
.repere--port .etiquette { right: -14px; top: calc(100% + 10px); }

.carte-credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.85);
  font-size: 0.6875rem;
  font-weight: 500;
}

.fiche--acces { max-width: 820px; margin-top: 32px; }

/* Les trajets se tracent depuis la maison quand la carte arrive à l'écran */

.arme .trace { stroke-dasharray: 1; stroke-dashoffset: 1; }
.arme .repere:not(.repere--maison) { transform: scale(0); }
.arme .repere:not(.repere--maison) .etiquette { opacity: 0; }
.vu .trace { animation: trace 1.6s var(--ease) forwards; }
.vu .trace--gournaise { animation-delay: 0.25s; }
.vu .trace--port { animation-delay: 0.5s; }
.vu .repere:not(.repere--maison) { animation: pop 0.5s var(--ease) forwards; }
.vu .repere:not(.repere--maison) .etiquette { animation: apparait 0.4s ease-out forwards; }
.vu .repere.repere--plage,
.vu .repere.repere--plage .etiquette { animation-delay: 0.9s; }
.vu .repere.repere--gournaise,
.vu .repere.repere--gournaise .etiquette { animation-delay: 1.3s; }
.vu .repere.repere--port,
.vu .repere.repere--port .etiquette { animation-delay: 1.7s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes apparait { to { opacity: 1; } }

/* Pied */

.pied {
  background: var(--encre);
  color: var(--blanc);
}
.pied-feston {
  background: repeating-linear-gradient(90deg, var(--blanc) 0 var(--rayure), var(--turquoise) var(--rayure) calc(var(--rayure) * 2));
}
.pied-contenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-block: 40px 48px;
}
.pied address { font-style: normal; font-size: 0.9375rem; color: var(--pied-texte); }
.pied address p { margin: 0; }
.pied strong { color: var(--blanc); }
.pied .bouton { margin-top: 0; box-shadow: none; }
.pied ::selection { background: var(--soleil); color: var(--encre); }
.pied :focus-visible { outline-color: var(--soleil); }

/* Tablette */

@media (max-width: 960px) {
  .une,
  .section--deux { grid-template-columns: minmax(0, 1fr); }
  .une { gap: 32px; padding-top: 32px; }
  .une-texte { padding-bottom: 0; }
  .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .section { padding-top: 72px; }
  .section--deux { gap: 32px; }
}

/* Téléphone */

@media (max-width: 600px) {
  :root { --rayure: 32px; --feston: 16px; }
  body { font-size: 1rem; }
  .toile-rayures { height: 40px; }
  .barre ul { display: none; }
  .bouton.bouton--barre { display: inline-flex; width: auto; margin-top: 0; padding: 8px 16px; font-size: 0.9375rem; }
  .une-ligne { font-size: 1.125rem; }
  .bouton {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
    font-size: 1.0625rem;
  }
  .une-photos { gap: 8px; }
  .faits li { padding: 16px; }
  .fiche > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .photos { gap: 8px; }
  .rangee { flex-wrap: wrap; gap: 16px 8px; }
  .rangee li { flex: 0 0 calc(50% - 4px); }
  .rangee li:last-child { flex-basis: 100%; }
  .rangee img { aspect-ratio: 1; }
  .rangee li:last-child img { aspect-ratio: var(--r); }
  .bande-soleil { margin-top: 72px; padding-bottom: 64px; }
  .bande-soleil .section { padding-top: 64px; }
  .pied-contenu { flex-direction: column; align-items: stretch; }
  .carte-plan {
    --vbx: 250; --vby: -20; --vbw: 860; --vbh: 600;
    aspect-ratio: 860 / 600;
    margin-inline: calc(-1 * var(--gouttiere));
    border-radius: 0;
  }
  .carte-traces--large { display: none; }
  .carte-traces--mobile { display: block; }
  .trace { stroke-width: 6; }
  .repere { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-width: 2px; }
  .repere--maison { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .etiquette { padding: 5px 8px; font-size: 0.75rem; border-radius: 10px; }
  .etiquette-temps { font-size: 0.8125rem; gap: 4px; }
  .picto { width: 15px; height: 15px; }
  .repere--plage .etiquette { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-80%); }
  .repere--port .etiquette { top: auto; right: -4px; bottom: calc(100% + 10px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton,
  .bouton svg { transition: none; }
}
