/* Extrados — feuille de style unique */
:root {
  --pierre: #f5f0e6;
  --pierre-2: #ebe3d4;
  --encre: #2a2521;
  --encre-douce: #5a5149;
  --ocre: #9c6a32;
  --ocre-fonce: #7d5222;
  --nuit: #2c2723;
  --blanc: #fffdf9;
  --trait: #d9cfbd;
  --rayon: 4px;
  --largeur: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocre-fonce); }
a:hover { color: var(--ocre); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--encre); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--claire { background: var(--blanc); }
.section--sombre { background: var(--nuit); color: #eee6d8; }
.section--sombre h2 { color: #fff; }
.surtitre {
  font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ocre); margin: 0 0 12px;
}
.lien-acces { position: absolute; left: -9999px; }
.lien-acces:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--trait);
  backdrop-filter: saturate(1.2) blur(6px);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.marque { text-decoration: none; color: var(--encre); display: flex; flex-direction: column; line-height: 1.1; }
.marque strong { font: 700 1.55rem/1 var(--serif); letter-spacing: .12em; }
.marque span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); margin-top: 5px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--encre);
  font-size: .95rem; border-radius: var(--rayon);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ocre-fonce); background: var(--pierre); }
.nav .fb img { width: 26px; height: 26px; }
.burger {
  display: none; background: none; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 8px 10px; cursor: pointer; color: var(--encre);
}
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--trait); display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; }
  .nav a { padding: 12px; }
}

/* Diaporama d'accueil */
.diapo { position: relative; background: var(--nuit); overflow: hidden; }
.diapo__piste { position: relative; aspect-ratio: 16 / 7; max-height: 78vh; min-height: 260px; width: 100%; }
.diapo__vue { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; margin: 0; }
.diapo__vue.active { opacity: 1; }
.diapo__vue img { width: 100%; height: 100%; object-fit: cover; }
.diapo__vue figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 28px;
  background: linear-gradient(transparent, rgba(20, 16, 13, .78));
  color: #fff; font: 600 clamp(1.05rem, 2.2vw, 1.5rem)/1.3 var(--serif);
}
.diapo__vue figcaption span { display: block; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.diapo__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--encre); font-size: 1.4rem; cursor: pointer;
}
.diapo__btn:hover { background: #fff; }
.diapo__btn--prec { left: 14px; }
.diapo__btn--suiv { right: 14px; }
.diapo__points { position: absolute; right: 20px; bottom: 16px; display: flex; gap: 8px; }
.diapo__points button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.diapo__points button[aria-current="true"] { background: #fff; }

/* Grilles */
.deux-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; gap: 32px; } }
.prestations { padding-left: 1.2em; margin: 0 0 1.2em; }
.prestations li { margin-bottom: .4em; }
.prestations li::marker { color: var(--ocre); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--rayon); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bouton {
  display: inline-block; padding: 12px 22px; border-radius: var(--rayon);
  background: var(--ocre); color: #fff; text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
  font-size: 1rem;
}
.bouton:hover { background: var(--ocre-fonce); color: #fff; }
.bouton--clair { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
.bouton--clair:hover { background: var(--encre); color: #fff; }

/* Cartes réalisations */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.carte {
  display: block; text-decoration: none; color: var(--encre); background: var(--blanc);
  border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(42, 37, 33, .12); color: var(--encre); }
.carte img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.carte div { padding: 14px 16px 18px; }
.carte h3 { margin: 0 0 4px; font-size: 1.1rem; }
.carte small { color: var(--ocre-fonce); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.carte[hidden] { display: none; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filtres button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc);
  font: inherit; font-size: .92rem; cursor: pointer; color: var(--encre);
}
.filtres button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.galerie a { display: block; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--pierre-2); }
.galerie img { width: 100%; aspect-ratio: 19 / 15; object-fit: cover; transition: transform .3s ease; }
.galerie a:hover img { transform: scale(1.05); }
.galerie figcaption { font-size: .8rem; color: var(--encre-douce); padding: 6px 2px 0; }
.galerie figure { margin: 0; }
.fil { font-size: .9rem; margin: 0 0 18px; }
.fil a { text-decoration: none; }

/* Visionneuse */
.visionneuse {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 12, 10, .94);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 64px 24px;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.visionneuse p { color: #e8e0d2; margin: 14px 0 0; text-align: center; font-size: .95rem; min-height: 1.5em; }
.visionneuse button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.visionneuse button:hover { background: rgba(255,255,255,.25); }
.visionneuse .fermer { top: 14px; right: 14px; }
.visionneuse .prec { left: 12px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .visionneuse { padding: 56px 8px 16px; }
  .visionneuse .prec, .visionneuse .suiv { top: auto; bottom: 14px; transform: none; }
}

/* Portrait */
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portraits img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Avis */
.avis { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.avis blockquote {
  margin: 0; background: var(--blanc); border: 1px solid var(--trait); border-left: 4px solid var(--ocre);
  border-radius: var(--rayon); padding: 22px 22px 18px;
}
.avis blockquote p { font-family: var(--serif); font-size: 1.08rem; }
.avis footer { font-size: .88rem; color: var(--encre-douce); }
.avis footer strong { color: var(--encre); }

/* Contact */
.coordonnees { list-style: none; padding: 0; margin: 0 0 24px; }
.coordonnees li { padding: 10px 0; border-bottom: 1px solid var(--trait); }
.coordonnees strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="tel"], .formulaire textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--trait); border-radius: var(--rayon);
  font: inherit; background: var(--blanc); color: var(--encre);
}
.formulaire textarea { min-height: 160px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--ocre); outline-offset: 1px; border-color: var(--ocre); }
.formulaire .accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.formulaire .accord input { margin-top: 5px; }
.formulaire .piege { position: absolute; left: -9999px; }
@media (max-width: 600px) { .formulaire { grid-template-columns: 1fr; } }
.message { padding: 14px 16px; border-radius: var(--rayon); margin: 0 0 20px; }
.message--ok { background: #e6f1e1; border: 1px solid #a9c99a; }
.message--erreur { background: #f6e3df; border: 1px solid #d6a196; }

/* Textes longs */
.texte { max-width: 820px; }
.texte h3 { font-size: 1.15rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #cfc5b5; font-size: .92rem; padding: 40px 0 28px; }
.pied a { color: #efe6d6; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diapo__vue, .carte, .galerie img { transition: none; }
}
