/* ============================================
   FOOTER — Cinematic close
   Fond uni désert nocturne (#0D0906).
   Accessible WCAG AA · Sobre · Identitaire.
   ============================================ */

.footer {
  background: var(--ouarza-bg, #0D0906);
  position: relative;
  z-index: 3;
  padding: 0;
  min-height: 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem var(--container-padding, 2rem) 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ── Ligne cuivrée en haut ── */
.footer__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 122, 42, 0.2) 20%,
    rgba(196, 122, 42, 0.35) 50%,
    rgba(196, 122, 42, 0.2) 80%,
    transparent 100%
  );
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════
   BODY — 2 colonnes (gauche / droite)
   ═══════════════════════════════════ */
.footer__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
}

.footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ═══════════════════════════════════
   CADRE PHOTO — Style berbère traditionnel
   Coins ornementaux SVG + motifs géométriques
   en bordure. Couleur cuivrée palette ouarzazate.
   ═══════════════════════════════════ */
.photo-frame {
  position: relative;
  width: clamp(90px, 13vw, 160px);
  aspect-ratio: 2 / 3;
  color: var(--ouarza-accent, #C47A2A);
  flex-shrink: 0;
}

/* ── Zone image au centre du cadre ── */
.photo-frame__inner {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  background: rgba(138, 117, 96, 0.06);
  cursor: pointer;
}

/* ── Les deux images se superposent, swap au hover ── */
.photo-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.55s ease;
}

/* Default : visible au repos, disparaît au hover */
.photo-frame__img--default {
  opacity: 1;
}

/* Hover : caché au repos, apparaît au hover */
.photo-frame__img--hover {
  opacity: 0;
}

.photo-frame__inner:hover .photo-frame__img--default {
  opacity: 0;
}

.photo-frame__inner:hover .photo-frame__img--hover {
  opacity: 1;
}

/* ── Coins ornementaux — positionnés aux 4 angles ── */
.photo-frame__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--ouarza-accent, #C47A2A);
  opacity: 0.9;
  z-index: 2;
}

.photo-frame__corner--tl { top: 0;    left: 0; }
.photo-frame__corner--tr { top: 0;    right: 0; }
.photo-frame__corner--bl { bottom: 0; left: 0; }
.photo-frame__corner--br { bottom: 0; right: 0; }



/* ── Ligne intérieure fine ── */
.photo-frame__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 122, 42, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .photo-frame {
    width: clamp(70px, 19vw, 110px);
  }
}

/* ═══════════════════════════════════
   NOM — DM Serif Display (= nav__logo)
   Grand, italic partiel, identitaire.
   ═══════════════════════════════════ */
.footer__name {
  font-family: var(--font-ethiopia, 'DM Serif Display', serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ouarza-text, #F0E0C8);
}

.footer__name em {
  font-style: italic;
}

/* ═══════════════════════════════════
   TAGLINE — "Solo Founder at [logo] & [logo]"
   Inter light · logos inline verticalement alignés
   ═══════════════════════════════════ */
.footer__tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 300;
  color: #A89480;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.footer__amp {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-weight: 300;
  color: #A89480;
  opacity: 0.9;
}

/* ── Liens produits — wrapper + interactions ── */
.footer__product {
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(196, 122, 42, 0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  position: relative;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.footer__product:hover {
  text-decoration-color: var(--ouarza-accent, #C47A2A);
}

.footer__product:focus-visible {
  outline: 2px solid var(--ouarza-accent, #C47A2A);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ── Noms des produits — texte cliquable, police identitaire ── */
.footer__product {
  font-family: var(--font-ethiopia, 'DM Serif Display', serif);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ouarza-accent, #C47A2A);
  letter-spacing: 0.01em;
  cursor: pointer;
}

.footer__product:hover {
  color: var(--ouarza-text, #F0E0C8);
}

/* ═══════════════════════════════════
   CONTACT — Email + LinkedIn (colonne gauche)
   ═══════════════════════════════════ */
.footer__contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.footer__email {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  letter-spacing: 0.06em;
  color: #A89480;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.footer__email::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ouarza-accent, #C47A2A);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer__email:hover {
  color: var(--ouarza-text, #F0E0C8);
}

.footer__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__contact-sep {
  color: #A89480;
  opacity: 0.5;
  font-size: 0.7rem;
  user-select: none;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A89480;
  text-decoration: none;
  transition: color 0.3s;
}

.footer__linkedin:hover {
  color: var(--ouarza-text, #F0E0C8);
}

.footer__linkedin:focus-visible,
.footer__email:focus-visible {
  outline: 2px solid var(--ouarza-accent, #C47A2A);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ═══════════════════════════════════
   BOTTOM — Légal, centré en bas
   ═══════════════════════════════════ */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(138, 117, 96, 0.15);
  width: 100%;
}

.footer__copyright {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A89480;
  opacity: 0.82;
}

.footer__designed {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.6rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #A89480;
  opacity: 0.7;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 600px) {
  .footer__inner {
    padding: 0.9rem var(--container-padding, 1.25rem) 0.7rem;
    gap: 0.9rem;
  }

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

  .footer__right {
    display: none;
  }

  .footer__name {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .footer__tagline {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .footer__product,
  .footer__product::after,
  .footer__product-logo {
    transition: none;
  }
}
