/* ═══════════════════════════════════════════════════
   LIEGE-ENTREPRISES.BE — feuille de style principale
   Palette : crème / bleu ardoise / ambre (sticky only)
   ═══════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────── */
:root {
  --creme:        #f7f4ee;
  --creme-carte:  #ffffff;
  --creme-hover:  #eeebe3;
  --bordure:      #ddd8ce;

  --bleu:         #2a3f6e;
  --bleu-menu:    #1e3060;
  --bleu-lien:    #2a3f6e;
  --bleu-visite:  #7a8aaa;
  --bleu-hover:   #c0392b;

  /* Sticky — seul élément accrocheur */
  --sticky-fond:  #1e3060;
  --sticky-btn:   #e8a020;
  --sticky-btn-h: #c98510;
  --sticky-texte: #d8e4f5;

  --texte:        #2a3550;
  --texte-doux:   #5a6070;

  --font-corps:   'Open Sans', sans-serif;
  --font-titre:   'Barlow Condensed', sans-serif;
  --sticky-h:     58px;
  --ombre:        0 1px 6px rgba(0,0,0,.10);
}

/* ── Reset & base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  background: var(--creme);
  color: var(--texte);
  font-size: 100%;
  line-height: 1.65;
}

img, video {
  display: block;
  margin: 0 auto 6px;
  max-width: 100%;
  height: auto;
}

a         { text-decoration: none; color: var(--bleu-lien); }
a:visited { color: var(--bleu-visite); }
a:hover,
a:focus,
a:active  { color: var(--bleu-hover); text-decoration: underline; }

h1 {
  font-family: var(--font-corps);
  font-size: 1.05em;
  font-weight: 400;
  color: var(--bleu);
  line-height: 1.5;
  margin-bottom: .6rem;
}

h2 {
  font-family: var(--font-titre);
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--creme-carte);
  background: var(--bleu);
  display: inline-block;
  padding: .28rem .9rem;
  margin: 1.4rem 0 .55rem;
  clear: left;
}

p {
  font-size: .9em;
  margin: 3px 5px;
  clear: left;
}

ul { list-style: none; }

li {
  font-size: 1em;
  color: var(--bleu);
  line-height: 150%;
  list-style-type: square;
}

/* ═══════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════ */
#breadcrumb {
  font-size: .78em;
  color: var(--texte-doux);
  padding: .5rem 1% .2rem;
  clear: both;
}

#breadcrumb a   { color: var(--bleu); }
#breadcrumb span { margin: 0 .3rem; }

/* ═══════════════════════════════════════════════════
   LAYOUT 3 COLONNES
   ═══════════════════════════════════════════════════ */
#contenu {
  padding: 2% 3%;
  margin-top: 1%;
  margin-left: 1%;
  margin-right: .5%;
  float: left;
  width: 49%;
  min-height: 1800px;
  position: relative;
  z-index: 10;
  box-shadow: var(--ombre);
  background: var(--creme-carte);
}

#menu {
  padding: 3% 4%;
  margin-top: 1%;
  margin-left: .5%;
  margin-right: .5%;
  float: left;
  width: 20.5%;
  min-height: 1800px;
  position: relative;
  z-index: 5;
  box-shadow: var(--ombre);
  background: var(--bleu-menu);
}

#liens-utiles-construction-liege {
  padding: 3% 4%;
  margin-top: 1%;
  margin-left: .5%;
  margin-right: 1%;
  float: left;
  width: 20.5%;
  min-height: 1800px;
  position: relative;
  z-index: 1;
  box-shadow: var(--ombre);
  background: var(--creme-carte);
}

#menu_mobile {
  padding: 0;
  margin-top: 1%;
  margin-left: 88%;
  float: left;
  width: 0;
  height: 0;
  position: fixed;
  z-index: 4;
}

/* ═══════════════════════════════════════════════════
   COLONNE CONTENU — titres et listes
   ═══════════════════════════════════════════════════ */
#contenu h1 {
  font-size: 1.05em;
  color: var(--bleu);
  border-left: 4px solid var(--sticky-btn);
  padding-left: .7rem;
  margin: .8rem 0 1rem;
}

#contenu h2 {
  font-family: var(--font-titre);
  font-size: .95em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--creme-carte);
  background: var(--bleu);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .8rem;
  margin: 1.4rem 0 .4rem;
  border-left: 4px solid var(--sticky-btn);
}

#contenu h2 .cp {
  background: var(--sticky-btn);
  color: #fff;
  font-size: .82em;
  padding: .05rem .35rem;
  border-radius: 2px;
  font-weight: 700;
}

/* ── Lignes entreprises ──────────────────────────── */
.ligne-entreprise {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0 .6rem;
  align-items: baseline;
  padding: .32rem .5rem;
  border-bottom: 1px solid var(--bordure);
  font-size: .875em;
}

.ligne-entreprise:hover              { background: var(--creme-hover); }
.ligne-entreprise:nth-child(even)    { background: #faf8f4; }
.ligne-entreprise:nth-child(even):hover { background: var(--creme-hover); }

.ent-nom     { font-weight: 600; color: var(--bleu); }
.ent-adresse { color: var(--texte-doux); font-size: .9em; }

.ent-tel a {
  color: var(--sticky-btn-h);
  font-weight: 600;
  font-size: .88em;
  white-space: nowrap;
}
.ent-tel a:hover { color: var(--bleu-hover); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   MENU NAVIGATION (colonne centrale)
   ═══════════════════════════════════════════════════ */
#menu img { margin-bottom: 1rem; }

#menu ul { padding: 0; }

#menu ul li {
  list-style-type: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#menu ul li a {
  display: block;
  color: #c8d6f0;
  font-family: var(--font-corps);
  font-size: .88em;
  padding: .42rem .4rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .15s, background .15s;
}

#menu ul li a:hover,
#menu ul li a:focus {
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

#menu ul li.active a,
#menu ul li a[href="carrelages-liege.htm"] {
  color: var(--sticky-btn);
  font-weight: 600;
}

#menu ul li.sep {
  border-top: 2px solid var(--sticky-btn);
  margin-top: .5rem;
  padding-top: .3rem;
}
#menu ul li.sep a { color: #ffd080; }

/* ═══════════════════════════════════════════════════
   COLONNE LIENS UTILES
   ═══════════════════════════════════════════════════ */
.documentation {
  font-size: .82em;
  text-align: center;
  color: var(--texte-doux);
  margin-bottom: 1.2rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--bordure);
  padding-bottom: 1rem;
}

.documentation a img {
  border: 2px solid var(--bordure);
  transition: border-color .2s;
}
.documentation a:hover img { border-color: var(--bleu); }

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq-section {
  margin-top: 1.5rem;
}

.faq-section h2 {
  background: none;
  color: var(--bleu);
  border-left: 4px solid var(--sticky-btn);
  padding-left: .7rem;
  display: block;
  font-family: var(--font-corps);
  font-size: 1em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .8rem;
}

.faq-item {
  border-bottom: 1px solid var(--bordure);
  padding: .8rem 0;
}

.faq-item h3 {
  font-size: .92em;
  font-weight: 600;
  color: var(--bleu);
  margin-bottom: .25rem;
}

.faq-item p {
  font-size: .87em;
  color: var(--texte-doux);
  margin: 0;
  clear: none;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
#footer {
  clear: both;
  background: var(--bleu-menu);
  color: #a0b4d0;
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: .8em;
  margin-top: 1rem;
}

#footer a { color: var(--sticky-btn); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE ≤ 800px
   Correction padding : le texte ne colle plus au bord
   ═══════════════════════════════════════════════════ */
@media screen and (max-width: 800px) {

  /* Sticky : bouton centré pleine largeur */
  #sticky-devis {
    justify-content: center;
    padding: 0 1rem;
  }
  #sticky-devis .sticky-label { display: none; }
  #sticky-devis .btn-devis {
    width: 90%;
    justify-content: center;
    font-size: 1.05rem;
  }

  /* Les 3 colonnes passent en bloc pleine largeur */
  #contenu,
  #menu,
  #liens-utiles-construction-liege {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4% 6% !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  /* Légère séparation visuelle entre blocs */
  #contenu                        { border-bottom: 2px solid var(--bordure); }
  #menu                           { border-bottom: 2px solid rgba(255,255,255,.1); }

  #menu_mobile {
    padding: 1%;
    margin-left: 84%;
    margin-right: 5%;
    width: 12%;
    height: 80px;
    position: fixed;
    z-index: 4;
  }

  #contenu h1 { padding-right: 15%; }

  li { font-size: 1.1em; padding: 4px 0; }

  /* Lignes entreprises : empilement vertical */
  .ligne-entreprise {
    grid-template-columns: 1fr;
    gap: .15rem;
    padding: .5rem .2rem;
  }

  /* FAQ sans débordement */
  .faq-section { padding: 0; }
}
/* ═══════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════ */
#faq-section {
  margin-top: 1.5rem;
}

#faq-section h2 {
  background: none;
  color: var(--bleu);
  border-left: 4px solid var(--sticky-btn);
  padding-left: .7rem;
  display: block;
  font-family: var(--font-corps);
  font-size: 1em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .8rem;
}

/* ═══════════════════════════════════════════════════
   BURGER MOBILE — bouton fixe bas-droite
   Visible uniquement sur smartphone
   ═══════════════════════════════════════════════════ */
#burger {
  display: none;
}

@media screen and (max-width: 800px) {

  /* Bouton TOUS LES MÉTIERS — centré en bas, texte blanc sur fond marine */
  #burger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: auto;
    height: auto;
    padding: .7rem 1.8rem;
    background: var(--bleu-menu);
    color: #fff;
    border: 2px solid var(--sticky-btn);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
    font-family: var(--font-titre);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .07em;
    white-space: nowrap;
  }

  /* Spans inutiles — cachés */
  #burger span { display: none; }

  /* Quand ouvert : changer le texte via data ou laisser le JS gérer */
  #burger.is-open { border-color: #fff; }

  /* Menu caché par défaut sur mobile, glisse depuis la droite */
  #menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: -4px 0 20px rgba(0,0,0,.35);
    padding: 1.5rem 1rem !important;
    margin: 0 !important;
  }

  #menu.menu-open {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;  /* scroll fluide iOS */
    overscroll-behavior: contain;       /* empêche le scroll de passer à la page */
    pointer-events: all;
  }

  /* Bloquer le scroll de la page derrière */
  body.menu-open {
    overflow: hidden;
  }

  /* Fond semi-transparent derrière le menu ouvert */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1400;
  }
}

/* ═══════════════════════════════════════════════════
   ACCORDÉON INTRO — details/summary natif, zéro JS
   ═══════════════════════════════════════════════════ */
details.intro-more {
  margin: .3rem 0 .8rem;
}
details.intro-more summary {
  display: inline-block;
  color: var(--bleu);
  font-size: .85em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;   /* supprime le triangle natif */
}
details.intro-more summary::-webkit-details-marker { display: none; }
details.intro-more summary::before { content: 'Lire la suite…'; }
details.intro-more[open] summary::before { content: '▲ Réduire'; }
details.intro-more summary:hover { color: var(--bleu-hover); }
details.intro-more p { margin-top: .5rem; }
