/* =========================================================================
   Menuiserie Claux — feuille de style unique
   Couleurs et typographies reprises de la maquette validée.
   ========================================================================= */

/* ---- Polices auto-hébergées (aucun appel à Google Fonts) ---------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
}

/* ---- Variables ---------------------------------------------------------- */
:root {
  --accent: #8A5527;
  --bg: #F4EFE6;
  --bg-light: #FFFDF9;
  --bg-sand: #E9DFCF;
  --bg-dark: #2B2118;
  --bg-darker: #211912;
  --text: #2B2118;
  --text-soft: #4A3C30;
  --text-on-dark: #F4EFE6;
  --text-on-dark-soft: #D8CCBA;
  --text-muted: #A99A86;
  --link: #7A4A1E;
  --link-hover: #4F2F12;
  --link-on-dark: #E6B987;
  --border: #E3D8C6;
  --radius: 6px;
  --container: 1180px;
  --gutter: 20px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--font-serif); }

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; color: #FFFFFF; }

/* Décalage pour les ancres (le menu n'est pas fixe, simple marge de confort) */
section[id] { scroll-margin-top: 16px; }

/* ---- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--link-hover); color: #FFFFFF; }
.btn--outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  padding: 14px 26px;
}
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--small { padding: 12px 22px; }

/* ---- En-tête ------------------------------------------------------------ */
.site-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  padding: 8px 0;
}
.site-nav a:not(.btn):hover { color: var(--accent); }

/* Mobile : marque sur une ligne, menu en dessous sur toute la largeur */
@media (max-width: 599px) {
  .site-header { flex-direction: column; align-items: stretch; }
  .brand { text-align: center; }
  .site-nav { justify-content: center; gap: 4px 18px; }
  .site-nav .btn { flex-basis: 100%; }
}

@media (min-width: 768px) {
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .brand { font-size: 26px; }
  .site-nav { gap: 8px 28px; }
}

/* ---- Accroche ----------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.08;
}

.hero__lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

@media (min-width: 768px) {
  .hero { padding: 48px var(--gutter) 80px; gap: 56px; }
  .hero__image img { height: 520px; }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 64px var(--gutter); }
@media (min-width: 768px) {
  .section { padding: 88px var(--gutter); }
}

.section--light { background: var(--bg-light); }
.section--sand { background: var(--bg-sand); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-weight: 500;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
}

/* ---- Services ----------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card h3 { font-weight: 600; font-size: 22px; }
.service-card p { color: var(--text-soft); }

/* ---- Réalisations ------------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head a { font-weight: 600; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---- L'entreprise ------------------------------------------------------- */
.about {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .about { gap: 56px; }
}

/* Emplacement du portrait de Julien (photo à recevoir) */
.about__photo {
  height: 380px;
  background: #CDBA9C;
  border-radius: var(--radius);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about__text p { color: var(--text-soft); }

/* ---- Contact ------------------------------------------------------------ */
.contact {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__intro h2 {
  font-weight: 500;
  font-size: clamp(32px, 6.5vw, 44px);
  line-height: 1.1;
}
.contact__intro p { color: var(--text-on-dark-soft); }

.contact__phone {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
}
.contact__phone:hover { color: var(--link-on-dark); }

.link-on-dark { color: var(--link-on-dark); font-weight: 600; }
.link-on-dark:hover { color: #FFFFFF; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  width: 100%;
}

.typeform-box {
  width: 100%;
  min-height: 520px;
  background: #3A2E23;
  border: 1px solid #5C4B3B;
  border-radius: var(--radius);
  overflow: hidden;
}
.typeform-box > div { width: 100%; height: 520px; }

.contact__note {
  font-size: 13px;
  color: var(--text-muted);
}
.contact__note a { color: var(--link-on-dark); }

/* ---- Pied de page ------------------------------------------------------- */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  padding: 24px var(--gutter);
  font-size: 14px;
  text-align: center;
}
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text-on-dark); }

/* ---- Pages légales ------------------------------------------------------ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
}
.legal h1 {
  font-weight: 500;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.1;
  margin-bottom: 32px;
}
.legal h2 {
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 12px;
}
.legal p, .legal ul { margin: 0 0 14px; color: var(--text-soft); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .back { display: inline-block; margin-top: 24px; font-weight: 600; }
