/*////////////////////////////////////////////////////////////////////////////////////////////////////

ShareBootstrap - Minimal portfolio Template v1.0.0 (https://sharebootstrap.com)
Copyright 2019 Sharebootstrap.com
Licensed under  CC BY 3.0 

////////////////////////////////////////////////////////////////////////////////////////////////////*/

@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Bricolage+Grotesque:opsz,wght@12..96,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@100;200;300;400;500;600;700;800;900&family=Bricolage+Grotesque:wght@400;700;800&display=swap');

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*////////////////////////////////////////////////////////////////////////////////////////////////////
Change your color here 
////////////////////////////////////////////////////////////////////////////////////////////////////*/

:root {
    --background-color: #343A40;
    --primary-color: #FFD24D;
    --secondary-color: #FFF9E3;
    --tertiary-color: #B49330;
}

::-moz-selection {
    color: #343A40;
    background: var(--primary-color)
}

::selection {
    color: #343A40;
    background: var(--primary-color)
}

body {
    background-color:  #343A40;
    padding-top: 120px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: #FFD24D;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6{
    font-family: 'Bricolage Grotesque', sans-serif;
    margin-bottom: .5rem;
    font-weight: 800;
    line-height: 1.64;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.65;
}

p {
  font-size: 1.15rem;
  line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer
}

a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

a.link {
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link::before {
    content: '';
    width: 100%;
    height: 2px;
    background: #FFD24D;
    position: absolute;
    bottom: -4px;
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link:hover {
    color: #FFD24D
}

a.link:hover::before {
    background: #FFD24D
}

.space-md {
    padding-top: 90px;
    padding-bottom: 90px
}

#preloader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: #343A40;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

#preloader.hide {
    visibility: hidden;
    opacity: 0
}

#loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    -webkit-animation: loader 1s infinite linear;
    animation: loader 1s infinite linear
}

@-webkit-keyframes loader {
    0% {
        -webkit-transform: scale(1);
        border: 5px solid #FFD24D
    }
    50% {
        -webkit-transform: scale(0);
        border: 30px solid #FFD24D
    }
    100% {
        -webkit-transform: scale(1);
        border: 10px solid #FFD24D
    }
}

@keyframes loader {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 5px solid #FFD24D
    }
    50% {
        -webkit-transform: scale(0);
        transform: scale(0);
        border: 30px solid #FFD24D
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 10px solid #FFD24D
    }
}


/*/////////////////////
  Container tweak
///////////////////////*/

.container {
    background-color: #343A40;
    color: #FFF9E3; 
    max-width: 1440px
}

/*/////////////////////
Navigation
///////////////////////*/

.navbar-custom {
 background-color: #343A40;
}   
    
.navbar-custom .navbar-nav, 
.navbar-custom .nav-link{
    background-color: #343A40;
    color: #FFF9E3;
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    letter-spacing: .04rem;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color);
    transition: color 0.3s ease-in-out;
}

.navbar-custom .nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease-in-out;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .navbar-brand {
  font-family: 'Bricolage Grotesque';
  color: var(--primary-color);
  font-weight: 900;
  text-transform: capitalize;
}

/* Toggler button container */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    outline: none;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The hamburger lines */
.toggler-icon {
    position: relative;
    width: 28px;
    height: 2px;
    background-color: #FFF9E3;
    transition: background-color 0.3s ease-in-out;
}

.toggler-icon::before,
.toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #FFF9E3;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

/* Position the top and bottom lines */
.toggler-icon::before {
    top: -8px;
}

.toggler-icon::after {
    top: 8px;
}

/* Animation when active (menu opened) */
.custom-toggler.active .toggler-icon {
    background-color: transparent;
}

.custom-toggler.active .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.custom-toggler.active .toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/*/////////////////////
Header intro 
///////////////////////*/

.headline {
    position: relative;
    margin-bottom: 100px;
    margin-top: 100px;
}

.headline-content {
    display: block;
    position: relative;
}

.headline-content .headline-title {
    font-weight: 900
}

.headline-subtitle {
    font-size: 24px
}

.headline-content .headline-title {
  font-weight: 400 !important;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #FFF9E3;
  line-height: 1.5;
}

.intro-text {
  font-weight: 400 !important;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.4;
  color: #FFF9E3;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Icône dans l’accroche */
.intro-icon {
  width: clamp(32px, 5vw, 64px); 
  height: auto;
  vertical-align: middle;
  margin: 0 10px;
  animation: spin 8s linear infinite; 
  transition: transform 0.3s ease;
}

.intro-icon:hover {
  transform: scale(1.1); /* petit zoom au survol */
}

/* Animation de rotation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Liens interactifs dans l’accroche */
.intro-text .filter-link {
  color: var(--secondary-color);
  font-weight: 400;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Soulignement wavy au survol */
.intro-text .filter-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6'><path d='M0 3 Q10 0 20 3 T40 3 T60 3 T80 3 T100 3 T120 3' stroke='%23FFD24D' fill='transparent' stroke-width='8' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 40px 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Animation au hover */
.intro-text .filter-link:hover::after {
  transform: scaleX(1);
}

/* Portfolio */

#portfolio-filters {
    margin-bottom: 40px
}

/* portfolio filter */

#portfolio-filters {
  position: sticky;
  top: 64px; 
  background-color: var(--background-color);
  z-index: 100;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none; /* cache la barre sur Firefox */
  -ms-overflow-style: none; /* cache la barre sur IE/Edge */
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: flex-start;
  scroll-behavior: smooth;
}

#portfolio-filters::-webkit-scrollbar {
  display: none; /* cache la barre sur Chrome/Safari */
}

#filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 60px;
  padding: 0 2rem;
  margin: 0;
}

#filters li {
  list-style: none;
  white-space: nowrap;
}

/* Style des liens du sticky */
#filters li a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  transition: color 0.3s ease;
}

#filters li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#filters li a:hover::after,
#filters li a.active::after {
  color: var(--primary-color);
  width: 100%;
}

/* Responsive ajustements */
@media (max-width: 768px) {
  #filters {
    gap: 30px;
    padding: 0 1rem;
  }
}


/* Portfolio items */

.entry {
    overflow: hidden
}

.entry-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

.entry:hover .entry-image {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

.work-entry-hover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: #FFD24D;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

.entry:hover .work-entry-hover {
    opacity: 1;
    visibility: visible
}

.work-entry-content {
    position: absolute;
    bottom: 50px;
    left: 50px
}

.work-entry-title {
    font-size: 22px;
    font-weight: 600;
    color: #343A40;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s
}

.work-entry-cat {
    font-size: 14px;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    color: #6C7885;
}

.entry:hover .work-entry-title,
.entry:hover .work-entry-cat {
    opacity: 1;
    top: 0
}

.project-intro li {
    font-size: 18px;
    color: #FFD24D;
    padding: 12px 0 13px;
    border-bottom: 1px solid #6C7885;
    max-width: 200px
}

.project-intro li.title {
    font-weight: 700;
    padding: 0px 0 22px;
}


/* === FOOTER (3 colonnes modernisé) === */
.footer {
  margin-top: 115px;
  background-color: var(--background-color);
  color: var(--secondary-color);
  padding: 70px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--secondary-color);
  opacity: 0.8;
  margin: 0;
}

.footer-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

/* --- Effet de soulignement doré au survol --- */
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-links a:hover::after {
  width: 100%;
}

/* --- Responsive : 2 colonnes puis 1 --- */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links a::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* === Bouton "Découvrir plus" === */
.cta-container {
  margin-top: 40px;
  text-align: center; /* centré sous ton texte d'intro */
}

.btn-discover {
  display: inline-block;
  padding: 14px 34px;
  background-color: var(--primary-color);
  color: #343A40;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04rem;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Effet hover doré inversé */
.btn-discover:hover {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-2px);
}



/* Accroche bas (index) */

/* --- Icône étincelle animée (index) --- */

.aimez-icon {
  width: clamp(40px, 6vw, 64px);
  height: auto;
  vertical-align: middle;
  margin: 0 8px;
  animation: twinkleZoom 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* --- Animation continue (zoom/dézoom doux) --- */
@keyframes twinkleZoom {
  0%, 100% {
    transform: scale(0.65);
  }
  50% {
    transform: scale(1);
  }
}

.aimez-icon {
  pointer-events: none;
}

/* --- Liens wavy dans la section “Vous aimez” (index) --- */

.vous-aimez {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.4;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  color: var(--secondary-color);
}

.vous-aimez a {
  color: var(--secondary-color);
  position: relative;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.vous-aimez a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6'><path d='M0 3 Q10 0 20 3 T40 3 T60 3 T80 3 T100 3 T120 3' stroke='%23FFD24D' fill='transparent' stroke-width='8' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 40px 8px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.vous-aimez a:hover::after {
  transform: scaleX(1);
}

.vous-aimez a:hover {
  color: var(--secondary-color);
}


/* Contact */

.contact .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: 1.875rem .85rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0;
}

 /* TIMELINE propre et stable */

.timeline-section {
  margin-top: 80px;
}

/* Conteneur de la timeline */
.timeline {
  display: flex;
  width: max-content;
  gap: 80px;
  padding: 40px 0 60px 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}

/* Viewport qui contient la timeline */
.timeline-viewport {
  overflow-x: auto;              /* ✅ scroll uniquement ici */
  overflow-y: hidden;
  scrollbar-width: none;
  position: relative;
  width: 100%;                   /* ✅ prend la largeur de la grille */
}
.timeline-viewport::-webkit-scrollbar {
  display: none;
}

/* Timeline très large à l’intérieur */
.timeline {
  width: max-content;            /* ✅ ne fait plus déborder toute la page */
  display: flex;
  gap: 80px;
  padding: 40px 0 60px 0;
  position: relative;
}


.timeline::-webkit-scrollbar { display: none; }

/* Ligne derrière la timeline */
.timeline::before {
  content: "";
  position: absolute;
  top: 94px;               /* ✅ corrigé : passe exactement derrière la pastille */
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tertiary-color);
  opacity: 0.6;
  z-index: 1;              /* ✅ derrière pastilles */
}

/* Élément */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  position: relative;
  z-index: 2;
}

/* Année */
.timeline-year {
  font-family: 'Bricolage Grotesque';
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;     /* ✅ réduit pour placer la pastille juste sous l’année */
  color: var(--primary-color);
}

/* Pastille (position centrale corrigée) */
.timeline-item::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;        /* ✅ correction clé : permet la bonne position */
  top: 48px;                 /* ✅ parfaitement alignée avec la ligne */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Texte */
.timeline-text {
  margin-top: 35px;         /* ✅ espace sous la pastille */
  font-size: 1rem;
  text-align: center;
  max-width: 200px;
  color: var(--secondary-color);
  line-height: 1.4;
}

/* Animation légère au hover */
.timeline-item:hover .timeline-year,
.timeline-item:hover .timeline-text {
  transform: scale(1.07);
  transition: transform 0.25s ease;
}

/* --- ICON A PROPOS --- */

.apropos-icon {
  width: clamp(40px, 5vw, 40px); 
  height: auto;
  vertical-align: middle;
  margin: 0 10px;
}

/* --- ICON A PROPOS --- */

.projet-icon {
  width: auto; 
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}


/* --- VIDEO CONTAINER --- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* optionnel */
  object-fit: cover;   /* utile si tu veux qu’elle remplisse un cadre */
  max-height: 600px;   /* ou la hauteur que tu veux */
}



/* --- Blocage copier coller --- */

.temp-hide {
  display: none !important;
}

img, picture, figure {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* --- Pop up remerciement page contact --- */

.popup-message {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--primary-color);
  color: #343A40;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.popup-message.visible {
  opacity: 1;
  transform: translateY(0);
}