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

:root {
  --blue: #0000FF;
  --white: #FFFFFF;
  --black: #0A0A0A;
  --grey-100: #F5F5F5;
  --grey-200: #E5E5E5;
  --grey-400: #ABABAB;
  --grey-600: #666666;
  --font-main: 'Hanken Grotesk', sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  margin: 0;
  padding: 40px;
}

header {
  max-width: 1400px;
  margin: 0 auto 40px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1.5px solid var(--grey-200);
  padding-bottom: 24px;
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--grey-600);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Logo non encadré et dimensionné proprement */
.brand-logo-box {
  background: transparent;
  border: none;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

.brand-logo-box a {
  display: block;
  width: 100%;
}

.brand-logo-box svg {
  width: 100%;
  height: auto;
  display: block;
}

main {
  max-width: 1400px;
  margin: 0 auto;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.photo-card {
  background-color: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

.photo-card:hover {
  border-color: var(--blue);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  padding: 32px;
  width: min(600px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border: 1.5px solid var(--grey-200);
  margin-bottom: 24px;
}

.btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  background: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  width: 100%;
}

.btn-blue:hover {
  background: #0000CC;
  border-color: #0000CC;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--grey-200);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-600);
  transition: all 0.15s;
}

.close-modal:hover {
  border-color: var(--black);
  color: var(--black);
}