/* =========================================================
   Sanssac Dynamique - style.css complet harmonisé
   Palette principale : vert #2f8f73
   ========================================================= */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #f3efe6;

  --text: #243028;
  --muted: #6f786f;

  --primary: #2f8f73;
  --primary-dark: #236c57;
  --primary-light: #dff2eb;

  --gold: #c9a96b;
  --gold-soft: #e6d2a8;

  --border: rgba(36, 48, 40, 0.08);

  --shadow-sm: 0 8px 22px rgba(40, 44, 38, 0.08);
  --shadow-md: 0 18px 40px rgba(40, 44, 38, 0.12);
  --shadow-lg: 0 28px 65px rgba(40, 44, 38, 0.16);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --container: 1180px;
}

/* ===== BASE ===== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 169, 107, 0.08), transparent 25%),
    linear-gradient(180deg, #faf8f3 0%, #f5f1e8 100%);
  line-height: 1.65;
}

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

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

p {
  text-align: justify;
}

section {
  scroll-margin-top: 120px;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* ===== HEADER SIMPLE ACTUEL ===== */

.header-simple {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, #edf7f3 0%, #f8f5ef 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(40, 44, 38, 0.06);
}

.header-inner {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-top {
  width: 58px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}

.header-title h1 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.1;
}

.header-title p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #8a7a5d;
  text-align: left;
}

.nav-simple {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  flex-wrap: wrap;
}

.nav-simple a {
  text-decoration: none;
  color: #2f3a33;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.nav-simple a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

.nav-simple a:hover {
  color: var(--primary-dark);
}

.nav-simple a:hover::after {
  width: 100%;
}

.nav-simple a:last-child {
  background: var(--gold);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-simple a:last-child::after {
  display: none;
}

.nav-simple a:last-child:hover {
  background: #b89655;
  color: white;
}

/* ===== HEADER ALTERNATIF (si utilisé ailleurs) ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 251, 245, 0.88);
  border-bottom: 1px solid rgba(201, 169, 107, 0.18);
  box-shadow: 0 8px 24px rgba(40, 44, 38, 0.05);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #8a7a5d;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.main-nav a:hover {
  background: rgba(201, 169, 107, 0.12);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface-soft);
  color: var(--primary-dark);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  padding: 1rem 0 1.5rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2f8f73, #3fa385);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
}

.hero p {
  margin: 0 0 1rem;
  max-width: 850px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #f8f3ea);
  color: var(--primary-dark);
  border: 1px solid rgba(201, 169, 107, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px px rgba(40, 44, 38, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

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

.section {
  padding: 2.4rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(243,239,230,0.72) 100%);
  border-top: 1px solid rgba(36, 48, 40, 0.05);
  border-bottom: 1px solid rgba(36, 48, 40, 0.05);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 999px;
}

.section-intro {
  max-width: 850px;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ===== TEAM NOTE ===== */

.team-note {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.2rem;
  background: rgba(47, 143, 115, 0.08);
  border: 1px solid rgba(201, 169, 107, 0.18);
  border-radius: 18px;
  color: var(--primary-dark);
  font-weight: 600;
}

.team-note p {
  margin: 0;
}

/* ===== GRIDS ===== */

.card-grid,
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== CARDS ===== */

.card,
.info-box,
.document-card,
.news-card,
.contact-card,
.action-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(36, 48, 40, 0.07);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  text-align: left;
}

.card::before,
.info-box::before,
.document-card::before,
.news-card::before,
.contact-card::before,
.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
}

.card:hover,
.info-box:hover,
.document-card:hover,
.news-card:hover,
.contact-card:hover,
.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 107, 0.22);
}

.card h3,
.info-box h3,
.document-card h3,
.news-card h3,
.contact-card h3,
.action-card h3 {
  margin: 5px 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.card p,
.info-box p,
.document-card p,
.news-card p,
.contact-card p,
.action-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-subtitle {
  margin-bottom: 0.8rem !important;
  font-weight: 600;
  color: #8a7a5d !important;
}

.featured-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,246,239,0.98) 100%);
}

.pill,
.card-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(201, 169, 107, 0.14);
  color: #8b6d37;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ===== MEMBER CARDS ===== */

.member-card {
  text-align: center;
  padding: 1rem;
}

.member-card .member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 1rem;
  border: 2px solid rgba(201, 169, 107, 0.4);
  box-shadow: 0 8px 20px rgba(40, 44, 38, 0.08);
  transition: transform 0.3s ease;
}

.member-card:hover .member-photo {
  transform: scale(1.02);
}

.member-card h3 {
  margin-top: 0.2rem;
  font-size: 1.08rem;
}

.member-card p {
  font-size: 0.95rem;
  text-align: center;
}

.team-card p {
  text-align: center;
}

/* ===== LISTS ===== */

ul.clean-list,
.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

ul.clean-list li,
.card li {
  margin-bottom: 6px;
  text-align: left;
}

.clean-list a,
.card a {
  color: var(--primary-dark);
}

.clean-list a:hover,
.card a:hover {
  text-decoration: underline;
}

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

.site-footer {
  padding: 2rem 0;
  background: linear-gradient(135deg, #236c57, #2f8f73);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
}

.site-footer a {
  color: #ffffff;
}

.footer-inner p {
  margin: 0.25rem 0;
  text-align: left;
}

/* ===== RESPONSIVE ===== */

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

  .hero-card {
    padding: 2rem;
  }
}

@media (max-width: 900px) {
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-simple {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero-card {
    padding: 1.6rem 1.3rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.8rem;
    border-radius: 20px;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(201, 169, 107, 0.16);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .main-nav a {
    justify-content: center;
    background: #f8f4eb;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .header-simple {
    padding: 0;
  }
.logo-top {
  width: 50px;
  height: auto;
  display: block;
}
  .header-title h1 {
    font-size: 1.1rem;
  }

  .header-title p {
    font-size: 0.72rem;
  }

  .nav-simple a {
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 0.7rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .member-card .member-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 640px) {
  .header-simple {
    padding: 0;
  }

  .logo-top {
    width: 80px;
    height: auto;
    display: block;
    flex-shrink: 0;
  }

  .header-title h1 {
    font-size: 1.1rem;
  }

  .header-title p {
    font-size: 0.72rem;
  }
}