/* ============================================================
   ATELIER DU PLAN — Base & Reset
   Fichier : assets/css/base.css
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--beige);
  color: var(--brown);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Utilitaires typographie ── */
.u-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.u-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 24px;
}

.u-title em {
  font-style: italic;
}

.u-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--taupe);
  max-width: 540px;
}

/* ── Boutons ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--brown);
  color: var(--beige);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color var(--t-base);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary:hover::after { transform: translateX(0); }

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--t-fast);
}

.btn-ghost:hover { color: var(--brown); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section générique ── */
.site-section {
  padding: var(--section-pad-v) var(--section-pad-h);
}

/* ── Accessibilité ── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

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