/**
 * guide-reparation.css
 * CSS du template Guide Dépannage ASUS — Thème Astra
 *
 * INSTALLATION :
 *   Option A (recommandé) : Coller dans Apparence → Personnaliser → CSS additionnel
 *   Option B              : Enqueue via functions.php de votre thème enfant
 *   Option C              : Plugin "Simple Custom CSS"
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --gr-blue:        #1a6ef5;
  --gr-blue-dark:   #0f4fc7;
  --gr-blue-navy:   #0f2952;
  --gr-blue-light:  #e8f0fe;
  --gr-blue-mid:    #c2d4fb;
  --gr-green:       #1e8a4c;
  --gr-green-bg:    #e6f4ea;
  --gr-orange:      #e37400;
  --gr-orange-bg:   #fef3e2;
  --gr-red:         #d93025;
  --gr-red-bg:      #fce8e6;
  --gr-gray-50:     #f8f9fa;
  --gr-gray-100:    #f1f3f4;
  --gr-gray-200:    #e8eaed;
  --gr-gray-400:    #9aa0a6;
  --gr-gray-600:    #5f6368;
  --gr-gray-800:    #202124;
  --gr-radius:      8px;
  --gr-radius-lg:   14px;
  --gr-font-head:   'Space Grotesk', 'Inter', sans-serif;
  --gr-font-body:   'Inter', sans-serif;
}

/* ── Import Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@600;700&display=swap');

/* ── Reset de base pour le wrapper ───────────────────────────── */
#arg-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 48px;
  box-sizing: border-box;
  font-family: var(--gr-font-body);
  color: var(--gr-gray-800);
  line-height: 1.65;
}
/* Neutralise les paddings internes qu'Astra applique à #primary et .site-main */
#primary.content-area,
#primary .site-main,
#main.site-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Reset article WordPress */
.arg-article {
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   HERO — s'étend bord à bord dans #primary, sans cadre flottant
══════════════════════════════════════════════════════════════ */
.arg-hero {
  background: linear-gradient(135deg, var(--gr-blue-navy) 0%, var(--gr-blue) 100%);
  border-radius: var(--gr-radius-lg);
  padding: 36px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.arg-hero::after {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

/* Badge "Guide dépannage" */
.arg-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.guide-badge svg {
  width: 12px; height: 12px;
}

/* Titre principal */
.arg-hero__title {
  font-family: var(--gr-font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
}

/* Métadonnées */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.arg-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.arg-meta__item svg {
  width: 14px; height: 14px;
}

/* Badges difficulté */
.arg-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-easy   { background: var(--gr-green-bg);  color: var(--gr-green);  }
.badge-medium { background: var(--gr-orange-bg); color: var(--gr-orange); }
.badge-hard   { background: var(--gr-red-bg);    color: var(--gr-red);    }

/* ══════════════════════════════════════════════════════════════
   BODY — contenu à plat, pas de cadre blanc
══════════════════════════════════════════════════════════════ */
.arg-body {
  background: transparent;
  padding: 0;
}

/* ── Disclaimer ───────────────────────────────────────────────── */
.arg-disclaimer {
  display: flex;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f9a825;
  border-radius: var(--gr-radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.arg-disclaimer svg {
  width: 18px; height: 18px;
  color: #f9a825;
  flex-shrink: 0;
  margin-top: 2px;
}
.arg-disclaimer p {
  font-size: 13px;
  color: #7a5c00;
  line-height: 1.55;
  margin: 0;
}

/* ── Table des matières ───────────────────────────────────────── */
.arg-toc {
  background: var(--gr-gray-50);
  border: 1px solid var(--gr-gray-200);
  border-radius: var(--gr-radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}
.arg-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--gr-gray-600);
  margin: 0 0 10px;
}
.arg-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.arg-toc__list li {
  counter-increment: toc-counter;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.arg-toc__list li::before {
  content: counter(toc-counter);
  min-width: 20px;
  height: 20px;
  background: var(--gr-blue-light);
  color: var(--gr-blue);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arg-toc__list li a {
  font-size: 13px;
  color: var(--gr-blue);
  text-decoration: none;
  font-weight: 500;
}
.arg-toc__list li a:hover {
  text-decoration: underline;
}

/* ── Contenu article ──────────────────────────────────────────── */

/* Titres h2 → section headers */
.arg-content h2 {
  font-family: var(--gr-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--gr-gray-800);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gr-blue-light);
  scroll-margin-top: 80px;
}

/* Titres h3 → sous-sections */
.arg-content h3 {
  font-family: var(--gr-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--gr-gray-800);
  margin: 22px 0 8px;
}

/* Paragraphes */
.arg-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #3c4043;
  margin-bottom: 16px;
}

/* Listes */
.arg-content ul,
.arg-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.arg-content li {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 6px;
  color: #3c4043;
}

/* ── Blocs "étape" (classe à ajouter dans Gutenberg) ────────── */
/* Utilisation : bloc "Groupe" avec classe CSS "guide-step"       */
.guide-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gr-gray-100);
}
.guide-step:last-of-type {
  border-bottom: none;
}
.guide-step__num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--gr-blue);
  color: #fff;
  font-family: var(--gr-font-head);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.guide-step__body {
  flex: 1;
}
.guide-step__body h3 {
  margin-top: 0;
}

/* ── Astuce (bloc "Citation" avec classe "guide-tip") ────────── */
.guide-tip,
blockquote.guide-tip {
  display: flex;
  gap: 10px;
  background: var(--gr-blue-light);
  border: none;
  border-radius: var(--gr-radius);
  padding: 10px 14px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gr-blue-dark);
  line-height: 1.55;
}
.guide-tip::before {
  content: '💡';
  flex-shrink: 0;
}

/* ── Avertissement (bloc avec classe "guide-warning") ────────── */
.guide-warning {
  display: flex;
  gap: 10px;
  background: var(--gr-red-bg);
  border-left: 4px solid var(--gr-red);
  border-radius: var(--gr-radius);
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
  color: #7a1e1e;
}
.guide-warning::before {
  content: '⚠️';
  flex-shrink: 0;
}

/* ── Code inline ──────────────────────────────────────────────── */
.arg-content code {
  background: var(--gr-gray-100);
  color: #c7254e;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ══════════════════════════════════════════════════════════════
   BLOC CTA CONTACT
══════════════════════════════════════════════════════════════ */
.arg-cta {
  background: linear-gradient(135deg, var(--gr-blue-navy), #1a4db5);
  border-radius: var(--gr-radius-lg);
  padding: 30px;
  margin-top: 40px;
  color: #fff;
}
.arg-cta__title {
  font-family: var(--gr-font-head);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.arg-cta__sub {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin: 0 0 22px;
  max-width: 440px;
}

/* ── Formulaire dans le CTA ──────────────────────────────────── */
.arg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}
.arg-form__row {
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.arg-form__row > * {
  min-width: 0; /* empêche le débordement flex */
}
/* Tous les champs : style unifié, résiste aux surcharges Astra */
.arg-form__input,
.arg-form__select,
.arg-form__textarea,
.arg-cta .arg-form__input,
.arg-cta .arg-form__input[type="text"],
.arg-cta .arg-form__input[type="email"] {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: var(--gr-radius);
  font-size: 14px;
  color: #fff !important;
  font-family: var(--gr-font-body);
  outline: none;
  box-shadow: none !important;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.arg-form__input::placeholder,
.arg-form__textarea::placeholder { color: rgba(255,255,255,.55); }
.arg-form__input:focus,
.arg-form__select:focus,
.arg-form__textarea:focus {
  border-color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.18) !important;
}
.arg-form__select {
  cursor: pointer;
  color: rgba(255,255,255,.9) !important;
  /* Flèche personnalisée blanche */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.7)' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px !important;
  padding-right: 32px;
}
.arg-form__select option { background: #0f2952; color: #fff; }
.arg-form__textarea {
  resize: vertical;
  min-height: 80px;
}
.arg-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--gr-blue-dark);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--gr-radius);
  cursor: pointer;
  font-family: var(--gr-font-head);
  align-self: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.arg-form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.arg-form__btn svg { width: 15px; height: 15px; }
.arg-form__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 4px 0 0;
}
.arg-form__note svg { width: 13px; height: 13px; }

/* Contact Form 7 dans le CTA (reset) */
.arg-cta .wpcf7 input[type="text"],
.arg-cta .wpcf7 input[type="email"],
.arg-cta .wpcf7 select,
.arg-cta .wpcf7 textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: var(--gr-radius);
  font-size: 14px;
  width: 100%;
}
.arg-cta .wpcf7 input[type="submit"] {
  background: #fff;
  color: var(--gr-blue-dark);
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: var(--gr-radius);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   BOUTON STICKY
══════════════════════════════════════════════════════════════ */
.arg-sticky {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.arg-sticky.is-visible {
  opacity: 1;
  pointer-events: all;
}
.arg-sticky.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.arg-sticky__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--gr-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(26,110,245,.45);
  transition: transform .15s, background .15s;
  white-space: nowrap;
}
.arg-sticky__btn:hover {
  background: var(--gr-blue-dark);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.arg-sticky__btn svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .arg-hero        { padding: 22px 18px; margin-bottom: 20px; }
  .arg-cta         { padding: 22px 16px; }
  .arg-form__row   { flex-direction: column; }
  .arg-sticky__btn { font-size: 13px; padding: 11px 18px; }
}

/* ══════════════════════════════════════════════════════════════
   CLASSES UTILITAIRES (à ajouter dans les blocs Gutenberg)
══════════════════════════════════════════════════════════════

  .guide-step         → groupe avec numéro d'étape automatique
  .guide-tip          → bloc astuce (fond bleu clair)
  .guide-warning      → bloc avertissement (fond rouge)

══════════════════════════════════════════════════════════════ */
