/* ===== GOOGLE PIXEL PARRAINAGE - PREMIUM DESIGN ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --white: #FFFFFF;
  --bg-primary: #F8F9FA;
  --bg-secondary: #E8EAED;
  --bg-dark: #202124;
  --text-primary: #202124;
  --text-secondary: #5F6368;
  --text-light: #80868B;
  --blue: #1A73E8;
  --blue-hover: #174EA6;
  --blue-light: #E8F0FE;
  --green: #1E8E3E;
  --green-light: #E6F4EA;
  --red: #D93025;
  --yellow: #F9AB00;
  --yellow-light: #FEF7E0;
  --border: #DADCE0;
  
  /* Premium Shadows */
  --shadow-sm: 0 1px 3px rgba(60,64,67,0.1), 0 1px 2px rgba(60,64,67,0.06);
  --shadow-md: 0 4px 6px rgba(60,64,67,0.1), 0 2px 4px rgba(60,64,67,0.06);
  --shadow-lg: 0 10px 15px rgba(60,64,67,0.1), 0 4px 6px rgba(60,64,67,0.05);
  --shadow-xl: 0 20px 25px rgba(60,64,67,0.15), 0 10px 10px rgba(60,64,67,0.1);
  --shadow-float: 0 30px 60px rgba(26,115,232,0.15);
  
  /* Very rounded corners */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-full: 100px;
  
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1280px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

/* --- Scroll Animations --- */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-in { opacity: 1; transform: translateY(0) scale(1); }
/* Ces blocs partent a opacity 0 et ne sont reveles que par le JS. Pour qui a
   desactive les animations, on affiche directement : sans cette regle, une
   preference d'accessibilite rendrait la page vide. */
@media (prefers-reduced-motion: reduce) {
  .animate-up, .animate-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section--white { background: var(--white); border-radius: var(--radius-xl); margin: 20px; box-shadow: var(--shadow-sm); }
.section--dark { background: var(--bg-dark); color: var(--white); border-radius: var(--radius-xl); margin: 20px; }
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; gap: 16px; }
.flex--between { justify-content: space-between; }
.flex--center { justify-content: center; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; color: inherit; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
.subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-secondary); line-height: 1.5; max-width: 700px; }
.highlight {
  color: var(--blue);
  display: inline;
  background: linear-gradient(transparent 70%, var(--blue-light) 70%);
}
.section-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--blue); margin-bottom: 20px;
  background: rgba(26,115,232,0.1); padding: 8px 16px; border-radius: var(--radius-full);
}

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(248, 249, 250, 0.85); backdrop-filter: blur(20px);
  height: var(--nav-height); transition: background 0.3s;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 32px; width: 32px; border-radius: 50%; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a {
  font-size: 0.95rem; color: var(--text-primary); padding: 10px 12px;
  border-radius: var(--radius-full); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.nav__links a:hover { background: var(--bg-secondary); }
/* Picto de chaque entree. Purement decoratif, donc aria-hidden dans le gabarit,
 * et masque entre 769 et 1080 px : a cette largeur la barre entiere ne tient
 * plus, et un menu qui deborde est pire qu'un menu sans picto. */
.nav__ico { font-size: 1.05em; line-height: 1; }
@media (min-width: 769px) and (max-width: 1080px) {
  .nav__ico { display: none; }
}
.nav__cta {
  background: var(--text-primary) !important; color: var(--white) !important;
}
.nav__cta:hover { background: var(--blue) !important; transform: scale(1.05); }
.nav__toggle { display: none; font-size: 1.5rem; }

/* --- Hero --- */
.hero {
  padding: 120px 0 80px; position: relative;
  overflow: hidden; min-height: 90vh; display: flex; align-items: center;
  background: var(--bg-primary);
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(26,115,232,0.12), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(234,67,53,0.1), transparent 30%),
              radial-gradient(circle at 20% 80%, rgba(251,188,5,0.12), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(52,168,83,0.1), transparent 30%);
  animation: rotateBg 30s linear infinite;
  z-index: -2;
}
@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { text-align: left; }
.hero h1 { color: var(--text-primary); font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; }
.hero .subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

.hero-module {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.code-reveal__box.glass {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8); color: var(--text-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08); text-align: center;
}
.code-reveal__box.glass .code-reveal__code {
  background: var(--white); color: var(--text-primary); border-color: var(--border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.code-reveal__box.glass p { color: var(--text-secondary); }
.hero__image { display: none; }

/* --- Mega Menu --- */
.has-mega-menu { position: relative; }
.nav__link-btn {
  cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 0.95rem;
  color: var(--text-primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border-radius: var(--radius-full);
}
.nav__link-btn:hover { background: var(--bg-secondary); }
.nav__chevron { font-size: 0.75em; transition: transform 0.25s; }
.nav__item--ouvert .nav__chevron { transform: rotate(180deg); }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--white); box-shadow: var(--shadow-xl); border-radius: var(--radius-lg);
  padding: 24px; min-width: 600px; opacity: 0; visibility: hidden;
  transition: all 0.3s ease; z-index: 100; border: 1px solid var(--border);
}
.has-mega-menu:hover .mega-menu,
.nav__item--ouvert .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega-menu__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary);
  transition: background 0.2s;
}
.mega-menu__item:hover { background: var(--bg-secondary); }
.mega-menu__item img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 8px; }
.mega-menu__item span { font-size: 0.9rem; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 1rem;
  transition: all var(--transition-bounce);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); transform: scale(1.05); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--white); color: var(--text-primary); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--bg-secondary); transform: scale(1.05); }
.btn--dark { background: var(--text-primary); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); transform: scale(1.05); }
.btn--large { padding: 18px 40px; font-size: 1.1rem; }
.btn--small { padding: 10px 24px; font-size: 0.9rem; }

/* --- Boutons d'achat des fiches modeles ---
 *
 * Deux destinations cote a cote, distinguees par leur couleur et leur picto.
 * Celui du marchand partenaire est un <button> et non un <a> : la page ne
 * contient aucun lien vers lui, l'adresse est assemblee au clic. Voir
 * initBoutique() dans js/main.js.
 */
.achat-marchands { display: flex; flex-wrap: wrap; gap: 16px; }
.btn--marchand { justify-content: center; flex: 1 1 240px; }
.ico-marchand {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
}
/* Les pictos sont des glyphes generiques, pas les logos des marchands : on ne
 * reproduit pas une marque deposee dont on n'a pas les fichiers officiels. Pour
 * les remplacer, il suffit de substituer le <svg> a l'interieur du bouton. */
.btn--amazon { background: #FF9900; color: #131A22; }
.btn--amazon:hover { background: #F08804; color: #131A22; transform: scale(1.05); box-shadow: var(--shadow-md); }

/* --- Galerie des coloris ---
 *
 * Les fiches Pixel 11 montrent le rendu officiel du Google Store pour chaque
 * coloris commercialise. Les pastilles sont des boutons radio : le visiteur
 * change de couleur, la vue principale et les vignettes suivent. Sans
 * JavaScript la page reste lisible, elle affiche le premier coloris.
 *
 * Chaque pastille porte sa teinte dans --teinte et l'adresse de ses images
 * dans data-vue-*. Les adresses sont donc dans le HTML, pas reconstruites par
 * convention : un robot les voit, et renommer un fichier ne casse rien en
 * silence.
 */
.galerie-coloris { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.galerie-coloris__scene {
  width: 100%; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float); padding: 16px;
}
.galerie-coloris__vue {
  display: block; width: 100%; height: auto; max-height: 340px;
  object-fit: contain; margin: 0 auto;
}
.galerie-coloris__vignettes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.galerie-coloris__vignette {
  width: 72px; height: 72px; padding: 4px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.galerie-coloris__vignette img { width: 100%; height: 100%; object-fit: contain; display: block; }
.galerie-coloris__vignette:hover { transform: translateY(-2px); }
.galerie-coloris__vignette[aria-pressed="true"] { border-color: var(--blue); box-shadow: var(--shadow-md); }

.galerie-coloris__nom { font-size: 0.95rem; color: var(--text-secondary); text-align: center; }
.galerie-coloris__nom strong { color: var(--text-primary); }
.galerie-coloris__pastilles { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* La pastille fait 44 px de cote au doigt, dont 28 px de couleur visible : en
 * dessous, la cible est trop petite sur un telephone. Le lisere clair separe
 * les teintes sombres du fond blanc, Noir Volcanique en particulier. */
.pastille {
  width: 44px; height: 44px; padding: 0; border: none; background: none;
  border-radius: var(--radius-full); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.pastille::before {
  content: ''; width: 28px; height: 28px; border-radius: var(--radius-full);
  background: var(--teinte, var(--border)); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pastille:hover { transform: scale(1.08); }
.pastille[aria-checked="true"]::before {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 0 0 3px var(--white), 0 0 0 5px var(--blue);
}
.pastille:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* --- Code Reveal --- */
.code-reveal { max-width: 600px; margin: 32px auto 0; }
.code-reveal__box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(16px, 5vw, 32px); text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.code-reveal__box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--blue);
}
.code-reveal__code {
  font-family: 'Courier New', monospace; font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 800;
  color: var(--text-primary); background: var(--bg-primary); padding: 16px 24px;
  border-radius: var(--radius-md); border: 2px dashed var(--border);
  display: inline-block; margin: 20px 0; letter-spacing: 2px;
  word-break: break-all; max-width: 100%;
}
.code-reveal__copy {
  background: var(--blue); color: var(--white); padding: 14px 32px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 1rem;
  transition: all var(--transition-bounce); width: 100%; max-width: 300px;
}
.code-reveal__copy:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.code-reveal__copy.copied { background: var(--green); }
.code-reveal__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px;
}
.code-reveal__new-code {
  background: transparent; color: var(--blue); padding: 12px 24px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--blue); transition: all var(--transition-bounce);
}
.code-reveal__new-code:hover { background: var(--blue-light); transform: scale(1.05); }
@keyframes codeFlash {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- Badge --- */
.promo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue); padding: 8px 16px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 24px; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.05); } }
/* Un modele retire de la vente garde la meme pastille, mais elle ne doit ni
   pulser ni reprendre la couleur d une promotion : c est un etat, pas une offre. */
.promo-badge--retire { background: var(--bg-primary); color: var(--text-secondary); animation: none; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.step { 
  text-align: center; padding: 40px; background: var(--bg-primary);
  border-radius: var(--radius-lg); transition: transform var(--transition);
}
.step:hover { transform: translateY(-10px); }
.step__number {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  color: var(--blue); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}
.step__title { margin-bottom: 16px; font-size: 1.4rem; }
.step__text { color: var(--text-secondary); font-size: 1.05rem; }

/* --- Product Cards --- */
.product-card {
  background: var(--bg-primary); border-radius: var(--radius-xl); padding: 40px 32px;
  transition: all var(--transition); display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden; border: 1px solid transparent;
}
.product-card:hover { transform: translateY(-8px); background: var(--white); box-shadow: var(--shadow-xl); border-color: var(--border); }
.product-card__badge {
  position: absolute; top: 20px; right: 20px; background: var(--blue);
  color: var(--white); padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.product-card__image { width: 220px; height: 220px; object-fit: contain; margin-bottom: 32px; transition: transform var(--transition-bounce); }
.product-card:hover .product-card__image { transform: scale(1.1); }
.product-card__name { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.product-card__price { color: var(--text-secondary); margin-bottom: 12px; font-size: 1.1rem; font-weight: 500; }
.product-card__discount { color: var(--blue); font-weight: 700; font-size: 1rem; margin-bottom: 24px; background: var(--blue-light); padding: 4px 12px; border-radius: 20px; }
.product-card__cta { width: 100%; margin-top: auto; }

/* --- Product Carousel --- */
.models-carousel {
  display: flex; gap: 20px; overflow-x: auto; padding: 20px 0 40px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-secondary);
}
.models-carousel::-webkit-scrollbar { height: 8px; }
.models-carousel::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 4px; }
.models-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.models-carousel::-webkit-scrollbar-thumb:hover { background: var(--blue-light); }
.models-carousel .product-card {
  min-width: 280px; flex-shrink: 0; scroll-snap-align: start;
}

/* --- FAQ --- */
.faq-item {
  background: var(--bg-primary); border-radius: var(--radius-md); margin-bottom: 16px;
  overflow: hidden; transition: all var(--transition);
}
.faq-item.open { background: var(--white); box-shadow: var(--shadow-md); }
.faq-item__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 600; color: var(--text-primary); padding: 24px;
  text-align: left;
}
.faq-item__question::after { 
  content: ''; width: 24px; height: 24px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat center;
  transition: transform var(--transition);
}
.faq-item.open .faq-item__question::after { transform: rotate(180deg); }
.faq-item__answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary); line-height: 1.7; padding: 0 24px; font-size: 1.05rem;
}
.faq-item.open .faq-item__answer { max-height: 500px; padding-bottom: 24px; }

/* --- Forms --- */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 16px 20px; border: 2px solid var(--border);
  border-radius: var(--radius-md); font-size: 1.05rem; transition: all var(--transition);
  background: var(--white); color: var(--text-primary); font-family: inherit;
}
.form-group textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }

/* --- Community Code --- */
.community-code {
  background: var(--white); border-radius: var(--radius-md); padding: 20px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  gap: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform 0.2s;
}
.community-code:hover { transform: scale(1.02); }
.community-code__value { font-family: 'Courier New', monospace; font-weight: 800; font-size: 1.1rem; color: var(--blue); word-break: break-all; }
.community-code__infos { min-width: 0; }
.community-code__author { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; }
.community-code__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.community-code__avis {
  font-size: 0.8rem; color: var(--text-light); padding: 8px 12px;
  border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--white);
  transition: all var(--transition);
}
.community-code__avis:hover { color: var(--red); border-color: var(--red); }
.community-code__avis:disabled { opacity: 0.6; cursor: default; }

/* --- Ce que rapporte le parrainage, sur /partager-code/ --- */
.encart-gain {
  display: flex; align-items: center; gap: 20px;
  background: var(--green-light); border: 1px solid rgba(30, 142, 62, 0.2);
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 36px;
}
.encart-gain__montant {
  font-size: 2.2rem; font-weight: 800; color: var(--green);
  line-height: 1; flex-shrink: 0;
}
.encart-gain__texte strong { display: block; margin-bottom: 6px; color: var(--text-primary); }
.encart-gain__texte p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* --- Provenance et fiabilite d'un code ---
 *
 * Un code de parrainage Google Store est a usage unique et n'est verifiable par
 * personne de l'exterieur : ce que le site peut honnetement afficher, c'est qui
 * l'a partage, quand, et ce que les visiteurs en ont dit. D'ou cette ligne sous
 * chaque code, posee par js/main.js et non ecrite dans les pages.
 */
.code-source {
  font-size: 0.85rem; color: var(--text-secondary); margin: -8px 0 4px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
}
.code-source__sep { color: var(--border); }
.code-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.code-badge--ok { background: var(--green-light); color: var(--green); }
.code-badge--ko { background: var(--yellow-light); color: #A06800; }
.code-badge--neutre { background: var(--bg-secondary); color: var(--text-secondary); }

.code-retour {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-secondary);
}
.code-retour__boutons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.code-retour__btn {
  padding: 7px 16px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--white); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  transition: all var(--transition);
}
.code-retour__btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.code-retour__btn:disabled { opacity: 0.5; cursor: default; }
.code-retour__merci { font-weight: 600; color: var(--green); }

/* Etat du programme de parrainage lui-meme, qui n'est pas toujours ouvert. */
.code-alerte {
  margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; text-align: left;
}
.code-alerte--incertain { background: var(--yellow-light); color: #7A4F00; }
.code-alerte--suspendu { background: #FCE8E6; color: #A50E0E; }
.code-alerte--ouvert { background: var(--green-light); color: #137333; }

/* --- Lien vers la boutique partenaire ---
 *
 * Volontairement un bouton et non un lien : les fiches ne contiennent aucun
 * href vers le marchand, l'adresse etant assemblee au clic par js/main.js. Il
 * est style comme un lien discret, la mention partenaire restant visible juste
 * a cote pour le lecteur.
 */
.lien-boutique {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
  padding: 8px 0; border-bottom: 1px dotted var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.lien-boutique:hover { color: var(--blue); border-bottom-color: var(--blue); }
.lien-boutique::after { content: '↗'; font-size: 0.8em; opacity: 0.7; }
.mention-partenaire { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

/* --- Video YouTube chargee au clic, voir initVideos() --- */
.video-facade { margin: 0 0 40px; }
.video-facade__bouton, .video-facade__cadre {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius-lg); overflow: hidden;
}
.video-facade__bouton { position: relative; padding: 0; background: #0b0b0b; cursor: pointer; font: inherit; }
.video-facade__bouton img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.2s ease; }
.video-facade__bouton:hover img, .video-facade__bouton:focus-visible img { opacity: 0.4; }
.video-facade__lecture {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease;
}
.video-facade__bouton:hover .video-facade__lecture { transform: translate(-50%, -50%) scale(1.08); }
.video-facade__lecture svg { width: 30px; height: 30px; margin-left: 5px; fill: #0b0b0b; }
.video-facade__texte {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.video-facade__texte strong { font-size: 1.1rem; line-height: 1.35; }
.video-facade__texte small { font-size: 0.85rem; opacity: 0.85; }
.video-facade figcaption { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 8px; }
@media (max-width: 600px) {
  .video-facade__lecture { width: 52px; height: 52px; }
  .video-facade__lecture svg { width: 22px; height: 22px; margin-left: 3px; }
  .video-facade__texte { padding: 10px 14px; }
  .video-facade__texte strong { font-size: 0.9rem; }
  .video-facade__texte small { display: none; }
}

/* --- Footer --- */
.footer { background: var(--bg-dark); color: var(--white); padding: 80px 0 40px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer__brand h3 { font-size: 1.5rem; margin-bottom: 16px; }
.footer__col h4 { margin-bottom: 24px; font-size: 1.1rem; color: var(--text-light); }
.footer__col a { display: block; color: var(--white); font-size: 0.95rem; padding: 8px 0; font-weight: 500; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; color: var(--text-light); font-size: 0.9rem; }
/* Genere par scripts/stamp-version.mjs a chaque deploiement, ne pas saisir en dur. */
.footer__version { margin-top: 12px; font-size: 0.8rem; opacity: 0.65; }
.footer__version time { font-variant-numeric: tabular-nums; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero { min-height: 80vh; padding: 100px 0 60px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  /* --- Menu mobile ---
   *
   * Trois defauts corriges ici, tous invisibles sur un grand ecran :
   *
   *  - le sous-menu Modeles ne s'ouvrait qu'au survol. Au doigt, l'emulation du
   *    survol par le navigateur est aleatoire : les dix fiches modeles etaient
   *    en pratique inaccessibles depuis un telephone. Elles s'ouvrent maintenant
   *    au clic, replieees par defaut.
   *  - ces dix fiches s'affichaient sur une colonne avec des vignettes de 80 px,
   *    soit plus de 900 px de menu qui repoussaient les autres entrees hors de
   *    l'ecran.
   *  - le menu n'avait aucun defilement : ce qui depassait etait injoignable.
   */
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 8px 16px 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); gap: 0;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav__links.open { display: flex; }

  /* Cibles tactiles de 48 px, la hauteur en dessous de laquelle on tape a cote. */
  .nav__links > a,
  .nav__link-btn {
    width: 100%; min-height: 48px; padding: 12px 8px;
    border-radius: var(--radius-sm); font-size: 1rem;
    border-bottom: 1px solid var(--bg-primary);
  }
  .nav__item { width: 100%; border-bottom: 1px solid var(--bg-primary); }
  .nav__item .nav__link-btn { border-bottom: none; justify-content: flex-start; }
  .nav__chevron { margin-left: auto; }

  .nav__cta {
    justify-content: center; margin-top: 16px; min-height: 52px;
    border-bottom: none !important;
  }

  .mega-menu {
    position: static; min-width: 0; width: 100%; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px;
    display: none; opacity: 1; visibility: visible; transition: none;
  }
  .nav__item--ouvert .mega-menu { display: block; transform: none; }
  .mega-menu__grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .mega-menu__item {
    flex-direction: row; align-items: center; text-align: left;
    gap: 10px; padding: 8px; min-height: 44px;
  }
  .mega-menu__item img { width: 32px; height: 32px; margin-bottom: 0; flex-shrink: 0; }
  .mega-menu__item span { font-size: 0.85rem; }

  .achat-marchands { flex-direction: column; gap: 12px; }
  .encart-gain { flex-direction: column; text-align: center; gap: 12px; }
  .hero__actions { flex-direction: column; align-items: stretch; justify-content: center; }
  .btn { justify-content: center; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .community-code { flex-direction: column; text-align: center; gap: 12px; }
}
/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--text-primary);
  transform: translateY(-5px);
}

/* --- Alertes par courriel ---
   Les cases a cocher vivent hors de .form-group, dont les regles donneraient
   a chaque case la largeur et le rembourrage d'un champ de saisie. */
.choix-alerte { border: 0; padding: 0; margin: 0 0 24px; }
.choix-alerte legend { font-weight: 600; margin-bottom: 10px; }
.choix-alerte label { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; color: var(--text-secondary); }
.choix-alerte input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* --- Accessoires ---
 * Page accessoires-pixel/ et bloc « Comparez aussi » des fiches, produits par
 * scripts/build-accessoires.mjs. Les boutons vers le marchand sont des
 * <button> sans href, comme ceux des fiches : voir initBoutique().
 *
 * Pas d'encadre a bordure laterale coloree : la note de methode est un texte
 * courant, les cartes une simple surface blanche. */
.accessoires-tete { padding-bottom: 48px; }
.accessoires-maj { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.accessoires-sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.accessoires-sommaire a {
  padding: 8px 16px; border-radius: var(--radius-full); background: var(--white);
  border: 1px solid var(--border); color: var(--text-primary); font-weight: 600; font-size: 0.9rem;
}
.accessoires-sommaire a:hover { border-color: var(--blue); color: var(--blue); }
.accessoires-methode { max-width: 760px; margin: 48px auto 0; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.7; }
.accessoires-methode p + p { margin-top: 12px; }

.accessoires { padding: 80px 0; }
.accessoires-categorie { scroll-margin-top: calc(var(--nav-height) + 16px); }
.accessoires-categorie + .accessoires-categorie { margin-top: 88px; }
.accessoires-categorie__tete { max-width: 760px; margin-bottom: 32px; }
.accessoires-categorie__tete h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.accessoires-categorie__tete p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

.produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.produit {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.produit:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.produit__visuel { aspect-ratio: 4 / 3; background: var(--bg-primary); overflow: hidden; }
.produit__visuel img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.produit__visuel--dessin { display: flex; align-items: center; justify-content: center; background: var(--fond, var(--bg-primary)); }
.produit__visuel--dessin svg { width: 62%; height: auto; }
.produit__corps { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.produit__type { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 6px; }
.produit__nom { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.produit__marque { color: var(--text-light); font-weight: 600; }
.produit__pour-qui { color: var(--text-primary); font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
.produit__points { display: grid; gap: 10px; margin-bottom: 16px; }
.produit__points li {
  position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55;
}
.produit__points li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.5 8.3l2.2 2.2 4.8-5" fill="none" stroke="%231E8E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
}
.produit__points strong { color: var(--text-primary); }
.produit__compat { font-size: 0.85rem; color: var(--text-light); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bg-secondary); }
.produit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.produit__actions .btn { flex: 1 1 140px; justify-content: center; padding: 11px 18px; font-size: 0.92rem; }

.tableau-accessoires { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tableau-accessoires table { width: 100%; min-width: 720px; border-collapse: collapse; }
.tableau-accessoires th, .tableau-accessoires td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--bg-secondary); }
.tableau-accessoires thead th { font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-primary); }
.tableau-accessoires tbody tr:last-child > * { border-bottom: 0; }
.tableau-accessoires tbody th a { font-weight: 700; color: var(--text-primary); }
.tableau-accessoires tbody th a:hover { color: var(--blue); }
.tableau-accessoires__achats { white-space: nowrap; }
.tableau-accessoires__achats .lien-boutique { padding: 4px 0; margin-right: 14px; }
.pastille-oui, .pastille-non { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; }
.pastille-oui { background: var(--green-light); color: #137333; }
.pastille-non { background: var(--bg-secondary); color: var(--text-secondary); }
.source-tableau { font-size: 0.85rem; color: var(--text-light); margin-top: 12px; line-height: 1.6; }

/* Bloc des fiches. Une ligne par rayon, vignette a gauche, comme le rayon
 * « avec ce produit » d'une boutique, mais sans lien explorable. */
.comparez { margin-top: 28px; }
.comparez__titre { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.comparez__liste { display: grid; gap: 4px; }
.comparez__item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; text-align: left;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.comparez__item:hover, .comparez__item:focus-visible { background: var(--white); box-shadow: var(--shadow-sm); }
.comparez__vignette {
  flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.comparez__vignette img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.comparez__vignette--dessin { background: var(--blue-light); }
.comparez__vignette--dessin svg { width: 90%; height: auto; }
.comparez__item strong { display: block; font-size: 1rem; color: var(--text-primary); line-height: 1.3; }
.comparez__item small { display: block; font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
.comparez__guide { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }
.comparez__guide::after { content: ' \2192'; }

@media (max-width: 1024px) {
  .produits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .produits { grid-template-columns: 1fr; }
  .accessoires { padding: 56px 0; }
  .accessoires-categorie + .accessoires-categorie { margin-top: 64px; }
}

/* --- Pages dediees aux accessoires ---
 * accessoires-pixel/<slug>/, produites par scripts/build-accessoires.mjs.
 * Le verdict est une surface neutre, sans bordure laterale de couleur. */
.fil-ariane { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--text-light); margin-bottom: 32px; }
.fil-ariane li + li::before { content: '/'; margin-right: 6px; color: var(--border); }
.fil-ariane a { color: var(--text-secondary); }
.fil-ariane a:hover { color: var(--blue); }
.accessoire-tete { padding: 48px 0 64px; }
.accessoire-tete__grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.accessoire-tete__titre { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.accessoire-tete .subtitle { margin-bottom: 16px; }
.accessoire-tete__visuel img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.accessoire-verdict { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 24px; }
.accessoire-verdict__libelle { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.accessoire-verdict p:last-child { color: var(--text-secondary); line-height: 1.6; }

.accessoire-corps { padding: 72px 0; }
.accessoire-bilan { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.accessoire-bilan h2 { font-size: 1.5rem; margin-bottom: 16px; }
.accessoire-bilan__liste { display: grid; gap: 12px; }
.accessoire-bilan__liste li { position: relative; padding-left: 30px; color: var(--text-secondary); line-height: 1.55; }
.accessoire-bilan__liste li::before {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
}
.accessoire-bilan__liste--plus li::before { content: '+'; background: var(--green-light); color: #137333; }
.accessoire-bilan__liste--moins li::before { content: '\2212'; background: #FCE8E6; color: #A50E0E; }
.accessoire-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.accessoire-profils > div { background: var(--bg-primary); border-radius: var(--radius-md); padding: 24px; }
.accessoire-profils h3 { font-size: 1.1rem; margin-bottom: 12px; }
.accessoire-profils__liste { display: grid; gap: 8px; }
.accessoire-profils__liste li { color: var(--text-secondary); line-height: 1.5; padding-left: 16px; position: relative; }
.accessoire-profils__liste li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); }

.accessoire-texte { max-width: 820px; }
.accessoire-texte h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 56px 0 20px; }
.accessoire-texte h2:first-child { margin-top: 0; }
.accessoire-texte h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.accessoire-texte p { color: var(--text-secondary); line-height: 1.75; font-size: 1.05rem; }
.accessoire-texte .tableau-accessoires table { min-width: 560px; }
.tableau-accessoires--fiche table { min-width: 0; }
.tableau-accessoires--fiche th { width: 38%; color: var(--text-secondary); font-weight: 600; }
.sans-note { color: var(--text-light); font-size: 0.9rem; white-space: nowrap; }
.accessoire-alternatives { display: grid; gap: 10px; }
.accessoire-alternatives li { color: var(--text-secondary); line-height: 1.6; }
.accessoire-alternatives a { font-weight: 600; }
.accessoire-sources h2 { font-size: 1.4rem; margin-bottom: 12px; }
.accessoire-sources p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.accessoire-sources__liste { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--text-secondary); }
.produit__avis { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; }
.produit__avis::after { content: ' \2192'; }
.produit__nom a { color: inherit; }
.produit__nom a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .accessoire-tete__grille { grid-template-columns: 1fr; gap: 32px; }
  .accessoire-tete__visuel { order: -1; }
  .accessoire-bilan, .accessoire-profils { grid-template-columns: 1fr; }
}
.accessoire-tete__dessin { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.accessoire-tete__dessin svg { width: 55%; }

/* --- Black Friday ---
 * Bandeau cree par initBandeauBF() de js/main.js, au-dessus de la barre de
 * navigation, et blocs de la page black-friday-pixel/. Aucune bordure laterale
 * de couleur : les cartes sont des surfaces neutres, l'accent passe par le
 * montant et par la pastille de statut. */
.bandeau-bf { background: var(--bg-dark); color: var(--white); font-size: 0.9rem; }
.bandeau-bf__interieur { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.bandeau-bf__lien {
  flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  color: var(--white); padding: 8px 0; line-height: 1.4;
}
.bandeau-bf__lien:hover { color: var(--white); }
.bandeau-bf__lien:hover .bandeau-bf__action { text-decoration: underline; }
.bandeau-bf__etiquette {
  flex: none; background: var(--yellow); color: var(--bg-dark); font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: var(--radius-full);
}
.bandeau-bf__texte { color: rgba(255, 255, 255, 0.88); }
.bandeau-bf__action { font-weight: 700; white-space: nowrap; color: #FDD663; }
.bandeau-bf__action::after { content: ' \2192'; }
.bandeau-bf__fermer {
  flex: none; width: 32px; height: 32px; border-radius: 50%; color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem; line-height: 1;
}
.bandeau-bf__fermer:hover, .bandeau-bf__fermer:focus-visible { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.bandeau-bf__court { display: none; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 640px) {
  .bandeau-bf { font-size: 0.82rem; }
  .bandeau-bf__interieur { padding: 0 16px; gap: 8px; }
  .bandeau-bf__texte { display: none; }
  .bandeau-bf__court { display: inline; }
}

.bf-tete { padding: 64px 0 24px; }
.bf-maj { font-size: 0.9rem; color: var(--text-light); margin: 16px 0 32px; }
.bf-calendrier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto 32px; text-align: left; }
.bf-etape { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.bf-etape__statut {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); margin-bottom: 8px;
}
.bf-etape__date { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.bf-etape p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.45; }
.bf-etape--active { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--white); }
.bf-etape--active .bf-etape__statut { color: #FDD663; }
.bf-etape--active p { color: rgba(255, 255, 255, 0.78); }
.bf-etape--passee { opacity: 0.55; }

.bf-section { padding: 72px 0 0; scroll-margin-top: calc(var(--nav-height) + 16px); }
.bf-section__tete { max-width: 760px; margin-bottom: 32px; }
.bf-section__tete h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.bf-section__tete p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.bf-section__tete p + p { margin-top: 10px; }

.bf-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bf-offre {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
}
.bf-offre__montant { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.bf-offre__nature { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin: 6px 0 14px; }
.bf-offre__produit { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.bf-offre__detail { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.5; margin-bottom: 14px; }
.bf-offre__cumul { font-size: 0.85rem; color: var(--text-light); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bg-secondary); }
.bf-offre__cumul strong { color: var(--text-primary); }
.bf-offre .btn { margin-top: 16px; justify-content: center; padding: 11px 18px; font-size: 0.92rem; }

.bf-statut {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-full); background: var(--yellow-light); color: #7A4F00; margin-bottom: 10px;
}
.bf-statut--hors { background: var(--bg-secondary); color: var(--text-secondary); }
.produit__visuel--detoure { display: flex; align-items: center; justify-content: center; padding: 20px; background: #F1F3F4; }
.produit__visuel--detoure img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.produits--bf .produit__nom { font-size: 1.25rem; }
.produits--bf .produit__actions { margin-top: auto; padding-top: 16px; }
.produits--bf .produit__actions .btn, .bf-ligne__actions .btn { white-space: nowrap; }
.produits--bf .produit__pour-qui { font-weight: 400; color: var(--text-secondary); font-size: 0.95rem; }

.bf-liste { display: grid; gap: 12px; }
.bf-ligne {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px;
}
.bf-ligne__vignette { width: 72px; height: 72px; border-radius: var(--radius-sm); background: #F1F3F4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bf-ligne__vignette img { max-height: 60px; width: auto; border-radius: 0; }
.bf-ligne__nom { font-weight: 700; font-size: 1.05rem; }
.bf-ligne__nom a { color: inherit; }
.bf-ligne__nom a:hover { color: var(--blue); }
.bf-ligne__detail { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; margin-top: 2px; }
.bf-ligne__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bf-ligne__actions .btn { padding: 9px 16px; font-size: 0.88rem; }

.bf-texte { max-width: 820px; }
.bf-texte p { color: var(--text-secondary); line-height: 1.7; font-size: 1.02rem; }
.bf-texte p + p { margin-top: 14px; }
.bf-texte h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.bf-source { font-size: 0.85rem; color: var(--text-light); margin-top: 12px; line-height: 1.5; }

@media (max-width: 1024px) {
  .bf-offres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .bf-calendrier, .bf-offres { grid-template-columns: 1fr; }
  .bf-tete { padding-top: 40px; }
  .bf-section { padding-top: 56px; }
  .bf-ligne { grid-template-columns: 56px 1fr; }
  .bf-ligne__vignette { width: 56px; height: 56px; }
  .bf-ligne__vignette img { max-height: 48px; }
  .bf-ligne__actions { grid-column: 1 / -1; justify-content: stretch; }
  .bf-ligne__actions .btn { flex: 1 1 140px; }
}