/* ==========================================================================
   STUDIO JULIA — Feuille de style principale
   Charte graphique officielle :
   Rouge  #370000   Beige  #fff1d7   Noir  #000000
   Titres : Cormorant Garamond (remplace TT Ricordi Nobili, non libre)
   Texte  : Raleway
   ========================================================================== */

:root {
  --rouge: #370000;
  --rouge-clair: #4a0808;
  --beige: #fff1d7;
  --noir: #000000;
  --blanc: #ffffff;
  --gris-texte: #4a4a4a;
  --gris-clair: #e8e6e1;

  --font-titre: "Cormorant Garamond", "TT Ricordi Nobili", serif;
  --font-texte: "Raleway", sans-serif;

  --container-max: 1180px;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Masque visuellement un élément tout en le laissant lisible par Google et
   les lecteurs d'écran (utilisé pour le H1 SEO du hero, par exemple). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

#le-studio,
#bio,
#services,
#contact {
  scroll-margin-top: 100px;
}

body {
  font-family: var(--font-texte);
  color: var(--noir);
  background-color: var(--blanc);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}

/* ---------- Titres ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.eyebrow {
  font-family: var(--font-texte);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rouge);
  display: block;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-bottom-color: #eee;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 46px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 44px;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--noir);
  transition: width var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover::after {
    width: 100%;
  }
}

.main-nav a.active {
  color: var(--noir);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 1px;
  background: var(--noir);
  transition: var(--transition);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  height: 78vh;
  min-height: 520px;
  margin-top: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SECTION — LE STUDIO
   ========================================================================== */

.section {
  padding: 110px 0;
}

.section--tight {
  padding: 90px 0 60px;
}

.studio-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.studio-intro p {
  color: var(--gris-texte);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

/* ---------- Bio Julia ---------- */
.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: stretch;
  margin-top: 100px;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.bio-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 0;
}

.bio-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bio-content h5 {
  display: block;
  font-family: var(--font-texte);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin-bottom: 225px;
}

.bio-content p {
  color: var(--gris-texte);
  font-size: 1rem;
}

.bio-content p::first-letter {
  font-family: "Cormorant", var(--font-titre);
  font-size: 3.4em;
  font-weight: 300;
  float: left;
  line-height: 0.75;
  padding-right: 10px;
  color: var(--noir);
}

/* ==========================================================================
   SECTION — NOTRE SERVICE (fond rouge)
   ========================================================================== */

.section-dark {
  background: var(--rouge);
  color: var(--beige);
  padding: 110px 0;
}

.section-dark .section-title {
  color: var(--beige);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  position: relative;
}

.service-grid p {
  margin-bottom: 22px;
  font-size: 0.98rem;
  color: #f4e6cf;
}

.service-grid p:last-child {
  margin-bottom: 0;
}

.service-plan {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc((100% - 70px) / 3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-plan img {
  width: auto;
  height: 115%;
  object-fit: contain;
  object-position: center;
  border: none;
}

/* ==========================================================================
   SECTION — CONTACT
   ========================================================================== */

.contact-section {
  padding: 110px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-intro h2 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.contact-intro p {
  color: var(--gris-texte);
  max-width: 340px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 22px;
}

/* Champ piège anti-spam : caché visuellement (mais pas avec display:none,
   pour que les robots basiques continuent de le remplir malgré tout) */
.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin-bottom: 8px;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: transparent;
  padding: 12px 14px;
  font-family: var(--font-texte);
  font-size: 0.95rem;
  color: var(--noir);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rouge);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--rouge);
  color: var(--beige);
  border: 1px solid var(--rouge);
  padding: 16px;
  font-family: var(--font-texte);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-submit:hover {
  background: var(--blanc);
  color: var(--rouge);
}

.form-status {
  margin-top: 14px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status.success { color: #2e6b2e; }
.form-status.error { color: #a12b2b; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--rouge);
  color: var(--beige);
  padding: 60px 0 30px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 241, 215, 0.25);
  margin-bottom: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-col h4 {
  font-family: var(--font-texte);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #f4e6cf;
  font-weight: 400;
}

.footer-label-tel {
  margin-top: 20px;
}

.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 241, 215, 0.85);
  text-align: left;
}

.footer-tel {
  font-family: var(--font-texte);
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.02em;
}

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-self: end;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 241, 215, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--beige);
  color: var(--rouge);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 0.75rem;
  color: rgba(255, 241, 215, 0.55);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PAGE PROJETS
   ========================================================================== */

.page-hero {
  padding: 170px 0 60px;
  text-align: center;
}

.page-hero .section-title {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 110px;
}

.project-card {
  text-align: center;
}

.project-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.project-card .project-img-wrap {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   ANIMATIONS — apparition au scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .bio,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-plan {
    position: static;
    width: auto;
    order: -1;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .service-plan img {
    height: auto;
  }

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

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--rouge);
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    z-index: 1050;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    padding: 0 50px;
  }

  .main-nav a {
    color: var(--beige);
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding: 16px 24px;
  }

  .container {
    padding: 0 24px;
  }

  .section, .section-dark, .contact-section {
    padding: 70px 0;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
