/* ===== GLOBAL CSS - Wodow.fr ===== */
/* IDENTITE VISUELLE: E-commerce / Code promo / Affiliation */
/* COULEURS: #bf360c (rouge brique), #ffab91 (peche), #81d4fa (bleu ciel) */

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a1a2e;
  background-color: #f5f5f7;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Media anti-overflow */
img, video, iframe, embed, object, svg, canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

/* Tableaux responsive */
table {
  max-width: 100%;
  border-collapse: collapse;
  width: 100%;
}
.table-responsive,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

/* Texte long anti-overflow */
p, li, td, th, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.25;
  margin-top: 0;
  color: #1a1a2e;
}

a {
  color: #bf360c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #d84315; }
a:focus {
  outline: 3px solid #81d4fa;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ===== CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: #bf360c;
  color: #fff;
}
.btn-primary:hover { background-color: #d84315; color: #fff; }

.btn-secondary {
  background-color: #fff;
  color: #bf360c;
  border: 2px solid #bf360c;
}
.btn-secondary:hover { background-color: #bf360c; color: #fff; }

.btn-light {
  background-color: #ffab91;
  color: #1a1a2e;
}
.btn-light:hover { background-color: #ff8a65; color: #1a1a2e; }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-promo { background-color: #bf360c; color: #fff; }
.badge-plan  { background-color: #81d4fa; color: #1a1a2e; }
.badge-aff   { background-color: #ffab91; color: #1a1a2e; }
.badge-cash  { background-color: #1a1a2e; color: #ffab91; }

/* ===== CARDS GENERIQUES ===== */
.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8f0;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(191, 54, 12, 0.12);
  transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 0;
}
.section-alt {
  background-color: #fff;
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: #546e7a;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== CATEGORIE LABEL ===== */
.cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: #ffab91;
  color: #1a1a2e;
  margin-bottom: 8px;
}

/* ===== READING TIME ===== */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #90a4ae;
}
.reading-time svg { flex-shrink: 0; }

/* ===== NEWSLETTER FORM ===== */
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.nl-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 0;
}
.nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.nl-form input[type="email"]:focus {
  outline: 2px solid #ffab91;
  border-color: #ffab91;
  background-color: rgba(255,255,255,0.15);
}
.nl-form button {
  padding: 13px 24px;
  background-color: #ffab91;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.2s;
}
.nl-form button:hover { background-color: #ff8a65; color: #fff; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid #81d4fa;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .container-narrow {
    padding: 0 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section-alt {
    padding: 52px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .nl-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .container-narrow {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-alt {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 15px;
    max-width: 100%;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .nl-form {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }

  .nl-form input[type="email"] {
    width: 100%;
    font-size: 14px;
    padding: 12px 14px;
  }

  .nl-form button {
    width: 100%;
    font-size: 14px;
    padding: 12px 16px;
    text-align: center;
  }

  .card:hover {
    transform: none;
  }

  .badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .cat-label {
    font-size: 10px;
  }

  .reading-time {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .container-narrow {
    padding: 0 12px;
  }

  .section {
    padding: 28px 0;
  }

  .section-alt {
    padding: 28px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .btn-secondary {
    border-width: 2px;
  }

  .nl-form {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }

  .nl-form input[type="email"] {
    font-size: 13px;
    padding: 11px 12px;
  }

  .nl-form button {
    font-size: 13px;
    padding: 11px 12px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 0.3px;
  }

  .cat-label {
    font-size: 9px;
    padding: 2px 8px;
    letter-spacing: 0.8px;
  }

  .reading-time {
    font-size: 11px;
  }

  .card {
    border-radius: 8px;
  }

  .table-responsive,
  .table-wrapper {
    border-radius: 4px;
  }
}