:root {
  --orange: #E88533;
  --white: #ffffff;
  --black: #000000;
}

.panel.callout.radius>h5{
	color:#E88533;
}
/* spip */
.spip_documents, .spip_documents_center, .spip_doc_titre, .spip_doc_descriptif, .spip_doc_credits {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    min-width: 120px;
}
.spip_documents_left {
    float: left;
   margin-right: .3em;
    max-width: 33%;
}
.spip_document {
    display: flex;
    justify-content: center;
    align-items: center;
}
.spip_documents {
    margin-bottom: .5em;
    padding: 0;
    background: none;
    max-width: 100%;
}

.spip_doc_titre strong {
	font-size:1rem;
	font-weight:200;
}

body {
  background-color: var(--black);
  color: var(--white);
}

.top-bar {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 1rem 2rem;
  position: fixed !important;
  width: 100%;
  z-index: 998 !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.top-bar .top-bar-left, .top-bar .top-bar-right{
    flex: unset !important;
    max-width: none !important;
}

.top-bar-right {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: 2rem !important;
}

.top-bar-center {
  display: none;
}

.top-bar.scrolled {
/*   padding: 0.75rem 2rem; */
  background-color: rgba(0, 0, 0, 0.95);
}

.top-bar ul {
  background-color: transparent;
  margin: 0;
}

.top-bar .menu {
  display: flex;
  align-items: center;
}

.top-bar .menu li {
  position: relative;
}

.top-bar a {
  color: var(--white);
  transition: all 0.3s ease;
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.top-bar a:hover {
  color: var(--orange);
}

.top-bar .menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.top-bar .menu li a:hover::after {
  width: 70%;
}

.logo {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-text {
  text-align: center;
  margin-left: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: block;
}

.logo-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.logo-text .orange {
  color: var(--orange);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-text span:nth-child(1) { animation-delay: 0.1s; }
.logo-text span:nth-child(2) { animation-delay: 0.2s; }
.logo-text span:nth-child(3) { animation-delay: 0.3s; }
.logo-text span:nth-child(4) { animation-delay: 0.4s; }
.logo-text span:nth-child(5) { animation-delay: 0.5s; }
.logo-text span:nth-child(6) { animation-delay: 0.6s; }
.logo-text span:nth-child(7) { animation-delay: 0.7s; }
.logo-text span:nth-child(8) { animation-delay: 0.8s; }
.logo-text span:nth-child(9) { animation-delay: 0.9s; }
.logo-text span:nth-child(10) { animation-delay: 1s; }
.logo-text span:nth-child(11) { animation-delay: 1.1s; }
.logo-text span:nth-child(12) { animation-delay: 1.2s; }
.logo-text span:nth-child(13) { animation-delay: 1.3s; }

@media screen and (max-width: 839px) {
  .top-bar {
    padding: 0;
    height: 60px;
  }

  .top-bar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .logo {
    height: 50px;
    width: auto;
    display: block;
  }

  .scrolled .logo {
    height: 45px;
  }

  .logo-text {
    font-size: 1rem;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .top-bar-right {
    padding-right: 1rem;
  }

  /* Hide desktop menu on mobile */
  .top-bar .menu.hide-for-small-only {
    display: none;
  }

  /* Hamburger menu styles */
  .hamburger {
    display: block !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    position: relative !important;
    z-index: 1001 !important;
    margin: 0 !important;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--orange);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--orange);
  }

  /* Mobile menu styles */
  .mobile-menu {
    display: none;
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000 !important;
  }

  .mobile-menu.active {
    right: 0;
    display: block;
  }

  .mobile-menu .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: transparent;
    padding: 1rem;
    margin: 0;
    width: 100%;
  }

  .mobile-menu .menu li {
    width: 100%;
    text-align: center;
  }

  .mobile-menu .menu a {
    color: var(--white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 1rem;
    width: 100%;
    display: block;
  }

  .mobile-menu .menu a:hover {
    color: var(--orange);
    background: rgba(232, 133, 51, 0.1);
  }
}

@media screen and (min-width: 840px) {
  .mobile-menu {
    display: none !important;
  }
  
  .hamburger {
    display: none !important;
  }

  .top-bar-left {
    max-width: none;
  }
  
  .top-bar-right {
    max-width: none !important;
  }
  
  .top-bar .menu {
    justify-content: flex-end;
    gap: 1rem;
  }
}

.section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section:nth-child(odd) {
  background-color: var(--black);
}

.section:nth-child(even) {
  background-color: rgba(232, 133, 51, 0.1);
}

h1, h2, h3 {
  color: var(--orange);
}

.button {
  background-color: var(--orange);
  color: var(--white);
  transition: all 0.3s ease;
}

.button:hover {
  background-color: darken(var(--orange), 10%);
  color: var(--white);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  background-color: var(--orange);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  visibility: hidden;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
}

/* Adjust scroll-to-top button for different screen sizes */
@media screen and (max-width: 639px) {
  .scroll-to-top {
    right: 0.5rem;
    bottom: 1.5rem;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media screen and (min-width: 640px) {
  .scroll-to-top {
    right: 2rem;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

.scroll-to-top:hover {
  background-color: var(--orange);
  color: var(--white);
  text-decoration: none;
}

.scroll-to-top.visible {
  visibility: visible;
  opacity: 1;
}

.article-component {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(232, 133, 51, 0.2);
  position: relative;
}

/* Single article component styles */
@media screen and (min-width: 1024px) {
  .single-article {
    min-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

.article-component:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(232, 133, 51, 0.1);
}

.article-component .icon-wrapper {
  color: var(--orange);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-component h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.article-component .article-excerpt {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: "Helvetica Neue Light";
}

.article-component .image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.article-component .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.article-component .image-caption {
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 0.75rem;
  font-size: 0.9rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Slider styles */
.slider-wrapper {
    margin-top: 2.3rem;
}

.slider {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio by default */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to prevent image cropping */
    border-radius: 8px;
}

.slider-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1rem 0 !important;
    width: 100% !important;
}


.slider-nav {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.slider-nav button {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 2px solid var(--orange) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    min-width: unset !important;
}

.slider-nav button:hover {
    background: rgba(232, 133, 51, 0.5) !important;
}

.slider-nav button.active {
    background: var(--orange) !important;
    transform: scale(1.2) !important;
}

.slider-caption {
    text-align: center;
    color: var(--white);
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 3rem;
    opacity: 0.9;
}

/* Media queries for different aspect ratios and sizes on larger screens */
@media screen and (min-width: 640px) {
    .slider {
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    }
    
    .slider-nav button {
        width: 16px !important;
        height: 16px !important;
    }
}

@media screen and (min-width: 1024px) {
    .slider {
        padding-bottom: 56.25%; /* Keep 16:9 for consistency */
        max-height: 600px; /* Prevent excessive height on large screens */
    }
    
    .slider-controls {
        margin: 1.5rem 0;
    }
    
    .slider-caption {
        font-size: 1.1rem;
    }
}

.article-more-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-more-link:hover {
  color: var(--white);
}

.article-more-link i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.article-more-link:hover i {
  transform: translateX(3px);
}

/* Full screen overlay */
.article-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.98);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.article-overlay.active {
  opacity: 1;
  visibility: visible;
}

.article-overlay-content {
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 3rem 2rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 133, 51, 0.1);
}

.article-overlay-content::-webkit-scrollbar {
  width: 8px;
}

.article-overlay-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.article-overlay-content::-webkit-scrollbar-thumb {
  background-color: var(--orange);
  border-radius: 4px;
}

.close-overlay,
button.close-overlay {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: var(--orange) !important;
  border: none !important;
  color: var(--white) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  z-index: 2001 !important;
  font-size: 2rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-weight: bold !important;
  font-family: Arial, sans-serif !important;
}

.close-overlay:hover,
.close-overlay:active,
button.close-overlay:hover,
button.close-overlay:active {
  background: var(--orange) !important;
  color: var(--white) !important;
  transform: rotate(90deg) scale(1.1) !important;
  border: none !important;
  outline: none !important;
}

.article-overlay h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.article-overlay .article-content {
  color: var(--white);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.article-content.margin-top-2>p{
	font-size:1.4rem; 
	font-family: "Helvetica Neue Light";
}
.article-overlay .article-description,
.article-overlay .article-full-text {
  white-space: pre-line;
  line-height: 1.8;
}

.article-overlay .article-description {
  color: var(--orange);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.article-overlay .article-full-text {
  color: var(--white);
  font-size: 1.1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 133, 51, 0.2);
  font-family:"Helvetica Neue Light";
  }

}

.article-overlay .article-images {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.article-overlay .article-image {
  border-radius: 8px;
  overflow: hidden;
}

.article-overlay .article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.article-overlay .image-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.8;
}

@media screen and (max-width: 639px) {
  .article-overlay {
    padding: 1rem;
  }

  .article-overlay-content {
    padding: 2rem 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .article-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .article-overlay .article-content {
    font-size: 1rem;
  }

  .article-overlay .article-description {
    font-size: 1.1rem;
  }
  
  .article-overlay .article-full-text {
    font-size: 1rem;
    font-family:"Helvetica Neue Light";
  }
.article-full-text {
    font-size: 1rem;
    font-family:"Helvetica Neue Light";
  }

  .close-overlay {
    width: 50px !important;
    height: 50px !important;
    top: 1rem !important;
    right: 1rem !important;
    font-size: 2rem !important;
    background: var(--orange) !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }

  .close-overlay:hover,
  .close-overlay:active {
    background: var(--orange) !important;
    color: var(--white) !important;
    transform: rotate(90deg) scale(1.1) !important;
  }
}

.site-description {
  margin: 2rem 0;
  text-align: center;
}

.site-description blockquote {
  font-size: 1.4rem;
  color: var(--white);
  border-left: none;
  position: relative;
  padding: 2rem 3rem;
  margin: 0;
}

.site-description blockquote::before,
.site-description blockquote::after {
  content: '\201C';
  font-size: 4rem;
  color: var(--orange);
  position: absolute;
  line-height: 1;
  font-family: Georgia, serif;
}

.site-description blockquote::before {
  content: '\201C';
  left: 0;
  top: 0;
}

.site-description blockquote::after {
  content: '\201D';
  right: 0;
  bottom: -1rem;
}

.site-description em {
  font-style: italic;
  line-height: 1.6;
}

@media screen and (max-width: 639px) {
  .site-description blockquote {
    font-size: 1.2rem;
    padding: 1.5rem 2rem;
  }

  .site-description blockquote::before,
  .site-description blockquote::after {
    font-size: 3rem;
  }
}

/* Portfolio Grid and Flip Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media screen and (max-width: 639px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media screen and (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }
}

@media screen and (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 1rem;
  }
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  aspect-ratio: 1;
  cursor: pointer;
  min-height: 300px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

@media screen and (min-width: 640px) {
  .flip-card {
    min-height: 350px;
    max-width: none;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.flip-card-front {
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  border: 1px solid rgba(232, 133, 51, 0.2);
}

.flip-card-front h3 {
  color: var(--orange);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

.flip-card-front .image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
}

.flip-card-front img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.05);
}

.flip-card-back {
  background-color: var(--orange);
  color: var(--white);
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
/*   justify-content: center; */
  align-items: flex-start;
/*   align-items: center; */
  text-align: left;
  overflow-y: auto;
  font-family:"Helvetica Neue Light";
}

.flip-card-back {
  /* Existing styles */
  scrollbar-gutter: stable; /* Reserves space for scrollbar */
  overflow-y: scroll; /* Ensures scrollbar is always visible */
}

.flip-card-back::-webkit-scrollbar {
  width: 4px;
  margin-right: 8px; /* Add margin to the right of the scrollbar */
}

.flip-card-back::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  margin-right: 8px; /* Margin for the track */
}

.flip-card-back::-webkit-scrollbar-thumb {
  background-color: var(--white);
  border-radius: 2px;
  margin-right: 8px; /* Margin for the thumb */
}

.flip-card-back p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media screen and (max-width: 639px) {
  .flip-card {
    min-height: 300px;
  }

  .flip-card-front h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .flip-card-front img {
    max-height: 200px;
  }

  .flip-card-back {
    padding: 1.5rem;
  }

  .flip-card-back p {
    font-size: 0.85rem;
  }
}

@media (hover: none) {
  .flip-card-inner {
    transition: transform 0.3s;
  }
} 

.error{display: none;}
label{color:#ffffff !important;}


#contactosender {
    background-color:var(--orange); /* Primary Foundation blue */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid #1779ba;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

#contactosender:hover {
    background-color: #126f9e; /* Slightly darker blue on hover */
    border-color: #126f9e;
}

#contactosender:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 121, 186, 0.5);
}

#contactosender:active {
    background-color: #0f5a7e; /* Even darker blue when pressed */
    transform: translateY(1px);
}
.verif {width:6rem;}

input, input[type="text"],
input[type="email"], input[type="number"],
input[type="tel"], textarea{
  background-color: #ede7d8; /* Light gray background */
}
