@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@400;700&display=swap');

:root {
  --color-black: #222222;
  --color-white: #EDEDED;
  --color-orange: #E56C52;
  --color-orange-light: #EA8E60;
  --color-background: #181818;
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-open-sans: 'Open Sans', sans-serif;
}

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

html, body {
  width: 100%;  
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-open-sans);
  background-color: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-bebas);
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange-vertical {
  background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
}

.gradient-button {
  display: block;
  background: transparent;
  border: 1.5px solid var(--color-orange);
  border-image-slice: 1;
  background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-bebas);
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  border-radius: 28px 0px 28px 0px;
  width: 31%;
  min-width: fit-content;
  max-width: 90%;
  margin: 3% auto 0;
  padding: 0.25% 7%;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-text .gradient-button {
  margin: 3% 0 0;
}

.gradient-button:hover {
  transform: scale(1.02);
  border-color: var(--color-orange-light);
  color: var(--color-orange-light);
}


/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 2% 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-radius 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, width 0.3s ease, max-width 0.3s ease, left 0.3s ease;
}

nav.scrolled {
  background-color: rgba(34, 34, 34, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px 20px 20px 20px;
  border-bottom: 3px solid var(--color-orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 0.5% 0;
  width: 95%;
  max-width: 1400px;
  left: 50%;
  transform: translateX(-50%) translateY(20%);
}

nav.scrolled .nav-container {
  padding-bottom: 0;
  padding-left: 2%;
  padding-right: 2%;
}

.nav-container {
  width: 100%;
  padding: 0 3%;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.nav-logo {
  order: 1;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.nav-logo img {
  height: auto;
  width: 25%;
  max-width: 300px;
}

nav.scrolled .nav-logo img {
  width: 20%;
  max-width: 180px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: normal;
  font-size: 1.25rem;
  transition: color 0.3s;
  font-family: var(--font-bebas);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 0;
  height: 3px;
  background: radial-gradient(ellipse at center, var(--color-orange) 0%, var(--color-orange) 50%, transparent 100%);
  transition: transform 0.4s ease, width 0.4s ease;
  transform-origin: center;
  box-shadow: 0 0 8px rgba(229, 108, 82, 0.6);
}

.nav-links a:hover {
  color: var(--color-orange-light);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
  width: 100%;
}

.nav-links a.active {
  color: var(--color-orange);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(1);
  width: 100%;
  height: 3px;
  background: var(--color-orange);
  transition: transform 0.4s ease, width 0.4s ease;
  transform-origin: center;
  box-shadow: 0 0 8px rgba(229, 108, 82, 0.6);
}

.menu-toggle {
  display: none;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  order: 3;
  width: 44px;
  height: 36px;
  position: relative;
  padding: 0;
  margin-left: auto;
  z-index: 2;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { top: 100%; transform: translateY(-100%); }

.menu-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  display: none;
  background-color: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 49;
  pointer-events: none;
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-links {
  flex-direction: column;
  gap: 1rem;
  padding: 0 2rem;
}

.mobile-menu .nav-links a {
  font-style: normal;
}

/* Header */
header {
  position: relative;
  width: 100%;
  /* La hauteur doit suivre l'image du <picture> (sinon gros vide sous l'image) */
  min-height: 0;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.header-work {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

header > picture {
  display: block;
  width: 100%;
}

.header-bg {
  /* L'image reste dans le flux pour donner la hauteur au header */
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 0;
  object-fit: contain; /* jamais tronquée */
  object-position: top center;
}

.header-content {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding-top: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
}

/* Desktop / tablette (hors mobile) : contenu collé en bas de l'image */
@media (min-width: 641px) {
  .header-content {
    justify-content: flex-end;
    padding-bottom: clamp(1.25rem, 4vh, 3.25rem);
  }
}

.header-content-container {
  width: 80%;
  margin: 0 auto;
  padding: 0 3%;
  display: flex;
  flex-direction: column;
  gap: 4%;
}

@media (min-width: 768px) {
  .header-content-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 5%;
  }
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.header-logo img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 30%;
}

@media (min-width: 768px) {
  .header-logo {
    width: 25%;
  }
  
  .header-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
  }
}

.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2%;
  justify-content: flex-start;
}

.header-text h1 {
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.header-text .subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: rgba(237, 237, 237, 0.9);
  font-weight: bold;
  font-style: italic;
  margin: 0;
  font-family: var(--font-open-sans);
}

.header-text .description {
  display: flex;
  flex-direction: column;
  gap: 2%;
  color: rgba(237, 237, 237, 0.9);
  font-size: clamp(0.9rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  margin: 2% 0;
}

.header-list {
  list-style: none;
  padding: 0;
  margin: 1% 0;
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.header-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(237, 237, 237, 0.9);
  font-size: clamp(0.9rem, 1.2vw, 1.125rem);
}

.header-bullet {
  width: auto;
  height: 1em;
  flex-shrink: 0;
  margin-top: 0.2em;
}

@media (min-width: 1025px) {
  .header-text .description {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  }
}

@media (min-width: 1921px) {
  .header-text .description {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  }
}

/* Sections communes */
section {
  padding: 2% 0;
  width: 100%;
}

section:first-of-type {
  padding-top: 0;
}

/* Desktop: réduit l'espacement vertical global entre sections */
@media (min-width: 1025px) {
  section {
    padding: 0% 0;
  }
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.2;
  text-align: center;
}

#about .section-title {
  text-align: left;
}

/* About */
#about {
  position: relative;
  overflow: visible;
  width: 100%;
  /* Réduit l'écart visuel avec le header */
  padding-top: 0;
}

.about-content {
  width: 100%;
  padding: 5% 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content-container {
  margin: 0 auto;
  display: grid;
  align-items: stretch;
  transform: scale(0.8);           /* réduction ~15% hauteur/largeur */
  transform-origin: center center;
}

.about-image {
  display: flex;
  align-items: stretch;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  transform: translateX(-25%);
}

@media (min-width: 768px) {
  .about-content-container {
    /* Donne plus de place au texte, sans changer la taille visuelle de l'image */
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 0;
  }

  /* Texte bien aligné à gauche */
  .about-text,
  .about-text p {
    text-align: left;
  }

  /*
    IMPORTANT: l'image est restée à "50%" auparavant.
    Comme la colonne image passe de 1fr à 0.8fr, on compense (×1.25) pour que
    la taille finale de l'image reste identique visuellement :
    50% / 0.8 = 62.5%
  */
  .about-image img {
    width: 62.5%;
  }
}

.about-image {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
}

.about-image img {
  border-radius: 0.5rem;
}

.about-img-mobile {
  display: none;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2%;
  width: 125%;
  height: 100%;
}

.about-text p {
  color: rgba(237, 237, 237, 0.9);
  line-height: 1.75;
  margin-bottom: 2%;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

@media (min-width: 1025px) {
  .about-text p {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  }
}

@media (min-width: 1921px) {
  .about-text p {
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  }
}

.about-text p:last-child {
  margin-bottom: 0;
}

.arrow-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0%;
  width: 100%;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.arrow-bottom img {
  width: 40%;
  height: auto;
  display: block;
  position: relative;
  z-index: 20;
  margin: 0 auto;
}

/* ========================= */
/*         ACTIONS           */
/* ========================= */

#actions {
  background-color: var(--color-black);
  width: 100%;
  padding: 5% 3%;
}

/* ----- CARTES ----- */

.action-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.action-card:hover {
  transform: translateY(-4px);
}

/* On garde les classes pour sémantique, mais la taille est gérée par la grille + height */



.action-card-image {
  width: 100%;
  height: 100%;
}

.action-card-image img {
  width: 100%;
  height: 100%;        /* ne déforme pas les images, respecte les proportions */
  display: block;
}

/* ----- TITRES AU CENTRE DES CARTES ----- */

.action-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--color-white);
  font-size: clamp(2.4rem, 2vw, 4rem); /* taille x2 */
  font-family: var(--font-bebas);
  text-align: center;
  line-height: 1.25;
  width: 84%;
}

.action-title .highlight {
  background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

/* ----- MOBILE ----- */
@media (max-width: 768px) {
  /* Header & Actions: titres plus grands sur < 768px */
  .header-text h1 {
    font-size: clamp(2.8rem, 9vw, 4.6rem);
  }

  .actions-title {
    font-size: clamp(2.8rem, 8vw, 4.6rem);
  }
  .footer-text  {
    padding-top: 3%;
  }
  .footer-text .copyright {
    font-size: clamp(0.6rem, 1vw, 0.9rem);
  }
  .gradient-button {
    width: 70%;
    min-width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    padding: 1% 20%;
  }
  /* Sur mobile/tablette étroite : si tu veux que le fond remplisse le cadre,
     il faut appliquer object-fit sur l'IMG de fond, pas sur la div overlay. */
  #actions .actions-bg {
    object-fit: cover;
    object-position: center;
  }
  .header-content {
    justify-content: flex-start;
  }
  .about-text {
    transform: translateX(0%);
    width: 100%; 
  }

.branding-icon {
  left: 29%;
}
  .form-submit {
    width: 80%;
    min-width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
    padding: 0.8% 4%; /* hauteur réduite */
  }

  #actions {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 10% 6% 12%;
  }

  .actions-grid {
    gap: 1.2rem;
    padding-left: 5%;
    padding-right: 5%;
  }

  .actions-row {
    display: flex;
    flex-direction: column;   /* une seule colonne */
    gap: 1.2rem;
  }

  .action-card {
    width: 100%;
    height: auto;             /* laisse l'image prendre sa hauteur naturelle */
  }

  .action-card-image {
    height: auto;
  }

  .action-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .action-title {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
  }

  /* Sections respi pour voir les fonds sur mobile */
  #websites {
    padding: 8% 5% 12%;
  }

  .websites-carousel {
    width: 90%;
  }

  #work .work-hero {
    padding: 15% 5%;
    padding-bottom: 5%;
  }

  .work-logos {
    width: 80%;
  }

  #gaming {
    padding: 10% 5% 12%;
  }

  #com {
    padding: 10% 5% 12%;
  }
}

/* ----- TABLETTE ----- */
@media (min-width: 769px) and (max-width: 1024px) {
  .gradient-button {
    width: 50%;
    min-width: fit-content;
    max-width: 90%;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    padding: 0.8% 20%;
  }

  .form-submit {
    width: 50%;
    min-width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    padding: 0.8% 4%;
  }

  #actions {
    padding: 0;
  }

  #actions .actions-overlay {
    padding: 20%;
  }

  .actions-inner {
    padding-left: 10%;
    padding-right: 10%;
  }

  .actions-grid {
    gap: 1.8rem;
  }

  .actions-row {
    gap: 1.8rem;
  }

  .action-card {
    height: auto;
    max-height: none;
  }

  .action-title {
    font-size: clamp(1.6rem, 1.5vw, 2.5rem);
  }

  /* Sections respi tablette pour garder les fonds visibles */
  #websites {
    padding: 8% 6% 10%;
  }

  .websites-carousel {
    width: 85%;
  }

  #work .work-hero {
    padding: 8% 5%;
  }

  #gaming {
    padding: 8% 5% 10%;
  }

  #com {
    padding: 8% 5% 10%;
  }

  /* Bullets à gauche sans décalage sur tablette (toutes sections) */
  .header-list,
  #websites .header-list,
  #com .header-list {
    margin-left: 0 !important;
  }
}


/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1%;
}

.popup-content {
  position: relative;
  max-width: 80%;
  width: 100%;
}

.popup-close {
  position: absolute;
  top: -8%;
  right: 0;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 2.5rem);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.popup-close:hover {
  color: var(--color-orange-light);
}

.popup-content img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Overlay d’animation Actions / COM */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
}

.detail-overlay.active {
  display: flex;
}

.detail-overlay.active .detail-image {
  border-radius: 5%;
}

.detail-overlay-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--color-white);
  font-size: clamp(2rem, 3vw, 2.5rem);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  display: none;
  pointer-events: none;
}

.detail-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 30px);
  opacity: 0;
  text-align: center;
  color: var(--color-white);
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 1002;
}

.detail-text.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.detail-text h3 {
  font-family: var(--font-bebas);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

/* Confiance */
#confiance {
  background-color: var(--color-black);
  width: 100%;
  padding: 5%;
}

/* Testimonials / Actions Carousel */
#actions {
  background-color: var(--color-black);
  width: 100%;
  padding: 5% 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#actions .section-title {
  color: #b8b8b8;
  margin-bottom: 4%;
  width: 100%;
}

.testimonial-container {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem;
}

.testimonial-grid {
  display: grid;
  gap: 5rem;
}

.testimonial-image-container {
  position: relative;
  width: 100%;
  height: 24rem;
  perspective: 1000px;
}

.testimonial-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 3px solid var(--color-orange);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  min-height: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-name {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-orange);
  font-size: 1.5rem;
  font-family: var(--font-bebas);
  flex-shrink: 0;
}

.testimonial-designation {
  display: none;
}

.testimonial-quote {
  line-height: 1.6;
  color: #b8b8b8;
  font-size: 0.95rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.testimonial-quote .word {
  display: inline-block;
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.testimonial-bullets {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0 0;
  padding-left: 2.5rem;
}

.testimonial-bullets li {
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.testimonial-bullets li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.3em;
  width: 12px;
  height: 12px;
  background-image: url('Public/HEADER/Bullet.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.testimonial-arrow-buttons {
  display: flex;
  gap: 1.5rem;
  padding-top: 3rem;
}

.testimonial-arrow-button {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  background-color: var(--color-white);
  color: var(--color-black);
}

.testimonial-arrow-button:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.testimonial-arrow-button svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-arrow-buttons {
    padding-top: 0;
  }
}

/* Desktop: Confiance moins "haute" (réduit l'écart entre sections) */
@media (min-width: 1025px) {
  #confiance {
    padding: 3% 5%;
  }
}

.confiance-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-left: 10%;
  padding-right: 10%;
}

.confiance-logo img {
  width: 100%;
  height: auto;
}

/* Branding */
#work {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.work-hero {
  position: relative;
  width: 100%;
  padding: 10% 5% 5%;
  overflow: hidden;
}

.work-bg-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  object-fit: contain; /* pas de déformation */
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.work-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(15rem, 25vw, 35rem);
  font-family: var(--font-bebas);
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
  z-index: 0;
  pointer-events: none;
}

.work-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0 3%;
}

.work-logos {
  width: 60%;
  margin: 1.5% auto 3%;
  position: relative;
  z-index: 5;
}

.work-logos-img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.work-logos-img-mobile {
  display: none;
}

.work-title {
  background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 6.5%;
  position: relative;
  z-index: 3;
}

.work-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
  margin-bottom: 3%;
  z-index: 4;
}

.branding-icon {
  position: absolute;
  left: 35%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 6%;
  max-width: 9rem;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.work-header .section-title {
  position: relative;
  z-index: 3;
}

.section-header img {
  height: auto;
}

/* Websites Section */
.websites-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.websites-header {
  flex-direction: column;
  gap: 0.75rem;
}

.websites-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom:5%;
}

.website-icon-right {
  width: 25%;
  height: auto;
}

.websites-subtitle {
  color: var(--color-black);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 700;
  font-style: italic;
  text-align: center;
    margin-bottom: 0.5rem;
}

.websites-subtitle-orange {
  color: var(--color-orange) !important;
  font-weight: 700;
  font-style: italic;
}

.com-subtitle {
  font-weight: 700;
  text-align: center;
}

.com-subtitle-white {
  color: var(--color-white);
}

.com-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding-top:5%;
}

.com-header .section-title {
  position: relative;
  z-index: 1;
}

.com-icon {
  width: 7%;
  height: auto;
}

.com-icon-left {
  margin-right: -2rem;
}

.com-icon-right {
  margin-left: -2rem;
}

.com-description-wrapper {
  width: 80%;
  max-width: 90%;
  margin: 0 auto 3%;
  text-align: center;
}

.com-description {
  color: rgba(237, 237, 237, 0.9);
  line-height: 1.75;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  white-space: pre-line;
}

/* Bullets section com : décalés un peu à gauche */
#com .header-list {
  margin-left: 12rem !important;
}

#comTitle {
  color: var(--color-white);
}

.com-title-orange {
  color: var(--color-orange);
}

#comTitle {
  color: var(--color-white);
}

.websites-title-black {
  color: var(--color-black) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--color-black) !important;
  background-clip: unset !important;
}

.websites-description {
  color: var(--color-black);
  line-height: 1.75;
  font-size: 1.125rem;
  padding-left: 20%;
    padding-right: 20%;
}

/* Bullets section websites : décalés un peu à droite */
#websites .header-list {
  margin-left: 18rem !important;
}
.websites-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  z-index: -1;
  pointer-events: none;
}

/* Websites Carousel */
.websites-carousel {
  position: relative;
  width:100%;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 90%;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img,
.gaming-image img {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInFromRight 0.4s forwards ease-out;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInFromLeft 0.4s forwards ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background-color: transparent;
  opacity: 0.7;
}

.carousel-nav.prev {
  left: 2%;
}

.carousel-nav.next {
  right: 2%;
}

.carousel-nav img {
  width: clamp(30px, 4vw, 60px);
  height: auto;
}

.carousel-info {
  margin-top: 3%;
  text-align: center;
  width: 100%;
  padding-bottom: 5%;
  color: var(--color-black);
}

.carousel-info h3 {
  font-size: clamp(2.5rem, 3.5vw, 3rem);
  margin-bottom: 1%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1%;
  margin-top: 2%;
}

.carousel-dot {
  width: 0.6%;
  max-width: 0.6rem;
  aspect-ratio: 1;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  width: 2.5%;
  max-width: 2.5rem;
  background-color: var(--color-orange-light);
}

/* COM Carousel */
.com-carousel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 80%;
  margin: 3% auto;
}

.com-carousel::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, var(--color-black), transparent);
  z-index: 2;
  pointer-events: none;
}

.com-carousel::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  right: 0;
  background: linear-gradient(-90deg, var(--color-black), transparent);
  z-index: 2;
  pointer-events: none;
}

.com-control {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  padding: 0;
}

.com-control:hover {
  opacity: 0.7;
}

.com-control img {
  width: clamp(30px, 4vw, 60px);
  height: auto;
}

#comPrev {
  left: 0;
  display: none;
}

#comNext {
  right: 0;
}

.com-cards-wrapper {
  display: flex;
  overflow-x: scroll;
  gap: 50px;
  padding: 0 calc(50% - 200px);
  height: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.com-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.com-cards-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.com-card {
  flex-shrink: 0;
  transition: box-shadow 0.3s;
  scroll-snap-align: center;
  margin: 5%;
  border-radius: 1rem;
  overflow: hidden;
}


.com-card.active {
  box-shadow: 0 0 20px rgba(229, 108, 82, 0.8),
              0 0 0px rgba(229, 108, 82, 0.6),
              0 0 0px rgba(229, 108, 82, 0.4);
  border: 2px solid var(--color-orange);
}

.com-card img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .com-carousel {
    width: 100%;
  }
  
  .com-card img {
    width: 300px;
    height: 300px;
  }
  
  .com-cards-wrapper {
    padding: 0 calc(50% - 150px);
    gap: 30px;
  }
  
  .com-carousel::before,
  .com-carousel::after {
    width: 50px;
  }
}

.websites-description {
  padding-left: 10%;
  padding-right: 10%;
}

/* Gaming */
#gaming {
  position: relative;
  overflow: hidden;
  background-color: var(--color-black);
  width: 100%;
}

.gaming-bands {
  position: absolute;
  top: 0;
  z-index: 0;
  width: 5%;
  max-width: 180px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  height: auto;
}

@media (min-width: 768px) {
  .gaming-bands {
    width: 5%;
  }
}

@media (max-width: 768px) {
  #actions {
    width: 90%;
  }
}

.gaming-band-left {
  left: 0;
}

.gaming-band-right {
  right: 0;
}

.gaming-band-left img,
.gaming-band-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gaming-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 3%;
}

.gaming-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2%;
}

.gaming-title {
  color: var(--color-white);
  position: relative;
  z-index: 1;
  text-align: center;
}

.gaming-icon {
  width: 8%;
  height: auto;
  margin-right: -1.5rem;
  position: relative;
  z-index: 0;
}

.gaming-description-wrapper {
  width: 90%;
  margin: 0 auto 3%;
  text-align: center;
}

.gaming-description {
  color: rgba(237, 237, 237, 0.9);
  line-height: 1.75;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  white-space: pre-line;
}

.gaming-carousel {
  position: relative;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto 3%;
}

.gaming-slide {
  display: none;
  width: 100%;
}

.gaming-slide.active {
  display: block;
}

.gaming-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1%;
  pointer-events: none;
}

.gaming-carousel-nav {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: none;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.gaming-carousel-nav:hover {
  background-color: transparent;
}

.gaming-carousel-nav img {
  width: clamp(40px, 5vw, 80px);
  height: auto;
}

.gaming-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.gaming-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2%;
}

/* Consulting */
#consulting {
  position: relative;
  overflow: hidden;
  background-color: var(--color-black);
  width: 100%;
  padding: 6% 3% 4%;
}

.consulting-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 3%;
}

.consulting-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2%;
  padding: 0 10%;
}

.consulting-title {
  color: var(--color-white);
  position: relative;
  z-index: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.consulting-icon-inline {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 0.1em;
}

.consulting-description-wrapper {
  width: 90%;
  margin: 0 auto 3%;
  text-align: center;
}

.consulting-description {
  line-height: 1.75;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  white-space: pre-line;
}

.consulting-scroll-top {
  display: none !important;
}

.consulting-scroll-top-img {
  width: clamp(40px, 5vw, 80px);
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.consulting-scroll-top:hover .consulting-scroll-top-img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(2000%) hue-rotate(340deg) brightness(0.9) contrast(0.9);
}

/* Form */
#form {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#form::before {
  display: none;
}

#form {
  padding: 3%;
}

/* Desktop: réduit l'espacement vertical de la section contact */
@media (min-width: 1025px) {
  #form {
    padding: 2%;
  }
}

.form-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 60%;
  margin: 0 auto;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
}

.form-title-underline {
  width: 35%;
  height: 2px;
  margin: 0 auto 5%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 25%, #ffffff 50%, rgba(255,255,255,0.6) 75%, transparent 100%);
  border-radius: 999px;
}

.form-studio-title {
  font-size: clamp(2.4rem, 4vw, 4.8rem); /* aligné sur section-title */
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.form-studio-design {
  color: var(--color-white);
}

.form-subtitle {
  color: rgba(237, 237, 237, 0.8);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-style: italic;
  font-weight: 700;
  margin-top: 1%;
  margin-bottom: 10%;
}

.form-subtitle .highlight-orange {
  color: var(--color-orange);
}

.form-envelope {
  width: 9%;
  height: auto;
  display: block;
  margin: 1.2% auto 0.4%; /* petit espace avec le texte, mail collé dessous */
}

.form-header img {
  width: 4%;
  max-width: 2.5rem;
  height: auto;
}

.form-studio {
  margin-bottom: 3%;
}

.form-studio h3 {
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  margin-bottom: 1%;
}

.form-studio .subtitle {
  color: rgba(237, 237, 237, 0.7);
  font-size: clamp(1.125rem, 1.5vw, 1.125rem);
}

.form-email {
  display: flex;
  align-items: center;
  gap: 1.5%;
  margin-top: 0.4%;
  justify-content: center;
}

.form-email img {
  width: 2.5%;
  max-width: 1.2rem;
  height: auto;
}

.form-email a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
}

.form-email a:hover {
  color: var(--color-orange-light);
}



.form-group label {
  display: block;
  color: rgba(237, 237, 237, 0.5);
  font-size: clamp(0.875rem, 1vw, 0.875rem);
  margin-top: 1%;
  font-family: var(--font-open-sans);
}



/* WRAPPER AVEC LE VRAI DÉGRADÉ */
.input-wrapper {
  position: relative;
  border-radius: 28px 0 28px 0;
  padding: 1px; /* espace pour le dégradé */
  background: linear-gradient(
      to bottom,
      rgba(229,108,82,0) 0%,
      rgba(229,108,82,0.25) 50%,
      rgba(229,108,82,1) 100%
  );
}

/* Le textarea a besoin d’un gradient plus étalé */
.input-wrapper.big {
  background: linear-gradient(
      to bottom,
      rgba(229,108,82,0) 0%,
      rgba(229,108,82,0.15) 40%,
      rgba(229,108,82,1) 100%
  );
}

/* CHAMP PAR-DESSUS */
.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: #181818;
  border: none;
  border-radius: 28px 0 28px 0;
  padding: 0.8rem 2rem; /* hauteur réduite ~10% */
  color: var(--color-white);
  font-size: 1.1rem;
  font-family: var(--font-open-sans);
  resize: none;
  display: block;
}

.input-wrapper textarea {
  min-height: 198px; /* -10% */
}

/* Compatible focus */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
}

.form-group textarea {
  resize: none;
  min-height: 13.5vh; /* -10% */
}

.form-submit {
  width: 25%;
  min-width: fit-content;
  max-width: 90%;
  margin: 3% auto 0;
  background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
  border: 3px solid var(--color-orange);
  color: var(--color-black);
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-bebas);
  font-size: clamp(2rem, 3vw, 2.5rem);
  border-radius: 28px 0px 28px 0px;
  padding: 0% 5%;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: scale(1.1);
  background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
}

/* Footer */
footer {
  position: relative;
  padding: 4% 3%;
  background-color: var(--color-black);
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3%;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-text {
  text-align: center;
  order: 2;
}

.footer-text .studio-name {
  color: var(--color-black);
  font-family: var(--font-bebas);
  font-size: clamp(1.5rem, 2vw, 1.5rem);
  margin-bottom: 1%;
}

.footer-text .copyright {
  color: rgba(237, 237, 237, 0.15);
  font-size: clamp(0.6rem, 0.9vw, 0.85rem);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  order: 1;
}

.footer-socials a {
  max-width: 4rem;
  aspect-ratio: 1;
  transition: transform 0.3s;
}

.footer-socials a:hover {
  transform: scale(1.1);
}

.footer-socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Assombrit vers le gris */
  filter: grayscale(1) saturate(0) brightness(0.75) contrast(1.05);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Au hover, on laisse apparaître l'icône "Hover" en couleur (JS swap déjà l'image) */
.footer-socials a:hover img {
  filter: none;
  opacity: 1;
}

/* Responsive - Smartphone */
@media (max-width: 768px) {
  :root {
    --section-pad-top-mobile: 10%;
    --section-pad-bottom-mobile: 12%;
    --section-pad-x-mobile: 0%;
  }

  /* Homogénéisation de l'espacement entre sections (mobile) */
  #about,
  #actions,
  #confiance,
  #form,
  #websites,
  #gaming,
  #com {
    padding: var(--section-pad-top-mobile) var(--section-pad-x-mobile) var(--section-pad-bottom-mobile);
  }

  /* Bullets à gauche sans décalage sur mobile (toutes sections) */
  .header-list,
  #websites .header-list,
  #com .header-list {
    margin-left: 0 !important;
  }

  /* Réduction des marges/paddings horizontaux sur mobile */
  .nav-container {
    /* Mobile: évite que le logo (et le contenu du nav) soit collé au bord */
    padding-left: clamp(12px, 4vw, 24px);
    padding-right: clamp(12px, 4vw, 24px);
  }
  .header-content-container {
    width: 90%;
    padding-left: 0;
    padding-right: 0;
    transform: scale(1);
  }

  /* Header (mobile): logo centré et descendu */
  .header-logo {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: clamp(1.25rem, 6vh, 3rem);
  }

  .header-logo img {
    display: block;
    margin: 0 auto;
    max-width: min(45vw, 220px);
    height: auto;
  }
  .about-content-container {
    width: 90%;
    padding-left: 0;
    padding-right: 0;
    transform: scale(1);
  }

  /* About (mobile): image plus petite */
  .about-image {
    justify-content: center;
  }

  .about-image img {
    width: 140%;
    margin: 0 5%;
  }

  .about-img-desktop {
    display: none;
  }
  .about-img-mobile {
    display: block;
  }
  .actions-inner,
  .work-content,
  .gaming-description-wrapper,
  .com-description-wrapper,
  .consulting-description-wrapper,
  .websites-carousel,
  .work-logos,
  .form-content {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Consulting: responsive mobile — titre centré, icône derrière le C */
  #consulting {
    padding: 10% 3% 12%;
  }
  
  .consulting-content {
    padding-left: 0;
    padding-right: 0;
  }
  
  .consulting-header {
    justify-content: center;
    text-align: center;
  }
  
  .consulting-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 0;
  }
  
  .consulting-title .consulting-icon-inline {
    position: absolute;
    left: 0;
    margin-right: 0;
    z-index: 0;
  }
  
  .consulting-title span {
    position: relative;
    z-index: 1;
  }
  
  .consulting-description-wrapper {
    width: 90%;
  }

  /* Work: la mise en page utilise déjà du padding dans .work-hero, on homogénéise surtout la fin de section */
  #work {
    padding-bottom: var(--section-pad-bottom-mobile);
  }

  .work-bg-image {
    height: auto;
  }

  

  .work-hero {
    padding: 0;
  }

  .work-logos-img-desktop {
    display: none;
  }

  .work-logos-img-mobile {
    display: block;
  }

  /* Évite un "double" padding au début de la section COM (padding-top déjà géré par la section) */
  .com-header {
    padding-top: 0;
    width: 90%;
    left: 5%;
  }

  .com-icon-left {
    margin-right: -8%;
}
.com-icon {
  width: 17%;
  height: auto;
}

.gaming-icon {
  width: 15%;
}

  .branding-icon {
    left: 17%;
    width: 21%;
  }
  .gaming-bands {
    display: none;
  }
  /* Gaming: image plein écran en largeur sur mobile */
  .gaming-content {
    padding-left: 0;
    padding-right: 0;
  }
  .gaming-carousel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .gaming-image img {
    padding: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
  .gaming-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .mobile-menu {
    display: block;
  }
  .form-submit {
    width: 85%;           /* plus large sur mobile étroit */
    min-width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;   /* centrage garanti */
    padding: 0;
  }
  .header-text .gradient-button {
    margin: auto;
}
  .menu-toggle {
    display: block;
  }

  /* Burger mobile — style type "3 barres arrondies" (comme la référence),
     tout en gardant l'animation existante via la classe .open */
  .menu-toggle {
    /* Mobile: burger plus compact */
    width: 44px;
    height: 34px;
  }

  .menu-toggle span {
    height: 6px;
    background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
    border-radius: 999px;
    left: 0;
    transform-origin: left center;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  }

  .menu-toggle span:nth-child(1) {
    top: 0px;
    width: 36px;
    transform: none;
  }

  .menu-toggle span:nth-child(2) {
    top: 50%;
    width: 24px;
    transform: translateY(-50%);
  }

  .menu-toggle span:nth-child(3) {
    top: calc(100% - 0px);
    width: 36px;
    transform: translateY(-100%);
  }

  .menu-toggle.open span:nth-child(1) {
    top: 50%;
    /* Croix plus petite/fine (garde l'animation) */
    left: 50%;
    width: 28px;
    height: 5px;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    top: 50%;
    /* Croix plus petite/fine (garde l'animation) */
    left: 50%;
    width: 28px;
    height: 5px;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-container .nav-links {
    display: none;
  }

  /* Pas d'effet cadre du menu quand le burger est affiché */
  nav.scrolled {
    width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
    border-bottom: none;
    box-shadow: none;
  }

  /* Masquer les flèches des carousels sur mobile (swipe à la place) */
  .testimonial-arrow-buttons {
    display: none;
  }
  .com-control {
    display: none !important;
  }
  .websites-carousel .carousel-nav {
    display: none;
  }

  /* Carousel website mobile : images SansFleches visibles en entier, 5% marge gauche/droite */
  .websites-carousel .carousel-container {
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
    padding: 0 5%;
  }

  .websites-carousel .carousel-slide {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }

  .websites-carousel .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* Section actions (carousel prestations) : afficher tous les bullets sur mobile */
  .testimonial-text {
    height: auto;
    min-height: 300px;
    overflow: visible;
  }
  .testimonial-quote {
    overflow-y: visible;
  }
  
  .nav-container {
    justify-content: space-between;
  }
  
  .nav-links {
    position: static;
    transform: none;
  }

  .mobile-menu.active .nav-links {
    display: flex;
  }

  .work-logos {
    width: 80%;
  }
  .work-header .section-title {
    font-size: clamp(3rem, 4vw, 4rem);
  }

  /* Overlay Actions/COM: texte prend 90% de la largeur écran sur mobile */
  .detail-text {
    max-width: 90vw;
    width: 90vw;
  }

  /* Header responsive mobile */
  header {
    min-height: 140vh;
    height: auto;
    overflow: hidden;
  }
  
  
  
  .header-content-container {
    width: 90%;
    gap: 2%;
    flex-direction: column;
    text-align: center;
  }
  
  .header-text h1 {
    font-weight: 400;
    margin-bottom: 1%;
  }
  
  .header-text .subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 1.5%;
  }
  
  .header-text .description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    gap: 1%;
    margin-bottom: 2%;
  }
  
  .gradient-button {
    width: 60%;
    font-size: clamp(1.8rem, 3.5vw, 1.3rem);
    padding: 0.8% 18%;
    margin: 5% auto 0;
  }
  
  /* Actions responsive mobile */
  
  
  .com-grid {
    grid-template-columns: 1fr;
  }

  .gaming-slide {
    grid-template-columns: 1fr;
  }

  .form-content {
    max-width: 90%;
  }
  .header-content {
    padding-top: 15%;
    padding-bottom: clamp(2rem, 8vh, 4rem);
    justify-content: flex-start;
  }
}

/*responsive petit ecran*/
@media (min-width: 1024px) and (max-width:1440px ) {
  /* Le header est piloté par l'image (contain) + overlay : ne pas forcer de top ici */
  .header-content {
    transform: none !important;
  }

  .actions-inner {
    padding-left: 10%;
    padding-right: 10%;
  }
  #actions {
    width: 90% !important;
    max-width: 90%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 5%;
  }
  section {   
    padding: 5% 0;
  }
}

/* Responsive - Tablette */
@media (min-width: 769px) and (max-width: 1024px) {

  .branding-icon {
    left: 29%;
  }
  .footer-text .copyright {
    color: rgba(237, 237, 237, 0.15);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
  }
  .form-submit {
    width: 40%;
  }
  /* Header responsive tablette */
  .header-text .gradient-button {
    margin: auto;
  }
  
  header {
    min-height: 0;
    height: auto;
  }
  
  .header-bg {
    height: auto;
    width: 100%;
    object-fit: contain;
    object-position: top center;
  }
  
  .header-content-container {
    width: 85%;
    padding: 0 4%;
    gap: 3.5%;
  }
  
  /* Actions responsive tablette */
 
  
  .header-text h1 {
    font-size: clamp(1.8rem, 4.3vw, 3.4rem);
  }
  
  .header-text .subtitle {
    font-size: clamp(0.95rem, 1.85vw, 1.15rem);
  }
  
  .header-text .description {
    font-size: clamp(0.85rem, 1.35vw, 0.95rem);
  }
  
  .gradient-button {
    width: 35%;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    padding: 0.6% 10%;
    }
  
  /* Actions responsive tablette */
 
  
  .form-content {
    max-width: 70%;
  }
}

/* Responsive - HD (1920px) */
@media (min-width: 1025px) and (max-width: 1920px) {
  .form-submit {
    width: 40%;
  }
  section {
    padding: 5% 0;
}
  /* Header responsive desktop */
  header {
    /* La hauteur doit suivre l'image (sinon gros vide) */
    min-height: 0;
    height: auto;
  }
  .form-submit {
    width: 30%;
  }
  .header-content {
    /* Ne jamais décaler le contenu sur cette plage : il est en overlay sur l'image */
    transform: none !important;
    
  }
  
  .header-content-container {
    width: 80%;
    padding: 0 3%;
    gap: 4%;
  }
  
  .header-text h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
  }
  
  .header-text .subtitle {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
  }
  
  .header-text .description {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
  }
  
  .gradient-button {
    width: 20%;
    min-width: fit-content;
    max-width: 90%;
    font-size: clamp(1.6rem, 2.2vw, 1.8rem);
    /* Desktop: réduit la taille verticale */
    line-height: 1;
    padding: 0.4% 7.5%;
    margin: 3% auto 0;
  }

  /* Desktop: réduit la taille verticale du bouton "ENVOYER" */
  .form-submit {
    line-height: 1;
  }
  
  /* Actions responsive desktop */
  
  
  .form-studio .subtitle {
    font-size: clamp(1.25rem, 1.8vw, 1.375rem);
  }

  .form-group input,
  .form-group textarea {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  }

  .footer-text .copyright {
    color: rgba(237, 237, 237, 0.15);
    font-size: clamp(0.6rem, 1vw, 0.9rem);
  }

  /* Comme la version mobile (<768) : texte copyright plus bas */
  .footer-text {
    padding-top: 3%;
  }
}

/* Responsive - 4K (2560px+) */
@media (min-width: 1921px) {
  /* Header responsive large desktop */

  

  
  .header-content-container {
    width: 80%;
    padding: 0 3%;
    gap: 5%;
  }

  /* Actions: plus large sur très grands écrans */
  #actions .actions-overlay {
    max-width: 1700px;
    /* Desktop (4K): réduit l'espacement vertical global */
    padding: 12%;
  }
  
  /* Actions responsive large desktop */
  
  .header-text h1 {
    font-size: clamp(4rem, 5vw, 6rem);
  }
  
  .header-text .subtitle {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
  }
  
  .header-text .description {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  }
  
  .gradient-button {
    width: 20%;
    min-width: fit-content;
    max-width: 90%;
    /* Desktop: réduit la taille verticale */
    line-height: 1;
    padding: 0.15% 7%;
    font-size: clamp(1.8rem, 2.7vw, 2.3rem);
    margin: 3% auto 0;
  }

  /* Desktop: réduit la taille verticale du bouton "ENVOYER" */
  .form-submit {
    line-height: 1;
  }
  
  /* Actions responsive large desktop */

  
  .form-studio .subtitle {
    font-size: clamp(1.375rem, 2vw, 1.625rem);
  }

  .form-group input,
  .form-group textarea {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  }

  .footer-text .copyright {
    color: rgba(237, 237, 237, 0.15);
    font-size: clamp(0.6rem, 1vw, 0.9rem);
  }

  /* Comme la version mobile (<768) : texte copyright plus bas */
  .footer-text {
    padding-top: 3%;
  }
}

