/* ============================================================
   COMPONENTS — Éléments réutilisables dans plusieurs sections
============================================================ */


/* ── Section title (h2) ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-condensed);
  font-size: 56px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}


/* ── Lien avec flèche ───────────────────────────────────────── */
/* Utilisé dans : .hero-link, .card-link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--blue);
  padding: 4px 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  height: 24px;
  transition: background 0.15s, color 0.15s;
}

.link-arrow:hover {
  background: var(--blue);
  color: var(--white);
}

.link-arrow:hover svg path {
  stroke: var(--white);
}

/* Alias — utilisés directement dans le HTML */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  box-shadow: 0 1.5px 0 var(--blue);
  padding: 2px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  transition: box-shadow 0.15s ease;
}
.hero-link:hover { box-shadow: 0 3px 0 var(--blue); }
.hero-link img { transition: transform 0.2s ease; }
.hero-link:hover img { transform: translate(3px, -3px); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  box-shadow: 0 1.5px 0 var(--blue);
  padding: 2px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  align-self: flex-start;
  margin-top: auto;
  transition: box-shadow 0.15s ease;
}
.card-link:hover { box-shadow: 0 3px 0 var(--blue); }
.card-link img { transition: transform 0.2s ease; }
.card-link:hover img { transform: translate(3px, -3px); }


/* ── Icône flèche (SVG) ─────────────────────────────────────── */
.arrow-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}


/* ── Bouton "Prendre contact" (nav) ─────────────────────────── */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-medium);
  padding: 6px 10px;
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}

.btn-contact:hover {
  background: var(--blue);
  color: var(--white);
}


/* ── Tags (pill) ────────────────────────────────────────────── */
/* Base commune pour filter-tag, card-tag, instructor-tag */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  height: 26px;
  border: 1px solid var(--blue);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  border-radius: 2px;
  background: none;
  white-space: nowrap;
}

.filter-tag         { display: inline-flex; align-items: center; padding: 4px 8px; height: 26px; border: 1px solid var(--blue); font-family: var(--font-body); font-size: 16px; color: var(--dark); border-radius: 2px; background: none; white-space: nowrap; cursor: pointer; transition: background 0.15s, box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.filter-tag.active  { background: var(--blue-medium); box-shadow: 0 4px 12px rgba(15, 103, 255, 0.25); gap: 6px; }
.filter-tag.active::after { content: '×'; font-size: 14px; line-height: 1; opacity: 0.6; }
.filter-tag:hover   { background: var(--blue-light); }

.card-tag           { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--blue); font-family: var(--font-body); font-size: 16px; color: var(--dark); border-radius: 2px; background: none; }

.instructor-tag     { display: inline-flex; align-items: center; padding: 4px 8px; height: 26px; border: 1px solid var(--blue); font-family: var(--font-body); font-size: 16px; color: var(--dark); border-radius: 2px; background: none; }


/* ── Onglets (tabs) ─────────────────────────────────────────── */
.tabs {
  display: flex;
  align-items: stretch;
  position: relative;
}

.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1), height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab {
  padding: 8px 12px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  border: 1px solid var(--gray);
  line-height: 1;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

.tab.active {
  color: var(--blue);
  border-color: transparent;
}

.tab:hover:not(.active) {
  border-color: var(--blue-medium);
}

/* ── Transition fondu entre audiences ───────────────────────── */
[data-audience] {
  transition: opacity 0.22s ease;
}
[data-audience].tab-fade {
  opacity: 0;
}


/* ── Liens sociaux (X, LinkedIn, GitHub) ────────────────────── */
.social-link {
  display: inline-block;
  border: none;
  border-bottom: 1.5px solid var(--white);
  padding: 0 0 4px 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  white-space: nowrap;
  transition: opacity 0.15s;
}

.social-link:hover { opacity: 0.7; }


/* ── Dots de pagination (témoignages) ───────────────────────── */
.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.dot-active {
  width: 28px;
  height: 7px;
  background: var(--dark);
  border-radius: 41px;
}

.dot-inactive {
  width: 6px;
  height: 7px;
  background: var(--dark);
  border-radius: 50%;
  opacity: 0.4;
}


/* ── Cartes de formation ────────────────────────────────────── */
.training-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.card-header {
  background: var(--blue);
  padding: 20px 24px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Variantes de couleur pour les headers de cartes */
.card-header--orange { background: #E87038; }
.card-header--mint   { background: var(--green-mint); }

.card-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Placeholder picto — sans boîte */
.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
  flex: 1;
}

/* Décoration SVG — positionnée sur la droite, partiellement coupée */
.card-header-deco {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 200%;
  width: auto;
  opacity: 0.45;
}

.card-body {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Variantes de fond pour les corps de cartes */
.card-body--blue       { background: var(--blue-light); }
.card-body--peach      { background: var(--peach); }
.card-body--mint       { background: var(--green-light); }
.card-body--lavender   { background: var(--lavender); }
.card-body--cream      { background: var(--cream); }
.card-body--pink-white { background: var(--pink-white); }

.card-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.card-tags--pad {
  padding-bottom: 35px;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-detail-row {
  display: flex;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.detail-label {
  font-weight: 800;
  white-space: nowrap;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  line-height: 1.6;
}


/* ── Cartes formateurs ──────────────────────────────────────── */
.instructor-photo {
  width: 470px;
  height: 630px;
  border-radius: var(--radius-large);
  overflow: hidden;
  flex-shrink: 0;
  /* Fond de couleur affiché si l'image est absente */
  background: linear-gradient(135deg, #e8d0c0, #c07050);
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.instructor-info-card {
  flex: 1;
  min-height: 630px;
  border-radius: var(--radius-large);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.instructor-info-card--blue   { background: var(--blue-medium); }
.instructor-info-card--yellow { background: var(--yellow-light); }

.instructor-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instructor-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.instructor-name-role {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.instructor-name {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
}

.instructor-role {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}

.instructor-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: -12px;
}

.instructor-bio {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  line-height: 1.65;
  padding-bottom: 24px;
}


/* ── Cartes méthode ─────────────────────────────────────────── */
.method-card {
  background: var(--blue-light);
  border-radius: var(--radius-large);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 470px;
}

.method-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.method-card-icon {
  width: 80px;
  flex-shrink: 0;
}

.method-card-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  min-height: calc(36px * 1.2 * 3);
  flex: 1;
}

.method-card-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--dark);
  line-height: 1.65;
  text-align: left;
}

.method-card-title {
  text-align: left;
}
