/* ============================================
   SILLAGE ROYAL .fr — Automatisations PME
   Version 1.0 — Tonalité accessible, concret
   ============================================ */

/* --- Variables --- */
:root {
  --bg-primary: #111827;
  --bg-secondary: #1F2937;
  --bg-card: #1F2937;
  --bg-nav: #0F172A;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --accent: #F5B041;
  --accent-hover: #E67E22;
  --accent-soft: rgba(245, 176, 65, 0.12);
  --accent-subtle: rgba(245, 176, 65, 0.06);
  --border: rgba(245, 176, 65, 0.20);
  --border-light: rgba(249, 250, 251, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

ul { list-style: none; }

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); color: var(--bg-primary) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  position: absolute;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(245,176,65,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(245,176,65,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 2rem;
}
.hero-tagline {
  font-style: italic;
  color: var(--accent);
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-outline {
  border-color: var(--border);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}
.bg-alt {
  background: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.accent-line {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* --- Formules Grid --- */
.formules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.formule-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.formule-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
}
.formule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent);
}
.formule-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}
.formule-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.formule-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0;
}
.formule-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
}
.formule-features {
  margin: 2rem 0;
}
.formule-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}
.formule-features li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.formule-cta {
  margin-top: 2rem;
}

/* --- Trust Strip --- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.trust-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.trust-item .num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.trust-item .label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- CTA --- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.cta-section p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-nav);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Page Hero (interne) --- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}
.page-hero .badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* --- Content Block --- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h2, .content-block h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.content-block ul, .content-block ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}
.content-block li {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.8rem; }
  .hero-sub { font-size: 1.1rem; }
  .section-header h2 { font-size: 2.2rem; }
  .formules-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
}