:root{
  --hero-height: 100vh;
  --site-accent: #c2185b; /* rose foncé principal */
  --site-accent-dark: #a31545;
  --site-accent-light: #f48fb1;
  --card-radius: .5rem;
}

/* -------------------- RESET & BASE -------------------- */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #212529;
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: var(--site-accent);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--site-accent-dark);
  text-decoration: underline;
}

/* -------------------- HERO / PARALLAX -------------------- */
.hero {
  height: var(--hero-height);
  /* background-image removed in favor of an animated pseudo-element for smooth transform-based zoom */
  position: relative;
  color: white;
  overflow: hidden;
}

.site-logo {
  width: 120px;
  height: 120px;
  display: inline-block;
  object-fit: contain; /* show whole image without cropping */
  object-position: center center;
  border-radius: 50%;
  background-color: #fff; /* visible padding area for non-square logos */
  padding: 6px; /* gives space so rounded mask doesn't cut image edges */
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: transform .18s ease;
}

@media (max-width: 576px) {
  .site-logo { width:88px; height:88px; padding:4px; }
}
@media (max-width: 768px){
  .hero { background-attachment: scroll; } /* mobile fallback */
}

/* Overlay légèrement rosé pour lisibilité du texte */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(194, 24, 91, 0.15),
    rgba(59, 10, 46, 0.45)
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2; /* content above overlay and animated background */
}

/* Animated background layer for the hero (smooth infinite zoom) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/VALERIYA.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
  /* subtle slow zoom in/out loop */
  animation: heroZoom 24s ease-in-out infinite;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

/* Reduce motion on smaller screens for performance and layout stability */
@media (max-width: 768px) {
  .hero::before {
    animation-duration: 18s;
    transform-origin: center top;
  }
}

/* -------------------- HERO TEXT ANIMATIONS -------------------- */
.hero-text {
  z-index: 2;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-top: 3rem;
  will-change: opacity, transform;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1 {
  animation: slideUpFade 700ms cubic-bezier(.2,.9,.2,1) 300ms both;
}
.hero-text .lead {
  animation: slideUpFade 700ms cubic-bezier(.2,.9,.2,1) 500ms both;
  opacity: 0; /* start hidden until animation runs */
}
.hero-text .btn {
  animation: slideUpFade 600ms cubic-bezier(.2,.9,.2,1) 800ms both;
  transform-origin: center;
}

/* Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-text h1,
  .hero-text .lead,
  .hero-text .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* removed duplicate site-logo rule — styles consolidated above */

/* Image numéro de téléphone */
.btn-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px; /* largeur encore augmentée */
  height: 65px; /* hauteur encore augmentée */
  padding: 0 8px; /* préserve la taille horizontale sans changer la hauteur */
  margin-right: 20px;
  margin-top: 10px; /* descend le bouton légèrement pour centrer visuellement par rapport au logo */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  background-image: url("../img/0895232053.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .25s ease;
}
.btn-image-btn:hover {
  transform: scale(1.02);
}

/* Texte du hero */
.hero-text {
  z-index:3;
  color:white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-top: 3rem;
}

/* -------------------- GALERIE -------------------- */
#gallery h2 {
  color: var(--site-accent);
  text-align: center;
  font-weight: 600;
}

#gallery .row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

#gallery .col-12 {
  width: 300px;
  flex: none;
}

.gallery-card {
  border: none;
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.gallery-card:hover .card-img-top {
  transform: scale(1.1);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 400px;
  margin: 0 auto;
}

.gallery-card .card-img-top {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.2);
  transition: transform 0.5s ease;
}

.gallery-card .card-body {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5rem 1rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.gallery-card:hover .card-body {
  transform: translateY(-5px);
}

.gallery-card .card-title {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}

.gallery-card .card-text {
  color: rgba(255,255,255,0.9);
}

.gallery-card:hover {
  transform: translateY(-5px);
}
.gallery-card img {
  object-fit: cover;
  height: 220px;
  width: 100%;
  display: block;
}
.gallery-card:focus,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(194, 24, 91, 0.25);
  outline: none;
}

@media (max-width: 576px){
  .gallery-card img {
    height: 160px;
  }
}

/* -------------------- MODAL IMAGE -------------------- */
#imageModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}
#modalImage {
  border-radius: var(--card-radius);
}

/* -------------------- FORMULAIRE CONTACT -------------------- */
#about-contact h3 {
  color: var(--site-accent);
  margin-bottom: 1rem;
}
#about-contact form label {
  font-weight: 500;
}
#about-contact form input:focus,
#about-contact form textarea:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 0.25rem rgba(194,24,91,0.25);
}

/* -------------------- BOUTONS -------------------- */
.btn-primary {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--site-accent-dark);
  border-color: var(--site-accent-dark);
}
.btn-outline-secondary:hover {
  background-color: var(--site-accent-light);
  color: #fff;
  border-color: var(--site-accent);
}

/* -------------------- FOOTER -------------------- */
footer {
  background: var(--site-accent); /* rose, pas rouge */
  color: #fce4ec; /* texte clair sur fond rose */
  font-size: 0.875rem;
}
footer p {
  margin: 0;
  line-height: 1.4;
}
footer a {
  color: var(--site-accent-light);
}
footer a:hover {
  color: #fff;
}

/* -------------------- AGE MODAL -------------------- */
#ageModal .modal-content {
  border: 2px solid var(--site-accent);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(194, 24, 91, 0.25);
}
#ageModal .btn-primary {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
}
#ageModal .btn-primary:hover {
  background-color: var(--site-accent-dark);
  border-color: var(--site-accent-dark);
}

/* -------------------- UTILITAIRES -------------------- */
.visually-hidden {
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* -------------------- DIVERS -------------------- */
::selection {
  background-color: var(--site-accent-light);
  color: #fff;
}

/* -------------------- COOKIE CONSENT -------------------- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200; /* above bootstrap modals */
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 0.5rem;
  backdrop-filter: blur(6px);
}
.cookie-consent .btn-light {
  color: var(--site-accent-dark);
}
.cookie-consent { display: none; }

/* Minimal modal adjustments so it looks good */
.modal-content {
  border-radius: .75rem;
}

/* Cookie modal bottom style to match previous banner design */
.modal-bottom {
  display: flex;
  align-items: flex-end;
  min-height: 0;
}
.cookie-modal .modal-dialog {
  pointer-events: none; /* let modal backdrop handle clicks outside */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0; /* stick to bottom */
  margin: 0;
  display: flex;
  justify-content: center;
  z-index: 1205; /* above most UI elements but below persistent navs if needed */
}
.cookie-modal .modal-content.cookie-modal-content {
  pointer-events: auto;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: .75rem .75rem 0 0; /* rounded top corners only */
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  width: calc(100%);
  margin: 0;
  max-width: 1200px;
}
.cookie-modal .modal-title { margin: 0; }
.cookie-modal .btn-light { color: var(--site-accent-dark); }

@media (min-width: 768px) {
  .cookie-modal .modal-content.cookie-modal-content { width: calc(100% - 4rem); }
}

@media (max-width: 576px) {
  .cookie-consent { flex-direction: column; align-items: stretch; gap: .5rem; }
  .cookie-consent__actions { justify-content: flex-end; }
}
