/* =========================================================
   Les Petits Rappels du Cœur — feuille de style
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream:        #FDFBF7;
  --cream-warm:   #FAF6EF;
  --sand:         #F5EFE4;
  --gold:         #C69C6D;
  --gold-deep:     #B08A5A;
  --ink:          #4A4038;
  --ink-soft:     #7A6E63;
  --line:         #E6DBCA;

  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-body:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --ff-script:  "Parisienne", cursive;

  --wrap:  1180px;
  --gutter: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul, ol, li, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input {
  font: inherit;
  color: inherit;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  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(--gold-deep);
  outline-offset: 3px;
}

/* ---------- Placeholders média ---------- */
/* Remplacer par <img> en production */
.media-ph {
  background:
    radial-gradient(circle at 30% 25%, rgba(226,178,168,.55), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(198,156,109,.35), transparent 55%),
    linear-gradient(150deg, #F3E7DA, #EFE2D2 60%, #E9DAC6);
  border-radius: 2px;
}

html { scroll-behavior: smooth; }

/* =========================================================
   Header
   ========================================================= */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 22px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid rgba(230,219,202,.6);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  flex-shrink: 0;
  justify-self: start;
}

.brand__mark { width: 58px; height: 34px; }

.brand__name {
  font-family: var(--ff-display);
  font-size: 15px;
  letter-spacing: .13em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.brand_logo {
  width: 80px;
}

.nav { display: flex; justify-content: center; }

.nav__list {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.nav__item a {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.nav__item a:hover { color: var(--gold-deep); }

.nav__item.is-active a { color: var(--ink); }

.nav__item.is-active {
  position: relative;
}

.nav__item.is-active::after {
  content: "♡";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--gold);
}

.nav__item--has-sub a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3.5px solid currentColor;
  vertical-align: middle;
}

.cart {
  color: var(--gold);
  flex-shrink: 0;
}

.cart svg { width: 22px; height: 22px; }

/* ---------- Burger (mobile uniquement) ---------- */
.burger {
  display: none;           /* activé sous 860px */
  order: 3;                /* après le panier */
  width: 34px;
  height: 26px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.burger__bar {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--gold-deep);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.burger__bar:nth-child(1) { top: 6px; }
.burger__bar:nth-child(2) { top: 13px; }
.burger__bar:nth-child(3) { top: 20px; }

.is-menu-open .burger__bar:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}

.is-menu-open .burger__bar:nth-child(2) { opacity: 0; }

.is-menu-open .burger__bar:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn--solid {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}

.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn--ghost {
  background: transparent;
  color: var(--gold-deep);
  border: 1px solid var(--line);
  padding: 11px 24px;
}

.btn--ghost:hover { border-color: var(--gold); background: rgba(198,156,109,.07); }

.btn--center {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.btn--full {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: center;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  background: var(--cream);
}

.hero__text {
  padding: 70px var(--gutter) 70px 80px;
  text-align: center;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.28;
  text-align: center;
}

.hero__title-script {
  display: block;
  margin-top: 14px;
  font-family: var(--ff-script);
  font-size: 34px;
  font-style: normal;
  line-height: 1.5;
  color: var(--gold);
}

.ornament--heart {
  color: var(--gold);
  margin: 26px auto 22px;
  text-align: center;
}

.ornament--heart svg {
  width: 22px;
  height: 18px;
  margin-inline: auto;
}

.hero__lede {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 30px;
}

.hero__media {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Sections — base
   ========================================================= */
.section {
  padding: 68px var(--gutter);
}

.section__head {
  text-align: center;
  margin-bottom: 44px;
}

.section__title {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section__title--sm { font-size: 20px; }

.section__lede {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* Filet + cœur central */
.rule {
  display: block;
  width: 220px;
  margin: 14px auto 0;
  height: 1px;
  background: var(--line);
  position: relative;
}

.rule--sm { width: 120px; }

.rule--heart::after {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  background: inherit;
  font-size: 10px;
  color: var(--gold);
  line-height: 1;
}

/* fond derrière le cœur, section par section */
.section--collections .rule--heart::after,
.section--wall .rule--heart::after { background: var(--cream-warm); }
.section--process .rule--heart::after { background: var(--sand); }
.panel .rule--heart::after { background: var(--cream); }

/* =========================================================
   Process
   ========================================================= */
.section--process { background: var(--sand); }

.process {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.step {
  flex: 0 1 180px;
  text-align: center;
}

.step__icon {
  display: block;
  color: var(--gold);
  margin: 0 auto 14px;
}

.step__icon svg { width: 34px; height: 34px; margin-inline: auto; }

.step__name {
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .04em;
  margin-bottom: 7px;
}

.step__desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.step__arrow {
  flex: 0 0 40px;
  color: var(--gold);
  margin-top: 16px;
}

.step__arrow svg { width: 40px; height: 10px; }

/* =========================================================
   Mariage
   ========================================================= */
.section--trio { padding-inline: 0; }

.trio {
  grid-template-columns: 1fr 1.35fr 1.15fr;
  align-items: stretch;
}

.panel {
  padding: 8px 34px;
  border-right: 1px solid var(--line);
}

.panel--wedding {
  padding: 0;
  border-right: 0;
  margin-top: 3rem;
}

.panel__head {
  text-align: center;
  margin-bottom: 26px;
}

.panel__title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Valeurs */
.values {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.value {
  flex: 1;                 /* chaque valeur = 1/3 de la largeur */
  display: flex;
  flex-direction: column;
  align-items: center;     /* centre icône + texte horizontalement */
  text-align: center;
}

.value__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value__icon { color: var(--gold); flex-shrink: 0; }
.value__icon svg { width: 30px; height: 30px; }

.value__name {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.value__desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Avis */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.review {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.review__quote {
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.review__text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}

.review__author {
  margin-top: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Mariage */
.wedding {
  height: 100%;
  min-height: 250px;
  padding: 46px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(226,178,168,.5), transparent 42%),
    radial-gradient(circle at 92% 62%, rgba(214,150,140,.42), transparent 45%),
    linear-gradient(120deg, #F7EDE2, #F2E3D4);
}

.wedding__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.wedding__text {
  font-family: var(--ff-display);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.panel--wedding .btn--ghost {
  background: rgba(253,251,247,.72);
  border-color: var(--gold);
}

/* =========================================================
   Mur des rappels
   ========================================================= */
.section--wall {
  background:
    radial-gradient(ellipse at 2% 50%, rgba(198,156,109,.16), transparent 22%),
    radial-gradient(ellipse at 98% 50%, rgba(198,156,109,.16), transparent 22%),
    var(--cream-warm);
}

.wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 34px;
}

.wall__card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px 22px 30px;
  text-align: center;
  transition: transform .25s ease;
}

.wall__card:hover { transform: translateY(-4px); }

.media-ph--wall {
  aspect-ratio: 1 / 1.15;
  margin-bottom: 14px;
}

.wall__name {
  font-family: var(--ff-script);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.wall__desc {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* =========================================================
   Réassurance
   ========================================================= */
.reassurance {
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.promises {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.promise {
  display: flex;
  align-items: center;
  gap: 14px;
}

.promise__icon { color: var(--gold); }
.promise__icon svg { width: 30px; height: 26px; }

.promise__name {
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 400;
  margin-bottom: 2px;
}

.promise__desc {
  font-size: 11px;
  color: var(--ink-soft);
}

.promise__sep {
  color: var(--gold);
  font-size: 10px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 48px var(--gutter) 44px;
  background: var(--cream);
}

.footer__logo {
  width: 75px;
  max-width: 75px;
  height: auto;
  margin-bottom: 18px;
}

.footer__brand { color: var(--gold); }

.footer__brand,
.footer__col,
.footer__legal {
  text-align: center;
}

.footer__logo {
  margin-inline: auto;
}

.socials {
  justify-content: center;
}

.footer__links {
  justify-items: center;
}

.footer__name {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
  margin: 8px 0 18px;
}

.socials { display: flex; gap: 14px; }
.socials svg { width: 18px; height: 18px; color: var(--gold-deep); }
.socials a:hover svg { color: var(--gold); }

.footer__title {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.footer__links { display: grid; gap: 7px; }

.footer__links a {
  font-size: 12px;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.footer__links a:hover { color: var(--gold-deep); }

.footer__legal {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.footer__heart {
  color: var(--gold);
  margin-top: 10px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__list { gap: 22px; }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 34px var(--gutter); }
  .values {
    display: flex;
    justify-content: center;
    gap: 34px;
    padding-left: 0;
  }
  .value { flex: 1 1 0; max-width: 260px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }

  /* --- Header + burger --- */
    .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 20;
  }

  .brand { order: 1; }
  .cart  { order: 2; margin-left: auto; }
  .burger { display: block; order: 2; margin-left: auto; }

  /* Panneau déroulant */
  .nav {
    display: flex;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(74, 64, 56, .07);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s ease, visibility 0s linear .35s;
  }

  .is-menu-open .nav {
    max-height: 80vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height .35s ease, visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .nav__item { border-bottom: 1px solid rgba(230, 219, 202, .55); }
  .nav__item:last-child { border-bottom: 0; }

  .nav__item a {
    display: block;
    padding: 15px 2px;
    font-size: 12px;
  }

  .nav__item.is-active::after {
    content: none;   /* on désactive l'ancien pseudo-élément */
  }
  .nav__item.is-active a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .nav__item.is-active a::after {
    content: "♡";
    font-size: 8px;
    color: var(--gold);
  }

  .nav__item--has-sub a::after { float: right; margin-top: 8px; }

  /* Voile derrière le menu */
  .is-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(74, 64, 56, .28);
    z-index: 10;
  }

  .hero { grid-template-columns: 1fr; }
  .hero__text { padding: 48px var(--gutter); order: 2; }
  .hero__title { font-size: 33px; text-align: center; }
  .hero__title-script { font-size: 27px; }
  .media-ph--hero { min-height: 320px; }

  .process { flex-wrap: wrap; gap: 30px 12px; }
  .step { flex: 0 1 45%; }
  .step__arrow { display: none; }

  .reviews { grid-template-columns: 1fr; }

  .values {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .value {
    max-width: 280px;
    align-items: center;
    text-align: center;
  }

  .wall { grid-template-columns: repeat(2, 1fr); }

  .newsletter { grid-template-columns: 1fr; }
  .newsletter__body { padding: 40px var(--gutter); max-width: none; }
  .newsletter__body > .newsletter__form { margin-left: 0; max-width: none; }

  .promises {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .promise {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .promise__sep { display: none; }
}

@media (max-width: 560px) {
  .collections { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__legal { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
