/*
Theme Name: Mon Theme
Theme URI: https://example.com
Author: Tristan
Description: Theme WordPress moderne pour site vitrine.
Version: 1.9.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mon-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Sora:wght@500;700&display=swap');

:root {
  --bg: #f7f1eb;
  --bg-soft: #f0e2d8;
  --ink: #2f2328;
  --muted: #6a5560;
  --brand: #a4375f;
  --brand-2: #d97745;
  --card: #fffaf6;
  --line: #e7d5c8;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(164, 55, 95, 0.16);
  --logo-desktop-size: 56px;
  --logo-mobile-size: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(164, 55, 95, 0.13), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(217, 119, 69, 0.16), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(248, 246, 239, 0.86);
  border-bottom: 1px solid rgba(216, 210, 195, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand .custom-logo {
  width: auto;
  max-height: var(--logo-desktop-size);
}


.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.hero-bg-shape {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(164, 55, 95, 0.24), rgba(217, 119, 69, 0.24));
  right: -130px;
  top: -140px;
  filter: blur(2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
  position: relative;
}

.kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  margin-bottom: 1rem;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.76rem 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #c24f7a);
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li + li {
  margin-top: 0.5rem;
}

.section {
  padding: 3.4rem 0;
}

.services {
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 100%);
}

.cards {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.gallery {
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.6) 0%, transparent 100%);
}

.gallery-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-link {
  display: block;
}

.gallery-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.gallery-link:hover .gallery-item {
  box-shadow: 0 22px 44px rgba(164, 55, 95, 0.22);
}

.gallery-item h3 {
  margin-bottom: 0.5rem;
}

.gallery-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-visual {
  height: 190px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.gallery-cover {
  margin-bottom: 0.8rem;
}

.gallery-cover img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: block;
}

.visual-1 {
  background: linear-gradient(135deg, #cf9fb2, #f3d4c2);
}

.visual-2 {
  background: linear-gradient(135deg, #be7a91, #e3b39c);
}

.visual-3 {
  background: linear-gradient(135deg, #9f556f, #d08a5f);
}

.visual-4 {
  background: linear-gradient(135deg, #c5889f, #efb78f);
}

.visual-5 {
  background: linear-gradient(135deg, #f0b55a, #f7df9b);
}

.testimonials {
  background: var(--bg-soft);
}

.theme-hero {
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.75) 0%, transparent 100%);
}

.about-hero .wrap {
  max-width: 840px;
}

.about-hero-lead {
  font-size: 1.14rem;
}

.about-story {
  padding-top: 1.2rem;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 1rem;
  align-items: start;
}

.about-prose {
  padding: 1.2rem;
}

.about-prose h2 {
  margin-bottom: 0.8rem;
}

.about-rich-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.03rem;
}

.about-rich-text p {
  margin: 0;
}

.about-rich-text p + p {
  margin-top: 0.85rem;
}

.about-rich-text p:first-child::first-letter {
  float: left;
  font-family: 'Sora', sans-serif;
  font-size: 2.7rem;
  line-height: 0.9;
  padding-right: 0.35rem;
  color: var(--brand);
}

.about-facts {
  padding: 1.2rem;
}

.about-facts h3 {
  margin-bottom: 0.7rem;
}

.theme-detail {
  padding-top: 1rem;
}

.collection-gallery-section {
  padding-top: 0;
}

.collection-content {
  margin-top: 1rem;
}

.collection-content .wp-block-image img,
.collection-content .wp-block-gallery .blocks-gallery-item img,
.collection-content .wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(19, 14, 17, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox-image {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.lightbox-overlay.is-zoomed {
  overflow: auto;
}

.lightbox-image.is-zoomed {
  transform: scale(1.9);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hero-card,
.card,
.gallery-item,
.collection-content .wp-block-image img,
.collection-content .wp-block-gallery .blocks-gallery-item img,
.collection-content .wp-block-gallery .wp-block-image img {
  --float-y: -2px;
  --float-x: 0.8px;
  --float-tilt: 0.35deg;
  animation-name: bubbleFloatA;
  animation-duration: 10.1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: -1.6s;
  will-change: transform;
}

.hero-card {
  animation-name: bubbleFloatC;
  animation-duration: 11.7s;
  animation-delay: -2.8s;
}

.cards .card:nth-child(odd),
.gallery-grid .gallery-link:nth-child(odd) .gallery-item,
.collection-content .wp-block-gallery .blocks-gallery-item:nth-child(odd) img {
  animation-name: bubbleFloatB;
  animation-duration: 12.4s;
  animation-delay: -4.1s;
}

.cards .card:nth-child(3n),
.gallery-grid .gallery-link:nth-child(2n) .gallery-item,
.collection-content .wp-block-gallery .blocks-gallery-item:nth-child(3n) img {
  animation-name: bubbleFloatC;
  animation-duration: 9.3s;
  animation-delay: -6.7s;
}

.hero-card:hover,
.card:hover,
.gallery-link:hover .gallery-item,
.collection-content .wp-block-image:hover img,
.collection-content .wp-block-gallery .blocks-gallery-item:hover img,
.collection-content .wp-block-gallery .wp-block-image:hover img {
  --float-y: -10px;
  --float-x: 3.2px;
  --float-tilt: 1.8deg;
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 30px 56px rgba(164, 55, 95, 0.3);
  filter: saturate(1.06);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial p {
  margin-top: 0;
  color: var(--muted);
}

.testimonial strong {
  display: inline-block;
  margin-top: 0.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 1rem;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-grid p {
  margin: 0;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 0.9rem;
}

.form-alert {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.form-alert.success {
  background: #d9f3e5;
  color: #145f3f;
}

.form-alert.error {
  background: #f9dfdf;
  color: #8f2c2c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.list-check {
  margin: 0;
  padding-left: 1.1rem;
}

.list-check li + li {
  margin-top: 0.6rem;
}

.about-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--brand);
  font-weight: 700;
}

.about-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-policy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  font-weight: 700;
}

.footer-policy-link:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(164, 55, 95, 0.18);
}

@keyframes bubbleFloatA {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(calc(var(--float-x) * -0.5), calc(var(--float-y) * 0.45), 0)
      rotate(calc(var(--float-tilt) * -0.45));
  }
  50% {
    transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-tilt));
  }
  75% {
    transform: translate3d(calc(var(--float-x) * -0.35), calc(var(--float-y) * 0.55), 0)
      rotate(calc(var(--float-tilt) * 0.35));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes bubbleFloatB {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(calc(var(--float-x) * 0.42), calc(var(--float-y) * 0.25), 0)
      rotate(calc(var(--float-tilt) * 0.2));
  }
  55% {
    transform: translate3d(calc(var(--float-x) * -0.9), calc(var(--float-y) * 1.05), 0)
      rotate(calc(var(--float-tilt) * -0.8));
  }
  80% {
    transform: translate3d(calc(var(--float-x) * 0.28), calc(var(--float-y) * 0.5), 0)
      rotate(calc(var(--float-tilt) * 0.28));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes bubbleFloatC {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  30% {
    transform: translate3d(calc(var(--float-x) * -0.2), calc(var(--float-y) * 0.35), 0)
      rotate(calc(var(--float-tilt) * -0.25));
  }
  65% {
    transform: translate3d(calc(var(--float-x) * 1.1), calc(var(--float-y) * 0.95), 0)
      rotate(calc(var(--float-tilt) * 0.7));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .card,
  .gallery-item,
  .collection-content .wp-block-image img,
  .collection-content .wp-block-gallery .blocks-gallery-item img,
  .collection-content .wp-block-gallery .wp-block-image img {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .about-grid,
  .detail-grid,
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 72px;
  }

  .brand .custom-logo {
    max-height: var(--logo-mobile-size);
  }

  .brand {
    font-size: 0.94rem;
  }



  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    padding: 0;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--ink);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(14, 10, 12, 0.45);
  }

  .mobile-side-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    width: min(84vw, 320px);
    height: 100vh;
    background: var(--card);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 28px rgba(47, 35, 40, 0.18);
    padding: 0.9rem;
    display: block;
    transform: translateX(102%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  .mobile-side-menu.is-open {
    transform: translateX(0);
  }

  .mobile-side-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
  }

  .mobile-menu-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
  }

  .mobile-side-nav ul,
  .mobile-side-nav .menu,
  .mobile-side-nav .page-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
  }

  .mobile-side-nav a {
    display: block;
    padding: 0.75rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
  }

  .mobile-menu-open {
    overflow: hidden;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
