/* =========================================================
   JSRR - OU NOUS TROUVER
   CLUB DE TERRITOIRE MONTS, RANCE & ROUGIER

   Meme charte graphique que la page Partenaires JSRR
   Optimise pour :
   - Cloudflare Pages
   - iframe Footeo
   - Desktop / Tablette / Mobile
========================================================= */

/* =========================================================
   VARIABLES JSRR
========================================================= */

:root {
  --jsrr-green: #00843d;
  --jsrr-green-dark: #0c5842;
  --jsrr-green-deep: #08402f;

  --jsrr-orange: #f58220;
  --jsrr-orange-dark: #d9680d;

  --jsrr-white: #ffffff;
  --jsrr-black: #111111;
  --jsrr-text: #333333;

  --glass-border: rgba(255, 255, 255, 0.18);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);

  --radius-section: 24px;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  font-family: "Poppins", Arial, Helvetica, sans-serif;

  color: var(--jsrr-white);

  background-color: var(--jsrr-green-dark);

  /*
    IMAGE DE FOND JSRR

    IMPORTANT :
    fond-jsrr.png doit être dans le même dossier
    que ce fichier style.css
  */

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("fond-jsrr.png");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  /*
    Compatible iframe Footeo
    et appareils mobiles
  */

  background-attachment: scroll;

  min-height: 100vh;

  overflow-x: hidden;
}

/* =========================================================
   CONTENEUR GENERAL
========================================================= */

.page {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 40px 25px;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  position: relative;

  background: rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid var(--glass-border);

  border-radius: var(--radius-section);

  padding: 30px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

/* Bandeau JSRR */

.section::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 5px;

  background: linear-gradient(
    90deg,
    var(--jsrr-green) 0%,

    var(--jsrr-green) 50%,

    var(--jsrr-orange) 50%,

    var(--jsrr-orange) 100%
  );
}

/* =========================================================
   TITRES
========================================================= */

.titre {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 12px 26px;

  border-radius: 50px;

  font-size: 23px;

  line-height: 1.2;

  font-weight: 900;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.titre:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   TITRE GOOGLE MAPS
========================================================= */

.titre.localisation {
  color: #000000;

  background: #ffffff;

  font-weight: 900;
}

/* =========================================================
   CARTE GOOGLE MAPS
========================================================= */

.carte-container {
  position: relative;

  width: 100%;

  margin-top: 10px;

  overflow: hidden;

  border-radius: 20px;

  border: 3px solid rgba(255, 255, 255, 0.9);

  background: #ffffff;

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(0, 132, 61, 0.15);
}

.carte-container::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 5px;

  z-index: 2;

  background: linear-gradient(
    90deg,
    var(--jsrr-green) 0%,

    var(--jsrr-green) 50%,

    var(--jsrr-orange) 50%,

    var(--jsrr-orange) 100%
  );
}

.carte-container iframe {
  display: block;

  width: 100%;

  height: 450px;

  border: 0;
}

/* =========================================================
   DESCRIPTIONS
========================================================= */

.description {
  color: #ffffff;

  font-size: 17px;

  line-height: 1.7;

  font-weight: 500;

  text-align: center;

  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.75);
}

/* =========================================================
   BLOCS TEXTE + BOUTON
========================================================= */

.bloc-lien {
  text-align: center;

  margin-top: 30px;
}

.btn-lien {
  display: inline-block;

  margin-top: 14px;

  padding: 14px 30px;

  border-radius: 50px;

  background: linear-gradient(135deg, var(--jsrr-green), var(--jsrr-orange));

  color: #ffffff;

  text-decoration: none;

  font-weight: 800;

  font-size: 16px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-lien:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   ACCESSIBILITE
========================================================= */

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

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

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {
  .page {
    padding: 30px 20px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .page {
    padding: 20px 15px;
  }

  .section {
    padding: 22px 15px;

    border-radius: 18px;
  }

  .titre {
    font-size: 18px;

    padding: 10px 18px;
  }

  .carte-container {
    margin-top: 8px;

    border-radius: 16px;
  }

  .carte-container iframe {
    height: 350px;
  }

  .description {
    font-size: 15px;

    line-height: 1.65;
  }

  .bloc-lien {
    margin-top: 22px;
  }

  .btn-lien {
    width: 100%;

    max-width: 320px;

    padding: 13px 20px;

    font-size: 15px;
  }
}

/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 600px) {
  .page {
    padding: 20px 10px;
  }

  .section {
    padding: 20px 14px;
  }

  .titre {
    max-width: 100%;

    font-size: 17px;

    text-align: center;
  }
}

/* =========================================================
   TRES PETITS ECRANS
========================================================= */

@media (max-width: 400px) {
  .page {
    padding: 15px 8px;
  }

  .section {
    padding: 18px 10px;
  }

  .titre {
    font-size: 16px;

    padding: 9px 14px;
  }

  .carte-container iframe {
    height: 300px;
  }
}
