/* 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 « Carnet » : papier, photos encadrées posées de travers, les réalisations d'abord ───── */
:root { --fond: #f7f3ea; --fond-2: #efe8d8; --trait: #d8cdb6; --encre: #2a2622; --doux: #6a6157;
        --ombre: 0 2px 4px rgba(50,35,10,.12), 0 14px 30px rgba(50,35,10,.14); }
body { background: var(--fond) radial-gradient(rgba(60,45,20,.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
h1, h2, h3, .marque { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
main { display: flex; flex-direction: column; }
#realisations { order: 1; } #prestations { order: 2; } #entreprise { order: 3; } #zone { order: 4; } #avis { order: 5; } #contact { order: 6; }
.entete { background: rgba(247,243,234,.95); border-bottom: 1px dashed var(--trait); }
.sigle { border-radius: 4px; transform: rotate(-4deg); }
.bouton { border-radius: 4px; box-shadow: 3px 3px 0 var(--encre); border-color: var(--encre); }
.bouton:hover { transform: translate(-1px, -1px); border-color: var(--encre); }
.bouton.clair { background: #fff; color: var(--encre); }
.accroche { background: none; padding: 70px 0 60px; }
.accroche h1 em { font-style: italic; background: linear-gradient(transparent 62%, var(--accent-doux) 62%); }
.surtitre::before { height: 2px; }
.accroche .photo img, .galerie img { border-radius: 2px; border: 10px solid #fff; border-bottom-width: 34px; box-shadow: var(--ombre); }
.accroche .photo { transform: rotate(2deg); }
.carte-visite { background: #fff; color: var(--encre); border-radius: 2px; transform: rotate(1.5deg); box-shadow: var(--ombre);
                background-image: repeating-linear-gradient(transparent 0 31px, #e6ecf5 31px 32px); }
.carte-visite::before { width: 110px; height: 30px; border-radius: 0; background: var(--accent); opacity: .55; left: 50%; right: auto;
                        top: -14px; transform: translateX(-50%) rotate(-3deg); z-index: 1; }
.carte-visite::after { display: none; }
.carte-visite dt { color: var(--accent); opacity: 1; }
.section { padding: 70px 0; } .section.teintee { background: none; }
.galerie { gap: 30px; }
.galerie figure:nth-child(odd) { transform: rotate(-1.6deg); } .galerie figure:nth-child(even) { transform: rotate(1.3deg); }
.galerie figure { position: relative; } .galerie figure:hover { transform: none; z-index: 1; }
.galerie figcaption { position: absolute; left: 10px; right: 10px; bottom: 7px; margin: 0; text-align: center; font-family: Georgia, serif;
                      font-style: italic; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prestations li { background: #fff; border: 0; border-radius: 2px; box-shadow: var(--ombre); border-top: 6px solid var(--accent); }
.prestations li:nth-child(3n+1) { transform: rotate(-.6deg); } .prestations li:nth-child(3n) { transform: rotate(.7deg); }
.prestations li::before { font-family: Georgia, serif; font-style: italic; font-size: 1.3rem; letter-spacing: 0; content: counter(prestation) "."; }
.deux { background: #fff; padding: 44px; box-shadow: var(--ombre); border-radius: 2px; }
.atouts li::before { background: none; content: "→"; font-size: 1.2rem; }
.communes li { background: #fff; border: 0; border-radius: 2px; box-shadow: 0 1px 3px rgba(50,35,10,.18); }
.avis blockquote { background: #fff; border: 0; border-radius: 2px; box-shadow: var(--ombre); font-family: Georgia, serif; font-style: italic; }
.contact { background: var(--encre); }
.coordonnees { border-radius: 2px; border-style: dashed; }
@media (max-width: 860px) { .deux { padding: 26px; } .accroche .photo, .carte-visite { transform: none; } }
.contact .bouton { box-shadow: 3px 3px 0 #000; }
.contact .bouton.clair { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
