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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  padding-top: 36px;
  background: #fff;
  border: none;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 960px; /* même que tableau */
  max-width: 96vw;
  margin: 0 auto;
  position: relative;
}
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: left;
}
.site-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #777;
  margin-top: -6px;
  text-align: left;
  letter-spacing: 1.2px;
}
/* Trait de séparation header et footer (aligné sur le tableau) */
.header-separator{
  width: 1500px;
  max-width: 92vw;
  height: 0;
  border-top: 2px solid #222;
  margin: 28px auto 0 auto;
  background: none;
}

.footer-separator {
  width: 300px;
  max-width: 92vw;
  height: 0;
  border-top: 2px solid #222;
  margin: 28px auto 0 auto;
  background: none;
}

.footer-separator {
  margin: 50px auto 0 auto;
}


/* MENU BURGER */
.menu-burger {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  z-index: 100;
}
.menu-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #222;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.25s;
}

/* MENU SLIDE */
.side-menu {
  position: fixed;
  top: 0; right: -220px;
  width: 200px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 14px #0001;
  padding: 80px 24px;
  transition: right 0.3s;
  z-index: 99;
}
.side-menu.open {
  right: 0;
}
.side-menu ul {
  list-style: none;
}
.side-menu a {
  color: #111;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 24px;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

}



.tableau-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 1500px;
  max-width: 96vw;
  min-width: 320px;
  margin: 20px auto 20px auto;
  background: transparent;
  position: relative;
}

.lignes {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #222;
  min-width: 120px;
  justify-content: center;  /* Centre verticalement */
  align-items: stretch;
  padding: 0;
  height: 100%; /* Pour forcer le centrage vertical */
  margin-top: 70px;
}


.btn-ligne {
  border: none;
  background: #fff;
  color: #111;
  font-size: 1.1rem;
  padding: 18px 12px;
  text-align: left;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  margin-bottom: 8px;
  writing-mode: vertical-rl;
}
.btn-ligne.active {
  background: #111;
  color: #fff;
  border-left: 4px solid #111;
}

.contenu-principal {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.colonnes {
  display: flex;
  border-bottom: 1px solid #222;
  justify-content: flex-start;
  padding: 18px 0 0 0;
}
.btn-colonne {
  border: none;
  background: #fff;
  color: #111;
  font-size: 1.1rem;
  padding: 14px 26px;
  margin-right: 12px;
  cursor: pointer;
  border-bottom: 4px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-colonne.active {
  background: #111;
  color: #fff;
  border-bottom: 4px solid #111;
}

.section-content {
  display: block;
  font-size: 1.25rem;
  padding: 48px 12px;
  min-height: 250px;
  border-left: 1px solid #222;
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
}


/* FOOTER */
footer {
  border-top: 0px solid #222;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-icon {
  width: 32px;
  height: 32px;
  filter: grayscale(1);
  transition: filter 0.15s;
}
.footer-icon:hover {
  filter: grayscale(0);
}


/* -------------------------------------------------------------- TUTORIEL ----------- */
#tuto-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tuto-box {
  background: white;
  padding: 30px 40px;
  border-radius: 5px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  max-width: 600px;
  width: 90%;
}

#tuto-intro {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

#tuto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  margin-bottom: 25px;
}

.tuto-cell {
  padding: 15px;
  background: #eee;
  border-radius: 0px;
  transition: background 0.4s;
}

.tuto-cell.header {
  font-weight: 600;
  color: #111;
  background: #eee;
}

.tuto-cell.highlight {
  background: #111;
  color: white;
}

#tuto-text {
  font-size: 15px;
  color: #333;
  margin-top: 10px;
  min-height: 1.4em;
}

#tuto-skip {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
}


/* -------------------------------------------SECTION A PROPOS */
.apropos-layout {
  display: flex;
  align-items: flex-start;
  gap: 200px;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  padding: 18px 0;
  box-sizing: border-box;
}
.apropos-image img {
  max-width: 180px;
  width: 300%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0001;
}
.apropos-texte h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}
.apropos-texte p {
  font-size: 1rem;
  margin: 0;
  color: #222;
}
@media (max-width: 700px) {
  .apropos-layout {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 98vw;
    padding: 18px 0;
  }
  .apropos-texte h2 { font-size: 1.5rem; }
}




/* -------------------------------------------SECTION INFOGRAPHIE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 2px 12px #0001;
}

.gallery-image {
  width: 100%;
  height: auto;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-image:hover {
  transform: scale(1.05);
}



/* --- Lightbox plein écran --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 14px #0006;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.4rem;
  color: white;
  cursor: pointer;
  font-weight: 700;
  z-index: 2001;
}


/* -------------------------------------------SECTION ARCHITECTURE */

.project-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: flex-start;     /* pour que le contenu commence en haut */
  z-index: 3000;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto; 
}

.project-content {
  background: #ffffff00;
  max-width: 960px;
  width: 100%;
  max-height: 95vh;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.project-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

.project-title {
  color: white;
}

.project-content h2 {
  color: white;
  font-size: 1.8rem;
  margin: 0;
  text-align: center;
}

.project-content p {
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-align: justify;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fafafa00;
  padding: 10px;
  border-radius: 6px;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.carousel-image {
  width: auto;
  height: auto;
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 6px;
}


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

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #11111100;
  color: white;
  font-size: 2rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.carousel-nav.left { left: 0; }
.carousel-nav.right { right: 0; }

.carousel-dots {
  text-align: center;
  margin-top: 12px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background-color: #333;
}

/* ---------- MOBILE ----------- */
@media (max-width: 600px) {
  .project-content {
    padding: 14px;
  }

  .project-content h2 {
    font-size: 1.4rem;
  }

  .carousel-image {
    max-height: 240px;
  }
}


/* ---------------------------------------------------SECTION ACTUALITÉ --- */
.actu-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.actu-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 50px;
}

.actu-card {
  min-width: 240px;
  max-width: 240px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px #0001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.actuarchi-card:hover {
  transform: scale(1);
}

.actu-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.actu-texte {
  padding: 12px;
  flex: 1;
}

.actu-texte h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.actu-texte p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
}

.actu-more {
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.actu-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #11111100;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
}
.actu-nav.left { left: 6px; }
.actu-nav.right { right: 6px; }


/* -------------------------------------------- SECTION WEBDESIGN--- */
.web-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}
.web-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}
.web-slide {
  min-width: 240px;
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.web-hover {
  position: relative;
  cursor: pointer;
}
.web-hover img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}
.web-hover-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.web-hover:hover img {
  filter: brightness(0.6);
}
.web-hover:hover .web-hover-overlay {
  opacity: 1;
}
.web-plus {
  font-size: 3rem;
  color: white;
  font-weight: bold;
}

/* ----------------------------------------------------- Nav arrows --- */
.web-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3000;
}

.web-lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

/* Nouvelle disposition des flèches */
.web-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  border: none;
  font-size: 2.4rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 3;
  opacity: 0.6;
  padding: 10px;
  transition: opacity 0.2s, transform 0.2s;
}
.web-modal-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}
.web-modal-nav.left  { left: 20px; }
.web-modal-nav.right { right: 20px; }

.web-modal-nav-black {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: rgb(0, 0, 0);
  border: none;
  font-size: 2.4rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 3;
  opacity: 0.6;
  padding: 10px;
  transition: opacity 0.2s, transform 0.2s;
}
.web-modal-nav-black:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}
.web-modal-nav-black.left  { left: 20px; }
.web-modal-nav-black.right { right: 20px; }

/* Croisement des bras avec ✕ */
.web-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 4;
}

/* Bouton VISITER */
.web-lightbox-link {
  margin-top: 20px;
  padding: 10px 22px;
  background: white;
  color: #111;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  z-index: 2;
  transition: background 0.2s;
}
.web-lightbox-link:hover {
  background: #ddd;
}


/* -------------------------------------------------- ACTUARCHI --- */
.actuarchi-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.actuarchi-slide {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  padding: 10px;
}

.actuarchi-card {
  background: #fff;
  box-shadow: 0 2px 10px #0001;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.actuarchi-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.actuarchi-contenu {
  padding: 18px;
}

.actuarchi-contenu h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
}

.actuarchi-contenu p {
  font-size: 1rem;
  color: #333;
  margin: 4px 0;
}

.actuarchi-date {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
  font-style: italic;
}

/* --- Animation slide gauche/droite --- */
.actuarchi-slide {
  transition: transform 0.4s ease;
}

.actuarchi-slide.slide-left {
  animation: slideLeft 0.4s ease;
}

.actuarchi-slide.slide-right {
  animation: slideRight 0.4s ease;
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* -------------------------------------------------- APROPOS SECTIONS--- */
.aproposSections-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
  padding-right: 150px;
  padding-left: 150px;
  box-sizing: border-box;
  flex-direction: column; /* pour forcer empilement vertical si besoin */
}

.aproposSections-card {
  background: #fff;
  box-shadow: 0 2px 10px #0001;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 26px;
}

.aproposSections-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.aproposSections-card .apropos-contenu {
  padding: 18px;
}

.aproposSections-card .apropos-contenu h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
}

.aproposSections-card .apropos-contenu p {
  font-size: 1rem;
  color: #333;
  margin: 4px 0;
}
