/* L21STUDIOS — Pages secondaires
   Portfolio, About, Contact, Confirmation, Commande.
*/

/* ---------- Hero secondaire ---------- */
.page-hero {
  padding: clamp(70px, 9vw, 110px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.page-hero .lead {
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 22px);
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-3px);
}

.portfolio-item.tall {
  aspect-ratio: 3 / 4;
}

.portfolio-item.wide {
  aspect-ratio: 16 / 9;
}

.portfolio-item.size-4 { grid-column: span 4; }
.portfolio-item.size-5 { grid-column: span 5; }
.portfolio-item.size-6 { grid-column: span 6; }
.portfolio-item.size-7 { grid-column: span 7; }
.portfolio-item.size-8 { grid-column: span 8; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h4 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 18px;
}

.portfolio-item .overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 2px 0 0;
}

.placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  text-align: center;
}

.placeholder-card svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .portfolio-item.size-4,
  .portfolio-item.size-5,
  .portfolio-item.size-6,
  .portfolio-item.size-7,
  .portfolio-item.size-8 {
    grid-column: span 6;
  }
}

@media (max-width: 540px) {
  .portfolio-item.size-4,
  .portfolio-item.size-5,
  .portfolio-item.size-6,
  .portfolio-item.size-7,
  .portfolio-item.size-8 {
    grid-column: span 12;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 22px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.about-grid .visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #1a1a20 0%, #000 100%);
  position: relative;
  overflow: hidden;
}

.about-grid .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--muted-strong);
  font-size: 17px;
  margin-bottom: 14px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-1);
}

.value-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 8px 0 8px;
}

.value-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 820px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 19px;
}

.team-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 36px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 18px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-item .value {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.contact-item .value a {
  color: var(--accent);
  transition: color 0.2s;
}

.contact-item .value a:hover {
  color: var(--accent-ink);
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Confirmation ---------- */
.confirmation-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  margin: 32px auto;
  max-width: 640px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}

.confirmation-icon svg {
  width: 42px;
  height: 42px;
}

.confirmation-card h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
}

.confirmation-card .lead {
  margin: 0 auto 28px;
  color: var(--muted);
}

.confirmation-ref {
  display: inline-block;
  padding: 14px 26px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 8px 0 26px;
}

.confirmation-next {
  text-align: left;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 28px 0;
}

.confirmation-next h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.confirmation-next ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
}

.confirmation-next li {
  margin-bottom: 8px;
  font-size: 15px;
}

.confirmation-next li:last-child {
  margin-bottom: 0;
}

/* ---------- Commande / suivi ---------- */
.tracking-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(28px, 5vw, 48px);
  margin: 32px 0;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.tracking-head h2 {
  font-size: 28px;
  margin: 0;
}

.tracking-head .ref {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tracking-timeline {
  position: relative;
  padding-left: 28px;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.tracking-step {
  position: relative;
  padding-bottom: 28px;
}

.tracking-step:last-child {
  padding-bottom: 0;
}

.tracking-step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
}

.tracking-step.done::before {
  background: var(--accent);
  border-color: var(--accent);
}

.tracking-step.current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.tracking-step h4 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.tracking-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Image placeholder marker ---------- */
.img-placeholder {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
  padding: 16px;
  min-height: 120px;
  flex-direction: column;
  gap: 8px;
}

.img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}
