/* ===================================================================
   Ulysse Kevin Adjaho - Personal Branding
   Style : institutionnel & premium (bleus maritimes)
   =================================================================== */

:root {
  /* Palette maritime */
  --navy-900: #0a1a2f;
  --navy-800: #0f2740;
  --navy-700: #143352;
  --navy-600: #1c4670;
  --blue-500: #2f6fb0;
  --blue-400: #4a90d9;
  --accent:   #38bdf8;   /* bleu clair / vague */
  --tm-yellow: #f2df74;  /* Toastmasters "Happy Yellow" - filigrane de marque */

  --ink:      #0f1c2e;
  --slate:    #4a5a6f;
  --slate-2:  #6b7a8d;
  --line:     #e4e9ef;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fb;
  --white:    #ffffff;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 10px 40px rgba(15, 39, 64, 0.10);
  --shadow-sm: 0 4px 18px rgba(15, 39, 64, 0.08);

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1140px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(47, 111, 176, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 111, 176, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 16px;
  letter-spacing: .5px;
}
.brand-name { font-family: var(--font-head); font-weight: 400; font-size: 17px; color: var(--white); transition: color .3s ease; }
.brand-name strong { font-weight: 700; }
.scrolled .brand-name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 14px;
  color: rgba(255,255,255,0.85); transition: color .2s ease;
}
.nav a:hover { color: var(--white); }
.scrolled .nav a { color: var(--slate); }
.scrolled .nav a:hover { color: var(--blue-500); }
.nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--accent); color: var(--navy-900) !important; font-weight: 600;
}
.nav-cta:hover { background: #6fd0fb; }
.scrolled .nav-cta { color: var(--navy-900) !important; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lang-switch:hover { color: #fff; border-color: rgba(56,189,248,0.6); background: rgba(255,255,255,0.06); }
.lang-switch .lang-current { color: var(--tm-yellow); }
.lang-switch .lang-sep { opacity: 0.4; }
.scrolled .lang-switch { color: var(--slate); border-color: var(--line); }
.scrolled .lang-switch:hover { color: var(--blue-500); border-color: var(--blue-400); }
.scrolled .lang-switch .lang-current { color: var(--blue-500); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.scrolled .nav-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(56,189,248,0.18), transparent 45%),
    radial-gradient(circle at 92% 82%, rgba(242,223,116,0.10), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(47,111,176,0.25), transparent 45%);
  pointer-events: none;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr 0.85fr;
  gap: 48px; align-items: center;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 15px; border: 1px solid rgba(56,189,248,0.35);
  border-radius: 999px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.65rem, 3.4vw, 2.8rem);
  line-height: 1.14; letter-spacing: -0.4px;
  color: var(--white); margin-bottom: 22px;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(120deg, var(--accent), #a5e4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
}
/* Hero portrait */
.hero-portrait { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-fallback {
  position: absolute; inset: 0; display: none;
  place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 5rem; letter-spacing: 2px;
  color: rgba(255,255,255,0.14);
}
.portrait-frame.portrait-empty { display: grid; place-items: center; }
.portrait-frame.portrait-empty .portrait-fallback { display: grid; }
.portrait-badge {
  position: absolute; left: -18px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,26,47,0.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(56,189,248,0.3);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 12.5px;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.2); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.3); border-radius: 999px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===== Stats ===== */
.stats {
  background: var(--white);
  margin-top: -1px;
  position: relative; z-index: 3;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat {
  padding: 34px 26px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  color: var(--blue-500); line-height: 1;
  letter-spacing: -0.4px;
}
.stat-label { display: block; margin-top: 8px; font-size: 12.5px; color: var(--slate-2); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(circle at 85% 15%, rgba(242,223,116,0.07), transparent 42%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-eyebrow {
  position: relative; display: inline-block; padding-bottom: 11px;
  font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 13px;
}
.section-eyebrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 2px; border-radius: 2px; background: var(--tm-yellow);
}
.contact-text .section-eyebrow::after { left: 0; transform: none; }
.section-eyebrow.light { color: var(--accent); }
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.22; letter-spacing: -0.2px;
}
.section-dark .section-title, .section-dark .section-head { color: var(--white); }
.section-sub { margin-top: 14px; color: var(--slate); font-size: 0.95rem; }
.section-dark .section-sub { color: rgba(255,255,255,0.8); }

/* ===== Cards (expertise) ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tm-yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(47,111,176,0.12), rgba(56,189,248,0.12));
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.9rem; }

/* ===== Case study ===== */
.case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.case-main { display: flex; flex-direction: column; gap: 26px; }
.case-block h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.case-block p { color: rgba(255,255,255,0.85); }
.case-block strong { color: var(--white); }
.case-side {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
}
.case-side h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 18px; color: var(--white); }
.case-list li {
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.78); font-size: 0.95rem;
}
.case-list li:last-child { border-bottom: none; }
.case-list span { display: block; font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.98rem; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--blue-400), var(--line));
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47,111,176,0.12);
}
.tl-date {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--blue-500); margin-bottom: 6px;
}
.tl-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 2px; }
.tl-org { color: var(--slate-2); font-size: 0.88rem; font-weight: 500; margin-bottom: 7px; }
.tl-body > p:last-child { color: var(--slate); font-size: 0.92rem; }

/* ===== Education ===== */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.edu-heading {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--blue-500);
  display: inline-block;
}
.edu-col > .edu-heading { display: block; }
.edu-item { display: flex; gap: 14px; margin-bottom: 20px; }
.edu-year {
  flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--white); background: var(--blue-500);
  padding: 4px 10px; border-radius: 6px; height: fit-content; min-width: 58px; text-align: center;
}
.edu-item h4 { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.edu-item p { color: var(--slate-2); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-text .section-eyebrow { text-align: left; }
.contact-lead { color: rgba(255,255,255,0.82); margin: 18px 0 30px; }
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.contact-method {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: background .2s ease, border-color .2s ease;
}
a.contact-method:hover { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.4); }
.cm-label { font-family: var(--font-head); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.cm-value { color: var(--white); font-size: 0.95rem; word-break: break-word; }

.contact-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s ease, background .2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); background: var(--white);
  box-shadow: 0 0 0 4px rgba(74,144,217,0.12);
}

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-brand { font-family: var(--font-head); font-size: 0.95rem; color: var(--white); font-weight: 400; }
.footer-brand strong { font-weight: 700; }
.footer-copy { font-size: 0.88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Justification des paragraphes ===== */
.hero-lead,
.card p,
.case-block p,
.tl-body > p:last-child,
.contact-lead {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; justify-self: start; max-width: 260px; }
  .portrait-badge { left: auto; right: -10px; }
  .case { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; gap: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); transform: translateY(-40px); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    background: var(--navy-800); padding: 40px; transform: translateX(100%);
    transition: transform .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
  .scrolled .nav a { color: rgba(255,255,255,0.9); }
  .nav-toggle { display: flex; z-index: 101; }
  .cards { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 70px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; transform: translateY(-30px); }
  .stat { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  body { font-size: 16px; }
}
