@font-face {
  font-family: 'Fredoka';
  font-weight: 300 900;
  font-display: block;
  src: url('fonts/Fredoka.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 100 900;
  font-display: block;
  src: url('fonts/Nunito.woff2') format('woff2');
}

:root {
  --cream:  #FFFBF0;
  --coral:  #FF6B35;
  --teal:   #4ECDC4;
  --yellow: #FFE66D;
  --green: #a8ebc3;
  --dark:   #3a3a41;
  --shadow: 4px 4px 0 var(--dark);
  --r: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ══ NAV ══ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--dark);
  padding: 1.4rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  font-size: 1.65rem; color: var(--teal); text-decoration: none;
}
.logo span { color: var(--teal); }

.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-weight: 700; font-size: .95rem; color: var(--dark);
  text-decoration: none; padding: .35rem 1rem;
  border-radius: 50px; transition: background .2s, transform .18s;
  border: 2px solid transparent;
}
.nav-links a:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}
.nav-links a.active {
  background: var(--yellow);
  border-color: var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
}

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 26px; height: 3px;
  background: var(--dark); border-radius: 3px; transition: all .3s;
}

/* ══ FOOTER ══ */
footer {
  background: var(--dark); color: #666;
  text-align: center; padding: 1.4rem 1rem;
  font-size: .85rem; border-top: 2px solid #2e2e45;
}
footer a { color: var(--teal); text-decoration: none; }

/* ══ BOUTONS ══ */
.btn {
  display: inline-block; padding: .85rem 1.9rem;
  border-radius: 50px; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 3px solid var(--dark); cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
  /*white-space: nowrap;*/
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dark); }
.btn:active { transform: translate(2px, 2px);   box-shadow: 2px 2px 0 var(--dark); }
.btn-coral  { background: var(--coral); color: #fff; }
.btn-white  { background: #fff; color: var(--dark); }
.btn-teal   { background: var(--teal); color: var(--dark); }
.btn-green   { background: var(--green); color: var(--dark); }

/* ══ BADGE / TAG ══ */
.badge {
  display: inline-block;
  background: var(--green); border: 2px solid var(--dark);
  border-radius: 50px; padding: .3rem 1rem;
  font-weight: 800; font-size: .88rem;
  box-shadow: 2px 2px 0 var(--dark); margin-bottom: 1.4rem;
}
.s-tag {
  display: inline-block; border: 2.5px solid var(--dark);
  border-radius: 50px; padding: .2rem .9rem;
  font-weight: 800; font-size: .8rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: .9rem;
  box-shadow: 2px 2px 0 var(--dark);
}

/* ══ TITRES ══ */
h1 {
  font-family: 'Fredoka', cursive;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1; margin-bottom: 1.4rem;
}
h1 .hl {
  color: var(--coral); position: relative; display: inline-block;
}
h1 .hl::after {
  content: ''; position: absolute;
  bottom: 4px; left: 0; width: 100%; height: 10px;
  background: var(--yellow); z-index: -1; border-radius: 4px;
}
h2 {
  font-family: 'Fredoka', cursive;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2;
}

/* ══ PAGE HERO (index) ══ */
.hero {
  min-height: calc(100vh - 66px);
  display: flex; align-items: center;
  padding: 4rem 2rem; position: relative; overflow: hidden;
}
.hero-content { max-width: 800px; z-index: 2; }
.hero-sub {
  font-size: 1.15rem; line-height: 1.75; color: #444;
  margin-bottom: 2.5rem; max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Blobs */
.blob { position: absolute; border-radius: 50%; z-index: 1; opacity: .55; }
.blob-1 {
  width: 420px; height: 420px; background: var(--teal);
  right: -70px; top: 50%; transform: translateY(-50%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: float1 6s ease-in-out infinite;
}
.blob-2 {
  width: 190px; height: 190px; background: var(--yellow);
  right: 220px; top: 8%;
  border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
  animation: floatS 5s ease-in-out infinite;
  animation-delay: -2s;
}
.blob-3 {
  width: 110px; height: 110px; background: var(--green);
  right: 400px; bottom: 10%;
  border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
  animation: floatS 5s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes float1 {
  0%,100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(calc(-50% - 18px)) rotate(4deg); }
}
@keyframes floatS {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ══ PAGE PORTFOLIO ══ */
.page-header {
  padding: 3.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--dark);
  background: #fff;
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .6rem; }
.page-header p  { font-size: 1.05rem; color: #555; max-width: 520px; margin: 0 auto; }

.portfolio-section { padding: 3.5rem 2rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.grid-gip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; max-width: 1200px; margin: 2rem auto 0;
}
@media (max-width: 768px) {
  .grid-gip { grid-template-columns: 1fr; }
  .hero { margin-left: 0 !important; }

  .logo { display: none; }
  nav img { position: static !important; transform: none !important; height: 60px !important; width: auto; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
}
.card {
  border: 3px solid var(--dark); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--dark);
}
.card-thumb {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
}
.card-body { padding: 1.2rem; border-top: 3px solid var(--dark); }
.card-cat {
  display: inline-block; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  padding: .15rem .7rem; border-radius: 50px;
  border: 2px solid var(--dark); margin-bottom: .6rem;
}
.card-title { font-weight: 800; font-size: 1.05rem; margin-bottom: .35rem; }
.card-desc  { font-size: .88rem; color: #555; line-height: 1.5; }

/* ══ PAGE À PROPOS ══ */
.apropos-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 2rem;
  display: grid; grid-template-columns: 220px 1fr;
  gap: 4rem; align-items: start;
}
.avatar {
  aspect-ratio: 1; background: var(--teal);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  border: 4px solid var(--dark); box-shadow: 6px 6px 0 var(--dark);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 5.5rem; position: sticky; top: 100px;
}
.apropos-text h2 { margin-bottom: 1.1rem; }
.apropos-text p  { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 1.1rem; }
.chips { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip {
  padding: .4rem 1rem; border-radius: 50px;
  border: 2px solid var(--dark); font-weight: 700; font-size: .9rem;
  box-shadow: 2px 2px 0 var(--dark);
}

/* ══ PAGE CONTACT ══ */
.contact-wrap {
  max-width: 600px; margin: 0 auto;
  padding: 4rem 2rem;
}
.contact-wrap h1 { margin-bottom: .6rem; }
.contact-wrap .intro { font-size: 1.05rem; color: #444; margin-bottom: 2.5rem; }
form { display: flex; flex-direction: column; gap: 1.2rem; }
.fgroup { display: flex; flex-direction: column; gap: .5rem; }
.fgroup label { font-weight: 700; font-size: .95rem; }
.fgroup input,
.fgroup textarea,
.fgroup select {
  padding: .85rem 1rem; border-radius: var(--r);
  border: 3px solid var(--dark); background: #fff;
  font-family: 'Nunito', sans-serif; font-size: 1rem;
  color: var(--dark); transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.fgroup input:focus,
.fgroup textarea:focus,
.fgroup select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 4px 4px 0 var(--teal);
}
.fgroup textarea { resize: vertical; min-height: 150px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ══ CARTES IMAGE SEULE (portfolio) ══ */
.card-img-only {
  border: 3px solid var(--green);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--green);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  aspect-ratio: 4/3;
}
.card-img-only:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--green);
}
.card-img-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-title {
  font-family: 'Fredoka', cursive;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  display: inline-block;
}

.illustratrice-title {
  font-family: 'Fredoka', cursive;
  font-size: 2.5rem;
  margin-top: 1rem;
  padding-bottom: .6rem;
  display: inline-block;
}

.orange-name {
  color: var(--coral);
}


/* ══ REVEAL ══ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--dark);
    flex-direction: column; align-items: center;
    padding: 1.5rem; gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .blob-1 { width: 240px; height: 240px; }
  .blob-2, .blob-3 { display: none; }
  .apropos-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .avatar { width: 160px; margin: 0 auto; position: static; }
  .form-row { grid-template-columns: 1fr; }
}
