/* =========================================
   EMELINE BOULIC PORTFOLIO – GLOBAL STYLES
   ========================================= */

:root {
  --cream: #FFFBF1;
  --cream-dark: #F5F2DA;
  --blue: #6289FF;
  --blue-soft: #ADC1FF;
  --blue-light: #C5D3FF;
  --blue-dark: #4a6fe0;
  --text: #222222;
  --text-light: #555555;
  --placeholder: #D1D5E0;
  --footer-bg: #ADC1FF;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-hand: 'Simple Handmade', 'Caveat', cursive;
  --font-body: 'DM Sans', sans-serif;
  --font-museo: 'MuseoModerno', sans-serif;
  --font-aileron: 'Aileron', sans-serif;
}


@font-face { /*ajoute une typo installée*/
  font-family: 'Arcane Nine';
  src: url('fonts/Arcane Nine.otf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--blue);
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}


.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-btn:hover {
  border-color: var(--blue-light);
  background: rgba(123,143,222,0.08);
}

.nav-btn.active {
  border-color: var(--blue);
  color: var(--text);
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  padding: 3rem 3rem 4rem;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-left {
  flex: 0 0 auto;
  position: relative;
}


.hero-deco {
  position: relative;
  width: 340px;
}

.hero-photo {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/*
.hero-deco {
  position: relative;
  width: 240px;
}

.hero-photo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--placeholder);
}
*/

.sparkle {
  position: absolute;
  color: var(--blue);
  font-size: 1.4rem;
}

.sparkle.top-left {
  top: -1.5rem;
  left: -1.5rem;
}

.hero-avatar-bubble {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--placeholder);
  border: 3px solid var(--cream);
  overflow: hidden;
}

.hero-right {
  flex: 1;
  min-width: 350px;
}

/* ── HANDWRITTEN FONT ELEMENTS ── */
.hero-name,
.hero-tagline,
.social-cta p,
.projet-title {
  font-family: var(--font-hand);
}


.hero-name {
  font-family: var(--font-hand);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.hero-tagline {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}


.hero-tagline {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.social-cta p {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.5;
}

.hero-bio {
  /*font-size: 0.83rem;*/
  color: var(--text);
  margin-bottom: 0.8rem;
  text-align: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-stage-experience {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #93aef7;
  transform: translateY(-1px);
}

/* ── SERVICES ── */
.services {
  padding: 3rem 3rem 4rem;
  background: var(--cream);
}

.services-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.services-text {
  flex: 1;
}

.services-text h2 { /* c'est le titre de la section jaccompagne vos projets*/
  font-family: var(--font-hand);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--blue-light);
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
}

.tag.tag-active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.services-text p {
  /*font-size: 0.83rem;*/
  margin-bottom: 0.5rem;
}

.services-visual {
  flex: 0 0 200px;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--placeholder);
  border-radius: 8px;
}

/* ── PROJETS ── */
.projets {
  padding: 3rem 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title { /*ce sont les titres des sections*/
  font-family: var(--font-hand);
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub { /* description en dessous la section projets*/
  text-align: center;
  /*font-size: 0.83rem;*/
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--blue-light);
  background: transparent;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.projet-card {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}

.projet-card:hover {
  transform: translateY(-3px);
}

.projet-card .projet-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.projet-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
}

/* ── SOCIAL CTA ── */
.social-cta {
  padding: 3rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}

.social-cta-apropos {
  flex-direction: row;
  justify-content: flex-start;
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.social-icon.linkedin {
  background: var(--blue);
}

.social-icon.instagram {
  background: var(--blue);
}

/* ── CONTACT ── */
.contact {
  padding: 3rem 3rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.form-group.full {
  width: 100%;
}

.form-group label {
  font-size: 0.78rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #CCCCCC;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.83rem;
  background: white;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

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

/* ── FOOTER ── */
.footer {
  background: var(--footer-bg);
  padding: 1.2rem 3rem;
  text-align: right;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text);
}

.footer-name {
  font-weight: 500;
}

/* ── A PROPOS PAGE ── */
.apropos-section {
  padding: 3rem 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stage-block {
  margin-top: 1.5rem;
}

.stage-header {
  margin-bottom: 1rem;
  text-align: center;
}



.stage-badge {
  background: var(--blue-soft);
  color: var(--text);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-block;
  text-align: center;
}

.stage-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.stage-text {
  flex: 1;
  text-align: center;
}

.stage-text p { /*paragraphe dans la section expérience*/
  /*font-size: 0.83rem;*/
  margin-bottom: 0.8rem;
}

.stage-img {
  flex: 0 0 100px;
}

.stage-img .img-placeholder {
  aspect-ratio: 16/9;
  max-width: 350px;
}
/* ── PROFIL TEXTE ── */
.profil-section {
  padding: 2rem 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profil-text-block {
  max-width: 560px;
  margin-top: 1.5rem;
  text-align: center;
}

.profil-text-block p { /*paragraphe de la section mon profil*/
  /*font-size: 0.83rem;*/
  margin-bottom: 1rem;
  font-style: italic;
}

/* ── PROFIL GALERIE ── */
.profil-galerie {
  padding: 2rem 3rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.galerie-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.galerie-img {
  background: var(--placeholder);
  border-radius: 6px;
  width: 100%;
}

.galerie-img.portrait { /*images verticales de la section illustration et animations*/
  aspect-ratio: 3/4;
  background: transparent;
  object-fit: contain;
  height: 350px; /*250px*/
  width: 100%;
}

.galerie-img.paysage {/*images horizontales de la section illustration et animations*/
  background: transparent;
}

.galerie-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
}

/* ── PROJET DETAIL PAGE ── */
.projet-detail {
  padding: 3rem 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.projet-layout {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}

.projet-info {
  flex: 1;
}

.projet-title { /*ce sont les titres des projets*/
  font-family: var(--font-hand);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.projet-meta {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.projet-section-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 1rem 0 0.4rem;
}

.projet-info p { /*paragraphe de ma section projets*/
  /*font-size: 0.82rem;*/
  margin-bottom: 0.5rem;
}

.projet-info ul {/*bulletpoint de ma section projets*/
  padding-left: 1.2rem;
  /*font-size: 0.82rem;*/
  margin-bottom: 0.5rem;
}

.projet-info ul li {
  margin-bottom: 0.2rem;
}

.projet-side {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.projet-preview-img {
  width: 100%;
}

.projet-preview-img .img-placeholder {
  aspect-ratio: 3/4;
  width: 100%;
}

.voir-projet-btn {
  width: 100%;
  text-align: center;
}

/* ── MODAL LIGHTBOX ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  min-width: 300px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-title {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-preview.horizontal .modal-img {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: var(--placeholder);
  border-radius: 8px;
}

.modal-preview.vertical .modal-img {
  width: 40vw;
  max-width: 400px;
  aspect-ratio: 9/16;
  background: var(--placeholder);
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .hero {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .hero-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .services-inner {
    flex-direction: column;
    padding: 0 1.5rem;
    align-items: center;
  }

  .services {
    padding: 2rem 1.5rem;
  }

  .services-visual {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .services-visual .img-placeholder {
    max-width: 260px;
  }

  .projets {
    padding: 2rem 1.5rem;
  }

  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-cta {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .contact {
    padding: 2rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    
  }

  .stage-content {
    flex-direction: column;
  }

  .projet-layout {
    flex-direction: column;
  }

  .projet-side {
    flex: none;
    width: 100%;
  }

  .apropos-section,
  .profil-section,
  .profil-galerie {
    padding: 2rem 1.5rem;
  }

  .modal-preview.horizontal .modal-img {
    width: 90vw;
  }

  .modal-preview.vertical .modal-img {
    width: 70vw;
  }
}
