/* rivages.com — landing statique.
   Reprise fidèle de l'ancien site (Bootstrap 4.1 + core.css, html { font-size: 10px }) sans Bootstrap :
   les valeurs en px ci-dessous sont celles calculées sur l'ancien site (1rem = 10px). */

@font-face {
  font-family: "Junge";
  src: url("/assets/fonts/junge-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #004542;
  --green-light: #7fbbb8;
  --sand: #d4c4aa;
}

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

body {
  margin: 0;
  background: #fff;
  color: #212529;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Junge", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--green);
  margin: 0 0 5px;
}
h1 { font-size: 25px; }
h2 { font-size: 20px; }

p { margin: 0 0 10px; }
img { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }

/* Bootstrap : pas de soulignement, soulignement + bleu au survol ; core.css : couleur verte */
a { color: var(--green); text-decoration: none; transition: all .5s; }
a:hover { color: #0056b3; text-decoration: underline; }

/* Bootstrap .container */
.container { width: 100%; padding: 0 15px; margin: 0 auto; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.bt {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 25px;
  border: 0;
  border-radius: 50px;
  background: var(--green);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.bt:hover, .bt:focus { background: var(--green-light); color: #fff; text-decoration: none; }

/* Header */
.site-header { padding: 15px 0; background: #fff; color: #000; }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.site-header__logo { display: block; }
.site-header__conseil { text-align: right; }
.site-header__conseil p { margin: 0; }
.site-header__conseil a { color: inherit; }
.site-header__conseil a:hover { color: inherit; text-decoration: none; }
.site-header__conseil span { display: block; font-size: .7em; color: #aaa; }
.highlight { color: var(--green); font-size: 1.2em; }

/* Hero : image à sa taille d'origine, centrée, décalée de -197px (comme l'ancien site) */
.hero {
  background-image: url("/assets/img/hero-la-rochelle.webp");
  background-position: center -197px;
  background-repeat: no-repeat;
}
@media (min-width: 1906px) { .hero { background-size: cover; background-position: center 40%; } }
.hero__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 500px;
  padding: 0; /* le contenu va jusqu'au bord de la .row Bootstrap (container + 15px) */
}
.hero__content {
  position: relative;
  background: #fff;
  padding: 30px;
  max-width: 500px;
  width: 50%;
  margin: 30px 0;
}
.hero__content h1 { margin-bottom: 20px; }

/* Destinations */
.destinations { padding: 50px 0; text-align: center; }
.destinations h2 { font-size: 30px; margin-bottom: 30px; }
.destinations__grid {
  list-style: none;
  margin: 0;
  padding: 15px 0; /* marge des colonnes Bootstrap, sans fusion avec celle du paragraphe */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 30px;
}
.destination {
  position: relative;
  display: block;
  padding-bottom: 65%;
  overflow: hidden;
}
.destination img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1.5s;
  transform: scale(1);
}
.destination:hover img, .destination:focus img { transform: scale(1.4); }
.destination__label {
  position: absolute;
  inset: 0;
  padding: 30px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  transition: all 1.5s;
}
.destination:hover .destination__label,
.destination:focus .destination__label {
  background: rgba(0, 0, 0, 0);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, .5);
}

/* Découvrir */
.decouvrir {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.decouvrir__content {
  justify-self: end;
  max-width: 700px;
  padding: 30px;
}
.decouvrir__content h2 { font-size: 30px; margin-bottom: 20px; }
.decouvrir__image { align-self: stretch; overflow: hidden; }
.decouvrir__image img { width: 100%; min-height: 100%; object-fit: cover; }

/* Footer */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 30px 15px; /* .container Bootstrap */
  text-align: center;
}
.site-footer img { max-width: 50%; }

/* Responsive (mêmes seuils que l'ancien site) */
@media (max-width: 991px) {
  .destinations__grid { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .decouvrir { grid-template-columns: 1fr; }
  .decouvrir__content { justify-self: center; }
  .decouvrir__content h2 { font-size: 25px; }
  .decouvrir__image { height: 200px; }
  .decouvrir__image img { height: 100%; }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__conseil { text-align: center; margin-top: 15px; }
  .hero__inner { justify-content: center; }
  .hero__content { width: 100%; padding: 30px 15px; } /* col-12 Bootstrap : pleine largeur */
  .destinations__grid { grid-template-columns: minmax(0, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
