:root {
  --text: #111;
  --muted: #666;
  --border: #e9e9e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-content {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-nav {
  display: flex;
  gap: 42px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.active {
  border-bottom-color: var(--text);
}

/* HERO */

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 72px - 120px);
}

.hero-text h1 {
  margin: 0;
  font-weight: 800;
  font-size: 48px;        /* plus petit */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-text {
  margin-top: clamp(-56px, -4vw, -28px);
  width: fit-content;
}

.roles-line {
  margin: 18px 0 0;
  display: block;
  text-align: left;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.role-item {
  font-size: 17px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 400;
}

.hero-quote {
  margin: 38px 0 0;       /* “plus bas” sous Peintures */
  max-width: 42ch;        /* largeur élégante type éditorial */
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;      /* surtout pas l'espacement “nav” */
  text-transform: none;   /* surtout pas en capitales */
  color: var(--muted);
  font-weight: 400;       /* non gras */
}

.hero-button {
  display: inline-block;
  margin-top: 32px;

  padding: 12px 26px;

  border: 1px solid var(--text);
  background: transparent;

  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  transition: all 0.35s ease;
}

.hero-button:hover {
  background: var(--text);
  color: #fff;
}

/* PHOTO */

.hero-photo {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-inner {
  width: min(520px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: center;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .container {
    width: min(1200px, calc(100% - 44px));
  }

  .hero {
    padding: 34px 0 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .hero-text h1 {
    font-size: 44px;
  }
}
/* ============================= */
/* PAGE A PROPOS */
/* ============================= */

.apropos-section {
  padding: 120px 0;
}

.apropos-container {
  max-width: 760px;
}

.apropos-title {
  font-size: 30px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.apropos-text {
  margin-top: 48px;
  line-height: 1.85;
  font-size: 17px;
  color: var(--muted);
  text-align: justify;
}

.apropos-text p {
  margin-bottom: 26px;
}

/* optionnel mais recommandé pour une justification élégante */
.apropos-text {
  hyphens: auto;
}

/* ============================= */
/* PAGE CONTACT — VERSION REFINED */
/* ============================= */

.contact-section-refined {
  padding: 140px 0;
}

.contact-grid-refined {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.contact-text-refined h1 {
  margin: 0;
  font-weight: 800;        /* comme la home */
  font-size: 40px;         /* un peu plus petit */
  letter-spacing: 0.12em;  /* identique à l’index */
  text-transform: uppercase;
  line-height: 1.1;
}

.contact-email-refined {
  margin: 36px 0 0;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.contact-email-refined a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
}

.contact-email-refined a:hover {
  border-bottom-color: var(--text);
}

.contact-note-refined {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* PHOTO CERCLE */

.contact-photo-refined {
  display: flex;
  justify-content: center;
}

.contact-photo-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-image: url('SylvieContact.JPG');
  background-size: cover;
  background-position: center 30%; 
  /* 30% recentre vers le haut du corps + peinture */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Responsive */

@media (max-width: 900px) {
  .contact-grid-refined {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-text-refined h1 {
    font-size: 30px;
  }

  .contact-photo-circle {
    width: 260px;
    height: 260px;
  }
}

/* ============================= */
/* PAGE GALERIE */
/* ============================= */

.galerie-section {
  padding: 120px 0;
}

.galerie-title {
  font-size: 30px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.galerie-card {
  position: relative;
  aspect-ratio: 4/5;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.galerie-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.galerie-card:hover .galerie-thumb {
  transform: scale(1.05);
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(180,180,180,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.galerie-overlay span {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.25);
  padding: 10px 16px;
  border-radius: 999px;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.lb-close {
  top: -20px;
  right: -20px;
}

.lb-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-counter {
  text-align: center;
  margin-top: 15px;
  color: white;
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }

  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }
}
/* ============================= */
/* LIGHTBOX — LÉGENDES */
/* ============================= */

.lightbox-content{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* on laisse de la place à la légende */
.lightbox-content img{
  max-height: 72vh;   /* au lieu de 85vh */
}

.lightbox-caption{
  margin-top: 18px;
  text-align: center;
  color: #fff;
}

.caption-title{
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.caption-meta{
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ============================= */
/* SECTION "A MUSÉE VOUS" */
/* ============================= */

.musee-section{
  /* Remonter un peu la section */
  padding: 0 0 120px;
  margin-top: -40px; /* ajuste si besoin: -20 / -30 / -50 */
}

/* Titre encadré par Cadre.webp + fond blanc */
.musee-title-frame{
  width: fit-content;

  /* moins d’air au-dessus */
  margin: 0 0 60px;

  background-image: url("Cadre.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  padding: 42px 56px;

  /* Aligner “A musée vous” sur le “Galerie” :
     on décale le cadre vers la gauche (même logique que tes autres titres) */
  transform: translateX(-56px); /* = la moitié de ton padding horizontal */
}

.musee-title-inner{
  background: #fff;
  padding: 22px 26px;
}

.musee-title{
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.musee-intro{
  margin: 10px 0 60px;

  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  white-space: nowrap;   /* empêche le retour à la ligne */

  color: var(--muted);
}

/* Liste verticale : plus de translateX global,
   comme ça on respecte les mêmes marges que la grille du dessus */
.musee-list{
  display: grid;
  gap: 56px;
  width: 100%;
}

/* Image uniforme */
.musee-img{
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  background: #f3f3f3;

  min-width: 0; /* IMPORTANT */
}
.musee-img img{
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Texte “cartel” */
.musee-text{
  padding-top: 8px;
    min-width: 0; /* IMPORTANT : empêche le texte de passer sous l'image */
}

.musee-text-title{
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}

.musee-text-meta{
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================= */
/* MISE EN PAGE MUSEE — UNE SEULE GRILLE (FIABLE) */
/* ============================= */

.musee-item{
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(280px, 1fr);
  gap: 56px;
  align-items: start;

  /* on force qui va où */
  grid-template-areas: "img text";
}

.musee-img{ grid-area: img; }
.musee-text{ grid-area: text; }

/* Pairs : image à droite,gauche (SANS tomber dessous) */
.musee-item:nth-child(even){
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
  grid-template-areas: "text img";
}

/* Responsive */
@media (max-width: 1100px){
  .musee-item{
    grid-template-columns: 460px 1fr;
    gap: 42px;
  }

  .musee-item:nth-child(even){
    grid-template-columns: 1fr 460px;
  }

  .musee-img img{
    height: 320px;
  }
}

@media (max-width: 900px){
  .musee-title-frame{
    transform: none;
    padding: 34px 40px;
    margin-bottom: 40px;
  }

  .musee-title{
    font-size: 24px;
  }

  .musee-item,
  .musee-item:nth-child(even){
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .musee-item:nth-child(even) .musee-img,
  .musee-item:nth-child(even) .musee-text{
    grid-column: auto;
    text-align: left;
    justify-self: start;
  }

  .musee-img img{
    height: 300px;
  }
}

/* ============================= */
/* FIX MOBILE — "A MUSÉE VOUS" */
/* ============================= */
@media (max-width: 600px){
  /* une seule colonne + ordre garanti : image puis texte */
  .musee-item,
  .musee-item:nth-child(even){
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "text";
    gap: 14px;
  }

  /* image au-dessus, légende en dessous */
  .musee-img{ grid-area: img; }
  .musee-text{ grid-area: text; }

  /* rendu image plus propre sur téléphone */
  .musee-img img{
    height: auto;          /* au lieu d'une hauteur fixe */
    max-height: none;
    object-fit: cover;     /* garde ton style; si tu veux zéro recadrage -> mets 'contain' */
  }
}