/* ============================================================
   ATELIERS MOSER — Feuille de style principale
   ============================================================ */


/* --- Variables -------------------------------------------- */
:root {
  /* Couleurs */
  --c-bg:           #faf8f5;       /* Fond général, blanc chaud */
  --c-surface:      #ffffff;       /* Cartes, header, nav */
  --c-text:         #2c2520;       /* Texte principal */
  --c-text-light:   #7a6e65;       /* Texte secondaire, nav */
  --c-accent:       #9b7e65;       /* Brun chaud, couleur signature */
  --c-accent-pale:  #ece3d8;       /* Fond doux, séparateurs */
  --c-border:       #e4ddd5;       /* Bordures subtiles */

  /* Typographie */
  --f-serif:  'Playfair Display', Georgia, serif;
  --f-sans:   'Raleway', system-ui, sans-serif;

  /* Mise en page */
  --max-w:    960px;
  --px:       1.5rem;              /* Padding horizontal standard */
}


/* --- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}
ul { list-style: none; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


/* --- Base -------------------------------------------------- */
body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
}


/* --- Conteneur centré ------------------------------------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ============================================================
   EN-TÊTE DU SITE
   ============================================================ */
.site-header {
  background-color: var(--c-surface);
  text-align: center;
  padding: 2.75rem var(--px) 2.25rem;
  border-bottom: 1px solid var(--c-border);
}

.site-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-text);
}

.site-tagline {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
}


/* ============================================================
   NAVIGATION HORIZONTALE
   ============================================================ */

/* Le Web Component est transparent dans le layout */
site-nav {
  display: contents;
}

.site-nav {
  background-color: var(--c-surface);
  border-bottom: 2px solid var(--c-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(44, 37, 32, 0.06);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Élément de la nav ------------------------------------ */
.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-light);
  padding: 0.9rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  user-select: none;
}

/* Flèche indicatrice de sous-menu */
.nav-arrow {
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 0.15em;
}

/* Soulignement animé au survol */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background-color: var(--c-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Sous-menu (dropdown) --------------------------------- */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-accent);
  min-width: 185px;
  box-shadow: 0 6px 18px rgba(44, 37, 32, 0.1);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 1.1rem;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-light);
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: var(--c-accent);
  background-color: var(--c-accent-pale);
}


/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.site-main {
  min-height: 60vh;
  padding: 3.5rem 0 5rem;
}


/* --- En-tête de page -------------------------------------- */
.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 0.85rem;
}

/* Trait décoratif sous le titre de page */
.page-title-line {
  width: 2.75rem;
  height: 2px;
  background-color: var(--c-accent);
}


/* --- Corps de texte --------------------------------------- */
.page-body p {
  margin-bottom: 1.25rem;
  font-weight: 300;
  color: var(--c-text);
}

.page-body h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--c-text);
  margin: 2rem 0 0.75rem;
}

.page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-body li {
  margin-bottom: 0.4rem;
  font-weight: 300;
}


/* --- Mise en page texte + image côte à côte --------------- */
/* Utilisé sur : Présentation, Art-thérapie, Massages, etc.  */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.content-with-image .page-body {
  min-width: 0;
}

@media (max-width: 640px) {
  .content-with-image {
    grid-template-columns: 1fr;
  }
  .content-with-image .content-image {
    order: -1;
  }
}

.content-image img {
  width: 100%;
  display: block;
}

.content-image-caption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--c-text-light);
  text-align: center;
}

/* Ligne d'intro mise en avant (ex: "Exposition sur rdv") */
.page-intro {
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 1.75rem;
  font-weight: 400;
}


/* --- Grille expo permanente (4 tableaux) ------------------ */
.expo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.expo-item {
  margin: 0;
}

.expo-item img {
  width: 100%;
  display: block;
}

.expo-item figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-text-light);
}

/* --- Texte centré (peinture inspirée, etc.) --------------- */
.page-centered {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

/* --- Galerie dense (cours de peinture, 100+ thumbs) ------- */
.gallery-dense {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.gallery-dense img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.site-main img {
  cursor: zoom-in;
}

.gallery-dense img:hover {
  opacity: 0.85;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

#lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}

#lightbox-close:hover {
  color: #fff;
}

#lightbox-hint {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}


/* --- Galerie d'accueil (page Bienvenue) ------------------- */
.welcome-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.welcome-photo {
  margin: 0;
}

.welcome-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.welcome-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--c-text-light);
  text-align: center;
  letter-spacing: 0.04em;
}


/* --- Bloc image placeholder ------------------------------- */
.img-placeholder {
  background-color: var(--c-accent-pale);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* --- Galerie de photos ------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--c-accent-pale);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


/* --- Citation / mise en valeur ---------------------------- */
.quote {
  border-left: 3px solid var(--c-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-text-light);
  background-color: var(--c-accent-pale);
}


/* --- Tarifs -------------------------------------------- */
.tarif-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.tarif-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
  font-weight: 300;
}

.tarif-item strong {
  font-weight: 500;
}

.tarif-price {
  font-family: var(--f-serif);
  font-size: 1rem;
  color: var(--c-accent);
  white-space: nowrap;
  margin-left: 1rem;
}


/* --- Carte Google Maps ------------------------------------ */
.map-embed {
  margin-top: 2rem;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 1px solid var(--c-border);
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --- Formulaire de contact -------------------------------- */
.contact-form {
  max-width: 560px;
  margin-top: 2rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-accent);
}

.form-field textarea {
  height: 160px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--c-accent);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-submit:hover {
  background-color: var(--c-text);
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--c-text-light);
  font-style: italic;
}


/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
  background-color: var(--c-text);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 2rem var(--px);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}
