/* ============================================
   MEILLEUR HÉBERGEUR WEB - Style Principal
   Design: Clean, moderne, lecture facile
   ============================================ */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #eab308;
  --danger: #dc2626;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--gray-700); }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--accent); }

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

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s;
  white-space: nowrap;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(249,115,22,0.4);
}

.hero-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.35rem; }

/* --- Content Section --- */
.content-section {
  padding: 3rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.main-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  margin-bottom: 0.5rem;
}

.sidebar-card li a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: all 0.2s;
}

.sidebar-card li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: var(--white);
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.sidebar-cta .btn-cta {
  display: block;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
  transition: all 0.3s;
}

.sidebar-cta .btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-highlight {
  border: 2px solid var(--primary);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 { margin-top: 0; }

.card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

.card .price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* --- Comparison Table --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

thead th {
  background: var(--gray-900);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

tbody tr:hover {
  background: var(--gray-50);
}

tbody tr.highlight-row {
  background: var(--primary-light);
  font-weight: 600;
}

tbody tr.highlight-row:hover {
  background: #c7d8fa;
}

.check { color: var(--success); font-weight: bold; }
.cross { color: var(--danger); }

/* --- Rating Stars --- */
.stars {
  color: var(--warning);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.rating-num {
  font-weight: 700;
  color: var(--gray-900);
  margin-left: 0.25rem;
}

/* --- Key Points / Info Boxes --- */
.key-point {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.key-point strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.tip-box {
  background: var(--success-light);
  border-left: 4px solid var(--success);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.tip-box strong {
  color: var(--success);
  display: block;
  margin-bottom: 0.25rem;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.warning-box strong {
  color: #92400e;
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Pros/Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.pros {
  background: var(--success-light);
  border: 1px solid #86efac;
}

.cons {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.pros h4 { color: var(--success); margin-bottom: 0.75rem; }
.cons h4 { color: var(--danger); margin-bottom: 0.75rem; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li, .cons li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
}

/* --- CTA Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta-center {
  text-align: center;
  margin: 2rem 0;
}

/* --- Steps / Tutorial Style --- */
.steps {
  counter-reset: step;
  margin: 1.5rem 0;
}

.step {
  position: relative;
  padding: 1.5rem;
  padding-left: 4.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.step h4 { margin-bottom: 0.5rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.open .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.92rem;
}

/* --- Video Embed --- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Score / Verdict --- */
.verdict-box {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.verdict-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-top: 0;
}

.verdict-score {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0.5rem 0;
}

.verdict-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.verdict-box .btn-accent {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-bottom a { color: var(--gray-400); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: block; }

  .main-content { padding: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .table-wrapper { font-size: 0.82rem; }
  thead th, tbody td { padding: 0.65rem 0.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
  .step { padding-left: 3.75rem; }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* --- Last Updated --- */
.last-updated {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* --- TOC (Table of Contents) --- */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
}

.toc h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  font-size: 0.92rem;
  color: var(--gray-600);
}

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

/* --- Feature List --- */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* --- Comparison Winner Banner --- */
.winner-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.winner-banner h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.2rem;
}

.winner-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.winner-banner .btn {
  background: var(--white);
  color: var(--accent);
  flex-shrink: 0;
}

.winner-banner .btn:hover {
  background: var(--gray-100);
}

/* --- Print --- */
@media print {
  .site-header, .sidebar, .site-footer { display: none; }
  .content-wrapper { grid-template-columns: 1fr; }
  .hero { background: var(--gray-100); color: var(--gray-900); }
  .hero h1, .hero p { color: var(--gray-900); }
}
