@import url('switzer.css');

:root {
  --bg: rgba(255, 255, 255, 0.9);
  --accent: #111;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Switzer-Variable", sans-serif;
  line-height: 1.5;
  background-color: #FFFFFF;
  padding-top: 80px;
  padding-bottom: 60px;

}

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 10px 20px;
  display: flex;
  gap: 16px;
  z-index: 999;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateX(-50%) translateY(-40px); /* ← on cumule ici */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out; 
}

header.appear {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* On garde X, on annule Y */
}



.icon-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
  border-radius: 50%;
}

.icon-link::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.icon-link:hover::before {
  opacity: 1;
}

.icon-link img {
  position: relative;
  width: 18px;
  height: 18px;
  z-index: 1;
  filter: grayscale(100%) brightness(0.3);
  transition: filter 0.3s ease;
}

.icon-link:hover img {
  filter: grayscale(0%) brightness(1);
}

.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

header .tooltip {
  top: 125%;
  /* en dessous */
  transform: translateY(4px);
}

footer .tooltip {
  bottom: 125%;
  /* au-dessus */
  transform: translateY(-4px);
}

.icon-link:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

main {
  padding: 40px 20px;
  text-align: center;
}


.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

/* Bloc : photo + nom + badges */
.profile-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #eee;
}

.profile-block h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #111;
  line-height: 50px;
}

.profile-block p {
  font-size: 1rem;
  color: #555;
  max-width: 100%;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mega-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  background-color: #eee;
  /* fallback si pas inline */
  transition: background-color 0.3s ease;
}

.mega-badge img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;

  /*filter: grayscale(60%);*/
}

.badge-pin {
  filter: invert(6%) sepia(97%) saturate(6062%) hue-rotate(338deg) brightness(94%) contrast(103%);
}

.badge-available {
  filter: invert(39%) sepia(80%) saturate(866%) hue-rotate(71deg) brightness(88%) contrast(107%);
}

.badge-nie {
  filter: brightness(0) saturate(100%) invert(38%) sepia(89%) saturate(6978%) hue-rotate(15deg) brightness(103%) contrast(84%);
}

.badge-nss {
  filter: brightness(0) saturate(100%) invert(27%) sepia(71%) saturate(3735%) hue-rotate(186deg) brightness(92%) contrast(98%);
}

/* Bloc : texte avec titre + contenu */
.text-block h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #111;
}

.text-block h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #111;
}

.text-block p {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.text-block ul,
li {
  margin-left: 15px;
}

/* Bloc image pleine largeur */
.full-width-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Bloc titre centré + texte */
.center-text-block h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #111;
}

.center-text-block p {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  color: #444;
  font-size: 1rem;
}

hr {
  width: 60%;
  margin: 2rem auto;
  height: 1px;
  background-color: #ccc;
  border: none;
  opacity: 0.3;
}

/* Bloc contact */
.contact-block h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #111;
}

.contact-block p {
  text-align: justify;
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
}

/* Cartes contact */
.contact-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 250px;
  min-height: 160px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #eeeeee;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ⬅️ place le contenu en haut et bas */
  align-items: flex-start;
  /* ⬅️ aligne à gauche */
}

.contact-card:hover {
  background-color: #cccccc;
  transform: translateY(-2px);
}

.contact-card img {
  width: 40px;
  height: 40px;
  filter: grayscale(40%);
  margin-bottom: 10px;
}

.contact-card span,
a {
  font-size: 1rem;
  color: #000000;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.project-block {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /*background-color: #fff;*/
}

.project-block img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.project-block h3 {
  font-size: 1.3rem;
  color: #111;
  margin: 0;
}

.project-block p {
  font-size: 1rem;
  color: #444;
  text-align: left;
  line-height: 1.6;
}

.project-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #eeeeee;
  border: none;
  border-radius: 6px;
  color: #000000;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-button:hover {
  background-color: #cccccc;
  transform: translateY(-1px);
}

.project-button img {
  width: 14px;
  height: 14px;
}

.image-with-credit {
  display: flex;
  flex-direction: column;
}

.image-credit {
  font-size: 0.65rem;
  color: #999;
  margin-top: 4px;
  text-align: left;
}

.image-credit a {
  font-size: 0.65rem;
  color: #999;
  font-weight: 600;
}


/* Tooltip commun à haut et bas */
.lang-icon .tooltip {
  position: absolute;
  top: -36px;
  background-color: #000;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lang-icon:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.experience-block {
  /*margin-top: 60px;*/
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.experience-block h2 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 0;
}

.experience-role a {
  font-size: 1rem;
  color: #222;
  font-weight: 600;
  position: relative;
}

.experience-role a::before {
  content: '';
  background-color: hsla(42, 90%, 55%, 0.5);;
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  z-index: -1;
  transition: all .3s ease-in-out;
}

.experience-role a:hover::before {
  bottom: 0;
  height: 100%;
}

.bullet-list a {
  font-size: 1rem;
  color: #222;
  font-weight: 600;
  position: relative;
}

.bullet-list a::before {
  content: '';
  background-color: hsla(42, 90%, 55%, 0.5);;
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  z-index: -1;
  transition: all .3s ease-in-out;
}

.bullet-list a:hover::before {
  bottom: 0;
  height: 100%;
}

.experience-item {
  border-left: 3px solid #ddd;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.experience-meta {
  font-size: 1rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
}

.experience-role {
  font-size: 1rem;
  color: #222;
  font-weight: 600;
}

.experience-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.footer-copyright {
  margin: 80px 0 40px;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .tooltip {
    display: none !important;
  }
}

.back-link-block {
  margin: 32px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link img {
  width: 14px;
  height: 14px;
}

.back-link:hover {
  color: #000;
}

.section-title-left {
  /*margin-top: 48px;*/
}

.title-left {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  text-align: left;
  margin: 0;
}

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-select .lang-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.lang-select select {
  appearance: auto;
  /* native dropdown */
  -webkit-appearance: auto;
  -moz-appearance: auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  font-weight: 700;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1, 1);
  white-space: nowrap;
  border: 0;
}

.list-block {
  /*max-width: 650px;
  margin: 60px auto;
  padding: 0 20px;*/
}

.list-block h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: left;
  color: #222;
}

.list-block h3 {
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 16px;
  margin-left: 12px;
  text-align: left;
  color: #666;
}

.bullet-list {
  list-style: disc inside;
  margin: 0;
  padding-left: 0;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.bullet-list li {
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--bg-color, #eee);
  color: var(--text-color, #333);
  margin: 4px 4px 4px 0;
}

.card-block {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

.card-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.card-image {
  flex: 0 0 160px;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  text-align: left;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  text-align: left;
}

.cta-button {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
}


/* Footer classique */
.page-footer {
  margin-top: 80px;
  text-align: center;
  font-size: 0.95rem;
  color: #aaa;
  padding: 0px 0;
}

/* PLAYER VIDEO */
.video-block {
  margin: 24px 0;
}

.video-caption {
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: .8;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* CAROUSEL */
/* Bloc global */
.carousel {
  width: 100%;
  margin: 24px 0;
}

/* === Carré avec halo + arrondi + clip === */
.carousel-viewport-wrapper {
  position: relative;
  /* ✅ ancre les flèches */
  border-radius: 12px;
  /* ✅ arrondi visible */
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: clip;
  /* ✅ clippe le contenu (mieux que hidden) */
  isolation: isolate;
  /* nouveau contexte z-index, plus fiable */
  transform: translateZ(0);
  /* anti-glitch Safari iOS sur le clipping */
}

/* Carré responsive */
.carousel-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* carré */
  background: #000;
  /* fond derrière les bandes */
  overflow: hidden;
}

/* Piste & slides */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 400ms ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

/* Montrer l'image entière (pas de crop) */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ✅ image entière visible */
  object-position: center;
  display: block;
}

/* Flèches — positionnées par rapport au wrapper */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: auto;
  /* neutralise logiques RTL si besoin */
  width: 36px;
  /* desktop touch target confortable */
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .95;
  transition: background .2s, opacity .2s, transform .2s;
  z-index: 2;
  /* au-dessus de la vidéo/image */
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(0, 0, 0, .6);
  opacity: 1;
}

.carousel-arrow.prev {
  left: 8px;
}

.carousel-arrow.next {
  right: 8px;
}

/* Points SOUS le carré (séparés visuellement) */
.carousel-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 0;
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button[aria-current="true"] {
  background: #000;
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  .carousel-dots button {
    background: rgba(255, 255, 255, .45);
  }

  .carousel-dots button[aria-current="true"] {
    background: #fff;
  }
}

/* === Version mobile (≤ 640px) === */
@media (max-width: 640px) {
  .carousel {
    margin: 16px 0;
  }

  .carousel-arrow {
    width: 44px;
    /* ✅ plus grosse cible tactile */
    height: 44px;
    background: rgba(0, 0, 0, 0.35);
    /* un peu plus léger sur mobile */
  }

  .carousel-arrow.prev {
    left: 6px;
  }

  .carousel-arrow.next {
    right: 6px;
  }

  .carousel-dots {
    gap: 10px;
    margin-top: 8px;
  }

  .carousel-dots button {
    width: 10px;
    height: 10px;
  }
}

.reveal {
  opacity: 0;
  transform: var(--initial-transform, translateY(20px));
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

