body {
  font-family: "Roboto Slab", sans-serif;
}

/*--------------------------------------------------------------
# Général
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}

html,
body {
  font-family: "Roboto Slab", serif;
  font-display: swap;
  position: relative;
  height: 100%;
  text-decoration: none;
  list-style: none;
  background-color: #fff;

  max-width: 100%;
  font-size: 1.3rem;
  line-height: 2;
}
.container-fluid {
  padding: 0 15px;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

a {
  text-decoration: none;
  list-style: none;
  color: #f5f5e9 !important;
}

#scrollToTopBtn {
  display: block !important; /* Forcer l'affichage pour tester */
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border: none;
  background-color: #032b35;
  color: #ffffff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}

#scrollToTopBtn:hover {
  background-color: #1b4f5f;
  transform: translateY(-3px);
}

#scrollToTopBtn:active {
  transform: translateY(0);
}

/* Titres */
h1,
h2,
h3,
h4 {
  font-family: "Special Elite", serif;
  line-height: 1.3;
  overflow-y: hidden;
  font-display: swap;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}

/* Styles mobiles */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }
}

/* Styles pour les écrans moyens */
@media (max-width: 1200px) {
  body {
    font-size: 1.05rem;
  }
}

/*--------------------------------------------------------------
#Boutons
--------------------------------------------------------------*/
.btn-custom {
  background-color: #032b35 !important;
  color: #f5f5e9 !important;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-custom:hover {
  background-color: #085669;
  transform: scale(1.05);
}

.btn-custom-outline {
  color: #ffffff;
  border: 2px solid #ffffff;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.btn-custom-outline:hover {
  background-color: #ffffff;
  color: #032b35 !important;
}

/*--------------------------------------------------------------
# Navbar 
--------------------------------------------------------------*/
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 800;
  width: 100%;
  color: #000;
  padding: 10px 20px;
  box-sizing: border-box !important;
  font-family: "Special Elite", serif !important;
  overflow-y: hidden !important;
}

/* Effet de loading au survol */
.nav-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 75%
  );
  background-size: 200% 100%;
  animation: liLoading 1.5s linear infinite;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(3, 43, 53, 0.7);
  box-shadow: 0 4px 8px rgba(3, 43, 53, 0.2);
  color: #000;
}
.navbar-background {
  background-color: #032b35;
  border-radius: 10px;
}
.navbar .navbar-nav .nav-link {
  font-size: 1.5rem;
  padding: 10px 20px;
  letter-spacing: 0.05rem;
  line-height: 2rem;
}
.navbar .navbar-nav .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
/* Effet de loading au clic */
.nav-item.loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 75%
  );
  background-size: 200% 100%;
  animation: liLoading 1.5s linear infinite;
  border-radius: 8px;
}

/* Personnalisation de l'icône du toggler */
.navbar-toggler-icon {
  background-color: transparent;
  border: none;
  display: block;
  width: 24px;
  height: 24px;
}

/* Animation de défilement */
@keyframes liLoading {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Écrans de max 1024px */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
    justify-content: space-between;
  }

  .navbar .navbar-nav .nav-link {
    font-size: 1.3rem;
    padding: 8px 10px;
  }

  .hero-section {
    padding: 20px;
  }

  .line h1 {
    font-size: 2rem;
  }

  .button-container {
    gap: 15px;
  }

  #tree-container {
    width: 60%;
  }
}

/* Écrans de max 768px */
@media (max-width: 768px) {
  .navbar .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar .navbar-nav .nav-link {
    font-size: 1.4rem;
    padding: 10px 15px;
  }

  .navbar-nav .nav-item {
    margin-right: 10px;
  }

  .hero-section {
    padding: 15px;
    height: auto;
  }

  .line h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
    margin-top: 10px;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
  }

  .cta-button,
  .secondary-button {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  #tree-container {
    width: 70%;
    margin: 20px auto;
  }
}

/* Écrans de max 480px */
@media (max-width: 480px) {
  .navbar {
    padding: 8px 10px;
    background-color: rgba(3, 43, 53, 0.9);
  }

  .navbar .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 8px 10px;
  }

  .hero-section {
    padding: 10px;
  }

  .line h1 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .button-container {
    gap: 8px;
  }

  #tree-container {
    width: 90%;
  }
}

/*--------------------------------------------------------------
# Logo
--------------------------------------------------------------*/
.logo {
  max-width: 300px;
  height: auto;
  margin-left: 0px;
}

@media (max-width: 768px) {
  .logo {
    width: 40%;
    max-width: 150px;
  }
}

@media (max-width: 1200px) {
  .logo {
    width: 60%;
    max-width: 180px;
  }
}

.logo-video {
  width: 250px;
  height: auto;
  display: block;
  background: transparent;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
/* Couleur de fond du footer */
.bg-custom {
  background-color: #032b35;
}
.footer-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center; /* Centre verticalement le logo */
  margin-left: 15%;
}

.logo-footer {
  max-width: 80%; /* Taille maximale du logo */
  height: auto;
}

.footer-contact {
  text-align: right; /* Texte aligné à droite */
  margin-right: 15%;
}

.footer-contact p,
.footer-contact a {
  margin: 5px 0; /* Espacement vertical entre les lignes */
}

@media (max-width: 1200px) {
  .footer-custom {
    flex-direction: row;
  }

  .logo-footer {
    width: 60%;
  }
}

@media (max-width: 992px) {
  .footer-custom {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
    margin-left: 0;
    margin-top: 20px;
    margin-right: 0 !important;
  }

  .logo-footer {
    width: 65%;
    margin-left: 50px !important;
  }

  .slogan-footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .footer-custom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo,
  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .logo-footer {
    width: 70%;
    margin-left: 25% !important;
  }

  .footer-contact p,
  .footer-contact a {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .footer-custom {
    flex-direction: column; /* Affiche les éléments en colonne */
    align-items: center; /* Centre horizontalement */
    text-align: center; /* Centre tout le texte */
    gap: 15px; /* Ajoute un espace uniforme entre les éléments */
  }

  .footer-logo {
    margin-bottom: 10px; /* Réduit l'espace sous le logo */
  }

  .logo-footer {
    width: 80%;
    margin-left: -20% !important; /* Ajuste la taille du logo pour mobile */
  }

  .footer-contact {
    margin-top: 10px; /* Réduit l'espace vertical au-dessus des contacts */
    text-align: center; /* Centre les informations */
  }

  .footer-contact p,
  .footer-contact a {
    font-size: 0.85rem; /* Ajuste la taille du texte pour mobile */
    margin: 5px 0; /* Ajoute un espacement vertical uniforme */
  }

  .slogan-footer {
    font-size: 0.75rem; /* Ajuste la taille de la police du slogan */
    text-align: center; /* Centre le texte */
    margin-top: 5px; /* Réduit l'espace vertical au-dessus */
  }
}

.logo-footer-video {
  width: 400px; /* Ajuste selon ton besoin */
  height: auto;
  display: block;
  background: transparent;
}

/*--------------------------------------------------------------
# Page d'accueil (arbre + caméléon + typing
--------------------------------------------------------------*/
.hero-section {
  background: linear-gradient(135deg, #032b35, #1b4f5f, #064663);
  background-size: 200% 200%;
  animation: backgroundAnimation 10s ease infinite;
  color: #f5f5e9;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  gap: 30px;
  padding: 20px;
}

#word {
  transition: opacity 0.5s ease-in-out;
}

.effect-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  text-align: center;
}

.typing-effect {
  position: relative;
  text-align: center;
}

.line h1 {
  font-size: 2rem;
  display: inline;
  line-height: 3.5rem;
  font-family: "Special Elite", serif !important;
}

.line {
  position: relative;
  font-family: "Raleway Dots", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #f5f5e9;
  width: 0;
  line-height: 3.5rem;
  margin-bottom: 20px;
  animation: typing 3s steps(30, end) forwards,
    blink-caret 0.75s step-end infinite;
  line-height: 3.5rem;
}

/* Animation d'écriture pour chaque ligne */
.line:nth-of-type(1) {
  animation-delay: 0s;
}
.line:nth-of-type(2) {
  animation-delay: 3s;
}
.line:nth-of-type(3) {
  animation-delay: 6s;
}
.line:nth-of-type(4) {
  animation-delay: 9s;
}

@keyframes backgroundAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

p.tagline {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #f5f5f5;
  text-align: center;
  font-style: italic;
}

.line {
  font-size: 2.5rem;
  position: relative;
  font-family: "Raleway Dots", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #f5f5e9;
  width: auto;
  line-height: 3.5rem;
  margin-bottom: 20px;
}

#word {
  display: inline;
  opacity: 1;
  transition: opacity 0.5s ease;
  text-decoration: underline;
  font-weight: bold;
}

/* Tree container */
#tree-container {
  width: 50%;
  max-width: 515px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: -15%;
  margin-top: 5%;
  position: relative;
  z-index: 10;
}

#tree-container svg {
  width: 100%;
  height: auto;
}

#tree-container svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  stroke: #ffffff;
  stroke-width: 2;
  animation: draw 5s linear infinite;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Container pour centrer les boutons */
.button-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Bouton principal */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2); /* Ajout d’un fond léger */
  border: 4px solid #ffffff;
  border-radius: 25px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2); /* Ajout d’une ombre subtile */
}

/* Effet de loading au survol */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 400%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s ease;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.3);
  color: #1b4f5f;
}

/* Bouton secondaire */
.secondary-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background: #1b4f5f; /* Fond plus visible dès le départ */
  border: 4px solid #ffffff;
  border-radius: 25px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.secondary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 400%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s ease;
}

.secondary-button:hover::before {
  left: 0;
}

.secondary-button:hover {
  transform: translateY(-3px);
  background: #163d4a; /* Légèrement plus foncé au survol */
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

@media (max-width: 1024px) {
  #tree-container {
    margin-left: -30px; /* Décalage plus léger sur tablette */
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
  }

  .effect-container {
    width: 90%;
  }

  .line h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
  }

  .line h1 span {
    display: block;
    font-size: 1.2rem;
    margin-top: 5px;
  }

  .tagline {
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  #tree-container {
    width: 60%;
    max-width: 500px;
    margin: 0 auto 20px auto;
    margin-top: 35%;
  }
}

/* Écrans de max 480px */
@media (max-width: 480px) {
  .hero-section {
    padding: 10px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .line h1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
    text-align: center;
  }

  .line h1 span {
    display: block;
    font-size: 1rem;
    margin-top: 5px;
  }

  .tagline {
    font-size: 0.75rem;
    margin-top: 5px;
    text-align: center;
  }

  .button-container {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  #tree-container {
    width: 70%;
    max-width: 250px;
    margin: 0 auto 20px auto;
    margin-top: 70%;
  }
}

/*--------------------------------------------------------------
# Page d'accueil section projects
--------------------------------------------------------------*/
/* Project */

.project-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #333;
  position: relative;
}

.heading-part1 {
  font-size: 2.4rem;
  font-weight: 600;

  padding-bottom: 0.7rem;
}

.heading-part2 {
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  margin-top: -1rem;
  text-align: center;
  margin-left: 0;
  line-height: 1.2;
}

.project-description {
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  text-align: justify;
  padding: 1rem;
  margin: 0 auto;
  width: 100%;
}

.my-photo {
  max-width: 80%; /* Assure que l'image ne dépasse pas son conteneur */
  width: 100%; /* Rend l'image plus grande tout en restant responsive */
  height: auto; /* Garde les proportions correctes */
  object-fit: cover; /* Remplit la zone sans déformation */
}

@media (max-width: 768px) {
  .my-photo {
    max-width: 100%;
    max-height: 200px;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .project-heading {
    font-size: 1.5rem;
  }

  .heading-part1 {
    font-size: 2rem;
  }

  .heading-part2 {
    margin-left: 20px;
  }

  .project-description {
    width: 90%;
  }

  .my-photo {
    max-width: 80%;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .project-heading {
    font-size: 1.3rem;
  }

  .heading-part1 {
    font-size: 1.8rem;
  }

  .heading-part2 {
    margin-left: 10px;
  }

  .project-description {
    font-size: 1rem;
    line-height: 1.4;
  }

  .my-photo {
    max-width: 100%;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .project-heading {
    font-size: 1.1rem;
  }

  .heading-part1 {
    font-size: 1.5rem;
  }

  .heading-part2 {
    font-size: 1.2rem;
    margin-left: 5px;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .my-photo {
    max-width: 100%;
    max-height: 250px;
  }
}

/*--------------------------------------------------------------
# Page d'accueil (services, pop pup)
--------------------------------------------------------------*/
.services-hero-bg {
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef6f8 100%);
  padding: 24px 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 10px 0;
}

.card-glass {
  position: relative;
  height: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(3, 43, 53, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 400px at 10% -10%,
      rgba(8, 86, 105, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 300px at 110% 120%,
      rgba(3, 43, 53, 0.1),
      transparent 60%
    );
  pointer-events: none;
}
.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(3, 43, 53, 0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, #032b35 0%, #085669 100%);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(3, 43, 53, 0.25);
}

.card-title {
  font-family: "Special Elite", serif;
  font-size: 1.4rem;
  margin: 4px 0 8px;
  color: #0f2a30;
}
.card-text {
  color: #344b52;
  font-size: 1rem;
  line-height: 1.7;
}

.card-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-ghost {
  border: 1.5px solid #032b35;
  background: transparent;
  color: #032b35;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  background: #032b35;
  color: #fff;
  transform: translateY(-2px);
}
.btn-link {
  font-weight: 600;
  color: #085669 !important;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.btn-link:hover {
  border-color: #085669;
}
.btn-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(3, 43, 53, 0.18);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  color: #032b35;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(3, 43, 53, 0.15);
}
.btn-icon:focus-visible {
  outline: 3px solid #085669;
  outline-offset: 2px;
}

/* Apparition progressive des cartes */
.service-card {
  opacity: 1;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Popups : petits ajustements modernes */
.popup[aria-hidden="true"] {
  display: none;
}
.popup[aria-hidden="false"] {
  display: block;
}
.popup-content {
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.btn-contact-popup {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #032b35;
  color: #fff !important;
  font-weight: 700;
  border: 2px solid #032b35;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.btn-contact-popup:hover {
  background: #085669;
  transform: translateY(-2px);
}

/* Focus visible (accessibilité) */
.btn-ghost:focus-visible,
.btn-contact-popup:focus-visible,
.close:focus-visible,
.service-card:focus-within {
  outline: 3px solid #085669;
  outline-offset: 3px;
}

.service-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.text-block,
.image-block {
  flex: 1 1 100%; /* Forcer 100% même en desktop pour plus de souplesse */
  max-width: 600px; /* limite pour les grands écrans */
}

.image-block img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-description-bottom {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .service-top {
    flex-direction: column;
  }

  .image-block,
  .text-block {
    flex: 1 1 100%;
  }

  .image-block {
    margin-top: 1rem;
  }
}
.services-full-bg {
  background-color: #085669;
}
.card-white {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 500px;
  width: 100%;
}
.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

.service-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.central-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-block {
  background: #f5f5e9;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  flex: 1 1 300px; /* permet le responsive */
  max-width: 800px;
}
.service-outer {
  display: flex;
  justify-content: center;
  max-width: 1280px; /* 2 * 500px + 2rem (gap) */
  width: 100%;
  background: #f5f5e9;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}
.service-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
}

.service-title-box i {
  font-size: 2.5rem;
  color: #032b35;
  margin-bottom: 0.5rem;
}

.service-title-box h2 {
  font-family: "Special Elite", serif;
  font-size: 1.6rem;
  margin: 0;
  color: #032b35;
}

.service-list {
  list-style-type: disc;
  padding-left: 1.2rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.service-list li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #344b52;
  line-height: 1.6;
}

/* Deux colonnes côte à côte */
.service-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .service-columns {
    flex-direction: column;
    align-items: center;
  }
}

.blue-link {
  color: #032b35 !important; /* bleu classique Bootstrap */
  text-decoration: underline;
}

.blue-link:hover {
  color: #043c4a; /* un bleu un peu plus foncé au survol */
}

.ligne {
  width: 100%;
  height: 2px; /* épaisseur de la ligne */
  background-color: #032b35; /* ou une autre couleur de ta charte */
  margin: 2rem 0; /* espacement au-dessus et en dessous */
}

/*--------------------------------------------------------------
# PICTO
--------------------------------------------------------------*/
/* ---------------------------
   STRUCTURE & DÉFILEMENT
--------------------------- */
.avt_wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  background-color: rgba(0, 0, 0, 0.04);
}

.avt_scroller {
  display: flex;
  white-space: nowrap;
}

.avt_track {
  display: inline-flex;
  animation: scroll-loop 15s linear infinite;
  gap: 2rem;
}

/* Défilement horizontal infini */
@keyframes scroll-loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------------------------
   CARTES / ÉLÉMENTS
--------------------------- */
.avt_item {
  position: relative;
  padding: 1rem 1.5rem;
  transition: transform 0.3s ease;
  cursor: default;
  min-width: 220px;
  text-align: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

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

/* ---------------------------
   ICONES
--------------------------- */
.avt_item i {
  font-size: 2.8rem;
  transition: transform 0.35s ease, filter 0.35s ease;
  animation: breathe 3s ease-in-out infinite;
}

.avt_item:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(167, 182, 154, 0.45));
}

.avt_item:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1.15);
}

/* ---------------------------
   TEXTES
--------------------------- */
.avt_title {
  font-weight: 600;
  text-transform: uppercase;
  margin: 0.7rem 0 0.2rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.avt_subtitle {
  margin-top: 0.2rem;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* ---------------------------
   COULEURS PAR SERVICE
--------------------------- */

/* FOND de chaque carte */
.avt_item.design {
  background-color: #f5f5f9;
}
.avt_item.development {
  background-color: #f7f8f3;
}
.avt_item.seo {
  background-color: #f2f9f4;
}
.avt_item.support {
  background-color: #fdf7f2;
}

/* COULEUR D’ICÔNE par service */
.avt_item.design i {
  color: #a7b69a;
}
.avt_item.development i {
  color: #c2a47f;
}
.avt_item.seo i {
  color: #6c947a;
}
.avt_item.support i {
  color: #8c7c68;
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 768px) {
  .avt_container {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .avt_item {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .avt_title {
    font-size: 0.9rem;
  }

  .avt_subtitle {
    font-size: 0.75rem;
  }
}

/*--------------------------------------------------------------
# Section réalisations
--------------------------------------------------------------*/

.card-img-top {
  width: 100%; /* Ajuste la largeur pour s'adapter au conteneur */
  height: auto; /* Garde les proportions naturelles de l'image */
  object-fit: cover; /* Coupe l’image pour éviter l’écrasement */
  max-height: 300px; /* Fixe une hauteur maximale pour éviter les images trop grandes */
  border-radius: 8px; /* Optionnel : Ajoute des bords arrondis */
}

/*--------------------------------------------------------------
# Contact rapide
--------------------------------------------------------------*/
.service-contact-section {
  background-color: #f5f5f5;
  padding: 2rem 0;
  text-align: center;
}

.service-contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-contact-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-contact-section .btn-primary {
  background-color: #032b35;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-contact-section .btn-primary:hover {
  background-color: #085669;
  transform: translateY(-2px);
}

/*Contact Form*/
.show {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .contact-content .row {
    flex-direction: column;
  }

  .service-contact-section h2 {
    font-size: 1.5rem;
  }

  .service-contact-section p {
    font-size: 0.9rem;
  }

  .service-contact-section .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-page {
  padding: 40px 15px;
}

.contact-header {
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 2rem;
  color: #032b35;
  transition: color 0.3s;
}

.contact-header h2:hover {
  color: #025c6b;
}

.contact-header p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Flex pour les sections de contact */
.contact-content .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-form-wrapper {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1;
  min-width: 300px;
}

.contact-form-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
  color: #032b35;
  margin-bottom: 20px;
}

.contact-form .form-control {
  border-radius: 5px;
}

.contact-info-wrapper {
  background: #f1f1f1;
  padding: 20px;
  margin-left: -20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
}

.contact-form {
  margin-right: 50px;
}

.contact-info-wrapper h3,
.contact-info-wrapper h4 {
  color: #032b35;
  margin-bottom: 10px;
}

.contact-info-wrapper p {
  color: #555;
  font-size: 1rem;
}

.contact-section {
  margin-top: 40px;
}

.contact-info-wrapper iframe {
  border-radius: 5px;
  margin-top: 20px;
}

.contact-final-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#contact-button {
  background-color: #032b35;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  position: relative; /* Nécessaire pour l'animation */
  overflow: hidden; /* Empêche l'animation de dépasser les limites */
  transition: background-color 0.3s, transform 0.3s;
}

/* Animation de loading */
#contact-button.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Commence hors de l'élément */
  width: 300%; /* Couverture complète de l'élément */
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.288),
    transparent
  );
  animation: loadingEffect 1.5s linear infinite; /* Animation continue */
}

/* Effet d'animation */
@keyframes loadingEffect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Hover et transformation pour améliorer l'interaction */
#contact-button:hover {
  transform: scale(1.05); /* Légère augmentation de la taille */
}

/* Media Queries pour améliorer la réactivité */
@media (max-width: 768px) {
  .contact-form,
  .contact-info-wrapper {
    margin-right: 0; /* Supprimer la marge droite pour les petits écrans */
    margin-left: 0; /* Supprimer la marge gauche pour les petits écrans */
  }

  #contact-button {
    width: 100%; /* Bouton plein largeur */
  }
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.article-header {
  margin-bottom: 20px;
}

.entry-title {
  font-size: 2.5rem; /* Ajuster la taille du titre */
  font-weight: bold;
}

.entry-meta {
  font-size: 1rem; /* Ajuster la taille des métadonnées */
}

.article-content {
  font-size: 1.1rem; /* Ajuster la taille du texte de l'article */
  line-height: 1.6; /* Améliorer l'interligne pour une meilleure lisibilité */
}

.card {
  transition: transform 0.3s ease-in-out;
  &:hover {
    transform: scale(1.03);
  }
}

.card:hover {
  transform: translateY(-5px); /* Lève la carte vers le haut */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ajoute une ombre portée */
}

.blog-content-display {
  margin-left: 100px; /* Marge en haut de la section */
}

.card-body a {
  text-decoration: none; /* Supprime le soulignement */
}

.link-article a {
  color: #032b35 !important; /* Couleur du lien */
  font-weight: bold; /* Gras pour le lien */
}

.btn-custom-blog {
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  padding: 10px 20px;
  font-size: 1rem;
}

/*--------------------------------------------------------------
# PDF
--------------------------------------------------------------*/
.pdf-download-container {
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pdf-download-container h4 {
  font-size: 1.5rem;
  color: #032b35;
  margin-bottom: 20px;
}

.btn-pdf {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #032b35;
  border: 2px solid #032b35;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-pdf:hover {
  background-color: #085669;
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Login
--------------------------------------------------------------*/
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
}

.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.login-logo {
  width: 80px;
  margin-bottom: 1rem;
}

.login-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2rem;
}

.form-control {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: #032b35;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #085669;
}

.form-check label {
  font-size: 0.9rem;
  color: #333;
}

.login-video {
  width: 100%;
  max-width: 150px; /* Ajuste selon ton besoin */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px; /* Facultatif pour un look plus doux */
  object-fit: cover;
}

/*--------------------------------------------------------------
# MENTIONS LÉGALES
--------------------------------------------------------------*/
/* Container général */
.legalies-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.legalies-container a {
  color: #000 !important;
  text-decoration: none;
}

.legal-page a {
  color: black !important;
  text-decoration: none;
}

/* Sommaire */
.sommaire-list {
  list-style-type: none;
  padding: 15px;
  border: 2px solid #2c3e50;
  border-radius: 8px;
  background-color: #f4f4f4;
}

.sommaire-list li {
  margin-bottom: 1rem;
}

.sommaire-list a {
  text-decoration: none;
  color: #032b35f4;
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.sommaire-list a:hover {
  text-decoration: underline;
  color: #085669;
}

/* Sections de la politique */
.policy-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.policy-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: bold;
}

.policy-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Style pour les liens dans les sections */
.policy-section a {
  color: #007bff;
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

/* Card design pour chaque section */
.policy-section ul {
  list-style-type: none;
  padding-left: 1.5rem;
}

.policy-section ul li {
  margin-bottom: 0.8rem;
}

.policy-section .card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.policy-section .card h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.policy-section .card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Pagination ou autres sections */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 3rem;
}

.pagination a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 5px;
  border: 1px solid #032b35;
  border-radius: 5px;
  color: #007bff;
  font-weight: bold;
}

.pagination a:hover {
  background-color: #085669;
  color: white;
}

/* Liens dans les sections */
.policy-section a {
  color: #032b35f4;
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
  color: #085669;
}

/* Pour les liens dans les cartes */
.policy-section .card a {
  color: #032b35f4;
}

.policy-section .card a:hover {
  color: #085669;
}

/*--------------------------------------------------------------
  # Fade-in
  --------------------------------------------------------------*/
[class*="reveal"] {
  opacity: 0;
  transform: translateY(-30px);
  transition: 0.5s;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-2 {
  transition-delay: 0.1s;
}
.reveal-3 {
  transition-delay: 0.2s;
}

/*--------------------------------------------------------------
/* Bannière Cookie Consent */
--------------------------------------------------------------*/
  #tarteaucitronAlertBig {
  transform: scale(0.9);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
