/* Fichier CSS principal */ 
@font-face {
  font-family: 'Diptyque';
  src: url('../assets/Diptyque-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Diptyque', serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
}
.sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 32px 0 24px 0;
  width: 100%;
  margin-top: 32px;
}
.sidebar-spacer {
  flex: 1 1 auto;
  width: 100%;
}
.sidebar-logo {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}
.sidebar-title {
  font-family: 'Diptyque', serif;
  font-size: 1.3em;
  letter-spacing: 0.02em;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}
.sidebar-nav a {
  color: #fff;
  text-decoration: none;
  padding: 22px 0;
  font-size: 1.18em;
  border-bottom: 1px solid #222;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}
.sidebar-nav a:hover {
  background: #222;
}
.sidebar-footer {
  text-align: center;
  font-size: 15px;
  padding: 18px 0 24px 0;
  color: #aaa;
  width: 100%;
  margin-top: auto;
}

/* Popup modale */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.popup-overlay.open {
  display: flex;
}
.popup-content {
  position: relative;
  width: 90vw;
  max-width: 800px;
  height: 85vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.popup-close:hover {
  background: #f0f0f0;
}
.popup-content .iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}
.popup-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  width: calc(100vw - 260px);
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.background-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, rgba(230, 27, 88, 0.00) 0%, #AC90DE 92.79%), url('../images/fond.png') center/cover no-repeat;
  z-index: 1;
  filter: none;
}
.main-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 30px 40px 30px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.main-title-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}
.main-logo {
  width: 380px;
  max-width: 80vw;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.main-invitation {
  font-size: 1.25em;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px #0004;
}
.main-invitation strong:first-child {
  font-size: 2em;
  font-weight: bold;
}
.main-btn {
  display: inline-block;
  width: 285px;
  height: 54px;
  line-height: 54px;
  background: #111;
  color: #fff;
  font-family: 'Diptyque', serif;
  font-size: 1.25em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.01em;
}
.main-btn:hover {
  background: #AC90DE;
  color: #fff;
}

@media (max-width: 900px) {
  .main-title-left, .main-title-right { font-size: 3.5em; }
  .main-logo { width: 220px; }
  .main-title-wrap { min-height: 220px; }
  .burger {
    display: flex !important;
    position: fixed;
    top: 12px;
    left: 18px;
    z-index: 999999 !important;
  }
  .header-mobile {
    height: 64px;
    z-index: 98;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #111;
  }
  .sidebar,
  .sidebar-overlay {
    z-index: 101;
  }
  .sidebar-nav {
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    gap: 0;
  }
  .sidebar-nav a {
    width: 100%;
    text-align: center;
    padding: 22px 0;
    font-size: 1.18em;
    border-bottom: 1px solid #222;
    display: block;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100vw;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid #6ec1e4;
  }
  .sidebar-header, .sidebar-footer {
    display: none;
  }
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }
  .sidebar-nav a {
    padding: 14px 8px;
    font-size: 1em;
    border-bottom: none;
    border-right: 1px solid #222;
  }
  .main-content {
    margin-left: 0;
    margin-top: 60px;
    width: 100vw;
  }
}

/* --- Menu burger --- */
.burger {
  display: none;
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 999999;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

/* Header pour le burger */
.header-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  background: #111;
  z-index: 98;
}

@media (max-width: 900px) {
  .header-mobile {
    display: block;
  }
  .burger {
    top: 12px;
    left: 18px;
    z-index: 100;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    background: #111;
    z-index: 101;
    transition: left 0.3s;
    box-shadow: 2px 0 16px #0005;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
  }
  .sidebar.open {
    left: 0;
    pointer-events: auto;
    opacity: 1;
  }
  .sidebar-overlay.open {
    display: block;
  }
  .main-content {
    margin-left: 0;
    width: 100vw;
  }
  .main-title-wrap {
    flex-direction: column;
    height: auto;
    min-height: 250px;
    gap: 0;
  }
  .main-title {
    font-size: 16vw;
  }
  .main-logo {
    width: 60vw;
    height: auto;
    margin: 0;
  }
  .main-title-left, .main-title-right {
    position: static;
    transform: none;
    font-size: 16vw;
    margin: 0;
    padding: 0;
    display: block;
  }
} 