/* ============================================================
   BAOBAB ADVISORY PARTNERS — style.css
   Palette : Navy #1C2333 | Gold #B8922A | White #FFF | Beige #F5F0E8
   Fonts   : Playfair Display (titres) + Raleway (corps)
   ============================================================ */

/* ---- Skip to content ---- */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.8rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
#hero:focus { outline: none; }

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy  : #1C2333;
  --gold  : #B8922A;
  --white : #FFFFFF;
  --beige : #F5F0E8;
  --gold-dim : rgba(184,146,42,.18);
  --ease  : 0.35s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: #333;
  overflow-x: hidden;
  background: var(--white);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .85rem 1.9rem;
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.eyebrow.gold { color: var(--gold); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy);
  margin-top: .4rem;
  line-height: 1.2;
}
.section-sub {
  font-size: .95rem;
  color: #888;
  max-width: 520px;
  margin: .9rem auto 0;
  line-height: 1.8;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.14); }

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 72px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
}

.nav-logo-sub {
  font-family: 'Raleway', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0 auto;
}

.nav-link {
  position: relative;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--navy);
  padding-bottom: 4px;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.btn-get-in-touch {
  flex-shrink: 0;
  padding: .55rem 1.3rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}
.btn-get-in-touch:hover {
  background: var(--gold);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -25% 0;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,35,51,.85) 0%,
    rgba(28,35,51,.60) 55%,
    rgba(28,35,51,.20) 100%
  );
}

.hero .container { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5rem; }

.hero-content { max-width: 660px; }

.hero-eyebrow {
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.4rem;
  line-height: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.4rem;
}

.hero-body {
  font-size: 1.02rem;
  color: rgba(255,255,255,.82);
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 2.4rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-plus {
  font-size: 1.4rem;
}

.hero-stat-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.52);
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  z-index: 1;
  animation: fadeInUp 1s 1.1s both;
  cursor: default;
}

.scroll-text {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(255,255,255,.4);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,.4);
  animation: arrowBounce .9s ease-in-out infinite alternate;
}
.scroll-arrow svg { width: 100%; height: 100%; }

@keyframes arrowBounce {
  from { transform: translateY(0);  opacity: .4; }
  to   { transform: translateY(7px); opacity: .75; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Hero entrance animations */
.fade-up { opacity: 0; transform: translateY(28px); animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .34s; }
.d4 { animation-delay: .52s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 6rem 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.8rem 2.5rem;
  text-align: center;
  border-right: 1px solid #ececec;
  border-top: 3px solid transparent;
  transition: border-top-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.service-card:last-child { border-right: none; }
.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

/* Large watermark number */
.service-number {
  position: absolute;
  top: .8rem;
  right: 1.2rem;
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  font-weight: 700;
  color: rgba(184,146,42,.07);
  line-height: 1;
  pointer-events: none;
  transition: color var(--ease);
}
.service-card:hover .service-number {
  color: rgba(184,146,42,.13);
}

.service-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1.4rem;
  color: var(--gold);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--navy);
  margin-bottom: .9rem;
  line-height: 1.7;
}
.service-card p {
  font-size: .88rem;
  color: #777;
  line-height: 1.75;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.service-list li {
  font-size: .8rem;
  color: #999;
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--beige); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.about-img { overflow: hidden; background: #b8d0e0; }
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.35);
  transition: transform .9s ease;
}
.about-img:hover img { transform: scale(1.4); }

.about-content {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.about-content h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  color: var(--navy);
  line-height: 1.28;
}
.about-content p {
  font-size: .95rem;
  color: #555;
  line-height: 1.85;
}
.about-content strong { color: var(--navy); font-weight: 700; }

.about-mission {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 4px 4px 0;
}
.about-mission h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.about-mission p {
  font-size: .88rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

/* About stats row */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(28,35,51,.1);
  padding-top: 1.5rem;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.about-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.about-stat-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #999;
  text-transform: uppercase;
}

/* ============================================================
   WHY SENEGAL  (parallax)
   ============================================================ */
.why-senegal {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: -25% 0;
  will-change: transform;
}

.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,35,51,.93);
}

.why-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.why-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin: .5rem 0 3.5rem;
  line-height: 1.35;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.8rem 2rem;
  border: 1px solid rgba(184,146,42,.22);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
  cursor: default;
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  background: rgba(184,146,42,.04);
}

.why-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.4rem;
  color: var(--gold);
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: .85rem;
}
.why-card p {
  font-size: .87rem;
  color: rgba(255,255,255,.62);
  line-height: 1.78;
}

.why-closing {
  margin-top: 3.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   CTA BANNER  (navy, full-width, dramatic)
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--navy);
  padding: 7rem 0;
  overflow: hidden;
  text-align: center;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 700;
  color: rgba(255,255,255,.028);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .06em;
  line-height: 1;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--white);
  line-height: 1.28;
}

.cta-inner p {
  font-size: .96rem;
  color: rgba(255,255,255,.62);
  line-height: 1.85;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: 4.5rem 0 0;
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

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

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 3px 6px;
}

.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: .06em;
}
.footer-logo-sub {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  margin-top: 2px;
}

.footer-tagline {
  font-size: .87rem;
  line-height: 1.9;
}

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--white);
  margin-bottom: 1.3rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.footer-col ul li a {
  font-size: .86rem;
  color: rgba(255,255,255,.55);
  transition: color var(--ease);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact { gap: .9rem !important; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.footer-contact li svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--gold);
  stroke: var(--gold);
}


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   SCROLL REVEAL ANIMATION (Intersection Observer)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .36s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #bbb;
  cursor: pointer;
  padding: .2rem .25rem;
  transition: color var(--ease);
}
.lang-btn.active { color: var(--navy); }
.lang-btn:hover  { color: var(--gold); }
.lang-sep-line   { color: #ddd; font-size: .65rem; pointer-events: none; }

/* ============================================================
   CONTACT SECTION  — floating card, rounded
   ============================================================ */
.contact-section {
  padding: 6rem 0 7rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(184,146,42,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* section header */
.contact-section .section-eyebrow-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}
.contact-section .eyebrow-line { color: var(--gold); }
.contact-section .section-title {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-top: .5rem;
}

/* floating card */
.contact-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
}

/* Left panel */
.contact-info {
  background: linear-gradient(160deg, #243050 0%, #1C2333 100%);
  padding: 3.5rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  border-right: 1px solid rgba(184,146,42,.18);
}
.contact-info .eyebrow { color: var(--gold); font-size: .68rem; }
.contact-info h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--white);
  line-height: 1.28;
}
.contact-info > p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .87rem;
  color: rgba(255,255,255,.65);
}
.contact-details li svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  stroke: var(--gold);
}

/* Right panel — form */
.contact-form-wrap {
  background: var(--white);
  padding: 3.5rem 3.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-group label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: #8a8a9a;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .78rem 1.1rem;
  background: #f8f7f5;
  border: 1.5px solid #e8e5df;
  border-radius: 10px;
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,146,42,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #c2bfba; }

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: 10px;
}

/* Success message */
.form-success {
  display: none;
  align-items: center;
  gap: .8rem;
  background: rgba(184,146,42,.08);
  border: 1.5px solid rgba(184,146,42,.35);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.form-success.visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--gold); }
.form-success p { font-size: .88rem; color: var(--navy); font-weight: 600; margin: 0; }

/* Form field error state */
.form-group input.error,
.form-group textarea.error {
  border-color: #d94f4f;
  background: #fff8f8;
}
.form-error-msg {
  font-size: .72rem;
  color: #d94f4f;
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: .15rem;
  display: none;
}
.form-group.has-error .form-error-msg { display: block; }
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #d94f4f;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217,79,79,.1);
}

/* ---- Button loading state ---- */
.btn--loading { opacity: .8; cursor: not-allowed; }

.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .3rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Form error banner (envoi échoué) ---- */
.form-success.form-error-banner {
  background: rgba(217,79,79,.08);
  border-color: rgba(217,79,79,.35);
}
.form-success.form-error-banner svg { stroke: #d94f4f; }
.form-success.form-error-banner p   { color: #d94f4f; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #a07820; }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; }

/* ---- Lang toggle inside mobile menu ---- */
.nav-lang-mobile {
  display: none;
  align-items: center;
  gap: .4rem;
  padding-top: .5rem;
  border-top: 1px solid #eee;
  margin-top: .25rem;
}
.lang-btn-mobile {
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  padding: .2rem .1rem;
  transition: color var(--ease);
}
.lang-btn-mobile.active { color: var(--navy); }
.lang-btn-mobile:hover  { color: var(--gold); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }

  /* Sections */
  .services        { padding: 5rem 0; }
  .about-content   { padding: 4rem 2.5rem; }
  .why-senegal     { padding: 5rem 0; }
  .cta-banner      { padding: 5rem 0; }
  .contact-section { padding: 5rem 0 6rem; }

  /* Navbar */
  .nav-links { gap: 1.2rem; }
  .nav-inner { padding: 0 1.5rem; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3),
  .service-card:nth-child(4) { border-top: 1px solid #ececec; }

  /* Why Senegal */
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-title { font-size: 1.6rem; }
  .why-card  { padding: 2rem 1.5rem; }

  /* Contact */
  .contact-card { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 1.2rem; }

  /* Navbar */
  .nav-links        { display: none; }
  .btn-get-in-touch { display: none; }
  .hamburger        { display: flex; }
  .nav-inner        { padding: 0 1.2rem; height: 64px; }
  .nav-logo-icon    { height: 44px; }

  .lang-toggle { gap: .15rem; }
  .lang-btn    { font-size: .65rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 1.2rem 1.5rem 1.8rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    gap: .9rem;
    z-index: 800;
  }
  .nav-links.open .nav-link  { font-size: .85rem; }
  .nav-links.open .nav-lang-mobile { display: flex; }

  /* Sections */
  .services        { padding: 3.5rem 0; }
  .why-senegal     { padding: 3.5rem 0; }
  .cta-banner      { padding: 3.5rem 0; }
  .contact-section { padding: 3.5rem 0 4.5rem; }
  .footer          { padding: 3rem 0 1.5rem; }

  /* Hero */
  .hero .container { padding-top: 6rem; padding-bottom: 4rem; }
  .hero h1         { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-body       { font-size: .92rem; max-width: 100%; }
  .hero-ctas       { flex-direction: column; gap: .75rem; }
  .hero-ctas .btn  { width: 100%; justify-content: center; }
  .scroll-indicator { display: none; }

  /* Section headers */
  .section-header   { margin-bottom: 2.2rem; }
  .section-header h2 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); }

  /* About */
  .about-grid    { grid-template-columns: 1fr; }
  .about-img     { min-height: 300px; }
  .about-img img { transform: scale(1.08); }
  .about-content { padding: 2.5rem 1.5rem; gap: 1rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card  {
    border-right: none;
    border-top: 1px solid #ececec;
    padding: 2rem 1.2rem;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2) { border-top: none; }
  .service-card:nth-child(odd) { border-right: 1px solid #ececec; }
  .service-card h3 { font-size: .8rem; }
  .service-icon    { width: 40px; height: 40px; }

  /* Why Senegal */
  .why-grid    { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .why-title   { font-size: 1.25rem; margin-bottom: 2rem; }
  .why-card    { padding: 1.6rem 1rem; }
  .why-icon    { width: 44px; height: 44px; }
  .why-closing { font-size: .87rem; margin-top: 2rem; }

  /* CTA / Partnership */
  .cta-inner       { padding: 0 .5rem; gap: 1.2rem; }
  .cta-inner h2    { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-inner p     { font-size: .9rem; }
  .cta-actions     { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 300px; }

  /* Contact */
  .contact-card      { grid-template-columns: 1fr; border-radius: 14px; }
  .contact-info      { border-right: none; border-bottom: 1px solid rgba(184,146,42,.18); padding: 2.2rem 1.5rem; }
  .contact-form-wrap { padding: 2.2rem 1.5rem; }
  .form-row          { grid-template-columns: 1fr; gap: 1rem; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding: 1.2rem 0; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* Navbar */
  .nav-logo-sub { display: none; }
  .nav-logo-icon { height: 38px; }
  .nav-logo-name { font-size: 1.2rem; }
  .lang-btn      { font-size: .6rem; }

  /* Hero */
  .hero .container { padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .hero h1         { font-size: clamp(1.65rem, 8vw, 2rem); }
  .hero-eyebrow    { font-size: .65rem; }
  .hero-body       { font-size: .88rem; }

  /* About */
  .about-img     { min-height: 240px; }
  .about-img img { transform: scale(1.04); }
  .about-content { padding: 2rem 1rem; }
  .about-mission { padding: .85rem 1rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { border-right: none !important; border-top: 1px solid #ececec; padding: 1.8rem 1rem; }
  .service-card:nth-child(1) { border-top: none; }

  /* Why Senegal */
  .why-grid  { grid-template-columns: 1fr; }
  .why-title { font-size: 1.1rem; }
  .why-card  { padding: 1.4rem .9rem; }

  /* Contact */
  .contact-info      { padding: 1.8rem 1rem; }
  .contact-form-wrap { padding: 1.8rem 1rem; }
  .form-group input,
  .form-group textarea { font-size: .88rem; padding: .72rem .9rem; }
  .contact-card { border-radius: 12px; }

  /* Footer */
  .footer-grid    { gap: 1.5rem; }
  .footer-col h4  { margin-bottom: 1rem; }
  .footer-bottom  { font-size: .72rem; }
}
