/*
Theme Name: Colore mes ongles
Theme URI: https://coloremesongles.fr
Author: Harmony Création
Author URI: https://harmonyandcreation.fr
Description: Thème vitrine sur-mesure pour l'institut de manucure « Colore mes ongles » (Buissy). Conversion fidèle de la maquette React/Tailwind d'origine : palette onyx et cramoisi, typographie Cormorant Garamond + Inter, galerie de réalisations et avis clientes gérables depuis l'administration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: colore-mes-ongles
Tags: one-page, business, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* =========================================================
   1. Variables
   ========================================================= */
:root {
  --background: #0a0a0a;
  --foreground: #f2f2f2;
  --card: #141414;
  --primary: #b22222;
  --primary-foreground: #f2f2f2;
  --secondary: #e5d3c5;
  --muted: #1a1a1a;
  --muted-foreground: #a1a1a1;
  --border: #262626;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --container: 1280px;
  --gutter: 1.5rem;
  --section-y: 8rem;
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

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

/* =========================================================
   3. Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--sm {
  height: 2.5rem;
  padding-inline: 1.25rem;
  font-size: 0.8125rem;
}

.btn--lg {
  height: 4rem;
  padding-inline: 2.5rem;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: rgba(178, 34, 34, 0.9);
  color: #fff;
}

.btn--outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn--outline {
  border-color: rgba(242, 242, 242, 0.2);
  color: var(--foreground);
}

.btn--outline:hover {
  background: rgba(242, 242, 242, 0.05);
}

.btn--icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-color: var(--border);
  color: rgba(242, 242, 242, 0.5);
}

.btn--icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--link {
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0;
  height: auto;
}

.btn--link:hover .icon-arrow {
  transform: translateX(0.25rem);
}

.icon-arrow {
  transition: transform 0.3s ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(178, 34, 34, 0.3);
  color: var(--primary);
}

.badge--solid {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  padding: 0.5rem 1.5rem;
  letter-spacing: 0.2em;
}

/* =========================================================
   4. Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 38, 38, 0.5);
}

.site-header .container {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
}

.site-brand img {
  max-height: 3rem;
  width: auto;
}

@media (max-width: 639px) {
  .site-brand {
    font-size: 0.9375rem;
    letter-spacing: 0.15em;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-cta {
  display: none;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid rgba(38, 38, 38, 0.5);
  background: rgba(10, 10, 10, 0.96);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a:hover {
  color: var(--primary);
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.4;
  transform: scale(1.05);
  animation: breathe 8s ease-in-out infinite;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(
    to right,
    var(--background) 0%,
    rgba(10, 10, 10, 0.8) 50%,
    rgba(10, 10, 10, 0) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 20;
}

.hero__inner {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: slide-in-left 1s ease-out both;
}

.hero__badge {
  align-self: flex-start;
}

.hero__title {
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--secondary);
}

.hero__lead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--muted-foreground);
  font-weight: 300;
  max-width: 36rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(161, 161, 161, 0.3);
  animation: bounce 1.6s infinite;
  z-index: 20;
}

.hero__scroll svg {
  transform: rotate(90deg);
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

/* =========================================================
   6. Sections génériques
   ========================================================= */
.section {
  padding-block: var(--section-y);
}

.section--tinted {
  background: rgba(20, 20, 20, 0.3);
}

.section--bordered {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-heading__rule {
  width: 5rem;
  height: 1px;
  background: var(--primary);
}

.section-heading p {
  color: var(--muted-foreground);
}

/* =========================================================
   7. Signature
   ========================================================= */
.signature__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.signature__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted);
}

.signature__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 1s ease;
}

.signature__frame:hover img {
  filter: grayscale(0);
}

.signature__frame::after {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(178, 34, 34, 0.2);
  pointer-events: none;
}

.signature__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.signature__body h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.signature__body h2 em {
  color: var(--primary);
  font-style: italic;
}

.signature__text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.feature {
  display: flex;
  gap: 1.5rem;
}

.feature__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--primary);
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.feature:hover .feature__icon {
  border-color: var(--primary);
}

.feature h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .signature__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}

/* =========================================================
   8. Prestations
   ========================================================= */
.services {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.service {
  background: var(--background);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: background-color 0.3s ease;
}

.service:hover {
  background: rgba(26, 26, 26, 0.3);
}

.service h3 {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.service:hover h3 {
  color: var(--primary);
}

.service p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.service ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.service li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service li svg {
  color: var(--primary);
}

.service__price {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   9. Portfolio
   ========================================================= */
.portfolio__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 5rem;
}

.portfolio__head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 28rem;
}

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

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--muted);
}

.gallery__item--tall {
  aspect-ratio: 3 / 4;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.gallery__item:hover img {
  filter: grayscale(0);
  transform: scale(1.1);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .portfolio__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* =========================================================
   10. Avis
   ========================================================= */
.reviews {
  max-width: 56rem;
  margin-inline: auto;
}

.reviews__stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.reviews__list {
  display: grid;
  gap: 3rem;
}

.review {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  line-height: 1.5;
}

.review__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.review__meta span:last-child {
  color: var(--muted-foreground);
}

.review__rule {
  width: 1rem;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   11. Contact
   ========================================================= */
.contact__grid {
  display: grid;
  gap: 4rem;
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact__intro h2 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.contact__intro p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.contact__items {
  display: grid;
  gap: 2rem;
}

.contact__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact__item h4 {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.contact__item p,
.contact__item .hours {
  color: var(--muted-foreground);
}

.contact__item .hours {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact__link {
  display: inline-block;
  padding-top: 0.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__phone {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(178, 34, 34, 0.3);
}

.contact__phone:hover {
  color: var(--primary);
}

.socials {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}

.contact__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--muted);
  overflow: hidden;
}

.contact__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 1s ease;
}

.contact__visual:hover img {
  filter: grayscale(0);
}

.contact__visual::after {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.contact__stamp {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 20;
}

.contact__map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}

/* =========================================================
   12. Pied de page
   ========================================================= */
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid rgba(38, 38, 38, 0.5);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(161, 161, 161, 0.5);
}

.footer-menu a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   13. Pages internes (mentions légales, articles...)
   ========================================================= */
.page-wrap {
  padding-top: 10rem;
  padding-bottom: 6rem;
  min-height: 70vh;
}

.page-content {
  max-width: 48rem;
  margin-inline: auto;
}

.page-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
}

.page-content h2,
.page-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.page-content p,
.page-content li {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content blockquote {
  border-left: 1px solid var(--primary);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  margin: 2rem 0;
}

.post-list {
  display: grid;
  gap: 3rem;
}

/* =========================================================
   14. Animations
   ========================================================= */
@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -25%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   15. Barre d'admin WordPress
   ========================================================= */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
