/* ==========================
   RESET & BASE
========================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

ul { margin: 10px 0 20px 20px; }

/* ==========================
   LIENS
========================== */
a {
  color: #853A76; /* bordeaux par défaut */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #2E8B57; /* vert doux au survol */
  text-decoration: underline;
}
a:visited {
  color: #666; /* gris pour les liens déjà visités */
}

/* ==========================
   HEADER & FOOTER
========================== */
header {
  background: #fff;
  border-bottom: 3px solid #800060;
  padding: 15px 20px;
}

header .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

header img { height: 60px; margin: 0; }
header h1 { margin: 0; font-size: 24px; color: #800060; font-weight: 600; }
header p { margin: 0; font-size: 14px; color: #666; }

footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  font-size: 0.85em;
  border-top: 2px solid #853A76;
}

/* ==========================
   NAVIGATION
========================== */
nav {
  background: #f7f0f7;
  text-align: center;
  padding: 10px;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  color: #555;
}
nav a.active {
  color: #853A76;
  border-bottom: 2px solid #853A76;
  padding-bottom: 2px;
}

/* ==========================
   MAIN CONTENT CONTAINERS
========================== */
main {
  display: block;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


section { padding: 40px 20px; }

/* ==========================
   TITRES
========================== */
h2 {
  color: #853A76;
  margin: 30px 0 20px;
  text-align: center;
}
h3 {
  margin-top: 25px;
  color: #B58712;
}

/* ==========================
   BOUTONS
========================== */
button {
  background: #853A76;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
button:hover { background: #B58712; }

.btn-main {
  display: inline-block;
  padding: 28px 30px;
  margin: 15px 10px;
  background: #B58712;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.btn-main:hover {
  background: #853A76;
  color: #fff;
}

.btn-main2 {
  display: inline-block;
  padding: 28px 30px;
  margin: 15px 10px;
  background: #B58712;
  color: #fff !important;  /* force le texte en blanc */
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;   /* option : enlève le soulignement */
}
.btn-main2:hover {
  background: #853A76;
  color: #fff !important;  /* garde blanc même au survol */
}


/* --- Boutons spécifiques Hero --- */
.hero .btn-main {
  background: #B58712;
  color: #fff !important;
}
.hero .btn-main:hover {
  background: #853A76;
  color: #fff !important;
}

/* ==========================
   HERO
========================== */
.hero {
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
  background: #f9d9e5; /* bloc rose clair */
}
.hero h2 {
  margin-top: 0;
  font-size: 2em;
  color: #853A76;
}
.hero-image {
  display: block;
  margin: 20px auto 0 auto;
  max-height: 410px;
}

/* ==========================
   CTA (Call to Action)
========================== */
.cta {
  background: #2D7D7F;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta h2 { margin-bottom: 20px; font-size: 26px; color: #fff; }
.cta .btn-main { background: #fff; color: #853A76; }
.cta .btn-main:hover { background: #B58712; color: #fff; }




/* ==========================
   Boutons spéciaux Accueil haut
========================== */
.btn-box {
  display: inline-block;
  width: 220px;           /* même largeur pour tous */
  padding: 18px 20px;
  margin: 15px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  background: #B58712;
  border-radius: 6px;
  text-decoration: none;
}

.btn-box:hover {
  background: #853A76;
  color: #fff;
}



/* ==========================
   BLOCS GRAINES
========================== */
.graines-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  text-align: center;
}
.graine {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  font-weight: 600;
}

/* ==========================
   QUESTIONNAIRES
========================== */
.question {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}
.options label { display: block; margin: 5px 0; }

/* ==========================
   BLOCS RESULTATS
========================== */
#results {
  display: none;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
#results h2,
#results h3 {
  text-align: center;
  color: #853A76;
  margin-top: 20px;
}

/* Mini-décodage */
#interpretation {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* Archétype */
#archetypeBox {
  margin: 30px auto;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}
#archetypeBox h3 { color: #853A76; text-align: center; }
#archetypeBox h4 { text-align: center; font-size: 18px; margin-bottom: 10px; }
#archetypeBox ul { list-style: none; padding: 0; }
#archetypeBox ul li {
  margin: 8px 0;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
}
#archetypeBox ul li strong { color: #853A76; }

/* Profil complet */
.profil-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  color: #853A76;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.profil-link:hover { color: #B58712; }

/* ==========================
   BLOCS DOSHAS
========================== */
.dosha-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 8px solid;
}
.vata-box { border-color: #853A76; }
.pitta-box { border-color: #B58712; }
.kapha-box { border-color: #2E8B57; }
.dosha-box h3 { margin-top: 0; font-size: 22px; text-align: center; }
.dosha-box h4 { margin-top: 20px; font-size: 18px; color: #444; }

/* ==========================
   BLOCS RESSOURCES (général)
========================== */
.ressources-section {
  margin-top: 40px;
  padding: 25px;
  background: #fdf8fb;
  border: 2px solid #853A76;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ressources-section h3 {
  color: #853A76;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.ressources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  min-height: 220px;
}
.ressource {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px 20px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
  font-weight: 600;
  width: 200px;
}
.ressource a { color: #853A76; text-decoration: none; font-weight: bold; }
.ressource:hover { transform: translateY(-4px); background: #f9f2f7; }

/* Variante compacte : Centre de ressources */
.ressources-grid.small .ressource {
  padding: 6px 8px !important;
  min-height: auto !important;
  width: auto !important;
  font-size: 14px;
  line-height: 1.3;
}

/* ==========================
   BLOC PARCOURS
========================== */
.parcours-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.step {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 20px;
  width: 150px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}
.step h3 { margin-bottom: 10px; }
.step h3 a {
  color: #853A76;
  text-decoration: none;
  transition: color 0.3s;
}
.step:hover { background: #f9d9e5; border-color: #853A76; }
.step:hover h3 a { color: #800060; }

/* ==========================
   BLOC PRATIQUER
========================== */
.tabs { text-align:center; margin:20px 0; }
.tabs button {
  background:#f7f0f7;
  border:1px solid #853A76;
  color:#853A76;
  padding:10px 20px;
  margin:0 5px;
  border-radius:5px;
  cursor:pointer;
  font-weight:bold;
}
.tabs button.active { background:#853A76; color:#fff; }
.tab-content { display:none; margin-top:20px; }
.tab-content.active { display:block; }
.highlight {
  background:#fdf8fb;
  border:2px solid #853A76;
  border-radius:8px;
  padding:20px;
  margin:40px 0;
}
.highlight .buttons a {
  display:inline-block;
  margin:10px;
  padding:12px 20px;
  background:#853A76;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  transition:background 0.3s;
}
.highlight .buttons a:hover { background:#B58712; }

/* ==========================
   Bloc Centre de ressources
========================== */
.ressources-highlight {
  background: #f0f8f5;               /* vert clair */
  border: 2px solid #2D7D7F;        /* vert doux */
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
  text-align: center;
}

.ressources-highlight h3 {
  color: #2D7D7F;
  margin-bottom: 15px;
  font-size: 20px;
}

.ressources-highlight .buttons a {
  display: inline-block;
  width: 150px;           /* même largeur pour tous */
  margin: 8px;
  padding: 12px 20px;
  background: #2D7D7F;   /* bouton vert */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.ressources-highlight .buttons a:hover {
  background: #B58712;   /* or chaud au survol */
}

/* ==========================
   OSER – Cartes Ateliers
========================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.atelier-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.atelier-card h3 {
  cursor: pointer;
  font-size: 1.05em;
  margin: 0;
  padding: 12px 16px;
  background: #f5f5f5;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.atelier-card h3:hover {
  background: #853A76; /* violet */
  color: #fff;         /* texte blanc */
}

.atelier-card h3::after {
  content: "\25B8";
}

.atelier-card h3.active::after {
  transform: rotate(90deg);
}

.atelier-card .panel {
  display: none;
  padding: 14px 16px;
  background: #f5f5f5; /* gris léger */
  color: #000;         /* texte noir */
  font-weight: normal;
  line-height: 1.5;
}

.atelier-card .panel.active {
  display: block;
}

.atelier-card.active {
  grid-column: span 2; /* s’élargit sur 2 colonnes si actif */
}


/* ==========================
   OSER – Cartes Archétypes
========================== */
.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.archetype-card {
  background: #f9f9f9;
  border: 2px solid #853A76;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
  color: #853A76;
  text-align: center;
}

.archetype-card:hover {
  background: #853A76;
  color: #fff;
}

/* Modale Archétypes */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  text-align: left;
}
.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

/* ==========================
   STYLE TABLEAU GRAINES
========================== */
.graines-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* En-têtes */
.graines-table thead th {
  background: #f7f0f7; /* rose clair */
  color: #853A76;      /* violet */
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border-bottom: 2px solid #853A76;
}

/* Lignes */
.graines-table td {
  padding: 10px 14px;
  border: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

/* Alternance de couleurs */
.graines-table tbody tr:nth-child(even) {
  background: #fdf8fb; /* très léger rose */
}

/* Hover agréable */
.graines-table tbody tr:hover {
  background: #f9f2f7;
  transition: background 0.2s;
}

/* Colonnes doshas colorées subtilement */
.graines-table td:nth-child(2) { border-left: 4px solid #2E8B57; } /* Vata ? vert doux */
.graines-table td:nth-child(3) { border-left: 4px solid #B58712; } /* Pitta ? or */
.graines-table td:nth-child(4) { border-left: 4px solid #853A76; } /* Kapha ? violet */


/* ==========================
   RESPONSIVE DESIGN
========================== */

/* Pour les tablettes et petits écrans */


@media (max-width: 768px) {
  header .container { text-align: center; }

  nav a { display: inline-block; margin: 8px 10px; }

  main { margin: 20px; padding: 20px; }

  .parcours-cards,
  .graines-list,
  .ressources-grid {
    flex-direction: column;
    align-items: center;
  }

  .step,
  .graine,
  .ressource {
    width: 100% !important;
    max-width: 300px;
  }

  .hero-image { max-width: 90%; height: auto; }
}

/* Pour les très petits écrans (mobiles < 480px) */
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }

  .btn-main { padding: 10px 16px; font-size: 14px; }

  nav a { display: block; margin: 6px 0; }

  .graines-table {
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .graines-table td,
  .graines-table th { padding: 8px; }
}



/* ==========================
   NOUVEAU HEADER
========================== */



  header.home-header nav,
  nav.home-nav {
    background: transparent !important;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .home-header {
    background: radial-gradient(circle at 10% 20%, #165f63 0%, #0f3f43 40%, #0a282b 100%);
    color: #fff;
    padding: 18px 20px 24px; /* un peu moins haut que la home */
  }

  .home-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .home-logo {
    font-weight: 700;
    font-size: 22px;
    color: #f2b233;
    letter-spacing: 0.03em;
  }

  .home-nav {
    display: flex;
    gap: 20px;
    font-size: 15px;
  }

  .home-nav a {
    color: #e9f5f4;
    text-decoration: none;
    font-weight: 500;
  }

  .home-nav a:hover {
    color: #f2b233;
  }

  .home-nav a.active {
    color: #f2b233;
  }

  .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: #f2b233;
    color: #1a332f;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.25s ease, transform 0.15s ease;
  }

  .btn-primary:hover {
    background: #ffca43;
    transform: translateY(-1px);
  }
