/* ============================================
   SupportTablette.net — Style principal
   ============================================ */

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

/* Variables CSS */
:root {
  --primary: #0f4c3a;
  --primary-dark: #0a3529;
  --primary-light: #1a6b52;
  --accent: #10b981;
  --accent-light: #34d399;
  --bg: #f0fdf8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text: #1a2e29;
  --text-muted: #4a7065;
  --text-light: #7aa89e;
  --border: #d1fae5;
  --border-dark: #6ee7b7;
  --shadow: 0 2px 8px rgba(15, 76, 58, 0.1);
  --shadow-md: 0 4px 16px rgba(15, 76, 58, 0.15);
  --shadow-lg: 0 8px 32px rgba(15, 76, 58, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-body: 'Inter', sans-serif;
  --font-title: 'DM Sans', sans-serif;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul, ol { padding-left: 1.5rem; }
p { margin-bottom: 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-top: 1.5rem; }
h4 { font-size: 1.1rem; margin-top: 1rem; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3rem 0; }
.section-lg { padding: 4.5rem 0; }
.section-sm { padding: 1.5rem 0; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--accent);
}
.logo:hover { color: #fff; }

/* Nav desktop */
.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; opacity: 0.8; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  z-index: 100;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-links a { padding: 0.75rem 0.5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.2); }
  .nav-dropdown > a::after { float: right; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(16,185,129,0.08);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.75rem; max-width: 620px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.card a.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.card a.card-link:hover { color: var(--primary); }

/* ============================================
   TABLEAUX COMPARATIFS
   ============================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.9rem;
}
thead { background: var(--primary); color: #fff; }
thead th { padding: 0.85rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: #d1fae5; }
tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody td:first-child { font-weight: 600; color: var(--primary); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* ============================================
   FAQ (details/summary CSS pur)
   ============================================ */
.faq-section { margin: 2rem 0; }
.faq-section h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-white);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item summary:hover { background: var(--bg); }
.faq-answer { padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================
   HIGHLIGHT BOX / CTA INTERNE
   ============================================ */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.highlight-box h3 { color: #fff; margin: 0 0 0.5rem; }
.highlight-box p { opacity: 0.9; margin: 0; }
.highlight-box .btn-primary { flex-shrink: 0; }

.info-box {
  background: #ecfdf5;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box p:last-child { margin-bottom: 0; }
.warning-box {
  background: #fefce8;
  border-left: 4px solid #eab308;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ============================================
   FEATURES LIST
   ============================================ */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) { .features-list { grid-template-columns: 1fr; } }
.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-text h4 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.feature-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================
   STEPS / HOWTO
   ============================================ */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step-counter; }
.step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-content h4 { margin: 0 0 0.35rem; }
.step-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   USAGE TABLE (index)
   ============================================ */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 900px) { .usage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .usage-grid { grid-template-columns: 1fr; } }
.usage-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.usage-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.usage-card .uc-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.usage-card .uc-title { font-weight: 700; color: var(--primary); font-size: 1rem; margin-bottom: 0.25rem; }
.usage-card .uc-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================
   STAT BOXES
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--font-title); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-title);
}
.footer-col p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-logo { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   ARTICLE / CONTENT
   ============================================ */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 980px) { .page-wrapper { grid-template-columns: 1fr; } }
.article-content { min-width: 0; }
.article-content ul, .article-content ol { margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.35rem; }

/* Sidebar */
.sidebar {}
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--primary); }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { border-bottom: 1px solid var(--border); padding: 0.5rem 0; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul a { font-size: 0.875rem; color: var(--text); display: flex; gap: 0.4rem; align-items: center; }
.sidebar-widget ul a:hover { color: var(--accent); }
.cta-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}
.cta-widget h3 { color: #fff; }
.cta-widget p { font-size: 0.875rem; opacity: 0.9; margin-bottom: 1rem; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   MISC
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); }
.divider { height: 1px; background: var(--border); margin: 2.5rem 0; }
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

/* Scroll to top */
.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.back-to-top:hover { color: var(--accent); }

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .nav-toggle { display: none; }
  .page-wrapper { grid-template-columns: 1fr; }
}
