/* ===== Variables ===== */
:root {
  --c-dark: #1a1aa6;
  --c-blue: #4070f4;
  --c-purple: #7b72f0;
  --c-pink: #f0559a;
  --c-orange: #e8734a;
  --c-text: #333;
  --radius: 16px;
  --container: 1200px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Montserrat", sans-serif; color: var(--c-text); background: #fafafa; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.icon { width: 1em; height: 1em; flex: none; }

/* ===== Button ===== */
.btn { border: 1px solid transparent; border-radius: 30px; padding: 10px 24px; font-size: 15px; transition: .2s; }
.btn--accent { background: var(--c-orange); color: #fff; }
.btn--accent:hover { background: #d4602f; }
.btn--accent:active { background: #fff; color: var(--c-orange); border-color: var(--c-orange); }
.btn--white { background: #fff; color: var(--c-blue); }

/* ===== Topbar (caché en mobile) ===== */
.topbar { display: none; background: var(--c-dark); color: #fff; font-size: 13px; }
.topbar__list { display: flex; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.topbar__item { display: flex; align-items: center; gap: 6px; }

/* ===== Header (mobile-first) ===== */
.header { position: relative; z-index: 10; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.header__call { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--c-orange); color: #fff; display: grid; place-items: center; font-size: 16px; }
.header__cta { display: none; }
.header__logo img { height: 40px; width: auto; }

.burger { width: 28px; height: 28px; border: 0; background: none; position: relative; }
.burger__line, .burger__line::before, .burger__line::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--c-orange); transition: .2s;
}
.burger__line { top: 13px; }
.burger__line::before { left: 0; right: 0; top: -6px; }
.burger__line::after { left: 0; right: 0; top: 6px; }
.header--open .burger__line { background: transparent; }
.header--open .burger__line::before { top: 0; transform: rotate(45deg); }
.header--open .burger__line::after { top: 0; transform: rotate(-45deg); }

/* Menu déroulant mobile */
.menu {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 20px rgba(0,0,0,.1);
  max-height: 0; overflow: hidden; transition: max-height .3s;
}
.header--open .menu { max-height: 400px; }
.menu__list { text-align: center; padding: 16px 0 8px; }
.menu__link { display: block; padding: 10px; font-size: 16px; }
.menu__contacts { text-align: center; font-size: 13px; color: var(--c-purple); padding: 8px 0 16px; }
.menu__contacts li { padding: 4px 0; }

/* ===== Hero ===== */
.hero { background: var(--c-blue); color: #fff; margin-top: -16px; padding-top: 32px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; }
.hero__title { font-size: 24px; font-weight: 400; margin: 0 0 12px; }
.hero__text { font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.hero__btn { align-self: flex-end; }
.hero__img { width: 70%; margin-top: 8px; }

/* ===== Tablette / Desktop ===== */
@media (min-width: 992px) {
  .topbar { display: block; }
  .header__call, .burger, .menu__contacts { display: none; }
  .header__cta { display: block; }
  .header__inner { justify-content: flex-start; gap: 32px; min-height: 64px; }
  .menu { position: static; max-height: none; box-shadow: none; overflow: visible; flex: 1; }
  .menu__list { display: flex; gap: 8px; padding: 0; text-align: left; }
  .menu__link { font-size: 13px; }
  .header__logo { order: -1; }

  .hero { margin-top: -16px; padding-top: 40px; }
  .hero__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero__content { max-width: 480px; }
  .hero__title { font-size: 40px; }
  .hero__text { font-size: 14px; }
  .hero__btn { align-self: flex-start; }
  .hero__img { width: 33%; margin-top: 0; }
}

/* ===== Titres de section ===== */
.section-title { text-align: center; font-size: 18px; font-weight: 400; margin: 32px 0 16px; }

/* ===== Advantages (mobile : 1 colonne) ===== */
.advantages__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.advantage { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(80, 80, 200, .1); color: var(--c-purple); }
.advantage--filled { background: #a59df5; color: #fff; box-shadow: none; }
.advantage__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.advantage__num { font-size: 28px; font-weight: 600; }
.advantage__text { margin: 0; font-size: 12px; line-height: 1.5; opacity: .85; }

/* ===== Services (Swiper n°1) ===== */
.services__slider { position: relative; }
.services__swiper { overflow: hidden; }
.services__swiper .swiper-slide { height: auto; }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; border-radius: 12px; padding: 20px 14px; }
.service--purple { background: #a04be0; }
.service--blue { background: #7b72f0; }
.service--pink { background: #f0559a; }
.service__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--c-purple); display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
.service__title { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.service__text { margin: 0; font-size: 12px; line-height: 1.5; }

.slider-arrow { display: none; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-purple); border-radius: 50%; background: none; color: var(--c-purple); place-items: center; font-size: 16px; }
.slider-arrow--prev .icon { transform: rotate(180deg); }
.slider-arrow.swiper-button-disabled { opacity: .35; cursor: default; }

@media (min-width: 768px) {
  .advantages__grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .advantage--wide { grid-column: span 3; }
  .advantage--narrow { grid-column: span 2; }
  .section-title { font-size: 28px; margin: 48px 0 24px; }
  .advantage__title { font-size: 16px; }
  .advantage__text { font-size: 13px; }

  .services__slider { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; }
  .services__swiper { flex: 1; }
  .slider-arrow { display: grid; flex: none; }
  .service__title { font-size: 15px; }
  .service__text { font-size: 12px; }
}

/* ===== Products (Swiper n°2) ===== */
.products { padding-bottom: 40px; }
.products__swiper { overflow: hidden; padding: 4px 4px 12px; margin: 0 -4px; }
.products__swiper .swiper-slide { height: auto; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e4f4; border-radius: 12px; overflow: hidden; isolation: isolate; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.product__img { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--img-pos, center top); }
.product__body { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 12px 12px 14px; }
.product__title { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.product__subtitle { margin: 4px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--c-pink); }
.product__text { margin: 0 0 8px; font-size: 12px; }
.product__sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 12px; }
.product__size { border: 1px solid #ccc; border-radius: 3px; padding: 2px 6px; font-size: 10px; }
.product__actions { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.product__actions .btn { flex: 1; padding: 6px 8px; font-size: 12px; }
.product__price { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--c-pink); }

.btn--purple { background: var(--c-purple); color: #fff; }
.btn--purple:hover { background: #5f55e0; }
.btn--outline { background: #fff; color: var(--c-purple); border-color: var(--c-purple); }
.btn--outline:hover { background: var(--c-purple); color: #fff; }

@media (min-width: 992px) {
  .product__title { font-size: 13px; }
  .product__subtitle { font-size: 13px; }
  .product__text { font-size: 12px; }
  .product__price { font-size: 18px; }
}

/* ===== Footer (mobile : tout centré) ===== */
.footer { background: var(--c-dark); color: #fff; padding: 28px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer__about { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__text { margin: 0; font-size: 12px; line-height: 1.5; max-width: 300px; }
.footer__social { display: flex; gap: 14px; }
.footer__social-link { font-size: 12px; }
.footer__copy { margin: 0; font-size: 12px; line-height: 1.5; }
.footer__title { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 12px; }
.footer__map { width: 100%; max-width: 300px; height: 90px; border-radius: 8px; overflow: hidden; background: #dfe3f0; }
.footer__location { width: 100%; display: flex; flex-direction: column; align-items: center; }
.footer__partner { background: #fff; padding: 4px 8px; border-radius: 2px; }

@media (min-width: 992px) {
  .footer { padding: 36px 0 28px; }
  .footer__inner { display: grid; grid-template-columns: 1.6fr .6fr 1fr; align-items: start; text-align: left; gap: 32px; position: relative; }
  .footer__about { align-items: flex-start; }
  .footer__text { font-size: 11px; max-width: 260px; }
  .footer__social-link--mobile { display: none; }
  .footer__location { align-items: flex-start; }
  .footer__map { max-width: none; height: 84px; }
  .footer__partner { grid-column: 3; justify-self: end; }
}

/* ===== Popups ===== */
.btn--pink { background: var(--c-pink); color: #fff; text-transform: uppercase; font-weight: 600; }
.btn--pink:hover { background: #d93e84; }

.popup { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 60, .55); overflow-y: auto; }
.popup--open { display: flex; }
.popup__window { position: relative; width: 100%; background: #fff; border-radius: 12px; padding: 16px; max-height: 92vh; overflow-y: auto; }
.popup__window--callback { max-width: 340px; background: #f5f5f5; padding: 24px 20px; }
.popup__window--product { max-width: 340px; }
.popup__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--c-pink); font-size: 16px; }
.popup__title { margin: 0 0 8px; font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--c-purple); }
.popup__lead { margin: 0 0 16px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--c-purple); }
body.is-locked { overflow: hidden; }

/* Formulaire */
.form__field { display: block; margin-bottom: 12px; }
.form__label { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; color: #888; }
.form__input { width: 100%; padding: 8px 10px; border: 1px solid var(--c-purple); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.form__input--error { border-color: #e03131; }
.form__note { margin: 0 0 16px; font-size: 11px; line-height: 1.5; color: #888; }
.form__note a { color: var(--c-purple); text-decoration: underline; }

/* Fiche produit */
.popup-product { display: flex; flex-direction: column; gap: 12px; }
.popup-product__swiper { border-radius: 8px; overflow: hidden; }
.popup-product__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--img-pos, center top); }
.popup-product__pagination { position: static; margin-top: 6px; }
.popup-product__pagination .swiper-pagination-bullet { width: 6px; height: 6px; background: var(--c-purple); }
.popup-product__title { margin: 0; font-size: 14px; font-weight: 700; color: #3a3a7a; }
.popup-product__subtitle { margin: 2px 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--c-pink); }
.popup-product__text, .popup-product__list { margin: 0 0 8px; font-size: 12px; line-height: 1.5; }
.popup-product__list { list-style: disc; padding-left: 14px; }
.popup-product__list-title { margin: 0 0 4px; font-size: 12px; }
.popup-product__label { margin: 0 0 6px; font-size: 12px; }
.popup-product__options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.popup-product__sizes { display: flex; gap: 4px; }
.size-btn { padding: 4px 8px; border: 1px solid #bbb; border-radius: 3px; background: #fff; font-size: 11px; }
.size-btn--active { border-color: #000; }
.qty { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.qty__btn { width: 22px; height: 22px; padding: 0; border: 1px solid #bbb; border-radius: 3px; background: #fff; font-size: 13px; line-height: 1; }
.qty__value { min-width: 14px; text-align: center; }

@media (min-width: 768px) {
  .popup__window--callback { max-width: 380px; }
  .popup__window--product { max-width: 900px; padding: 42px; }
  .popup-product { flex-direction: row; gap: 24px; align-items: flex-start; }
  .popup-product__gallery { flex: 0 1 353px; max-width: 353px; min-width: 0; }
  .popup-product__swiper { border-radius: 24px; }
  .popup-product__img { aspect-ratio: 353 / 558; border-radius: 24px; object-position: var(--img-pos, center); }
  .popup-product__info { flex: 1; }
  .popup-product__title { font-size: 16px; }
  .popup-product__text, .popup-product__list, .popup-product__list-title { font-size: 12px; }
}

/* ===== Motifs décoratifs (grilles de points) ===== */
:root {
  --dots-white: radial-gradient(circle, rgba(255, 255, 255, .55) 2px, transparent 2.5px);
  --dots-size: 14px 14px;
}

/* Hero : points derrière la statue (mobile + desktop) et sous le texte (desktop) */
.hero { position: relative; }
.hero__content, .hero__img { position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; right: 5%; bottom: 8%;
  width: 126px; height: 140px;
  background-image: var(--dots-white); background-size: var(--dots-size);
}
.hero::before { display: none; }

/* Cartes services : points en haut à gauche */
.service { position: relative; overflow: hidden; }
.service::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 70%; height: 45%;
  background-image: var(--dots-white); background-size: 12px 12px;
  opacity: .35; pointer-events: none;
}
.service > * { position: relative; }

@media (min-width: 992px) {
  .hero::after { right: 12%; bottom: 10%; width: 168px; height: 182px; }
  .hero::before {
    display: block; content: ""; position: absolute;
    left: max(16px, calc((100% - var(--container)) / 2 + 16px)); bottom: 18px;
    width: 140px; height: 84px;
    background-image: var(--dots-white); background-size: var(--dots-size);
  }
}

/* ===== États : survol, appui, focus clavier ===== */
a, button, .size-btn, .qty__btn, .slider-arrow { transition: background-color .2s, color .2s, border-color .2s, opacity .2s, transform .2s, box-shadow .2s; }

/* Boutons : normal -> survol -> appui (comme le bouton orange de la maquette) */
.btn--white:hover { background: #e9efff; }
.btn--white:active { background: transparent; color: #fff; border-color: #fff; }
.btn--purple:active { background: #fff; color: var(--c-purple); border-color: var(--c-purple); }
.btn--outline:active { background: #5f55e0; color: #fff; border-color: #5f55e0; }
.btn--pink:active { background: #fff; color: var(--c-pink); border-color: var(--c-pink); }

/* Focus clavier visible (accessibilité) */
:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 2px; }
.hero :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* Petits contrôles */
.slider-arrow:hover:not(.swiper-button-disabled) { background: var(--c-purple); color: #fff; }
.size-btn:hover { border-color: var(--c-purple); }
.qty__btn:hover { background: var(--c-purple); border-color: var(--c-purple); color: #fff; }
.popup__close:hover { transform: rotate(90deg); }
.form__input:focus { outline: none; border-color: var(--c-pink); box-shadow: 0 0 0 2px rgba(240, 85, 154, .2); }

/* Liens */
.menu__link:hover { color: var(--c-orange); }
.footer__link:hover, .footer__social-link:hover { text-decoration: underline; opacity: .85; }

/* Apparition douce des popups */
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-rise { from { transform: translateY(12px); } to { transform: none; } }
.popup--open { animation: popup-fade .2s ease-out; }
.popup--open .popup__window { animation: popup-rise .25s ease-out; }

/* Cartes : léger relief au survol (souris uniquement, pas au tactile) */
@media (hover: hover) {
  .product:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(80, 80, 200, .22); }
  .advantage:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(80, 80, 200, .18); }
  .advantage--filled:hover { box-shadow: 0 6px 16px rgba(123, 114, 240, .35); }
}
.product, .advantage { transition: transform .25s, box-shadow .25s; }

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}