/* Modèle de site vitrine d'artisan. Les couleurs viennent de theme.css (une par entreprise). */
:root {
  --accent: #1f5fa8; --accent-fonce: #174a85; --accent-doux: #e8f0fa; --sur-accent: #fff;
  --encre: #17212e; --doux: #556274; --fond: #fff; --fond-2: #f5f7fa; --trait: #dfe5ec;
  --ombre: 0 1px 2px rgba(23,33,46,.06), 0 14px 34px rgba(23,33,46,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       color: var(--encre); background: var(--fond); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
p { margin: 0; }
.largeur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Bandeau des sites d'exemple */
.exemple { background: #1b2430; color: #dfe6ee; font-size: .88rem; text-align: center; padding: 8px 16px; }
.exemple a { color: #fff; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
          border-bottom: 1px solid var(--trait); }
.entete .largeur { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 1.12rem; color: var(--encre);
          text-decoration: none; letter-spacing: -0.01em; }
.sigle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
         background: var(--accent); color: var(--sur-accent); font-weight: 800; font-size: 1rem; letter-spacing: 0; }
.entete nav { margin-left: auto; display: flex; gap: 22px; font-size: .96rem; }
.entete nav a { color: var(--doux); text-decoration: none; }
.entete nav a:hover { color: var(--accent); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
          background: var(--accent); color: var(--sur-accent); font-weight: 700; text-decoration: none;
          border: 2px solid var(--accent); transition: transform .12s ease, background .12s ease; }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); transform: translateY(-1px); }
.bouton.clair { background: transparent; color: var(--accent); }
.bouton.clair:hover { background: var(--accent-doux); }
.entete .bouton { padding: 9px 16px; font-size: .96rem; white-space: nowrap; }

/* Accroche */
.accroche { background: linear-gradient(180deg, var(--accent-doux), var(--fond) 92%); padding: 76px 0 84px; }
.accroche .largeur { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700;
            font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.surtitre::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--accent); }
.accroche h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; }
.accroche h1 em { font-style: normal; color: var(--accent); }
.accroche .chapo { font-size: 1.2rem; color: var(--doux); margin-top: 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.coches { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
          color: var(--doux); font-size: .96rem; }
.coches li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* À droite de l'accroche : une photo, ou la carte de l'entreprise */
.accroche .photo img { border-radius: 20px; box-shadow: var(--ombre); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.carte-visite { background: var(--accent); color: var(--sur-accent); border-radius: 22px; padding: 34px;
                box-shadow: var(--ombre); position: relative; overflow: hidden; isolation: isolate; }
.carte-visite::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%;
                        right: -110px; top: -130px; background: rgba(255,255,255,.1); }
.carte-visite::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
                       left: -90px; bottom: -120px; background: rgba(0,0,0,.1); }
.carte-visite .nom { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.carte-visite .metier { opacity: .86; margin-top: 4px; }
.carte-visite dl { margin: 26px 0 0; display: grid; gap: 14px; }
.carte-visite dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.carte-visite dd { margin: 2px 0 0; font-weight: 650; }
.carte-visite a { color: inherit; text-decoration: none; }
.carte-visite .grand { font-size: 1.55rem; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 84px 0; }
.section.teintee { background: var(--fond-2); }
.intro { max-width: 40em; margin-bottom: 40px; }
.intro p { color: var(--doux); font-size: 1.1rem; margin-top: 14px; }

.prestations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0;
               list-style: none; counter-reset: prestation; }
.prestations li { background: var(--fond); border: 1px solid var(--trait); border-radius: 18px; padding: 26px;
                  counter-increment: prestation; transition: transform .15s ease, box-shadow .15s ease; }
.prestations li:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.prestations li::before { content: counter(prestation, decimal-leading-zero); display: block; color: var(--accent);
                          font-weight: 800; font-size: .86rem; letter-spacing: .08em; margin-bottom: 14px; }
.prestations h3 { font-size: 1.14rem; }
.prestations p { color: var(--doux); margin-top: 8px; font-size: .98rem; }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.atouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.atouts li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.atouts li::before { content: "✓"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
                     background: var(--accent-doux); color: var(--accent); font-weight: 800; }
.presentation p + p { margin-top: 14px; }
.presentation p { color: var(--doux); font-size: 1.06rem; }
.presentation h2 { margin-bottom: 18px; }

.communes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.communes li { background: var(--fond); border: 1px solid var(--trait); border-radius: 999px; padding: 7px 16px; font-size: .96rem; }
.communes li:first-child { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 700; }
.rayon { color: var(--doux); margin-top: 18px; }

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.galerie figure { margin: 0; }
.galerie img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galerie figcaption { color: var(--doux); font-size: .92rem; margin-top: 8px; }

.avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.avis blockquote { margin: 0; background: var(--fond); border: 1px solid var(--trait); border-radius: 18px; padding: 26px;
                   border-top: 4px solid var(--accent); }
.avis blockquote p { font-size: 1.02rem; }
.avis footer { color: var(--doux); font-size: .92rem; margin-top: 14px; }

/* Contact */
.contact { background: var(--encre); color: #fff; padding: 84px 0; }
.contact .largeur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: #b9c4d1; font-size: 1.1rem; margin-top: 14px; }
.contact .bouton.clair { color: #fff; border-color: rgba(255,255,255,.4); }
.contact .bouton.clair:hover { background: rgba(255,255,255,.1); }
.coordonnees { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px;
               margin: 0; display: grid; gap: 16px; }
.coordonnees dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #93a1b3; }
.coordonnees dd { margin: 2px 0 0; font-weight: 600; }
.coordonnees a { color: #fff; }

.pied { background: #101820; color: #93a1b3; font-size: .9rem; padding: 26px 0; }
.pied .largeur { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pied a { color: #cfd8e3; }

/* Page des mentions légales */
.texte { padding: 64px 0 84px; max-width: 760px; }
.texte h1 { font-size: 2.1rem; margin-bottom: 26px; }
.texte h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.texte p { color: var(--doux); }

@media (max-width: 860px) {
  .accroche { padding: 48px 0 56px; }
  .accroche .largeur, .deux, .contact .largeur { grid-template-columns: 1fr; gap: 36px; }
  .entete nav { display: none; }
  .prestations { grid-template-columns: 1fr 1fr; }
  .entete .bouton { margin-left: auto; }
  .section, .contact { padding: 60px 0; }
  .actions .bouton { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .prestations { grid-template-columns: 1fr; }
  .entete .largeur { gap: 12px; padding: 0 16px; }
  .marque { min-width: 0; font-size: 1rem; gap: 9px; line-height: 1.15; }
  .entete .bouton { padding: 8px 12px; font-size: .88rem; flex: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .accroche .largeur > * { animation: monte .6s ease-out both; }
  .accroche .largeur > :nth-child(2) { animation-delay: .15s; }
}
@media print { .entete, .exemple { position: static; } .bouton { border: 1px solid; } }

/* ───── Thème « Chantier » : sombre, anguleux, titres en capitales ───── */
:root {
  --encre: #f1f3f5; --doux: #a9b3bf; --fond: #15191e; --fond-2: #1c2128; --trait: #2f3742;
  --ombre: 0 0 0 1px #3a4350, 0 18px 40px rgba(0,0,0,.45);
}
body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent-vif); }
h1, h2, h3, .marque, .surtitre, .bouton, .carte-visite .nom {
  font-family: "Bahnschrift Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-stretch: condensed; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
h2::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 16px;
            background: repeating-linear-gradient(-45deg, var(--accent-vif) 0 8px, transparent 8px 14px); }

.entete { background: rgba(21,25,30,.94); border-bottom: 3px solid var(--accent); }
.marque { color: #fff; font-size: 1.25rem; letter-spacing: .04em; }
.sigle, .bouton, .carte-visite, .prestations li, .avis blockquote, .coordonnees, .galerie img,
.accroche .photo img, .communes li, .atouts li::before { border-radius: 0; }
.entete nav a { color: var(--doux); text-transform: uppercase; font-size: .84rem; letter-spacing: .08em; }
.entete nav a:hover { color: #fff; }
.bouton { letter-spacing: .06em; font-size: 1.02rem; }
.bouton.clair { color: #fff; border-color: #56616f; }
.bouton.clair:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.accroche { background: #101317; padding: 88px 0 0; position: relative; }
.accroche::after { content: ""; display: block; height: 18px; margin-top: 84px;
                   background: repeating-linear-gradient(-45deg, var(--accent) 0 22px, #101317 22px 44px); }
.accroche .largeur { grid-template-columns: 1.3fr .7fr; }
.surtitre { color: var(--accent-vif); font-size: .95rem; letter-spacing: .16em; }
.surtitre::before { background: var(--accent-vif); height: 4px; border-radius: 0; }
.accroche h1 { font-size: clamp(2.7rem, 7vw, 5rem); line-height: .98; letter-spacing: .01em; font-weight: 800; color: #fff; }
.accroche h1 em { color: var(--accent-vif); display: block; }
.coches li::before { content: "■"; color: var(--accent-vif); font-size: .7em; vertical-align: 2px; }
.carte-visite { background: transparent; color: #fff; border: 2px solid var(--accent); box-shadow: none; padding: 30px; }
.carte-visite::before, .carte-visite::after { display: none; }
.carte-visite .grand { color: var(--accent-vif); font-size: 1.7rem; }
.accroche .photo img { box-shadow: 14px 14px 0 var(--accent); }

.prestations { grid-template-columns: 1fr 1fr; gap: 0 48px; }
.prestations li { background: none; border: 0; border-top: 1px solid var(--trait); padding: 26px 0 26px 78px;
                  position: relative; }
.prestations li:hover { transform: none; box-shadow: none; }
.prestations li::before { position: absolute; left: 0; top: 22px; margin: 0; font-size: 2.1rem; line-height: 1;
                          color: var(--accent-vif); letter-spacing: 0;
                          font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif; }
.prestations h3 { font-size: 1.35rem; color: #fff; }

.atouts li { background: var(--fond); border-left: 4px solid var(--accent); padding: 14px 16px; grid-template-columns: 1fr; }
.atouts li::before { display: none; }
.communes li { background: none; border-color: #46505d; text-transform: uppercase; font-size: .84rem; letter-spacing: .06em; }
.communes li:first-child { background: var(--accent); }
.galerie img { filter: contrast(1.04); }
.avis blockquote { background: var(--fond-2); border: 0; border-left: 4px solid var(--accent); }

.contact { background: var(--accent); color: var(--sur-accent); }
.contact h2, .contact p { color: var(--sur-accent); }
.contact h2::after { background: repeating-linear-gradient(-45deg, var(--sur-accent) 0 8px, transparent 8px 14px); }
.contact .bouton { background: #101317; border-color: #101317; color: #fff; }
.contact .bouton.clair { background: transparent; color: var(--sur-accent); border-color: currentColor; }
.coordonnees { background: #101317; border: 0; color: #fff; }
.pied { background: #0b0d10; }
.texte h1 { color: #fff; }

@media (max-width: 860px) {
  .accroche .largeur, .prestations { grid-template-columns: 1fr; }
  .accroche { padding-top: 52px; } .accroche::after { margin-top: 52px; }
  .accroche .photo img { box-shadow: 8px 8px 0 var(--accent); }
}
