/* =============================================================
   Thème « L'Atelier des Marais » — menuisier / ébéniste
   Saint-Pierre-d'Oléron (Charente-Maritime)
   Palette : crème chaud, terre cuite, ardoise verte, vert mousse.
   Aucun bleu, angles francs, motifs de bois.
   ============================================================= */

:root {
  --m-accent: #A64B2A;         /* terre cuite */
  --m-accent-clair: #E7C79A;   /* ocre clair */
  --m-mousse: #4F6B3C;         /* vert mousse */
  --m-fonce: #2F3A33;          /* ardoise verte */
  --m-nav-fond: #FBF6EC;
  --m-fond: #FBF6EC;
  --m-surface: #F1E5D0;
  --m-carte: #FFFDF7;
  --m-ligne: #DCCDB4;
  --m-texte: #33302A;
  --m-doux: #6B6355;
  --m-pied: #2F3A33;
  --m-rayon: 6px;
  --m-titre: 'Sora', system-ui, sans-serif;
  --m-quote: 'Manrope', system-ui, sans-serif;
}

/* ============ Marque : tenon et mortaise ============ */
.logo__marque { width: 36px; height: 36px; flex: none; color: var(--m-accent); }
.logo__texte small { color: var(--m-mousse); }
.nav a[aria-current="page"] { color: var(--m-accent); }
.btn--fantome { background: var(--m-surface); }

/* ============ Tête de page ============ */
.page-tete { background: var(--m-surface); }
.page-tete h1 { margin-bottom: .3em; }
.page-tete p { max-width: 64ch; color: var(--m-doux); font-size: 1.03rem; }
.page-tete__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .88rem; color: var(--m-doux); }
.page-tete__meta li { margin: 0; display: flex; align-items: center; gap: 7px; }
.page-tete__meta li::before { content: ''; width: 6px; height: 6px; background: var(--m-accent); flex: none; }

/* ============ Hero : grande scène + cartouche ============ */
.hero { padding-block: clamp(18px, 3vw, 34px) clamp(30px, 5vw, 56px); }
.hero__scene {
  border: 1px solid var(--m-ligne);
  border-radius: var(--m-rayon);
  overflow: hidden;
  background: var(--m-surface);
  box-shadow: 0 22px 46px -32px rgba(47, 58, 51, .65);
}
.hero__scene svg { width: 100%; height: auto; display: block; }
.hero__cartouche {
  position: relative;
  max-width: 780px;
  margin: -42px auto 0;
  background: var(--m-carte);
  border: 1px solid var(--m-ligne);
  border-top: 5px solid var(--m-accent);
  padding: clamp(20px, 3.4vw, 36px);
}
.hero__cartouche h1 { margin-bottom: .35em; }
.hero__cartouche > p { color: var(--m-doux); font-size: 1.03rem; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }

/* ============ Essences ============ */
.essence { padding: 0; overflow: hidden; }
.essence__swatch { height: 118px; background: var(--m-surface); }
.essence__swatch svg { width: 100%; height: 100%; display: block; }
.essence__corps { padding: 18px 20px 22px; }
.essence__corps h3 { margin: .25em 0 .35em; }
.essence__corps p { margin: 0; }
.essence__corps .tuile__etiquette { color: var(--m-mousse); }

/* ============ Mosaïque de réalisations ============ */
.mosaique { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.real { margin: 0; display: flex; flex-direction: column; }
.real--pleine { grid-column: span 6; }
.real--grande { grid-column: span 4; }
.real--moyenne { grid-column: span 3; }
.real--petite { grid-column: span 2; }
.real__visuel {
  background: var(--m-surface);
  border: 1px solid var(--m-ligne);
  border-radius: var(--m-rayon);
  overflow: hidden;
}
.real__visuel svg { width: 100%; height: auto; display: block; }
.real figcaption { padding: 12px 2px 0; }
.real h3 { margin: 0 0 .25em; font-size: 1.04rem; }
.real__ligne { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: .83rem; color: var(--m-doux); }
.real__matiere { color: var(--m-accent); font-weight: 700; }
.real__lieu { color: var(--m-mousse); font-weight: 600; }
.real__note { margin: .45em 0 0; font-size: .85rem; color: var(--m-doux); }

/* ============ Zone d'intervention ============ */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.zone { background: var(--m-carte); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 20px; }
.zone h3 { margin: 0 0 .5em; font-size: 1rem; }
.zone ul { list-style: none; padding: 0; margin: 0; font-size: .91rem; }
.zone li { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--m-ligne); }
.zone li:last-child { border-bottom: 0; }
.zone .delai { color: var(--m-doux); white-space: nowrap; }
.zone .atelier { color: var(--m-accent); font-weight: 700; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.puces li { margin: 0; font-family: var(--m-titre); font-size: .82rem; font-weight: 600; padding: 6px 13px; border: 1px solid var(--m-ligne); border-radius: 999px; background: var(--m-carte); color: var(--m-doux); }
.puces li strong { color: var(--m-texte); font-weight: 700; }

/* ============ Carte de l'île ============ */
.carte { background: var(--m-surface); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 14px; }
.carte svg { width: 100%; height: auto; }
.carte__legende { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 12px 4px 2px; margin: 0; font-size: .84rem; color: var(--m-doux); }
.carte__legende li { margin: 0; display: flex; align-items: center; gap: 7px; }
.carte__legende .pastille { width: 11px; height: 11px; border-radius: 50%; background: var(--m-accent); flex: none; }
.carte__legende .pastille--atelier { width: 14px; height: 14px; background: var(--m-fonce); box-shadow: 0 0 0 3px var(--m-accent-clair); }

/* ============ Formulaire de devis ============ */
.devis { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.devis--carte { grid-template-columns: .85fr 1.15fr; }
.devis--court { grid-template-columns: 1.2fr .8fr; }
.formulaire { max-width: none; }
.formulaire legend { font-family: var(--m-titre); font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 12px; }
.formulaire fieldset { border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 18px; margin: 0 0 18px; background: var(--m-carte); }
.champ input[type="file"] { padding: 9px; background: var(--m-surface); border-style: dashed; }
.champ input[type="file"]::file-selector-button {
  font-family: var(--m-titre); font-weight: 700; font-size: .84rem;
  margin-right: 12px; padding: 7px 12px; border: 0; border-radius: 4px;
  background: var(--m-accent); color: #fff; cursor: pointer;
}
.case { display: flex; gap: 10px; align-items: flex-start; font-family: var(--m-quote); font-size: .89rem; font-weight: 400; color: var(--m-doux); }
.case input { width: auto; margin-top: 4px; accent-color: var(--m-accent); }
.devis__aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.encart { background: var(--m-carte); border: 1px solid var(--m-ligne); border-left: 4px solid var(--m-mousse); border-radius: var(--m-rayon); padding: 20px; }
.encart h3 { margin: 0 0 .4em; font-size: 1rem; }
.encart p, .encart ul { font-size: .91rem; color: var(--m-doux); margin: 0; }
.encart ul { padding-left: 1.1em; margin-top: .4em; }
.encart li { margin-bottom: .3em; }
.encart .tel { font-family: var(--m-titre); font-weight: 800; font-size: 1.15rem; color: var(--m-texte); display: block; margin: .2em 0 .3em; }

/* ============ Pied de page (ardoise) ============ */
.pied { background: var(--m-fonce); color: rgba(255, 255, 255, .76); }
.pied b { color: #fff; }
.pied a:hover { color: #fff; }
.pied__mention { border-top-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); }
.pied__nav a { display: block; padding: 3px 0; }
.pied__nav a[aria-current="page"] { color: var(--m-accent-clair); font-weight: 700; }
.pied__communes { list-style: none; padding: 0; margin: 0; font-size: .89rem; }
.pied__communes li { margin: 0; padding: 2px 0; }

/* ============ Adaptation mobile ============ */
.etapes ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

@media (max-width: 760px) {
  .site__barre { flex-wrap: wrap; gap: 12px 16px; }
  .nav { display: flex; order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 16px; font-size: .88rem; }
  .nav a { white-space: nowrap; }
  .site__barre > .btn { margin-left: auto; }
  .hero__cartouche { margin-top: 14px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .real--pleine, .real--grande { grid-column: span 2; }
  .real--moyenne, .real--petite { grid-column: span 1; }
  .devis, .devis--carte, .devis--court { grid-template-columns: 1fr; }
  .devis__aside { position: static; }
}

@media (min-width: 761px) {
  .mosaique { grid-template-columns: repeat(6, 1fr); }
}
