body {
    margin: 0;
    padding: 2vw;
    overflow-x: hidden;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;

    /* Fond global légèrement bleuté */
    background-color: #f7f8ff;

    background-image:
        linear-gradient(to right, rgba(50, 79, 206, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(50, 79, 206, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    background-attachment: fixed;
}

.column{
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    display: block;
}

.hero {
    background-color: #324fce;
    width: 100%; 
    max-width: 98vw;
    margin: 0 auto; 
    height: 94vh;
    box-sizing: border-box;
    border-radius: 24px;
    position: relative;
    mask-image: url('assets/mask/maskHero.svg');
    mask-mode: alpha;
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: top;
}

/* Mobile / tablette */
@media (max-width: 441px) {
    .hero {
        mask-image: url('assets/mask/maskHero-mobile.svg');
        /* si besoin d’ajuster le cadrage sur mobile, tu peux aussi jouer avec : */
        /* mask-size: contain; */
        /* mask-position: center; */
    }
}

/* ⭐ Styles pour le conteneur du modèle 3D */
#model-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
     /* Le modèle est en dessous du titre par défaut */
    /* display: flex; /* Si vous voulez centrer le modèle *dans* ce conteneur */
    /* justify-content: center; */
    /* align-items: center; */
}


.hero__title {
    position: absolute; 
    margin: 0;
    top: 2vw;
    left: 3vw;
    color:  #5271FF; 
    z-index: 5; 
    
    font-family: 'Koulen', sans-serif;
    font-weight: 200;
    line-height: 2rem;
    padding: 0;
    font-size: 7vw;
    line-height: 1;
    text-transform: uppercase;

    & span{
        font-family: 'Chonburi', serif;
        font-size: 5vw;
    }
}
.scroll-down-btn {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .scroll-down-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-decoration: none;
        transition: opacity 0.3s ease;
        z-index: 9999;
    }
  }
@media (max-width: 768px) {
    .scroll-down-btn svg {
        width: 30px;
        height: 30px;
        stroke: #007bff;
    }
}

@media (max-width: 768px) {
    .hero__title {
        position: absolute;
        top: 6%;
        left: 50%;
        transform: translate(-50%, -50%); /* centre horizontal + vertical */
        text-align: center;
        font-size: 2.5rem;      /* plus petit */
        line-height: 1.1;
        width: 90%;           /* pour éviter que ça dépasse à droite */
    }

    .hero__title span {
        font-size: 2rem;    /* span plus petit aussi */
    }
}

/*Scoll bar*/
/* Scrollbar globale (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: #324fce transparent;  /* thumb bleu, fond transparent */
}

/* Scrollbar WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Fond de la scrollbar : transparent */
*::-webkit-scrollbar-track {
  background: transparent;
}

/* Bulle bleue */
*::-webkit-scrollbar-thumb {
  background: #324fce;
  border-radius: 999px;
}

/* Survol : bulle blanche (paraît blanche sur fond bleu derrière) */
*::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* Masquer les flèches haut/bas */
*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* 1. Style du bandeau conteneur (aucun changement) */
.bandeau {
  margin: 12px 0;
  height: 80px;
  overflow: hidden; /* C'est ce qui cache le contenu qui déborde */
  width: 95vw;
}

/* 2. Style du texte à l'intérieur du bandeau (petit ajustement) */
.bandeau__text {
  white-space: nowrap; 
  display: inline-block; 
  padding-left: 0; /* Important : Retirer le padding de 100% */
  color: #324fce;
  font-size: 5rem;
  line-height: 80px;
  margin: 0;
  font-family: 'Koulen', sans-serif;
  text-transform: uppercase;
  
  /* 3. Application de l'animation */
  /* Ajustez les secondes (ex: 7s) en fonction de la quantité de texte que vous avez */
  animation: marquee 7s linear infinite; 
}

/* 4. Définition de l'animation de défilement (keyframes) */
@keyframes marquee {
  0% {
    /* Le bloc combiné des 2 copies de texte commence à sa position normale */
    transform: translate(0, 0); 
  }
  100% {
    /* Le bloc combiné se décale de -50% de sa propre largeur. */
    /* Cela fait glisser la première copie hors de l'écran, et la deuxième copie prend sa place exactement. */
    transform: translate(-50%, 0); 
  }
}

/* ===========================
   LAYOUT GLOBAL DES SECTIONS
   =========================== */

.section {
  width: 100%;
  max-width: 1200px;
  margin: 6rem auto;
  box-sizing: border-box;
  color: #0f172a;
}

.section__inner {
  width: 100%;
}

.section__inner--contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
}

@media (max-width: 900px) {
  .section__inner--contact {
    grid-template-columns: 1fr;
  }
}

/* Titres de section */

.section__header {
  text-align: start;
  margin-bottom: 2.8rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7f86ff;
  margin: 0 0 0.9rem;
}

.section__title {
  font-size: clamp(2.3rem, 3.3vw, 3rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

/* ===========================
   SECTION ABOUT
   =========================== */

.section--about {
  display: block;
  padding: 24px;
  border-radius: 24px;
  background-color: #ffffffb2;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__text p {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1f2933;
  font-weight: 500;
}

.about__highlights {
  display: flex;
  gap: 3rem;
  margin-top: 1.9rem;
}

.about__highlight {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about__number {
  font-size: 2.7rem;
  font-weight: 700;
  color: #324fce;
}

.about__label {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.about__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__block-title {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #4b5563;
  font-weight: 600;
}

.about__block-text {
  margin: 0;
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  font-weight: 500;
}

/* Liste de tags / pills */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(50, 79, 206, 0.3);
  background: rgba(82, 113, 255, 0.04);
  color: #324fce;
  backdrop-filter: blur(10px);
}

/* ===========================
   BOUTONS GLOBAUX
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
}

.btn--primary {
  background: radial-gradient(circle at 0% 0%, #7f86ff, #324fce);
  color: #fff;
  box-shadow: 0 20px 50px rgba(50, 79, 206, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 26px 60px rgba(50, 79, 206, 0.65);
}

.btn--ghost {
  background: #eef0ff;
  color: #1d2a73;
  border-color: rgba(50, 79, 206, 0.25);
}

.btn--ghost:hover {
  background: #e1e4ff;
}

.btn--full {
  width: 100%;
  background: #324fce;
  color: #fff;
  border: none;
  box-shadow: 0 14px 35px rgba(50, 79, 206, 0.4);
}

.btn--full:hover {
  transform: translateY(-1px);
}

/* ===========================
   SERVICES
   =========================== */

.section--services {
  display: block;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  border-radius: 26px;
  padding: 2rem 1.9rem;
  background: radial-gradient(circle at 0% 0%, rgba(127, 134, 255, 0.18), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(50, 79, 206, 0.18);
  box-shadow: 0 22px 55px rgba(17, 24, 79, 0.12);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.service-card__inner {
  position: relative;
  z-index: 1;
}

.service-card__title {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card__text {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  font-weight: 500;
}

.service-card__list {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #111827;
  font-weight: 500;
}

.service-card__list li {
  margin-bottom: 0.35rem;
}

.service-card__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

/* ===========================
   PROJETS – SCROLL HORIZONTAL
   =========================== */

.section--projects {
  display: block;
}

/* Header inline avec lien Behance */

.section__header--inline {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.section__header--inline .section__title {
  margin-bottom: 0.4rem;
}

.link-out {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #324fce;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #eef0ff;
  border: 1px solid rgba(50, 79, 206, 0.2);
  font-weight: 600;
}

.link-out__icon {
  font-size: 0.9rem;
}

.link-out:hover {
  background: #e1e4ff;
}

/* Filtres */

.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.6rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f5f5f7;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.18s ease, border-color 0.18s ease;
  font-weight: 600;
}

.filter-btn.is-active {
  background: #324fce;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(50, 79, 206, 0.5);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

/* CONTENEUR SCROLL HORIZONTAL */

.projects__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-right: 1rem;
}

.section--projects {
  position: relative;
}

/* Cards de projets */

.project-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 min(340px, 82vw);
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transform-origin: center center;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.02);
  border-color: rgba(50, 79, 206, 0.5);
}

/* Partie visuelle en haut */

.project-card__media {
  height: 200px;
  position: relative;
  overflow: hidden;

  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

.project-card__media--placeholder {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(50, 79, 206, 0.55), rgba(18, 24, 80, 0.9));
}

.project-card__label {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb;
  background: rgba(11, 15, 43, 0.8);
  backdrop-filter: blur(14px);
}

/* Contenu texte */

.project-card__body {
  padding: 1.5rem 1.5rem 1.4rem;
}

.project-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.project-card__type {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.project-card__text {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  font-weight: 500;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eef0ff;
  color: #324fce;
  font-weight: 600;
}

.project-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
}

/* ===========================
   PROCESS
   =========================== */

.section--process {
  display: block;
}

.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.7rem;
  padding: 1.8rem 1.8rem;
  align-items: flex-start;
}

.process-step:not(:last-child) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

@media (max-width: 600px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

.process-step__number {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #7f86ff;
  font-weight: 700;
}

.process-step__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.process-step__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  font-weight: 500;
}

/* ===========================
   TEMOIGNAGES
   =========================== */

.section--testimonials {
  display: block;
}

.testimonials__slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .testimonials__slider {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  position: relative;
  padding: 1.9rem 1.8rem;
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(127, 134, 255, 0.22), #ffffff);
  border: 1px solid rgba(50, 79, 206, 0.2);
  box-shadow: 0 22px 60px rgba(17, 24, 79, 0.15);
}

.testimonial-card__text {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #111827;
  font-weight: 500;
}

.testimonial-card__author {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

.testimonial-card__name {
  font-weight: 700;
}

.testimonial-card__role {
  margin-left: 0.5rem;
  color: #6b7280;
}

/* ===========================
   CONTACT
   =========================== */

.section--contact {
  display: block;
}

.contact__text {
  margin: 1.1rem 0 1.7rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
  font-weight: 500;
}

.contact__infos {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.contact__link,
.contact__value {
  font-size: 1rem;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.contact__link:hover {
  color: #324fce;
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Formulaire */

.contact-form {
  padding: 2rem 2rem 1.8rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 700px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  outline: none;
  background: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
  font-weight: 500;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #324fce;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(50, 79, 206, 0.18);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 1.8rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.site-footer__copy {
  margin: 0;
  font-weight: 500;
}

.site-footer__links {
  display: flex;
  gap: 1.1rem;
}

.site-footer__link {
  color: #324fce;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer__link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   DECOR DE FOND WAW
   =========================== */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* ===== LIGNES SVG ===== */

.bg-lines {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 120%;
  transform: translate(-5%, -5%);
  opacity: 0.5;
  filter: blur(0.3px);
}

.bg-line-path {
  fill: none;
  stroke: rgba(82, 113, 255, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* on laisse GSAP gérer strokeDasharray & offset */
}

/* on varie légèrement la couleur / intensité */
.bg-line-path--2 {
  stroke: rgba(50, 79, 206, 0.45);
}

.bg-line-path--3 {
  stroke: rgba(15, 23, 42, 0.25);
}

/* ===== BULLES FLOTTANTES ===== */

.bg-bubbles {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(82, 113, 255, 0.0)),
    radial-gradient(circle at 70% 80%, rgba(82, 113, 255, 0.35), transparent 60%);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.35),
    0 0 40px rgba(82, 113, 255, 0.65);
  opacity: 0.7;
  mix-blend-mode: screen;
}

/* tailles */

.bubble--sm {
  width: 80px;
  height: 80px;
}

.bubble--md {
  width: 130px;
  height: 130px;
}

.bubble--lg {
  width: 200px;
  height: 200px;
}

/* positions de départ (on les anime ensuite en JS) */

.bubble:nth-child(1) {
  top: 50%;
  left: 8%;
}

.bubble:nth-child(2) {
  top: 65%;
  left: 18%;
}

.bubble:nth-child(3) {
  top: 38%;
  right: 10%;
}

.bubble:nth-child(4) {
  bottom: 8%;
  right: 25%;
}

.bubble:nth-child(5) {
  bottom: 18%;
  left: 60%;
}

/* mobile : on réduit un peu */

@media (max-width: 768px) {
  .bg-lines {
    opacity: 0.3;
  }

  .bubble {
    opacity: 0.5;
    box-shadow:
      0 10px 25px rgba(15, 23, 42, 0.25),
      0 0 26px rgba(82, 113, 255, 0.45);
  }

  .bubble--lg {
    width: 160px;
    height: 160px;
  }

  .bubble--md {
    width: 110px;
    height: 110px;
  }

  .bubble--sm {
    width: 70px;
    height: 70px;
  }
}

/* ===========================
   RIDEAU DE CHARGEMENT
   =========================== */

body.is-loading {
  overflow: hidden;
  height: 100vh; /* bloque le scroll sur mobile */
  position: fixed;
  width: 100%;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #324fce; /* bleu principal */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

.loader-diagonal {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    135deg,
    #1e2a78 0%,
    #324fce 35%,
    #7180ff 70%,
    #c7d2ff 100%
  );
  transform-origin: center;
  /* GSAP animera scale + clipPath */
}

.loader-content {
  position: relative;
  text-align: center;
  color: #f9fafb;
  font-family: "Koulen", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

.loader-label {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.loader-sub {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.loader-overlay .loader-label {
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0% {
    letter-spacing: 0.08em;
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    letter-spacing: 0.16em;
    transform: translateY(-2px);
    opacity: 1;
  }
  100% {
    letter-spacing: 0.08em;
    transform: translateY(0);
    opacity: 0.9;
  }
}

/* Dark mode adapté */

body[data-theme="dark"] .loader-overlay {
  background: #020617;
}

body[data-theme="dark"] .loader-diagonal {
  background: linear-gradient(
    135deg,
    #020617 0%,
    #020617 15%,
    #111827 45%,
    #1f2937 80%,
    #4f46e5 100%
  );
}

/* Container du logo */
.loader-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

/* Logo principal */
.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  position: relative;
}

.loader-logo-svg {
    display: block;
    width: 100%; /* S'assurer qu'il prend la taille du conteneur */
    height: 100%;
}

/* Base du logo (couleur de l'état "vide" - doit être le fond du loader) */
.loader-logo-container .logo-base-color polygon {
    fill: #4E65E4; /* Utilise la couleur du background du loader pour le masquer */
}

/* Couleur de remplissage (la couleur qui apparaît) */
.loader-logo-container .logo-fill-color polygon {
    fill: #ffffff; /* Votre bleu d'accentuation */
}

/* Fond qui va "se remplir" */
.loader-logo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* animé avec GSAP */
  background: #5271FF; /* couleur de remplissage */
  z-index: 0;
  clip-path: inset(0 0 0 0);
}

/* Pourcentage en dessous */
.loader-percentage {
  font-family: "Koulen", sans-serif;
  font-size: 1.2rem;
  color: #f9fafb;
  text-align: center;
}

/* ===========================
   PAGE PROJETS (ADDONS)
   =========================== */

/* Header spécifique avec bouton retour */
.projects-header {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* On écrase le style grid de l'accueil pour en faire une vraie grille CSS responsive */
.projects__grid--full {
    display: grid;
    /* Création automatique de colonnes selon la largeur */
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 2.5rem;
    overflow: visible; /* On désactive le scroll horizontal */
    padding: 0.5rem;   /* Espace pour l'ombre hover */
    scroll-snap-type: none;
    margin-top: 2rem;
}

/* On écrase les styles spécifiques au slider (.project-card flex) */
.project-card--full {
    flex: initial; /* Reset du flex de l'accueil */
    width: 100%;   /* Prend toute la largeur de sa colonne grid */
    transform: none; /* Reset */
}

/* Effet hover conservé mais adapté */
.project-card--full:hover {
    transform: translateY(-8px);
}

/* Ajustement responsive mobile */
@media (max-width: 768px) {
    .projects__grid--full {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 2rem;
    }
}

/* --- Styles Lightbox (Modal) --- */
.lightbox-modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000; /* Assurez-vous qu'elle est au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Arrière-plan sombre et semi-transparent */
    align-items: center;
    justify-content: center;
}

.lightbox-modal.is-active {
    display: flex; /* Afficher la modal */
}

.lightbox-content {
    background-color: #5271FF; /* Couleur de fond de la modal */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.lightbox-title {
    margin: 0;
    font-size: 1.2rem;
}

.lightbox-close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 10px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: rgb(204, 204, 204);
}

.lightbox-body {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 80vh;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}


/* --- Styles du Bouton sur la carte de projet --- */
.project-card__media {
    position: relative; /* Nécessaire pour positionner le bouton */
    overflow: hidden;
}

.project-card__zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(50, 79, 206, 0.9); /* Couleur de votre charte */
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.project-card:hover .project-card__zoom-btn {
    opacity: 1; /* Apparaît au survol de la carte */
    transform: scale(1.05);
}

/* Ajustement responsive mobile */
@media (max-width: 768px) {
    .project-card__zoom-btn {
      opacity: 1; /* Toujours visible sur mobile */
    }
}


/* ========================================
   FOOTER (Moderne & Original)
   ======================================== */

.footer {
    position: relative;
    padding-top: 5rem; /* Espace pour la diagonale */
    background-color: #06459c; /* Couleur de fond sombre et moderne */
    color: #f3f4f6; /* Texte clair */
    margin: 2vw 0 0 0;
    border-radius: 24px 24px 0 0; /* Arrondi seulement en haut */
    overflow: hidden;
}

/* ----------------------------------------
   Effet Diagonal (Originalité)
   ---------------------------------------- */
.footer__diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Utilisation de clip-path pour créer la forme diagonale */
    clip-path: polygon(0 0, 100% 5rem, 100% 100%, 0 100%); 
    background-color: #324fce; /* Couleur d'accentuation (votre bleu principal) */
    z-index: 1;
}

/* Assurer que le contenu est au-dessus de la diagonale */
.footer__content {
    position: relative;
    z-index: 2;
    padding: 3rem 2vw; /* Espace interne */
}

/* ----------------------------------------
   Grille Responsive (Moderne & Responsive)
   ---------------------------------------- */
.footer__content {
    display: grid;
    gap: 3rem;
    padding-bottom: 4rem;
    
    /* Disposition pour grands écrans (3 colonnes) */
    grid-template-columns: 2fr 1fr 1.5fr;
    max-width: 1300px; /* Limiter la largeur max du contenu */
    margin: 0 auto;
}

@media (max-width: 900px) {
    .footer__content {
        /* Disposition pour tablettes (2 colonnes) */
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand {
        grid-column: 1 / -1; /* Le logo prend toute la largeur */
    }
}

@media (max-width: 600px) {
    .footer__content {
        /* Disposition pour mobiles (1 colonne) */
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------
   Détails de style
   ---------------------------------------- */
.footer__brand {
    padding-right: 2rem;
}

.footer__logo {
    height: 40px; /* Taille du logo */
    filter: invert(1); /* Si votre logo est noir, inversez-le pour le fond sombre */
    margin-bottom: 1rem;
}

.footer__tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer__heading {
    font-family: "Koulen", sans-serif; /* Utilisez votre police de titre si disponible */
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #324fce; /* Utiliser la couleur d'accentuation pour les titres */
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: #f3f4f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer__link:hover {
    color: #324fce; /* Survol avec la couleur d'accentuation */
    opacity: 1;
}

/* Liens sociaux */
.footer__socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer__social-link {
    color: #9ca3af; /* Couleur neutre */
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: #fff; /* Changement au survol */
}

.footer__social-link svg {
    width: 24px;
    height: 24px;
    display: block; /* Supprime l'espace sous l'icône */
}

/* ----------------------------------------
   Copyright
   ---------------------------------------- */
.footer__copyright {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(243, 244, 246, 0.1);
    padding: 1.5rem 2vw;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer__link--small {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer{
  width: 95vw;
}