/* =============================================================
   guide.css — Styles spécifiques à /guide/index.html
   Vandernoot.be — complète /base.css et /styles.css
   ============================================================= */


/* ─────────────────────────────────────────────
   1. RESET LOCAL
   ───────────────────────────────────────────── */

* {
  box-sizing: border-box;
}


/* ─────────────────────────────────────────────
   2. ACCESSIBILITÉ
   ───────────────────────────────────────────── */

/* Skip link (aller au contenu) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: #f39c12;
  color: #fff;
  padding: 10px 14px;
  z-index: 100000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Texte visible uniquement pour les lecteurs d'écran */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ─────────────────────────────────────────────
   3. NAVIGATION — MENU HAMBURGER (mobile)
   ───────────────────────────────────────────── */

/* Bouton hamburger : masqué sur desktop */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {

  /* Le conteneur doit être en position relative pour ancrer le dropdown */
  .top-bar-inner {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    border: none;
    font-size: 1.6rem;
    color: #333;
    cursor: pointer;
  }

  /* Menu déroulant : masqué par défaut, pleine largeur */
  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    max-width: 100%;
    overflow-x: hidden;
    z-index: 9999;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    display: block;
    padding: .7rem .8rem;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    white-space: normal;
    border-bottom: none;
  }

  .menu a:hover {
    color: #f39c12;
    background: #fff8ee;
  }
}


/* ─────────────────────────────────────────────
   4. FIL D'ARIANE (breadcrumb)
   ───────────────────────────────────────────── */

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1.2rem;
  font-size: .9rem;
  color: #666;
}

.breadcrumb a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 .4rem;
  color: #bbb;
}

.breadcrumb [aria-current="page"] {
  color: #333;
  font-weight: 600;
}


/* ─────────────────────────────────────────────
   5. HERO /guide/
   ───────────────────────────────────────────── */

.hero-guide {
  background: linear-gradient(135deg, #fff8ee 0%, #fff 100%);
  border-bottom: 2px solid rgba(243, 156, 18, .25);
  padding: 2.3rem 1.2rem 1.7rem;
}

.hero-guide-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Badge "GUIDE" */
.guide-badge {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

.hero-guide h1 {
  margin: .25rem 0 .7rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: #111;
}

.hero-guide .intro {
  margin: 0 0 1.1rem;
  color: #444;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* Bouton CTA dans le hero */
.cta-inline {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .75rem 1.2rem;
  border-radius: 12px;
  transition: background .2s;
}

.cta-inline:hover {
  background: #e67e22;
}

.cta-inline:focus-visible {
  outline: 3px solid rgba(243, 156, 18, .5);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────
   6. BLOCS GEO / INFO-BOX
   ───────────────────────────────────────────── */

/* Wrapper du bloc GEO (pannes + quand appeler) */
.geo-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 0;
}

/* Boîte encadrée à gauche (fond crème) */
.info-box {
  background: #fff8ee;
  border-left: 4px solid #f39c12;
  padding: 1.1rem;
  border-radius: 0 12px 12px 0;
  margin: 0 0 1rem;
}

.info-box strong {
  display: block;
  margin-bottom: .4rem;
  color: #222;
}

.info-box ul {
  margin: .35rem 0 0;
  padding-left: 1.2rem;
  color: #444;
  line-height: 1.6;
}

.info-box li {
  margin: .35rem 0;
}


/* ─────────────────────────────────────────────
   7. SOMMAIRE PILLS (table of contents)
   ───────────────────────────────────────────── */

.toc-pills {
  max-width: 800px;
  margin: 1.2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  border-radius: 10px;
}

/* Label "Aller directement à :" */
.toc-pills p {
  margin: 0 0 .6rem;
  font-size: .82rem;
  color: #777;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.toc-pills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.toc-pills-list a {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #f39c12;
  color: #c87109;
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  transition: background .18s, color .18s;
}

.toc-pills-list a:hover,
.toc-pills-list a:focus-visible {
  background: #f39c12;
  color: #fff;
  outline: 3px solid rgba(243, 156, 18, .35);
  outline-offset: 2px;
}

/* Sur très petit écran : scroll horizontal plutôt que retour à la ligne */
@media (max-width: 480px) {
  .toc-pills {
    overflow-x: auto;
  }
  .toc-pills-list {
    flex-wrap: nowrap;
  }
}


/* ─────────────────────────────────────────────
   8. SECTIONS GUIDES (layout + fonds alternés)
   ───────────────────────────────────────────── */

/* Wrapper optionnel si besoin de contraindre l'ensemble */
.guide-sections-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Conteneur de chaque section */
.guide-section {
  padding: 2rem 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.guide-section:first-of-type {
  border-top: none;
}

/* Variantes de fond pour l'alternance visuelle */
.guide-section.bg-white  { background: #ffffff; }
.guide-section.bg-warm   { background: #fdf6ec; }
.guide-section.bg-subtle { background: #f8f9fa; }

/* Contenu centré à l'intérieur */
.guide-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Titre de section */
.guide-section h2 {
  margin: 0 0 .65rem;
  font-size: 1.45rem;
  color: #111;
}

.section-icon {
  margin-right: .4rem;
}

/* Texte intro sous le H2 */
.guide-section .section-intro {
  margin: 0 0 1rem;
  color: #555;
  line-height: 1.6;
  max-width: 900px;
}

/* Offset d'ancre : évite que le titre se cache sous le header fixe */
#blocages,
#rails,
#manuel,
#electrique,
#somfy,
#prix {
  scroll-margin-top: 90px;
}


/* ─────────────────────────────────────────────
   9. CARTES DE GUIDES
   ───────────────────────────────────────────── */

/* Grille — mobile-first : 1 colonne */
.guide-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* 2 colonnes à partir de 620px */
@media (min-width: 620px) {
  .guide-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3 colonnes à partir de 980px */
@media (min-width: 980px) {
  .guide-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Carte individuelle */
.guide-card {
  border: 1.5px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 1.05rem;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Sur fond crème ou gris, la carte reste blanche pour le contraste */
.bg-warm .guide-card,
.bg-subtle .guide-card {
  background: #fff;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  border-color: rgba(243, 156, 18, .55);
}

.guide-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.guide-card a {
  color: #111;
  text-decoration: none;
}

.guide-card a:hover,
.guide-card a:focus-visible {
  color: #f39c12;
  text-decoration: underline;
  outline: none;
}

.guide-card p {
  margin: 0;
  color: #666;
  line-height: 1.55;
  font-size: .95rem;
}


/* ─────────────────────────────────────────────
   10. BLOC CTA FINAL
   ───────────────────────────────────────────── */

.cta-devis-guide {
  background: #fff8ee;
  border: 2px solid rgba(243, 156, 18, .55);
  border-radius: 18px;
  padding: 1.6rem 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-devis-guide h2 {
  margin: 0 0 .6rem;
  font-size: 1.35rem;
}

.cta-devis-guide p {
  margin: 0 0 1.2rem;
  color: #444;
  line-height: 1.65;
}

/* Groupe de boutons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
}

/* Bouton principal (orange plein) */
.btn-primary {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .75rem 1.2rem;
  border-radius: 12px;
  transition: background .2s;
}

.btn-primary:hover {
  background: #e67e22;
}

/* Bouton secondaire (contour orange) */
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #a85f08;
  border: 2px solid rgba(243, 156, 18, .65);
  text-decoration: none;
  font-weight: 800;
  padding: .72rem 1.15rem;
  border-radius: 12px;
  transition: background .2s, color .2s;
}

.btn-secondary:hover {
  background: #f39c12;
  color: #fff;
}

/* Focus visible pour les deux boutons */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(243, 156, 18, .35);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────
   11. FAQ ACCORDÉON
   ───────────────────────────────────────────── */

.guide-faq details {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 14px;
  padding: .8rem 1rem;
  background: #fff;
  margin: .8rem 0;
}

.guide-faq summary {
  cursor: pointer;
  list-style: none;
}

/* Masque le triangle natif sur Chrome/Safari */
.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq p {
  margin: .7rem 0 0;
  color: #444;
  line-height: 1.65;
}




/* ─────────────────────────────────────────────
   12. CTA hot pour Guide
   ───────────────────────────────────────────── */
   
.cta-hot{margin:28px 0;border-radius:12px;padding:22px;box-shadow:0 6px 18px rgba(255,102,0,.25);background:#ff6600;color:#fff;text-align:center}
.cta-hot__title{margin:0 0 10px;font-size:22px;line-height:1.2}
.cta-hot__text{margin:0 0 14px;font-size:18px;line-height:1.3}
.cta-hot__btn{display:inline-block;background:#fff;color:#ff6600;padding:14px 28px;border-radius:10px;font-size:22px;font-weight:800;text-decoration:none;box-shadow:0 6px 14px rgba(0,0,0,.18)}
.cta-hot__note{margin:14px 0 0;font-size:14px;opacity:.95}
.cta-hot__muted{opacity:.9}
