/* EK Création — charte reprise de l'affiche : brun caramel, brun chocolat, ivoire nacré. */

:root {
  --ivoire: #faf6f1;
  --nacre: #f2e9df;
  --sable: #e4d3c3;
  --caramel: #b08566; /* décoratif uniquement (contraste insuffisant pour du petit texte) */
  --caramel-fonce: #8a5e43; /* boutons, liens : contraste ≥ 5:1 sur ivoire et avec texte blanc */
  --chocolat: #4a2f22;
  --texte: #3a2a22;
  --texte-doux: #6b574b;
  --blanc: #fff;

  --serif: 'Cormorant Garamond', 'Bodoni MT', Didot, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --rayon: 14px;
  --ombre: 0 10px 30px rgb(74 47 34 / 0.1);
  --largeur: 1160px;
  --barre-mobile: 68px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--ivoire);
  padding-bottom: var(--barre-mobile);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

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

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

a:hover {
  color: var(--chocolat);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--chocolat);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--chocolat);
  color: var(--blanc);
  padding: 0.75rem 1rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Logo texte ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--chocolat);
  line-height: 1;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-ek {
  font-family: var(--serif);
  font-size: 2.3rem;
  letter-spacing: 0.02em;
}

.brand-creation {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--caramel-fonce);
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--texte-doux);
  margin-top: 0.2rem;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 246 241 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--sable);
  background: var(--blanc);
  color: var(--chocolat);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--ivoire);
  border-bottom: 1px solid var(--sable);
  padding: 0.5rem 1.25rem 1.5rem;
  box-shadow: var(--ombre);
}

.nav.is-open {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.nav li a {
  display: block;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: var(--texte);
  border-bottom: 1px solid var(--nacre);
  font-size: 1.1rem;
}

.nav a[aria-current='page'] {
  color: var(--caramel-fonce);
  font-weight: 600;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav ul {
    display: flex;
    gap: 1.6rem;
    margin: 0;
  }
  .nav li a {
    border: 0;
    padding: 0.4rem 0;
    font-size: 0.98rem;
    position: relative;
  }
  .nav li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--caramel);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .nav li a:hover::after,
  .nav li a[aria-current='page']::after {
    transform: scaleX(1);
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--caramel-fonce);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--chocolat);
  color: var(--blanc);
}

.btn-ghost {
  border-color: var(--caramel-fonce);
  color: var(--caramel-fonce);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--caramel-fonce);
  color: var(--blanc);
}

.btn-light {
  background: var(--ivoire);
  color: var(--chocolat);
}

.btn-light:hover {
  background: var(--blanc);
  color: var(--chocolat);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--nacre);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-fonce);
  margin-bottom: 0.8rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--texte-doux);
}

.lead {
  font-size: 1.2rem;
  color: var(--texte-doux);
}

/* ---------- Accueil : héros ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse at 85% 10%, rgb(176 133 102 / 0.18), transparent 55%),
    linear-gradient(180deg, var(--ivoire), var(--nacre));
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--caramel-fonce);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.hero-collage .tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.hero-collage .short {
  aspect-ratio: 4 / 5;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Cartes services ---------- */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.service-card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
}

.service-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--caramel);
  margin-bottom: 0.6rem;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--texte-doux);
  font-size: 0.98rem;
  flex: 1;
}

.service-card a {
  font-weight: 600;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* ---------- Bande galerie ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon);
}

@media (min-width: 760px) {
  .strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Horaires ---------- */
.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--sable);
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--nacre);
  font-weight: 400;
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours td {
  text-align: right;
  color: var(--texte-doux);
}

.hours .is-today th,
.hours .is-today td {
  background: var(--nacre);
  font-weight: 600;
  color: var(--chocolat);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.info-list .ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--caramel-fonce);
  color: var(--blanc);
  display: grid;
  place-items: center;
}

.info-list .ic svg {
  width: 18px;
  height: 18px;
}

.info-list strong {
  display: block;
  color: var(--chocolat);
}

/* ---------- Bandeau TikTok / appel à l'action ---------- */
.cta-band {
  background: var(--caramel-fonce);
  color: var(--blanc);
  border-radius: calc(var(--rayon) * 1.5);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  color: var(--blanc);
}

.cta-band p {
  color: rgb(255 255 255 / 0.88);
  margin: 0;
}

@media (min-width: 860px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
  }
}

/* ---------- Pages internes ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, var(--ivoire), var(--nacre));
  border-bottom: 1px solid var(--sable);
}

.page-hero p {
  max-width: 640px;
}

.fiche {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--sable);
}

.fiche:last-child {
  border-bottom: 0;
}

.fiche img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon);
}

.fiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.fiche-meta li {
  background: var(--nacre);
  border: 1px solid var(--sable);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.9rem;
  color: var(--chocolat);
}

@media (min-width: 820px) {
  .fiche {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
  }
  .fiche.sans-photo {
    grid-template-columns: 1fr;
  }
}

.note {
  background: var(--nacre);
  border-left: 4px solid var(--caramel);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  color: var(--texte-doux);
}

/* ---------- Galerie ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter {
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--sable);
  background: var(--blanc);
  color: var(--texte);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}

.filter[aria-pressed='true'] {
  background: var(--caramel-fonce);
  border-color: var(--caramel-fonce);
  color: var(--blanc);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--sable);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item button:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgb(250 246 241 / 0.92);
  color: var(--chocolat);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
}

.gallery-item.is-video figcaption {
  top: 0.6rem;
  bottom: auto;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 720px);
  max-height: 92vh;
}

.lightbox::backdrop {
  background: rgb(30 20 15 / 0.85);
}

.lightbox img {
  max-height: 84vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--rayon);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--blanc);
  padding: 0.6rem 0.2rem 0;
}

.lightbox-close {
  font: inherit;
  background: var(--ivoire);
  color: var(--chocolat);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- Formulaire ---------- */
.form {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: calc(var(--rayon) * 1.25);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  color: var(--chocolat);
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.field .hint {
  font-weight: 400;
  color: var(--texte-doux);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--ivoire);
  border: 1.5px solid var(--sable);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--caramel-fonce);
  box-shadow: 0 0 0 3px rgb(138 94 67 / 0.2);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  color: var(--texte);
  border: 1.5px solid var(--sable);
  background: var(--ivoire);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
  margin: 0;
}

.choices input {
  accent-color: var(--caramel-fonce);
  width: auto;
  min-height: 0;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.consent input {
  margin-top: 0.3rem;
  width: 20px;
  height: 20px;
  accent-color: var(--caramel-fonce);
  flex: none;
}

.form-error {
  color: #a3261b;
  font-weight: 600;
  margin: 0;
}

.result {
  background: var(--nacre);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.5rem;
}

.result[hidden] {
  display: none;
}

.result pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.95rem;
  background: var(--blanc);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--sable);
}

/* ---------- Texte long (pages légales, à propos) ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--chocolat);
  color: rgb(255 255 255 / 0.82);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--blanc);
}

.site-footer .brand {
  color: var(--blanc);
}

.site-footer .brand-creation {
  color: var(--sable);
}

.site-footer .brand-tagline {
  color: rgb(255 255 255 / 0.75);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--blanc);
  margin: 0 0 0.8rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ---------- Barre d'action mobile ---------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(250 246 241 / 0.97);
  border-top: 1px solid var(--sable);
  box-shadow: 0 -6px 20px rgb(74 47 34 / 0.08);
}

.mobile-bar .btn {
  min-height: 48px;
  padding: 0.6rem 1rem;
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}
