/* Atelier Nacre — démonstration de site vitrine (ZataLabs, V7.3). */
:root {
  --creme: #faf6f0;
  --sable: #f1e8dc;
  --encre: #2b241d;
  --brun: #8a6d4f;
  --brun-fonce: #5b4a3a;
  --sauge: #8a9a7b;
  --gris: #6f655b;
  --trait: rgba(43, 36, 29, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --rayon: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h1 em { font-style: italic; color: var(--brun); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brun); outline-offset: 3px; }

.conteneur { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.conteneur--etroit { width: min(100% - 2.5rem, 780px); }
.surtitre { margin: 0 0 .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brun); }
.surtitre--clair { color: #d8c1a5; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.entete.is-defile { border-color: var(--trait); box-shadow: 0 10px 30px -24px rgba(43, 36, 29, .5); }
.entete__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.45rem/1 var(--serif); }
.logo svg { width: 30px; height: 30px; color: var(--brun); }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a { text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; }
.menu a:not(.menu__cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:not(.menu__cta):hover::after { transform: scaleX(1); }
.menu__cta { padding: .6rem 1.1rem; border-radius: 99px; background: var(--encre); color: var(--creme) !important; }
.menu-bouton { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-bouton span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--encre); transition: transform .3s, top .3s; }
.menu-bouton span:first-child { top: 17px; }
.menu-bouton span:last-child { top: 25px; }
.menu-bouton[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .menu-bouton { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; background: var(--creme); border-bottom: 1px solid var(--trait); display: none; }
  .menu.is-ouvert { display: flex; }
  .menu a { padding: .9rem 0; border-bottom: 1px solid var(--trait); }
  .menu a::after { display: none; }
  .menu__cta { margin-top: 1rem; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 99px; font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid var(--encre); transition: background .25s, color .25s, transform .25s; }
.bouton:hover { transform: translateY(-2px); }
.bouton--plein { background: var(--encre); color: var(--creme); }
.bouton--plein:hover { background: var(--brun-fonce); border-color: var(--brun-fonce); }
.bouton--trait { background: transparent; color: var(--encre); }
.bouton--trait:hover { background: var(--encre); color: var(--creme); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__intro { font-size: 1.1rem; color: var(--gris); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.chiffres { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--trait); }
.chiffres div { display: flex; flex-direction: column-reverse; }
.chiffres dt { font-size: .82rem; color: var(--gris); }
.chiffres dd { margin: 0; font: 600 2.4rem/1 var(--serif); color: var(--brun); }
.hero__visuel { margin: 0; position: relative; }
.hero__visuel svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(91, 74, 58, .18)); }
.hero__visuel figcaption { position: absolute; right: 0; bottom: 8%; padding: .5rem .9rem; border-radius: 99px; background: #fff; font-size: .8rem; box-shadow: 0 10px 30px -12px rgba(43, 36, 29, .35); }
@media (max-width: 860px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__visuel { max-width: 420px; justify-self: center; }
  .chiffres { gap: 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--sable { background: var(--sable); }
.section--sombre { background: var(--encre); color: var(--creme); }
.colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.colonne { padding-top: 1.4rem; border-top: 1px solid var(--trait); }
.colonne__num { display: block; margin-bottom: 1rem; font: 500 1rem/1 var(--serif); color: var(--brun); }
.colonne p { color: var(--gris); }
@media (max-width: 760px) { .colonnes { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.section__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.2rem; }
.section__tete h2 { margin: 0; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre { padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--trait); background: transparent; font: 500 .88rem/1 var(--sans); color: var(--encre); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filtre:hover { border-color: var(--encre); }
.filtre.is-actif { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr; } }
.projet { animation: apparition .45s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.projet button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.projet__image { display: block; aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; transition: transform .5s; }
.projet button:hover .projet__image, .projet button:focus-visible .projet__image { transform: scale(.98); }
.projet__image svg { width: 100%; height: 100%; }
.projet__legende { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .8rem; }
.projet__legende strong { font: 600 1.3rem/1.2 var(--serif); }
.projet__legende span { font-size: .8rem; color: var(--gris); white-space: nowrap; }
.galerie__vide { text-align: center; color: var(--gris); }

/* ---------- Frise ---------- */
.frise { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: etape; }
.frise li { position: relative; padding: 0 0 2rem 3.4rem; counter-increment: etape; }
.frise li::before { content: counter(etape); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sable); color: var(--brun); font: 600 1.1rem/1 var(--serif); }
.frise li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .3rem; width: 1px; background: var(--trait); }
.frise h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.frise p { color: var(--gris); margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact > div > p { color: #d9cdbd; }
.contact address { font-style: normal; color: #b9ab99; margin-top: 1.5rem; line-height: 1.8; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: .4rem; }
.champ label { font-size: .85rem; color: #d8c1a5; }
.champ input, .champ select, .champ textarea { width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(250, 246, 240, .2); background: rgba(250, 246, 240, .06); color: var(--creme); font: 400 1rem/1.4 var(--sans); }
.champ select option { color: var(--encre); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: #d8c1a5; background: rgba(250, 246, 240, .1); }
.champ.is-invalide input, .champ.is-invalide select, .champ.is-invalide textarea { border-color: #e59a8a; }
.champ__erreur { min-height: 1em; font-size: .8rem; color: #f0b3a6; }
.formulaire .bouton--plein { background: var(--creme); color: var(--encre); border-color: var(--creme); justify-self: start; }
.formulaire .bouton--plein:hover { background: #d8c1a5; border-color: #d8c1a5; }
.formulaire__retour { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: rgba(138, 154, 123, .22); color: #e4ecdc; }

/* ---------- Pied ---------- */
.pied { padding: 1.6rem 0; background: #221c16; color: #b9ab99; font-size: .85rem; }
.pied__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* ---------- Visionneuse ---------- */
.visionneuse { width: min(92vw, 900px); padding: 0; border: 0; border-radius: 18px; background: var(--creme); color: var(--encre); overflow: hidden; }
.visionneuse::backdrop { background: rgba(34, 28, 22, .72); backdrop-filter: blur(4px); }
.visionneuse[open] { display: grid; grid-template-columns: 1.1fr .9fr; animation: apparition .3s ease both; }
.visionneuse__image svg { width: 100%; height: 100%; min-height: 320px; }
.visionneuse__texte { padding: 2rem; align-self: center; }
.visionneuse__texte p:last-child { color: var(--gris); }
.visionneuse__fermer { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { .visionneuse[open] { grid-template-columns: 1fr; } .visionneuse__image svg { min-height: 220px; max-height: 45vh; } }
