/* ============================================================
   The Many Faces of Womanhood — Feuille de style principale
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --color-bg: #f5f0eb;
  --color-bg-dark: #ede8e1;
  --color-brown: #6b4226;
  --color-brown-footer: #7a4f35;
  --color-text: #3a2e28;
  --color-text-light: #7a6a60;
  --color-accent: #c97b5a;
  --color-accent-hover: #b56a49;
  --color-white: #ffffff;
  --color-card: #ffffff;
  --color-border: #ddd4c8;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 64px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(60,40,20,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(245,240,235,0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--color-accent);
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5e3c 0%, #c4956a 30%, #a0714f 60%, #6b4226 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 20, 10, 0.45);
}

/* Cercles décoratifs */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 100, 60, 0.25);
}
.hero-shapes span:nth-child(1) { width: 400px; height: 400px; top: -80px; left: -100px; }
.hero-shapes span:nth-child(2) { width: 300px; height: 300px; bottom: -60px; right: -60px; }
.hero-shapes span:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 10%; }

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-photographer-name {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
  z-index: 2;
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

.btn-dark {
  background: var(--color-brown);
  color: var(--color-white);
}
.btn-dark:hover { background: #5a3520; }

/* --- Section générique --- */
.section {
  padding: 5rem 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- About Section --- */
.about-section {
  background: var(--color-bg);
  padding: 5rem 2rem;
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.8;
}

.about-text p + p { margin-top: 1.5rem; }

.about-divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 2.5rem auto;
}

/* --- Organized By --- */
.organized-section {
  background: var(--color-bg-dark);
  padding: 5rem 2rem;
}

.organized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.org-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.org-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.org-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section {
  background: var(--color-bg);
  padding: 5rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Footer --- */
footer {
  background: var(--color-brown-footer);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
}

/* ============================================================
   Page Photographers
   ============================================================ */

.page-header {
  padding: calc(var(--nav-height) + 3rem) 2rem 3rem;
  text-align: center;
  background: var(--color-bg);
}

.photographer-section {
  padding: 0 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Bloc de base (commun à tous les photographes) --- */
.photographer-block {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.photographer-block:last-child { border-bottom: none; }

/* --- IMPAIRS (1, 3, 5, 7, 9) : texte gauche | galerie droite --- */
.photographer-block:nth-child(odd) {
  grid-template-columns: 1fr 2fr;
}
.photographer-block:nth-child(odd) .photographer-info    { order: 1; }
.photographer-block:nth-child(odd) .photographer-gallery { order: 2; }

/* --- PAIRS (2, 4, 6, 8, 10) : galerie gauche | texte droite --- */
.photographer-block:nth-child(even) {
  grid-template-columns: 2fr 1fr;
}
/* Inversion visuelle via order — le HTML reste identique */
.photographer-block:nth-child(even) .photographer-info    { order: 2; }
.photographer-block:nth-child(even) .photographer-gallery { order: 1; }

/* --- Infos photographe --- */
.photographer-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.photographer-info p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.photographer-links {
  display: flex;
  gap: 0.6rem;
}

.photographer-links a {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: all 0.2s;
}
.photographer-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Galeries --- */
.photographer-gallery {
  display: grid;
  gap: 0.6rem;
}
.photographer-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photographer-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }

.gallery-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(60,40,20,0.18);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Page Survey
   ============================================================ */
.survey-section {
  padding: calc(var(--nav-height) + 4rem) 2rem 5rem;
  min-height: 100vh;
}

.survey-container {
  max-width: 700px;
  margin: 0 auto;
}

.survey-header {
  text-align: center;
  margin-bottom: 3rem;
}

.survey-header .section-title { margin-bottom: 0.75rem; }

.survey-subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

.form-group textarea {
  width: 100%;
  min-height: 130px;
  padding: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  resize: vertical;
  transition: border-color 0.2s;
}

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

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.btn-submit {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
  max-width: 320px;
}
.btn-submit:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Message de succès */
.success-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.success-message.visible { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: #4caf50;
}
.success-message h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.success-message p { color: var(--color-text-light); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   Responsive
   ============================================================ */

/* --- Tablette (≤ 900px) --- */
@media (max-width: 900px) {
  .organized-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Passage en 1 colonne pour tous les blocs photographes */
  .photographer-block:nth-child(odd),
  .photographer-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  /* Réinitialisation de l'order : texte toujours en haut, galerie en bas */
  .photographer-block:nth-child(odd)  .photographer-info,
  .photographer-block:nth-child(even) .photographer-info  { order: 1; }

  .photographer-block:nth-child(odd)  .photographer-gallery,
  .photographer-block:nth-child(even) .photographer-gallery { order: 2; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }

  .nav-toggle { display: flex; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(60,40,20,0.08);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav li a {
    display: block;
    padding: 0.75rem 2rem;
  }

  .hero-photographer-name { display: none; }

  .section          { padding: 3.5rem 1.25rem; }
  .about-section    { padding: 3.5rem 1.25rem; }
  .organized-section{ padding: 3.5rem 1.25rem; }
  .contact-section  { padding: 3.5rem 1.25rem; }

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

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

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .survey-section { padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem; }

  .page-header         { padding: calc(var(--nav-height) + 2rem) 1.25rem 2rem; }
  .photographer-section{ padding: 0 1.25rem 3rem; }

  .photographer-block { padding: 2rem 0; gap: 1.5rem; }
}

/* --- Petit mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .navbar-brand { font-size: 1rem; }
  .btn-submit   { max-width: 100%; }
}

/* --- Très petit mobile (≤ 380px) --- */
@media (max-width: 380px) {
  /* Galerie 3 colonnes → 2 colonnes pour éviter des vignettes trop petites */
  .photographer-gallery.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
