/* Le Bureau de Fleurette — feuille de styles (mobile d'abord) */

:root {
  --sauge: #3D6B5E;
  --sauge-fonce: #2B4D43;
  --sauge-nuit: #1F3A32;
  --or: #B8955A;
  --or-clair: #DCC294;
  --or-texte: #7A5B28;     /* or assombri : lisible sur crème (AA) */
  --creme: #F5F0E8;
  --creme-claire: #FBF8F2;
  --encre: #1E2B27;
  --texte-doux: #45524D;
  --trait: #DCD3C4;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 14px;
  --hauteur-barre: 68px;
  --largeur: 1160px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: inherit;
}

h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--sauge-fonce); text-underline-offset: .18em; }
a:hover { color: var(--sauge-nuit); }

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

.section--sage :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--or-clair); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--sauge-nuit);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .container { padding: 0 28px; }
}

/* Emplacements à compléter : très visibles */
.todo {
  display: inline-block;
  padding: .3em .6em;
  background: #FFF1B8;
  color: #5A4300;
  border: 2px dashed #B08A00;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .95rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}
.todo--on-dark { margin-top: 2rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 999px;
  background: var(--sauge-fonce);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--sauge-fonce);
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--sauge-nuit); border-color: var(--sauge-nuit); color: #fff; }

.btn--small { min-height: 44px; padding: .5em 1.05em; font-size: .95rem; white-space: nowrap; }

.btn--gold { background: var(--or); border-color: var(--or); color: var(--encre); }
.btn--gold:hover { background: var(--or-clair); border-color: var(--or-clair); color: var(--encre); }

.link-arrow {
  font-weight: 600;
  color: var(--sauge-fonce);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.link-arrow::after { content: "→"; margin-left: .4em; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

.eyebrow {
  margin: 0 0 .7em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or-texte);
}

/* ---------- En-tête : barre et navigation ---------- */

.topbar {
  position: relative;
  z-index: 50;
  background: rgba(251, 248, 242, .97);
  border-bottom: 1px solid var(--trait);
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--largeur);
  min-height: var(--hauteur-barre);
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--sauge-fonce);
}
.brand__mark {
  width: 56px;
  height: auto;
  border-radius: 8px;
}
.brand__name {
  display: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 560px) {
  .brand__name { display: inline; }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--trait);
  border-radius: 10px;
  background: #fff;
  color: var(--sauge-fonce);
  cursor: pointer;
}
.js .burger { display: inline-flex; align-items: center; justify-content: center; }

.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, background-color .2s;
}
.burger__lines { position: relative; }
.burger__lines::before,
.burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: .55em 1em;
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
}
.nav__list a:hover { color: var(--sauge-fonce); background: var(--creme); }

/* Avec JavaScript, la barre reste visible pendant le défilement */
.js .topbar { position: fixed; top: 0; left: 0; right: 0; }
.js .site-header { padding-top: var(--hauteur-barre); }

/* Menu mobile (par défaut, avec JavaScript) */
.js .nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--hauteur-barre));
  max-height: calc(100dvh - var(--hauteur-barre));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--creme-claire);
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 14px 24px rgba(31, 58, 50, .12);
}
.js .nav.is-open { display: block; }
.js .nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 20px;
  text-align: center;
}
.js .nav__list a { padding: .8em 1.4em; font-size: 1.1rem; }

/* Sans JavaScript : les liens restent accessibles sous la barre */
.no-js .topbar__inner { flex-wrap: wrap; }
.no-js .nav { order: 3; flex-basis: 100%; padding-bottom: 8px; }
.no-js .nav__list { display: flex; flex-wrap: wrap; justify-content: center; }

/* Grand écran : navigation centrée sur une seule ligne.
   main.js ajoute .nav-compact si, malgré tout, elle ne tient pas. */
@media (min-width: 1024px) {
  .site-header:not(.nav-compact) .topbar__inner { flex-wrap: nowrap; }
  .site-header:not(.nav-compact) .nav {
    display: block;
    position: static;
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
    overflow: hidden;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-header:not(.nav-compact) .nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    padding: 0;
  }
  .site-header:not(.nav-compact) .nav__list a { padding: .5em .8em; font-size: 1rem; }
  .site-header:not(.nav-compact) .burger { display: none; }
  .site-header:not(.nav-compact) .topbar__actions { margin-left: 0; }
}

.topbar__inner--simple { justify-content: space-between; }

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

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 149, 90, .16), transparent 45%),
    var(--creme-claire);
  border-bottom: 1px solid var(--trait);
}
.hero__inner {
  display: grid;
  gap: 32px;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 40px 16px 56px;
}
.hero__title {
  font-size: clamp(2.2rem, 1.5rem + 3.6vw, 3.9rem);
  color: var(--sauge-fonce);
  margin-bottom: .45em;
}
.hero__title em { font-style: italic; color: var(--or-texte); }
.hero__name {
  display: block;
  margin-bottom: .6em;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.hero__lead { font-size: 1.15rem; max-width: 34em; color: var(--texte-doux); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 1.6em 0 1.4em;
}
.hero__place {
  font-size: .95rem;
  color: var(--texte-doux);
  border-left: 3px solid var(--or);
  padding-left: .9em;
  max-width: 34em;
}
.hero__logo {
  justify-self: center;
  width: min(100%, 230px);
}
.hero__logo img {
  width: 100%;
}
.hero .eyebrow { line-height: 1.6; }

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 72px 28px 88px;
  }
  .hero__logo { width: min(100%, 400px); }
}

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

.section {
  padding: 64px 0;
  scroll-margin-top: var(--hauteur-barre);
}
@media (min-width: 860px) {
  .section { padding: 96px 0; }
}

.section--light { background: var(--creme); }
.section--sage { background: var(--sauge); color: #fff; }
.section--sage .eyebrow { color: var(--or-clair); }
.section--dark { background: var(--sauge-nuit); color: #fff; }
.section--dark .eyebrow { color: var(--or-clair); }
.section--dark a:not(.btn) { color: #fff; }

.section__head { max-width: 40em; margin-bottom: 40px; }
.section__head p:last-child { margin-bottom: 0; }

/* À propos */
.about { display: grid; gap: 36px; }
.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--rayon);
  box-shadow: 14px 14px 0 var(--or);
}
.about__text h3 { margin-top: 1.6em; color: var(--sauge-fonce); }
.about__text h2 { color: var(--sauge-fonce); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 1.9em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.05em; height: 1.05em;
  border-radius: 50%;
  background: var(--sauge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

@media (min-width: 860px) {
  .about { grid-template-columns: 2fr 3fr; gap: 64px; align-items: start; }
  .about__photo { position: sticky; top: calc(var(--hauteur-barre) + 32px); }
}

/* Services */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--creme-claire);
  color: var(--encre);
  border-radius: var(--rayon);
  padding: 28px 24px;
  border-top: 4px solid var(--or);
}
.card h3 { color: var(--sauge-fonce); }
.card p { margin: 0; color: var(--texte-doux); }
.card__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--or-texte);
  margin-bottom: .6em;
}

/* Galerie */
.gallery { display: grid; gap: 18px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery__item { margin: 0; border-radius: var(--rayon); overflow: hidden; }
.gallery__item--photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery__item figcaption {
  padding: .7em 1em;
  background: var(--creme-claire);
  font-size: .95rem;
  color: var(--texte-doux);
}
.gallery__item--todo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  background: var(--creme-claire);
  border: 2px dashed var(--trait);
  text-align: center;
}
@media (min-width: 640px) { .gallery__item--todo { aspect-ratio: 3 / 4; } }

/* Témoignages */
.quotes { display: grid; gap: 18px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote {
  margin: 0;
  padding: 28px 24px;
  background: var(--sauge-fonce);
  border-radius: var(--rayon);
  border-left: 4px solid var(--or);
}
.quote blockquote { margin: 0 0 14px; }
.quote blockquote p { margin: 0; }

/* Tarifs */
.prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price {
  background: var(--creme-claire);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 26px 22px;
}
.price h3 { color: var(--sauge-fonce); font-size: 1.2rem; }
.price__amount { margin-bottom: .7em; }
.price__note { margin: 0; }

.cta-band {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: var(--rayon);
  background: var(--creme-claire);
  border: 1px solid var(--trait);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 36em; }
@media (min-width: 760px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
}

/* Contact */
.contact { display: grid; gap: 40px; }
.contact__text p { max-width: 32em; color: #E8EFEC; }
.contact__text .btn { margin-top: .6em; }
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact__list li {
  display: grid;
  gap: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  overflow-wrap: anywhere;
}
.contact__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--or-clair);
}
.socials { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.socials a, .contact__list a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 860px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

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

.site-footer {
  background: #172C26;
  color: #D9E3DF;
  padding: 48px 0 24px;
  font-size: .97rem;
}
.site-footer a { color: #fff; }
.footer { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer { grid-template-columns: 1.2fr 1.4fr 1fr; } }
.footer__name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .2em; }
.footer__title {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: .8em;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.footer__list a { display: inline-block; padding: 6px 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { display: inline-block; padding: 6px 0; }
.site-footer .footer__bottom:only-child { margin-top: 0; border-top: 0; }

/* ---------- Mentions légales ---------- */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); color: var(--sauge-fonce); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; color: var(--sauge-fonce); }
.link-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Apparitions au défilement ---------- */

.motion-ok .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.motion-ok .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion-ok .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
