html {
  overflow-x: hidden;
  width: 100%;
}
body{
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  font-family: 'Josefin Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #1f1f1f;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
}
.photo-column {
  position: relative;
  min-height: 400px;
}
.position-relative {
  overflow: hidden;
}
/* Container pour les blobs DERRIÈRE la photo */
.bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Derrière tout */
  pointer-events: none;
}
/* Blob */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: float-blob 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
/* Premier blob - violet */
.blob:nth-child(1) {
  width: 130px;
  height: 130px;
  background: 
  #371d86;
  top: 25%;
  left: 15%;
  animation-delay: 0s;
}
/* Deuxième blob - turquoise AU MILIEU À DROITE */
.blob:nth-child(2) {
  width: 200px;
  height: 200px;
  background: #7afcff;
  top: 35%;
  left: 50%;
  animation-delay: 5s;
}
/* Troisième blob - violet EN BAS À GAUCHE */
.blob:nth-child(3) {
  width: 220px;
  height: 220px;
  background: #371d86;
  top: 50%;
  left: 10%;
  animation-delay: 10s;
}
/* Blobs autour de l'image contact */
.bg-blobs-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.blob-contact {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float-blob 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
/* Deuxième blob - turquoise AU MILIEU À DROITE */
.blob-contact:nth-child(1) {
  width: 180px;
  height: 180px;
  background: #7afcff;
  top: 93%;
  left: 35%;
  animation-delay: 7s;
}
/* Troisième blob - violet EN BAS À GAUCHE */
.blob-contact:nth-child(2) {
  width: 150px;
  height: 150px;
  background: #371d86;
  bottom: 10%;
  left: 42%;
  animation-delay: 12s;
}
/* Animation */
@keyframes float-blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -40px) scale(1.03);
  }
  66% {
    transform: translate(-25px, -30px) scale(0.97);
  }
}
.img-round {
  position: relative;
  z-index: 10;
}
.navbar {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
nav{
  font-size: 1.5em;
  color: #000000;
  position: relative;
  transition: all 0.3s ease;
}
.nav-link:hover {
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link.active {
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #6b3aff, #371d86);
  transition: width 0.3s ease;
}

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

.navbar-nav .nav-link.active::after {
  width: 80%;
}
.satisfy-regular {
  font-family: "Satisfy", cursive;
  font-weight: 400;
  font-style: normal;
}
.josefin-sans {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}
.yeseva-one-regular {
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-style: normal;
}

.nom{
  font-family: 'Satisfy', sans-serif;
  font-size: 1.6em;
  background: linear-gradient(135deg,  #6736d9, #2f1974);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metier{
  font-family: 'Yeseva One', serif;
  font-size: 0.7em;
  color: #111;
}
h2, h3, h4{
  font-family: 'Yeseva One', Georgia, serif;
  color: #111;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.about{
  position: relative;
  width: 100%;
  line-height: 1.65;
  overflow: visible; 
}
.about::before,
.about::after{
  position: absolute;
  font-family: "Yeseva One", serif;
  font-size: clamp(520px, 9vw, 140px);
  line-height: 1;
  color: rgba(108, 92, 255, 0.096); /* violet très léger */
  pointer-events: none;
  z-index: 0; /* derrière le texte */
}

.about::before{
  content: "“";
  top: -82px;
  left: -74px;
}

.about::after{
  content: "”";
  bottom: -352px;
  right: -10px;
}

.about > span{
  position: relative;
  display: inline-block;
  max-width: 80ch;
  z-index: 1; /* texte au-dessus */
}

.img-round{
  border-radius: 50%;
  width: min(300px, 100%);
  height: auto;
  max-width: 100%;
}
.galery{
  width: 100%;
  max-width: 350px; 
  aspect-ratio: 7 / 5; /* 350/250 */
  height: auto;
  object-fit: cover;
  border: 0.5px solid rgb(221, 220, 220);
  border-radius: 10px;
  display: block;
}
.galery-title{
  width: 100%;
  max-width: 350px;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-item {
  display: inline-block;
}
.gallery-item .galery {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; 
}
/* Badge techno sur image */
.gallery-item { 
  overflow: hidden; 
  border-radius: 16px;
}
.skill-icon img,
img[alt*="Adobe"]{
  height: auto;
  object-fit: contain;
}
.project-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.68);
  color: #2f1876;
  margin-left: 10px;
  margin-top: 5px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
}
.gallery-item:hover .overlay-text-container{
  opacity: 1;
}
.overlay-text{
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
}
.portfolio-item {
   position: relative;
   display: inline-block;
}
.modal-title{
  font-size: 2em;
}
.modal-header{ 
  border-bottom: 0;
}
.carousel-control-prev{
  filter: drop-shadow(0 0 0.1rem rgb(0, 0, 0));
}
.carousel-control-next{
  filter: drop-shadow(0 0 0.1rem rgb(0, 0, 0));
}
.page-link{
  color: #000000;
  border: none;
  background-color: #00000000;
}
.page-link:hover{
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: none;
}
.page-link:active,
.page-link:focus {
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: none;
  outline: none;
  box-shadow: none;
}
.shadow{
  border: solid 0.5px #dadada;
  box-shadow: 10px 5px 5px black;
  border-radius: 20px;
}
.liens{
  text-decoration: none;
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.icon{
  font-size: 2em;
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.icon:hover{
  background: linear-gradient(135deg, #8a65fa, #442e87);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.icon-main{
  font-size: 3em;
  background: linear-gradient(135deg, #8a65fa, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.icon-main:hover{
  background: linear-gradient(135deg, #8056fe, #442e87);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#realisations{
  position: relative;
  padding: 40px 0 10px;
  background:
    linear-gradient(
      90deg,
      rgba(48, 252, 255, 0.347) 0%,
      rgba(171, 243, 244, 0.511) 90%
    );
}

/* Skills – alignement icônes */
.skill-item{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.skill-icon{
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-size: 24px;
  line-height: 1;
}
.skill-icon img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.skills{
  background: 
  linear-gradient(
      -45deg, 
    #ffffff, 
    #f0ebff, 
    #e6f9ff, 
    #ffffff,
    #faf8ff
  );
  background-size: 400% 400%;
  animation: gradient-move 15s ease infinite;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(53, 34, 100, 0.199);
  padding: 2rem 1.5rem;
}
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.icon-comp,
.skill-icon{
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
li{
  line-height: 3;
}
.skills-column {
  text-align: left;
}
.skill-title {
  align-self: flex-start;
  width: 160px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}
.skills > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn-contact{
  background: linear-gradient(135deg, #6b3aff, #371d86);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bolder;
  box-shadow: 0 4px 15px rgba(107, 58, 255, 0.3);
  transition: all 0.3s ease;
}
.btn-contact:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 58, 255, 0.4);
  color: white !important;
}
#form-message-success {
  color: #55A44E;
  font-size: 18px;
  font-weight: bold;
  display: none; 
}
#form-message-warning {
  color: #B90B0B;
}
.politique-content {
  max-width: 800px;
  margin: 100px auto 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(107, 58, 255, 0.1);
}

.politique-title {
  font-family: 'Yeseva One', serif;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #6736d9, #2f1974);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.politique-date {
  text-align: center;
  color: #666;
  font-size: 0.95em;
  margin-bottom: 2rem;
}

.politique-content h2 {
  font-family: 'Yeseva One', serif;
  font-size: 1.5em;
  color: #371d86;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(107, 58, 255, 0.2);
}

.politique-content p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.politique-content ul {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05em;
  line-height: 2.2;
  color: #333;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.politique-content li {
  line-height: 2.2;
}

.politique-email {
  background: linear-gradient(135deg, #6b3aff, #371d86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
@media (max-width: 768px) {
  .politique-content {
    margin: 80px 15px 40px;
    padding: 25px;
  }

  .politique-title {
    font-size: 2em;
  }

  .politique-content h2 {
    font-size: 1.3em;
    margin-top: 2rem;
  }

  .politique-content p,
  .politique-content ul {
    font-size: 1em;
  }
}
@media (min-width: 769px){
  #contact{
    margin-top: 140px;
    padding-top: 140px; 
  }
  .content.mt-5 {
  margin-top: 3rem !important;
  margin-bottom: 0 !important;
}
footer.d-flex {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.content {
  margin-bottom: 1rem !important;
}
}
@media (min-width: 992px){
  .main{
    height: 70vh;
  }
  .competences{
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 429px){
    .img-round{
      margin-top: 10%;
      height: 200px;
      width: 200px;
    }
    h1{
      margin-top: 20%;
    }
    .skill-item{ min-width: 0; }
    h1 {
    margin-top: 20%;
  }
  
  .nom {
    font-size: 2em;
  }

  .skill-item { 
    min-width: 0; 
  }

  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
@media (max-width: 768px){
  .photo-column {
    overflow: visible !important;
  }
  body {
    font-size: 16.5px;
    line-height: 1.7;
    overflow-x: hidden !important;
  }

  /* Container principal compétences */
  .container-fluid.competences {
    display: block !important;
    padding: 1rem 15px !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .container-fluid.contact {
    margin-top: 1rem !important;
  }
  .container-fluid.realisations {
    margin-bottom: 1rem !important;
  }
  /* GARDE les titres h2 centrés */
  h2 {
    text-align: center !important;
  }

  /* Mais aligne SEULEMENT les skills à gauche */
  .skills {
    text-align: left !important;
  }

  .skills .col-md-3,
  .skills .col-sm-6,
  .skills .col-6 {
    text-align: left !important;
  }

  .skills > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .skill-title {
    margin-left: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  .skill-item {
    justify-content: flex-start !important;
  }

  /* Marges réduites */
  .mt-5 { margin-top: 1rem !important; }
  .mb-5 { margin-bottom: 1rem !important; }
  .my-5 { 
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .mt-3 { margin-top: 0.75rem !important; }
  #realisations{
    padding: 24px 0 6px;
  }
  #realisations ~ .row .mb-3,
  .row:has(.gallery-item) .mb-3 {
  margin-bottom: 0 !important;
}
  .mb-2 {margin-bottom: 0.5rem !important; }
  .galery-title {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991.98px){
  .navbar-nav .nav-item{ 
    margin-right: 0 !important; 
  }
  .competences{
    height: auto !important;
  }
}
@media (prefers-reduced-motion: reduce){
  .blob, .blob-contact{
    animation: none !important;
    transform: none !important;
  }
  html:focus-within { scroll-behavior: auto; }
  .skills {
    animation: none;
    background-position: 50% 50%;
  }
}

