/* ===== BANDEAU LOCAL APP DE LA PAGE INDEX ===== */

/* Bandeau Local App sur la page Index */
.local-app-hero-index {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181c2a;
  margin: 0;
  padding: 0;
}

.local-app-hero-index video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.local-app-darken-index {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.18) !important;
  z-index: 1;
  pointer-events: none;
}

.local-app-overlay-index {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 0;
  text-align: center;
}

.local-app-title-index {
  color: var(--color-text);
  font-family: 'Comfortaa', Arial, sans-serif !important;
  font-size: 5.5em;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 1;
  margin-top: 0;
}

.local-app-separator-index {
  width: 240px;
  height: 2px;
  background: var(--color-separator);
  margin: 0px auto 20px auto;
  opacity: 1;
  border: none;
  display: block;
  margin-top: 1.2em;
}

.local-app-desc-index {
  color: var(--color-text);
  font-family: 'Comfortaa', Arial, sans-serif !important;
  font-size: 2em;
  text-align: center;
  margin-bottom: 32px;
}

.local-app-btn-index {
  background: #08d9d6;
  color: #23263a !important;
  font-family: 'DIN Next LT Pro Light', Arial, sans-serif !important;
  font-size: 1.25em;
  padding: 12px 32px;
  border-radius: 2.2em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  display: block;
  margin: 32px auto 0 auto;
  box-shadow: 0 2px 12px #0004;
  text-align: center;
}

.local-app-btn-index:hover {
  background: #fff;
  color: #23263a;
}

/* Responsive pour le bandeau Local App de la page Index */

@media (max-width: 900px) and (orientation: landscape) {
  .local-app-hero-index {
    min-height: 600px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .local-app-overlay-index {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    padding: 64px 0 !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 2 !important;
    background: none !important;
  }
  .local-app-title-index {
    margin-top: 0 !important;
    font-size: 3.2em !important;
    margin-bottom: 8px !important;
    transform: translateY(20px) !important;
  }
  .local-app-desc-index {
    font-size: 1.3em !important;
    margin-bottom: 16px !important;
    transform: translateY(10px) !important;
  }
  .local-app-separator-index {
    width: 120px !important;
    height: 2px !important;
    margin: 8px auto 12px auto !important;
    transform: translateY(10px) !important;
  }
  .local-app-btn-index {
    font-size: 1.1em !important;
    padding: 10px 24px !important;
    margin-top: 32px !important;
    transform: translateY(20px) !important;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .local-app-hero-index {
    min-height: 110vh !important;
    height: 110vh !important;
    max-height: 110vh !important;
  }
  .local-app-title-index { font-size: 2.5em !important; }
  .local-app-desc-index { font-size: 1.15em !important; }
  .local-app-separator-index { width: 140px; height: 1px; margin: 8px auto !important; }
  .local-app-btn-index { font-size: 1.0em !important; padding: 10px 24px !important; }
}

/* ===== FIN BANDEAU LOCAL APP DE LA PAGE INDEX ===== */

/* Grille projets */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 120px 190px;
  max-width: 1400px;
  margin: 40px auto 0 auto;
  justify-items: center;
}
.projet-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #0005;
  transition: box-shadow var(--transition);
}
.projet-img-wrapper {
  width: 520px !important;
  height: 293px !important;
  aspect-ratio: 16/9;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projet-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.projet-hover {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  background: rgba(24,28,43,0.82);
}
.projet-hover-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px #000a;
  letter-spacing: 0.04em;
  text-align: center;
}
.projet-hover-desc {
  display: none;
  font-size: 0.98em;
  color: #fff;
  background: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
  max-width: 95vw;
  margin: 0 auto;
  box-shadow: none;
}
.projet-item:hover .projet-hover {
  opacity: 1;
  pointer-events: auto;
}
.projet-item:hover .projet-hover-desc {
  display: none;
}
/* Popup projet */
.projet-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(10,10,20,0.92);
  align-items: center;
  justify-content: center;
  min-height: 0;
  box-sizing: border-box;
  overflow: auto;
}
.projet-modal.show {
  display: flex;
}
.projet-modal-content {
  display: flex;
  align-items: center;
  width: 1100px;
  height: 420px;
  max-width: 99vw;
  max-height: 99vh;
  position: relative;
  padding: 32px 32px;
  gap: 36px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: auto;
  min-height: 0;
  box-sizing: border-box;
}
.projet-modal-img {
  width: 620px;
  height: 349px;
  background: var(--color-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.projet-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #0008;
  display: block;
  background: #181c2b;
}
.projet-modal-desc {
  color: #fff;
  font-family: 'DIN Next LT Pro Light', Arial, sans-serif;
  max-width: 260px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.projet-modal-desc h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3em;
  color: #fff;
  font-weight: normal;
  letter-spacing: 0.04em;
}
.projet-modal-desc p {
  color: #fff;
  font-size: 1em;
  margin: 0;
  line-height: 1.5;
}
.projet-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1em;
  color: #fff;
  user-select: none;
  z-index: 3;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.18s, border 0.18s, color 0.18s;
  box-shadow: 0 2px 8px #0004;
  opacity: 0.92;
  padding: 0;
}
.projet-modal-arrow.left { left: 8px; }
.projet-modal-arrow.right { right: 8px; }
.projet-modal-arrow:hover {
  background: rgba(0,0,0,0.95);
  border-color: #fff;
  color: #fff;
}
.projet-modal-arrow svg {
  display: block;
  margin: auto;
  width: 18px;
  height: 18px;
}
#projets {
  background: #181c2b;
  min-height: 120px;
  position: relative;
}
#projets::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 180px;
  background: url('../images/gradient-top-black.png') top center/100% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}
#nos-projets.projets-banner {
  position: relative;
  z-index: 1;
}
#cest-quoi-ce-site.cest-quoi-site {
  position: relative;
  z-index: 1;
  padding: 64px 0 64px 0;
  margin: 0;
}
.cest-quoi-site .section-title {
  font-size: 2.5em;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
}
.cest-quoi-site-desc {
  text-align: center;
  font-size: 1.25em;
  color: #fff;
  margin-bottom: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding: 0 10px;
}
.section-title {
  font-size: 2.5em;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  color: #23263a;
  /* text-shadow retiré pour enlever l'effet d'halo */
}
.projets-soustitre {
  text-align: center;
  font-size: 1.25em;
  color: #fff;
  margin-bottom: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.projets-grid-custom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin: 32px 0;
}
.projet-card {
  flex: 1 1 0;
  max-width: 700px;
  min-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 18px;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.projet-media-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-width: 400px;
  max-width: 700px;
  min-height: 225px;
  max-height: 394px;
  overflow: hidden;
  background: #111;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0006;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: box-shadow 0.3s;
}
.projet-media-16-9 img,
.projet-media-16-9 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: none;
  background: #111;
  display: block;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.projet-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.08) 100%);
  border-radius: 18px;
  z-index: 2;
  padding: 32px 18px 24px 18px;
  pointer-events: none;
}
.projet-card-title {
  color: #fff;
  font-size: 2.1em;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 16px #000b, 0 1px 2px #000a;
  pointer-events: auto;
  line-height: 1.1;
}
.projet-card-btn {
  background: #08d9d6;
  color: #23263a;
  font-family: 'DIN Next LT Pro Light', Arial, sans-serif;
  font-size: 1.15em;
  padding: 12px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px #0004;
  text-align: center;
  font-weight: 600;
  margin-bottom: 8px;
  pointer-events: auto;
}
.projet-card-btn:hover {
  background: #fff;
  color: #23263a;
}
.projet-card:hover .projet-media-16-9 {
  box-shadow: 0 8px 32px #000a;
}
.projet-card:hover img,
.projet-card:hover video {
  transform: scale(1.08) rotate(-1deg);
}
.projet-card-soustitre {
  color: #fff;
  font-size: 1.05em;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  opacity: 0.75;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Modale fullscreen */
.projet-fullscreen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
.projet-fullscreen-content {
  background: none;
  box-shadow: none;
  padding: 0;
  max-width: 96vw;
  width: auto;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.projet-fullscreen-media {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 48px 0 #000b, 0 1.5px 8px 0 #0006;
  background: #111;
}
.projet-fullscreen-media img,
.projet-fullscreen-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: none;
  background: #111;
  display: block;
}
.projet-fullscreen-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  z-index: 1;
  pointer-events: none;
  border-radius: 24px;
}
.projet-fullscreen-desc {
  z-index: 2;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 4vw;
  box-sizing: border-box;
  color: #fff;
  font-size: 2.1em;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  text-shadow: 0 2px 16px #000b, 0 1px 2px #000a;
  font-weight: 600;
  word-break: break-word;
  max-width: 100%;
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  padding: 12px 24px;
}
.projet-fullscreen-btns {
  z-index: 2;
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
  pointer-events: auto;
}
.projet-fullscreen-btns a {
  background: #08d9d6;
  color: #23263a;
  font-family: 'DIN Next LT Pro Light', Arial, sans-serif;
  font-size: 1.25em;
  padding: 16px 44px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px #0004;
  text-align: center;
  font-weight: 600;
}
.projet-fullscreen-btns a:hover {
  background: #fff;
  color: #23263a;
}
@media (max-width: 900px) {
  .projets-grid-custom {
    flex-direction: column;
    gap: 32px;
  }
  .projet-media-16-9 {
    width: 98vw;
    min-width: 0;
    max-width: 98vw;
    min-height: 0;
    max-height: none;
  }
  .projet-fullscreen-media {
    width: 98vw;
    max-width: 98vw;
    border-radius: 12px;
  }
  .projet-fullscreen-media img,
  .projet-fullscreen-media video {
    border-radius: 12px;
  }
  .projet-fullscreen-media::before {
    border-radius: 12px;
  }
} 