/* =========================================================================
   Renodunord - feuille de style de la maquette
   Palette : anthracite (structure), terracotta (action), sable (fonds).
   ========================================================================= */

:root {
  --anthracite: #1f2933;
  --anthracite-2: #2c3a47;
  --terracotta: #d9562b;
  --terracotta-dark: #b8441f;
  --sable: #f6f1ea;
  --sable-2: #ece4d8;
  --blanc: #ffffff;
  --texte: #2b2f33;
  --texte-doux: #5c6670;
  --ligne: #e3ddd3;
  --ok: #2e7d4f;
  --radius: 10px;
  --ombre: 0 10px 30px rgba(31, 41, 51, .10);
  --largeur: 1180px;
  --police-titre: "Poppins", "Segoe UI", system-ui, sans-serif;
  --police-texte: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.2; margin: 0 0 .5em; color: var(--anthracite); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.conteneur { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--sable { background: var(--sable); }
.section--sombre { background: var(--anthracite); color: #dfe5ea; }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }

.surtitre {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .8rem;
}
.intro { max-width: 640px; color: var(--texte-doux); font-size: 1.05rem; }
.centre { text-align: center; }
.centre .intro { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  font-family: var(--police-titre);
  font-size: .98rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--plein { background: var(--terracotta); color: var(--blanc); }
.btn--plein:hover { background: var(--terracotta-dark); }
.btn--contour { border-color: var(--blanc); color: var(--blanc); }
.btn--contour:hover { background: var(--blanc); color: var(--anthracite); }
.btn--contour-sombre { border-color: var(--anthracite); color: var(--anthracite); }
.btn--contour-sombre:hover { background: var(--anthracite); color: var(--blanc); }
.btn--large { width: 100%; justify-content: center; }

/* ---------- Bandeau superieur ---------- */
.topbar {
  background: var(--anthracite);
  color: #cfd6dc;
  font-size: .85rem;
}
.topbar .conteneur { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--blanc); text-decoration: none; }
.topbar span + span { margin-left: 1.5rem; }
.topbar .ico { color: var(--terracotta); margin-right: .35rem; }

/* ---------- En-tete ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.header .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 2rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__marque { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--anthracite); color: var(--blanc); font-family: var(--police-titre); font-weight: 800; font-size: 1.1rem; }
.logo__marque b { color: var(--terracotta); }
.logo__texte { font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem; color: var(--anthracite); line-height: 1; }
.logo__texte small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); margin-top: .25rem; }
.logo__texte em { color: var(--terracotta); font-style: normal; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--anthracite); position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--terracotta); transition: width .2s; }
.nav a:not(.btn):hover::after, .nav a.actif::after { width: 100%; }
.nav .btn { padding: .6rem 1.2rem; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--anthracite); margin: 6px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--blanc);
  background:
    linear-gradient(100deg, rgba(31,41,51,.94) 0%, rgba(31,41,51,.75) 55%, rgba(31,41,51,.35) 100%),
    url("photo-hero.svg");
  background-size: cover; background-position: center;
  min-height: 620px;
  display: flex; align-items: center;
}
.hero h1 { color: var(--blanc); }
.hero .accroche { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: #ffd9c9; margin-bottom: .6rem; }
.hero p.desc { max-width: 560px; font-size: 1.1rem; color: #dfe5ea; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__contenu { max-width: 700px; padding: 5rem 0; }

/* ---------- Barre de confiance ---------- */
.confiance { background: var(--terracotta); color: var(--blanc); }
.confiance ul { list-style: none; margin: 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.confiance li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; justify-content: center; }
.confiance svg { width: 26px; height: 26px; flex: none; }

/* ---------- Grilles ---------- */
.grille { display: grid; gap: 1.6rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Cartes de prestations ---------- */
.carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.carte__ico { width: 54px; height: 54px; border-radius: 12px; background: var(--sable); color: var(--terracotta); display: grid; place-items: center; margin-bottom: 1.2rem; }
.carte__ico svg { width: 28px; height: 28px; }
.carte p { color: var(--texte-doux); font-size: .95rem; flex: 1; }
.carte .lien { color: var(--terracotta); font-weight: 600; text-decoration: none; font-size: .95rem; }
.carte .lien:hover { text-decoration: underline; }

/* ---------- Etapes ---------- */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; position: relative; }
.etape { position: relative; padding-top: .5rem; }
.etape::before {
  counter-increment: etape; content: "0" counter(etape);
  font-family: var(--police-titre); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--terracotta); opacity: .9; display: block; margin-bottom: .8rem;
}
.etape h3 { color: var(--blanc); }
.etape p { color: #b9c3cc; font-size: .95rem; }

/* ---------- A propos ---------- */
.apropos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.apropos__photo { position: relative; }
.photo {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: var(--sable-2);
  display: grid; place-items: center; text-align: center;
  color: var(--texte-doux); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.photo--haute { aspect-ratio: 4/5; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(31,41,51,.05), rgba(31,41,51,.35)); }
.photo span { position: relative; z-index: 1; padding: .5rem 1rem; border: 1px dashed rgba(255,255,255,.6); border-radius: 6px; color: var(--blanc); background: rgba(31,41,51,.35); }
.photo--t1 { background: linear-gradient(135deg, #c9b8a3, #8d7c68); }
.photo--t2 { background: linear-gradient(135deg, #a9b7c2, #5f6f7d); }
.photo--t3 { background: linear-gradient(135deg, #d8c6b0, #a68b6e); }
.photo--t4 { background: linear-gradient(135deg, #b8c4b0, #6f7f66); }
.photo--t5 { background: linear-gradient(135deg, #cfc2bd, #8a7671); }
.photo--t6 { background: linear-gradient(135deg, #bcb5ad, #6b625a); }
.badge-exp {
  position: absolute; right: -1rem; bottom: -1rem;
  background: var(--terracotta); color: var(--blanc);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--ombre);
  font-family: var(--police-titre); line-height: 1.1;
}
.badge-exp b { display: block; font-size: 2.4rem; font-weight: 800; }
.badge-exp small { font-size: .85rem; font-weight: 500; }
.points-forts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.points-forts li { display: flex; gap: .8rem; align-items: flex-start; }
.points-forts svg { width: 26px; height: 26px; flex: none; color: var(--terracotta); margin-top: .1rem; }
.points-forts b { display: block; color: var(--anthracite); font-family: var(--police-titre); }
.points-forts span { color: var(--texte-doux); font-size: .92rem; }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: center; }
.chiffre b { display: block; font-family: var(--police-titre); font-size: 2.8rem; font-weight: 800; color: var(--terracotta); line-height: 1; }
.chiffre span { color: var(--texte-doux); font-weight: 500; }

/* ---------- Realisations ---------- */
.realisations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.realisation { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; }
.realisation .photo { aspect-ratio: 4/3; border-radius: 0; }
.realisation__legende {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem;
  background: linear-gradient(to top, rgba(31,41,51,.92), rgba(31,41,51,0));
  color: var(--blanc); z-index: 2;
}
.realisation__legende small { display: block; color: #ffd9c9; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: .2rem; }
.realisation__legende b { font-family: var(--police-titre); font-size: 1.1rem; }
.realisation:hover .photo { filter: brightness(1.08); }

/* ---------- Avis ---------- */
.avis { background: var(--blanc); border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.etoiles { color: #f2a623; letter-spacing: .1em; font-size: 1.05rem; margin-bottom: .8rem; }
.avis p { flex: 1; font-style: italic; color: var(--texte); }
.avis footer { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--anthracite); color: var(--blanc); display: grid; place-items: center; font-weight: 700; font-family: var(--police-titre); }
.avis footer b { display: block; font-size: .95rem; }
.avis footer span { font-size: .85rem; color: var(--texte-doux); }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.villes { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.villes li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: .4rem 1rem; font-weight: 500; font-size: .92rem; }
.villes li.principale { background: var(--anthracite); color: var(--blanc); border-color: var(--anthracite); }
.carte-nord { background: var(--blanc); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--ligne); }
.carte-nord svg { width: 100%; height: auto; }

/* ---------- Bandeau CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--terracotta), #e6773f);
  color: var(--blanc); border-radius: var(--radius);
  padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta h2 { color: var(--blanc); margin: 0 0 .3rem; }
.cta p { margin: 0; color: #ffe6da; }
.cta .btn--contour { border-color: var(--blanc); }
.cta .btn--contour:hover { color: var(--terracotta); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.coordonnees { list-style: none; padding: 0; margin: 1.5rem 0; }
.coordonnees li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--ligne); }
.coordonnees li:last-child { border-bottom: 0; }
.coordonnees svg { width: 24px; height: 24px; color: var(--terracotta); flex: none; margin-top: .15rem; }
.coordonnees b { display: block; font-family: var(--police-titre); color: var(--anthracite); }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }

.formulaire { background: var(--blanc); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--ombre); }
.formulaire h3 { margin-bottom: 1.4rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .88rem; font-weight: 600; color: var(--anthracite); }
.champ input, .champ select, .champ textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid #d5cfc6; border-radius: 6px; background: #fbf9f6;
  transition: border-color .15s, box-shadow .15s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(217,86,43,.15); background: var(--blanc); }
.champ textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--texte-doux); margin: 1rem 0; }
.consent input { margin-top: .3rem; }
.formulaire .note { font-size: .8rem; color: var(--texte-doux); margin: .8rem 0 0; text-align: center; }
.confirmation { display: none; background: #e8f5ec; border: 1px solid #b9dec5; color: var(--ok); border-radius: 6px; padding: 1rem; margin-top: 1rem; font-weight: 500; }
.confirmation.visible { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--ligne); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--police-titre); color: var(--anthracite); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--terracotta); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.footer { background: var(--anthracite); color: #b9c3cc; padding: 4rem 0 0; font-size: .95rem; }
.footer__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: var(--blanc); font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: #dfe5ea; text-decoration: none; }
.footer a:hover { color: var(--blanc); text-decoration: underline; }
.footer .logo__texte { color: var(--blanc); }
.footer .logo__texte small { color: #9aa6b1; }
.footer .logo__marque { background: var(--blanc); color: var(--anthracite); }
.footer p { color: #b9c3cc; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .4rem; }
.reseaux { display: flex; gap: .7rem; margin-top: 1rem; }
.reseaux a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.reseaux a:hover { background: var(--terracotta); }
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bas { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; }
.footer__bas .conteneur { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer__bas a { margin-left: 1.2rem; }

/* ---------- Pages internes ---------- */
.bandeau-page {
  background: linear-gradient(100deg, var(--anthracite), var(--anthracite-2));
  color: var(--blanc); padding: 4rem 0 3rem;
}
.bandeau-page h1 { color: var(--blanc); font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.bandeau-page p { color: #cfd6dc; max-width: 640px; margin: 0; }
.fil { font-size: .85rem; color: #9aa6b1; margin-bottom: 1rem; }
.fil a { color: #cfd6dc; text-decoration: none; }

.prestation-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0; border-bottom: 1px solid var(--ligne); }
.prestation-detail:last-child { border-bottom: 0; }
.prestation-detail:nth-child(even) .photo { order: -1; }
.prestation-detail ul { padding-left: 1.2rem; color: var(--texte-doux); }
.prestation-detail li { margin-bottom: .3rem; }
.prestation-detail li::marker { color: var(--terracotta); }

.juridique { max-width: 760px; }
.juridique h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.juridique p, .juridique li { color: var(--texte-doux); }
.a-completer { background: #fff4e5; border-left: 4px solid #f2a623; padding: .8rem 1rem; border-radius: 4px; color: #7a4b00; font-size: .9rem; }

/* ---------- Bouton appel mobile ---------- */
.appel-flottant { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .apropos, .zone, .contact, .prestation-detail { grid-template-columns: 1fr; }
  .prestation-detail:nth-child(even) .photo { order: 0; }
  .footer__grille { grid-template-columns: 1fr 1fr; }
  .badge-exp { right: 1rem; bottom: -1rem; }
}
@media (max-width: 800px) {
  .section { padding: 3.5rem 0; }
  .topbar .masquer-mobile { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--blanc);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--ligne);
    transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: var(--ombre);
  }
  .nav.ouvert { transform: translateY(0); visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--ligne); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .hero { min-height: 520px; }
  .champs { grid-template-columns: 1fr; }
  .points-forts { grid-template-columns: 1fr; }
  .cta { padding: 2rem; }
  .footer__grille { grid-template-columns: 1fr; }
  .appel-flottant {
    display: flex; position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
    background: var(--terracotta); color: var(--blanc); width: 56px; height: 56px; border-radius: 50%;
    align-items: center; justify-content: center; box-shadow: var(--ombre);
  }
  .appel-flottant svg { width: 26px; height: 26px; }
}

/* ---------- Formulaire PHP : anti-spam et messages ---------- */
.piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.confirmation.erreur { background: #fdecef; border-color: #f2c4cc; color: #8a2f3d; }
