/* ============================================================
   LC Métal Créa — feuille de style principale
   Palette : charbon #131417 / blanc cassé #f5f4f2 / rouge #d40f2c
   ============================================================ */

:root {
  --bg-dark: #131417;
  --bg-dark-2: #1b1d21;
  --bg-light: #f5f4f2;
  --bg-light-2: #ffffff;
  --ink: #23252a;
  --ink-soft: #565a63;
  --blanc: #fdfdfc;
  --accent: #d40f2c;
  --accent-dark: #a80c23;
  --steel: #9198a3;
  --border: #e4e2de;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 16, 20, .12);
  --font-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-texte: "Barlow", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.conteneur { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---------- Barre d'annonce accessibilité ---------- */
.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 999;
}
.lien-evitement:focus { left: 0; color: #fff; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 20, 23, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.entete-int {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .55rem 0;
}

.logo-lien { display: flex; align-items: center; gap: .7rem; }
.logo-lien img { height: 58px; width: auto; }

.nav-principale ul {
  display: flex; gap: .3rem; list-style: none; align-items: center;
}

.nav-principale a {
  display: block; padding: .55rem .95rem;
  color: #e8e8e6; font-weight: 600;
  font-family: var(--font-titre); font-size: 1.12rem;
  text-transform: uppercase; letter-spacing: .06em;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.nav-principale a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-principale a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }

.nav-principale .nav-cta a {
  background: var(--accent); color: #fff; border-radius: 6px; box-shadow: none;
}
.nav-principale .nav-cta a:hover { background: var(--accent-dark); }

.bouton-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.bouton-burger span, .bouton-burger span::before, .bouton-burger span::after {
  content: ""; display: block; position: absolute; left: 8px;
  width: 28px; height: 3px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.bouton-burger span { top: 21px; }
.bouton-burger span::before { top: -9px; left: 0; }
.bouton-burger span::after { top: 9px; left: 0; }
.bouton-burger[aria-expanded="true"] span { background: transparent; }
.bouton-burger[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
.bouton-burger[aria-expanded="true"] span::after { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--blanc);
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-fond {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .38; filter: saturate(.85);
}

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,20,23,.2) 0%, rgba(19,20,23,.65) 75%, var(--bg-dark) 100%);
}

.hero-int {
  position: relative; z-index: 2;
  padding: clamp(4.5rem, 11vw, 9rem) 0;
  max-width: 780px;
}

.fil-ariane {
  font-size: .9rem; color: #b9bbb9; margin-bottom: 1.1rem;
}
.fil-ariane a { color: #d9d9d6; }
.fil-ariane a:hover { color: #fff; }
.fil-ariane .separateur { margin: 0 .45rem; color: var(--accent); }

.hero .surtitre {
  color: var(--accent); font-family: var(--font-titre);
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .22em;
  font-weight: 600; margin-bottom: .8rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  color: #fff; margin-bottom: 1.2rem;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d9d9d6; max-width: 620px; margin-bottom: 2rem;
}

.hero-boutons { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Hero réduit (pages intérieures) */
.hero-page .hero-int { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; padding: .85rem 1.9rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-titre); font-size: 1.15rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  border: 0; border-radius: 6px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.bouton:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.bouton-secondaire {
  background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.bouton-secondaire:hover { background: rgba(255,255,255,.1); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sombre { background: var(--bg-dark); color: #d9d9d6; }
.section-sombre h2 { color: #fff; }
.section-blanche { background: var(--bg-light-2); }

.titre-section {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: .6rem; position: relative; padding-left: 1.1rem;
}
.titre-section::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 5px; background: var(--accent); border-radius: 3px;
}

.intro-section { max-width: 760px; color: var(--ink-soft); margin-bottom: 2.5rem; }
.section-sombre .intro-section { color: #b9bbb9; }

/* ---------- Accueil : présentation ---------- */
.deux-colonnes {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.deux-colonnes figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.deux-colonnes figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

.points-forts { list-style: none; margin-top: 1.6rem; display: grid; gap: .75rem; }
.points-forts li { padding-left: 1.9rem; position: relative; }
.points-forts li::before {
  content: "▸"; position: absolute; left: .3rem; color: var(--accent); font-weight: 700;
}

/* ---------- Accueil : cartes services ---------- */
.cartes-services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.carte-service {
  background: var(--bg-dark-2); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,.06);
}
.carte-service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }

.carte-service img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.carte-service-corps { padding: 1.5rem 1.5rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.carte-service h3 { color: #fff; font-size: 1.5rem; margin-bottom: .7rem; }
.carte-service p { color: #b9bbb9; font-size: .98rem; flex: 1; }

.carte-service .lien-carte {
  margin-top: 1.3rem; color: var(--accent); font-weight: 700;
  font-family: var(--font-titre); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.05rem;
}
.carte-service .lien-carte::after { content: " →"; }
.carte-service:hover .lien-carte { color: #fff; }

/* Carte cliquable en entier */
.carte-service { position: relative; }
.carte-service .lien-carte::before { content: ""; position: absolute; inset: 0; }

/* ---------- Galerie de réalisations ---------- */
.projet {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}
.projet:last-of-type { border-bottom: 0; }

.projet-entete { max-width: 760px; margin-bottom: 1.8rem; }
.projet h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .55rem; position: relative; padding-left: 1rem; }
.projet h2::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 4px; background: var(--accent); border-radius: 2px;
}
.projet p { color: var(--ink-soft); }

.grille-photos {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grille-photos a {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,16,20,.12);
}
.grille-photos img {
  aspect-ratio: 1/1; object-fit: cover; width: 100%;
  transition: transform .35s;
}
.grille-photos a:hover img { transform: scale(1.045); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 10, 12, .93);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 88vh;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff;
  font-size: 1.7rem; cursor: pointer; border-radius: 50%;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox button:hover { background: var(--accent); }
.lightbox .lb-fermer { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-suiv { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Bandeau appel à l'action ---------- */
.bandeau-cta { text-align: center; }
.bandeau-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.bandeau-cta p { max-width: 640px; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grille {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

.coordonnees { display: grid; gap: 1.1rem; }
.coordonnees .item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--bg-light-2); border: 1px solid var(--border);
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
}
.coordonnees .item strong { display: block; font-family: var(--font-titre); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.coordonnees .pictos { color: var(--accent); font-size: 1.4rem; line-height: 1.3; }

.carte-zone img { border-radius: var(--radius); box-shadow: var(--shadow); }
.carte-zone figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.formulaire { display: grid; gap: 1.1rem; }
.formulaire label { font-weight: 600; display: block; margin-bottom: .35rem; }
.formulaire input, .formulaire textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid #cfcdc8; border-radius: 6px;
  font: inherit; background: #fff; color: var(--ink);
}
.formulaire input:focus, .formulaire textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.champ-cache { position: absolute; left: -9999px; }

.message-form {
  padding: 1rem 1.2rem; border-radius: 6px; font-weight: 600;
}
.message-form.ok { background: #e4f2e6; color: #1d6b2a; border: 1px solid #bcdcc2; }
.message-form.erreur { background: #fbe6e9; color: #96101f; border: 1px solid #efb9c0; }

/* ---------- Cartes prestations ---------- */
.grille-prestations {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.carte-prestation {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--bg-light-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem 1.5rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.carte-prestation:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.carte-prestation h3 { font-size: 1.3rem; }
.carte-prestation p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.carte-prestation .lien-carte {
  font-family: var(--font-titre); font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1rem; color: var(--accent);
}
.carte-prestation .lien-carte::after { content: " →"; }
.carte-prestation .lien-carte::before { content: ""; position: absolute; inset: 0; }

/* ---------- Réassurance (pourquoi me choisir) ---------- */
.grille-atouts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.atout {
  background: var(--bg-light-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.section-sombre .atout { background: var(--bg-dark-2); border-color: rgba(255,255,255,.08); }
.atout .picto { font-size: 1.7rem; display: block; margin-bottom: .5rem; }
.atout strong { display: block; font-family: var(--font-titre); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; margin-bottom: .3rem; }
.atout p { font-size: .93rem; color: var(--ink-soft); }
.section-sombre .atout p { color: #b9bbb9; }
.section-sombre .atout strong { color: #fff; }

/* ---------- Étapes (comment ça se passe) ---------- */
.etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem; counter-reset: etape;
}
.etape {
  position: relative; padding: 1.6rem 1.3rem 1.3rem;
  background: var(--bg-light-2); border: 1px solid var(--border); border-radius: var(--radius);
  counter-increment: etape;
}
.etape::before {
  content: counter(etape);
  position: absolute; top: -1rem; left: 1.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.etape strong { display: block; font-family: var(--font-titre); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; margin-bottom: .35rem; }
.etape p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: .8rem; }
.faq details {
  background: var(--bg-light-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 1.3rem;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.05rem 0; list-style: none;
  position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.5rem; font-weight: 600; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* ---------- Zone d'intervention ---------- */
.liste-communes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: 1rem; }
.liste-communes li {
  background: var(--bg-light-2); border: 1px solid var(--border);
  border-radius: 99px; padding: .3rem .9rem; font-size: .9rem; color: var(--ink-soft);
}

/* ---------- Bouton d'appel mobile (fixe en bas) ---------- */
.appel-mobile {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--accent); color: #fff; text-align: center;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .9rem 1rem; box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.appel-mobile:hover { color: #fff; background: var(--accent-dark); }
@media (max-width: 820px) {
  .appel-mobile { display: block; }
  body { padding-bottom: 3.4rem; }
}

/* ---------- Bandeau cookies ---------- */
.bandeau-cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 400;
  max-width: 560px; margin-inline: auto;
  background: var(--bg-dark-2); color: #d9d9d6;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  font-size: .95rem;
}
.bandeau-cookies-boutons { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.bandeau-cookies .bouton { font-size: 1rem; padding: .6rem 1.4rem; }
.bandeau-cookies .bouton-refus {
  background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); color: #d9d9d6;
}
.bandeau-cookies .bouton-refus:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 820px) {
  .bandeau-cookies { bottom: 4.2rem; } /* au-dessus du bouton d'appel mobile */
}

/* ---------- Pied de page ---------- */
.pied {
  background: var(--bg-dark); color: #b9bbb9;
  padding: 3.5rem 0 2rem; margin-top: 0;
}
.pied-grille {
  display: grid; grid-template-columns: 1.3fr .9fr 1fr .9fr;
  gap: 2.5rem; align-items: start; margin-bottom: 2.5rem;
}
.pied img.logo-pied { height: 90px; width: auto; margin-bottom: 1rem; }
.pied h3 { color: #fff; font-size: 1.2rem; margin-bottom: .9rem; letter-spacing: .08em; }
.pied ul { list-style: none; display: grid; gap: .5rem; }
.pied a { color: #b9bbb9; }
.pied a:hover { color: #fff; }
.pied .reseaux { display: flex; gap: .9rem; margin-top: 1rem; }
.pied .reseaux a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); transition: background .2s;
}
.pied .reseaux a:hover { background: var(--accent); }
.pied .reseaux svg { width: 20px; height: 20px; fill: #fff; }

.pied-bas {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.4rem; font-size: .88rem; color: #83868f;
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: space-between;
}
.pied-bas a { color: #83868f; }
.pied-bas a:hover { color: #fff; }

/* ---------- Mentions légales ---------- */
.texte-legal { max-width: 800px; }
.texte-legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.texte-legal p, .texte-legal li { color: var(--ink-soft); margin-bottom: .8rem; }
.texte-legal ul { padding-left: 1.4rem; }

/* ---------- Animations d'apparition ---------- */
.apparait { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cartes-services { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .deux-colonnes, .contact-grille { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .bouton-burger { display: block; }
  .nav-principale {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-principale.ouverte { display: block; }
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 4%; }
  .nav-principale a { padding: .9rem .6rem; border-radius: 0; }
  .nav-principale a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .nav-principale .nav-cta { margin: .6rem 0 .8rem; }
  .nav-principale .nav-cta a { border-radius: 6px; text-align: center; }
}

@media (max-width: 560px) {
  .pied-grille { grid-template-columns: 1fr; }
  .grille-photos { grid-template-columns: 1fr 1fr; }
  .logo-lien img { height: 48px; }
}
