/* Capucine Terrin — reproduction du design Wix d'origine */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/CormorantGaramond-300.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/CormorantGaramond-400.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/CormorantGaramond-500.woff2) format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/Mulish-300.woff2) format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Mulish-400.woff2) format('woff2'); }

:root {
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Mulish', 'Avenir Next', 'Segoe UI', sans-serif;
  --noir: #000;
  --gris: #898989;
  --accent: #943d3d;
  --pad: clamp(20px, 3.5vw, 50px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--noir);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.ul { text-decoration: underline; }

/* ---------- En-tête ---------- */
.site-header {
  position: relative;
  padding: 34px var(--pad) 0;
}
.brand-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: .12em;
}
.brand-tagline {
  font-family: var(--serif);
  font-size: 17px;
  color: #333;
  margin-top: 2px;
}
.top-ig { position: absolute; top: 40px; right: var(--pad); }
.ig svg { width: 21px; height: 21px; }
.ig:hover { color: var(--accent); }

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin-top: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid #6b6b6b;
  font-size: 13px;
  letter-spacing: .06em;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.burger { display: none; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid #b7b7b7;
  margin: 70px var(--pad) 0;
  padding: 46px 0 26px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .05em;
}
.site-footer .ig { position: absolute; right: 0; bottom: 22px; }

/* ---------- Accueil : 5 panneaux ---------- */
.home-panels {
  display: grid;
  grid-template-columns: repeat(var(--panel-count, 5), 1fr);
  gap: 3px;
  margin: 40px var(--pad) 0;
}
.panel { position: relative; display: block; overflow: hidden; }
.panel img {
  width: 100%; height: 74vh; min-height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}
.panel::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.38);
  transition: background .4s ease;
}
.panel:hover::after { background: rgba(0,0,0,.12); }
.panel:hover img { transform: scale(1.03); }
.panel-label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 27px);
  letter-spacing: .1em;
  text-align: center;
  padding: 0 10px;
}

/* ---------- Pages internes ---------- */
.page-pad { padding: 0 var(--pad); }
.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
}
.back-link:hover { color: var(--accent); }

/* ---------- Collection ---------- */
.col-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: .12em;
  text-align: center;
  margin: 45px 0 55px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tile { position: relative; display: block; overflow: hidden; }
.tile img {
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
}
.tile-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .35s ease;
  color: #fff;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: .08em;
  text-align: center;
  padding: 0 14px;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-overlay { opacity: 1; }
}
/* Tactile ou écran étroit : aucun survol possible, le titre reste affiché.
   Dégradé par le bas plutôt que voile plein, pour ne pas masquer la photo. */
@media (hover: none), (max-width: 700px) {
  .tile-overlay {
    opacity: 1;
    align-items: flex-end;
    background: linear-gradient(to top,
      rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 40%, rgba(0,0,0,0) 75%);
    font-size: 20px;
    padding: 0 16px 18px;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
  }
}

/* ---------- Projet ---------- */
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 55px 0 60px;
}
.proj-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing: .06em;
  line-height: 1.1;
}
.proj-cat { margin-top: 26px; font-size: 14px; letter-spacing: .08em; }
.proj-cat a:hover { color: var(--accent); }
.proj-credits {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.75;
}
.proj-credits p + p { margin-top: 22px; }

.masonry { columns: 3; column-gap: 24px; }
.masonry figure { break-inside: avoid; margin: 0 0 24px; }
.masonry img { width: 100%; cursor: zoom-in; }

.proj-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  font-size: 15px;
}
.proj-nav a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; width: auto; height: auto; }
.lightbox button {
  position: absolute;
  background: none; border: 0;
  font-size: 34px; font-weight: 300;
  cursor: pointer; color: #000;
  padding: 14px;
  font-family: var(--sans);
}
.lightbox .lb-close { top: 12px; right: 18px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- A propos ---------- */
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 70px auto 0;
}
.about-photo-wrap { display: flex; justify-content: center; }
.about-photo {
  width: min(340px, 80%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.about-card hr { border: 0; border-top: 1px solid #9a9a9a; }
.about-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  text-align: center;
  margin-top: 26px;
}
.about-sub {
  font-family: var(--serif);
  font-size: 17px;
  color: #555;
  text-align: center;
  margin: 4px 0 26px;
}
.about-bio { font-size: 13.5px; line-height: 1.75; margin-top: 28px; max-width: 480px; }
.about-sep { border: 0; border-top: 1px solid #9a9a9a; max-width: 1100px; margin: 60px auto; }
.about-lists { max-width: 1100px; margin: 0 auto; }
.about-lists h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .12em;
  margin: 45px 0 10px;
}
.about-lists p { font-size: 14px; line-height: 1.9; }

/* ---------- Contact ---------- */
.contact { max-width: 640px; margin-left: clamp(0px, 6vw, 90px); }
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .14em;
  margin: 45px 0 30px;
}
.contact-info { font-size: 14.5px; line-height: 1.8; }
.contact-info a:hover { color: var(--accent); }
.contact-lead { margin: 45px 0 25px; font-weight: 400; }
#contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 26px;
}
#contact-form input, #contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #000;
  padding: 8px 2px;
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  border-radius: 0;
  resize: vertical;
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
#contact-form button {
  border: 1px solid #000;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .18em;
  padding: 12px 44px;
  cursor: pointer;
  transition: all .25s ease;
}
#contact-form button:hover { background: #000; color: #fff; }
#contact-form button:disabled { opacity: .5; cursor: wait; }
.form-status { min-height: 24px; font-size: 14px; margin-bottom: 18px; }
.form-status.success { color: #2e6b34; }
.form-status.error { color: var(--accent); }
.contact-social {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .14em;
  margin: 60px 0 12px;
}

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: .1em;
  margin: 50px 0 35px;
}
.legal h2 { font-weight: 400; font-size: 16px; margin: 30px 0 8px; }
.legal p { margin-bottom: 14px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .masonry { columns: 2; column-gap: 16px; }
  .masonry figure { margin-bottom: 16px; }
  .about-top { grid-template-columns: 1fr; gap: 40px; }
  .about-bio { max-width: none; }
  .home-panels { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .panel img { height: auto; aspect-ratio: 1 / 1.05; min-height: 0; }
  .panel-label { font-size: 21px; }
}

@media (max-width: 700px) {
  /* En-tête mobile fidèle à Wix : Instagram à gauche, burger à droite,
     nom et slogan centrés, filet sous l'en-tête */
  .site-header {
    padding-top: 20px;
    padding-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid #6b6b6b;
  }
  .brand-name { font-size: 23px; }
  .brand-tagline { font-size: 15px; }
  .top-ig { top: 22px; left: var(--pad); right: auto; }

  .burger {
    display: block;
    position: absolute;
    top: 18px; right: var(--pad);
    background: none; border: 0;
    width: 34px; height: 30px;
    cursor: pointer;
    z-index: 45;
  }
  .burger span {
    display: block;
    height: 1.5px;
    background: #000;
    margin: 7px 4px;
    transition: transform .3s, opacity .3s;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: fixed; inset: 0; z-index: 40;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    font-size: 17px;
    border: 0;
    margin: 0;
  }
  .site-nav.open { display: flex; }

  .home-panels { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; margin-top: 32px; }
  .panel-label { font-size: 19px; }

  .col-title { margin: 30px 0 35px; }
  .proj-head { flex-direction: column; gap: 26px; margin: 35px 0 40px; }
  .proj-cat { margin-top: 12px; }
  .proj-credits { max-width: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact { margin-left: 0; }
  .site-footer { margin-top: 50px; }
}

@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
}
