/* La page réutilise la palette, le menu et les boutons de la Home. Les styles ci-dessous concernent
   uniquement la maquette Services. */
.services-page {
  background: #050504;
}

.services-page main {
  font-family: Georgia, 'Times New Roman', serif;
}

/* Même bannière que Contact, extraite puis compressée indépendamment de la maquette. */
.services-hero {
  display: flex;
  align-items: center;
  min-height: 37.6vw;
  background: url('../images/optimized/hero-contact.webp') right center / cover no-repeat;
}

/* Cache le texte imprimé sur la maquette sous notre véritable texte HTML. */
.services-hero::before {
  background: linear-gradient(90deg, #080807 0%, #080807 49%, transparent 63%);
}

/* Colonne de présentation à gauche de la photographie. */
.services-intro {
  width: 51%;
  padding: 4vw;
}

.service-rule {
  display: block;
  width: 3vw;
  height: 1px;
  background: var(--gold);
  margin: .9vw auto;
}

.services-intro > .service-rule {
  width: 6.2vw;
  margin: 1.2vw auto;
}

.services-intro h1 {
  font-size: 4.4vw;
  margin: 0 0 1.5vw;
  line-height: 1.1;
  text-wrap: balance;
}

.services-subtitle {
  gap: 1.5vw;
  letter-spacing: .4vw;
}

.services-subtitle::before, .services-subtitle::after {
  width: 8.5vw;
}

.services-description {
  font-size: 1.2vw;
  line-height: 1.85;
  margin: 1.6vw 0 0;
}

/* Cinq colonnes identiques; les deux dernières prestations en occupent deux. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.1vw 1.5vw;
  padding: 1.5vw 1.95vw 4vw;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #36342e;
  overflow: hidden;
  text-align: center;
  background: #030303;
}

.service-card-copy {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  justify-items: center;
  padding: .7vw .5vw;
}

.service-card h2 {
  font-size: 1.5vw;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 .5vw;
}

.service-card p {
  font-size: 1.14vw;
  margin: 0;
  line-height: 1.5;
}

.service-card .service-price {
  color: var(--gold);
  font-size: 1.6vw;
  margin-bottom: .45vw;
}

.service-card .button {
  min-height: 2.2vw;
  padding: .25vw 1.9vw;
  font: .9vw Arial, sans-serif;
  letter-spacing: .14vw;
  gap: .8vw;
  align-self: end;
}

.service-card .button span {
  font-size: 1.35vw;
}

/* Photos extraites et chargées progressivement : aucun fond de page complet. */
.service-photo {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 186 / 102;
}

/* Grandes cartes : texte à gauche et image à droite avec une transition sombre. */
.service-card-wide {
  grid-column: span 2;
  position: relative;
  min-height: 14vw;
  text-align: left;
  isolation: isolate;
}

.service-card-wide .service-photo {
  position: absolute;
  inset: 0 0 0 48%;
  aspect-ratio: auto;
  width: 52%;
  height: 100%;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.service-card-wide .service-card-copy {
  justify-items: start;
  width: 57%;
  padding: 1.4vw 1.9vw;
}

.service-card-wide h2 {
  color: var(--gold);
  white-space: nowrap;
}

.service-card-wide .service-rule {
  margin: .9vw 0 .9vw 6.5vw;
}

.service-card-wide .service-price {
  justify-self: center;
  text-align: center;
}

/* Signature verticale, purement décorative, dans la dernière colonne. */
.services-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1vw;
}

.services-signature > span {
  width: 1px;
  height: 3.5vw;
  background: var(--gold);
}

.services-signature p {
  font: .9vw/1.7 Arial, sans-serif;
  letter-spacing: .3vw;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.services-signature b {
  font-size: 2.4vw;
  color: var(--gold);
  font-weight: 400;
}

/* Bande des tarifs : remplissages, suppléments et prise de rendez-vous. */
.price-details {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.05fr;
  gap: 2.3vw;
  padding: 2.6vw 3.3vw;
  border-block: 1px solid var(--line);
}

.price-details h2 {
  font-size: 1.55vw;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 1.2vw;
  display: flex;
  align-items: center;
  gap: 1vw;
}

.price-details h2::after {
  content: '';
  width: 4.2vw;
  height: 1px;
  background: var(--gold);
}

.refills-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.6vw;
}

.price-list {
  margin: 0;
  font-size: 1.2vw;
  line-height: 1.8;
}

.price-list > div {
  display: flex;
  align-items: baseline;
  gap: .6vw;
}

.price-list dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: .6vw;
  white-space: nowrap;
}

.price-list dt::after {
  content: '';
  flex: 1;
  border-bottom: 1px dotted #746d5f;
}

.price-list dd {
  margin: 0;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 1.05vw;
}

.refill-note {
  border-left: 1px solid var(--line);
  padding: 2vw 0 0 1.8vw;
  font-size: 1.3vw;
  line-height: 1.55;
  margin: 0;
}

.services-booking {
  border-left: 1px solid var(--line);
  padding-left: 2.7vw;
}

.services-booking .button {
  min-width: 0;
  width: 100%;
  min-height: 3.9vw;
  padding: .8vw;
  font-size: .95vw;
  letter-spacing: .08vw;
  font-weight: 400;
}

.booking-notes {
  display: grid;
  grid-template-columns: .7fr 1fr 1.2fr;
  margin-top: 2.7vw;
}

.booking-notes > * {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .9vw;
  text-align: center;
  font: .85vw/1.7 Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.booking-notes > * + * {
  border-left: 1px solid var(--line);
}

.booking-notes svg {
  width: 2.4vw;
  height: 2.8vw;
}

/* Conseils d’entretien : quatre icônes dans des cercles dorés. */
.lash-care {
  padding: 3.6vw 3.3vw 5.4vw;
  text-align: center;
  background: radial-gradient(ellipse at bottom, #15100b 0%, #050504 70%);
}

.lash-care > h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5vw;
  font-size: 3.6vw;
  color: var(--gold);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 .6vw;
}

.lash-care > h2::before, .lash-care > h2::after {
  content: '';
  width: 8.2vw;
  height: 1px;
  background: var(--gold);
}

.lash-care .eyebrow {
  color: var(--gold);
  font-family: Arial, sans-serif;
  letter-spacing: .3vw;
}

.care-intro {
  font-size: 1.5vw;
  margin: 1.2vw 0 2.5vw;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.care-grid article {
  padding: 0 1.4vw;
}

.care-grid article + article {
  border-left: 1px solid var(--line);
}

.care-icon {
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 7vw;
  height: 7vw;
  padding: 1vw;
  margin: 0 auto 1.2vw;
}

.care-icon svg {
  width: 100%;
  height: 100%;
}

.care-grid h3 {
  color: var(--gold);
  font-size: 1.5vw;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 1vw;
}

.care-grid p {
  font-size: 1.5vw;
  line-height: 1.4;
  margin: 0;
}

/* Numéro de page et barre à moitié remplie : Services = page deux sur quatre. */
.services-page-indicator {
  --progress: 50%;
  gap: 1.5vw;
  padding: 3.5vw 3.3vw;
  font-size: 1.2vw;
}

.services-page-indicator .page-progress {
  width: 7.3vw;
}

.services-page-indicator p {
  margin: 0 auto;
  font: .9vw Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .25vw;
  color: #eee;
}

.marker-brand {
  font-size: 1.8vw;
}

.marker-brand small {
  font: 1vw Arial, sans-serif;
  letter-spacing: .15vw;
}

/* Tablettes : cartes sur trois colonnes et tarifs empilés plus confortablement. */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
  }

  .service-card-wide {
    grid-column: auto;
    min-height: 0;
    text-align: center;
  }

  .service-card-wide .service-photo {
    position: relative;
    inset: auto;
    aspect-ratio: 186 / 102;
    width: 100%;
    height: auto;
    z-index: auto;
    mask-image: none;
  }

  .service-card-wide .service-card-copy {
    width: 100%;
    justify-items: center;
  }

  .service-card h2 {
    font-size: 16px;
    white-space: normal;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card .service-price {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .service-card-copy,
  .service-card-wide .service-card-copy {
    padding: 12px 8px;
  }

  .service-card .service-rule {
    width: 30px;
    margin: 10px auto;
  }

  .service-card .button {
    font-size: 11px;
    padding: 10px 8px;
    min-height: 48px;
    gap: 6px;
    letter-spacing: .3px;
  }

  .service-card .button span {
    font-size: 16px;
  }

  .services-signature {
    display: none;
  }

  .price-details {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px 20px;
  }

  .refills {
    grid-column: 1 / -1;
  }

  .price-details h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .price-list, .refill-note {
    font-size: 14px;
  }

  .price-list dd {
    font-size: 12px;
  }

  .services-booking .button {
    font-size: 12px;
    min-height: 48px;
  }

  .booking-notes > * {
    font-size: 11px;
    white-space: normal;
    padding: 6px;
    min-width: 0;
    min-height: 44px;
  }

  .booking-notes svg {
    width: 24px;
    height: 28px;
  }
}

/* Bannière mobile : même seuil et même voile sombre que sur Contact.
   Le cadrage proportionnel conserve uniquement la photo derrière le texte. */
@media (max-width: 900px) {
  .services-hero {
    min-height: 420px;
    background-image: url('../images/optimized/hero-contact-mobile.webp');
  }

  .services-hero::before {
    background: linear-gradient(90deg, rgba(8, 8, 7, .97), rgba(8, 8, 7, .76));
  }

  .services-intro {
    width: 100%;
    max-width: 520px;
    margin: auto;
    padding: 42px 24px;
  }

  .services-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .services-intro > .service-rule {
    width: 55px;
    margin: 14px auto;
  }

  .services-intro h1 {
    font-size: clamp(30px, 8vw, 46px);
    margin-bottom: 20px;
  }

  .services-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .services-description {
    font-size: 15px;
    margin-top: 20px;
  }

  .services-description br {
    display: none;
  }
}

/* Téléphones : deux cartes de prestation par ligne. */
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 14px 30px;
  }

  .service-card h2 {
    font-size: 14px;
  }

  .service-card p {
    font-size: 13px;
  }

  .service-card:last-of-type {
    grid-column: 1 / -1;
    max-width: 280px;
    width: 100%;
    justify-self: center;
  }

  .price-details {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .refills-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .refill-note {
    padding: 5px 0 5px 14px;
  }

  .price-details h2::after {
    width: 45px;
  }

  .services-booking {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }

  .booking-notes {
    margin-top: 24px;
  }

  .booking-notes > * {
    gap: 10px;
  }

  .lash-care {
    padding: 35px 18px;
  }

  .lash-care > h2 {
    font-size: 30px;
    gap: 15px;
  }

  .lash-care .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    line-height: 1.7;
    margin-top: 12px;
  }

  .care-intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0 28px;
  }

  .care-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 0;
  }

  .care-grid article {
    padding: 0 10px;
  }

  .care-grid article:nth-child(3) {
    border-left: 0;
  }

  .care-icon {
    width: 60px;
    height: 60px;
    padding: 10px;
    margin-bottom: 15px;
  }

  .care-grid h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .care-grid p {
    font-size: 13px;
  }

  .services-page-indicator {
    padding: 24px 20px;
    gap: 12px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-page-indicator .page-progress {
    width: 65px;
  }

  .services-page-indicator p {
    font-size: 8px;
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
  }

  .marker-brand {
    display: none;
  }

  .price-details h2 {
    justify-content: center;
  }

  .price-list > div {
    justify-content: center;
  }
}

/* Évite les libellés comprimés sur les téléphones les plus étroits. */
@media (max-width: 380px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 20px;
  }

  .service-card:last-of-type {
    max-width: none;
  }

  .service-card .button {
    padding-inline: 20px;
  }
}

@media (max-width: 900px) {
  .price-list dt {
    white-space: normal;
    min-width: 0;
  }

  .price-list dd {
    flex-shrink: 0;
  }

  .lash-care > h2 {
    font-size: clamp(26px, 4vw, 36px);
  }

  .lash-care .eyebrow, .care-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .care-grid h3 {
    font-size: 14px;
  }

  .care-grid p {
    font-size: 14px;
    line-height: 1.65;
  }

  .care-grid br {
    display: none;
  }
}
