/* =======================================================
   presentation.css — Page Présentation personnelle
   ======================================================= */

.inner {
  max-width: 100%;
  margin: 0;
  padding: 5rem 4rem;
}

/* -------------------------------------------------------
   GRILLE 3 COLONNES
   ------------------------------------------------------- */
.three-col {
  display: grid;
  grid-template-columns: 320px 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}

.col-sep {
  background: var(--border2);
  align-self: stretch;
  margin: 0 2.8rem;
}

.col-timeline {
  padding-left: 4rem;
}

/* -------------------------------------------------------
   FRISE CHRONOLOGIQUE
   ------------------------------------------------------- */
.timeline {
  border-left: 1px solid var(--border2);
  padding-left: 1.6rem;
}

.tl-item {
  margin-bottom: 2rem;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -1.93rem; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
}

.tl-item:nth-child(1)::before { background: var(--indigo); box-shadow: 0 0 8px rgba(110,159,255,0.5); }
.tl-item:nth-child(2)::before { background: var(--teal);   box-shadow: 0 0 8px rgba(57,211,83,0.4); }
.tl-item:nth-child(3)::before { background: var(--amber);  box-shadow: 0 0 8px rgba(240,168,69,0.4); }
.tl-item:nth-child(4)::before { background: var(--rose);   box-shadow: 0 0 8px rgba(244,112,103,0.4); }

.tl-date {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.25rem;
}
.tl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.tl-body {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* -------------------------------------------------------
   CARTES DE TÉLÉCHARGEMENT
   ------------------------------------------------------- */
.dl-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.dl-card:hover {
  border-color: var(--indigo);
  background: var(--card-hov);
  transform: translateX(4px);
}

.dl-icon {
  font-size: 1rem;
  width: 32px; height: 32px;
  background: var(--card-hov);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.dl-sub {
  font-size: 0.72rem;
  color: var(--text-2);
}
.dl-arrow {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(110,159,255,0.12);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.dl-card:hover .dl-arrow {
  background: var(--indigo);
  color: #0d1117;
}

/* -------------------------------------------------------
   COLONNE EXTRA — sections
   ------------------------------------------------------- */
.extra-section {
  margin-bottom: 4rem;
}

.extra-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* -------------------------------------------------------
   PHOTOS
   ------------------------------------------------------- */
.extra-photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.extra-photo--full { height: 500px; margin-bottom: 0.8rem; }
.extra-photo--sm   { height: 155px; }

.photo-row {
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.photo-row--2 { grid-template-columns: 1fr 1fr; }
.photo-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* -------------------------------------------------------
   CHIPS D'INFO
   ------------------------------------------------------- */
.info-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.info-chip strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.tag {
  font-size: 0.6rem;
  font-weight: 500;
  border: 1px solid var(--border2);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--text-2);
}
.tag--indigo { border-color: rgba(110,159,255,0.35); color: var(--indigo); }
.tag--teal   { border-color: rgba(7,236,45,0.35);    color: var(--teal); }
.tag--amber  { border-color: rgba(248,151,6,0.35);   color: var(--amber); }
.tag--rose   { border-color: rgba(244,112,103,0.35); color: var(--rose); }
.tag--purple { border-color: rgba(145,28,255,0.35);  color: #b464ff; }
.tag--cyan   { border-color: rgba(0,210,255,0.35);   color: #00d2ff; }

/* -------------------------------------------------------
   CARTES MISSIONS
   ------------------------------------------------------- */
.mission-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.mission-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--mc);
  transition: height .35s var(--ease);
  z-index: 0;
}
.mission-card:hover::before { height: 100%; }
.mission-card:hover { border-color: transparent; }

.mc__arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.8rem;
  color: #484f58;
  z-index: 1;
  transition: color .3s;
}
.mc__num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #484f58;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  transition: color .3s;
}
.mc__icon {
  font-size: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
  transition: background .3s;
}
.mc__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
  transition: color .3s;
}
.mc__desc {
  font-size: 0.68rem;
  color: var(--text-2);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  transition: color .3s;
}
.mission-card:hover .mc__arrow,
.mission-card:hover .mc__num,
.mission-card:hover .mc__title,
.mission-card:hover .mc__desc { color: #0d1117; }
.mission-card:hover .mc__icon { background: rgba(0,0,0,0.15); }

/* -------------------------------------------------------
   GRILLE LOISIRS
   ------------------------------------------------------- */
.loisirs-grid {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 0.7rem;
  overflow: visible;
}

.loisir-card {
  height: 150px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.loisir-card:hover {
  border-color: var(--lc);
  background: var(--card-hov);
}

.loisir-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.loisir-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.loisir-desc {
  font-size: 0.62rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.4;
}

.loisir-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lc);
}

/* -------------------------------------------------------
   MODAL PDF
   ------------------------------------------------------- */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.pdf-modal.active { display: flex; }

.pdf-modal__box {
  width: 90vw;
  height: 90vh;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: var(--card-hov);
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}

.pdf-modal__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.pdf-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-modal__dl {
  background: transparent;
  border: 1px solid rgba(110,159,255,0.35);
  color: var(--indigo);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--font-b);
}
.pdf-modal__dl:hover { background: var(--indigo); color: #0d1117; }

.pdf-modal__close {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.pdf-modal__close:hover { border-color: var(--rose); color: var(--rose); }

#pdf-frame {
  width: 100%;
  flex: 1;
}

/* -------------------------------------------------------
   MODAL GALERIE
   ------------------------------------------------------- */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.gallery-modal.active { display: flex; }

.gallery-box {
  width: 95vw;
  max-width: 1200px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: var(--card-hov);
  border-bottom: 1px solid var(--border2);
}

.gallery-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.gallery-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.gallery-close:hover { border-color: var(--rose); color: var(--rose); }

.gallery-main {
  position: relative;
  height: 80vh;
  background: #0a0d12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(13,17,23,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
  z-index: 2;
}
.gallery-nav:hover { border-color: var(--indigo); background: rgba(110,159,255,0.15); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: var(--card-hov);
  border-top: 1px solid var(--border);
}

.gallery-counter {
  font-size: 0.68rem;
  color: var(--text-2);
}

.gallery-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.gdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all .2s;
}
.gdot.active {
  width: 14px;
  border-radius: 3px;
}

/* -------------------------------------------------------
   MODAL DOSSIERS
   ------------------------------------------------------- */
.folder-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.folder-modal.active { display: flex; }

.folder-box {
  width: 560px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: var(--card-hov);
  border-bottom: 1px solid var(--border2);
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.folder-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #b464ff;
}

.folder-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.folder-close:hover { border-color: var(--rose); color: var(--rose); }

.folder-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--surface);
}

.folder-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.folder-card:hover { border-color: var(--fc); background: var(--card-hov); }

.folder-card__icon { font-size: 2.2rem; line-height: 1; }

.folder-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.folder-card__desc {
  font-size: 0.7rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.5;
}

.folder-card__btn {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--fc);
  border: 1px solid var(--fc);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  opacity: 0.6;
  transition: opacity .2s;
}
.folder-card:hover .folder-card__btn { opacity: 1; } 

.extra-photo[onclick] {
  cursor: zoom-in;
}

#subfolder-modal .folder-box {
  width: 760px;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 1100px) {
  .three-col { grid-template-columns: 280px 1px 1fr 1px 1fr; }
  .col-sep { margin: 0 1.2rem; }
}

@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; }
  .col-sep { display: none; }
  .inner { padding: 3rem 2rem; }
  .loisirs-grid { grid-template-columns: 1fr 1fr; }
}