/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --ink: #17263d;
  --muted: #525e75;
  --cream: #fffaf1;
  --peach: #fff0dc;
  --pink: #d81b60;
  --orange: #e65100;
  --blue: #0277bd;
  --green: #2e7d32;
  --purple: #7b1fa2;
  --line: #eadfd1;
  --header-height: 103px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Accessibilité : Focus Clavier */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 241, 0.96);
  display: flex;
  justify-content: space-between;
  max-width: none;
  margin: auto;
  min-height: var(--header-height);
  padding: 14px max(34px, calc((100% - 1172px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand img {
  height: 75px;
  width: 75px;
  object-fit: cover;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header .nav-menu {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(23, 38, 61, 0.05);
  gap: 18px;
  padding: 7px 16px;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover,
.text-link:hover,
nav a[aria-current="page"] {
  color: var(--pink);
}

nav a[aria-current="location"] {
  background: var(--peach);
  border-radius: 999px;
  color: var(--pink);
  font-weight: 700;
  padding: 6px 12px;
}

.button {
  align-items: center;
  background: var(--pink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  gap: 12px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(242, 43, 127, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  box-shadow: 0 12px 25px rgba(242, 43, 127, 0.35);
  transform: translateY(-2px);
}

.button-small {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  max-width: 1240px;
  min-height: calc(100svh - var(--header-height));
  margin: auto;
  padding: 40px 34px 70px;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  letter-spacing: -0.04em;
}

h1 em,
h2 em {
  color: var(--pink);
  font-style: normal;
}

.hero-text {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 24px 0 28px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.text-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-art {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art .sun {
  background: var(--peach);
  border-radius: 48% 52% 50% 45%;
  height: 360px;
  position: absolute;
  transform: rotate(12deg);
  width: 350px;
}

.hero-art img {
  border-radius: 50%;
  max-width: 310px;
  position: relative;
  box-shadow: 12px 20px 30px rgba(23, 38, 61, 0.12);
  transform: rotate(-6deg);
}

.scribble {
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  position: absolute;
  font-weight: 600;
}

.scribble-one {
  right: 4%;
  top: 10%;
  transform: rotate(9deg);
}

.scribble-two {
  bottom: -3%;
  left: 4%;
  color: var(--green);
  transform: rotate(-8deg);
}

/* ==========================================================================
   4. SECTIONS GENERALES & INTRO
   ========================================================================== */
.section {
  max-width: 1240px;
  margin: auto;
  padding: 90px 34px;
}

.page-section {
  min-height: calc(100svh - var(--header-height));
}

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

.intro {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  letter-spacing: -0.03em;
}

.intro-text {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
  max-width: 530px;
}

.centered {
  text-align: center;
}

/* ==========================================================================
   5. SECTION ACTIVITES (GRILLE & CARTES UNIFORMES)
   ========================================================================== */
.activities {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--peach);
  max-width: none;
  padding-left: max(34px, calc((100% - 1360px) / 2));
  padding-right: max(34px, calc((100% - 1360px) / 2));
}

.activity-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 50px;
  align-items: stretch; /* Hauteur identique pour toutes les cellules de la ligne */
}

.activity-card {
  border-radius: 22px;
  color: #ffffff;
  cursor: pointer;

  /* Agencement Flexbox pour uniformiser le contenu */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  min-height: 320px;
  height: 100%;
  padding: 32px 28px;
  position: relative;

  /* Animation fluide d'agrandissement */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.activity-card:hover,
.activity-card:focus-within {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 20px 35px rgba(23, 38, 61, 0.28);
  z-index: 5;
}

.activity-card:active {
  transform: scale(1.02) translateY(-2px);
}

/* Variantes de couleurs des cartes */
.activity-card.pink { background: var(--pink); }
.activity-card.green { background: var(--green); }
.activity-card.orange { background: var(--orange); }
.activity-card.blue { background: var(--blue); }
.activity-card.purple { background: var(--purple); }

.activity-icon {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 36px;
}

.activity-icon svg {
  color: currentColor;
  height: 56px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  width: 56px;
}

.activity-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  margin-bottom: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.activity-card p {
  font-size: 0.88rem;
  margin: auto 0 0;
  opacity: 0.95;
  line-height: 1.45;
  padding-top: 20px;
}

/* ==========================================================================
   6. SECTION ADHESION
   ========================================================================== */
.membership {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 300px;
}

.membership-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 24px 0 28px;
  max-width: 490px;
}

.membership-copy strong {
  color: var(--pink);
  font-size: 1.35rem;
}

.form-preview {
  margin: 0;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.form-preview:hover {
  transform: rotate(0deg) scale(1.03);
}

.form-preview img {
  border: 10px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(23, 38, 61, 0.15);
}

.form-preview figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   7. SECTION CONTACT & CARTE
   ========================================================================== */
.contact {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact .section-heading > p:last-child {
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 600px;
}

.contact-layout {
  display: grid;
  gap: 60px;
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  align-items: center;
  display: flex;
  gap: 16px;
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: var(--pink);
}

.contact-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-symbol {
  align-items: center;
  background: var(--peach);
  border-radius: 50%;
  color: var(--pink);
  display: flex;
  flex: 0 0 44px;
  font-size: 1.4rem;
  height: 44px;
  justify-content: center;
}

.contact-item small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.social-note {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 20px;
}

.social-note > span:first-child {
  font-weight: 700;
}

.facebook-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  width: fit-content;
  transition: color 0.2s ease;
}

.facebook-link:hover {
  color: var(--pink);
}

.facebook-mark {
  align-items: center;
  background: #1877f2;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

/* Carte Interactive */
.map-card {
  border-radius: 24px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(23, 38, 61, 0.12);
}

.map-card iframe {
  border: 0;
  height: 100%;
  min-height: 380px;
  width: 100%;
}

.map-location {
  align-items: center;
  display: flex;
  left: 58%;
  position: absolute;
  top: 49%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-location span {
  background: var(--pink);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(23, 38, 61, 0.25);
  display: block;
  height: 28px;
  width: 28px;
}

.map-link {
  background: var(--pink);
  border-radius: 999px;
  bottom: 18px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  left: 18px;
  padding: 11px 18px;
  position: absolute;
  z-index: 2;
  box-shadow: 0 5px 16px rgba(23, 38, 61, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-link:hover {
  background: #ffffff;
  color: var(--pink);
}

/* ==========================================================================
   8. CONFIDENTIALITE & RGPD
   ========================================================================== */
.legal-body { scroll-snap-type: none; }

.legal-header {
  align-items: center;
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px max(34px, calc((100% - 1172px) / 2));
}

.legal-page {
  background: #f5eee3;
  margin: 0 auto;
  max-width: 1000px;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(48px, 8vw, 88px) 34px;
}

.legal-intro { margin: 0 auto; max-width: 760px; }
.legal-intro h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }

.legal-intro > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px 0 0;
  max-width: 600px;
}

.privacy-content {
  display: grid;
  gap: 24px 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
}

.privacy-content article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.privacy-content article h2,
.privacy-content article h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.privacy-content article p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 10px;
}

.privacy-content a,
.site-footer > a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer > a { color: #fff; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
  padding: 30px max(34px, calc((100% - 1172px) / 2));
}

.site-footer img {
  height: 55px;
  width: 55px;
  border-radius: 50%;
}

.site-footer p {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.85;
}

.site-footer p a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 1024px) {
  .activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  nav {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 30px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-art {
    min-height: 350px;
  }

  .hero-art .sun {
    height: 290px;
    width: 290px;
  }

  .hero-art img {
    max-width: 250px;
  }

  .intro,
  .membership,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-preview {
    max-width: 280px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-header .button-small {
    display: none;
  }

  .section,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 35px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .contact-item {
    align-items: flex-start;
    gap: 12px;
  }

  .contact-symbol {
    flex-basis: 40px;
    height: 40px;
  }

  .map-card,
  .map-card iframe {
    min-height: 320px;
  }

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

  .section {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .activity-card {
    min-height: auto;
  }

  .site-footer {
    padding: 25px 20px;
    flex-direction: column;
    text-align: center;
  }

  .legal-page { padding: 48px 20px; }
  .legal-header { padding: 12px 20px; }
}

@media (max-width: 850px) {
  .privacy-content { grid-template-columns: 1fr; }
  .legal-header { padding: 14px 24px; }
}

/* Menu mobile accessible */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

.hamburger-bar {
  background: var(--ink);
  border-radius: 4px;
  display: block;
  height: 3px;
  transition: transform .3s ease, opacity .3s ease;
  width: 28px;
}

.mobile-only-button { display: none; }
.nav-toggle.is-active .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 850px) {
  .nav-toggle { display: flex; }
  .desktop-only-button { display: none; }
  .mobile-only-button { display: inline-flex; margin-top: 10px; }
  .nav-menu {
    align-items: center;
    background: var(--cream);
    border: 0;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(23, 38, 61, .15);
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    justify-content: center;
    max-width: 340px;
    padding: 40px 20px;
    position: fixed;
    right: -100%;
    top: 0;
    transition: right .35s cubic-bezier(.16, 1, .3, 1);
    width: 80%;
    z-index: 1000;
  }
  .nav-menu.is-open { right: 0; }
  .nav-menu a:not(.button) { font-size: 1.2rem; font-weight: 700; }
}

/* Ajustements fluides pour les tablettes et les petits écrans */
.hero > *,
.intro > *,
.membership > *,
.contact-layout > * { min-width: 0; }

.contact-item,
.facebook-link { overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .site-header,
  .legal-header {
    padding-left: clamp(24px, 4vw, 34px);
    padding-right: clamp(24px, 4vw, 34px);
  }

  .activity-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .activity-card { padding: clamp(22px, 2.7vw, 30px); }
  .membership { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
  .contact-layout { gap: 36px; }
}

@media (max-width: 850px) {
  :root { --header-height: 80px; }
  html { scroll-padding-top: 0; }

  .site-header,
  .legal-header {
    gap: 14px;
    min-height: var(--header-height);
    padding: 10px clamp(18px, 4vw, 30px);
  }

  .site-header {
    background-color: #fffaf1 !important;
    backdrop-filter: none;
    isolation: isolate;
    position: relative;
    z-index: 1000;
  }

  .brand img { height: 60px; width: 60px; }

  .site-header nav.nav-menu {
    align-items: center;
    background: var(--cream);
    border: 0;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(23, 38, 61, .15);
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100vh;
    height: 100dvh;
    justify-content: center;
    max-width: 360px;
    padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    position: fixed;
    right: -110%;
    top: 0;
    transition: right .3s cubic-bezier(.16, 1, .3, 1), visibility .3s;
    visibility: hidden;
    width: min(86vw, 360px);
    z-index: 1000;
  }

  .site-header nav.nav-menu.is-open { right: 0; visibility: visible; }
  .site-header nav.nav-menu a:not(.button) { font-size: 1.15rem; font-weight: 700; }
  .nav-toggle { display: flex; margin-left: auto; }
  .desktop-only-button { display: none; }
  .mobile-only-button { display: inline-flex; margin-top: 8px; }

  .hero {
    align-items: stretch;
    gap: 16px;
    min-height: auto;
    padding-top: clamp(36px, 7vw, 64px);
  }

  h1 { font-size: clamp(2.8rem, 9vw, 5rem); }
  .hero-art {
    display: grid;
    flex: 0 0 auto;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(360px, 95vw, 420px);
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-art .sun {
    height: clamp(230px, 38vw, 290px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(12deg);
    width: clamp(230px, 38vw, 290px);
  }
  .hero-art img {
    grid-row: 2;
    justify-self: center;
    max-width: min(64vw, 250px);
  }
  .hero-art .scribble-one {
    grid-row: 1;
    justify-self: end;
    position: static;
  }
  .hero-art .scribble-two {
    grid-row: 3;
    justify-self: start;
    position: static;
  }

  .intro,
  .membership,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .membership { justify-items: start; }
  .form-preview { justify-self: center; max-width: min(72vw, 320px); }
  .contact-layout { margin-top: 36px; }
  .map-card, .map-card iframe { min-height: 340px; }
  .privacy-content { grid-template-columns: minmax(0, 1fr); }
  .legal-page { width: 100%; }
}

@media (max-width: 600px) {
  .section,
  .hero {
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
  }

  .section {
    padding-bottom: clamp(56px, 12vw, 72px);
    padding-top: clamp(56px, 12vw, 72px);
  }

  .hero { padding-top: 32px; }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .hero-actions .button { max-width: 100%; }
  .section-heading h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .intro { gap: 24px; }
  .activity-grid { margin-top: 32px; }
  .activity-card { min-height: 260px; }
  .activity-icon { margin-bottom: 24px; }
  .contact-item { align-items: flex-start; gap: 12px; }
  .contact-symbol { flex-basis: 40px; height: 40px; }
  .map-card, .map-card iframe { min-height: 300px; }

  .site-footer {
    flex-direction: column;
    gap: 18px;
    padding: 28px 20px;
    text-align: center;
  }

  .legal-page { padding: 48px 20px; }
  .legal-header { padding: 10px 18px; }
  .legal-header .button { padding: 10px 14px; }
}

@media (max-width: 360px) {
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand img { height: 54px; width: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { justify-content: center; padding-left: 16px; padding-right: 16px; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card, .map-card iframe { min-height: 260px; }
}
