/* ==========================================================================
   DST Travaux — base : reset, jetons, typographie, en-tête, pied de page
   Palette relevée sur le chantier livré : plâtre, noyer, chêne clair,
   travertin, marbre rouge de la cuisine.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Couleurs */
  --plaster:    #F4F2ED;
  --plaster-2:  #EAE5DB;
  --craie:      #FBFAF7;
  --noyer:      #33241C;
  --noyer-2:    #4B382D;
  --noyer-soft: #7A6A5C;
  --marbre:     #6E2233;
  --marbre-2:   #8C3244;
  --chene:      #D9C3A3;
  --travertin:  #CBBEAA;
  --trait:      #DCD5C8;

  /* Typographie */
  --serif: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  --sans:  'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --t-xs:      0.8125rem;
  --t-sm:      0.9375rem;
  --t-base:    1.0625rem;
  --t-md:      clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-lg:      clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --t-xl:      clamp(1.875rem, 1.4rem + 2.1vw, 3rem);
  --t-display: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);

  /* Rythme */
  --gap:      1.5rem;
  --bloc:     clamp(4rem, 2.5rem + 6vw, 8rem);
  --largeur:  1240px;
  --lecture:  62ch;

  --fluide: 220ms cubic-bezier(.2, .7, .3, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--plaster);
  color: var(--noyer);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: 1.15; }

p { text-wrap: pretty; }

a { color: var(--marbre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marbre-2); }

:focus-visible {
  outline: 2px solid var(--marbre);
  outline-offset: 3px;
}

/* --- Éléments partagés --------------------------------------------------- */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.mesure { max-width: var(--lecture); }

.sur-titre {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--marbre);
  margin-bottom: 0.75rem;
}

.intro {
  font-size: var(--t-md);
  color: var(--noyer-2);
  max-width: 54ch;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
}
.saut-contenu:focus {
  left: 1rem; top: 1rem;
  z-index: 500;
  background: var(--noyer);
  color: var(--craie);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

/* Le point de Hongrie du parquet, repris en filet.
   C'est le seul motif décoratif du site. */
.chevrons {
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cpath d='M0 16 L12 0 L24 16 L36 0 L48 16' fill='none' stroke='%236E2233' stroke-width='1.4' stroke-opacity='.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* --- Boutons ------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--fluide), color var(--fluide), border-color var(--fluide);
}

.bouton--plein {
  background: var(--marbre);
  color: var(--craie);
}
.bouton--plein:hover { background: var(--noyer); color: var(--craie); }

.bouton--trait {
  background: transparent;
  color: var(--noyer);
  border-color: var(--travertin);
}
.bouton--trait:hover { border-color: var(--noyer); color: var(--noyer); }

.bouton--clair {
  background: var(--craie);
  color: var(--noyer);
}
.bouton--clair:hover { background: var(--chene); }

.tel-lien {
  font-family: var(--sans);
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--travertin);
}
.tel-lien:hover { color: var(--marbre); border-color: var(--marbre); }

/* --- En-tête ------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}

.entete__inner {
  max-width: var(--largeur);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.marque {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--noyer);
}
.marque__nom {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.marque__suite {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--noyer-soft);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font-size: var(--t-sm);
  color: var(--noyer-2);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--marbre); }
.nav a.bouton { margin-left: 0.5rem; }
.nav a.bouton--plein { color: var(--craie); }
.nav a.bouton--plein:hover { color: var(--craie); }

.menu-bouton {
  display: none;
  background: none;
  border: 1px solid var(--trait);
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.menu-bouton span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--noyer);
  margin: 4px 0;
  transition: transform var(--fluide), opacity var(--fluide);
}
.menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--trait);
  background: var(--plaster);
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
}
.nav-mobile.est-ouvert { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.7rem 0;
  font-size: var(--t-md);
  color: var(--noyer);
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}
.nav-mobile a.bouton {
  display: flex;
  margin-top: 1.25rem;
  width: 100%;
  border-bottom: 1px solid transparent;
}
.nav-mobile a.bouton--plein { color: var(--craie); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-bouton { display: block; }
}

/* --- Pied de page -------------------------------------------------------- */

.pied {
  background: var(--noyer);
  color: #D9CFC5;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  margin-top: var(--bloc);
}
.pied a { color: #EDE3D8; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .pied__grille { grid-template-columns: 1fr; } }

.pied__marque {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--craie);
  margin-bottom: 0.75rem;
}
.pied__texte { font-size: var(--t-sm); max-width: 38ch; color: #BCAE9F; }

.pied__titre {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--craie);
  margin-bottom: 0.9rem;
}
.pied ul { list-style: none; display: grid; gap: 0.5rem; font-size: var(--t-sm); }

.pied__bas {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #A2937F;
}

/* --- Bandeau cookies ----------------------------------------------------- */

.cookies {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 200;
  max-width: 560px;
  background: var(--craie);
  border: 1px solid var(--trait);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(51, 36, 28, 0.16);
  padding: 1.1rem 1.25rem;
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookies.est-visible { display: flex; }
.cookies p { font-size: var(--t-xs); color: var(--noyer-2); flex: 1 1 280px; margin: 0; }
.cookies__actions { display: flex; gap: 0.5rem; }
.cookies button {
  font-size: var(--t-xs);
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--trait);
  background: transparent;
}
.cookies button.accepter { background: var(--noyer); color: var(--craie); border-color: var(--noyer); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
