/* Couleurs de la marque (cf. logo et applications) */
:root {
  --orange: #F5760A;
  --orange-deep: #B4470A;
  --orange-wash: #FFF4EA;
  --green: #1F8437;
  --green-deep: #14722F;
  --green-wash: #F0F7F1;
  --pink: #E5117D;
  --pink-deep: #C20E6B;
  --pink-wash: #FDF1F7;
  --ink: #23272F;
  --muted: #5d6470;
  --line: #e7e5e1;
  --bg: #ffffff;
  --wash: #faf8f5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 39, 47, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ───── Boutons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(245, 118, 10, .35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #e56a00; }
.btn:focus-visible, .tab:focus-visible, .burger:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(229, 17, 125, .45); outline-offset: 2px;
}
.btn-small { padding: 9px 18px; font-size: .92rem; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .14); box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

/* ───── En-tête ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0, 0, 0, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.2px; }
.brand b { color: var(--green); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s; }
.menu a:not(.btn):hover { color: var(--orange); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2.5px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ───── Hero ───── */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: #2b2f38 url("images/abidjan.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 22, 28, .88) 0%, rgba(20, 22, 28, .62) 55%, rgba(194, 14, 107, .35) 100%);
}
.hero-inner { padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 7vw, 84px); max-width: 780px; margin-left: max(16px, calc((100% - 1120px) / 2)); }
.eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.hero .eyebrow { color: #ffb27a; }
h1 { margin: 0 0 18px; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
h1 span { color: #ffb27a; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 38px; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.facts div { min-width: 96px; }
.facts dt { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.facts dd { margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* ───── Sections ───── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }

/* Cartes activités */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 5px solid var(--orange); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(35, 39, 47, .16); }
.card-green { border-top-color: var(--green); }
.card-pink { border-top-color: var(--pink); }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wash); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); margin: 0 0 16px; font-size: .97rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.tag-orange { background: var(--orange-wash); color: var(--orange-deep); }
.tag-green { background: var(--green-wash); color: var(--green-deep); }
.tag-pink { background: var(--pink-wash); color: var(--pink-deep); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; }
.chips li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); }

/* Onglets */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; box-shadow: var(--shadow); }
.tab { border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--muted); padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { color: #fff; }
.tab-orange[aria-selected="true"] { background: var(--orange); }
.tab-green[aria-selected="true"] { background: var(--green); }
.tab-pink[aria-selected="true"] { background: var(--pink); }
.panel { display: none; }
.panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.steps { --c: var(--orange); list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.steps-green { --c: var(--green); }
.steps-pink { --c: var(--pink); }
.steps li { counter-increment: s; position: relative; background: #fff; border-radius: var(--radius); padding: 58px 20px 22px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(s); position: absolute; top: 16px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800;
}
.steps b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .93rem; display: block; }

/* Structure */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
.pillar-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 1.9rem; }
.pi-pink { background: var(--pink-wash); }
.pi-orange { background: var(--orange-wash); }
.pi-green { background: var(--green-wash); }
.core { position: relative; margin-top: 34px; text-align: center; }
.core::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: -22px; height: 22px; border: 2px dashed #cfcac3; border-bottom: 0; border-radius: 14px 14px 0 0; }
.core-bar { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--green)); margin-bottom: 16px; }
.core p { margin: 0; color: var(--muted); }
.core b { color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.value { padding-left: 18px; border-left: 4px solid var(--orange); }
.value:nth-child(2) { border-color: var(--green); }
.value:nth-child(3) { border-color: var(--pink); }
.value h4 { margin: 0 0 6px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Villes */
.section-dark { background: var(--ink); color: #fff; }
.villes { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.villes-text p { color: rgba(255, 255, 255, .78); }
.city-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.city-list li { padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); font-weight: 600; font-size: .92rem; transition: background .2s, border-color .2s; }
.city-list li:first-child { background: var(--orange); border-color: var(--orange); }
.city-list li:hover { background: rgba(255, 255, 255, .12); }
.villes-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.villes-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.partner img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.partner div { padding: 20px 22px 24px; }
.partner p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-text p { color: var(--muted); }
.contact-logo { margin-top: 28px; opacity: .95; }
.form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--pink); }
.form input.invalid, .form textarea.invalid { border-color: #c62828; }
.form-msg { margin: 0; min-height: 1.2em; font-size: .9rem; font-weight: 600; color: var(--green-deep); }
.form-msg.error { color: #c62828; }

/* Pied de page */
.site-footer { background: #17191e; color: rgba(255, 255, 255, .75); padding: 36px 0; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.foot-brand b { color: #6fd18a; }
.credits a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }

/* ───── Pages légales (CGU, confidentialité, suppression de compte) ───── */
.legal { padding-top: clamp(36px, 6vw, 64px); }
.legal-body { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: -.01em; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #3b414c; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 5px 0; }
.legal a { color: var(--pink-deep); font-weight: 600; }
.legal-date { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.legal-nav a { font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--wash); }
.legal-nav a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.legal .note { background: var(--orange-wash); border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 12px; }
.legal .note-green { background: var(--green-wash); border-left-color: var(--green); }
.legal .btn { color: #fff; margin: 6px 0 4px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───── Adaptatif ───── */
@media (max-width: 900px) {
  .cards, .partners, .pillars, .values { grid-template-columns: 1fr; }
  .villes, .contact { grid-template-columns: 1fr; }
  .core::before { display: none; }
  .hero-inner { margin-left: auto; margin-right: auto; width: min(1120px, 100% - 32px); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu .btn { margin-top: 14px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding-inline: 10px; }
  .facts { gap: 14px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card img, .btn { transition: none; }
  .panel.active { animation: none; }
}
