/* =========================================================
   WebLocal — feuille de style
   Mobile d'abord, puis tablette (≥ 768px) et ordinateur (≥ 1024px)
   ========================================================= */

/* ---------- Police (hébergée sur le site, licence OFL) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs et réglages ---------- */
:root {
  --fond: #faf7f2;          /* blanc cassé */
  --fond-alt: #f1ece3;      /* sections alternées */
  --carte: #ffffff;
  --texte: #23272b;         /* anthracite */
  --texte-doux: #5b6168;
  --bordure: #e2dcd1;
  --accent: #1f5e3b;        /* vert profond */
  --accent-fonce: #164a2e;
  --accent-clair: #e3efe6;

  --police: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(35, 39, 43, .05), 0 8px 24px rgba(35, 39, 43, .06);
  --largeur: 1080px;
  --marge: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* la barre du haut ne cache pas les titres */
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 .6em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }

img { max-width: 100%; height: auto; display: block; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.section { padding: 64px 0; }

.lien-evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--texte);
  color: #fff;
  border-radius: 8px;
}
.lien-evitement:focus { top: 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.bouton:hover {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
  color: #fff;
  transform: translateY(-1px);
}

.bouton--secondaire {
  background: transparent;
  color: var(--accent);
}
.bouton--secondaire:hover {
  background: var(--accent-clair);
  border-color: var(--accent);
  color: var(--accent-fonce);
}

.bouton--petit {
  min-height: 40px;
  padding: 8px 16px;
  font-size: .95rem;
}

.bouton--grand {
  min-height: 60px;
  padding: 18px 34px;
  font-size: 1.15rem;
}

/* ---------- Barre du haut ---------- */
.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.barre__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--texte);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--texte); }

/* ---------- 1. Hero ---------- */
.hero { padding: 48px 0 64px; }

.hero__lieu {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-clair);
  color: var(--accent-fonce);
  font-size: .9rem;
  font-weight: 700;
}

.hero h1 { max-width: 17ch; }

.hero__sous-titre {
  max-width: 34em;
  margin-bottom: 32px;
  color: var(--texte-doux);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__rassurance {
  margin-top: 16px;
  color: var(--texte-doux);
  font-size: .95rem;
}

/* petite ligne « Maël, basé à Angers » avec photo ronde */
.hero__signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: .95rem;
  color: var(--texte-doux);
}
.hero__signature strong { color: var(--texte); }

.hero__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--carte);
  box-shadow: var(--ombre);
}
.hero__avatar--vide {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

/* maquette de téléphone : masquée sur téléphone et tablette */
.telephone { display: none; }

/* ---------- 2. Le problème ---------- */
.probleme { background: var(--fond-alt); }

.probleme__liste {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: probleme;
}
.probleme__liste li {
  position: relative;
  padding: 24px 24px 24px 72px;
  border-radius: var(--rayon);
  background: var(--carte);
  color: var(--texte-doux);
  counter-increment: probleme;
}
.probleme__liste li::before {
  content: counter(probleme);
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--texte);
  color: #fff;
  font-weight: 800;
}
.probleme__liste strong {
  display: block;
  margin-bottom: 6px;
  color: var(--texte);
  font-size: 1.1rem;
  line-height: 1.35;
}

/* ---------- 3. L'offre ---------- */
.offre__grille {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.carte-offre {
  padding: 28px 24px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--carte);
  box-shadow: var(--ombre);
}
.carte-offre h3 { margin-bottom: 8px; }

.carte-offre { min-width: 0; }
.carte-offre__prix {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.carte-offre__detail {
  margin: 4px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bordure);
  color: var(--texte-doux);
  font-size: .95rem;
}

.liste-coches {
  margin: 0;
  padding: 0;
  list-style: none;
}
.liste-coches li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}
.liste-coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f5e3b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.offre__engagement {
  margin: 28px 0 6px;
  font-weight: 700;
  text-align: center;
}
.mention {
  color: var(--texte-doux);
  font-size: .875rem;
  text-align: center;
}

/* ---------- 4. Exemples ---------- */
.exemples { background: var(--fond-alt); }

.exemples__grille {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.carte-exemple {
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--carte);
  box-shadow: var(--ombre);
}
.carte-exemple a {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* aperçu : la capture (format téléphone) debout, coupée en bas pour montrer le haut de la page */
.carte-exemple__visuel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 300px;
  padding: 28px 24px 0;
  overflow: hidden;
  background: var(--accent-clair);
}
.carte-exemple__visuel img {
  width: 210px;
  max-width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 12px 32px -8px rgba(35, 39, 43, .3);
  transition: transform .3s;
}
.carte-exemple a:hover .carte-exemple__visuel img { transform: translateY(-4px); }

.exemple-principal__mention {
  margin: 10px 4px 0;
  color: var(--texte-doux);
  font-size: .875rem;
}

/* texte lu par les lecteurs d'écran uniquement */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.carte-exemple__texte {
  display: block;
  padding: 18px 20px;
}
.carte-exemple__texte strong {
  display: block;
  font-size: 1.15rem;
}
.carte-exemple__texte span { color: var(--accent); font-weight: 600; }

.carte-exemple--bientot {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 2px dashed var(--bordure);
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.carte-exemple--bientot .carte-exemple__texte strong {
  color: var(--texte-doux);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.carte-exemple--bientot .carte-exemple__texte span {
  color: var(--texte);
  font-size: 1.1rem;
}

/* ---------- 5. Comment ça se passe ---------- */
.etapes__liste {
  display: grid;
  gap: 28px;
  margin: 36px 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes__liste li {
  position: relative;
  padding-left: 68px;
  counter-increment: etape;
}
.etapes__liste li::before {
  content: counter(etape);
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}
.etapes__liste h3 { margin-bottom: 6px; }
.etapes__liste p { color: var(--texte-doux); }

.etapes__note {
  margin-top: 8px;
  font-size: .9rem;
  font-style: italic;
}

/* ---------- 6. Qui je suis ---------- */
.moi { background: var(--fond-alt); }

.moi__inner {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.moi__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--carte);
  box-shadow: var(--ombre);
}
.moi__photo--vide {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
}

.moi p { max-width: 36em; }

/* ---------- 7. FAQ ---------- */
.faq__liste {
  max-width: 760px;
  margin-top: 32px;
  border-top: 1px solid var(--bordure);
}

.faq__item { border-bottom: 1px solid var(--bordure); }
.faq__item h3 { margin: 0; font-size: inherit; }

.faq__question {
  position: relative;
  width: 100%;
  padding: 22px 48px 22px 0;
  border: 0;
  background: none;
  color: var(--texte);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq__question:hover { color: var(--accent); }

/* le « + » qui devient « − » à l'ouverture */
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .2s;
}
.faq__question::after { transform: rotate(90deg); }
.faq__question[aria-expanded="true"]::after { transform: rotate(0deg); }

.faq__reponse {
  padding: 0 0 24px;
  color: var(--texte-doux);
}
.faq__reponse[hidden] { display: none; }

/* ---------- 8. Dernier appel à l'action ---------- */
.cta-final {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.cta-final h2 { margin-left: auto; margin-right: auto; max-width: 18ch; }
.cta-final p { margin-left: auto; margin-right: auto; max-width: 32em; color: rgba(255, 255, 255, .88); }

.cta-final .bouton {
  margin: 16px 0 28px;
  background: #fff;
  border-color: #fff;
  color: var(--accent-fonce);
}
.cta-final .bouton:hover {
  background: var(--accent-clair);
  border-color: var(--accent-clair);
}

/* phrase juste au-dessus du bouton de réservation */
.cta-final .cta-final__rappel {
  margin-top: 20px;
  margin-bottom: 0;
  color: #fff;
  font-weight: 700;
}

.cta-final__contacts { line-height: 1.9; }
.cta-final__contacts a { color: #fff; font-weight: 700; }

/* petits liens dans le texte : zone de toucher plus grande au doigt */
.cta-final__contacts a,
.pied a {
  display: inline-block;
  padding: 6px 2px;
}

/* ---------- 9. Pied de page ---------- */
.pied {
  padding: 32px 0 40px;
  background: var(--texte);
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  text-align: center;
}
.pied p { margin-bottom: 6px; }
.pied a { color: #fff; }

/* ---------- Page mentions légales ---------- */
.legal .conteneur { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--bordure);
}
.legal h2 { font-size: 1.3rem; margin-bottom: .5em; }
.legal p { color: var(--texte-doux); }
.legal strong { color: var(--texte); }
.legal__retour { margin-bottom: 24px; font-weight: 600; }

/* =========================================================
   Tablette (≥ 768px)
   ========================================================= */
@media (min-width: 768px) {
  :root { --marge: 32px; }

  .section { padding: 88px 0; }
  .hero { padding: 80px 0 96px; }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .offre__grille { grid-template-columns: 1fr 1fr; }
  .carte-offre { padding: 36px 32px; }

  .exemples__grille { grid-template-columns: repeat(2, 1fr); }
  .exemple-principal { grid-column: 1 / -1; }
  .carte-exemple--bientot { min-height: 160px; }

  .moi__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 48px;
  }
  .moi__photo { width: 200px; height: 200px; }
}

/* =========================================================
   Ordinateur (≥ 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  body { font-size: 1.125rem; } /* 18px */

  .hero { padding: 72px 0 96px; }
  .hero__sous-titre { font-size: 1.3rem; }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
  }

  .telephone {
    display: block;
    position: relative;
    /* hauteur adaptée à l'écran : le téléphone tient toujours dans le premier écran */
    height: clamp(360px, calc(100vh - 260px), 480px);
    width: auto;
    aspect-ratio: 9 / 19;
    padding: 10px;
    border-radius: 38px;
    background: var(--texte);
    box-shadow: 0 30px 60px -20px rgba(35, 39, 43, .35), 0 0 0 1px rgba(35, 39, 43, .08);
  }
  /* encoche */
  .telephone::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 1;
    width: 64px;
    height: 18px;
    border-radius: 999px;
    background: var(--texte);
    transform: translateX(-50%);
  }
  .telephone__ecran {
    width: 100%;
    height: 100%;
    border-radius: 29px;
    /* capture entière, sous une « barre d'état » sombre (30px, où se place l'encoche),
       avec une marge en bas pour que le bouton « Appeler » ne soit pas rogné par les coins arrondis */
    background: var(--texte) url("../img/demo-paysagiste.webp") center 30px / auto calc(100% - 44px) no-repeat;
  }

  .probleme__liste { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .offre__grille { max-width: 920px; margin-left: auto; margin-right: auto; }

  .exemples__grille { grid-template-columns: 2fr 1fr; }
  .exemple-principal { grid-column: auto; grid-row: span 2; }
  .carte-exemple__visuel { height: 380px; padding-top: 36px; }
  .carte-exemple__visuel img { width: 250px; }
  .carte-exemple--bientot { min-height: 0; }

  .etapes__liste { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .etapes__liste li { padding-left: 0; padding-top: 68px; }
  .etapes__liste li::before { top: 0; }

  .moi__photo { width: 240px; height: 240px; }
}
