/* =========================================================
   JSRR - PARTENAIRES PREMIUM V2
   CLUB DE TERRITOIRE MONTS, RANCE & ROUGIER

   Optimisé 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-dark: rgba(0, 0, 0, 0.42);
  --glass-border: rgba(255, 255, 255, 0.18);

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

  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.22);

  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.28);

  --radius-section: 24px;
  --radius-card: 20px;
}

/* =========================================================
   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;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  text-align: center;

  margin-bottom: 45px;

  animation: apparition 0.8s ease both;
}

.header h1 {
  margin: 0 0 20px;

  font-size: clamp(30px, 5vw, 48px);

  line-height: 1.15;

  font-weight: 900;

  letter-spacing: -0.5px;

  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.5);
}

.header p {
  max-width: 900px;

  margin: 0 auto 18px;

  font-size: 18px;

  line-height: 1.7;

  font-weight: 500;

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

.header strong {
  font-weight: 800;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes apparition {
  from {
    opacity: 0;

    transform: translateY(15px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================================
   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;

  margin-bottom: 35px;

  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;

  background: rgba(255, 255, 255, 0.97);

  color: var(--jsrr-black);

  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);
}

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

.officiel {
  color: var(--jsrr-green);
}

.local {
  color: var(--jsrr-orange);
}

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

.titre.localisation {
  color: #000000;

  background: #ffffff;

  font-weight: 900;
}

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

.description {
  color: #ffffff;

  font-size: 17px;

  line-height: 1.7;

  font-weight: 500;

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

/* =========================================================
   CARTES PARTENAIRES
========================================================= */

.logo-card {
  position: relative;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.98);

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

  height: 228px;

  padding: 18px 15px 13px;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  align-items: center;

  gap: 10px;

  text-decoration: none;

  border: 2px solid rgba(0, 132, 61, 0.08);

  box-shadow: var(--shadow-card);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Bandeau vert / orange */

.logo-card::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%
  );
}

/* Hover */

.logo-card:hover {
  transform: translateY(-8px);

  border-color: rgba(245, 130, 32, 0.35);

  box-shadow: var(--shadow-hover);
}

/* =========================================================
   LOGOS
========================================================= */

.logo-card img {
  flex: 1 1 auto;

  min-height: 0;

  width: 100%;

  max-width: 150px;

  height: 100%;

  max-height: 120px;

  object-fit: contain;

  object-position: center;

  transition: transform 0.35s ease;
}

.logo-card:hover img {
  transform: scale(1.06);
}

/* =========================================================
   NOM PARTENAIRE
========================================================= */

.logo-card span {
  display: flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  width: 100%;

  min-height: 52px;

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

  border-radius: 12px;

  padding: 8px 10px;

  font-size: 13.5px;

  font-weight: 800;

  line-height: 1.25;

  text-align: center;

  color: #ffffff;

  hyphens: auto;

  overflow-wrap: break-word;
}

/* =========================================================
   PARTENAIRES OFFICIELS
========================================================= */

.grille-officiels {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 20px;
}

.grille-officiels .logo-card {
  width: 100%;
}

/* =========================================================
   CAROUSEL
========================================================= */

.carousel {
  position: relative;

  overflow: hidden;

  width: 100%;

  padding: 10px 0 15px;
}

.carousel-track {
  display: flex;

  gap: 24px;

  width: max-content;

  animation: defilement 55s linear infinite;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-track .logo-card {
  width: 210px;

  flex: 0 0 210px;
}

/* =========================================================
   ANIMATION CAROUSEL
========================================================= */

@keyframes defilement {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

.carte-container {
  position: relative;

  width: 100%;

  margin-top: 25px;

  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;
}

/* =========================================================
   STATISTIQUES
========================================================= */

.stats {
  display: flex;

  justify-content: center;

  gap: 25px;

  margin: 35px 0;

  flex-wrap: wrap;
}

.stats div {
  background: rgba(255, 255, 255, 0.97);

  color: var(--jsrr-black);

  border-radius: 20px;

  padding: 20px;

  min-width: 180px;

  text-align: center;

  box-shadow: var(--shadow-soft);

  transition: transform 0.3s ease;
}

.stats div:hover {
  transform: translateY(-5px);
}

.stats strong {
  display: block;

  font-size: 35px;

  color: var(--jsrr-green);
}

.stats span {
  font-weight: 700;
}

/* =========================================================
   DEVENIR PARTENAIRE
========================================================= */

.contact-partenaire {
  position: relative;

  background: rgba(255, 255, 255, 0.98);

  border-radius: 25px;

  padding: 40px 35px;

  text-align: center;

  box-shadow: var(--shadow-card);

  overflow: hidden;
}

.contact-partenaire::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 6px;

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

    var(--jsrr-green) 50%,

    var(--jsrr-orange) 50%,

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

.contact-partenaire h2 {
  color: var(--jsrr-green);

  font-size: 28px;

  line-height: 1.3;

  margin-top: 5px;
}

.contact-partenaire p {
  max-width: 850px;

  margin: 15px auto;

  font-size: 17px;

  line-height: 1.7;

  color: var(--jsrr-text);
}

/* =========================================================
   BOUTON
========================================================= */

.contact-partenaire a {
  display: inline-block;

  margin-top: 20px;

  padding: 15px 32px;

  border-radius: 50px;

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

  color: #ffffff;

  text-decoration: none;

  font-weight: 800;

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

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

.contact-partenaire a:hover {
  transform: translateY(-3px) scale(1.03);

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

/* =========================================================
   FOOTER
========================================================= */

footer {
  text-align: center;

  color: #ffffff;

  font-weight: 700;

  font-size: 18px;

  line-height: 1.5;

  padding: 30px 0 10px;

  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   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;
  }

  .carousel-track {
    animation: none;
  }
}

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

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

  .grille-officiels {
    grid-template-columns: repeat(3, 1fr);
  }

  .header h1 {
    font-size: 34px;
  }

  .header p {
    font-size: 17px;
  }
}

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

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

  .header {
    margin-bottom: 30px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header p {
    font-size: 15px;

    line-height: 1.6;
  }

  .section {
    padding: 22px 15px;

    border-radius: 18px;

    margin-bottom: 25px;
  }

  .titre {
    font-size: 18px;

    padding: 10px 18px;
  }

  .description {
    font-size: 15px;

    line-height: 1.65;
  }

  .logo-card {
    height: 205px;

    padding: 14px 10px 10px;
  }

  .grille-officiels {
    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
  }

  .logo-card img {
    max-width: 120px;

    max-height: 90px;
  }

  .logo-card span {
    font-size: 12.5px;

    min-height: 46px;
  }

  .carousel-track {
    gap: 15px;
  }

  .carousel-track .logo-card {
    width: 172px;

    flex-basis: 172px;
  }

  .stats {
    gap: 12px;

    margin: 25px 0;
  }

  .stats div {
    min-width: 0;

    flex: 1 1 calc(33.333% - 12px);

    padding: 14px 10px;
  }

  .stats strong {
    font-size: 24px;
  }

  .stats span {
    font-size: 12.5px;
  }

  .contact-partenaire {
    padding: 30px 20px;
  }

  .contact-partenaire h2 {
    font-size: 24px;
  }

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

    border-radius: 16px;
  }

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

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

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

  .section {
    padding: 20px 14px;
  }

  .grille-officiels {
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
  }

  .logo-card {
    height: 190px;
  }

  .carousel-track .logo-card {
    width: 155px;

    flex-basis: 155px;
  }

  .header h1 {
    font-size: 25px;
  }

  .titre {
    max-width: 100%;

    font-size: 17px;

    text-align: center;
  }

  .stats div {
    width: 100%;

    flex-basis: 100%;
  }

  .contact-partenaire a {
    width: 100%;

    max-width: 320px;
  }
}

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

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

  .grille-officiels {
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
  }

  .section {
    padding: 18px 10px;
  }

  .logo-card {
    height: 175px;

    padding: 10px 8px 8px;
  }

  .logo-card img {
    max-width: 100px;

    max-height: 68px;
  }

  .logo-card span {
    font-size: 11.5px;

    min-height: 40px;

    padding: 6px 8px;
  }

  .carousel-track .logo-card {
    width: 140px;

    flex-basis: 140px;
  }

  .header h1 {
    font-size: 22px;
  }

  .header p {
    font-size: 14px;
  }

  .titre {
    font-size: 16px;

    padding: 9px 14px;
  }

  .description {
    font-size: 14px;
  }

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