/**
 * ValRhôn'Énergie — Premium CMS Pages
 * Design System : cartes, fonds sectionnés, séparateurs premium
 */

/* ====== HERO HEADER ====== */
.cms-hero {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.cms-hero .eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--eau-deep);
}

.cms-hero .page-title-section {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

/* ====== SECTION CONTENU ====== */
.cms-section {
  padding: 80px 0 120px;
  background: var(--cream);
}

/* ====== CARTE CONTENU CMS ====== */
.cms-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 60px;
  box-shadow: 0 16px 50px -24px rgba(7,28,40,.08);
}

@media (max-width: 640px) {
  .cms-card {
    padding: 32px;
    border-radius: 16px;
  }
  .cms-hero {
    padding: 60px 0 32px;
  }
}

/* ====== TYPOGRAPHIE RICH-TEXT ====== */
.cms-card h2,
.page-content--cms h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 340;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.012em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cms-card h3,
.page-content--cms h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--eau-deep);
  margin: 40px 0 16px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.cms-card h4,
.page-content--cms h4 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.cms-card p,
.page-content--cms p {
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 20px;
}

.cms-card a,
.page-content--cms a {
  color: var(--eau-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.cms-card a:hover,
.page-content--cms a:hover {
  border-bottom-color: var(--eau-deep);
}

.cms-card ul,
.cms-card ol,
.page-content--cms ul,
.page-content--cms ol {
  margin: 20px 0;
  padding-left: 24px;
}

.cms-card li,
.page-content--cms li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 8px;
}

/* ====== PAGE PAIEMENT SECURISE ====== */
.payment-secure__intro {
  max-width: 820px;
  margin: 0 0 42px;
  font-size: 18.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate);
}

.payment-secure__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 36px 0 44px;
}

.payment-secure__item {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.payment-secure__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--eau-deep);
  font-weight: 700;
}

.payment-secure__item h3 {
  margin-top: 0;
}

.payment-secure__item p {
  margin-bottom: 0;
  font-size: 15.5px;
}

.payment-secure__note {
  padding: 28px 32px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(14,155,214,.14), rgba(255,255,255,.96) 62%);
  border: 1px solid rgba(10,111,160,.18);
}

.payment-secure__note h3 {
  margin-top: 0;
}

.payment-secure__note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .payment-secure__grid {
    grid-template-columns: 1fr;
  }
}

/* ====== SITEMAP PREMIUM ====== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.sitemap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 50px -24px rgba(7,28,40,.08);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s cubic-bezier(.2,.8,.2,1);
}

.sitemap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -20px rgba(7,28,40,.15);
}

.sitemap-card h2 {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

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

.sitemap-card li {
  margin-bottom: 12px;
}

.sitemap-card a {
  font-size: 15px;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s, gap 0.25s;
}

.sitemap-card a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eau);
  flex-shrink: 0;
  transition: background 0.3s;
}

.sitemap-card a:hover {
  color: var(--eau-deep);
  gap: 14px;
}

.sitemap-card a:hover::before {
  background: var(--eau-deep);
}

/* Nested lists in sitemap */
.sitemap-card .sitemap__list--nested {
  padding-left: 20px;
  margin-top: 8px;
  border-left: 1px solid var(--line);
}

/* ====== STORES PREMIUM ====== */
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.store-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 50px -24px rgba(7,28,40,.08);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s cubic-bezier(.2,.8,.2,1);
}

.store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px -20px rgba(7,28,40,.15);
}

.store-card__img-wrapper {
  height: 260px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b2230, #06141d);
}

.store-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.store-card:hover .store-card__img-wrapper img {
  transform: scale(1.06);
}

.store-card__body {
  padding: 32px;
}

.store-card__name {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.store-card__address {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 20px;
}

.store-card__toggle {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eau-deep);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-card__toggle:hover {
  color: var(--ink);
}

.store-card__additional-infos {
  padding-top: 16px;
}

.store-card__contacts {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.store-card__contacts li {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-card__contacts i {
  font-size: 16px;
  color: var(--eau-deep);
}

.store-card__opening-times {
  width: 100%;
  margin-top: 8px;
}

.store-card__opening-times th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.store-card__opening-times td {
  font-size: 14px;
  color: var(--slate);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
