/* =========================================================
   Ajouts portfolio — outils, cartes projets, boutons, contact
   Utilise uniquement les variables du thème (main.css) :
   fonctionne en mode sombre et en mode clair.
   ========================================================= */

/* ---------- Boutons secondaires (contour) ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 52px;
  border: 1px solid var(--ztc-border-border-1);
  color: var(--ztc-text-text-1);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s20);
  font-weight: var(--ztc-weight-semibold);
  line-height: 20px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--ztc-bg-btn-bg1);
  color: var(--ztc-bg-btn-bg1);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Outils techniques (cartes logo + %) ---------- */
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ztc-text-text-1);
}
.skill-group-title i { color: var(--ztc-bg-btn-bg1); font-size: 18px; }
/* Cartes compactes : même style que le thème, en plus petit */
.skill-section-area .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.skill-section-area .skill-boxarea { padding: 14px 6px; margin-bottom: 12px; }
.skill-section-area .skill-boxarea .icons { width: 56px; height: 56px; line-height: 56px; }
.skill-section-area .skill-boxarea .icons img { width: 34px; height: 34px; object-fit: contain; }
.skill-section-area .skill-boxarea .space24 { height: 12px; }
.skill-section-area .skill-boxarea .space16 { height: 6px; }
.skill-section-area .skill-boxarea h3 { font-size: 22px; line-height: 24px; }
.skill-section-area .skill-boxarea p { font-size: 13px; line-height: 16px; }
.skill-group-title { font-size: 20px; margin-bottom: 14px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--ztc-border-border-1);
  color: var(--ztc-text-text-1);
  font-size: 14px;
  line-height: 1.2;
}

/* ---------- Cartes projets ---------- */
.click-here { cursor: pointer; }
.project-info { margin-top: 12px; }
.project-info .project-type {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ztc-bg-btn-bg1);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-info p {
  margin: 0 0 14px;
  color: var(--ztc-text-text-1);
  opacity: 0.8;
  font-size: 16px;
  line-height: 1.5;
}
.project-info .tag-list { margin-bottom: 18px; }
.project-info .tag-list li { font-size: 13px; padding: 5px 10px; }
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Le thème agrandit tous les liens des cartes projets : on remet les boutons à leur taille */
.portfolio-section-area .project-actions a.vl-btn1,
.portfolio-section-area .project-actions a.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1;
}
.portfolio-section-area .project-actions a.vl-btn1 { color: var(--ztc-text-btn-text1); }
.portfolio-section-area .project-actions a.vl-btn1:hover { color: var(--ztc-text-text-1); }
.portfolio-section-area .project-actions a.btn-outline:hover { color: var(--ztc-bg-btn-bg1); }

/* ---------- Contact : email + téléphone ---------- */
.contact-simple { list-style: none; margin: 0; padding: 0; }
.contact-simple li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ztc-text-text-1);
}
.contact-simple li + li { margin-top: 18px; }
.contact-simple i {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ztc-bg-btn-bg1);
  color: var(--ztc-text-btn-text1);
  font-size: 18px;
}
.contact-simple a { color: var(--ztc-text-text-1); transition: color 0.3s; min-width: 0; }
.contact-simple a:hover { color: var(--ztc-bg-btn-bg1); }

/* ---------- Graphisme : carte texte + carrousel qui défile ---------- */
.gfx-card {
  padding: 32px 0 26px;
  border-radius: 16px;
  background: var(--glass, var(--ztc-bg-bg2));
  border: 1px solid var(--ztc-border-border-2);
  overflow: hidden;
}
.gfx-card-head { padding: 0 32px; max-width: 760px; }
.gfx-card-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ztc-text-text-1);
}
.gfx-card-head h3 i { color: var(--ztc-bg-btn-bg1); font-size: 20px; }
.gfx-card-head p {
  margin: 0;
  color: var(--ztc-text-text-1);
  opacity: 0.75;
  font-size: 17px;
  line-height: 1.6;
}
.gfx-marquee {
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.gfx-track {
  display: flex;
  width: max-content;
  animation: gfx-scroll var(--gfx-duration, 80s) linear infinite;
}
/* défilement continu : aucune pause au survol, au clic ou au toucher */
.gfx-track { animation-play-state: running !important; will-change: transform; }
.gfx-group { display: flex; gap: 16px; padding-right: 16px; }
.gfx-item {
  display: block;
  flex: 0 0 auto;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ztc-border-border-2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.gfx-item img {
  display: block;
  height: 100%;
  width: auto;
  transition: transform 0.5s ease;
}
.gfx-item:hover { border-color: var(--ztc-bg-btn-bg1); transform: translateY(-4px); }
.gfx-item:hover img { transform: scale(1.04); }
.gfx-hint {
  margin: 18px 32px 0;
  font-size: 14px;
  color: var(--ztc-text-text-1);
  opacity: 0.55;
}
.gfx-hint i { margin-right: 6px; }
@keyframes gfx-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (hover: none) { .gfx-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .gfx-track { animation: none; }
  .gfx-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gfx-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 767px) {
  .contact-section-area .contact-boxarea { padding: 24px 18px; }
  .contact-simple li { font-size: 18px; gap: 12px; }
  .contact-simple i { flex-basis: 40px; height: 40px; font-size: 16px; }
  .btn-outline, .cta-row .vl-btn1 { font-size: 16px; padding: 14px 18px; }
  .gfx-card { padding: 24px 0 20px; }
  .gfx-card-head { padding: 0 20px; }
  .gfx-card-head h3 { font-size: 22px; }
  .gfx-card-head p { font-size: 15px; }
  .gfx-item { height: 220px; }
  .gfx-group { gap: 12px; padding-right: 12px; }
}
