/* LEPETIT Maçonnerie - feuille de style du site statique */
:root {
  --bleu: #3773b9;
  --bleu-fonce: #2a5c96;
  --accent: #26aae1;
  --jaune: #f8b400;
  --texte: #5d5d5d;
  --titre: #1e1e1e;
  --fond-clair: #f5f5f5;
  --pied: #1e1e1e;
  --largeur: 1170px;
  --rayon: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--texte);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--titre); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--grise { background: var(--fond-clair); }
.titre-section {
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em;
  border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 30px;
}
.centre { text-align: center; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barre du haut ---------- */
.barre-haut { background: var(--fond-clair); font-size: 13px; }
.barre-haut .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.barre-haut ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.barre-haut a { color: var(--texte); }
.langues { display: flex; gap: 8px; align-items: center; }
.langues img { width: 22px; height: 22px; }

/* ---------- En-tête et menu ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo img { height: 46px; width: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; gap: 4px; }
.menu li { position: relative; }
.menu a {
  display: block; padding: 10px 12px; color: #111; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.menu a:hover, .menu a[aria-current="page"], .menu .actif > a { color: var(--accent); }
.menu .sous-menu {
  position: absolute; left: 0; top: 100%; min-width: 210px; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu li:hover > .sous-menu, .menu li:focus-within > .sous-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sous-menu a { text-transform: none; font-weight: 400; font-size: 14px; padding: 10px 16px; }
.bouton-menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.bouton-menu span { display: block; width: 26px; height: 3px; background: #111; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 991px) {
  .bouton-menu { display: block; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; padding: 90px 10px 20px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); overflow-y: auto;
  }
  .menu.ouvert { transform: none; visibility: visible; }
  .menu > ul { flex-direction: column; }
  .menu .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
  .bouton-menu { position: relative; z-index: 60; }
  .bouton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .bouton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bouton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Diaporama d'accueil ---------- */
.diaporama { position: relative; height: clamp(320px, 42vw, 550px); overflow: hidden; background: #222; }
.diapo { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.diapo.active { opacity: 1; }
.diapo img { width: 100%; height: 100%; object-fit: cover; }
.diapo .legende { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.diapo .legende .conteneur { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legende span { display: inline-block; background: var(--jaune); color: #fff; font-weight: 700; padding: 6px 14px; }
.legende .petit { font-size: clamp(13px, 1.3vw, 16px); background: rgba(248,180,0,.92); }
.legende .grand { font-size: clamp(20px, 3vw, 40px); text-transform: uppercase; letter-spacing: .03em; background: rgba(248,180,0,.95); }
.diapo.active .legende span { animation: entree .9s ease both; }
.diapo.active .legende .grand { animation-delay: .25s; }
@keyframes entree { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.diaporama button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 22px; cursor: pointer; z-index: 2;
}
.diaporama button:hover { background: rgba(0,0,0,.6); }
.diaporama .prec { left: 16px; } .diaporama .suiv { right: 16px; }
.points { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.points button { position: static; transform: none; width: 12px; height: 12px; padding: 0; background: rgba(255,255,255,.5); }
.points button.active { background: #fff; }

/* ---------- Bandeau d'appel ---------- */
.appel { background: var(--bleu); color: #fff; padding: 28px 0; }
.appel .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.appel h2 { color: #fff; font-size: 1.25rem; margin: 0; font-weight: 600; }
.bouton {
  display: inline-block; padding: 11px 26px; border: 2px solid currentColor; border-radius: var(--rayon);
  font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; transition: background .2s, color .2s;
}
.appel .bouton { color: #fff; }
.appel .bouton:hover { background: #fff; color: var(--bleu); }
.bouton--plein { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton--plein:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }

/* ---------- Métiers ---------- */
.intro-metiers { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.metiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #e8e8e8; }
.metier { background: var(--fond-clair); padding: 40px 24px; text-align: center; transition: background .25s; }
.metier:hover { background: #fff; }
.metier svg { width: 80px; height: 80px; fill: #444; margin: 0 auto 18px; transition: fill .25s; }
.metier:hover svg { fill: var(--accent); }
.metier h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.metier p { font-size: 14px; margin: 0; }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.atout { display: flex; gap: 20px; margin-bottom: 28px; }
.atout .icone {
  flex: 0 0 74px; height: 74px; border: 2px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; color: var(--bleu);
}
.atout .icone svg { width: 28px; height: 28px; fill: currentColor; }
.atout h3 { font-size: .95rem; text-transform: uppercase; margin-bottom: .4em; }
.atout p { font-size: 14px; margin: 0; }
.atouts figure { margin: 0 0 20px; }

/* ---------- Bandeau RGE ---------- */
.rge {
  background: linear-gradient(rgba(20,30,45,.55), rgba(20,30,45,.55)), url(../../images/demo/video2.jpg) center/cover fixed;
  color: #fff; text-align: center; padding: 110px 0;
}
.rge h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.2rem, 2.4vw, 1.8rem); max-width: 820px; margin: 0 auto; }
@media (hover: none) { .rge { background-attachment: scroll; } }

/* ---------- Cartes (news, galeries) ---------- */
.grille { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.carte { background: #fff; display: flex; flex-direction: column; }
.carte .image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.carte .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte:hover .image img { transform: scale(1.06); }
.carte .corps { padding: 16px 0 0; }
.carte h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: .3em; }
.carte h3 a { color: var(--titre); }
.carte h3 a:hover { color: var(--accent); }
.carte .meta { font-size: 13px; color: #999; margin-bottom: .4em; }
.carte p { font-size: 14px; margin-bottom: .5em; }
.lire-suite { font-size: 13px; font-weight: 600; }

.album .image { position: relative; }
.album .nombre {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
  padding: 3px 9px; border-radius: 20px;
}

/* ---------- Logos labels ---------- */
.labels { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; }
.labels img { max-height: 90px; width: auto; filter: grayscale(.2); transition: filter .3s, transform .3s; }
.labels img:hover { filter: none; transform: scale(1.04); }

/* ---------- Bannière de page ---------- */
.banniere { position: relative; background: #333 center/cover no-repeat; color: #fff; padding: 90px 0 70px; }
.banniere::before { content: ""; position: absolute; inset: 0; background: rgba(15,25,40,.55); }
.banniere .conteneur { position: relative; }
.banniere h1 { color: #fff; margin: 0; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.fil { font-size: 13px; margin-top: 8px; opacity: .9; }
.fil a { color: #fff; text-decoration: underline; }

/* ---------- Pages de contenu ---------- */
.deux-colonnes { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: start; }
.texte p { text-align: justify; }
.competences { margin-top: 30px; }
.competence { margin-bottom: 18px; }
.competence .nom { display: flex; justify-content: space-between; font-weight: 600; color: var(--titre); font-size: 14px; }
.competence .barre { height: 8px; background: #e6e6e6; border-radius: 4px; overflow: hidden; }
.competence .barre span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 1.4s ease; }
.competence.visible .barre span { width: var(--valeur); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.photos a:hover img { transform: scale(1.06); opacity: .9; }
.photos a::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 40px;
  background: rgba(55,115,185,.45); opacity: 0; transition: opacity .3s;
}
.photos a:hover::after { opacity: 1; }

.galerie-entete { margin-bottom: 30px; }
.galerie-entete .meta { color: #999; font-size: 13px; }
.retour { display: inline-block; margin-bottom: 25px; font-weight: 600; font-size: 14px; }

.partenaires { list-style: none; padding: 0; margin: 0; }
.partenaires li { padding: 16px 0; border-bottom: 1px solid #e6e6e6; }
.partenaires strong { display: block; color: var(--titre); font-size: 1.05rem; }

.article img { margin: 0 0 25px; }
.article .contenu img { margin: 20px 0; }
.navigation-articles { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e6e6e6; }

/* ---------- Contact ---------- */
.contact-infos { list-style: none; padding: 0; margin: 0 0 25px; }
.contact-infos li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-infos svg { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--accent); margin-top: 3px; }
.formulaire { display: grid; gap: 14px; }
.formulaire .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulaire label { display: block; font-size: 13px; font-weight: 600; color: var(--titre); margin-bottom: 4px; }
.formulaire input, .formulaire textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d5d5d5; border-radius: var(--rayon); font: inherit; color: var(--titre);
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.note { font-size: 13px; color: #888; }
.carte-acces img { border: 1px solid #e6e6e6; }

/* ---------- Pied de page ---------- */
.pied-haut { background: var(--fond-clair); padding: 60px 0 40px; font-size: 14px; }
.pied-haut .colonnes { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; }
.pied-haut h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.pied-haut ul { list-style: none; margin: 0; padding: 0; }
.pied-haut li { margin-bottom: 8px; }
.pied-haut a { color: var(--texte); }
.pied-haut a:hover { color: var(--accent); }
.pied-haut .logo-pied { max-width: 220px; margin-bottom: 18px; }
.derniers-articles li { display: flex; gap: 12px; align-items: center; }
.derniers-articles img { width: 56px; height: 44px; object-fit: cover; flex: 0 0 56px; }
.pied-bas { background: var(--pied); color: #aaa; font-size: 13px; padding: 18px 0; }
.pied-bas .conteneur { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pied-bas a { color: #ddd; }
.haut-de-page {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--bleu); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s; z-index: 40;
}
.haut-de-page.visible { opacity: 1; visibility: visible; }

/* ---------- Visionneuse photos ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none;
  align-items: center; justify-content: center; padding: 50px 70px;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: 100%; max-height: 82vh; width: auto; box-shadow: 0 0 30px rgba(0,0,0,.6); }
.visionneuse figure { margin: 0; text-align: center; color: #ccc; font-size: 14px; }
.visionneuse figcaption { margin-top: 10px; }
.visionneuse button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; padding: 10px 16px; opacity: .8;
}
.visionneuse button:hover { opacity: 1; }
.visionneuse .fermer { top: 8px; right: 12px; font-size: 38px; }
.visionneuse .precedente { left: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse .suivante { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .metiers { grid-template-columns: repeat(2, 1fr); }
  .atouts, .deux-colonnes { grid-template-columns: 1fr; }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .pied-haut .colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 50px 0; }
  .metiers, .grille, .pied-haut .colonnes, .formulaire .ligne { grid-template-columns: 1fr; }
  .barre-haut .infos { display: none; }
  .logo img { height: 36px; }
  .visionneuse { padding: 50px 10px; }
  .visionneuse .precedente, .visionneuse .suivante { top: auto; bottom: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
}
