/* =============================================
   AGENTIA COMMERCE — style.css
   Palette: Blanc ivoire · Noir charbon · Accent #0A6CFF
   Typo: Cormorant Garamond (titres) · DM Sans (corps)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg:       #F7F6F3;
  --surface:  #FFFFFF;
  --ink:      #111110;
  --ink-2:    #4A4A47;
  --ink-3:    #8A8A86;
  --accent:   #0A6CFF;
  --accent-2: #0052CC;
  --border:   #E4E3DE;
  --radius:   10px;
  --shadow:   0 2px 24px rgba(0,0,0,.07);
  --font-d:   'Cormorant Garamond', Georgia, serif;
  --font-b:   'DM Sans', system-ui, sans-serif;
  --max:      1160px;
  --ease:     cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Utilitaires ───────────────────────────── */
.container { width: 90%; max-width: var(--max); margin: 0 auto; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Typographie ───────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p  { font-size: 1.0125rem; color: var(--ink-2); }

/* ── Boutons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-b); font-size: .9rem; font-weight: 500;
  padding: .85rem 1.8rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(10,108,255,.28);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(10,108,255,.35);
}
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-large { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* ── Navigation ────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(247,246,243,.88);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
#navbar.scrolled { border-color: var(--border); padding: .7rem 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
}
.nav-logo-icon {
  width: 32px; height: 32px;
}
.nav-logo-text {
  font-family: var(--font-d); font-size: 1.4rem; font-weight: 600;
  letter-spacing: -.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: .9rem; font-weight: 400;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 1rem; }

/* ── Hamburger mobile ──────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .3rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
.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); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg); padding: 5rem 1.5rem 2rem;
  flex-direction: column; gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-d); font-size: 2rem; font-weight: 300;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: .8rem;
}

/* ── Hero ──────────────────────────────────── */
#hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 5rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(10,108,255,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(10,108,255,.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(10,108,255,.08); color: var(--accent);
  border: 1px solid rgba(10,108,255,.2);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .8rem; font-weight: 500; margin-bottom: 1.8rem;
  animation: fadeUp .6s var(--ease) both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.4); } }

.hero-content h1 {
  animation: fadeUp .6s .1s var(--ease) both;
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: normal; color: var(--accent);
}
.hero-content p {
  font-size: 1.15rem; max-width: 560px;
  animation: fadeUp .6s .2s var(--ease) both;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeUp .6s .3s var(--ease) both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 4rem;
  animation: fadeUp .6s .45s var(--ease) both;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-d); font-size: 2.1rem; font-weight: 500;
  color: var(--ink); line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--ink-3); margin-top: .2rem; }

/* ── Section générique ─────────────────────── */
section { padding: 6rem 0; }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 560px; margin: 0 auto 3.5rem; }

/* ── Problème / Solution ───────────────────── */
#probleme { background: var(--ink); color: #fff; }
#probleme h2, #probleme p { color: #fff; }
#probleme p { color: rgba(255,255,255,.7); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; border: 2px solid rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden;
}
.problem-cell {
  padding: 2.5rem 2rem; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
}
.problem-cell:hover { background: rgba(255,255,255,.06); }
.problem-cell .icon { font-size: 1.6rem; margin-bottom: .8rem; }
.problem-cell h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.problem-cell p { font-size: .9rem; }

/* ── Services ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; background: var(--border);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--surface); padding: 2.5rem 2rem;
  transition: background .2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover { background: #FAFAF8; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(10,108,255,.08); display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; margin-bottom: 1.2rem;
}
.service-card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.service-card p { font-size: .9rem; }
.service-tag {
  display: inline-block; margin-top: 1.2rem;
  font-size: .73rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: rgba(10,108,255,.07);
  padding: .25rem .65rem; border-radius: 4px;
}

/* ── Chiffres clés ─────────────────────────── */
#chiffres { background: var(--surface); }
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.metric-card {
  text-align: center; padding: 2.5rem 1.5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.metric-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.metric-num {
  font-family: var(--font-d); font-size: 3.2rem; font-weight: 500;
  color: var(--accent); line-height: 1; display: block;
}
.metric-label { font-size: .88rem; color: var(--ink-2); margin-top: .4rem; }
.metric-source { font-size: .72rem; color: var(--ink-3); margin-top: .3rem; display: block; }

/* ── Comment ça marche ─────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 1.5rem; padding: 1.8rem 0; position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute; left: 25px; top: 80px; bottom: 28px;
  width: 2px; background: var(--border);
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1.1rem; font-weight: 500;
  color: var(--accent); flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.step:hover .step-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.step-body h3 { margin-bottom: .4rem; }
.step-body p { font-size: .9rem; }


/* ── CTA bandeau ───────────────────────────── */
#cta {
  background: var(--accent);
  background-image: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  padding: 5rem 0; text-align: center;
}
#cta h2, #cta p { color: #fff; }
#cta .section-sub { color: rgba(255,255,255,.8); }
.btn-white {
  background: #fff; color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: #f0f0f0; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

/* ── FAQ ───────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem 0;
  font-family: var(--font-b); font-size: .97rem; font-weight: 500;
  color: var(--ink); text-align: left;
}
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: transform .25s var(--ease), background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s;
  font-size: .92rem; color: var(--ink-2);
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.2rem; }

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: .8rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-b); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
  color: rgba(255,255,255,.55); text-decoration: none; font-size: .88rem;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1rem;
  font-size: .78rem;
}

/* ── Pages légales ─────────────────────────── */
#page-legale {
  display: none; min-height: 100vh; padding: 8rem 0 5rem;
}
#page-legale.active { display: block; }
.legale-content {
  max-width: 760px; margin: 0 auto;
}
.legale-content h1 { font-size: 2.4rem; margin-bottom: 2rem; }
.legale-content h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.legale-content p, .legale-content li { font-size: .95rem; color: var(--ink-2); margin-bottom: .6rem; }
.legale-content ul { padding-left: 1.5rem; }
.legale-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); text-decoration: none;
  font-size: .88rem; font-weight: 500; margin-bottom: 2rem;
  transition: gap .15s;
}
.legale-back:hover { gap: .7rem; }

/* ── Cookie banner ─────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 200;
  background: var(--ink); color: rgba(255,255,255,.85);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  transform: translateY(120%);
  transition: transform .4s var(--ease);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { color: rgba(255,255,255,.7); font-size: .85rem; max-width: 520px; }
#cookie-banner a { color: rgba(255,255,255,.9); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-cookie {
  border: none; border-radius: 999px; padding: .55rem 1.2rem;
  font-size: .82rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-b); transition: opacity .15s;
}
.btn-cookie-accept { background: var(--accent); color: #fff; }
.btn-cookie-refuse { background: rgba(255,255,255,.12); color: #fff; }
.btn-cookie:hover { opacity: .85; }

/* ── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
