/* Cooprise - Feuille de style commune aux nouvelles pages
   (la homepage garde son CSS inline original) */
:root {
  --green-deep: #1C4A2A;
  --green-mid: #2A6636;
  --green-light: #4A9B5F;
  --green-pale: #DFF0E4;
  --amber: #C8202D;
  --amber-light: #FDEAEB;
  --cream: #F0EDE6;
  --brown: #1C1C1C;
  --text: #1e1e1e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --red-soft: #E03030;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #F0EDE6;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* NAV (réutilisé homepage) */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,74,42,0.08);
}
.site-nav .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-nav .logo img { height: 44px; }
.site-nav .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: #C8202D;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px; border-radius: 24px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-deep);
  background: var(--green-pale);
}
.nav-cta {
  background: #C8202D !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 24px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #A01820 !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--green-deep); }

/* Page wrapper */
.page { max-width: 1180px; margin: 0 auto; padding: 60px 48px 80px; }
.page-hero {
  text-align: center;
  padding: 80px 48px 40px;
  background: linear-gradient(135deg, #F4F1EA 0%, #DFF0E4 100%);
  border-bottom: 1px solid rgba(28,74,42,0.06);
}
.page-hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #C8202D;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: #C8202D; }
.page-hero p {
  font-size: 17px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto; line-height: 1.6;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(26,58,46,0.06);
  border: 1px solid rgba(28,74,42,0.06);
}
.card + .card { margin-top: 20px; }

/* Auth container */
.auth-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 82px);
  padding: 40px 24px;
  background: linear-gradient(135deg, #F4F1EA 0%, #DFF0E4 100%);
}
.auth-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(26,58,46,0.12);
}
.auth-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px; color: var(--green-deep);
  margin-bottom: 8px;
}
.auth-card > p.lead { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.auth-card .auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-card .auth-link a { color: #C8202D; text-decoration: none; font-weight: 600; }
.auth-card .auth-link a:hover { text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text); background: var(--cream);
  outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-light);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: #C8202D; color: var(--white); }
.btn-primary:hover { background: #A01820; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,32,45,0.25); }
.btn-secondary { background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--green-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Flash messages */
.flash {
  padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.flash-success { background: var(--green-pale); color: var(--green-deep); border-color: var(--green-light); }
.flash-error { background: #FDEAEB; color: #A01820; border-color: #C8202D; }
.flash-info { background: #eef2ff; color: #3730a3; border-color: #a5b4fc; }

/* Sections génériques */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green-deep);
  margin-bottom: 16px;
}
.section-title em { color: #C8202D; font-style: italic; }
.section-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; max-width: 720px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media(max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Blog cards */
.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,58,46,0.06);
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,58,46,0.12); }
.blog-card .thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--green-pale), #F4F1EA);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.blog-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--green-deep); margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card .readmore { color: #C8202D; font-weight: 600; font-size: 14px; margin-top: 16px; text-decoration: none; }

/* FAQ accordion */
.faq-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(28,74,42,0.08);
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--green-deep);
  font-size: 15px;
  position: relative;
  list-style: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: #C8202D; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.7; font-size: 14px; }

/* Testimonial */
.testimonial {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute; top: 8px; left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 80px; color: var(--green-pale);
  line-height: 1;
}
.testimonial blockquote {
  font-size: 15px; line-height: 1.7; color: var(--text);
  font-style: italic;
  position: relative; z-index: 1;
  margin-bottom: 20px;
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid rgba(28,74,42,0.08);
  padding-top: 16px;
}
.testimonial .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial .who strong { display: block; font-size: 14px; color: var(--green-deep); }
.testimonial .who span { font-size: 12px; color: var(--text-muted); }

/* Dashboard */
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 82px);
}
@media(max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }

.dash-sidebar {
  background: var(--green-deep);
  color: rgba(255,255,255,0.85);
  padding: 32px 20px;
}
.dash-sidebar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--white);
  margin-bottom: 24px;
  padding: 0 12px;
}
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 14px; font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s;
}
.dash-sidebar nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-sidebar nav a.active { background: #C8202D; color: var(--white); }
.dash-main { padding: 48px; }
@media(max-width: 900px) { .dash-main { padding: 24px; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  border-left: 4px solid var(--green-light);
}
.stat-card.amber { border-left-color: #C8202D; }
.stat-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.stat-card .value { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--green-deep); font-weight: 700; margin-top: 4px; }

/* Table */
.table-wrap { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(26,58,46,0.04); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(28,74,42,0.06); font-size: 14px; }
table.data th { background: var(--cream); font-weight: 600; color: var(--green-deep); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafaf7; }

.badge {
  display: inline-block;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-pending { background: #FDEAEB; color: #C8202D; }
.badge-approved, .badge-active { background: var(--green-pale); color: var(--green-deep); }
.badge-rejected, .badge-suspended { background: #e5e7eb; color: #6b7280; }

/* Footer */
.site-footer {
  background: #111111;
  padding: 60px 48px 32px;
  color: rgba(255,255,255,0.7);
}
.footer-top {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: #C8202D; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: #C8202D; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 12px;
}
.insta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white; padding: 10px 20px; border-radius: 24px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  margin-top: 16px;
}
@media(max-width: 900px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-top: 1px solid rgba(0,0,0,0.06); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .page { padding: 40px 20px; }
  .page-hero { padding: 60px 20px 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { padding: 40px 20px 24px; }
}
