/*
Theme Name: Un Moment Pour Soi
Description: Thème sur mesure pour Un Moment Pour Soi, coiffeuse à domicile (Jennifer). Site one-page converti depuis une maquette HTML statique.
Author: Jennifer
Version: 1.1
Text Domain: un-moment-pour-soi
*/

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

  :root {
    --logo-img: url("images/logo.webp");
    --brun:    #A0785A;   /* brun chaud principal */
    --brun-l:  #E8D8C8;  /* brun très clair / fond cartes */
    --brun-d:  #6B4A33;  /* brun foncé hover */
    --gold:    #C9A87C;  /* doré accent */
    --sand:    #EDE0D0;  /* beige sable sections alternées */
    --cream:   #FAF6F1;  /* fond général crème */
    --dark:    #3D2B1F;  /* brun très foncé texte */
    --mid:     #7A6355;  /* brun moyen texte secondaire */
    --light:   #C0AA97;  /* brun clair bordures */
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
    font-size: 16px;
    line-height: 1.7;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5vw;
    background: rgba(250,246,241,0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(160,120,90,0.15);
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem; font-weight: 400; letter-spacing: 0.03em;
    color: var(--dark); text-decoration: none; line-height: 1.2;
  }
  .nav-logo span { color: var(--brun); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--mid); text-decoration: none; transition: color .2s;
  }
  .nav-links a:hover { color: var(--brun); }
  .nav-cta {
    background: var(--brun); color: white !important;
    padding: 0.5rem 1.2rem; border-radius: 2rem;
    transition: background .2s !important;
  }
  .nav-cta:hover { background: var(--brun-d) !important; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    padding: 8rem 5vw 5rem;
    gap: 4rem;
  }
  .hero-text { max-width: 520px; }
  .hero-eyebrow {
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brun); margin-bottom: 1.2rem;
  }
  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 300; line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  .hero-title em { font-style: italic; color: var(--brun); }
  .hero-sub {
    font-size: 1rem; color: var(--mid); line-height: 1.8;
    margin-bottom: 2.4rem; max-width: 380px;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--brun); color: white;
    padding: 0.85rem 2rem; border-radius: 2rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    text-decoration: none; transition: background .2s, transform .15s;
    display: inline-block; border: none; cursor: pointer;
  }
  .btn-primary:hover { background: var(--brun-d); transform: translateY(-1px); }
  .btn-ghost {
    border: 1px solid var(--light); color: var(--dark);
    padding: 0.85rem 2rem; border-radius: 2rem;
    font-size: 0.9rem; text-decoration: none;
    transition: border-color .2s, color .2s;
    display: inline-block;
  }
  .btn-ghost:hover { border-color: var(--brun); color: var(--brun); }

  /* ── HERO VISUAL : logo SVG centré ── */
  .hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
  }
  .hero-logo-wrap {
    width: clamp(220px, 34vw, 420px);
    height: clamp(220px, 34vw, 420px);
    display: block;
    background-image: var(--logo-img);
    background-size: cover;
    background-position: center;
  }
  .hero-badge {
    position: absolute; bottom: 1.5rem; right: -0.5rem;
    background: white; border: 1px solid var(--brun-l);
    border-radius: 1rem; padding: 0.9rem 1.2rem;
    font-size: 0.82rem; color: var(--dark);
    box-shadow: 0 4px 20px rgba(61,43,31,0.1);
  }
  .hero-badge strong { display: block; font-size: 1.1rem; color: var(--gold); }

  /* ── SECTION BASE ── */
  section { padding: 6rem 5vw; }
  .section-label {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--brun); margin-bottom: 0.8rem;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300; line-height: 1.25;
    margin-bottom: 1rem;
  }
  .section-sub { color: var(--mid); max-width: 480px; margin-bottom: 3rem; }

  /* ── ABOUT ── */
  #about { background: var(--sand); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .about-logo-side {
    display: flex; justify-content: center; align-items: center;
  }
  .about-logo-circle {
    width: clamp(220px, 28vw, 320px);
    height: clamp(220px, 28vw, 320px);
    display: block;
    background-image: var(--logo-img);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
  }
  .about-text p { color: var(--mid); margin-bottom: 1rem; }
  .about-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-top: 2rem;
  }
  .stat-box {
    background: white; border-radius: 16px;
    padding: 1.2rem; text-align: center;
  }
  .stat-box .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; font-weight: 300; color: var(--brun);
    display: block;
  }
  .stat-box .lbl { font-size: 0.78rem; color: var(--mid); }

  /* ── SERVICES ── */
  #services { text-align: center; }
  .services-intro { max-width: 560px; margin: 0 auto 3rem; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; text-align: left;
  }
  .service-card {
    background: white; border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid var(--brun-l);
    transition: transform .2s, box-shadow .2s;
  }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61,43,31,0.1);
  }
  .service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; line-height: 1; }
  .service-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem;
  }
  .service-desc { font-size: 0.88rem; color: var(--mid); margin-bottom: 1.2rem; }
  .service-price { font-size: 1.1rem; font-weight: 500; color: var(--brun); }
  .service-price span { font-size: 0.78rem; color: var(--light); font-weight: 400; }

  /* ── PROCESS ── */
  #process { background: var(--dark); color: white; }
  #process .section-title { color: white; }
  #process .section-sub { color: var(--light); }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
  .step { padding: 0 0.5rem; }
  .step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem; font-weight: 300;
    color: var(--gold); line-height: 1; margin-bottom: 1rem;
  }
  .step-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
  .step-desc { font-size: 0.88rem; color: var(--light); line-height: 1.7; }

  /* ── AVIS ── */
  #avis { background: var(--sand); }
  .avis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .avis-card { background: white; border-radius: 20px; padding: 2rem; }
  .avis-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; }
  .avis-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-style: italic;
    color: var(--dark); margin-bottom: 1.5rem; line-height: 1.6;
  }
  .avis-author { font-size: 0.82rem; color: var(--mid); }
  .avis-author strong { display: block; color: var(--dark); font-size: 0.9rem; }

  /* ── CONTACT ── */
  #contact { text-align: center; }
  .contact-inner { max-width: 640px; margin: 0 auto; }
  .contact-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin: 3rem 0;
  }
  .contact-card {
    background: var(--brun-l); border-radius: 16px;
    padding: 1.5rem 1rem; text-align: center;
  }
  .contact-card .ico { font-size: 1.8rem; margin-bottom: 0.6rem; display: block; }
  .contact-card .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid); margin-bottom: 0.3rem; }
  .contact-card a { color: var(--brun-d); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
  .contact-card a:hover { text-decoration: underline; }
  .contact-zone { font-size: 0.88rem; color: var(--mid); margin-top: 1rem; }

  /* ── FOOTER ── */
  footer {
    background: var(--dark); color: var(--light);
    text-align: center; padding: 2.5rem 5vw;
    font-size: 0.82rem;
  }
  footer a { color: var(--gold); text-decoration: none; }

  /* ── TARIFS (section services) ── */
  .tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .tarif-card { background: white; border-radius: 20px; padding: 1.8rem; border: 1px solid var(--brun-l); }
  .tarif-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 600;
    color: var(--brun-d); margin-bottom: 1.2rem;
    padding-bottom: 0.6rem; border-bottom: 1px solid var(--brun-l);
    display: flex; align-items: center; gap: 0.5rem;
  }
  .tarif-line { display: flex; justify-content: space-between; align-items: baseline; padding: 0.35rem 0; font-size: 0.9rem; color: var(--dark); }
  .tarif-line span { color: var(--brun); font-weight: 500; white-space: nowrap; margin-left: 1rem; }
  .tarif-note { font-size: 0.78rem; color: var(--brun); font-style: italic; margin-top: 0.8rem; }
  .tarif-offert { font-size: 0.78rem; color: var(--brun-d); font-weight: 600; background: var(--brun-l); padding: 0.2rem 0.6rem; border-radius: 1rem; margin-left: 0.5rem; }

  /* ── PAGE GALERIE ── */
  .page-hero {
    text-align: center; padding: 9rem 5vw 3rem;
  }
  .page-hero .section-label { justify-content: center; }
  .page-hero .section-sub { margin: 0 auto; }

  .gallery-wrap { padding: 0 5vw 6rem; max-width: 1200px; margin: 0 auto; }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }
  .gallery-grid figure {
    margin: 0; border-radius: 18px; overflow: hidden;
    background: var(--brun-l); cursor: zoom-in;
    aspect-ratio: 1 / 1; position: relative;
  }
  .gallery-grid img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s ease;
  }
  .gallery-grid figure:hover img { transform: scale(1.06); }
  .gallery-empty {
    text-align: center; color: var(--mid); font-size: 0.95rem;
    padding: 3rem 1rem; border: 1px dashed var(--brun-l); border-radius: 16px;
  }

  /* ── Bloc admin : envoi / suppression de photos ── */
  .gallery-admin-box {
    max-width: 700px; margin: 0 auto 3rem; padding: 1.6rem 1.8rem;
    background: var(--cream); border: 1px solid var(--brun-l); border-radius: 16px;
  }
  .gallery-upload-form {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  }
  .gallery-upload-form label {
    width: 100%; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--dark);
  }
  .gallery-upload-form input[type="file"] {
    flex: 1 1 260px; font-size: 0.85rem; color: var(--mid);
  }
  .gallery-message {
    font-size: 0.9rem; margin-bottom: 1rem; padding: 0.6rem 1rem; border-radius: 10px;
  }
  .gallery-message--succes { background: #E5F1E5; color: #33612F; }
  .gallery-message--erreur { background: #F5E3E0; color: #8A3A2B; }

  .gallery-grid figure { position: relative; }
  .gallery-delete {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    background: rgba(61,43,31,0.75); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; text-decoration: none; line-height: 1;
    opacity: 0; transition: opacity .2s ease;
  }
  .gallery-grid figure:hover .gallery-delete { opacity: 1; }

  /* Habillage du bloc Galerie natif de WordPress (Gutenberg), ajouté via l'éditeur */
  .gallery-wrap .wp-block-gallery {
    gap: 1.2rem !important;
  }
  .gallery-wrap .wp-block-gallery figure.wp-block-image,
  .gallery-wrap figure.wp-block-image {
    margin: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in;
  }
  .gallery-wrap .wp-block-image img { transition: transform .35s ease; display: block; }
  .gallery-wrap .wp-block-image:hover img { transform: scale(1.06); }
  .gallery-wrap figcaption {
    color: var(--mid); font-size: 0.82rem; text-align: center; margin-top: 0.4rem;
  }

  /* Lightbox plein écran */
  .umps-lightbox {
    position: fixed; inset: 0; background: rgba(61,43,31,0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 2rem;
  }
  .umps-lightbox.is-open { display: flex; }
  .umps-lightbox img {
    max-width: 90vw; max-height: 85vh; border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.4);
  }
  .umps-lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    color: white; font-size: 2rem; line-height: 1;
    background: none; border: none; cursor: pointer;
  }

  /* ── MOBILE ── */
  @media (max-width: 768px) {
    #hero { grid-template-columns: 1fr; padding-top: 7rem; text-align: center; gap: 2.5rem; }
    .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: flex; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-logo-side { display: none; }
    nav { padding: 1rem 4vw; }
    .nav-links { gap: 0; }
    .nav-links li:not(:last-child) { display: none; }
    .nav-cta { padding: 0.5rem 1rem; font-size: 0.72rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  }
