﻿/* ---------- VARIABLES ---------- */
:root {
  --brand-primary: #79ccca;
  --brand-primary-soft: #91d5d5;
  --brand-secondary: #f6921c;
  --brand-secondary-soft: #ee6730;
  --brand-dark: #576652;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card-bg: #f4eef1;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 12px 30px rgba(0,0,0,.10);

  --brand-yellow-bg: #f6e3b4;
}

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

html, body { min-height: 100%; }

body{
  font-family: "Inter", system-ui, sans-serif;

  /* FOND GLOBAL DU SITE */
  background: linear-gradient(
    180deg,
    var(--brand-yellow-bg) 0%,
    #ffffff 70%
  );
}

h1, h2, h3, h4,
.nav-link,
.nav-dd__btn,
.section-title{
  font-family: "DM Sans", sans-serif;
}


img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 92%); margin: 0 auto; }
main { min-height: 60vh; }

/* Focus clavier */
.nav-dd__btn:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(121,204,202,.55);
  outline-offset: 2px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-yellow-bg);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.site-header,
.header-row,
.nav { overflow: visible; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* Logo / Marque */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__logo{
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.brand-name { font-size: 18px; letter-spacing: .2px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

@media (max-width: 1100px){
  .nav{ flex-wrap: wrap; justify-content: flex-end; }
}

.nav-link,
.nav-dd__btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}

.nav-link:hover,
.nav-dd__btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.nav-cta {
  background: var(--brand-secondary);
  color: #fff;
  border-color: transparent;
}
.nav-cta:hover { background: var(--brand-secondary-soft); }

/* Dropdown "Nos actions" */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd__chev { font-size: 12px; opacity: .7; }

.nav-dd__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 88vw);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  z-index: 999;
  display: none;
  column-count: 2;
  column-gap: 18px;
}

.nav-dd__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.98);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dd__item {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  margin: 0 0 8px;
  border-radius: 12px;
  color: var(--text);
  break-inside: avoid;
  background: #fff;
  border: 1px solid transparent;
}

.nav-dd__item:hover {
  border-color: var(--border);
  background: var(--bg-soft);
}

@media (hover: hover) and (pointer: fine) {
  .nav-dd:hover .nav-dd__menu { display: block; }
}
.nav-dd:focus-within .nav-dd__menu { display: block; }

@media (max-width: 520px) {
  .nav-dd__menu { column-count: 1; }
}

/* =========================================================
   ESPACE MEMBRE
   ========================================================= */
.user-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 8px 12px;
}

.user-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 200;
}

.user-menu:hover .user-dropdown{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown a{
  display:block;
  padding: 10px 14px;
  text-decoration:none;
  color:#222;
  font-size: 14px;
}

.user-dropdown a:hover{ background: rgba(0,0,0,.05); }

/* =========================================================
   HERO (HOME)
   ========================================================= */
.hero {
  padding: 70px 0 52px;
  background: linear-gradient(180deg, var(--brand-yellow-bg) 0%, #ffffff 85%);
}

/* Retirer les "..." parasites */
.ellipsis,
.dots,
.more,
.hero__dots,
.hero .dots,
.hero .ellipsis {
  display: none !important;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -.4px;
}

.hero .lead {
  max-width: 72ch;
  font-size: 18px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.hero blockquote {
  margin: 22px 0 0;
  padding: 14px 0 14px 16px;
  border-left: 4px solid rgba(246,146,28,.55);
  color: var(--text-muted);
  background: rgba(255,255,255,.35);
  border-radius: 12px;
}

.hero blockquote strong {
  display: inline-block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
}

.hero-actions { display: none !important; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: start;
}

/* =========================================================
   PARTENAIRES (colonne droite)
   ========================================================= */
.partners {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.partners__title {
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 12px;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.partner {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 10px;
  min-height: 78px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.partner:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.14);
}

.partner img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.10);
  transition: transform .12s ease;
}

.partner:hover img { transform: scale(1.18); }

/* =========================================================
   SECTIONS / CARDS
   ========================================================= */
section { padding: 40px 0; }

.section-title { font-size: 28px; margin-bottom: 10px; }

.section-intro {
  color: var(--text-muted);
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); }

/* =========================================================
   FORMS
   ========================================================= */
form { max-width: 520px; }

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* Utilitaires texte */
.center{ text-align: center; }
.justify { text-align: justify; }
@media (max-width: 768px) { .justify { text-align: left; } }

.underline{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.bold{ font-weight: 700; }
.bold-underline { font-weight: bold; text-decoration: underline; }

.title-lg{ font-size: 22px; font-weight: 700; line-height: 1.2; }
.title-xl{ font-size: 28px; font-weight: 800; line-height: 1.2; }

/* Vidéo vignette */
.quote-video { display: inline-block; margin-top: 1rem; }
.quote-video img {
  max-width: 240px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quote-video img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Carte profil (bloc note à droite) */
.profile-card{
  float:right;
  width:300px;
  margin:0 0 20px 30px;
  background:#fff6cf;
  border-left:6px solid #d9a441;
  border-radius:12px;
  padding:12px;
}

.profile-card img{
  width:100%;
  border-radius:10px;
  margin-bottom:10px;
}

.profile-card__name{
  font-weight:800;
  font-size:26px;
  margin:4px 0 6px;
}
.profile-card__info{ line-height:1.35; margin-bottom:10px; }
.profile-card__section-title{ font-weight:800; margin:10px 0 6px; }
.profile-card__text{ text-align:justify; line-height:1.35; }
.profile-card a{ text-decoration:underline; }

/* =========================================================
   FORMULAIRE "NOUS REJOINDRE" (2 colonnes + aération)
   ========================================================= */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 34px;         /* aéré */
  margin-top: 14px;
}

.form-col{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label{
  display:block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-title{
  font-weight: 800;
  margin: 6px 0 10px;
}

.form-title span{
  font-weight: 500;
  opacity: .8;
}

/* Bloc checkboxes */
.checks{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
}

.check{
  display: flex;
  align-items: center;
  justify-content: space-between; /* texte à gauche, case à droite */
  gap: 16px;
  padding: 6px 2px;
}

.check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
}

.pay-box{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pay-box .form-row{
  margin-bottom: 14px;
}

textarea{
  resize: vertical;
  min-height: 110px;
}

/* Responsive rejoindre */
@media (max-width: 900px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 26px 0;
  margin-top: 60px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 18px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--brand-dark); }

/* =========================================================
   RESPONSIVE (site)
   ========================================================= */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 32px; }
  .brand-name { display: none; }
  .cards { grid-template-columns: 1fr; }
}
/* 1) Le header doit être au-dessus de tout */
.site-header{
  z-index: 1000;
}

/* 2) Le dropdown au-dessus du header et cliquable */
.user-dropdown{
  z-index: 2000;
  top: calc(100% + 6px); /* réduit le "vide" */
}

/* 3) Pont invisible anti-perte de hover (sinon impossible de cliquer) */
.user-menu::after{
  content:"";
  position:absolute;
  right:0;
  top:100%;
  width: 220px;   /* largeur zone sous le bouton */
  height: 10px;   /* comble l’espace entre bouton et dropdown */
}
/* ===== USER MENU PRO ===== */
.user-btn{
  gap: 8px;
}

.user-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.user-dot{
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #22c55e; /* vert connecté */
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

.user-dropdown a{
  font-weight: 600;
}
.form-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row input, .form-row select, .form-row textarea{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.form-actions{ margin-top: 16px; display:flex; justify-content:flex-end; }

/* ===== Force password rules colors ===== */
#pwd-rules li { 
  color: #b42318 !important;  /* rouge */
  font-weight: 700 !important;
  margin: 6px 0;
}
#pwd-rules li.ok { 
  color: #067647 !important;  /* vert */
}
.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 150px;
  display: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-item {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.user-item:hover {
  background: #f5f5f5;
}

.logout-form {
  margin: 0;
}

.logout-btn {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

/* =========================================================
   RADIO GROUPE (formulaire profil)
   ========================================================= */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  transition: border-color .2s, background .2s;
  font-size: 15px;
}

.radio input[type="radio"] {
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio:has(input:checked) {
  border-color: var(--brand-primary);
  background: #f0fafa;
}

/* =========================================================
   PAGE CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: 32px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.form-group--error input,
.form-group--error textarea {
  border-color: #e53e3e;
}

.form-error {
  color: #e53e3e;
  font-size: 13px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__block h3,
.contact-info__block h4 {
  margin: 0 0 6px;
  color: var(--brand-dark);
}

.contact-info__block p,
.contact-info__block a {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-info__block a:hover {
  color: var(--brand-primary);
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-size: 15px;
}

.alert--success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AUTH (connexion / changement mdp)
   ========================================================= */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card__logo img {
  height: 64px;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.auth-card__title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 6px;
}

.auth-card__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.auth-form label {
  font-weight: 600;
  font-size: 14px;
}
.auth-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-card__footer a {
  color: var(--brand-primary);
  font-weight: 600;
}

.btn--full { width: 100%; justify-content: center; }

.alert--error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}

/* =========================================================
   MOT DE PASSE — règles temps réel
   ========================================================= */
.pwd-rules {
  list-style: none;
  padding: 12px 14px;
  margin: 0 0 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pwd-rules li {
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pwd-rules li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #fc8181;
  font-weight: 700;
}
.pwd-rules li.ok { color: var(--brand-dark); }
.pwd-rules li.ok::before {
  content: "✓";
  color: var(--brand-primary);
}

/* =========================================================
   PROFIL MEMBRE
   ========================================================= */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.profile-header h1 { margin: 0; }
.profile-header .text-muted { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }
.profile-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.profile-section {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.profile-section__title {
  font-size: 18px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-yellow-bg);
  color: var(--brand-dark);
}
.profile-section__cta { margin-top: 20px; }

/* Résumé adhésion */
.adhesion-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.adhesion-summary__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adhesion-summary__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 600;
}
.adhesion-summary__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Badges statut */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge--valide    { background: #f0fff4; color: #276749; }
.badge--paye      { background: #ebf8ff; color: #2b6cb0; }
.badge--en_attente{ background: #fffaf0; color: #975a16; }

/* Historique */
.adhesion-history {
  margin-top: 12px;
  font-size: 14px;
}
.adhesion-history summary {
  cursor: pointer;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 6px 0;
}
.adhesion-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.adhesion-table th, .adhesion-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.adhesion-table th { background: var(--bg-soft); font-weight: 600; }

/* Boutons variantes */
.btn--secondary {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-dark);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}
.btn--secondary:hover { background: var(--brand-primary); color: #fff; }

.btn--ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ===========================================================================
   ESPACE GESTION BUREAU
   =========================================================================== */

.gestion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.gestion-title { font-size: 28px; font-weight: 800; color: var(--brand-dark); margin: 0 0 4px; }
.gestion-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stats-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stats-card--warning { border-top: 3px solid #f6921c; }
.stats-card--info    { border-top: 3px solid #4299e1; }
.stats-card--success { border-top: 3px solid #48bb78; }
.stats-card--brand   { border-top: 3px solid var(--brand-primary); }
.stats-card__value { font-size: 32px; font-weight: 800; color: var(--brand-dark); }
.stats-card__label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Sections */
.gestion-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.gestion-section__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

/* Filters */
.gestion-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.filter-group { display: flex; }
.filter-input,
.filter-select {
  padding: 9px 12px;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  height: 40px;
}
.filter-input { min-width: 220px; }
.filter-select { min-width: 160px; }
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* Table */
.table-wrap { overflow-x: auto; }
.gestion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.gestion-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.gestion-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}
.gestion-table tr:last-child td { border-bottom: none; }
.gestion-table tr:hover td { background: #f7fafc; }
.table-empty { text-align: center; color: var(--text-muted); padding: 32px !important; }
.btn-link { color: var(--brand-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-link:hover { text-decoration: underline; }

/* Detail page */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.detail-list dt { font-weight: 600; color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.detail-list dd { margin: 0; color: var(--text); }

/* Statut form */
.statut-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.statut-form__title { font-size: 14px; font-weight: 700; color: var(--text-muted); margin: 0 0 10px; }
.statut-form__row { display: flex; gap: 10px; align-items: center; }

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.alert--success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.alert--error   { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.page-btn {
  padding: 6px 12px;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-dark);
  text-decoration: none;
  background: #fff;
  transition: background 0.15s;
}
.page-btn:hover { background: var(--brand-yellow-bg); }
.page-btn--active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  cursor: default;
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* RGPD */
.profile-section--rgpd { border-top: 2px solid #fed7d7; }
.rgpd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn--danger {
  background: #fff5f5;
  border: 2px solid #fc8181;
  color: #c53030;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn--danger:hover { background: #fed7d7; }

/* Tableaux légaux (confidentialité, mentions légales) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}
.legal-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--brand-yellow-bg);
  border-bottom: 2px solid var(--brand-primary);
  font-weight: 700;
  color: var(--brand-dark);
}
.legal-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: #fafafa; }

/* Article detail */
.article-header { margin-bottom: 32px; }
.article-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #e2e8f0;
  line-height: 1.8;
  font-size: 16px;
  max-width: 760px;
}
.article-body p { margin-bottom: 16px; }

@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .profile-header { flex-direction: column; align-items: flex-start; }
  .profile-section { padding: 20px 16px; }
  .adhesion-summary { grid-template-columns: 1fr 1fr; }
  .rgpd-actions { flex-direction: column; }
}
#ville-select-list {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.box {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
}

.title {
  font-weight: bold;
  margin-bottom: 10px;
}

.check, .radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pay-box {
  margin-top: 30px;
}

.full {
  width: 100%;
}

.info {
  display: none;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
}

.helloasso {
  background: #e8f4fd;
}

.paypal {
  background: #eef2ff;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}
/* PAGE JOIN PREMIUM */

.join-page {
  background: linear-gradient(135deg, #f4e2b5, #e8d39a);
  padding: 40px 20px;
}

.join-card {
  max-width: 1100px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.join-header {
  margin-bottom: 20px;
}

.join-header h1 {
  margin-bottom: 5px;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.row {
  display: flex;
  gap: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field input,
.field select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.card-box {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
}

.card-box h3 {
  margin-bottom: 10px;
}

.check, .radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.payment {
  margin-top: 25px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: #ff7a00;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-submit:hover {
  background: #e66a00;
}

.info {
  display: none;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
}

.helloasso { background: #e8f4fd; }
.paypal { background: #eef2ff; }

.alert-error {
  background: #ffe5e5;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}

.form-card {
  padding: 14px 16px;
  background: #f7f5ef;
  border: 1px solid #e6dcc5;
  border-radius: 12px;
  margin-bottom: 0;
}

.compact-checks,
.compact-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-checks .check,
.compact-radios .radio {
  margin: 0;
}

.compact-radios .radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
}

#ville-select-list {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

@media (max-width: 900px) {
  .form-row-split {
    grid-template-columns: 1fr;
  }
}
#btn-submit.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

#btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}