/* 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 « Magazine » : mise en page de revue, immense titre en italique, colonne de couleur ───── */
:root { --encre: #1a1a1a; --doux: #595959; --fond-2: #f5f2ee; --trait: #dcd7cf; }
h1, h2, h3 { font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.02em; }
.entete { background: #fff; border-bottom: 1px solid var(--encre); backdrop-filter: none; }
.marque { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.4rem; } .sigle { display: none; }
.entete nav a { text-transform: uppercase; font-size: .74rem; letter-spacing: .16em; color: var(--encre); }
.bouton { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; padding: 15px 26px; }
.accroche { background: none; padding: 0; border-bottom: 1px solid var(--encre); position: relative; }
.accroche::before { content: ""; position: absolute; inset: 0 auto 0 0; width: max(24px, calc((100vw - 1120px) / 2 - 20px)); background: var(--accent); }
.accroche .largeur { grid-template-columns: 1.25fr .75fr; gap: 0; align-items: stretch; }
.accroche .largeur > div:first-child { padding: 90px 50px 90px 30px; }
.surtitre { color: var(--encre); letter-spacing: .2em; font-size: .72rem; } .surtitre::before { width: 46px; height: 1px; background: var(--encre); }
.accroche h1 { font-size: clamp(2.8rem, 7.4vw, 5.8rem); line-height: .98; }
.accroche h1 em { font-style: italic; display: block; }
.accroche .chapo { font-size: 1.15rem; border-left: 3px solid var(--accent); padding-left: 18px; margin-top: 30px; }
.coches li::before { content: "—"; font-weight: 400; }
.accroche .photo { border-left: 1px solid var(--encre); } .accroche .photo img { border-radius: 0; box-shadow: none; height: 100%; aspect-ratio: auto; }
.carte-visite { background: var(--fond-2); color: var(--encre); border-radius: 0; box-shadow: none; border-left: 1px solid var(--encre); padding: 50px 36px; display: grid; align-content: center; }
.carte-visite::before, .carte-visite::after { display: none; }
.carte-visite .nom { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.8rem; }
.carte-visite dt { color: var(--accent); opacity: 1; } .carte-visite dl div { border-top: 1px solid var(--trait); padding-top: 12px; }
.section { padding: 96px 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-style: italic; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: none; align-items: end; border-bottom: 1px solid var(--encre); padding-bottom: 30px; } .intro p { margin: 0; }
.prestations { gap: 0 40px; counter-reset: prestation; }
.prestations li { background: none; border: 0; border-radius: 0; padding: 0 0 34px; }
.prestations li:hover { transform: none; box-shadow: none; }
.prestations li::before { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1; color: var(--accent); margin-bottom: 6px; content: counter(prestation); }
.prestations h3 { font-size: 1.4rem; border-top: 1px solid var(--encre); padding-top: 12px; }
.presentation p:first-of-type::first-letter { font-family: Georgia, serif; font-size: 4.2em; float: left; line-height: .8; padding: 8px 12px 0 0; color: var(--accent); }
.atouts li { grid-template-columns: 1fr; border-top: 1px solid var(--encre); padding-top: 12px; font-family: Georgia, serif; font-style: italic; font-size: 1.15rem; } .atouts li::before { display: none; }
.communes li, .communes li:first-child { border: 0; background: none; color: var(--encre); padding: 0; font-family: Georgia, serif; font-style: italic; font-size: 1.5rem; font-weight: 400; }
.communes li:first-child { color: var(--accent); } .communes li:not(:last-child)::after { content: " ·"; color: var(--trait); margin-left: 10px; }
.galerie { gap: 4px; } .galerie img { border-radius: 0; aspect-ratio: 4 / 5; } .galerie figcaption { font-family: Georgia, serif; font-style: italic; margin: 8px 0 16px; }
.avis blockquote { background: none; border: 0; border-radius: 0; padding: 0 20px 0 0; } .avis blockquote p { font-family: Georgia, serif; font-style: italic; font-size: 1.5rem; line-height: 1.3; }
.avis blockquote::before { content: "“"; font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--accent); display: block; height: 34px; }
.contact { background: var(--accent); color: var(--sur-accent); }
.contact h2, .contact p { color: inherit; } .contact .bouton { background: var(--sur-accent); color: var(--accent); border-color: var(--sur-accent); }
.contact .bouton.clair { background: none; color: inherit; border-color: currentColor; }
.coordonnees { background: none; border: 0; border-left: 1px solid currentColor; border-radius: 0; } .coordonnees dt { color: inherit; opacity: .75; } .coordonnees a { color: inherit; }
.pied { background: var(--encre); }
@media (max-width: 860px) { .accroche::before { width: 8px; } .accroche .largeur { grid-template-columns: 1fr; } .accroche .largeur > div:first-child { padding: 50px 0 40px 10px; }
  .accroche .photo, .carte-visite { border-left: 0; margin-left: 10px; } .carte-visite { padding: 30px 24px; margin-bottom: 30px; } .intro { grid-template-columns: 1fr; gap: 12px; } .section { padding: 60px 0; } }
