/* 
Theme Name: Astra Child
Template: astra
*/

/* ====== Styles pour la page produit digitale façon Entrepedia ====== */
.entrepedia-product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
}

.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.product-image img {
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-info {
  flex: 1;
  min-width: 320px;
}

.product-title {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 25px;
}

.product-meta p {
  margin: 6px 0;
  font-size: 1em;
}

.btn-buy {
  display: inline-block;
  background: linear-gradient(135deg, #6A3EF2, #B46DF7);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(106, 62, 242, 0.3);
}

.product-includes {
  background: #f8f7fc;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
}

.product-includes h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: 600;
}

.related-products {
  margin-top: 60px;
}

.related-products h2 {
  margin-bottom: 20px;
  font-size: 1.6em;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.related-item img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.related-item h3 {
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}

.badge {
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 10px;
  border-radius:6px;
  font-size:0.85em;
  font-weight:600;
  color:#fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ====== Styles Template Profil Skool-like ====== */

/* Conteneur global */
.profil-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Photo + couverture */
.profil-header { position: relative; margin-bottom: 20px; }
.profil-cover img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.profil-photo img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #fff; position: absolute; bottom: -60px; left: 20px; }

/* Onglets principaux */
.profil-tabs { display: flex; gap: 10px; margin-top: 80px; flex-wrap: wrap; }
.tab-link {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f5f5f5;
  transition: 0.3s;
}
.tab-link.active { background: #6200EE; color: #fff; border-color: #6200EE; }

/* Contenu onglet */
.tab-content { display: none; margin-top: 20px; }
.tab-content.active { display: block; }

/* Sous-onglets verticaux */
.profil-subtabs { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.subtab-link {
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #eee;
  transition: 0.3s;
}
.subtab-link.active { background: #6200EE; color: #fff; border-color: #6200EE; }

/* Cases champs */
.champ-profile {
  min-height: 50px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #f9f9f9;
  transition: 0.3s;
}
.champ-profile.vide { color: #999; font-style: italic; }
.champ-profile.rempli { background: #d4edda; border-color: #28a745; }

/* Responsive */
@media(max-width:768px){
  .profil-header { text-align:center; }
  .profil-photo img { position: static; margin: -60px auto 0 auto; display:block; }
  .profil-tabs, .profil-subtabs { flex-direction: column; }
}

/* ==============================
   Conteneur général
   ============================== */
.profil-container {
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==============================
   Onglets verticaux
   ============================== */
.profil-tabs {
    display: flex;
    gap: 20px;
}

.profil-subtabs {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
}

.profil-subtabs .subtab-link {
    padding: 12px 16px;
    cursor: pointer;
    border-left: 4px solid transparent;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.profil-subtabs .subtab-link:hover {
    background: #f0f0f0;
}

.profil-subtabs .subtab-link.active {
    border-left: 4px solid #7b5cf5; /* violet Skool */
    background: #f3f0ff;
    font-weight: 700;
    color: #5b21b6;
}

/* ==============================
   Contenu des onglets
   ============================== */
.profil-subtab-contents {
    flex: 1;
}

.subtab-content {
    display: none;
    padding-left: 20px;
}

.subtab-content.active {
    display: block;
}

/* ==============================
   Modules
   ============================== */
.module {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f8ff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.module h3 {
    margin-top: 0;
    color: #4b0082;
}

.module p {
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
}

/* ==============================
   Champs de saisie
   ============================== */
.module input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    font-size: 14px;
}

.module input[type="text"]:focus {
    outline: none;
    border-color: #7b5cf5;
    box-shadow: 0 0 0 2px rgba(123, 92, 245, 0.2);
}

/* ==============================
   Placeholder
   ============================== */
input::placeholder {
    color: #a1a1aa;
    font-style: italic;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
    .profil-tabs {
        flex-direction: column;
    }

    .profil-subtabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 15px;
    }

    .profil-subtabs .subtab-link {
        flex: 0 0 auto;
        border-radius: 8px;
    }

    .profil-subtab-contents {
        padding-left: 0;
    }
}

