/* ==========================================================================
   Administratif & Vous — feuille de style
   Couleurs et polices issues du logo et de la plaquette tarifaire.
   ========================================================================== */

/* ---------- Polices (hébergées sur le site, aucun appel externe) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italique.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  --sapin: #2e4a3e;          /* vert du monogramme : titres, fonds forts */
  --sapin-fonce: #233a30;    /* pied de page */
  --sauge: #eef2ec;          /* fonds de section alternés */
  --sauge-onglet: #dde5da;   /* intercalaire inactif */
  --greige: #b99c88;         /* beige rosé du « R » : filets, trombone */
  --greige-texte: #86664f;   /* beige lisible sur fond clair */
  --greige-clair: #e6d6c8;   /* beige lisible sur fond sapin */
  --encre: #23302a;          /* texte courant */
  --encre-douce: #4a5750;    /* texte secondaire */
  --papier: #ffffff;
  --filet: #d6ddd3;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lexend", "Segoe UI", Roboto, Arial, sans-serif;

  --largeur: 70rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --ombre-papier: 0 1px 2px rgb(35 48 42 / 0.08), 0 22px 44px -22px rgb(35 48 42 / 0.4);

  color-scheme: light;
}

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

html {
  font-size: 112.5%; /* 18 px si le navigateur est réglé par défaut */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--sapin);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.7rem); font-weight: 500; letter-spacing: -0.005em; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

a { color: var(--sapin); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

[hidden] { display: none !important; }
[id] { scroll-margin-top: 1rem; }

mark { background: #fff0b3; color: var(--encre); padding: 0 0.2em; }
.insecable { white-space: nowrap; }

.visuellement-masque {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--sapin);
  color: #fff;
  border-radius: 4px;
}
.evitement:focus { top: 1rem; }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--sauge { background: var(--sauge); }

.intro {
  font-size: 1.15rem;
  color: var(--encre-douce);
  max-width: 38em;
  margin-top: 1rem;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton--plein { background: var(--sapin); color: #fff; }
.bouton--plein:hover { background: var(--sapin-fonce); }
.bouton--clair { background: #fff; color: var(--sapin); }
.bouton--clair:hover { background: var(--greige-clair); }
.bouton--contour { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.bouton--contour:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.entete {
  position: relative;
  z-index: 20;
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
}
.entete__barre {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "marque appel"
    "menu   menu";
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.7rem 0.2rem;
}

.marque {
  grid-area: marque;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sapin);
  text-decoration: none;
  min-width: 0;
}
.marque img { width: 2.3rem; height: auto; flex: none; }
.marque__texte { display: flex; flex-direction: column; min-width: 0; }
.marque__nom {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.02rem, 0.75rem + 1.5vw, 1.2rem);
  line-height: 1.1;
  white-space: nowrap;
}
.esperluette { color: var(--greige); font-weight: 500; }
.marque__role {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--encre-douce);
  margin-top: 0.15rem;
}

.menu { grid-area: menu; }
.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: inline-block;
  padding: 0.55rem 0;
  color: var(--encre);
  font-weight: 450;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.menu a:hover { border-bottom-color: var(--greige); }

.bouton-appel {
  grid-area: appel;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: var(--sapin);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.bouton-appel:hover { background: var(--sapin-fonce); }
.bouton-appel svg { width: 1.2rem; height: 1.2rem; flex: none; }
.bouton-appel__numero { display: none; }

@media (max-width: 29.99em) {
  .marque { gap: 0.55rem; }
  .bouton-appel { min-width: 2.75rem; min-height: 2.75rem; padding: 0.4rem; }
  .menu ul { justify-content: space-between; gap: 0 0.75rem; }
  .menu a { font-size: 0.92rem; }
}
@media (min-width: 30em) {
  .marque img { width: 2.7rem; }
  .bouton-appel { padding-inline: 1rem; }
  .bouton-appel__numero { display: inline; }
}

@media (min-width: 72em) {
  .entete {
    position: sticky;
    top: 0;
    background: rgb(255 255 255 / 0.96);
    backdrop-filter: saturate(1.2) blur(6px);
  }
  .entete__barre {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "marque menu appel";
    column-gap: 2.5rem;
    min-height: 5rem;
    padding-block: 0.6rem;
  }
  .menu ul { justify-content: flex-end; margin: 0; gap: 0 1.8rem; }
  .marque img { width: 3.1rem; }
  .marque__nom { font-size: 1.3rem; }
  [id] { scroll-margin-top: 6.5rem; }
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.accueil {
  position: relative;
  overflow: hidden;
  background: var(--sapin);
  color: #fff;
}
/* le cercle du logo, repris en filigrane autour de la fiche (grands écrans) */
@media (min-width: 62em) {
  .accueil::before {
    content: "";
    position: absolute;
    width: 52rem;
    height: 52rem;
    right: -20rem;
    top: -14rem;
    border: 1.5px solid rgb(185 156 136 / 0.45);
    border-radius: 50%;
    pointer-events: none;
  }
}
.accueil__grille {
  position: relative;
  display: grid;
  gap: 3.5rem;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
  align-items: center;
}
.accueil h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.35rem, 1.5rem + 3.9vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin-bottom: 1.6rem;
  max-width: 13em;
}
.chapo {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 31em;
  color: #f3f6f2;
}
.public {
  max-width: 31em;
  color: var(--greige-clair);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}
@media (max-width: 29.99em) {
  .actions .bouton { flex: 1 1 100%; }
}

@media (min-width: 62em) {
  .accueil__grille {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 4.5rem;
  }
}

/* La fiche « En pratique » : une feuille tenue par le trombone du logo */
.fiche {
  position: relative;
  width: 100%;
  max-width: 27rem;
  justify-self: center;
  margin-top: 1.25rem;
  padding: 2.4rem clamp(1.4rem, 4vw, 2.1rem) 1.9rem;
  background: var(--papier);
  color: var(--encre);
  border-radius: 2px;
  box-shadow: var(--ombre-papier);
}
@media (min-width: 62em) {
  .fiche { justify-self: end; margin-top: 0; }
}
.trombone {
  position: absolute;
  top: -2.35rem;
  left: 2.1rem;
  width: 1.7rem;
  height: auto;
  color: var(--greige);
  transform: rotate(-9deg);
  transform-origin: 50% 85%;
  filter: drop-shadow(0 1.5px 1px rgb(0 0 0 / 0.22));
}
@media (prefers-reduced-motion: no-preference) {
  .trombone { animation: pince 0.7s 0.35s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
  @keyframes pince {
    from { opacity: 0; transform: translateY(-1.1rem) rotate(-22deg); }
    to   { opacity: 1; transform: rotate(-9deg); }
  }
}
.fiche__titre {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.fiche dl { margin: 0; }
.champ {
  padding: 0.6rem 0 0.45rem;
  border-bottom: 2px dotted var(--greige);
}
.champ dt {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--greige-texte);
}
.champ dd {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}
.cases { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.case { display: inline-flex; align-items: center; gap: 0.45rem; }
.case svg { width: 1.05rem; height: 1.05rem; color: var(--sapin); flex: none; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  display: grid;
  gap: 3rem 2.75rem;
  margin-top: 3rem;
}
@media (min-width: 46em) {
  .services { grid-template-columns: 1fr 1fr; }
}
.service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: var(--sauge);
}
.service h3 { margin: 1.3rem 0 0.5rem; }
.service p { max-width: 32em; }

.taches {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 2.25rem;
  border-top: 3px solid var(--greige);
}
.taches h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.liste-cochee {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 20rem;
  column-gap: 3.5rem;
}
.liste-cochee li {
  position: relative;
  break-inside: avoid;
  padding: 0.45rem 0 0.45rem 2rem;
}
.liste-cochee li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8rem;
  width: 1rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--sapin);
  border-bottom: 2.5px solid var(--sapin);
  transform: rotate(-45deg);
}
.taches__suite {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--sauge);
  border-radius: 4px;
  max-width: 46rem;
}
.taches__suite a { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   À propos
   ========================================================================== */
.apropos {
  display: grid;
  gap: 3rem;
}
@media (min-width: 62em) {
  .apropos {
    grid-template-columns: 21rem minmax(0, 1fr);
    gap: 5.5rem;
    align-items: start;
  }
  .carte-visite { position: sticky; top: 8rem; }
}
.carte-visite {
  margin: 0;
  max-width: 24rem;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--papier);
  border-radius: 2px;
  box-shadow: var(--ombre-papier);
  text-align: center;
}
.carte-visite img { width: 100%; }
.carte-visite figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
}
.carte-visite__nom {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sapin);
}
.carte-visite__role { display: block; color: var(--encre-douce); font-size: 0.95rem; }

.apropos__texte h2 { margin-bottom: 1.75rem; }
.apropos__texte p { max-width: 36em; }
.conviction {
  margin-top: 2.25rem !important;
  padding-left: 1.4rem;
  border-left: 3px solid var(--greige);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--sapin);
}

/* ==========================================================================
   Proximité
   ========================================================================== */
.atouts {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.75rem;
}
@media (min-width: 52em) {
  .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.atout {
  padding-top: 1.3rem;
  border-top: 3px solid var(--greige);
}
.atout h3 { margin-bottom: 0.6rem; }
.atout__precision {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--sapin);
}

/* ==========================================================================
   Devis
   ========================================================================== */
.devis {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 62em) {
  .devis {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}
.devis__liste { columns: auto; margin-top: 1.75rem; }

.devis__carte {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--papier);
  border-radius: 2px;
  box-shadow: var(--ombre-papier);
}
.devis__carte h3 { margin-bottom: 1.4rem; }
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}
.etapes li {
  position: relative;
  counter-increment: etape;
  padding: 0.15rem 0 1.15rem 3rem;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sapin);
  color: #fff;
  font: 600 1rem/1 var(--serif);
}
.devis__action { margin-top: 0.6rem; }
.devis__action .bouton { width: 100%; }
.devis__aide { margin-top: 1rem; font-size: 0.92rem; color: var(--encre-douce); overflow-wrap: anywhere; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--sapin);
  color: #fff;
  padding-block: var(--section);
}
.contact__grille {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 62em) {
  .contact__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
}
.contact h2 { color: #fff; margin-bottom: 1.25rem; }
.contact p { color: #eef2ed; max-width: 32em; }
.contact__moyens { display: grid; gap: 1rem; }
.moyen {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  color: var(--encre);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.moyen:hover { background: var(--greige-clair); }
.moyen svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--sapin); }
.moyen__libelle { display: block; font-size: 0.85rem; color: var(--encre-douce); }
.moyen__valeur {
  display: block;
  font-size: clamp(1.05rem, 0.85rem + 1vw, 1.2rem);
  font-weight: 600;
  color: var(--sapin);
  overflow-wrap: break-word;
}
.contact__zone { font-size: 0.95rem; margin-top: 0.5rem; color: var(--greige-clair) !important; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied {
  background: var(--sapin-fonce);
  color: #dfe6e1;
  font-size: 0.92rem;
  padding-block: 3rem 2rem;
}
.pied a { color: #fff; }
.pied__haut {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}
@media (min-width: 52em) {
  .pied__haut { grid-template-columns: 1fr auto; align-items: center; }
}
.pied__marque { display: flex; align-items: center; gap: 1rem; }
.pied__marque img { width: 3rem; flex: none; }
.pied__marque p { margin: 0; line-height: 1.5; }
.pied__nom { font: 600 1.15rem/1.3 var(--serif); color: #fff; }
.pied nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pied nav a { display: inline-block; padding: 0.4rem 0; text-decoration: none; }
.pied nav a:hover { text-decoration: underline; }
.pied__legal { padding-top: 1.5rem; color: #b8c4bd; font-size: 0.85rem; }
.pied__legal p { margin: 0 0 0.3rem; }

.accueil :focus-visible,
.contact :focus-visible,
.pied :focus-visible { outline-color: var(--greige-clair); }

/* ==========================================================================
   Pages simples (mentions légales, page introuvable)
   ========================================================================== */
.page-simple { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-simple .conteneur { max-width: 46rem; }
.page-simple h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.page-simple h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}
.page-simple ul { padding-left: 1.2rem; }
.page-simple li { margin-bottom: 0.3rem; }
.date-maj { color: var(--encre-douce); font-size: 0.95rem; }
