@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --line: rgba(26, 26, 26, 0.08);

  /* Couleurs de base de Sanarois */
  --primary: #961D00;
  --primary-hover: #7a1700;
  --secondary: #ffc135;
  --secondary-hover: #e5ac2e;
  --accent: #b45f06;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Aucun cadre, bordure ou ombre sur toutes les images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ---------------------------------
   NAVIGATION SIMPLE & EPUREE
--------------------------------- */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(150, 29, 0, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--primary);
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

/* ---------------------------------
   HERO
--------------------------------- */
.hero {
  padding: 60px 5% 80px 5%;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero-text h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 35px;
  line-height: 1.7;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.highlight-tag {
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 95px;
  text-align: center;
}

.tag-moto { background: #ffeeda; color: #b45f06; }
.tag-pub  { background: #fee2e2; color: var(--primary); }
.tag-resto { background: #fef3c7; color: #92400e; }

.highlight-row strong {
  color: var(--ink);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ---------------------------------
   SECTION COMMON HEADERS
--------------------------------- */
.section-header {
  max-width: 600px;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--ink);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------------------------------
   POURQUOI
--------------------------------- */
.why {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-image img {
  width: 100%;
  height: auto;
}

.point {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.point:last-child {
  margin-bottom: 0;
}

.point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.point-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.point-text p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------------------------------
   PARTENAIRES (TABS)
--------------------------------- */
.partners {
  background: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.partner-panel {
  display: none;
}

.partner-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.partner-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.partner-badge-payout {
  display: inline-block;
  background: #fff8eb;
  color: var(--accent);
  border: 1px solid #fde2b4;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.partner-info p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.roles-list {
  list-style: none;
  margin-bottom: 30px;
}

.roles-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--ink);
  font-size: 0.94rem;
}

.roles-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: 8px;
}

.benefit-item .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.benefit-item span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* ---------------------------------
   AMBASSADEUR / AFFILIATION FOCUS
--------------------------------- */
.ambassador {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.amb-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.amb-image img {
  width: 100%;
  height: auto;
}

.amb-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.amb-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.amb-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 34px;
}

.amb-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.amb-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------------------------------
   ENGAGEMENTS
--------------------------------- */
.commitments {
  padding: 80px 0;
}

.commit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.commit-col h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.commit-list {
  list-style: none;
}

.commit-list li {
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.commit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.commit-list li strong {
  color: var(--ink);
}

/* ---------------------------------
   CTA
--------------------------------- */
.cta {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta h2 {
  max-width: 650px;
  margin: 0 auto 16px auto;
}

.cta .section-lead {
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------
   FOOTER
--------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--primary);
}

/* ---------------------------------
   MODAL DE CANDIDATURE
--------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  max-width: 480px;
  width: 100%;
  padding: 34px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-content p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ---------------------------------
   RESPONSIVE
--------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 5%;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: center;
  }

  .hero-sub {
    margin: 0 auto 30px auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
  }

  .why-grid,
  .partner-panel.active,
  .amb-grid,
  .commit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 20px;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.95rem;
  }
}
