/* ============================================================
   ÉLITES SOLIDAIRES BALESSING — Design System
   Palette : Or #C9A84C / Bordeaux #7B1F2E / Ivoire #F9F5EE
   Fonts   : Playfair Display (titres) + Source Sans 3 (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Cuivre/Bronze chaud — couleur principale des lettres ESB */
  --or:        #B8722A;
  --or-light:  #D4956A;
  --or-dark:   #8A4E18;

  /* Brun acajou profond — zones sombres des lettres */
  --bordeaux:  #5C2E0E;
  --bordeaux-dark: #3D1C08;

  /* Noir du fond logo */
  --noir:      #0A0806;

  /* Fonds clairs chauds — version papier ivoire */
  --gris-fond: #F5EFE6;
  --gris-clair:#EDE3D6;

  /* Textes */
  --texte:     #2C1A0E;
  --texte-clair:#7A5A3C;

  --blanc:     #FFFFFF;

  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'Source Sans 3', sans-serif;
  --radius:    4px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 30px rgba(0,0,0,0.13);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-corps);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-titre); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1em; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-titre);
  color: var(--noir);
  margin-bottom: 16px;
}
.section-title span { color: var(--bordeaux); }
.section-title.light { color: var(--blanc); }
.section-title.light span { color: var(--or-light); }
.section-intro {
  color: var(--texte-clair);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 50px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.divider-or {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--bordeaux), var(--or));
  margin: 16px 0 0;
  border-radius: 2px;
}
.divider-or.center { margin: 16px auto 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-corps);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-or {
  background: linear-gradient(135deg, var(--or-dark), var(--or));
  color: var(--blanc);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-or:hover {
  background: linear-gradient(135deg, var(--or), var(--or-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.45);
  color: var(--blanc);
}
.btn-bordeaux {
  background: var(--bordeaux);
  color: var(--blanc);
  box-shadow: 0 4px 16px rgba(123,31,46,0.3);
}
.btn-bordeaux:hover {
  background: var(--bordeaux-dark);
  transform: translateY(-2px);
  color: var(--blanc);
}
.btn-outline {
  border: 2px solid var(--or);
  color: var(--or);
  padding: 12px 30px;
}
.btn-outline:hover {
  background: var(--or);
  color: var(--blanc);
}
.btn-outline-blanc {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--blanc);
  padding: 12px 30px;
}
.btn-outline-blanc:hover {
  border-color: var(--or);
  color: var(--or);
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--noir);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar-contact { display: flex; gap: 24px; }
.top-bar-contact a {
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.top-bar-contact a:hover { color: var(--or); }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.top-bar-social a:hover { color: var(--or); }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--blanc);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--or);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo img { height: 56px; width: auto; }
.logo-text {
  display: flex; flex-direction: column;
}
.logo-text strong {
  font-family: var(--font-titre);
  font-size: 1.1rem; color: var(--bordeaux); line-height: 1;
}
.logo-text span { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--or-dark); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--texte);
  position: relative; padding-bottom: 4px;
  transition: color var(--transition);
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--or);
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--bordeaux); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }

/* Mobile menu toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--bordeaux); border-radius: 2px; transition: var(--transition); }

/* ── PAGE BANNER ── */
.page-banner {
  background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux) 50%, #2D0E15 100%);
  position: relative; overflow: hidden;
  padding: 80px 0 70px;
  text-align: center;
}
.page-banner::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='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-or-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.page-banner h1 {
  color: var(--blanc); font-size: clamp(1.8rem, 4vw, 3rem);
  position: relative;
}
.page-banner .breadcrumb {
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  margin-top: 12px; position: relative;
  display: flex; justify-content: center; gap: 8px; align-items: center;
}
.page-banner .breadcrumb a { color: var(--or); }
.page-banner .breadcrumb span { color: var(--or-light); }

/* ── CARDS ── */
.card {
  background: var(--blanc);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 28px; }
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--or);
  display: block; margin-bottom: 8px;
}
.card-title { font-family: var(--font-titre); font-size: 1.25rem; margin-bottom: 10px; color: var(--noir); }
.card-text { color: var(--texte-clair); font-size: 0.95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--bordeaux); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 16px; transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

/* ── STAT ITEMS ── */
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: var(--font-titre);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--or);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── ICON BOX ── */
.icon-box { text-align: center; padding: 36px 24px; }
.icon-box-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem; color: var(--or);
  box-shadow: 0 4px 20px rgba(123,31,46,0.3);
}
.icon-box h4 { margin-bottom: 10px; }
.icon-box p { color: var(--texte-clair); font-size: 0.95rem; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--texte-clair);
}
.form-control {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--gris-clair);
  border-radius: var(--radius);
  font-family: var(--font-corps); font-size: 1rem;
  color: var(--texte);
  background: var(--blanc);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: #BDB5AC; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--noir);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
  border-top: 4px solid var(--bordeaux);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.8; }
.footer-title {
  font-family: var(--font-titre);
  font-size: 1.05rem; color: var(--or-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--or); }
.footer-links a::before { content: '›'; color: var(--or); }
.footer-contact-item {
  display: flex; gap: 12px; margin-bottom: 14px;
  font-size: 0.9rem;
}
.footer-contact-item i { color: var(--or); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 50px; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--or); border-color: var(--or); color: var(--blanc); }

/* ── UTILITIES ── */
.bg-gris    { background: var(--gris-fond); }
.bg-noir    { background: var(--noir); }
.bg-bordeaux{ background: var(--bordeaux); }
.text-or    { color: var(--or); }
.text-bordeaux { color: var(--bordeaux); }
.text-center{ text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.fw-bold { font-weight: 700; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.animate-fadeup { animation: fadeUp 0.7s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanc); padding: 24px; box-shadow: var(--shadow-md);
    border-top: 3px solid var(--or); gap: 20px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .top-bar { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
