/* =========================================================
   JSRR - SUIVEZ-NOUS (RESEAUX SOCIAUX)
   CLUB DE TERRITOIRE MONTS, RANCE & ROUGIER

   Meme charte graphique que la page "Ou nous trouver"
   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.localisation {
  color: #000000;

  background: #ffffff;

  font-weight: 900;
}

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

.bloc-lien {
  text-align: center;

  margin-top: 10px;
}

/* =========================================================
   RESEAUX SOCIAUX
========================================================= */

.social-cards {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 20px;

  margin-top: 22px;
}

.social-card {
  display: flex;

  flex-direction: column;

  align-items: center;

  width: 220px;

  padding: 24px 18px;

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

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

  border-radius: 20px;

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

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

.social-card:hover {
  transform: translateY(-4px);

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

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.social-avatar {
  position: relative;

  width: 76px;

  height: 76px;

  margin-bottom: 14px;
}

.social-avatar img {
  width: 100%;

  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid #ffffff;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);

  display: block;
}

.social-badge {
  position: absolute;

  bottom: -2px;

  right: -2px;

  width: 26px;

  height: 26px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  border: 2px solid #ffffff;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.social-badge.facebook {
  background: #1877f2;
}

.social-badge.instagram {
  background: linear-gradient(135deg, #f58220, #d62976, #4f5bd5);
}

.social-name {
  margin: 0;

  color: #ffffff;

  font-weight: 800;

  font-size: 15px;

  text-align: center;

  line-height: 1.3;

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

.social-handle {
  margin: 2px 0 14px;

  color: rgba(255, 255, 255, 0.75);

  font-weight: 500;

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.btn-social {
  display: inline-block;

  padding: 10px 20px;

  border-radius: 50px;

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

  color: #ffffff;

  text-decoration: none;

  font-weight: 800;

  font-size: 14px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);

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

.btn-social:hover {
  transform: translateY(-2px) scale(1.03);

  box-shadow: 0 10px 22px 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;
  }

  .description {
    font-size: 15px;

    line-height: 1.65;
  }

  .social-cards {
    gap: 16px;
  }

  .social-card {
    width: 100%;

    max-width: 260px;
  }
}

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