/* =========================
   HIT — style.css (clean)
   ========================= */

/* ----- Variables ----- */
:root{
  --bg-page:#020617;
  --bg-card:#0b1c2d;
  --bg-input:#071522;
  --border:#132c45;
  --border-soft:#22415f;

  --text:#e8eef6;
  --muted:#cfd8e3;

  --primary:#1b6fdc;
  --primary-hover:#155ab0;
  --accent:#4da3ff;

  --nav-h:120px; /* ajuste si besoin */
}

/* ----- Reset ----- */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

/* ----- Base ----- */
body{
  background:var(--bg-page);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  line-height:1.6;
  padding-top:var(--nav-h); /* évite le contenu sous le menu fixe */
}

a{ color:inherit; text-decoration:none; }

/* ----- Navigation ----- */
.site-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:9999;
  background:rgba(2,6,23,.98);
  border-bottom:1px solid rgba(19,44,69,.8);
  backdrop-filter:blur(6px);
}

.site-nav .nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.site-nav ul.menu{ list-style:none; display:flex; gap:12px; align-items:center; }

.site-nav a{
  padding:6px 12px;
  border-radius:999px;
}

.site-nav a:hover{ background:rgba(255,255,255,.06); color:#fff; }

/* ----- Boutons ----- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  border:0;
  cursor:pointer;
  font-weight:800;
}

.btn:hover{ background:var(--primary-hover); }
.btn-block{ width:100%; }

/* =========================
   OFFRES (mutualisés)
   ========================= */
.offers-wrap{ max-width:1200px; margin:40px auto; padding:0 16px; }
.offers-title{ text-align:center; margin:0 0 22px; }

.offers-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}

.offer-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 16px 18px;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  transition:transform .12s ease, box-shadow .12s ease;
}

.offer-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.45);
}

.offer-card h3{ margin:0 0 8px; color:#fff; font-weight:900; font-size:1.05rem; }

.offer-price{
  margin:12px 0 14px;
  font-size:1.4rem;
  font-weight:900;
  color:var(--accent);
}

.offer-card .btn{ width:100%; border-radius:8px; }

/* =========================
   COMPAT VPN / SAUVEGARDE
   (si pages utilisent cards-grid/card OU offres-container/offre-item)
   ========================= */
.cards-grid,
.offres-container{
  max-width:1200px;
  margin:40px auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}

.card,
.offre-item{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 16px 18px;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  color:var(--text);
}

.card h2,.card h3,
.offre-item h2,.offre-item h3{ color:#fff; margin:0 0 8px; }

.card p,.card li,
.offre-item p,.offre-item li{ color:var(--muted); }

/* =========================
   PANIER
   ========================= */
.cart-container{ max-width:1200px; margin:40px auto; padding:0 16px; }

.cart-header{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}

.cart-items{
  width:100%;
  border-collapse:collapse;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}

.cart-items th{
  background:rgba(255,255,255,.06);
  text-align:left;
  font-weight:900;
  padding:12px;
}

.cart-items td{
  padding:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.cart-total{
  margin-top:14px;
  text-align:right;
  font-weight:900;
  font-size:1.2rem;
}

@media (max-width:700px){
  .cart-items thead{ display:none; }
  .cart-items,.cart-items tbody,.cart-items tr,.cart-items td{ display:block; width:100%; }
  .cart-items tr{ border-top:1px solid rgba(255,255,255,.08); padding:8px 0; }
  .cart-items td{
    border:none;
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
  }
  .cart-items td:before{
    content:attr(data-label);
    font-weight:900;
    color:var(--muted);
  }
}

/* =========================
   SUPPORT TICKET
   ========================= */
.ticket-wrap{ max-width:1100px; margin:40px auto; padding:0 16px; }

.ticket-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:18px;
  align-items:start;
}

.ticket-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}

.ticket-card h2,.ticket-card h3{ margin:0 0 12px; color:#fff; }

.ticket-form label{ display:block; margin:10px 0 6px; font-weight:800; color:var(--muted); }

.ticket-form input,
.ticket-form select,
.ticket-form textarea{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid var(--border-soft);
  background:var(--bg-input);
  color:var(--text);
  outline:none;
}

.ticket-form textarea{ min-height:130px; resize:vertical; }

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(77,163,255,.15);
}

@media (max-width:900px){
  .ticket-grid{ grid-template-columns:1fr; }
}

/* =========================
   FOOTER
   ========================= */
footer{
  margin-top:30px;
  padding:18px 0;
  background:rgba(2,6,23,.98);
  border-top:1px solid rgba(19,44,69,.8);
  color:var(--muted);
}
/* ===== VPN / Sauvegarde : cards-grid / card ===== */
.cards-grid{
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  color: var(--text);

  /* bouton en bas */
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h2{
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.card-desc{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 12px;

  /* optionnel: limite la hauteur pour des cartes plus “propres” */
  max-height: 7.2em;
  overflow: hidden;
}

.card-price{
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
}

.btn-row{ margin-top: auto; }
.card .btn{ width: 100%; border-radius: 8px; }
/* ===== VPN / Sauvegarde : cards-grid / card ===== */
.cards-grid{
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  color: var(--text);

  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h2{
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.card-desc{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 12px;
  max-height: 7.2em;
  overflow: hidden;
}

.card-price{
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
}

.btn-row{ margin-top: auto; }
.card .btn{ width: 100%; border-radius: 8px; }
/* Header du panier */
.cart-header {
  background-color: #0b1c2d; /* Bleu nuit */
  color: #fff; /* Texte en blanc */
  font-weight: bold; /* Texte en gras */
  padding: 12px 16px; /* Un peu d’espace autour du texte */
  font-size: 1.2rem; /* Taille du texte un peu plus grande */
  text-align: center; /* Centrer le texte */
}
/* En-tête de la table dans le panier */
.cart-table thead th {
  background-color: #0b1c2d; /* Bleu nuit */
  color: #fff; /* Texte en blanc */
  font-weight: bold; /* Texte en gras */
  padding: 10px; /* Espacement autour du texte */
  text-align: center; /* Centrer le texte */
}
/* Cible tous les th dans l'en-tête de la table, peu importe la classe ou l'ID */
table thead th {
  background-color: #0b1c2d; /* Bleu nuit */
  color: #fff; /* Texte blanc */
  font-weight: bold; /* Texte en gras */
  padding: 10px; /* Espacement autour du texte */
  text-align: center; /* Centrer le texte */
}

/* Si les colonnes sont spécifiquement dans un conteneur avec une classe, tu peux l'ajouter ici */
.cart-table thead th {
  background-color: #0b1c2d; 
  color: #fff;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}
/* Forcer le style avec !important si nécessaire */
.cart-table thead th {
  background-color: #0b1c2d !important;
  color: #fff !important;
  font-weight: bold !important;
  padding: 10px !important;
  text-align: center !important;
}
/* Cible l'en-tête de la table spécifiquement par son ID ou classe */
table thead th {
    background-color: #0b1c2d !important; /* Bleu nuit */
    color: #fff !important; /* Texte blanc */
    font-weight: bold !important; /* Texte en gras */
    padding: 10px !important; /* Espacement */
    text-align: center !important; /* Alignement centré */
}

/* Si la table est dans une div avec une classe .cart-table (ou autre), cible-le de cette manière */
.cart-table thead th {
    background-color: #0b1c2d !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 10px !important;
    text-align: center !important;
}

/* Assurez-vous qu'il n'y a pas d'autres règles qui interfèrent, et qu'il n'y a pas un autre sélecteur plus spécifique */
.hero .content {
  max-width: 700px;
  margin-inline: auto;
  text-align: left;
  padding-inline: 16px;
}
/* ===== HOME HERO: centrer le contenu dans la page ===== */
.section-inner{
  max-width:1100px;
  margin-inline:auto;
  padding-inline:16px;
}

/* Optionnel: un peu d’air si tes sections n’en ont pas */
.section{
  padding-inline: 0; /* on gère via .section-inner */
}

/* ===== HOME HERO: éviter l’effet "collé à gauche" ===== */
.section-first .section-inner{
  /* ton grid est en inline style, donc on touche juste le centrage global */
  align-items: center;
}

/* Si tu veux que le bloc texte (colonne gauche) ne prenne pas toute la largeur */
.section-first .section-inner > div:first-child{
  max-width: 680px;
}
.site-nav li.has-dropdown{ position:relative; }

.site-nav ul.dropdown{
  list-style:none;
  display:none;              /* important */
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:220px;
  padding:8px;
  border-radius:12px;
  background:rgba(2,6,23,.98);
  border:1px solid rgba(19,44,69,.9);
  box-shadow:0 12px 28px rgba(0,0,0,.45);
  flex-direction:column;     /* important */
  gap:0;
  z-index:9999;
}

.site-nav li.has-dropdown:hover > ul.dropdown{
  display:flex;
}

.site-nav ul.dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  white-space:nowrap;
}

.site-nav ul.dropdown a:hover{
  background:rgba(255,255,255,.07);
}
.site-nav li.has-dropdown{
  position: relative;
}

.site-nav ul.dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(2,6,23,.98);
  border: 1px solid rgba(19,44,69,.9);
  border-radius: 12px;
  padding: 8px;
  z-index: 9999;
}

/* ouverture stable */
.site-nav li.has-dropdown:hover > ul.dropdown,
.site-nav li.has-dropdown:focus-within > ul.dropdown{
  display: block;
}

/* zone invisible anti-clignotement */
.site-nav li.has-dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  margin-left:6px;
  background:rgba(77,163,255,.18);
  border:1px solid rgba(77,163,255,.5);
  color:#fff;
  font-size:.75rem;
  font-weight:900;
  line-height:1;
}
/* Les items de la grille s’étirent */
.cards-grid,
.offers-grid{
  align-items: stretch;
}

/* Toutes les cartes deviennent flex-col et prennent la hauteur dispo */
.card,
.offer-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Le bouton (ou la zone boutons) se colle en bas */
.card .btn-row,
.offer-card .btn-row{
  margin-top: auto;
}
/* Les éléments dans les grilles prennent toute la hauteur de leur cellule */
.cards-grid > *,
.offers-grid > *{
  height: 100%;
}

/* Et si la carte est à l’intérieur d’un wrapper, on couvre aussi */
.cards-grid > * > .card,
.offers-grid > * > .offer-card{
  height: 100%;
}

/* Cartes en colonne + bouton en bas */
.card,
.offer-card{
  display: flex;
  flex-direction: column;
}

.card .btn-row,
.offer-card .btn-row{
  margin-top: auto;
}
.card, .offer-card { display:flex; flex-direction:column; }
.card .btn-row, .offer-card .btn-row { margin-top:auto; }
.offer-card{
  display:flex;
  flex-direction:column;
}

.offer-price{ margin-top:auto; }   /* pousse le prix vers le bas */
.offer-card .btn{ margin-top:10px; } /* bouton après le prix */
/* Carte = grille interne : le <details> prend l’espace restant */
.offer-card{
  display: grid;
  grid-template-rows: auto auto 1fr auto auto; /* titre, features, details(=stretch), prix, bouton */
  height: 100%;
}

/* Important pour éviter que le <details> déborde dans une grille */
.offer-details{
  min-height: 0;
}

/* Le bouton reste bien en bas */
.offer-card .btn{
  align-self: end;
}

/* ===== FIX PAGE CHECKOUT ===== */
.checkout-wrap{
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.checkout-grid{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.checkout-form,
.checkout-summary{
  width: 100%;
}

.form-grid{
  display: grid;
  gap: 16px;
}

.form-grid.two{
  grid-template-columns: 1fr 1fr;
}

input,
textarea,
select{
  width: 100%;
}

/* Mobile */
@media (max-width: 900px){
  .checkout-grid{
    grid-template-columns: 1fr;
  }

  .form-grid.two{
    grid-template-columns: 1fr;
  }
}
.checkout-summary .btn + .btn{
  margin-top: 12px;
}
hr { border: 0; height: 1px; background: rgba(255,255,255,.08); }
.ticket-wrap {
  max-width: 1100px;   /* largeur confortable */
  margin: 0 auto;      /* 🔥 centre horizontalement */
  padding: 0 16px;     /* marge sur mobile */
}

.admin-card {
  max-width: 1100px;
  margin: 0 auto;
}
.card-desc.clamp-5{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-more{
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  cursor: pointer;
}
/* état replié */
.card-desc.clamp-5{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* état déroulé (force le reset) */
.card-desc.is-open{
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
}
.card-desc.clamp-5{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-more{
  display: inline-block !important;
  margin-top: 8px !important;
  text-decoration: underline !important;
  color: #000 !important;
  font-weight: 600 !important;
}
.link-more{
  display: inline-block;
  margin-top: 8px;
  color: orange;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.link-more:hover{
  text-decoration: underline;
}
/* Force le style du lien "Voir plus" */
a.link-more{
  color: #ff7a00 !important;   /* orange visible */
  font-weight: 700 !important; /* gras */
  text-decoration: underline !important;
}

a.link-more:hover{
  opacity: 0.85;
}
.card-desc.clamp-5{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc.is-open{
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
}

/* Orange + gras */
a.link-more{
  color: #ff7a00 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}

/* Changer la couleur du texte pour les tickets dans mes_tickets.php */
.admin-table td {
    color: black; /* Assurez-vous que le texte est en noir pour qu'il soit lisible */
}

/* Modifier la couleur des lignes de la table pour que le texte soit visible */
.admin-table tr {
    background-color: #f9f9f9; /* Un léger fond gris pour les lignes de la table */
}

.admin-table tr:nth-child(even) {
    background-color: #f1f1f1; /* Fond gris clair pour les lignes paires pour un meilleur contraste */
}

/* Si vous souhaitez spécifiquement colorier le texte dans la colonne "Référence" ou d'autres colonnes */
.admin-table td a {
    color: #333; /* Lien de référence en noir */
    text-decoration: none; /* Éviter les soulignements */
}

.admin-table td a:hover {
    color: #007BFF; /* Un bleu pour le survol des liens */
}
/* état replié */
.card-desc.clamp-5{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* état déroulé */
.card-desc.is-open{
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
}

/* lien orange */
a.link-more{
  color: #ff7a00 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}
a.link-more:hover{ opacity: .85; }

