/* =============================================
   MAYLIS DE PERETTI — Portfolio
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

/* ---- Variables ---- */
:root {
  --cream: #FAF7F2;
  --warm-white: #F5F0E8;
  --taupe: #C4A882;
  --dark-taupe: #8B7355;
  --charcoal: #2C2420;
  --soft-brown: #6B4F3A;
  --accent: #C4A882;
  --light-accent: #E8DDD0;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  width: 8px; height: 8px;
  background: var(--taupe);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}

/* =============================================
   LOADER
   ============================================= */
#loader {
  position: fixed; inset: 0;
  background: var(--charcoal);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 20px;
  animation: loaderOut 0.8s 1.8s forwards;
}
.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--cream);
  letter-spacing: 0.3em;
  font-weight: 300;
  overflow: hidden;
}
.loader-text span {
  display: inline-block;
  animation: slideUp 0.8s 0.3s both;
}
.loader-line {
  width: 0;
  height: 1px;
  background: var(--taupe);
  animation: lineGrow 1s 0.5s forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes lineGrow {
  to { width: 120px; }
}
@keyframes loaderOut {
  to { opacity: 0; pointer-events: none; }
}

/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 400;
}
.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--taupe);
  transition: width 0.4s ease;
}
.nav-links a:hover::after { width: 100%; }

@keyframes fadeIn { to { opacity: 1; } }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: heroLeft 1s 2.2s forwards;
}
@keyframes heroLeft {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 24px;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 32px;
}
.hero-name em {
  font-style: italic;
  color: var(--taupe);
}
.hero-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--soft-brown);
  max-width: 360px;
  margin-bottom: 48px;
}
.hero-cta {
  display: flex; gap: 20px; align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
  padding: 14px 32px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--taupe);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--taupe);
  color: var(--charcoal);
  text-decoration: none;
  padding: 14px 28px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--light-accent); }

/* Hero right — photo */
.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: heroRight 1.2s 2.4s forwards;
}
@keyframes heroRight {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-img-container {
  position: absolute; inset: 0;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(196,168,130,0.06) 30px,
    rgba(196,168,130,0.06) 31px
  );
  z-index: 2;
  pointer-events: none;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250,247,242,0) 50%,
    rgba(44,36,32,0.35) 100%
  );
  z-index: 1;
}

/* Stats on hero */
.hero-stats {
  position: absolute;
  bottom: 60px; left: 40px;
  display: flex; gap: 16px;
  z-index: 3;
}
.stat {
  text-align: center;
  background: rgba(250,247,242,0.9);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--taupe);
  opacity: 0;
  animation: statIn 0.5s forwards;
}
.stat:nth-child(1) { animation-delay: 3s; }
.stat:nth-child(2) { animation-delay: 3.2s; }
.stat:nth-child(3) { animation-delay: 3.4s; }
@keyframes statIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600;
  color: var(--charcoal); display: block;
}
.stat-label {
  font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--taupe);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 3.5s forwards;
  z-index: 10;
}
.scroll-indicator span {
  font-size: 0.55rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--taupe);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--taupe), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* =============================================
   SECTIONS COMMONS
   ============================================= */
section { padding: 120px 60px; position: relative; }

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 60px;
  display: flex; align-items: center; gap: 20px;
}
.section-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--taupe);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 60px;
}

/* =============================================
   ABOUT
   ============================================= */
#about { background: var(--warm-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.about-left .big-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem; line-height: 1;
  color: var(--light-accent); font-weight: 600;
}
.about-left .age-label {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--taupe);
  margin-top: -20px; display: block;
}
.about-right p {
  font-size: 1rem; line-height: 1.9;
  color: var(--soft-brown); margin-bottom: 24px;
}
.about-right p strong { color: var(--charcoal); font-weight: 500; }

/* Language pills */
.languages-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 40px;
}
.lang-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--light-accent);
  transition: all 0.3s; cursor: default;
}
.lang-pill:hover {
  border-color: var(--taupe);
  background: white;
  transform: translateY(-4px);
}
.lang-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--charcoal);
}
.lang-level {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--taupe); margin-top: 4px;
}

/* =============================================
   EXPÉRIENCES
   ============================================= */
#experiences { background: var(--charcoal); color: var(--cream); }
#experiences .section-label { color: var(--taupe); }
#experiences .section-label::before { background: var(--taupe); }
#experiences .section-title { color: var(--cream); }

.exp-timeline { position: relative; }
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--taupe), transparent);
}
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0 40px 40px;
  border-bottom: 1px solid rgba(196,168,130,0.15);
  position: relative;
  transition: padding 0.3s;
}
.exp-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 48px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--taupe);
  border: 2px solid var(--charcoal);
}
.exp-item:hover { padding-left: 56px; }
.exp-date {
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--taupe); text-transform: uppercase; padding-top: 6px;
}
.exp-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--cream); margin-bottom: 4px;
}
.exp-content h4 {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 16px;
}
.exp-content ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
}
.exp-content ul li {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.6);
  background: rgba(196,168,130,0.1);
  padding: 4px 12px;
  border: 1px solid rgba(196,168,130,0.2);
  letter-spacing: 0.05em;
}

/* =============================================
   FORMATION
   ============================================= */
#formation { background: var(--cream); }

.formation-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.formation-card {
  padding: 48px 40px;
  border: 1px solid var(--light-accent);
  position: relative; overflow: hidden;
  transition: all 0.4s;
}
.formation-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--taupe);
  transition: width 0.5s ease;
}
.formation-card:hover::before { width: 100%; }
.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(44,36,32,0.08);
}
.formation-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--light-accent);
  position: absolute; top: 20px; right: 30px; line-height: 1;
}
.formation-tag {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--taupe);
  margin-bottom: 16px; display: block;
}
.formation-school {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400;
  color: var(--charcoal); margin-bottom: 8px;
}
.formation-diploma {
  font-size: 0.8rem; color: var(--soft-brown); line-height: 1.6;
}

/* =============================================
   LOISIRS
   ============================================= */
#loisirs { background: var(--warm-white); }

.loisirs-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.loisir-item {
  flex: 1; min-width: 180px;
  padding: 40px 32px;
  background: var(--cream);
  border-top: 3px solid var(--light-accent);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.loisir-item::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--charcoal);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s ease; z-index: 0;
}
.loisir-item:hover::after { transform: scaleY(1); }
.loisir-item:hover .loisir-name,
.loisir-item:hover .loisir-icon { color: var(--cream); }
.loisir-item:hover { border-top-color: var(--taupe); }
.loisir-icon {
  font-size: 2rem; margin-bottom: 16px;
  display: block; position: relative; z-index: 1;
  transition: color 0.3s;
}
.loisir-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--charcoal); font-weight: 400;
  position: relative; z-index: 1; transition: color 0.3s;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  background: var(--charcoal); color: var(--cream);
  text-align: center; padding: 120px 60px;
}
#contact .section-title {
  color: var(--cream);
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 20px;
}
.contact-subtitle {
  font-size: 0.8rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 60px;
}
.contact-links {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.contact-link {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid rgba(196,168,130,0.3);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.contact-link::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--taupe);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.contact-link:hover::before { transform: translateY(0); }
.contact-link:hover { color: var(--charcoal); }
.contact-link span { position: relative; z-index: 1; }
.contact-link svg { position: relative; z-index: 1; width: 16px; height: 16px; }

/* Flou sur infos privées */
.blurred {
  filter: blur(5px);
  user-select: none;
}
.blurred:hover { filter: blur(5px); }
.blur-hint {
  font-size: 0.55rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--taupe);
  display: block; margin-top: 4px;
  position: relative; z-index: 1;
}

/* Download CV */
.cv-download {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--taupe);
  color: var(--charcoal); text-decoration: none;
  padding: 20px 48px;
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; font-weight: 500;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  margin-bottom: 80px;
}
.cv-download::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cream);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.cv-download:hover::before { transform: translateX(0); }
.cv-download:hover { color: var(--charcoal); }
.cv-download span { position: relative; z-index: 1; }

.footer {
  border-top: 1px solid rgba(196,168,130,0.15);
  padding-top: 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer p {
  font-size: 0.65rem; letter-spacing: 0.2em;
  color: rgba(250,247,242,0.3); text-transform: uppercase;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  nav { padding: 20px 30px; }
  .nav-links { gap: 20px; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px 30px 60px; }
  .hero-right { height: 70vw; }
  .hero-img-container { clip-path: none; }
  .about-grid { grid-template-columns: 1fr; }
  .formation-grid { grid-template-columns: 1fr; }
  section { padding: 80px 30px; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-stats { left: 16px; gap: 12px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
