/* 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 « Rétro » : l'enseigne peinte d'autrefois, filets doubles et petites étoiles ───── */
:root { --fond: #f4ecd8; --fond-2: #ebe0c5; --encre: #2d2418; --doux: #62543f; --trait: #2d2418; --ombre: 6px 6px 0 rgba(45,36,24,.18); }
h1, h2, h3, .marque, .bouton, .surtitre { font-family: "Rockwell", "Roboto Slab", "Courier New", Georgia, serif; text-transform: uppercase; letter-spacing: .06em; }
h1, h2, h3 { font-weight: 700; }
.entete { background: var(--encre); border: 0; backdrop-filter: none; }
.marque { color: var(--fond); } .entete nav a { color: #d9cdb2; text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; } .entete nav a:hover { color: #fff; }
.sigle { border-radius: 50%; box-shadow: 0 0 0 2px var(--encre), 0 0 0 4px var(--accent); }
.bouton { border-radius: 4px; box-shadow: 0 4px 0 var(--accent-fonce); font-size: .9rem; } .bouton:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-fonce); }
.bouton.clair { box-shadow: none; border-color: var(--encre); color: var(--encre); background: none; }
.accroche { background: none; text-align: center; padding: 34px 0 70px; }
.accroche .largeur { grid-template-columns: 1fr; justify-items: center; gap: 44px; }
.accroche .largeur > div:first-child { border: 2px solid var(--encre); outline: 2px solid var(--encre); outline-offset: 6px; padding: 56px 40px; width: 100%;
                                       background: var(--fond) radial-gradient(var(--fond-2) 1.5px, transparent 2px) 0 0 / 16px 16px; }
.surtitre { letter-spacing: .24em; } .surtitre::before, .surtitre::after { content: "★"; background: none; width: auto; height: auto; }
.accroche h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.08; text-shadow: 3px 3px 0 var(--accent-doux); max-width: 16em; margin-inline: auto; overflow-wrap: anywhere; }
@media (max-width: 560px) { .accroche h1 { font-size: 1.55rem; letter-spacing: .02em; } .surtitre { letter-spacing: .1em; font-size: .7rem; } }
.accroche h1 em { display: block; font-family: Georgia, serif; font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .74em; margin-top: .2em; }
.accroche .chapo { margin-inline: auto; } .actions, .coches { justify-content: center; }
.coches li::before { content: "★"; }
.accroche .photo { width: 100%; } .accroche .photo img { aspect-ratio: 16 / 8; border-radius: 0; border: 2px solid var(--encre); box-shadow: var(--ombre); filter: sepia(.25); }
.carte-visite { background: var(--accent); border-radius: 999px; padding: 18px 50px; box-shadow: var(--ombre); border: 2px solid var(--encre); width: auto; }
.carte-visite::before, .carte-visite::after, .carte-visite .nom, .carte-visite .metier, .carte-visite dl div:not(:first-child) { display: none; }
.carte-visite dl { margin: 0; } .carte-visite .grand { font-size: clamp(1.6rem, 5vw, 2.6rem); font-family: "Rockwell", Georgia, serif; }
.section { padding: 76px 0; }
.intro { text-align: center; margin-inline: auto; }
h2::after { content: "★ ★ ★"; display: block; font-size: .8rem; letter-spacing: .5em; color: var(--accent); margin-top: 14px; }
.deux h2::after, .contact h2::after { content: none; }
.prestations li { background: var(--fond); border: 2px solid var(--encre); border-radius: 0; box-shadow: var(--ombre); text-align: center; }
.prestations li::before { content: "N° " counter(prestation); font-family: Georgia, serif; font-style: italic; letter-spacing: 0; font-weight: 400; }
.prestations h3 { font-size: 1.02rem; }
.section.teintee { border-block: 2px solid var(--encre); }
.atouts li::before { border-radius: 50%; background: var(--encre); color: var(--fond); content: "★"; font-size: .8rem; }
.communes { justify-content: center; } .rayon { text-align: center; }
.communes li { border: 1.5px solid var(--encre); background: none; border-radius: 4px; }
.galerie img { border-radius: 0; border: 2px solid var(--encre); filter: sepia(.25); }
.avis blockquote { background: var(--fond); border: 2px solid var(--encre); border-radius: 0; box-shadow: var(--ombre); text-align: center; font-family: Georgia, serif; font-style: italic; }
.contact { background: var(--encre); } .contact h2 { color: var(--fond); }
.coordonnees { border-radius: 0; border: 2px solid var(--fond); outline: 1px solid var(--fond); outline-offset: 5px; background: none; }
.pied { background: #1d170f; }
@media (max-width: 860px) { .accroche .largeur > div:first-child { padding: 36px 18px; } .carte-visite { padding: 14px 28px; } }
@media (max-width: 560px) { .bouton { letter-spacing: .02em; font-size: .8rem; padding-inline: 12px; text-align: center; } }
.accroche .largeur > div:first-child { min-width: 0; }
@media (max-width: 560px) { .surtitre { flex-wrap: wrap; justify-content: center; } .actions .bouton { flex: 1 1 100%; min-width: 0; white-space: normal; } }
@media (max-width: 560px) { .marque { letter-spacing: .01em; font-size: .86rem; } .entete .bouton { letter-spacing: 0; } }
