/* ---- Style général ---- */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(90deg, #f0eeee, #cfd0d1);
  color: #1b1b1b;
  margin: 0;
  padding: 0;
}

main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid #f1f1f1;
    margin-top: 80px; /* Ajustez selon la hauteur réelle de votre topbar */

}



/* ---- Boutons ---- */
a[role="button"],
button.redButton,
input[type="submit"] {
  display: inline-block;
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
  box-shadow: 0 1px 1px 1px #d83c3c;
}

a[role="button"]:hover,
button.redButton:hover,
input[type="submit"]:hover {
  background: #d83c3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px 5px rgba(216, 60, 60, 0.3);
}

/* ---- Variante secondaire ---- */
a.secondary,
button.secondary {
  background: #f1f3f4;
  color: #333;
  box-shadow: 0 4px 0 #c2c2c2;
}

a.secondary:hover,
button.secondary:hover {
  background: #e5e7e9;
  transform: translateY(-2px);
}

/* ---- Bouton spécial "Télécharger extension" ---- */
.downloadExtension {
  display: inline-block;
  margin-top: 30px;
  background: #212121;
  color: #fff;
  font-size: 1.3rem;
  padding: 1em 2.2em;
  border-radius: 14px;
  box-shadow: 0 6px 0 #000;
  transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.2s ease;
}

.downloadExtension:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.25);
}

a[role="button"].subscribPlan {
  display: inline-block;
  margin-top: 30px;
  background: #32b186;
  color: #fff;
  font-size: 1.3rem;
  padding: 1em 2.2em;
  border-radius: 14px;
  box-shadow: 0 3px 3px 3px #066449;
  transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.2s ease;
}

a[role="button"].subscribPlan:hover {
  background: #45ecb5;
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.25);
}










/* ---- Formulaire ---- */
form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #444;
}

form input {
  width: 100%;
  padding: 12px 14px;
  background: #f6f6f6;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus {
  outline: none;
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}

/* ---- Vidéo ---- */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* ratio 16/9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* ---- Pied de page ---- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #202124;
  color: #f5f5f5;
  text-align: center;
  padding: 14px 0;
  font-size: 0.9rem;
  border-top: 3px solid #ff5252;
  letter-spacing: 0.5px;
  z-index: 1000;
}


.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: #202124;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Topbar scrollable sur mobile */
@media (max-width: 768px) {
  .topbar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
    scrollbar-width: thin; /* Firefox */
    padding: 0.8rem 1rem;
    gap: 1rem;
  }

  /* Quand le dropdown est ouvert, couper l'overflow clip pour laisser le menu sortir */
  .topbar:has(.dropdown.open) {
    overflow: visible;
  }

  .topbar::-webkit-scrollbar {
    height: 4px;
  }

  .topbar::-webkit-scrollbar-track {
    background: #333;
  }

  .topbar::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 2px;
  }

  .topbar .nav-left,
  .topbar .nav-right,
  .topbar .nav-lang {
    flex-shrink: 0; /* empêche les éléments de rétrécir */
  }

  .topbar .nav-lang {
    margin-right: 16px;
  }

  .topbar a,
  .topbar .dropdown-toggle {
    white-space: nowrap; /* empêche le retour à la ligne */
  }
}
.topbar .nav-left,
.topbar .nav-right,
.topbar .nav-lang {
  display: flex;
  align-items: center;
  
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

.topbar .nav-lang{
  margin-left: auto;
  margin-right: 40px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .2s ease, transform .2s ease;
}

.topbar a:hover { color: #ff5252; transform: translateY(-1px); }

.lang-form select {
  position: right;

  background-color: #202124;
  color: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 1.2rem; /* augmente la taille du texte du select */
  padding: 8px 12px; /* agrandit la zone cliquable */
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.lang-form select:hover { background-color: #2c2f34; }
.lang-form select:focus { outline: none; border-color: #ff5252; }



.features {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.features .container {
  font-weight: 500; /* ou 'bold' */
  max-width: 800px;
  margin: 0 auto;
}

.features h1, h2, h3, h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.features li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.8rem 0;
}

.features p {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

.conection.validate {
  display: inline-block;
  background-color: #7ce5f3;
  color: #fcfcfd;
  text-shadow:
    -1px -1px 0 rgb(64, 160, 197),
     1px -1px 0 rgb(64, 160, 197),
    -1px  1px 0 rgb(64, 160, 197),
     1px  1px 0 rgb(64, 160, 197);
  border: 1px solid #b3d1ff;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 74, 173, 0.1);
}

.conection.validate:hover {
  background: #b3d1ff;
  
}

.features .container .subscribPlan a.downloadExtension {
  margin-top: 20px;

}



.remember_check-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.remember_check-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
}


/* --- Dropdown topbar --- */
/* --- Dropdown topbar --- */
.topbar .dropdown {
  position: relative;
}

.topbar .dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  padding: 0;
}

.topbar .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  margin-top: 8px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  list-style: none;
  display: none;
  z-index: 2000;
}

.topbar .dropdown-menu li {
  padding: 0;
}

.topbar .dropdown-menu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  white-space: nowrap;
}

.topbar .dropdown-menu a:hover {
  background: #f4f6fa;
}

/* 🔑 ouverture contrôlée par JS */
.topbar .dropdown.open .dropdown-menu {
  display: block;
}


.line-cool{
  margin-top:20px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  flex-direction: row;

}


.checkbox-cool{
  width:18px;
  height:18px;
  margin-right:8px;
}

select[name="country_code"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
  background-color: #fff;

  border: 1px solid #ccc;
  border-radius: 6px;

  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol */
select[name="country_code"]:hover {
  border-color: #999;
}

/* Effet au focus */
select[name="country_code"]:focus {
  outline: none;
  border-color: #4f46e5; /* bleu doux */
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Option par défaut (placeholder) */
select[name="country_code"] option[value=""] {
  color: #999;
}

/* ============================
   audioPlayer.php styles
   ============================ */
.audio-player-page {
  font-family: system-ui, sans-serif;
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.card .row button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
}

.time {
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  text-align: right;
}

.label {
  min-width: 70px;
}

/* ============================
   mySubscribe.php styles
   ============================ */
main.my-subscribe-page {
  max-width: 920px;
  margin: 24px auto;
  padding: 80px 16px 0;
  
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.muted {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.kv {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.kv .k {
  color: #666;
  font-size: 13px;
  margin-bottom: 6px;
}

.kv .v {
  font-size: 16px;
  color: #111;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  white-space: nowrap;
}

.badge--ok {
  border-color: #bfe6c8;
  background: #eef9f1;
  color: #1f6b2b;
}

.badge--warn {
  border-color: #f0d6a6;
  background: #fff6e6;
  color: #7a4b00;
}

.badge--muted {
  border-color: #e7e7e7;
  background: #f6f6f6;
  color: #555;
}

a[role="button"].danger {
  border-color: #f0b7b7;
  background: #fff1f1;
  color: #8a1f1f;
}

a[role="button"].danger:hover {
  filter: brightness(0.98);
}

/* ============================
   profile.php styles
   ============================ */
main.profile-page {
  max-width: 920px;
  margin: 24px auto;
  padding: 0 16px;
}

main.profile-page section {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

main.profile-page h1 {
  margin: 0 0 12px;
}

main.profile-page ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

main.profile-page li {
  margin: 6px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  max-width: 420px;
}

.field label {
  font-size: 14px;
  color: #444;
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.12);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 14px;
  display: none;
}

.flash.show {
  display: block;
}

.flash--success {
  border: 1px solid #cfe9d6;
  background: #eef9f1;
  color: #1f6b2b;
}

.flash--error {
  border: 1px solid #f3c7c7;
  background: #fff1f1;
  color: #8a1f1f;
}

button.secondary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Shared section styles */
section {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

.save-button {
  background-color: #32b186;
  color: #fff;
  border: none;
  width:auto;
  height:auto;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.save-button:hover {
  background-color: #28a573;
  box-shadow: 0 4px 12px rgba(40, 165, 115, 0.3);
}

/* ============================
   offer.php - Plans Grid
   ============================ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.plan-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.plan-card--premium {
  border-color: #dfe9ff;
}

.plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card__header h4 {
  margin: 0;
}

.plan-badge {
  border: 1px solid #e7e7e7;
  background: #f6f6f6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.plan-badge--premium {
  border-color: #4f8cff;
  background: #4f8cff;
  color: #fff;
}

.plan-card__desc {
  margin: 10px 0 0;
  color: #555;
}

.plan-card__list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.plan-card__action {
  margin-top: 12px;
}

.plan-card__action a[role="button"] {
  margin-top: 0;
}

.offer-summary {
  margin-top: 16px;
}

.offer-cta {
  margin-top: 12px;
}

.btn-see-offers {
  background: #d6dbe6 !important;
}

/* Responsive mobile - Plans */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================
   index.php - Home Hero
   ============================ */
.home-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

.home-hero__content {
  flex: 1;
}

.home-hero__content h1 {
  margin: 0 0 1rem;
}

.home-hero__content p {
  margin: 0 0 1rem;
  color: #555;
}

.home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__buttons a[role="button"] {
  margin-top: 0;
}

.home-hero__image {
  flex-shrink: 0;
}

.home-hero__image img {
  max-width: 300px;
  height: auto;
  display: block;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .home-hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-hero__content {
    width: 100%;
  }

  .home-hero__buttons {
    justify-content: center;
  }

  .home-hero__image img {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ============================
   Dashboard Grid (logged-in)
   ============================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4e8ed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #333;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dash-card__icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
}

.dash-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.dash-card__desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.4;
}

/* Variantes */
.dash-card--free {
  border-color: #a8e6cf;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.dash-card--premium {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

.dash-card--account {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.dash-card--cta {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.dash-card--cta .dash-card__title {
  color: #b45309;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .dash-card {
    padding: 20px 14px 16px;
  }
  .dash-card__icon {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}