/* ==========================================================
   L'Atelier — Bérangère Créations
   Charte graphique reprise de berangere-creations.fr :
   - Titres : "Yeseva One" | Texte : Roboto
   - Encre #161616 · Terracotta #BC5949 · Crème #F3EFE6 · Sable #F0D6BA
   - Boutons carrés, style épuré et artisanal
   ========================================================== */

:root {
  --ink: #161616;
  --terracotta: #bc5949;
  --terracotta-dark: #a34a3c;
  --cream: #f3efe6;
  --sand: #f0d6ba;
  --white: #ffffff;
  --grey: #444444;
  --font-title: "Yeseva One", serif;
  --font-body: "Roboto", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
}

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

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.2; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Éléments récurrents ---------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid { background: var(--terracotta); color: var(--white); }
.btn-solid:hover { background: var(--terracotta-dark); }

.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { text-decoration: none; color: var(--ink); }
.brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav .nav-cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 500;
}
.main-nav .nav-cta:hover { background: var(--terracotta-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héro ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.45) 0%, rgba(22, 22, 22, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 110px 24px;
  max-width: 780px;
}
.hero-content .eyebrow { color: var(--sand); }
.hero-content h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 22px; }
.hero-text { font-size: 18px; font-weight: 300; max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

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

.section { padding: 90px 0; }
.section-cream { background: var(--cream); }

.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .eyebrow { color: var(--sand); }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.section-intro { font-size: 17px; color: var(--grey); }
.section-dark .section-intro { color: rgba(243, 239, 230, 0.8); }

/* ---------- Bloc présentation ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; color: var(--grey); }

.feature-list { list-style: none; margin-top: 24px; }
.feature-list li {
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  color: var(--grey);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 2px;
  background: var(--terracotta);
}
.feature-list strong { color: var(--ink); font-weight: 500; }

.photo-card { position: relative; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 18px 18px 0 var(--sand);
}
.photo-card figcaption {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Galeries ---------- */

.gallery {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery figure { overflow: hidden; background: var(--cream); }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery figure:hover img { transform: scale(1.045); }

.atelier-note {
  max-width: 860px;
  margin: 0 auto;
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 22px 28px;
  color: var(--grey);
  font-size: 15.5px;
}
.section-cream .atelier-note { background: var(--white); }
.atelier-note strong { color: var(--ink); font-weight: 500; }

/* ---------- Cartes ---------- */

.cards { display: grid; gap: 26px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  padding: 38px 34px;
  border: 1px solid rgba(22, 22, 22, 0.08);
}
.section-dark .card {
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid rgba(243, 239, 230, 0.2);
  color: var(--cream);
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--grey); }
.section-dark .card p { color: rgba(243, 239, 230, 0.8); }

.card-big {
  font-family: var(--font-title);
  font-size: 30px;
  color: var(--terracotta) !important;
  margin: 6px 0 14px;
}
.section-dark .card-big { color: var(--sand) !important; }

.card.technique { padding: 0 0 30px; overflow: hidden; }
.technique-img { height: 240px; overflow: hidden; margin-bottom: 24px; }
.technique-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card.technique:hover .technique-img img { transform: scale(1.05); }
.card.technique h3, .card.technique p { padding: 0 30px; }
.card.technique h3 { margin-bottom: 10px; }

/* ---------- Offre & tarifs ---------- */

.tarifs-decouverte {
  background: var(--white);
  border: 1px solid var(--terracotta);
  padding: 34px 36px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.td-titre { font-family: var(--font-title); font-size: 24px; margin-bottom: 14px; }
.td-prix {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--grey);
}
.td-prix strong { font-family: var(--font-title); font-size: 22px; color: var(--terracotta); font-weight: 400; }
.td-texte { font-size: 15px; color: var(--grey); max-width: 520px; margin: 0 auto; }

.tarifs-offres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 40px;
}
.tarifs-carte {
  background: var(--white);
  border: 1px solid rgba(22, 22, 22, 0.08);
  padding: 32px 30px;
}
.tarifs-carte h3 { font-size: 21px; margin-bottom: 6px; }
.tarifs-format {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 18px;
}
.tarifs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tarifs-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  padding: 8px 6px;
  border-bottom: 2px solid var(--ink);
}
.tarifs-table td { padding: 11px 6px; border-bottom: 1px solid rgba(22, 22, 22, 0.08); }
.tarifs-table td:nth-child(2) { color: var(--terracotta); font-weight: 500; white-space: nowrap; }
.tarifs-table small { color: var(--grey); font-weight: 300; }
.tarifs-notes { list-style: none; margin-top: 14px; }
.tarifs-notes li {
  font-size: 13.5px;
  color: var(--grey);
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}
.tarifs-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--terracotta);
}

.tarifs-inclus {
  background: var(--white);
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto 22px;
  border-left: 3px solid var(--terracotta);
}
.ti-titre { font-family: var(--font-title); font-size: 19px; margin-bottom: 12px; }
.tarifs-inclus ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.tarifs-inclus li { position: relative; padding-left: 26px; font-size: 15px; color: var(--grey); }
.tarifs-inclus li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

.tarifs-conditions { max-width: 860px; margin: 0 auto; }
.tc-titre {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  margin-bottom: 8px;
}
.tarifs-conditions ul { list-style: none; }
.tarifs-conditions li { font-size: 13.5px; color: var(--grey); margin-bottom: 4px; padding-left: 14px; position: relative; }
.tarifs-conditions li::before { content: "·"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

.tarifs-cta { text-align: center; margin-top: 36px; }

@media (max-width: 860px) {
  .tarifs-offres { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .tarifs-inclus ul { grid-template-columns: 1fr; }
}

/* ---------- Réservation (outil maison) ---------- */

.resa-widget { max-width: 940px; margin: 0 auto; }

.resa-vide {
  text-align: center;
  color: var(--grey);
  background: var(--cream);
  padding: 42px 30px;
}

/* Étape 1 : choix de l'atelier */
.resa-ateliers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}
.resa-atelier-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--cream);
  border: 1px solid transparent;
  padding: 28px 30px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.resa-atelier-card:hover { border-color: var(--terracotta); background: var(--white); }
.rac-nom { font-family: var(--font-title); font-size: 22px; color: var(--ink); }
.rac-infos {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
}
.rac-desc { font-size: 15px; color: var(--grey); }
.rac-action {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.resa-atelier-card:hover .rac-action { color: var(--terracotta); }

.resa-choix-titre { text-align: center; margin-bottom: 30px; }
.resa-choix-nom { font-family: var(--font-title); font-size: 26px; }
.resa-choix-infos {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}
.rs-groupe { color: var(--terracotta); font-weight: 500; }
.rs-domicile { color: var(--terracotta); }

/* Bloc adresse pour les cours à domicile */
.resa-adresse {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 22px 26px;
  max-width: 640px;
  margin: 0 auto 30px;
}
.resa-adresse-titre { font-family: var(--font-title); font-size: 19px; margin-bottom: 6px; }
.resa-adresse-note { font-size: 14.5px; color: var(--grey); margin-bottom: 14px; }
#resaFormAdresse { display: flex; gap: 10px; flex-wrap: wrap; }
#resaFormAdresse input {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 22, 22, 0.25);
  background: var(--white);
}
#resaFormAdresse input:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; }
.resa-adresse-btn { border: none; cursor: pointer; font-family: var(--font-body); padding: 12px 22px; }

/* Suggestions d'adresses (autocomplétion) */
.resa-adresse-champ { position: relative; flex: 1; min-width: 220px; }
.resa-adresse-champ input { width: 100%; }
.resa-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid rgba(22, 22, 22, 0.2);
  border-top: none;
  box-shadow: 0 8px 18px rgba(22, 22, 22, 0.12);
  max-height: 260px;
  overflow-y: auto;
}
.resa-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.resa-suggestion:hover { background: var(--cream); }
.resa-suggestion small { display: block; color: var(--grey); font-size: 12.5px; margin-top: 2px; }
.resa-recap-groupe { color: var(--terracotta); font-size: 14.5px; margin-top: 8px; font-weight: 500; }

.resa-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.resa-filtre {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid rgba(22, 22, 22, 0.2);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.resa-filtre:hover { border-color: var(--terracotta); color: var(--terracotta); }
.resa-filtre.actif {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.resa-jours {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 8px;
  display: grid;
  gap: 26px;
}
.resa-date {
  font-family: var(--font-title);
  font-size: 19px;
  margin-bottom: 12px;
}
.resa-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.resa-slot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.resa-slot:hover:not([disabled]) { border-color: var(--terracotta); background: var(--white); }
.resa-slot[disabled] { opacity: 0.55; cursor: not-allowed; }
.rs-heure { font-family: var(--font-title); font-size: 20px; color: var(--terracotta); }
.rs-atelier { font-size: 14px; font-weight: 500; color: var(--ink); }
.rs-places { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.rs-complet { color: var(--terracotta); font-weight: 500; }

.resa-form-wrap { max-width: 560px; margin: 0 auto; }
.resa-retour {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  cursor: pointer;
  padding: 0 0 18px;
}
.resa-retour:hover { text-decoration: underline; }

.resa-recap {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 18px 24px;
  margin-bottom: 24px;
}
.resa-recap-atelier { font-family: var(--font-title); font-size: 21px; }
.resa-recap-date { color: var(--grey); margin-top: 4px; }

.resa-erreur {
  background: #fbe9e6;
  border-left: 3px solid var(--terracotta);
  color: var(--terracotta-dark);
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 15px;
}

#resaForm { display: grid; gap: 16px; }
#resaForm label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}
#resaForm input,
#resaForm textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 22, 22, 0.25);
  background: var(--white);
  color: var(--ink);
}
#resaForm input:focus,
#resaForm textarea:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; border-color: transparent; }
#resaForm textarea { resize: vertical; }
.resa-envoyer { border: none; cursor: pointer; font-family: var(--font-body); margin-top: 6px; }
.resa-envoyer[disabled] { opacity: 0.6; cursor: wait; }
.resa-mentions { font-size: 12.5px; color: var(--grey); text-align: center; }

.resa-confirmation {
  text-align: center;
  background: var(--cream);
  padding: 54px 36px;
  max-width: 620px;
  margin: 0 auto;
}
.resa-conf-titre { font-family: var(--font-title); font-size: 28px; margin-bottom: 16px; }
.resa-conf-detail { font-size: 18px; margin-bottom: 14px; }
.resa-conf-ref { color: var(--terracotta); margin-bottom: 16px; letter-spacing: 0.04em; }
.resa-conf-note { color: var(--grey); font-size: 14.5px; max-width: 440px; margin: 0 auto 26px; }

.contact-fallback { text-align: center; margin-top: 44px; }
.contact-fallback p { margin-bottom: 18px; color: var(--grey); }

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

.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { font-family: var(--font-title); font-size: 24px; margin-bottom: 12px; }
.footer-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 14px;
}
.site-footer p { color: rgba(243, 239, 230, 0.75); font-size: 15px; }
.site-footer a {
  display: block;
  overflow-wrap: anywhere;
  color: rgba(243, 239, 230, 0.75);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--sand); }

.footer-bottom {
  border-top: 1px solid rgba(243, 239, 230, 0.15);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(243, 239, 230, 0.5); }

/* ---------- Apparition douce ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Adaptation mobile ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cards-2 { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  }
  .main-nav.open { display: flex; }
  .section { padding: 64px 0; }
  .hero { min-height: 66vh; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .resa-slots { grid-template-columns: 1fr 1fr; }
  .resa-ateliers { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gallery-4 { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
  .resa-slots { grid-template-columns: 1fr; }
}
