/* ============================================================
   Association Test — Design Public
   Palette : vert olive profond + blanc cassé + orange chaleureux
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --c-green:   #2D5A27;
  --c-green-l: #3D7A35;
  --c-green-xl:#EBF3E9;
  --c-orange:  #E8690A;
  --c-orange-l:#FFF0E6;
  --c-cream:   #F8F5F0;
  --c-dark:    #1A1A1A;
  --c-mid:     #5A5A5A;
  --c-border:  #DDD8D0;
  --c-white:   #FFFFFF;
  --ff-title:  'Playfair Display', Georgia, serif;
  --ff-body:   'Source Sans 3', system-ui, sans-serif;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --transition:200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--c-dark);
  background: var(--c-white);
  line-height: 1.65;
}

/* ── Navigation ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-green);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.navbar-brand .brand-icon {
  width: 44px; height: 44px;
  background: var(--c-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  flex-shrink: 0;
}
.navbar-brand .brand-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.navbar-brand .brand-text {
  color: var(--c-white);
  font-family: var(--ff-title);
  font-size: 1.15rem;
  line-height: 1.2;
}
.navbar-brand .brand-text span {
  display: block; font-size: .7rem; font-family: var(--ff-body);
  font-weight: 300; letter-spacing: .04em; opacity: .85;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none; font-weight: 400;
  padding: .45rem .9rem; border-radius: var(--radius);
  font-size: .9rem; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.15);
  color: var(--c-white);
}
.nav-links .btn-admin {
  background: var(--c-orange); color: var(--c-white);
  font-weight: 600; margin-left: .5rem;
}
.nav-links .btn-admin:hover { background: #CF5A08; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: white; margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-l) 60%, #4A8A42 100%);
  color: var(--c-white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-content { position: relative; max-width: 800px; margin: auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: .4rem 1.2rem;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--ff-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15; margin-bottom: 1.25rem;
  font-weight: 900;
}
.hero h1 em { color: var(--c-orange); font-style: normal; }
.hero p {
  font-size: 1.15rem; opacity: .9;
  max-width: 600px; margin: 0 auto 2rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--c-orange); color: white; }
.btn-primary:hover { background: #CF5A08; transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; }
.hero-stats {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--ff-title); font-size: 2.2rem; font-weight: 900;
  color: var(--c-orange);
}
.hero-stat .lbl { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }

/* ── Sections ── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--c-cream); }
.container { max-width: 1200px; margin: auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block; color: var(--c-orange);
  font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .75rem;
}
.section-header h2 {
  font-family: var(--ff-title); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--c-green); margin-bottom: .75rem;
}
.section-header p { color: var(--c-mid); max-width: 600px; margin: auto; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--c-white); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--c-border);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--c-green-xl); 
            display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-body { padding: 1.5rem; }
.card-meta { font-size: .8rem; color: var(--c-mid); margin-bottom: .5rem; }
.card-title { font-family: var(--ff-title); font-size: 1.2rem; margin-bottom: .75rem; color: var(--c-green); }
.card-text { color: var(--c-mid); font-size: .92rem; line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--c-orange); font-weight: 600; text-decoration: none;
  margin-top: 1rem; font-size: .9rem;
}
.card-link:hover { gap: .6rem; }

/* ── Mission boxes ── */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.mission-box {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--c-white); border-radius: 12px;
  border: 1px solid var(--c-border);
}
.mission-box .icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  background: var(--c-green-xl); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.mission-box h3 { font-family: var(--ff-title); color: var(--c-green); margin-bottom: .5rem; }
.mission-box p { color: var(--c-mid); font-size: .9rem; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 10px; aspect-ratio: 4/3;
  background: var(--c-green-xl);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(45,90,39,.7);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: .9rem; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c-green); opacity: .5; gap: .5rem; font-size: .85rem;
}
.gallery-placeholder .ico { font-size: 2.5rem; }

/* ── Contact form ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-family: var(--ff-title); color: var(--c-green); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--c-mid); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; color: var(--c-mid); }
.contact-detail .ico { font-size: 1.2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--c-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: .95rem; color: var(--c-dark);
  background: var(--c-white); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(45,90,39,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Agenda ── */
.agenda-list { display: flex; flex-direction: column; gap: 1rem; }
.agenda-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--c-white); border-radius: 10px;
  border: 1px solid var(--c-border);
  padding: 1.25rem; transition: var(--transition);
}
.agenda-item:hover { border-color: var(--c-green); }
.agenda-date {
  min-width: 60px; text-align: center;
  background: var(--c-green); color: white;
  border-radius: 8px; padding: .5rem;
}
.agenda-date .day { font-family: var(--ff-title); font-size: 1.8rem; line-height: 1; }
.agenda-date .month { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.agenda-body h3 { font-weight: 600; margin-bottom: .25rem; color: var(--c-dark); }
.agenda-body .meta { font-size: .82rem; color: var(--c-mid); }
.agenda-tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 50px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
}
.tag-distribution { background: var(--c-green-xl); color: var(--c-green); }
.tag-reunion { background: #FFF0E6; color: var(--c-orange); }
.tag-formation { background: #E8F4FF; color: #1565C0; }
.tag-autre { background: #F5F5F5; color: #666; }

/* ── Article page ── */
.article-header { background: var(--c-green); color: white; padding: 3rem 1.5rem; }
.article-header h1 { font-family: var(--ff-title); font-size: clamp(1.8rem, 4vw, 3rem); max-width: 800px; }
.article-header .meta { opacity: .75; margin-top: .75rem; font-size: .9rem; }
.article-content { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.25rem; color: var(--c-mid); }
.article-content h2, .article-content h3 { font-family: var(--ff-title); color: var(--c-green); margin: 2rem 0 .75rem; }

/* ── Bandeau CTA ── */
.cta-band {
  background: var(--c-orange); color: white; text-align: center;
  padding: 3rem 1.5rem;
}
.cta-band h2 { font-family: var(--ff-title); font-size: 2rem; margin-bottom: .75rem; }
.cta-band p { opacity: .9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-white { background: white; color: var(--c-orange); border-color: white; }
.btn-white:hover { background: var(--c-cream); }

/* ── Footer ── */
footer {
  background: var(--c-dark); color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-family: var(--ff-title); color: white; font-size: 1.3rem; margin-bottom: .75rem; }
footer p { font-size: .88rem; line-height: 1.7; }
footer h4 { color: white; margin-bottom: .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .4rem; }
footer ul a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: var(--transition); }
footer ul a:hover { color: var(--c-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem; text-align: center;
  font-size: .82rem; opacity: .5;
}

/* ── Alerts ── */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: var(--c-green-xl); color: var(--c-green); border: 1px solid #B8D4B4; }
.alert-error { background: #FEEAEA; color: #C62828; border: 1px solid #FFBCBC; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-green); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .navbar-inner { position: relative; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
