/* =================================================================
   Anaïs Da Cruz Barros — Portfolio
   Palette : blanc cassé chaud + accent #1C0F13
   ================================================================= */

:root {
  --bg:        #F7F4F0;   /* fond clair, blanc cassé chaud           */
  --bg-alt:    #FFFFFF;   /* fond alternatif                          */
  --ink:       #1C0F13;   /* accent / texte principal (remplace rouge)*/
  --ink-soft:  #6E635F;   /* texte secondaire                         */
  --ink-faint: #A89F99;   /* texte très discret                       */
  --on-dark:   #EDE6DF;   /* texte sur fond foncé                     */
  --on-dark-soft:#B7ABA3; /* texte secondaire sur fond foncé          */
  --line:      rgba(28, 15, 19, 0.14);
  --line-dark: rgba(237, 230, 223, 0.18);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  --font-display: "Abril Fatface", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; margin: 0; letter-spacing: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Helpers de section ---------- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  max-width: 18ch; margin-bottom: 8px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em; padding: 14px 28px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: #2c1a20; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--line-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line-light:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  background: rgba(247, 244, 240, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand__mark {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em;
  font-size: 1.05rem; color: #fff; transition: color .4s var(--ease);
}
.site-header.is-scrolled .brand__mark { color: var(--ink); }

.nav { display: flex; gap: 34px; }
.nav__link {
  position: relative; font-size: 0.95rem; font-weight: 500; color: #fff;
  transition: color .4s var(--ease);
}
.site-header.is-scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: currentColor; transition: width .4s var(--ease);
}
.nav__link:hover::after { width: 100%; }

/* Burger mobile */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: #fff; margin-inline: auto; transition: transform .35s var(--ease), opacity .25s var(--ease), background .4s var(--ease); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; color: #fff;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(28,15,19,.55) 0%, rgba(28,15,19,.25) 35%, rgba(28,15,19,.65) 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: 120px; }
.hero__eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,.82); margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(1.9rem, 5.1vw, 3.9rem); font-weight: 400; letter-spacing: 0;
  line-height: 1.1; margin-bottom: 28px; text-wrap: balance;
}
.hero__subtitle {
  font-family: var(--font-body); font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 400;
  letter-spacing: 0.04em; color: rgba(255,255,255,.9); margin: 0 0 38px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__credit {
  display: flex; align-items: center; gap: 12px; margin: 30px 0 0;
  font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero__credit::before { content: ""; width: 28px; height: 1px; background: rgba(255, 255, 255, 0.5); }
.hero__credit strong { font-weight: 600; color: #fff; letter-spacing: 0.04em; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 48px; background: rgba(255,255,255,.6); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: scrollDown 1.8s var(--ease) infinite;
}
@keyframes scrollDown { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- À propos (bande foncée) ---------- */
.about { background: var(--ink); color: var(--on-dark); padding-block: clamp(72px, 12vw, 140px); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%;
  border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.about .section-eyebrow { color: var(--on-dark-soft); }
.about__text .section-title { color: var(--on-dark); max-width: 22ch; margin-bottom: 28px; }
.about__lead { font-size: 1.12rem; color: var(--on-dark); margin: 0 0 18px; }
.about__lead strong { color: #fff; font-weight: 600; }
.about__body { color: var(--on-dark-soft); margin: 0 0 38px; max-width: 56ch; }

.about__highlight {
  display: flex; gap: 26px; align-items: center; margin: 0 0 38px; padding: 22px 26px;
  border: 1px solid var(--line-dark); border-left: 3px solid #fff; border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}
.about__highlight-label {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft);
}
.about__highlight-name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: #fff;
  letter-spacing: 0; margin: 0 0 6px;
}
.about__highlight-desc { color: var(--on-dark-soft); font-size: 0.95rem; margin: 0; }

.about__skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.skills-col h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.skills-col li { font-size: 0.96rem; color: var(--on-dark); padding: 4px 0; }
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.about .btn--line-light { color: var(--on-dark); border-color: var(--line-dark); }
.about .btn--line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Portfolio ---------- */
.portfolio { padding-block: clamp(72px, 12vw, 140px); background: var(--bg); }
.portfolio__head { margin-bottom: clamp(36px, 6vw, 64px); }
.portfolio__hint { color: var(--ink-soft); font-size: 0.95rem; margin: 14px 0 0; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px);
}
.card { cursor: pointer; outline: none; }
.card__media {
  position: relative; overflow: hidden; border-radius: 4px; background: #ddd6cf; aspect-ratio: 16/10;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(28,15,19,0);
  transition: background .45s var(--ease);
}
.card:hover .card__media::after, .card:focus-visible .card__media::after { background: rgba(28,15,19,.28); }

.card__play {
  position: absolute; top: 50%; left: 50%; width: 66px; height: 66px;
  transform: translate(-50%, -50%) scale(.7); opacity: 0; z-index: 2;
  border-radius: 50%; background: rgba(255,255,255,.92);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card__play::before {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink);
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card__info { padding: 16px 2px 0; }
.card__title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.card__role { font-size: 0.86rem; color: var(--ink-soft); margin: 5px 0 0; letter-spacing: 0.02em; }
.card:focus-visible .card__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Portfolio : sous-titres ---------- */
.portfolio__sublabel {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.portfolio__sublabel--gap { margin-top: clamp(48px, 7vw, 84px); }

/* ---------- Cartes album photo ---------- */
.album-card { cursor: pointer; outline: none; }
.album-card__media {
  position: relative; overflow: hidden; border-radius: 4px;
  background: #ddd6cf; aspect-ratio: 16/10;
}
.album-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.album-card:hover .album-card__media img,
.album-card:focus-visible .album-card__media img { transform: scale(1.06); }
.album-card__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(28,15,19,0);
  transition: background .45s var(--ease);
}
.album-card:hover .album-card__media::after,
.album-card:focus-visible .album-card__media::after { background: rgba(28,15,19,.30); }

/* Icône grille (collection) */
.album-card__icon {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92);
  transform: translate(-50%, -50%) scale(.72); opacity: 0;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.album-card__icon::before,
.album-card__icon::after {
  content: ""; position: absolute;
}
/* grille 2×2 simulée avec box-shadow */
.album-card__icon::before {
  width: 8px; height: 8px; background: var(--ink); border-radius: 1px;
  top: 13px; left: 13px;
  box-shadow: 13px 0 0 var(--ink), 0 13px 0 var(--ink), 13px 13px 0 var(--ink);
}
.album-card:hover .album-card__icon,
.album-card:focus-visible .album-card__icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.album-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); padding-top: clamp(72px, 12vw, 140px); border-top: 1px solid var(--line); }
.contact__inner { text-align: center; }
.contact__title { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 8px auto 30px; max-width: 16ch; }
.contact__email {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 4vw, 2.4rem); letter-spacing: -0.01em; position: relative;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: left 100%;
  transition: background-size .45s var(--ease);
}
.contact__email:hover { background-size: 100% 2px; }
.contact__socials { display: flex; gap: 28px; justify-content: center; margin: 44px 0 0; flex-wrap: wrap; }
.contact__socials a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-bottom: 3px;
  transition: color .35s var(--ease);
}
.contact__socials a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--ink);
  transition: width .4s var(--ease);
}
.contact__socials a:hover { color: var(--ink); }
.contact__socials a:hover::after { width: 100%; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); padding-block: 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-soft); }
.footer__top { transition: color .3s var(--ease); }
.footer__top:hover { color: var(--ink); }

/* ---------- Galerie photo plein écran ---------- */
.gallery {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column;
  background: rgba(10, 6, 7, 0.97); opacity: 0; transition: opacity .35s var(--ease);
}
.gallery.is-open { opacity: 1; }
.gallery[hidden] { display: none; }

.gallery__header {
  display: flex; align-items: center; gap: 20px; padding: 18px 24px;
  flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.gallery__title {
  font-family: var(--font-display); font-weight: 400; font-size: 1.15rem;
  color: #fff; flex: 1; letter-spacing: 0;
}
.gallery__counter {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; color: rgba(255,255,255,.5);
}
.gallery__close {
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.75); font-size: 2rem; line-height: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.gallery__close:hover { color: #fff; transform: rotate(90deg); }

.gallery__stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 16px 72px; min-height: 0;
}
.gallery__stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 3px; display: block;
  transform: scale(.97); opacity: 0; transition: transform .4s var(--ease), opacity .35s var(--ease);
}
.gallery__stage img.is-shown { transform: scale(1); opacity: 1; }

.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.gallery__nav:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__nav:disabled { opacity: .25; pointer-events: none; }

.gallery__thumbs {
  display: flex; gap: 8px; padding: 12px 24px; overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none; -ms-overflow-style: none; border-top: 1px solid rgba(255,255,255,.08);
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 auto; width: 62px; height: 46px; border-radius: 3px; overflow: hidden;
  cursor: pointer; opacity: .45; transition: opacity .3s var(--ease);
  border: 2px solid transparent;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active { opacity: 1; border-color: #fff; }
.gallery__thumb:hover { opacity: .8; }

/* ---------- Lightbox vidéo ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 8, 10, 0.93); padding: 24px; opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__stage { width: min(1100px, 92vw); display: flex; align-items: center; justify-content: center; }
.lightbox--photo .lightbox__stage { width: auto; max-width: 92vw; }

.lightbox__video {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden;
  transform: scale(.96); transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__video { transform: scale(1); }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox__img {
  display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: scale(.97); transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; border: none; cursor: pointer;
  background: transparent; color: #fff; font-size: 2.4rem; line-height: 1; opacity: .85; z-index: 2;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover { opacity: 1; transform: rotate(90deg); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; z-index: 2;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(0, 0, 0, .25);
  color: #fff; font-size: 1.7rem; line-height: 1; opacity: .85;
  transition: opacity .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox--photo .lightbox__nav { display: flex; }
.lightbox__nav:hover { opacity: 1; background: rgba(255, 255, 255, .14); border-color: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--bg); transform: translateX(100%); transition: transform .5s var(--ease); z-index: 90;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__link { color: var(--ink); font-family: var(--font-body); font-size: 1.6rem; font-weight: 600; }
  .about__skills { grid-template-columns: 1fr; gap: 22px; }
  .about__highlight { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about__highlight-label br { display: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .contact__socials { gap: 20px; }
}

/* ---------- Accessibilité : réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
