/* ==========================================================================
   GIORGIA paris — Styles des pages articles "Tendances & Conseils Pro"
   ==========================================================================
   Charte alignée sur le site principal (mêmes tokens couleurs/typo) avec
   des composants spécifiques aux articles :
     - Hero compact (~28vh)
     - Bloc prose centré, lisible
     - Carrousel "Sélection GIORGIA" pleine largeur, pattern Préventes
     - Sticky contact dépliable identique à la home
   ========================================================================== */

:root {
  --cream:      #F6F1EA;
  --cream-dark: #EDE6DB;
  --black:      #161616;
  --charcoal:   #2A2724;
  --gold:       #C5A36A;
  --gold-lt:    #E2CFA8;
  --taupe:      #8C7B6A;
  --white:      #FDFAF6;
  --border:     rgba(22,22,22,0.10);

  /* Palette spécifique "Sélection GIORGIA" — fond charcoal foncé + accent gold */
  --sel-bg:     #2A2724;
  --sel-bg-dk:  #1F1C1A;
  --sel-accent: #C5A36A;
  --sel-accent-dk: #A88347;

  --wa-green:    #25D366;
  --wa-green-dk: #128C7E;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-logo:    'Century Gothic', 'Josefin Sans', 'Trebuchet MS', 'Futura', sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(.25,.46,.45,.94);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* IMPORTANT : empêche le scroll horizontal causé par la section pleine largeur */
  overflow-x: hidden;
}
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Logo (réutilisé dans navbar et footer) */
.logo {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1; text-decoration: none; color: inherit; user-select: none;
}
.logo-g {
  font-family: var(--ff-logo);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: .42em;
  text-transform: uppercase;
}
.logo-p {
  font-family: var(--ff-logo);
  font-weight: 300;
  font-size: clamp(.45rem,.7vw,.62rem);
  letter-spacing: .65em;
  color: var(--taupe);
  text-transform: lowercase;
  margin-top: 2px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.article-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3.5rem;
  background: rgba(246,241,234,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.article-nav .nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.article-nav .nav-links a {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--taupe);
  transition: color .3s;
}
.article-nav .nav-links a:hover,
.article-nav .nav-links a[aria-current="page"] { color: var(--black); }
.article-nav .btn-nav {
  font-size: .68rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--white); background: var(--black);
  padding: .55rem 1.4rem; transition: background .3s;
}
.article-nav .btn-nav:hover { background: var(--gold); }

/* Hamburger menu icon — visible sur mobile */
.hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: .3rem;
  margin-left: 1rem;
}
.hamburger span { width: 20px; height: 1.5px; background: var(--black); display: block; }

@media(max-width:900px) {
  .article-nav { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
  .article-nav .nav-links { display: none; }
  .hamburger { display: flex; }
  .article-nav .nav-right { margin-left: auto; }
}

/* Mobile menu — plein écran quand ouvert */
#mob-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--black); flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
#mob-menu.open { display: flex; }
#mob-menu a {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 300;
  color: var(--white); text-decoration: none; letter-spacing: .05em;
  text-align: center;
  white-space: normal;
  max-width: 90%;
}
#mob-menu a:hover { color: var(--gold); }
.mob-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer;
}

/* ==========================================================================
   HERO COMPACT (~28vh)
   ========================================================================== */
.article-hero {
  position: relative;
  height: 28vh;
  min-height: 220px;
  margin-top: 67px;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(.7);
}
.article-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,.45) 0%, rgba(22,22,22,.15) 50%, rgba(22,22,22,.55) 100%);
}
.article-hero-eyebrow {
  position: absolute;
  bottom: 1.2rem; left: 0; right: 0;
  text-align: center;
  font-size: .68rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-lt);
  z-index: 2;
}

/* ==========================================================================
   ARTICLE BODY — TITRE + CHAPÔ + PROSE
   ========================================================================== */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.8rem 0;
}
/* Le dernier .article-container ferme la prose, on remet le padding bottom */
.article-container:last-of-type {
  padding-bottom: 4rem;
}

.article-breadcrumb {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a {
  text-decoration: none;
  color: var(--taupe);
  transition: color .25s;
}
.article-breadcrumb a:hover { color: var(--black); }
.article-breadcrumb .sep {
  margin: 0 .5rem;
  color: var(--gold);
}

.article-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 1.3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-meta .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.article-chapo {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--charcoal);
  /* Pas de margin-bottom — c'est le dernier élément avant la prose */
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

/* PROSE — styles du markdown rendu */
.article-prose > *:first-child {
  margin-top: 2rem;
}
.article-prose h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 1.1rem;
}
.article-prose h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--charcoal);
  margin-top: 2rem;
  margin-bottom: .8rem;
}
.article-prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
}
.article-prose strong {
  color: var(--black);
  font-weight: 600;
}
.article-prose em { color: var(--charcoal); }
.article-prose a {
  color: var(--gold-lt);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color .25s;
}
.article-prose a:hover { color: var(--gold); }
.article-prose ul, .article-prose ol {
  margin: 0 0 1.2rem 1.2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.article-prose li { margin-bottom: .5rem; }
.article-prose blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(197, 163, 106, .06);
  font-style: italic;
  color: var(--charcoal);
}
.article-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ==========================================================================
   BLOC SÉLECTION GIORGIA — pleine largeur
   ==========================================================================
   Cette section sort du flux normal pour prendre 100% de la largeur de
   l'écran, peu importe le conteneur dans lequel elle est injectée.
   
   IMPORTANT : la section est injectée DANS .article-prose, donc tous les
   sélecteurs internes utilisent .selection-sec en parent pour augmenter la
   spécificité et gagner contre les styles prose (.article-prose h2 etc).
   ========================================================================== */
.selection-sec {
  background: linear-gradient(180deg, var(--sel-bg) 0%, var(--sel-bg-dk) 100%);
  padding: 4rem 0 4.5rem;
  margin: 3rem 0;
  /* Trick : sortir du conteneur parent pour prendre toute la largeur */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.selection-sec .selection-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}
.selection-sec .selection-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.selection-sec .selection-hdr-text { flex: 1; min-width: 280px; }
.selection-sec .selection-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: .8rem;
  font-weight: 500;
}
.selection-sec .selection-dot {
  width: 6px; height: 6px;
  background: var(--sel-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(197, 163, 106, .25);
}
/* Titre — surcharge .article-prose h2 */
.selection-sec .selection-title,
.article-prose .selection-sec .selection-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--white) !important;
  margin: 0 0 .6rem 0;
}
/* Sous-titre / description — surcharge .article-prose p */
.selection-sec .selection-sub,
.article-prose .selection-sec .selection-sub {
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82) !important;
  max-width: 720px;
  margin: 0;
}
/* CTA — surcharge .article-prose a */
.selection-sec .selection-cta,
.article-prose .selection-sec .selection-cta {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none !important;
  background: var(--sel-accent);
  color: var(--black) !important;
  padding: .95rem 1.7rem;
  transition: background .25s, transform .25s;
  white-space: nowrap;
  align-self: flex-end;
}
.selection-sec .selection-cta:hover,
.article-prose .selection-sec .selection-cta:hover {
  background: var(--gold-lt);
  color: var(--black) !important;
  transform: translateY(-2px);
}

/* CARROUSEL */
.carousel-outer { position: relative; }
.carousel-clip { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.catalog-grid-root {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 1.5rem;
  width: 100%;
  padding: .5rem 0;
}
@media(max-width: 700px) {
  .catalog-grid-root { grid-auto-columns: minmax(240px, 75vw); }
}

.car-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border: none;
  background: var(--white);
  color: var(--sel-bg);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, background .25s;
}
.car-btn:hover { background: var(--sel-accent); transform: translateY(-50%) scale(1.08); }
.car-btn-prev { left: -22px; }
.car-btn-next { right: -22px; }
@media(max-width: 700px) {
  .car-btn-prev { left: 4px; }
  .car-btn-next { right: 4px; }
}

.car-dots {
  display: flex; justify-content: center; gap: .55rem;
  margin-top: 1.6rem;
}
.car-dots button {
  width: 7px; height: 7px;
  border: none;
  border-radius: 50%;
  background: rgba(246, 241, 234, .3);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.car-dots button.is-active {
  background: var(--sel-accent);
  transform: scale(1.4);
}

/* CARDS */
.selection-card {
  display: block;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.selection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
.selection-card .prod-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
}
.selection-card .prod-img {
  position: absolute; inset: 0;
}
.selection-card .prod-img picture,
.selection-card .prod-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.selection-card .prod-badges {
  position: absolute; top: .8rem; left: .8rem;
  display: flex; flex-direction: column; gap: .35rem;
  z-index: 2;
}
.selection-card .prod-badge {
  background: var(--sel-accent);
  color: var(--black);
  font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .65rem;
}
.selection-card .prod-wm {
  position: absolute; bottom: .6rem; right: .8rem;
  z-index: 2;
  opacity: .85;
}
.selection-card .prod-wm .logo-g { color: var(--white); font-size: .65rem; }
.selection-card .prod-wm .logo-p { color: var(--gold-lt); font-size: .42rem; }
.selection-sec .selection-card .prod-info {
  padding: 1rem 1rem 1.1rem;
}
.selection-sec .selection-card .prod-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--black) !important;
  margin: 0 0 .2rem 0;
}
.selection-sec .selection-card .prod-ref {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--taupe) !important;
  margin: 0 0 .4rem 0;
}
.selection-sec .selection-card .prod-desc {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--charcoal) !important;
  margin: 0;
}

/* ==========================================================================
   STICKY CONTACT — IDENTIQUE À LA HOMEPAGE
   ==========================================================================
   Reproduction exacte du sticky-contact de la home :
     - Onglet vertical doré qu'on déroule
     - Panneau charcoal qui glisse depuis la droite
     - 5 lignes : Email, WhatsApp, Instagram, TikTok, Showroom
   ========================================================================== */
#sticky-contact {
  position: fixed;
  right: 0; top: 50%; transform: translateY(-50%);
  z-index: 200;
  display: flex; align-items: stretch;
  filter: drop-shadow(-4px 0 18px rgba(0,0,0,.18));
}

/* Onglet vertical — compact enroulé, icône conservée */
#sticky-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: var(--gold); color: var(--black);
  font-family: var(--ff-logo);
  font-size: .52rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700;
  padding: .5rem .3rem;
  cursor: pointer; user-select: none;
  border-radius: 6px 0 0 6px;
  transition: background .3s;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  white-space: nowrap;
  border: none;
}
#sticky-tab:hover { background: var(--black); color: var(--white); }
#sticky-tab .tab-icon {
  writing-mode: horizontal-tb;
  transform: rotate(90deg);
  font-size: .72rem;
  line-height: 1;
}

/* Desktop uniquement : onglet plus grand et plus visible */
@media(min-width:769px) {
  #sticky-tab {
    padding: .7rem .65rem;
    font-size: .82rem;
    letter-spacing: .14em;
    font-weight: 700;
    gap: .5rem;
  }
  #sticky-tab .tab-icon { font-size: .95rem; }
}

/* Panneau dépliable */
#sticky-panel {
  background: var(--charcoal);
  width: 0; overflow: hidden;
  transition: width .42s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
}
#sticky-contact.open #sticky-panel { width: 260px; }
.sp-inner {
  padding: 1.4rem 1.3rem; min-width: 260px;
  position: relative;
}
.sp-logo { margin-bottom: 1rem; }
.sp-logo .logo-g { color: white; font-size: .85rem; }
.sp-logo .logo-p { font-size: .36rem; color: var(--gold); }

.sp-title {
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: .88rem; color: var(--gold-lt); margin-bottom: 1rem;
  line-height: 1.3; white-space: nowrap;
}
.sp-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.sp-row:last-child { border-bottom: none; }
.sp-icon { width: 26px; height: 26px; flex-shrink: 0; }
.sp-info { display: flex; flex-direction: column; }
.sp-lbl { font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .1rem; }
.sp-val { font-size: .7rem; color: rgba(255,255,255,.8); }
.sp-row:hover .sp-val { color: var(--gold); }

.sp-close {
  position: absolute; top: .5rem; right: .5rem;
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: .9rem; cursor: pointer; padding: .2rem;
  line-height: 1;
}
.sp-close:hover { color: white; }

@media(max-width:768px) {
  #sticky-contact { top: auto; bottom: 5rem; transform: none; }
  #sticky-tab { font-size: .48rem; padding: .5rem .28rem; }
  #sticky-contact.open #sticky-panel { width: 220px; }
  .sp-inner { min-width: 220px; padding: 1.1rem 1rem; }
  .sp-title { font-size: .8rem; }
}

/* ==========================================================================
   CTA FINAL ARTICLE
   ========================================================================== */
.article-cta {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 2rem 1.8rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.article-cta h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 1rem;
}
.article-cta p {
  color: var(--charcoal);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.article-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta-btn {
  text-decoration: none;
  font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  padding: .85rem 1.6rem;
  transition: all .25s;
}
.article-cta-btn--primary {
  background: var(--wa-green);
  color: var(--white);
}
.article-cta-btn--primary:hover { background: var(--wa-green-dk); }
.article-cta-btn--secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.article-cta-btn--secondary:hover { background: var(--black); color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.article-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 1.8rem 1.8rem;
  margin-top: 4rem;
}
.article-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.article-footer .foot-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}
.article-footer .logo-g { color: var(--white); font-size: .9rem; }
.article-footer .logo-p { color: var(--taupe); }
.article-footer .foot-addr {
  text-align: right;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--cream-dark);
}
.article-footer .foot-addr a {
  color: var(--gold-lt);
  text-decoration: none;
}
.article-footer .foot-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(246, 241, 234, .12);
  border-bottom: 1px solid rgba(246, 241, 234, .12);
  font-size: .78rem;
}
.article-footer .foot-legal a {
  color: var(--cream-dark);
  text-decoration: none;
}
.article-footer .foot-legal a:hover { color: var(--gold-lt); }
.article-footer .foot-legal .sep { color: var(--taupe); }
.article-footer .foot-copy {
  text-align: center;
  font-size: .72rem;
  color: var(--taupe);
  margin-top: 1.4rem;
}

@media (max-width: 700px) {
  .article-footer .foot-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .article-footer .foot-addr { text-align: center; }
}
