/* ===== Thème : esprit affiche N&B + accent "huile" ===== */
/*
  Guide rapide (débutant·e):
  - Ces variables CSS pilotent l'identité visuelle du site.
  - Modifie par exemple --accent pour changer la couleur d'accent globale.
  - --radius contrôle les arrondis, --shadow l'ombre portée.
  - --measure fixe une largeur de ligne confortable pour les textes.
*/
:root {
  --bg: #ffffff;
  --ink: #1b1b1b;
  --muted: #6b6b6b;
  --paper: #f5f5f5;
  --accent: #ffd166; /* miel/huile chaleureuse */
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --header-offset: 80px; /* pour compenser le header sticky */
  --measure: 66ch; /* largeur de ligne confortable */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden; /* évite tout décalage latent sur mobile */
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  color: var(--ink);
  background: radial-gradient(
      1200px 800px at 90% -10%,
      rgba(0, 0, 0, 0.05),
      transparent 60%
    )
    var(--bg);
  line-height: 1.6;
}

/* Layout helpers
   .container  → centre et limite la largeur (meilleure lisibilité)
   .section    → ajoute un espacement vertical cohérent entre sections
   .section.alt→ alterne le fond pour créer des respirations visuelles
   scroll-margin-top → évite que le titre passe sous le header sticky
*/
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: 36px 0;
  scroll-margin-top: var(--header-offset);
}
.section.alt {
  background: var(--paper);
}
h1,
h2,
h3 {
  font-family: "Domine", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  text-wrap: balance; /* équilibre la casse des titres sur 2 lignes */
}
h1 {
  font-size: clamp(2.1rem, 2.2rem + 1.5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.2rem);
}
h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lead {
  font-size: 1.1rem;
  color: #2a2a2a;
}

.legal {
  display: grid;
  gap: 18px;
}
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.4rem;
}
.legal-list strong {
  display: inline-block;
  min-width: 180px;
  font-weight: 800;
}

/* Annotation: Saut de ligne manuel (visible en responsive) */
.mobile-br { display: none; } /* affiché en responsive via @media */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: var(--ink);
}
.btn:active {
  transform: translateY(0);
  background: var(--accent);
  color: var(--ink);
}
.btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
  background: var(--accent);
  color: var(--ink);
}
.btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky; /* garde le header visible pendant le scroll */
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px); /* floute ce qui passe derrière (support moderne) */
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  margin-left: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  text-decoration: underline;
}
/* Ensure nav buttons are readable (white text, no underline) */
.nav a.btn {
  color: #fff;
}
.nav a.btn:hover {
  text-decoration: none;
  color: var(--ink);
}

/* Mobile menu toggle (⋯) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow);
}

.nav a.btn:active,
.nav a.btn:focus-visible {
  color: var(--ink);
}

/* HERO
   - Grille 2 colonnes (texte + image) sur grands écrans
   - Espace et marges adaptés à l'accroche
*/
.hero {
  padding: 28px 0 14px;
  position: relative;
  scroll-margin-top: var(--header-offset);
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-copy,
.atelier-copy,
.contact > div {
  max-width: var(--measure);
}
.hero-copy .highlight {
  background: linear-gradient(transparent 60%, var(--accent) 60%); /* effet surligneur */
  padding: 0 0.2rem;
}
.tagline {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent 65%, var(--accent) 65%); /* trait d'accent discret */
  padding: 0 0.2rem;
  margin: 0.2rem 0 0.8rem;
}
.cta {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
  flex-wrap: wrap;
}
.badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  padding: 18px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(115%);
}
/* removed decorative oil drop */

/* Annotation: Grille Services (auto-fit desktop; colonnes forcées en responsive)
   repeat(auto-fit, minmax(240px, 1fr))
   - minmax(240px, 1fr) empêche qu'une carte devienne trop étroite.
   - auto-fit ajoute/retire des colonnes selon l'espace disponible.
*/
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.card .icn {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

/* Annotation: Grille Tarifs (auto-fit desktop; colonnes forcées en responsive)
   Même principe que .cards pour rester régulier en largeur.
*/
.pricing {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.price-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.price-card h3 {
  display: inline-block;
  padding: 0 0.25rem;
  background: linear-gradient(transparent 65%, var(--accent) 65%);
}
.price-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.price-illustration img {
  width: 110px;
  height: auto;
  filter: grayscale(100%) contrast(110%);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: #2a2a2a;
  align-items: flex-start;
  flex-wrap: wrap;
}
.price-list span {
  flex: 1;
}
.price-list strong {
  font-size: 1rem;
}
.price-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0.1rem 0 0.2rem;
  padding: 0.1rem 0;
  align-self: flex-start;
}
.price-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card--highlight {
  border: 2px solid var(--ink);
}
.price-card--highlight .price-illustration {
  border-color: rgba(0, 0, 0, 0.1);
}
.price-list--bullets {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}
.price-list--bullets li {
  display: list-item;
  justify-content: flex-start;
  font-weight: 600;
  color: #202020;
}
.note {
  color: var(--muted);
  margin-top: 0.8rem;
}

/* Atelier split */
.atelier {
  display: grid;
  gap: 28px;
  align-items: stretch;
  grid-template-columns: 1.1fr 0.9fr;
}
.atelier-copy {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.atelier-copy .list {
  margin: 0.6rem 0 1.2rem;
  padding-left: 0;
  list-style: none;
  color: #2d2d2d;
}
.atelier-photo {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  min-height: 320px;
  overflow: hidden;
}
.atelier-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
}

/* Annotation: Section Contact (centrée et compacte)
   Grille d'un seul bloc avec largeur limitée par --measure.
*/
.contact {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
}
/* Annotation: Boîte de contenu du contact
   Fond blanc, ombre douce, bordure légère → aspect carte.
*/
.contact-box {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
/* Annotation: Liste des moyens de contact en grille
   auto-fit range 1 à 3 colonnes selon la place; gap = espacement.
*/
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1rem;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-list a { color: var(--ink); }

/* Annotation: Lignes cliquables (icône + texte)
   Entièrement cliquables (accessibles au clavier via :focus-visible).
*/
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  background: var(--accent);
  color: var(--ink);
  outline: none;
  border-color: rgba(0, 0, 0, 0.12);
}

/* Annotation: Boutons sous la liste centrés */
.contact .cta {
  justify-content: center;
}

/* Annotation: Icône inline générique (hérite de la couleur du texte)
   fill: currentColor → l'icône prend la même couleur que le texte.
*/
.icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: -4px;
  fill: currentColor;
}

/* Animation d'apparition au scroll (désactivable via prefers-reduced-motion) */
.has-animations [data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 320ms ease, transform 420ms ease;
}
.has-animations [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.has-animations [data-animate][data-direction="left"] {
  transform: translate(-28px, 18px);
}
.has-animations [data-animate][data-direction="right"] {
  transform: translate(28px, 18px);
}
.has-animations [data-animate].is-visible[data-direction="left"],
.has-animations [data-animate].is-visible[data-direction="right"] {
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .has-animations [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Annotation: Verrouille la taille des icônes (override styles globaux)
   !important neutralise par ex. svg { width:100% } qu'un thème hébergeur pourrait injecter.
*/
.contact .contact-link .icon {
  width: 20px !important;
  height: 20px !important;
  max-width: none;
  max-height: none;
  flex: 0 0 20px;
  display: inline-block;
}

.form {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 0.8rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid #d8d8d8;
  font: inherit;
  background: #fff;
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}
.tiny {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.site-footer .container {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  inset: auto 14px 14px 14px;
  z-index: 30;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.cookie-banner__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.cookie-banner__text {
  margin: 0;
  color: #2a2a2a;
  font-size: 0.95rem;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--accent);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.2);
}

.floating-contact {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(12px, 3vw, 26px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  z-index: 20;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.floating-contact:hover {
  transform: translateY(-2px);
  background: #fffbe8;
}
.floating-contact:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 3px;
  background: #fffbe8;
}
.floating-contact__img {
  width: 100px;
  max-width: 28vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}
.floating-contact__label {
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 0.25rem;
  background: linear-gradient(transparent 65%, var(--accent) 65%);
}

/* Annotation: Règles responsives
   900px ≈ tablette; 600px ≈ mobile. Ajuste selon ton audience.
*/
@media (max-width: 900px) {
  /* Annotation: iPad — saut visible et 2 colonnes pour Services/Tarifs */
  .mobile-br { display: inline; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .atelier,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
    min-height: 0;
    padding: 14px;
  }
  .atelier {
    justify-items: center;
  }
  .atelier-photo {
    max-width: 540px;
    width: 100%;
    min-height: 260px;
    margin-top: 12px;
  }
  .nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
    flex-direction: column;
    width: max-content;
    min-width: 220px;
  }
  .nav.is-open { display: flex; }
  .nav a.btn { width: 100%; padding: 0.7rem 0.9rem; border-radius: 10px; }
  .menu-toggle { display: inline-flex; }
  :root { --header-offset: 110px; }
  .section { padding: 28px 0; }
  .hero { padding: 20px 0 10px; }
  .atelier-photo { min-height: 220px; }
  .floating-contact {
    right: 14px;
    bottom: 14px;
    padding: 9px 10px 11px;
  }
  .floating-contact__img { width: 86px; max-width: 32vw; }
  .cookie-banner {
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  /* Annotation: Mobile — typographie et densité */
  body { font-size: 17px; }
  .section { padding: 22px 0; }
  .cards, .pricing, .contact { gap: 14px; }
  .card, .price-card, .form, .atelier-copy { padding: 16px; }
  .hero { padding: 14px 0 32px; }
  .hero-grid {
    gap: 18px;
    text-align: center;
    justify-items: center;
  }
  /* Annotation: Lead plus petite et saut visible */
  .mobile-br { display: inline; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .hero-visual {
    display: grid;
    place-items: center;
    width: min(72vw, 220px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 16px;
    padding: 10px;
  }
  .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .cta { justify-content: center; }
  /* Annotation: Services — 2 colonnes fixes */
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card h3 { font-size: 1rem; }
  .card p { font-size: 0.95rem; }
  /* Annotation: Tarifs — 2 colonnes fixes */
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .price-card h3 { font-size: 1rem; }
  .price-card .price-tag { font-size: 1.2rem; }
  .price-card p { font-size: 0.95rem; }
  /* Annotation: CTA hero — 3 boutons sur une ligne */
  .cta {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .cta .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
    text-align: center;
  }
  .floating-contact {
    right: 10px;
    bottom: 12px;
    padding: 8px 9px 10px;
  }
  .floating-contact__img { width: 74px; max-width: 34vw; }
  .floating-contact__label { font-size: 0.9rem; }
  .cookie-banner {
    inset: auto 10px 10px 10px;
    padding: 14px;
  }
  /* Badges under CTA: lighter and centered */
  .hero .badges {
    justify-content: center;
    color: #8d8d8d;
    font-weight: 600;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }
  .hero .badges li {
    white-space: nowrap;
    font-size: 0.85rem;
    letter-spacing: 0.1px;
  }
}
