/* ==========================================================================
   Candigo — HTML5 + CSS3 (design conservé à l'identique)
   Palette : blanc / rouge #E31B23 / noir — Police : Inter
   ========================================================================== */

:root {
  --red: #E31B23;
  --red-dark: #B0141B;
  --red-darker: #7A0A0F;
  --ink-950: #101012;
  --ink-900: #1A1A1E;
  --slate-600: #5B5B66;
  --paper: #FFFFFF;
  --paper-warm: #FAFAFA;
  --paper-tint: #F4F4F5;
  --border: #E7E7E9;
  --radius: 0.75rem;
  --container: 72rem;
  --shadow-card: 0 10px 30px rgba(17, 17, 26, 0.06);
  --shadow-lift: 0 16px 40px rgba(17, 17, 26, 0.10);
  --shadow-red: 0 12px 28px rgba(227, 27, 35, 0.32);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin: 0;
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--ink-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink-900); height: 2.5rem; padding: 0 1rem; font-weight: 500; }
.btn-ghost:hover { background: var(--paper-tint); }
.btn-sm { height: 2.5rem; padding: 0 1.25rem; font-size: .95rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(17, 17, 26, 0.07); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo { display: inline-flex; align-items: center; background: none; border: none; padding: 0; }
.logo img { height: 2.75rem; width: auto; object-fit: contain; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link {
  background: none; border: none; padding: 0;
  font-size: .95rem; font-weight: 500; color: var(--ink-900);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--red); }

.nav-actions { display: none; align-items: center; gap: .75rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 2px;
  font-size: .875rem;
  font-weight: 500;
}
.lang-toggle .globe { margin: 0 .25rem 0 .5rem; color: var(--slate-600); width: 14px; height: 14px; }
.lang-btn {
  border: none; background: none; border-radius: 999px;
  padding: .25rem .625rem; color: var(--slate-600);
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--red); color: #fff; }
.lang-btn:not(.active):hover { color: var(--ink-900); }

.nav-mobile { display: flex; align-items: center; gap: .5rem; }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: .5rem;
  background: none; border: none; color: var(--ink-900);
}
.hamburger:hover { background: var(--paper-tint); }

@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Mobile menu ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(16,16,18,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  z-index: 60;
}
.overlay.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 86vw; max-width: 22rem; background: #fff;
  z-index: 70; padding: 1.25rem;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: -20px 0 50px rgba(17,17,26,.15);
  display: flex; flex-direction: column;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel .panel-close {
  align-self: flex-end; background: none; border: none; color: var(--ink-900);
  width: 2.5rem; height: 2.5rem; border-radius: .5rem;
}
.mobile-panel .panel-close:hover { background: var(--paper-tint); }
.mobile-nav-link {
  background: none; border: none; text-align: left;
  padding: .75rem; border-radius: .5rem; font-size: 1rem; font-weight: 500; color: var(--ink-900);
}
.mobile-nav-link:hover { background: var(--paper-tint); }
.mobile-actions { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.mobile-actions .btn { width: 100%; }

/* ---------- Section basics ---------- */
.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section.bg-warm { background: var(--paper-warm); }
.section.bg-tint { background: var(--paper-tint); }
.scroll-mt { scroll-margin-top: 5rem; }

.eyebrow {
  font-size: .8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--red); margin: 0 0 .75rem;
}
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: 1.875rem; }
.section-head .subtitle { margin-top: 1rem; color: var(--slate-600); font-size: 1rem; }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }

/* ---------- Hero banner ---------- */
.hero { position: relative; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,16,18,.86) 0%, rgba(16,16,18,.66) 42%, rgba(16,16,18,.30) 72%, rgba(16,16,18,.12) 100%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at 12% 20%, rgba(227,27,35,.28), transparent 60%);
}
.hero-inner {
  position: relative; display: flex; align-items: center;
  min-height: 400px; padding: 3.5rem 0;
}
@media (min-width: 640px) { .hero-inner { min-height: 480px; padding: 4rem 0; } }
@media (min-width: 1024px) { .hero-inner { min-height: 520px; } }
.hero-content { max-width: 42rem; color: #fff; }
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.10);
  padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
  color: #fff; backdrop-filter: blur(4px);
}
.hero h1 { margin-top: 1.25rem; color: #fff; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { margin-top: 1.25rem; max-width: 36rem; color: rgba(255,255,255,.85); font-size: 1rem; }
@media (min-width: 640px) { .hero p { font-size: 1.125rem; } }
.hero-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.hero .btn-outline { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink-950); }
.hero-chips { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-chips span { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; color: rgba(255,255,255,.85); }
.hero-chips svg { width: 1rem; height: 1rem; color: var(--red); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 1.25rem; }
.two-col { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.media { overflow: hidden; border-radius: 1.75rem; border: 1px solid var(--border); box-shadow: var(--shadow-lift); }
.media img { width: 100%; height: 360px; object-fit: cover; }
@media (min-width: 640px) { .media img { height: 440px; } }

/* ---------- About ---------- */
.about-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about-point { display: flex; gap: 1rem; }
.icon-tile {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  border: 1px solid var(--border); background: #fff; color: var(--red);
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; }
.about-point h3 { font-size: 1rem; color: var(--ink-900); }
.about-point p { margin: .25rem 0 0; font-size: .875rem; color: var(--slate-600); }

/* ---------- Cards grids ---------- */
.cards-4 { margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: 1.25rem; font-size: 1rem; color: var(--ink-900); }
.card p { margin: .5rem 0 0; font-size: .875rem; color: var(--slate-600); }

/* Why: solid red icon tiles */
.icon-tile-red {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .75rem;
  background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227,27,35,.25);
}
.icon-tile-red svg { width: 1.5rem; height: 1.5rem; }

/* Features: outline icon -> hover fill */
.feature-card { display: flex; flex-direction: column; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .75rem;
  border: 1px solid var(--border); background: #fff; color: var(--red);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card:hover .feature-icon { background: var(--red); color: #fff; border-color: var(--red); }
.feature-card p { flex: 1; }

/* ---------- Newcomers ---------- */
.checklist { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; }
.check-circle {
  margin-top: 2px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--red); color: #fff;
}
.check-circle svg { width: .875rem; height: .875rem; }
.checklist li span:last-child { font-size: .875rem; color: var(--ink-900); }

/* ---------- Stats ---------- */
.stats-box {
  margin: 2.5rem auto 0; max-width: 48rem;
  display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem;
  border: 1px solid var(--border); border-radius: 1.5rem;
  background: var(--paper-warm); padding: 3rem 0;
}
@media (min-width: 640px) {
  .stats-box > .stat:first-child { border-right: 1px solid var(--border); }
}
.stat { text-align: center; padding: 0 .5rem; }
.stat .stat-value { font-size: 2.25rem; font-weight: 700; color: var(--ink-950); letter-spacing: -0.02em; }
.stat .stat-value .suffix { color: var(--red); }
.stat .stat-label { margin-top: .5rem; font-size: .875rem; font-weight: 500; color: var(--slate-600); }
@media (min-width: 640px) { .stat .stat-value { font-size: 3rem; } }

/* ---------- Apps ---------- */
.apps-card {
  overflow: hidden; border: 1px solid var(--border); border-radius: 1.5rem;
  background: #fff; box-shadow: 0 18px 50px rgba(17,17,26,.08);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .apps-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.apps-text { padding: 2rem; }
@media (min-width: 640px) { .apps-text { padding: 3rem; } }
.apps-text h2 { font-size: 1.875rem; margin-top: .75rem; }
@media (min-width: 640px) { .apps-text h2 { font-size: 2.25rem; } }
.apps-text .subtitle { margin-top: 1rem; max-width: 28rem; color: var(--slate-600); }
.apps-buttons { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .apps-buttons { flex-direction: row; flex-wrap: wrap; } }
.app-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  height: 3.5rem; padding: 0 1.25rem; border-radius: .75rem;
  border: 1px solid var(--border); background: #fff; color: var(--ink-900);
  transition: border-color .25s ease, color .25s ease;
}
.app-btn:hover { border-color: var(--red); color: var(--red-dark); }
.app-btn svg { width: 1.5rem; height: 1.5rem; color: var(--red); flex-shrink: 0; }
.app-btn .app-btn-labels { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.app-btn .app-btn-labels .main { font-size: .875rem; font-weight: 600; }
.app-btn .app-btn-labels .sub { font-size: 11px; color: var(--slate-600); }
.apps-media { position: relative; display: none; min-height: 320px; height: 100%; }
@media (min-width: 1024px) { .apps-media { display: block; } }
.apps-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Partners ---------- */
.partners-grid { margin: 3rem auto 0; max-width: 56rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.partner {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  height: 7rem; border: 1px solid var(--border); border-radius: 1rem; background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.partner .name { font-size: 1.25rem; font-weight: 700; color: var(--slate-600); transition: color .25s ease; }
.partner:hover .name { color: var(--red); }
.partner .ext { width: 1rem; height: 1rem; color: var(--slate-600); opacity: 0; transition: opacity .25s ease; }
.partner:hover .ext { opacity: 1; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 4rem 0; background: #fff; }
@media (min-width: 1024px) { .final-cta { padding: 6rem 0; } }
.cta-band {
  position: relative; overflow: hidden; border-radius: 2rem;
  background: var(--red-dark); padding: 3.5rem 1.5rem; text-align: center;
}
@media (min-width: 640px) { .cta-band { padding: 5rem 3rem; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 50% 20%, rgba(255,255,255,.12), transparent 60%);
}
.cta-band h2 { position: relative; color: #fff; font-size: 1.875rem; max-width: 42rem; margin: 0 auto; }
@media (min-width: 640px) { .cta-band h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-band h2 { font-size: 3rem; } }
.cta-band p { position: relative; margin: 1.25rem auto 0; max-width: 36rem; color: rgba(255,255,255,.8); }
.cta-band .btn { position: relative; margin-top: 2rem; background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { background: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { padding: 3.5rem 0; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer .logo img { height: 2.5rem; }
.footer .tagline { margin-top: 1rem; max-width: 24rem; font-size: .875rem; color: var(--slate-600); }
.footer .foot-heading { font-size: .875rem; font-weight: 600; color: var(--ink-900); }
.footer .socials { margin-top: .75rem; display: flex; align-items: center; gap: .5rem; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--slate-600);
  transition: border-color .25s ease, color .25s ease;
}
.social-btn:hover { border-color: var(--red); color: var(--red); }
.social-btn svg { width: 1rem; height: 1rem; }
.footer-links li + li { margin-top: .75rem; }
.footer-links button {
  background: none; border: none; padding: 0; font-size: .875rem; color: var(--slate-600);
  transition: color .2s ease;
}
.footer-links button:hover { color: var(--red); }
.footer-apps { margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; }
.footer-app-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  width: 100%; max-width: 16rem; padding: .625rem 1rem; border-radius: .75rem;
  border: 1px solid var(--border); background: #fff; color: var(--ink-900);
  font-size: .875rem; text-align: left;
  transition: border-color .25s ease;
}
.footer-app-btn:hover { border-color: var(--red); }
.footer-app-btn svg { width: 1.25rem; height: 1.25rem; color: var(--red); flex-shrink: 0; }
.footer-sep { height: 1px; background: var(--border); margin: 2.5rem 0; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .rights { font-size: .875rem; color: var(--slate-600); }
.footer-bottom .made { font-size: .75rem; color: var(--slate-600); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Toasts ---------- */
.toast-container {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem);
}
.toast {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--border); border-left: 4px solid var(--red);
  border-radius: .625rem; padding: .75rem 1rem; min-width: 16rem;
  box-shadow: 0 12px 30px rgba(17,17,26,.14);
  transform: translateY(10px); opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast .toast-title { font-size: .9rem; font-weight: 600; }
.toast .toast-desc { margin-top: .125rem; font-size: .8rem; color: var(--slate-600); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
