/* Gracefield — site vitrine
   Charte : charte/README.md (vert sapin, doré mat, crème ; EB Garamond).
   Mise en page : une colonne centrée de 68rem, sections pleine largeur alternant blanc, crème et vert. */

@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --vert: #1F5D4C;
  --vert-fonce: #174A3C;
  --or: #B39456;
  --or-texte: #8A6F38;      /* doré assombri : contraste suffisant pour du petit texte sur fond clair */
  --creme: #F8F5EE;
  --encre: #1F2723;
  --gris: #56625C;
  --filet: #E3DCCB;
  --blanc: #FFFFFF;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --largeur: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-fonce); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; color: var(--vert); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--or); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }

.enveloppe {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.enveloppe--etroite { max-width: 46rem; }

.surtitre {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-texte);
  margin: 0 0 0.9rem;
}

.evitement { position: absolute; left: -999px; top: 0; background: var(--vert); color: var(--blanc); padding: 0.5rem 1rem; z-index: 20; }
.evitement:focus { left: 1rem; }

/* ---------- Bandeau ---------- */
.bandeau {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--filet);
}
.bandeau__interieur { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.7rem; flex-wrap: wrap; }
.bandeau__logo img { width: 190px; height: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; color: var(--encre); font-size: 1.05rem; }
.nav a:hover { color: var(--vert); }
.nav .nav__contact { color: var(--vert); border: 1px solid var(--or); padding: 0.3rem 0.95rem; border-radius: 999px; }
.nav .nav__contact:hover { background: var(--creme); }

/* ---------- Accroche ---------- */
.accroche { background: var(--creme); padding-block: clamp(3rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--filet); }
.accroche__grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.accroche__texte { display: grid; gap: 1.4rem; }
.chapo { font-size: 1.3rem; color: var(--gris); max-width: 36rem; }
.accroche__actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; align-items: center; margin-top: 0.4rem; }
.accroche__monogramme { display: flex; justify-content: center; width: 100%; }
.accroche__monogramme img { width: 100%; max-width: 360px; }

.bouton {
  display: inline-block; background: var(--vert); color: var(--blanc); text-decoration: none;
  padding: 0.75rem 1.6rem; border-radius: 999px; font-size: 1.1rem; font-weight: 500;
  transition: background-color 0.15s ease;
}
.bouton:hover { background: var(--vert-fonce); color: var(--blanc); }
.lien-fleche { text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--or); padding-bottom: 0.1rem; }
.lien-fleche::after { content: " →"; color: var(--or); }

.atouts {
  list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 1.6rem 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  border-top: 1px solid var(--filet);
}
.atouts li { display: grid; gap: 0.15rem; }
.atouts strong { font-weight: 500; color: var(--vert); font-size: 1.25rem; }
.atouts span { color: var(--gris); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--creme { background: var(--creme); }
.section__tete { max-width: 44rem; margin-bottom: 2.8rem; display: grid; gap: 0.2rem; }
.section__intro { color: var(--gris); margin-top: 1rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 0; border-top: 1px solid var(--filet); }
.service {
  padding: 1.8rem 1.6rem 2rem 0; border-bottom: 1px solid var(--filet);
  display: grid; gap: 0.7rem; align-content: start; min-width: 0;
}
.service h3::before { content: ""; display: block; width: 2rem; height: 2px; background: var(--or); margin-bottom: 1rem; }
.service p { color: var(--gris); }
.service ul { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 1.02rem; }
.service li { margin-bottom: 0.2rem; }
.service li::marker { color: var(--or); }

/* Méthode : étapes numérotées (c'est une vraie séquence) */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
.etapes li { counter-increment: etape; display: grid; gap: 0.5rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--vert); min-width: 0; }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--or-texte); font-weight: 500; }
.etapes h3 { font-size: 1.3rem; }
.etapes p { color: var(--gris); font-size: 1.02rem; }

.engagements { margin-top: 3.5rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.engagements ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2.5rem; }
.engagements li { color: var(--gris); }
.engagements strong { color: var(--vert); font-weight: 600; display: block; }

/* Contact */
.section--vert { background: var(--vert); color: var(--creme); }
.section--vert h2 { color: var(--blanc); margin-bottom: 1rem; }
.section--vert .surtitre { color: var(--or); }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.contact p { max-width: 34rem; }
.contact__dispo { margin-top: 1rem; color: var(--or); font-style: italic; }
.contact__coordonnees { display: grid; gap: 0.6rem; justify-items: start; }
.contact__email {
  color: var(--blanc); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--or); overflow-wrap: anywhere;
}
.contact__email:hover { color: var(--creme); }

/* Pied de page */
.pied { background: var(--creme); border-top: 1px solid var(--filet); font-size: 0.95rem; color: var(--gris); }
.pied__interieur { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; padding-block: 1.4rem; }
.pied__interieur img { width: 32px; height: 32px; }
.pied__interieur p:last-child { margin-left: auto; }

/* Mentions légales */
.texte-legal h1 { margin-bottom: 2rem; }
.texte-legal h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.texte-legal p { margin-bottom: 0.8rem; }
.texte-legal .retour { margin-top: 2.5rem; }

/* ---------- Petits écrans ---------- */
@media (max-width: 860px) {
  .accroche__grille, .contact { grid-template-columns: minmax(0, 1fr); }
  .accroche__monogramme { display: none; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagements ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .bandeau__logo img { width: 150px; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.98rem; }
  .atouts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .service { padding-right: 0; }
  .pied__interieur p:last-child { margin-left: 0; }
}
