/* Valaroc — feuille de style unique.
   Palette et règles issues du brief : bronze = poinçon (< 10 % de la surface),
   deux familles max (Cinzel titres, Inter texte), registre sobre. */

:root {
  --encre:   #1F2937;
  --bronze:  #B5813F;
  --ivoire:  #F7F4EE;
  --ardoise: #595959;
  --blanc:   #FFFFFF;
  --filet:   #E4DED2; /* bordures discrètes sur fonds clairs */
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ardoise);
  background: var(--blanc);
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--encre);
  letter-spacing: 0.06em;
}

a {
  color: var(--encre);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover, a:focus-visible { color: var(--bronze); }
a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--encre);
  color: var(--ivoire);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--bronze);
  transition: box-shadow 0.25s ease;
}
header.scrolled { box-shadow: 0 2px 10px rgba(31, 41, 55, 0.08); }

.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
@media (min-width: 760px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    gap: 1rem;
  }
}
.header-inner img { height: 36px; width: auto; display: block; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  list-style: none;
}
@media (min-width: 760px) { nav ul { gap: 1.6rem; } }
nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--encre);
}
nav a:hover { color: var(--bronze); }

/* ---------- Sections ---------- */

section { padding: 5rem 1.25rem; }
.inner { max-width: 44rem; margin: 0 auto; }
.inner-wide { max-width: 60rem; margin: 0 auto; }

section h2 {
  font-size: 1.45rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
section p + p { margin-top: 1.1rem; }

.alt { background: var(--ivoire); }

/* ---------- Accroche ---------- */

.hero {
  background: var(--ivoire);
  text-align: center;
  padding: 6rem 1.25rem 5.5rem;
}
.hero h1 { margin: 0; }
.hero img {
  width: min(420px, 86%);
  height: auto;
}
.hero .tagline {
  margin-top: 2.2rem;
  font-size: 1.06rem;
  color: var(--ardoise);
}
.hero .contact-link {
  display: inline-block;
  margin-top: 1.6rem;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.service {
  border-top: 2px solid var(--bronze);
  padding-top: 1.4rem;
}
.service h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.services-note {
  margin-top: 2.6rem;
  font-size: 0.95rem;
}

/* ---------- Services numériques ---------- */

.section-intro {
  margin-bottom: 2.2rem;
  max-width: 40rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--filet);
  padding: 1.8rem;
  background: var(--blanc);
}
.card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.card p { font-size: 0.98rem; }
.card a { display: inline-block; margin-top: 0.9rem; font-size: 0.95rem; }

/* ---------- Contact ---------- */

.contact-block address {
  font-style: normal;
  line-height: 1.8;
}
.contact-block .lines {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--ardoise);
}

/* ---------- Formulaire ---------- */

#contact-form { margin-top: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--filet);
  background: var(--blanc);
  font: inherit;
  color: var(--encre);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }

#contact-form button {
  font: inherit;
  letter-spacing: 0.05em;
  padding: 0.7rem 2rem;
  background: var(--encre);
  color: var(--ivoire);
  border: 1px solid var(--encre);
  cursor: pointer;
}
#contact-form button:hover { background: var(--bronze); border-color: var(--bronze); }
#contact-form button:disabled { opacity: 0.6; cursor: default; }

.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #9b2c2c; }

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

footer {
  background: var(--encre);
  color: var(--ivoire);
  border-top: 2px solid var(--bronze);
  padding: 3rem 1.25rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
footer img { height: 30px; width: auto; }
footer a { color: var(--ivoire); }
footer a:hover { color: var(--bronze); }
footer p { color: #C9CDD4; }

/* ---------- Pages article (SEO) ---------- */

.article { padding: 3.5rem 1.25rem 5rem; }
.article .fil {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ardoise);
  margin-bottom: 1.6rem;
}
.article h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 1.4rem;
  text-transform: none;
}
.article .chapo {
  font-size: 1.12rem;
  color: var(--encre);
  margin-bottom: 2.5rem;
}
.article h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 2.6rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--bronze);
  max-width: max-content;
  padding-right: 2rem;
}
.article p + p { margin-top: 1.1rem; }
.article ul {
  margin: 1rem 0 1rem 1.2rem;
  padding-left: 0.5rem;
}
.article li { margin-bottom: 0.5rem; }
.article .cta {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--filet);
  font-size: 0.95rem;
}

/* ---------- Page mentions ---------- */

.page-simple { padding: 4rem 1.25rem; }
.page-simple h1 { font-size: 1.5rem; margin-bottom: 2rem; text-transform: uppercase; }
.page-simple h2 { font-size: 1.05rem; margin: 2rem 0 0.8rem; }

/* ---------- Desktop ---------- */

@media (min-width: 760px) {
  body { font-size: 18px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

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