html, body {
  background: #fff !important;
  color: #111 !important;
}

html {
  color-scheme: light;
}

/* ===================================================================
   Global Layout
   =================================================================== */

body {
  font-family: 'Montserrat', sans-serif;
}



main {
  padding: 0;
}

/* montserrat-300 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2'); 
}

/* montserrat-500 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

.title.is-4 {
  font-family: Montserrat, sans-serif;
}

/* ===================================================================
   Navbar & Navigation
   =================================================================== */

.custom-navbar {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: 2.25rem; /* Augmenté légèrement pour que le titre respire */
  z-index: 1000;
}

/* Le conteneur du titre : il occupe toute la largeur mais laisse passer les clics */
.custom-navbar-center {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  pointer-events: none; /* REND LA ZONE TRANSPARENTE AU CLIC */
}

/* Le lien lui-même : on réactive le clic uniquement ici */
.logo-link {
  pointer-events: auto; /* SEUL LE TEXTE REVIENT CLIQUABLE */
  text-decoration: none;
  display: inline-block;
}

.custom-navbar h6.title {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 5px;
  margin: 0 !important;
  color: #111;
}

/* --- BURGER --- */
.custom-navbar-brand {
  position: absolute;
  z-index: 20; /* Passe au-dessus de la zone de titre */
}

.burger {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: none; /* Caché sur desktop */
}

.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  margin: 3px 0;
  border-radius: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1023px) {
  .burger {
    display: block;
  }

  .custom-navbar-brand {
    right: 1rem; /* Burger à droite sur mobile */
    left: auto;
  }

  .custom-navbar h6.title {
    letter-spacing: 2px;
    display: none; /* Comme tu l'as demandé tout à l'heure pour mobile */
  }
}

@media (min-width: 1024px) {
  .custom-navbar-brand {
    left: 1rem; /* Optionnel : si tu as un menu ou logo à gauche sur desktop */
  }
}

/* Mobile overlay (page blanche plein écran) */
.mobile-overlay {
  display: none;
}

.mobile-overlay.is-active {
  display: block;
  position: fixed;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #fff;
  z-index: 2147483647; /* Maximum possible z-index to ALWAYS be on top */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  /* Prevent page scroll behind overlay */
  overscroll-behavior: contain;
}

body.mobile-overlay-open {
  overflow: hidden !important;
  height: 100vh !important;
}

.mobile-overlay .overlay-close-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  color: #444;
}

.overlay-close {
  position: absolute;
  top: 0.1em;
  right: 0.5em;
  background: transparent;
  border: none;
  font-size: 2.2em;
  cursor: pointer;
  color: #222;
  z-index: 10;
}

/* Burger active state: simple animation (optional) */
.burger.is-active .burger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.is-active .burger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}


/* =========================================================
   Main content
   ========================================================= */



/* 1. On modifie le comportement global du Fullheight pour Bulma */
.hero.is-fullheight {
  /* On privilégie svh sans !important pour laisser les autres classes respirer */
  min-height: calc(100dvh - 2.25rem);
  height: calc(100dvh - 2.25rem);
}

.index-page .hero-body {
  justify-content: center;
  background-color: #f2f8fc;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: center center;
  overflow: hidden; /* Changé de overflow-x à overflow pour éviter tout scroll interne */
}

@media (max-width: 1023px) {
    .index-page .hero-body {
        /* Sur mobile, évite le "zoom" brutal de l'image due au background-attachment: fixed */
        background-attachment: scroll;
        /* Optionnel : permet à l'image de mieux couvrir l'écran, ajuste le centrage si besoin */
        background-position: center top;
    }
}

@media (min-width: 1024px) {
    .index-page .hero-body {
        /* Sur desktop, on peut garder l'effet "fixed" pour la profondeur */
        background-attachment: fixed;
    }
}

/* Fixer la largeur de la carte sur desktop */
@media (min-width: 1024px) {
    .custom-profile-card {
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
}

/* Style de l'indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #b5b5b5;
    font-size: 0.8rem;
    animation: fadeInOut 2s infinite;
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 10px); }
}

.box {
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 3em;
}

/* =========================================================
   Profile card
   ========================================================= */

.profile-picture {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
  display: block;
}

.social-icon {
  width: 24px;
  height: 24px;
}

/* =========================================================
   Skills section
   ========================================================= */

.icon-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tag.is-white.shadow-tiny {
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    font-size: 0.8rem;
    height: 2.2em;
}

/* Modal styling */
.modal.is-active {
  z-index: 1050;
}

.modal-content {
    max-width: 90%;
    width: 1000px;
}

/* Fin En test */

.table td {
  vertical-align: middle;
}

.table td:nth-child(1) {
    text-align: left;
    vertical-align: middle;
}

.table td:nth-child(2) {
  text-align: left;
}

.table td:nth-child(3) {
  text-align: center;
  vertical-align: middle;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-item img {
  height: 18px;
  width: 18px;
}

.custom-modal .modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 1000px;
}

.custom-modal .modal-content img {
  width: 100%;
  height: auto;
}

/* Style des cartes pour un effet "Bento" moderne */
#about .column .box, #expertise .column .box, #experience .experience-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#about .column .box, #experience .experience-box { 
  border: 1px solid transparent; 
}


@media (min-width: 1024px) {
  #about .column:hover .box, #expertise .column:hover .box, #experience .experience-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  #about .column:hover .box {
    border-color: #3273dc;
  }
}


/* =========================================================
   Experience section
   ========================================================= */
/* Style des sous-sections */
.card-job {
    padding-left: 15px;
    border-left: 3px solid #eee;
    transition: border-color 0.3s ease;
}


.card-job:hover {
    border-left-color: #3273dc;
}

/* Style des encadrés de résultats (Impact) */
.result-tag {
    font-size: 0.85rem;
    border-radius: 6px;
    margin-left: -10px;
    border: 1px dashed rgba(0,0,0,0.1);
}


/* Icônes (si tu utilises FontAwesome) */
.title.is-6 i {
    color: #3273dc;
    width: 20px;
}

#company-tabs {
  margin-top: 0;
  padding-bottom: 1rem;
}


#company-tabs li.is-active a {
    border-bottom-color: black;
}

#company-content {
  max-width: 800px;
  margin: 0 auto;
  min-height: 600px;
}

/* =========================================================
   Email popup
   ========================================================= */
#copy-email-btn {
  position: relative;
}

#email-copied-popup {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.75rem;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
}

/* Petite flèche pour la popup */
#email-copied-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #000;
}

/* separator between social icons */
.separator {
  position: relative;
  top: -6px;
  margin: 0 0.4em;
  display: inline-block;
}

/* =========================================================
   Responsive (Mobile)
   ========================================================= */

@media (max-width: 1023px) {

  .profile-card-wrapper {
    max-width: 400px;
    padding: 0;
  }

  .box, #company-content {
    max-width: 100%;
  }

  .box.custom-box {
    padding: 1.5rem;
  }

  .box.experience-box {
    padding: 1.5rem;
  }

  .content {
    max-width: 100%;
    padding: 1em;
  }

  .intro-page {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .experience {
    padding: 0;
  }

  .table-container {
    overflow-x: auto;
  }

  .tool-item {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .tool-item img {
    height: 16px;
    width: 16px;
  }

  /* Mobile table layout */
  .table {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: block;
  }

  .table tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
  }

  .table td {
    display: block;
    text-align: left;
    padding: 0.25rem 0;
  }

  .table td:nth-child(1) {
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
  }

  .table td:nth-child(2) {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .table td:nth-child(3) {
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Mobile navbar not sticky */
  /* Removed */
}



/* ===================================================================
   Utility classes
   =================================================================== */

.border-bottom-radius { border-bottom: 1px solid #eee; border-radius: 6px 6px 0 0; }

.icon-small { width: 16px; height: 16px; vertical-align: middle; object-fit: contain; }
.skill-row { transition: background 0.3s; }
.skill-row:hover { background-color: #fcfcfc; }

/* Expertise section background */
.expertise-background {
background-color: #f2f8fc;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.footer {
background-color: #f2f8fc;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}







/* ==========================================================================
   PAGE ABOUT - DESIGN TYPOGRAPHIQUE
   ========================================================================== */

/* On cible précisément les paragraphes dans about-content */
.about-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 300 !important; /* Le !important ici garantit que Bulma ne l'écrase pas */
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

/* On s'assure que SEULS les strong sont en gras */
.about-content p strong {
  font-weight: 600 !important;
  color: #000;
}

/* Pour le texte discret */
.about-content p.is-muted {
  font-size: 0.9rem;
  color: #888;
  font-weight: 300 !important;
}

/* --- BOUTON BACK (PRESET BULMA CUSTOM) --- */

/* On personnalise le bouton .is-light pour qu'il soit plus "Figma" */
.button.is-light.is-rounded {
  background-color: #f5f5f5;
  border: 1px solid transparent;
  color: #7a7a7a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  transition: all 0.3s ease;
  height: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.button.is-light.is-rounded:hover {
  background-color: #eeeeee;
  color: #1a1a1a;
  border-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Option au cas où tu utilises .is-ghost */
.button.is-ghost {
  color: #b5b5b5;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button.is-ghost:hover {
  background-color: transparent;
  color: #000;
  text-decoration: none;
}







/* --- ABOUT ME: PRO VERSION --- */
.about-page-wrapper {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Layout pour Desktop */
.custom-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start; /* Chaque cube garde sa propre hauteur */
}

.about-card {
    width: 100%;
    border-radius: 12px;
}

.iframe-container {
    background: #f0f0f0;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
}



/* On ne limite la largeur qu'en mode mobile */
@media screen and (max-width: 1023px) {
    .about-card {
        max-width: 440px;
        margin: 0 auto 1.5rem auto;
    }
}

/* Sections */
.live-section {
    border: 1px solid #81b64c;
    position: relative;
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: 12px;
    background: white;
}

.live-indicator {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #81b64c;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.sport-section {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.event-row:last-child { border-bottom: none; }

.event-past { opacity: 0.35; filter: grayscale(1); }

.discipline-tag {
    font-size: 0.6rem;
    color: #b5b5b5;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Animation Live Dot */
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.dot { height: 6px; width: 6px; background: white; border-radius: 50%; display: inline-block; margin-right: 5px; animation: blink 2s infinite; }

/* Météo */
.cube-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    border: 1px solid #eee;
}

.cube-item p:first-child { margin-bottom: 0.1rem; }