/* ══════════════════════════════════════════
   ABDOULAYE.SB — Style Sheet
   Palette du logo :
     Terracotta  #d4613a
     Beige       #e8c9a8
     Vert foncé  #2c5141
     Ivoire      #f7f4ee
   ══════════════════════════════════════════ */

/* ── VARIABLES (modifier ici pour changer toute la palette) ── */
:root {
  /* === COULEURS PRINCIPALES === */
  --terra:        #d4613a;    /* Orange terracotta du logo */
  --terra-light:  #e07d5c;    /* Terracotta clair hover */
  --terra-dim:    rgba(212,97,58,0.12);
  --beige:        #e8c9a8;    /* Beige crème du logo */
  --beige-light:  #f0dcc4;
  --green:        #2c5141;    /* Vert foncé du S */
  --green-light:  #3d6b57;
  --green-dim:    rgba(44,81,65,0.1);
  --ivory:        #f7f4ee;    /* Fond ivoire/blanc cassé */
  --ivory-dark:   #ede9e0;
  --dark:         #1a2e26;    /* Vert très foncé texte */
  --text:         #2c3a32;
  --text-muted:   #6b7d72;
  --text-light:   #9aab9f;
  --white:        #ffffff;

  /* === TYPOGRAPHIE === */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  /* === ESPACEMENTS === */
  --section-py: 96px;
  --container:  1100px;
  --radius:     10px;
  --radius-sm:  6px;

  /* === OMBRES === */
  --shadow-sm:  0 2px 8px rgba(44,81,65,0.08);
  --shadow-md:  0 6px 24px rgba(44,81,65,0.12);
  --shadow-lg:  0 16px 48px rgba(44,81,65,0.15);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background-color: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

em { font-style: italic; color: var(--terra); }

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.body-text strong { color: var(--text); font-weight: 500; }
.body-text.light { color: rgba(247,244,238,0.75); }

/* ── LAYOUT ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: var(--section-py) 0;
}
.section-alt {
  background-color: var(--ivory-dark);
}
.section-dark {
  background-color: var(--green);
}

/* ── LABELS ── */
.label-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
  display: block;
}
.label-tag.center { text-align: center; }
.label-tag.light { color: var(--beige); }

.section-title { margin-bottom: 32px; }
.section-title.center { text-align: center; }
.section-title.light { color: var(--ivory); }
.section-title.light em { color: var(--beige); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.22s ease;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(212,97,58,0.3);
}
.btn-primary:hover {
  background: var(--terra-light);
  box-shadow: 0 6px 22px rgba(212,97,58,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--green);
  border: 1.5px solid var(--green);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--green-dim);
}
.btn.full { width: 100%; justify-content: center; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ivory-dark);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}
.logo-svg { width: 52px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  padding: 9px 22px !important;
  border-radius: var(--radius-sm);
  background: var(--terra) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--terra-light) !important;
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-dark);
  padding: 16px 28px 24px;
  z-index: 99;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mm-link {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--ivory-dark);
  font-weight: 400;
}
.mm-link:last-child { border-bottom: none; color: var(--terra); font-weight: 500; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding-top: 68px;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -120px; right: -180px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,201,168,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 64px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}

.hero-title { margin-bottom: 24px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-sub strong { color: var(--green); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero card (right side) */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--ivory-dark);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid var(--terra);
  opacity: 0.12;
}
.hero-logo-big { width: 160px; height: 128px; margin: 0 auto 16px; }
.hero-card-label {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

/* Stats bar */
.hero-stats {
  background: var(--green);
  padding: 28px 0;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 20px;
  min-width: 120px;
}
.stat-n {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-l {
  font-size: 0.72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,201,168,0.55);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(232,201,168,0.2);
  flex-shrink: 0;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ivory-dark);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-box-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ab-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--terra-dim);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.about-box-line div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-box-line strong {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}
.about-box-line span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--ivory-dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--terra), var(--beige));
  opacity: 0;
  transition: opacity 0.25s;
}
.skill-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--beige);
}
.skill-card:hover::after { opacity: 1; }

.sk-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--terra-dim);
  border-radius: var(--radius-sm);
  color: var(--terra);
  margin-bottom: 18px;
}
.skill-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 600;
}
.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════
   SOCIAL
══════════════════════════════ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.social-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--ivory-dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.social-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--terra);
}

.sc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.sc-icon.ig { background: rgba(212,97,58,0.1); color: var(--terra); }
.sc-icon.fb { background: rgba(44,81,65,0.08); color: var(--green); }
.sc-icon.tt { background: rgba(232,201,168,0.4); color: var(--dark); }

.sc-platform {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}
.sc-handle {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--terra);
  letter-spacing: 0.04em;
}
.sc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.sc-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  margin-top: 4px;
  transition: letter-spacing 0.2s;
}
.social-card:hover .sc-cta { letter-spacing: 0.05em; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232,201,168,0.2);
  background: rgba(247,244,238,0.06);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.contact-line:hover {
  background: rgba(247,244,238,0.1);
  border-color: rgba(232,201,168,0.35);
}
.contact-line.no-link { cursor: default; }
.ci-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,97,58,0.15);
  border-radius: var(--radius-sm);
  color: var(--beige);
  flex-shrink: 0;
}
.contact-line div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ci-label {
  font-size: 0.72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,201,168,0.5);
}
.ci-value {
  font-size: 0.92rem;
  color: var(--ivory);
  font-weight: 400;
}

/* Contact form card */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ivory-dark);
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 28px;
  font-weight: 600;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--ivory);
  border: 1.5px solid var(--ivory-dark);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(212,97,58,0.1);
}
.form-group textarea { min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--green);
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,244,238,0.35);
}
.footer-socials {
  display: flex;
  gap: 16px;
  margin: 8px 0;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247,244,238,0.12);
  color: rgba(247,244,238,0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-socials a:hover {
  color: var(--beige);
  border-color: rgba(232,201,168,0.3);
  background: rgba(232,201,168,0.06);
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(247,244,238,0.2);
  font-family: var(--mono);
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.7s ease-out both; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 48px;
  }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-right { order: -1; }
  .hero-card { padding: 36px 28px; }
  .hero-logo-big { width: 120px; height: 96px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .nav-links { display: none; }
  .burger { display: flex; }

  .stat-divider { display: none; }
  .stat-item { min-width: 50%; padding: 12px 16px; }
}

@media (max-width: 560px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .contact-card { padding: 28px 22px; }
}
