/* style/main.css */

/* === Masquer temporairement le panier === */
#cart-btn,
#panier {
  display: none !important;
}

/* 1. Reset & global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}

/* 2. Thèmes clair / sombre 
:root {
  --clr-bg: #ffffff;
  --clr-text: #333333;
  --clr-primary: #0d4a8a;
  --clr-accent: #0050c0;
  --clr-muted: #f4f4f4;
}*/

/* --- Thème sombre (forcé) --- */
:root {
  --clr-bg:    #1a1a1a;
  --clr-text:  #eeeeee;
  --clr-primary: #3b82f6;
  --clr-accent:  #60a5fa;
  --clr-muted:   #2a2a2a;
}

/* 3. Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4. Header & nav */
.site-header {
  position: sticky;
  top: 0;
  background: var(--clr-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  font-size: 1.25rem;
}
.navbar .nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--clr-text);
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-list a:hover {
  color: var(--clr-accent);
}
.cart-btn {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--clr-text);
  transition: color 0.3s ease;
}
.cart-btn:hover {
  color: var(--clr-accent);
}

/* 5. Hero */
.hero {
  width: 100%;
  height: 90vh;
  background: url('../image/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}
.btn-primary {
  display: inline-block;
  background-color: var(--clr-primary);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--clr-accent);
}

/* Espacement entre deux .btn-primary dans le hero */
.hero-content .btn-primary + .btn-primary {
  margin-left: 1rem;
}

/* 6. Sections */
.content-section {
  padding: 4rem 0;
  background: var(--clr-muted);
}
.cards-section {
  padding: 4rem 0;
  background: var(--clr-bg);
}
.content-section h2,
.cards-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 9. Cards grid */
.cards-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--clr-muted);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  object-fit: cover;
}
.card h3 {
  margin: 1rem;
  font-size: 1.25rem;
}
.card p {
  flex: 1;
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--clr-text);
}
.btn-sm {
  display: block;
  margin: 0 1rem 1rem;
  padding: .5rem 1rem;
  text-align: center;
  background: var(--clr-primary);
  color: #fff;
  border-radius: .25rem;
  text-decoration: none;
  font-size: .9rem;
  transition: background-color 0.3s ease;
}
.btn-sm:hover {
  background: var(--clr-accent);
}
#ebook-gratuit {
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
}

/* 10. À propos */
#apropos p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
}

/* 11. Footer */
.site-footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 1.5rem 0;
}
.site-footer p {
  text-align: center;
  font-size: 0.9rem;
}


/* Liste de contacts centrée sur une ligne */
.contact-list {
  list-style: none;
  display: flex;              /* passage en ligne */
  justify-content: center;    /* centrer horizontalement */
  align-items: center;        /* aligner icône + texte */
  gap: 2rem;                  /* espace entre chaque item */
  margin-top: 1.5rem;         /* écart au-dessus */
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
}

.icon-img {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}
.contact-list a {
  color: #c8c8c8 !important;
}
/* Badge du panier */
.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
}

/* Style des boutons “Ajouter au panier” */
/*.btn-sm.add-to-cart {
  background: var(--clr-primary);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-sm.add-to-cart:hover {
  background: var(--clr-accent);
}*/

.btn-sm.buy-now {
  background: var(--clr-primary);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-sm.buy-now:hover {
  background: var(--clr-accent);
}


@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-count.bump {
  animation: bump 0.3s ease-out;
}
/* Masquer/afficher la section panier */
.hidden {
  display: none;
}
.cart-section {
  padding: 4rem 0;
}
.cart-items {
  margin-top: 2rem;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}
.cart-item-info {
  flex: 1;
}
.cart-item-info h3 {
  margin-bottom: .5rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item-controls input[type="number"] {
  width: 3rem;
  padding: .25rem;
  border: 1px solid #ccc;
  border-radius: .25rem;
  text-align: center;
}

/* Résumé du panier */
.cart-summary {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 1.25rem;
}

/* Bouton continuer */
#continue-shopping {
  margin-top: 2rem;
  display: block;
  margin-left: auto;
}
/* Prix dans les cartes produit */
.card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin: 0 1rem 0.5rem;
}
.card .price {
  text-align: center;
}
/* Message panier vide */
.empty-cart {
  text-align: center;
  font-size: 1.1rem;
  color: var(--clr-text);
  margin: 2rem 0;
}
.remove-btn {
  background: transparent;
  border: none;
  color: var(--clr-accent);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: color 0.3s ease;
}
.remove-btn:hover {
  color: red;
}
/* Style du conteneur résumé + payer */
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

/* Nouveau style pour le bouton secondaire */
.btn-secondary {
  background: var(--clr-muted);
  color: var(--clr-text);
  border: 1px solid var(--clr-text);
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.btn-secondary:hover {
  background: var(--clr-text);
  color: var(--clr-bg);
}

/* nav-link par défaut */
.nav-link {
  color: var(--clr-text);
  transition: color 0.3s;
}

/* nav-link actif */
.nav-link.active {
  color: var(--clr-primary);
}

/* ---- Sélecteur de langue ---- */
.lang-selector {
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 1rem;
  position: relative;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  background: var(--clr-bg);
  border: 1px solid #ccc;
  border-radius: .25rem;
  list-style: none;
  padding: .25rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
  z-index: 200;
}
.lang-dropdown li {
  padding: .5rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.lang-dropdown li:hover {
  background: var(--clr-muted);
}
.flag-icon {
  width: 1.5rem;      /* ajustable selon la taille souhaitée */
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem; /* si tu laisses le texte à côté */
}

.lang-dropdown.show {
  display: block;   /* visible uniquement quand on ajoute .show */
}


.header-inner {
  display: flex;
  align-items: center;
  /* on pousse tout vers la droite */
  justify-content: space-between;
}

/* On pousse la nav au centre en donnant du "auto" aux marges gauche/droite */
.navbar {
  margin-left: auto;
  margin-right: auto;
}

/* Groupe droit : langue + panier */
.actions-right {
  display: flex;
  align-items: center;
  gap: 1rem; /* espace entre globe et panier */
  flex: 0 0 auto; /* ne pas grandir */
}

/* Pour s’assurer que le logo reste tout à gauche */
.logo {
  flex: 0 0 auto;
}
/* ===========================
   RESPONSIVE (mobile-first)
   =========================== */



/* =====================
   TYPOGRAPHIE FLUIDE
   ===================== */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
p, .btn-sm, .price { font-size: 1rem; }


/* === Timeline boursière en heures (Paris) === */
.market-timeline {
  position: relative;
  margin: 2rem 0;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--clr-text);
  /* Lignes d’axe toutes les heures */
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(100%/24 - 1px),
    rgba(255,255,255,0.1) calc(100%/24 - 1px),
    rgba(255,255,255,0.1) calc(100%/24)
  );
}

/* Session commune */
.market-timeline .session {
  position: absolute;
  top: 0; /* sera ajusté verticalement par un autre top si voulu */
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  /* placement et largeur selon variables CSS */
  left: calc(var(--start) / 24 * 100%);
  width: calc(var(--duration) / 24 * 100%);
}

/* Teintes de bleu par session */
.session.paris    { background: #1e40af; top:   0; }
.session.tokyo    { background: #1e3a8a; top:   2rem; }
.session.london   { background: #2563eb; top:   4rem; }
.session.newyork  { background: #60a5fa; top:   6rem; }

/* Horaires début/fin dans la session */
.market-timeline .time {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 400;
}
.time.start { left: 0.5rem; }
.time.end   { right: 0.5rem; }

/* Label centré */
.market-timeline .label {
  z-index: 1; /* devant les times */
}



.market-timeline {
  /* espace au-dessus de la bordure */
  margin-top: 1rem;     /* par exemple 2rem, ajuste selon ton goût */
  /* espace interne avant la bordure */
  padding-top: 1rem;    /* augmente si tu veux plus de « hauteur » avant les barres */
  
  /* conserve ta bordure */
  border-top: 1px solid var(--clr-text);
  
  /* supprime l’ancien background si tu l’avais neutralisé */
  background: none;
}

/* Conteneur flex pour les 3 widgets */
.widgets-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Chaque widget prend environ un tiers de la largeur, 
   réduit en mobile pour tenir en une colonne si besoin */
.widgets-container .tradingview-widget-container {
  flex: 1 1 calc(33.333% - 1rem);
  height: 200px; /* ou la hauteur que tu veux */
}

/* 2) Centrage vertical avec flex */
.header-inner {
  display: flex;
  align-items: center;   /* centre les enfants (logo, nav, actions) sur l’axe vertical */
  height: 100%;          /* s’étend sur toute la hauteur du header */
}

/* 3) Logo redimensionnable sans impacter la barre */
.logo img {
  max-height: 50px;      /* taille max du logo à l’intérieur du header */
  width: auto;           /* conserve les proportions */
}
/* Logo image dans le header */
.logo img {
  height: 3rem;    /* ajuste cette valeur à la taille souhaitée */
  width: auto;
  display: block;    /* évite les petits gaps inline */
}
/* 1) Cacher le toggle hamburger par défaut */
.nav-toggle {
  display: none;
}

#about-newsletter-wrapper {
  position: relative;
  background-image: url('../image/fond4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;               /* texte blanc par défaut */
}


/* Assure le contenu au-dessus de l’overlay */
#about-newsletter-wrapper > section {
  position: relative;
  z-index: 1;
}
/* Remplace le fond gris de la section Actualités par du noir */
#actualites {
  /* fond quasi noir à 90% d’opacité */
  background: rgba(0, 0, 0, 0.9) !important;
}
#apropos {
  /* fond quasi noir à 90% d’opacité */
  background: rgba(0, 0, 0, 0.9) !important;
}

#ebook-gratuit {
  /* fond quasi noir à 90% d’opacité */
  background: rgba(0, 0, 0, 0.9) !important;
}

#produits {
  /* fond quasi noir à 90% d’opacité */
  background: rgba(0, 0, 0, 0.9) !important;
  margin-top: 2rem;
}
/* Ajoute un “white-space” entre À propos et Newsletter */
#apropos {
  margin-bottom: 2rem;  /* ou 3rem selon l’effet désiré */
  margin-top: 2rem;
}

#ebook-gratuit {
  margin-bottom: 2rem;  /* ou 3rem selon l’effet désiré */
  margin-top: 2rem;
}

/* Arrondis et effet 3D sur les sections À propos et Newsletter */
#actualites,
#produits,
#apropos,
#ebook-gratuit,
#newsletter {
  /* coins arrondis */
  border-radius: 0.75rem;

  /* effet d’ombre portée : 
     - x-offset y-offset blur spread color */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.4),   /* ombre principale plus obscure */
    0 1px 3px rgba(0, 0, 0, 0.2);   /* léger halo diffus */

  /* si tu as un overlay, assure-toi de ne pas le couper */
  overflow: hidden;
}

/* Si tu veux en plus un léger décalage de perspective au survol */
#actualites:hover,
#ebook-gratuit:hover,
#apropos:hover {
  transform: translateY(-4px) scale(1.01);
  transition: transform 0.2s ease-out;
}
/* Effet hover “néon” sur les cards produit */
.card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: .5rem;                /* même rayon que ta .card */
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.card:hover::before {
  border-color: #60a5fa;               /* couleur “néon” bleu clair */
  box-shadow: 0 0 20px rgba(96,165,250,0.7);
}
#newsletter {
  /* fond quasi noir à 90% d’opacité */
  background: rgba(0, 0, 0, 0.9) !important;
}
.site-header {
  background-color: #000 !important;
}
/* === Style “newsletter” propre et simple === */
#newsletter {
  background: #111;           /* fond très sombre */
  padding: 4rem 1rem;
}
#newsletter h2 {
  color: #fff;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
#newsletter h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

#ebook-gratuit p{
  margin-bottom: 1rem;
}
.ebook-gratuit-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Champ email */
.ebook-gratuit-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: #222;
  border: none;
  border-radius: .5rem;
}
.ebook-gratuit-form input[type="email"]::placeholder {
  color: #777;
}

/* Bouton “Subscribe” */
.ebook-gratuit-form button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ebook-gratuit-form button:hover {
  background: #0056b3;
}





.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Champ email */
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #fff;
  background: #222;
  border: none;
  border-radius: .5rem;
}
.newsletter-form input[type="email"]::placeholder {
  color: #777;
}

/* Bouton “Subscribe” */
.newsletter-form button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.newsletter-form button:hover {
  background: #0056b3;
}

/* Footer personnalisé */
.site-footer {
  background: #005b99 !important; /* remplace par ta couleur exacte */
}
/* style/main.css */

/* bouton désactivé */
.btn-sm.buy-now:disabled {
  background: #777 !important;
  cursor: not-allowed;
  opacity: 0.6;
}


.learn-more.disabled {
  background: #777 !important;
  opacity: 0.6;
  cursor: not-allowed;
}


.calendar-widget {
  max-width: 800px;    /* largeur max souhaitée */
  width: 100%;         /* sinon s'étend à 100% du parent */
  margin: 0 auto;      /* centre horizontalement */
  height: 400px;       /* ajuste la hauteur fixe ou remplace par height: 100% si parent défini */
  box-sizing: border-box;
}

/* (optionnel) un petit padding au-dessus du titre des bourses et calendrier */
#actualites h2[data-i18n="actualites.marketHours"] {
  margin-top: 2rem;
}

#actualites h2[data-i18n="actualites.ecocalendar"] {
  margin-top: 2rem;
}

/*@media (prefers-color-scheme: dark) {
  :root {
    --clr-bg: #1a1a1a;
    --clr-text: #eeeeee;
    --clr-primary: #3b82f6;
    --clr-accent: #60a5fa;
    --clr-muted: #2a2a2a;
  }
}*/

/* 12. Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: .5rem;
  }
  .nav-list {
    flex-direction: column;
    gap: .5rem;
  }
}

/* Responsive : compacte l’espacement vertical */
@media (max-width: 600px) {
  .market-timeline {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .session {
    font-size: 0.75rem;
    padding: 0 .25rem;
  }
  .hours span {
    font-size: 0.6rem;
  }
}
/* remove the horizontal rule above the market‐hours timeline */

#actualites .market-timeline {
  border: none !important;
}

.site-footer {
  background: #005b99;      /* ou ta couleur choisie */
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #cceeff;
}

.footer-copy {
  margin-top: 1rem;
  text-align: center;
}

.calendar-widget {
  max-width: 800px;       /* largeur max souhaitée */
  width: 100%;            /* sinon prend 100% du parent */
  margin: 0 auto;         /* centre horizontalement */
  height: 550px;          /* même hauteur que ton widget */
  box-sizing: border-box; /* pour que padding ne déborde pas */
}

#newsletter {
  /* si tu avais une border-radius globale, tu la redéfinis ainsi : */
  border-radius: 0.75rem 0.75rem 0 0 !important;
  /* <- coin en haut gauche / en haut droit / en bas droit / en bas gauche */
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Masquer le burger temporairement */
#nav-toggle {
  display: none !important;
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;              /* espace horizontal et vertical entre les items */
  justify-content: center; /* centre sur chaque ligne */
  align-items: center;     /* aligne verticalement l’icône et le lien */
  padding: 0 1rem;         /* pour qu’il y ait toujours une marge gauche/droite */
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;              /* espace horizontal et vertical entre les items */
  justify-content: center; /* centre sur chaque ligne */
  align-items: center;     /* aligne verticalement l’icône et le lien */
  padding: 0 1rem;         /* pour qu’il y ait toujours une marge gauche/droite */
}

/* POPUP e-book gratuit – version sombre */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.popup-overlay.hidden {
  display: none;
}

.popup-content {
  background: #000;           /* fond noir */
  color: #fff;                /* texte blanc */
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 90%;
  width: 360px;
  text-align: center;
  position: relative;
}

/* Croix de fermeture en blanc */
#popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;                /* icône blanche */
  cursor: pointer;
}

/* Formulaire */
#popup-form input {
  width: 100%;
  padding: 0.5rem;
  margin: 1rem 0;
  border: 1px solid #444;     /* bord gris foncé */
  border-radius: 0.25rem;
  background: #222;           /* champ sombre */
  color: #fff;                /* texte blanc */
}

/* Placeholder en gris clair */
#popup-form input::placeholder {
  color: #bbb;
}

/* Bouton “Recevoir le PDF” */
#popup-form button {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
#popup-form button:hover {
  background: #124a9c;
}

/*---------------------------------------------------*/



/* === Contexte produit : fond bleu + image latérale === */
.product-page {

  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 4rem 1rem;
}

/* === Boîte noire centrée arrondie === */
.product-detail-box {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 0.75rem;
  padding: 2rem;
}

.product-actions{
  margin-top : 1rem;
}
/* === Disposition couverture + infos === */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.product-cover img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 0.5rem;
}
.product-info {
  flex: 1;
  color: #fff;
}
.product-info h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #fff;
}
.product-info p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* === Bouton primaire (comme d’hab) === */
.product-info .btn-primary {
  background-color: var(--clr-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}
.product-info .btn-primary:hover {
  background-color: var(--clr-accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  .product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-cover img {
    max-width: 80%;
    width: auto;
    
  }
  .product-info {
    width: 100%;
  }
}




/* 1) On déclare le parent en position:relative */
.product-detail {
  position: relative;
  padding: 2rem;          /* ou ton padding habituel */
  background: rgba(0,0,0,0.8);
  border-radius: .75rem;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
}


/* 3) On positionne le bouton “Retour” */
.product-actions .btn-return {
  position: absolute;
  bottom: 0.1rem;        /* espace depuis le bas du conteneur */
  right: 0.5rem;         /* espace depuis le bord droit */
  background: #222;      /* ou var(--clr-muted) */
  color: #fff;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.product-actions .btn-return:hover {
  background: #444;      /* légère variation au hover */
}



@media (max-width: 840px) {
  .product-actions {
    display: flex;
    flex-direction: column;   /* empile les boutons */
    align-items: center;      /* centre horizontalement */
    gap: 2rem;                /* espace vertical entre eux */
  }
  .product-info h3{
    text-align: center;
  }

  .product-actions .btn-primary,
  .product-actions .btn-return {
    position: static;         /* annule tout positionnement absolu */
    margin: 0;                /* on gère l’espacement via gap */
    width: auto;              /* taille à contenu */
    text-align: center;
  }
}


/* bouton “Retour” plus compact */
.btn-return {
  /* réduit la taille du texte */
  font-size: 0.875rem!important;        /* ou toute autre valeur entre 0.75rem et 1rem */
  /* réduit un peu le padding */
  padding: 0.4rem 0.8rem!important;     /* au lieu de 0.75rem 1.5rem par exemple */
  /* (optionnel) tu peux aussi changer la hauteur de ligne */
  line-height: 1.2!important;
  /* On empêche la flexbox de l’étirer */
  flex: 0 0 auto;
  /* largeur auto, pas de stretch */
  width: auto;
}


@media (max-width: 600px) {
  .btn-return {
    flex: 0 0 auto !important;
    width: auto !important;
    /* on rappelle la taille qu’on veut */
    font-size: 0.875rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}



/* Exemple de customisation légère faq */
#faq {
background: rgba(0, 0, 0, 0.05);
border-radius: 0.75rem;
}

#faq details {
  background: rgba(0, 104, 240, 0.05);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
#faq summary {
  cursor: pointer;
  font-weight: 600;
}
#faq summary::-webkit-details-marker {
  display: none; /* supprime le marqueur natif */
}
#faq summary::before {
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
#faq details[open] summary::before {
  transform: rotate(90deg);
}


/* === Footer – méthodes de paiement === */
.site-footer .payment-methods {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
}

.site-footer .payment-methods span {
  margin-right: 0.5rem;
}

.site-footer .payment-methods .pm-logo {
  height: 1.5rem;   /* ajustez selon vos besoins */
  width: auto;
  display: inline-block;
  filter: brightness(1) contrast(1); /* icônes originales */
  transition: filter 0.2s;
}

#faq {
  bottom : 2rem
}

.feature-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.feature-list li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/*------------------------------------------------------------------*/
.cards-grid .card .btn-sm.buy-now {
  display: block;
  /* Subtract the horizontal margins (1rem + 1rem) from 100% of the card’s width */
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
}



@media (max-width: 600px) {
  /* 1) Header en ligne, logo à gauche, les deux autres "zones" à droite */
  .header-inner {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }

  /* 2) On masque la nav classique */
  .navbar {
    display: none !important;
  }

  /* 3) Affiche le toggle hamburger */
  .nav-toggle {
    display: block !important;
    order: 2;               /* deuxième élément, côté droit */
  }

  /* 4) Logo en premier, côté gauche */
  .logo {
    order: 1;               /* premier élément, côté gauche */
    flex: 0 0 auto;
    text-align: left;
  }

  /* 5) Globe (langue + panier) en dernier */
  .actions-right {
    order: 3;               /* dernier élément, côté droit */
    display: flex !important;
    gap: 1rem;
  }
}

/* — Tablette (≥ 600px) — */
@media (min-width: 600px) {
  /* Container centré */
  .container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
  }
  /* Grille produits 2 colonnes */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Timeline un peu plus d’espace */
  .market-timeline {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

/* — Desktop (≥ 900px) — */
@media (min-width: 900px) {
  /* Container plus large */
  .container {
    max-width: 1200px;
  }

  /* Grille produits 3 colonnes */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero plein écran */
  .hero {
    height: 90vh;
  }
}

@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  p, .btn-sm, .price { font-size: 1.1rem; }
}

@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  p, .btn-sm, .price { font-size: 1.125rem; }
}


/* Responsive : espacement vertical réduit */
@media (max-width: 600px) {
  .market-timeline {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .session {
    font-size: 0.75rem;
    height: 1.25rem;
  }
  .hours span {
    font-size: 0.6rem;
  }
}

/* Mobile : un seul par ligne */
@media (max-width: 600px) {
  .widgets-container .tradingview-widget-container {
    flex: 1 1 100%;
  }
}


/* Mobile : empilement */
@media (max-width: 500px) {
  .newsletter-form {
    flex-direction: column;
    gap: .5rem;
  }
  .newsletter-form button {
    width: 100%;
  }
}

/* si tu veux un peu d’air autour sur mobile : */
@media (max-width: 600px) {
  .calendar-widget {
    padding: 0 1rem;
  }
}

/* 2) Sur petits écrans, empiler les sessions */
@media (max-width: 768px) {
  .market-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;            /* espace entre chaque session */
    align-items: flex-start;
  }
  .market-timeline .session {
    /* on force la largeur à 100% pour qu’elles ne débordent pas */
    width: 100% !important;
    /* on retire le positionnement horizontal qui poussait tout à gauche */
    position: static !important;
  }
}

/* Hero buttons empilés sur mobile */
@media (max-width: 768px) {
  .hero-content .btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* espace vertical entre les boutons */
    margin-top: 1.5rem; /* un peu de marge au-dessus */
  }
  .hero-content .btn-group .btn {
    width: 80%;        /* largeur 80% de l’écran pour respirer */
    max-width: 300px;  /* ne devient pas trop large */
  }
}