/* La Vinaroise — feuille de style unique du site.
   Aucun style en ligne ni script : la politique de sécurité (CSP) de .htaccess les bloque.
   Couleurs du logo : vert #3ab34a et vert clair #8cc540 ; le vert foncé sert aux textes et aux boutons (contraste AA). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --vert: #3ab34a;
  --vert-clair: #8cc540;
  --vert-fonce: #1f6e30;
  --vert-survol: #185a27;
  --vert-nuit: #163321;
  --fond: #fbfaf6;
  --fond-vert: #eef5e6;
  --blanc: #ffffff;
  --encre: #1c2a20;
  --texte: #36443a;
  --discret: #5a675e;
  --trait: #dde6d5;
  --rayon: 1.25rem;
  --ombre: 0 1px 2px rgb(22 51 33 / 0.06), 0 14px 34px -10px rgb(22 51 33 / 0.18);
  --titres: "Fraunces", Georgia, "Times New Roman", serif;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 72rem;
  color-scheme: light;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 1.0625rem/1.65 var(--police);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--vert-fonce);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--vert-fonce);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--encre);
  font-family: var(--titres);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.conteneur {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

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

.evitement {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--vert-fonce);
  color: var(--blanc);
  font-weight: 600;
}

.evitement:focus {
  top: 1rem;
}

/* Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bouton svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.bouton--plein {
  background: var(--vert-fonce);
  color: var(--blanc);
  box-shadow: 0 8px 18px -8px rgb(31 110 48 / 0.7);
}

.bouton--plein:hover {
  background: var(--vert-survol);
  transform: translateY(-1px);
}

.bouton--contour {
  border-color: currentColor;
  background: var(--blanc);
  color: var(--vert-fonce);
}

.bouton--contour:hover {
  background: var(--fond-vert);
}

/* En-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--trait);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: saturate(1.4) blur(10px);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 1rem 1.75rem;
  min-height: 4.75rem;
}

.entete__logo {
  flex: none;
  margin-right: auto;
  border-radius: 0.4rem;
}

.entete__logo img {
  width: 10.5rem;
}

.nav {
  display: flex;
  gap: 0.15rem;
}

.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--fond-vert);
  color: var(--vert-fonce);
}

.entete .bouton {
  padding: 0.6rem 1.1rem;
}

.bouton__court {
  display: none;
}

/* Accueil */

.accueil {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--fond-vert), var(--fond));
}

.accueil::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 30rem;
  height: 30rem;
  background: url("../img/symbole.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.accueil__grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.surtitre {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--vert-fonce);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.surtitre::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: var(--vert);
}

.chapo {
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.9rem 0 1.1rem;
}

.note {
  margin: 0;
  color: var(--discret);
  font-size: 0.95rem;
}

.accueil__photo {
  position: relative;
  margin: 0;
}

.accueil__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem 6rem 1.5rem 6rem;
  box-shadow: var(--ombre);
}

.pastille {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 17rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: var(--blanc);
  box-shadow: var(--ombre);
  line-height: 1.35;
}

.pastille svg {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.5rem;
  border-radius: 0.8rem;
  background: var(--fond-vert);
  color: var(--vert-fonce);
}

.pastille strong {
  display: block;
  color: var(--encre);
}

.pastille span {
  color: var(--discret);
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--vert {
  background: var(--fond-vert);
}

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

.section__tete p {
  font-size: 1.125rem;
}

/* Appartements */

.logements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.logement {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: var(--ombre);
}

.logement__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0;
}

.logement__photos figure {
  position: relative;
  margin: 0;
}

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

.logement__photos figcaption {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  max-width: calc(100% - 1.1rem);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(22 51 33 / 0.82);
  color: var(--blanc);
  font-size: 0.78rem;
  line-height: 1.4;
}

.logement__corps {
  padding: 1.5rem 1.6rem 1.75rem;
}

.etiquette {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--fond-vert);
  color: var(--vert-fonce);
  font-size: 0.85rem;
  font-weight: 700;
}

.logement h3 {
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
}

.logement p:last-child {
  margin-bottom: 0;
}

.detail {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: var(--ombre);
}

.detail__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--trait);
}

.detail__tete h3 {
  margin: 0;
  font-size: 1.55rem;
}

.detail__tete p {
  margin: 0;
  color: var(--discret);
}

.detail__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.25rem;
}

.detail h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  color: var(--vert-fonce);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail h4::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50% 0;
  background: var(--vert);
}

.detail p {
  margin: 0;
}

/* Résidence */

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

.atout {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--blanc);
}

.atout svg {
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: var(--fond-vert);
  color: var(--vert-fonce);
}

.atout h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.atout p {
  margin: 0;
}

/* Situation */

.situation {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.distances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0.7rem;
  margin: 1.75rem 0 0.6rem;
}

.distances div {
  padding: 0.75rem 1rem;
  border: 1px solid var(--trait);
  border-radius: 0.9rem;
  background: var(--blanc);
}

.distances dt {
  color: var(--discret);
  font-size: 0.9rem;
}

.distances dd {
  margin: 0;
  color: var(--encre);
  font-family: var(--titres);
  font-size: 1.45rem;
  font-weight: 600;
}

.situation__source {
  color: var(--discret);
  font-size: 0.9rem;
}

.liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.situation__carte {
  margin: 0;
}

.carte {
  width: 100%;
  border-radius: var(--rayon);
  background: #f1f6ea;
  box-shadow: var(--ombre);
}

.carte text {
  font-family: var(--police);
}

.carte__nom {
  fill: var(--encre);
  font-size: 15px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #f1f6ea;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.carte__eau {
  fill: #2f6f8c;
  font-size: 14px;
  font-style: italic;
}

.carte__a7 {
  fill: var(--blanc);
  font-size: 12px;
  font-weight: 700;
}

.carte__direction {
  fill: var(--discret);
  font-size: 13.5px;
  font-weight: 600;
}

.carte__repere {
  fill: var(--blanc);
  font-size: 14px;
  font-weight: 700;
}

.carte__echelle,
.carte__credit {
  fill: var(--discret);
  font-size: 11.5px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact__texte p {
  max-width: 32rem;
  font-size: 1.125rem;
}

.contact__carte {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background: var(--vert-nuit);
  box-shadow: var(--ombre);
  color: #dfeadb;
}

.contact__carte::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 14rem;
  height: 14rem;
  background: url("../img/symbole.svg") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.contact__carte dl {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.35rem;
  margin: 0;
}

.contact__carte dt {
  margin-bottom: 0.2rem;
  color: #b5cdb0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact__carte dd {
  margin: 0;
}

.contact__carte a {
  color: var(--blanc);
}

.contact__tel {
  font-family: var(--titres);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.contact__tel:hover {
  text-decoration: underline;
}

.contact__carte :focus-visible {
  outline-color: var(--vert-clair);
}

.contact__carte address {
  font-style: normal;
}

/* Pied de page */

.pied {
  padding: 2.5rem 0;
  background: var(--vert-nuit);
  color: #c9dbc4;
  font-size: 0.95rem;
}

.pied__grille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.pied p {
  margin: 0;
}

.pied strong {
  color: var(--blanc);
}

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

.pied :focus-visible {
  outline-color: var(--vert-clair);
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pages simples : mentions légales, page introuvable */

.page {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.page .conteneur {
  max-width: 46rem;
}

.page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page h2 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
}

.fil {
  margin: 0 0 1rem;
  color: var(--discret);
  font-size: 0.95rem;
}

/* Écrans moyens et petits */

@media (max-width: 960px) {
  .accueil__grille,
  .situation,
  .contact {
    grid-template-columns: 1fr;
  }

  .accueil__photo {
    max-width: 36rem;
  }

  .pastille {
    left: 1rem;
  }

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

@media (max-width: 860px) {
  .entete__barre {
    flex-wrap: wrap;
    padding-top: 0.6rem;
  }

  .nav {
    order: 3;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0.45rem;
  }

  .nav a {
    padding: 0.4rem 0.3rem;
    font-size: 0.9rem;
  }

  html {
    scroll-padding-top: 8rem;
  }
}

@media (max-width: 760px) {
  .logements,
  .detail__grille {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .entete__logo img {
    width: 8.75rem;
  }

  .bouton__long {
    display: none;
  }

  .bouton__court {
    display: inline;
  }

  .atouts {
    grid-template-columns: 1fr;
  }

  .actions .bouton {
    justify-content: center;
    width: 100%;
  }

  .accueil__photo img {
    border-radius: 1.25rem 4rem 1.25rem 4rem;
  }

  .pastille {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: none;
    margin: -2rem 1rem 0;
  }

  .accueil::after {
    display: none;
  }

  /* la carte est réduite de moitié environ : on grossit ses textes */
  .carte__nom {
    font-size: 24px;
    stroke-width: 6px;
  }

  .carte__eau,
  .carte__direction {
    font-size: 21px;
  }

  .carte__repere {
    font-size: 18px;
  }

  .carte__echelle,
  .carte__credit {
    font-size: 17px;
  }
}

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

  .bouton {
    transition: none;
  }

  .bouton--plein:hover {
    transform: none;
  }
}

@media print {
  .entete,
  .actions,
  .accueil::after,
  .contact__carte::after {
    display: none;
  }

  .section,
  .accueil {
    padding: 1.5rem 0;
  }
}
