/* ============================================================
   ADECO-SK — assets/css/main.css
   Design system complet, mobile-first, sans framework
   ============================================================ */

/* ─── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── VARIABLES CSS ─────────────────────────────────────────── */
:root {
  --green-dark:   #1a5c2e;
  --green-mid:    #2d7a42;
  --green-light:  #e8f5e0;
  --gold:         #f9a825;
  --gold-dark:    #e65100;
  --gold-light:   #fff8e1;
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --gray-800:     #1e293b;
  --text:         #1e293b;
  --text-light:   #64748b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --container:    1200px;
  --nav-h:        72px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.25; color: var(--gray-800); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { line-height: 1.75; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section-lg { padding: 5.5rem 0; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem;
}
.navbar-logo { display: flex; align-items: center; gap: .75rem; }
.navbar-logo img { height: 48px; width: auto; }
.navbar-logo .brand-text { font-family: var(--font-serif); }
.navbar-logo .brand-name { font-size: 1.2rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.navbar-logo .brand-sub  { font-size: .65rem; color: var(--text-light); letter-spacing: .05em; text-transform: uppercase; }

.navbar-menu { display: flex; align-items: center; gap: 1.5rem; }
.navbar-menu a {
  font-size: .875rem; font-weight: 500; color: var(--gray-600);
  padding: .375rem 0; position: relative; transition: color var(--transition);
}
.navbar-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active { color: var(--green-dark); }
.navbar-menu a:hover::after, .navbar-menu a.active::after { transform: scaleX(1); }
.navbar-menu .btn-contact {
  background: var(--green-dark); color: var(--white) !important;
  padding: .5rem 1.25rem !important; border-radius: 50px;
}
.navbar-menu .btn-contact::after { display: none; }
.navbar-menu .btn-contact:hover { background: var(--green-mid); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--green-dark); transition: var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-menu {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); padding: 1rem 0 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-top: 2px solid var(--green-light);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: .875rem 1.5rem; width: 100%; border-bottom: 1px solid var(--gray-100); }
  .navbar-menu a::after { display: none; }
  .navbar-menu .btn-contact { margin: 1rem 1.5rem 0; width: calc(100% - 3rem); text-align: center; }
}

/* ─── PAGE WRAPPER ───────────────────────────────────────────── */
.page-content { padding-top: var(--nav-h); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; background: var(--green-dark);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .25; transition: opacity 1s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,92,46,.95) 0%, rgba(26,92,46,.75) 60%, rgba(249,168,37,.15) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(249,168,37,.2); border: 1px solid rgba(249,168,37,.5);
  color: var(--gold); padding: .375rem 1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--white); margin-bottom: 1rem; }
.hero-title span { color: var(--gold); }
.hero-slogan { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px; font-weight: 600;
  font-size: .9rem; transition: all var(--transition); cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--green-dark); }
.btn-primary:hover { background: #e65100; color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,168,37,.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-green { background: var(--green-dark); color: var(--white); }
.btn-green:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost:hover { background: var(--green-dark); color: var(--white); }
.btn-sm { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ─── STATS BAND ─────────────────────────────────────────────── */
.stats-band { background: var(--gold); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item { padding: .5rem; }
.stat-number { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.stat-label  { font-size: .8rem; font-weight: 600; color: var(--green-dark); opacity: .8; text-transform: uppercase; letter-spacing: .05em; }

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .375rem .875rem; border-radius: 50px; margin-bottom: .875rem;
}
.section-title { margin-bottom: .75rem; }
.section-title span { color: var(--green-dark); }
.section-desc { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.title-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.title-line::after { content: ''; flex: 1; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid var(--gray-200);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .25rem .75rem; border-radius: 50px; margin-bottom: .75rem;
}
.card-badge-green { background: var(--green-light); color: var(--green-dark); }
.card-badge-gold  { background: var(--gold-light); color: #b45309; }
.card-title { font-size: 1.1rem; margin-bottom: .5rem; color: var(--gray-800); }
.card-title a:hover { color: var(--green-dark); }
.card-text  { color: var(--text-light); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.card-meta  { font-size: .8rem; color: var(--gray-400); display: flex; align-items: center; gap: .5rem; }
.card-link  { color: var(--green-dark); font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; gap: .25rem; }
.card-link:hover { gap: .5rem; }

/* ─── SERVICE CARDS ──────────────────────────────────────────── */
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--gray-200); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1.25rem;
}
.service-title { font-size: 1.2rem; margin-bottom: .75rem; }
.service-list { color: var(--text-light); font-size: .9rem; }
.service-list li { padding: .25rem 0; padding-left: 1rem; position: relative; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ─── SECTOR CARDS ───────────────────────────────────────────── */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.sector-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; border: 1px solid var(--gray-200); transition: all var(--transition);
  cursor: pointer;
}
.sector-card:hover { background: var(--green-dark); color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector-card:hover .sector-icon { background: rgba(249,168,37,.2); }
.sector-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  margin: 0 auto 1rem; transition: background var(--transition);
}
.sector-name { font-size: .9rem; font-weight: 600; }

/* ─── BLOG GRID ──────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .5rem 1.25rem; border-radius: 50px; font-size: .85rem; font-weight: 500;
  border: 2px solid var(--gray-200); color: var(--text-light); background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--green-dark); color: var(--green-dark); background: var(--green-light); }
.blog-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.page-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 2px solid var(--gray-200); color: var(--text-light);
  font-weight: 600; font-size: .875rem; transition: all var(--transition);
}
.page-link.active, .page-link:hover { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.page-link-wide { width: auto; padding: 0 1rem; }

/* ─── ARTICLE SINGLE ─────────────────────────────────────────── */
.article-cover { width: 100%; max-height: 500px; object-fit: cover; }
.article-header { padding: 2.5rem 0 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2, .article-body h3 { margin: 2rem 0 1rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--gold-light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-600);
}
.article-toc { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.article-toc h4 { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); margin-bottom: 1rem; }
.article-toc ul { padding-left: 1rem; }
.article-toc li { margin: .375rem 0; }
.article-toc a { color: var(--green-dark); font-size: .9rem; }
.article-toc a:hover { text-decoration: underline; }
.toc-sub { padding-left: 1.25rem !important; }

/* ─── SHARE BUTTONS ──────────────────────────────────────────── */
.share-buttons { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin: 2rem 0; }
.share-label { font-weight: 600; font-size: .875rem; margin-right: .5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem;
  border-radius: 50px; font-size: .8rem; font-weight: 600; transition: all var(--transition);
}
.share-fb       { background: #1877f2; color: #fff; }
.share-wa       { background: #25d366; color: #fff; }
.share-tw       { background: #000; color: #fff; }
.share-li       { background: #0a66c2; color: #fff; }
.share-tg       { background: #2ca5e0; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

/* ─── ARTICLE NAVIGATION ─────────────────────────────────────── */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0; }
.article-nav-link {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.25rem; display: flex; gap: 1rem; align-items: center; transition: all var(--transition);
}
.article-nav-link:hover { background: var(--green-light); border-color: var(--green-dark); }
.article-nav-link img { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.article-nav-dir { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); font-weight: 600; }
.article-nav-title { font-size: .9rem; font-weight: 600; color: var(--gray-800); }
.article-nav-link.prev { flex-direction: row; text-align: left; }
.article-nav-link.next { flex-direction: row-reverse; text-align: right; }

/* ─── COMMENTS ───────────────────────────────────────────────── */
.comments-section { margin: 3rem 0; }
.comment { padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius-lg); margin-bottom: 1rem; }
.comment-reply { margin-left: 2.5rem; margin-top: .75rem; border-left: 3px solid var(--gold); }
.comment-author { font-weight: 600; color: var(--green-dark); }
.comment-date   { font-size: .8rem; color: var(--gray-400); margin-left: .5rem; }
.comment-text   { margin-top: .5rem; }
.comment-form   { background: var(--gray-50); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2rem; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: var(--gray-800); }
.form-control {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: .95rem; transition: border-color var(--transition); background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(26,92,46,.1); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-control.error { border-color: #ef4444; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: .375rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ─── MÉDIATHÈQUE ────────────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.media-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-item:hover img { transform: scale(1.08); }
.media-caption {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,92,46,.9) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.media-item:hover .media-caption { opacity: 1; }
.media-caption p { color: var(--white); font-size: .85rem; font-weight: 500; line-height: 1.4; }
.media-cat-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--gold); color: var(--green-dark); font-size: .7rem; font-weight: 700;
  padding: .25rem .625rem; border-radius: 50px;
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); display: block; }
.lightbox-caption { color: var(--white); text-align: center; margin-top: 1rem; font-size: .9rem; opacity: .85; }
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
  background: rgba(255,255,255,.15); border-radius: 50%; color: var(--white);
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid rgba(255,255,255,.3); transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,.15);
  border-radius: 50%; color: var(--white); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid rgba(255,255,255,.3); transition: all var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .8rem; }

/* ─── RÉALISATIONS TIMELINE ──────────────────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--green-dark), var(--gold)); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green-dark); border: 3px solid var(--gold);
  top: .5rem;
}
.timeline-year { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .5rem; }
.timeline-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .375rem; }
.timeline-desc { color: var(--text-light); font-size: .9rem; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info-card { background: var(--green-dark); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; }
.contact-info-card h3 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1.3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-icon { font-size: 1.25rem; margin-top: .1rem; flex-shrink: 0; }
.contact-info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; font-weight: 600; }
.contact-info-value { font-size: .95rem; margin-top: .15rem; }
.contact-info-value a { color: var(--gold); }
.contact-info-value a:hover { text-decoration: underline; }
.contact-send-methods { display: flex; gap: 1rem; margin-top: 1.5rem; }
.method-radio input { display: none; }
.method-radio label {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem;
  border: 2px solid rgba(255,255,255,.2); border-radius: 50px; cursor: pointer;
  font-size: .875rem; font-weight: 500; transition: all var(--transition);
}
.method-radio input:checked + label { border-color: var(--gold); background: rgba(249,168,37,.15); color: var(--gold); }

/* ─── PARTENAIRES ────────────────────────────────────────────── */
.partners-strip { background: var(--gray-50); padding: 2.5rem 0; overflow: hidden; }
.partners-grid { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.partner-logo { height: 48px; width: auto; opacity: .6; filter: grayscale(1); transition: all var(--transition); }
.partner-logo:hover { opacity: 1; filter: none; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--gray-800); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 48px; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.8; }
.footer-col h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--white); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .625rem; }
.footer-col ul li a { font-size: .875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact p { font-size: .875rem; margin-bottom: .5rem; display: flex; gap: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .8rem; }

/* ─── PAGE HERO (intérieure) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 4rem 0; color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.6); font-size: .875rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.4); font-size: .875rem; }
.breadcrumb .current { color: var(--gold); font-size: .875rem; font-weight: 600; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; display: flex; gap: .75rem; align-items: flex-start; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: var(--gold-light); color: #92400e; border: 1px solid var(--gold); }

/* ─── LOADER ─────────────────────────────────────────────────── */
.btn-loader { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── ADMIN BASE ─────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--green-dark); color: var(--white);
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-header img { height: 40px; margin-bottom: .5rem; }
.admin-sidebar-header p { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav a {
  display: flex; align-items: center; gap: .875rem; padding: .75rem 1.5rem;
  color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.1); border-right: 3px solid var(--gold); }
.admin-nav a .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-nav .badge-count {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 50px;
}
.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 50;
}
.admin-content { padding: 2rem; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-card-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gray-800); }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border-left: 4px solid var(--green-dark); box-shadow: var(--shadow-sm); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.blue { border-left-color: #3b82f6; }
.stat-card .number { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--gray-800); }
.stat-card .label  { font-size: .8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.admin-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── TABLE ADMIN ────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--gray-50); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); border-bottom: 2px solid var(--gray-200); }
.admin-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .9rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.status-published { background: #dcfce7; color: #166534; }
.status-draft     { background: var(--gray-100); color: var(--gray-600); }
.status-unread    { background: #fee2e2; color: #991b1b; }
.status-read      { background: var(--gray-100); color: var(--gray-600); }
.status-replied   { background: var(--green-light); color: var(--green-dark); }
.status-archived  { background: #fef3c7; color: #92400e; }
.action-btns { display: flex; gap: .5rem; }
.action-btn {
  padding: .35rem .75rem; border-radius: var(--radius); font-size: .78rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all var(--transition);
}
.action-btn-edit   { background: var(--green-light); color: var(--green-dark); border-color: var(--green-dark); }
.action-btn-delete { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.action-btn-view   { background: var(--gold-light); color: #92400e; border-color: var(--gold); }
.action-btn:hover  { opacity: .8; }

/* ─── ADMIN MESSAGES ─────────────────────────────────────────── */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .75rem 1.5rem; font-size: .875rem; font-weight: 600; color: var(--text-light);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; border: none;
  transition: color var(--transition);
}
.tab-btn.active { color: var(--green-dark); border-bottom: 2px solid var(--green-dark); }
.message-detail { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1.5rem; }
.reply-form textarea { width: 100%; min-height: 120px; padding: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); resize: vertical; font-family: inherit; }
.reply-form textarea:focus { outline: none; border-color: var(--green-dark); }

/* ─── ADMIN UPLOAD ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 3rem;
  text-align: center; cursor: pointer; transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--green-dark); background: var(--green-light); }
.upload-progress { background: var(--gray-200); border-radius: 50px; height: 8px; overflow: hidden; margin-top: .5rem; }
.upload-progress-bar { height: 100%; background: var(--green-dark); transition: width .3s ease; }
.media-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.media-admin-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: grab; border: 2px solid transparent; }
.media-admin-item.dragging { opacity: .5; border-color: var(--gold); }
.media-admin-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-admin-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  opacity: 0; transition: opacity var(--transition);
}
.media-admin-item:hover .media-admin-overlay { opacity: 1; }

/* ─── NOTIFICATIONS ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--green-dark); color: var(--white); padding: 1rem 1.5rem;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0; transition: all .3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sector-grid    { grid-template-columns: repeat(3, 1fr); }
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); }
  .media-grid     { grid-template-columns: repeat(3, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 2fr); }
  .admin-grid-4   { grid-template-columns: repeat(2, 1fr); }
  .media-admin-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section        { padding: 3rem 0; }
  .sector-grid    { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .media-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .article-nav    { grid-template-columns: 1fr; }
  .admin-sidebar  { transform: translateX(-100%); transition: transform var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main     { margin-left: 0; }
  .admin-grid-4   { grid-template-columns: 1fr 1fr; }
  .admin-grid-2   { grid-template-columns: 1fr; }
  .media-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav   { width: 36px; height: 36px; font-size: 1rem; }
  .lightbox-prev  { left: .75rem; }
  .lightbox-next  { right: .75rem; }
  .hero           { min-height: 70vh; }
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green-dark); }
.text-muted  { color: var(--text-light); }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
