/* ==========================================================================
   PORTFOLIO PHOTOGRAPHIE - STYLE MINIMALISTE & ÉDITORIAL
   Thème : Gris minéral / Graphite doux (Équilibre entre sombre et clair)
   Typographie sobre, sans artifices, couleur de texte unifiée
   ========================================================================== */

/* --- Variables Globales --- */
:root {
  /* Nuance entre-deux : Gris minéral / Graphite chaud */
  --bg-primary: #1f2126;
  --bg-surface: #272a31;
  --bg-input: #191b1f;

  /* Couleurs de texte unifiées et sobres */
  --text-main: #f4f4f5;
  --text-muted: #9fa4b0;
  --text-dim: #717682;

  /* Bordures fines */
  --border-subtle: #2f333c;
  --border-focus: #717682;

  /* Polices */
  --font-display: 'Bebas Neue', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 980px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition: 0.25s ease;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Conteneurs & Structure --- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.section {
  padding: 6rem 0;
}

.section-divider {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 1px;
  background-color: var(--border-subtle);
}

/* --- Navigation Fixe Épurée --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(31, 33, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background-color: rgba(31, 33, 38, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-nav {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main) !important;
  transition: background var(--transition), border-color var(--transition) !important;
}

.btn-nav:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
}

/* --- Boutons Sobres (Style Minimaliste) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), background var(--transition);
}

.btn-primary {
  background-color: var(--text-main);
  color: #17181c;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
}

.link-simple {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.link-simple:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* --- Bouton Instagram Portfolio --- */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 4px 20px rgba(204, 35, 102, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(204, 35, 102, 0.55);
  opacity: 0.95;
}

.btn-instagram:active {
  transform: translateY(-1px) scale(1.01);
}

.gallery-cta {
  margin-top: 3rem;
}


/* --- Typographie Générale --- */
.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 620px;
}

/* ==============================================
   1. HERO SECTION
   ============================================== */
.hero-section {
  padding-top: 11rem;
  padding-bottom: 7rem;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==============================================
   2. ABOUT SECTION
   ============================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: stretch;
}

.about-description p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

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

.about-image-col {
  display: flex;
}

.profile-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* ==============================================
   3. PORTFOLIO SECTION
   ============================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
}

.card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-caption-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(20, 22, 26, 0.9) 0%, transparent 100%);
  color: var(--text-main);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-card:hover .card-caption-hover {
  opacity: 1;
}

.card-album-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(20, 22, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-card:hover .card-album-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   4. PRESTATIONS (MINIMALISTE)
   ============================================== */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.service-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.service-item-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.service-item-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.custom-quote-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.custom-quote-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.custom-quote-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================
   5. TÉMOIGNAGE
   ============================================== */
.testimonial-section {
  padding: 5rem 0;
}

.testimonial-quote {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
}

.testimonial-author {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==============================================
   6. CONTACT
   ============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.meta-value {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
}

.meta-value:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-group select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.form-feedback.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==============================================
   LIGHTBOX MODALE (ALBUMS & SÉRIES)
   ============================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 19, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

/* En-tête de la lightbox */
.lightbox-header {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 2.5rem 0.5rem 0.5rem;
  z-index: 10;
}

.lightbox-album-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

/* Contenu central */
.lightbox-content {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.lightbox-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 86vw;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  max-width: 650px;
}

/* Indicateurs de pagination (tirets) */
.lightbox-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  max-width: 86vw;
  padding: 0.25rem 0.5rem;
  flex-wrap: wrap;
}

.lightbox-indicator-btn {
  background: none;
  border: none;
  padding: 6px 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-dash {
  display: block;
  width: 22px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  transition: background-color 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-indicator-btn:hover .lightbox-dash {
  background-color: rgba(255, 255, 255, 0.55);
}

.lightbox-indicator-btn.active .lightbox-dash {
  background-color: #ffffff;
  width: 32px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Boutons de fermeture et flèches */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  z-index: 20;
}

.lightbox-close:hover {
  color: var(--text-main);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 33, 38, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 20;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 3.4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-col {
    order: -1;
    display: block;
  }

  .profile-frame {
    height: auto;
  }

  .profile-img {
    height: 380px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-list-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-header {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    padding-right: 3rem;
  }

  .lightbox-album-title {
    font-size: 1.2rem;
  }

  .lightbox-dash {
    width: 20px;
  }

  .lightbox-indicator-btn.active .lightbox-dash {
    width: 28px;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
