/* ===== Palette : couleurs vives + base crème élégante ===== */
:root {
  --creme: #fbf7f1;
  --encre: #1d1a2b;
  --gris: #5f5a70;
  --violet: #6c4cf5;
  --corail: #ff6b5b;
  --safran: #ffb627;
  --turquoise: #13b3a3;
  --rose: #f2a7c3;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --rayon: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--creme);
  color: var(--encre);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
em { font-style: italic; font-weight: 400; color: var(--violet); }
h2 em, .hero__nom em, .hero__accroche em {
  background: linear-gradient(90deg, var(--violet), var(--corail), var(--safran));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.surtitre {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--corail); margin-bottom: .8rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem clamp(1.2rem, 5vw, 4rem);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav--fixe { background: rgba(251, 247, 241, .85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(29,26,43,.08); padding-block: .8rem; }
.nav__logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.nav__liens { display: flex; gap: 2rem; align-items: center; }
.nav__liens a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__liens a:not(.nav__cta):hover { color: var(--violet); }
.nav__cta { background: var(--encre); color: var(--creme) !important; padding: .55rem 1.2rem; border-radius: 99px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 7rem clamp(1.2rem, 5vw, 4rem) 4rem; overflow: hidden;
}
.hero__contenu { position: relative; z-index: 2; max-width: 900px; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500;
  background: #fff; padding: .45rem 1rem; border-radius: 99px; box-shadow: 0 4px 20px rgba(108,76,245,.12);
  margin-bottom: 2rem;
}
.point { width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(19,179,163,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(19,179,163,0); } }
.hero__nom { font-size: clamp(3.5rem, 11vw, 8.5rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero__metier { font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-bottom: 1rem; }
.hero__accroche { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 640px; margin-bottom: 2.5rem; }
.hero__boutons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .95rem 1.8rem; border-radius: 99px; font-weight: 700;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--plein { background: linear-gradient(120deg, var(--violet), var(--corail)); color: #fff; box-shadow: 0 10px 30px rgba(108,76,245,.3); }
.btn--contour { border: 2px solid var(--encre); }
.btn--grand { font-size: clamp(1rem, 2.5vw, 1.4rem); padding: 1.2rem 2.4rem; }

/* Formes colorées flottantes */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: flotte 14s ease-in-out infinite; }
.blob--1 { width: 420px; height: 420px; background: var(--rose); top: -80px; right: -60px; }
.blob--2 { width: 320px; height: 320px; background: var(--safran); bottom: 5%; right: 25%; animation-delay: -5s; opacity: .4; }
.blob--3 { width: 280px; height: 280px; background: var(--turquoise); top: 35%; right: 5%; animation-delay: -9s; opacity: .35; }
.blob--4 { width: 500px; height: 500px; background: var(--violet); top: -150px; left: -150px; opacity: .45; }
@keyframes flotte { 50% { transform: translate(-40px, 30px) scale(1.1); } }

/* ===== Bandeau défilant ===== */
.bandeau { background: var(--encre); color: var(--creme); padding: 1.1rem 0; overflow: hidden; transform: rotate(-1.5deg); margin: 0 -2%; }
.bandeau__piste { display: flex; gap: 1.8rem; width: max-content; animation: defile 35s linear infinite; font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.bandeau__piste i { color: var(--safran); font-style: normal; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 7rem clamp(1.2rem, 5vw, 4rem); max-width: 1250px; margin: 0 auto; }

.apropos { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: center; }
.apropos p { color: var(--gris); margin-bottom: 1rem; }
.cadre {
  position: relative; aspect-ratio: 4 / 5; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
  background: linear-gradient(140deg, var(--violet), var(--corail) 55%, var(--safran));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 20px 20px 0 var(--rose);
}
.cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cadre.a-photo img { opacity: 1; }
.cadre.a-photo #initiales { display: none; }
#initiales { font-family: var(--serif); font-size: 7rem; color: #fff; font-style: italic; }
.chiffres { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.chiffre strong { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--encre); }
.chiffre span { font-size: .9rem; color: var(--gris); }

/* Couleurs par carte */
.c-violet { --c: var(--violet); }
.c-corail { --c: var(--corail); }
.c-safran { --c: var(--safran); }
.c-turquoise { --c: var(--turquoise); }
.c-rose { --c: var(--rose); }

.competences { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.carte-comp { background: #fff; border-radius: var(--rayon); padding: 2rem; border-top: 6px solid var(--c); box-shadow: 0 10px 40px rgba(29,26,43,.06); }
.carte-comp h3 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.carte-comp ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.carte-comp li { padding: .35rem .9rem; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, white); font-size: .9rem; font-weight: 500; }

.projets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.projet {
  position: relative; display: block; text-decoration: none; padding: 2.2rem; border-radius: var(--rayon);
  background: color-mix(in srgb, var(--c) 12%, var(--creme)); overflow: hidden; min-height: 280px;
  transition: transform .35s, background .35s, color .35s;
}
.projet::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--c); right: -60px; bottom: -60px; opacity: .35; transition: transform .5s; }
.projet:hover { transform: translateY(-6px) rotate(-.5deg); background: var(--c); color: #fff; }
.projet:hover::after { transform: scale(3); opacity: .2; background: #fff; }
.projet:hover p, .projet:hover .projet__num { color: #fff; }
.projet__num { font-family: var(--serif); font-style: italic; color: var(--c); font-size: 1.1rem; }
.projet h3 { font-size: 1.8rem; margin: .6rem 0 .8rem; }
.projet p { color: var(--gris); margin-bottom: 1.4rem; position: relative; z-index: 1; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; position: relative; z-index: 1; }
.tags span { font-size: .78rem; font-weight: 700; padding: .25rem .75rem; border-radius: 99px; border: 1.5px solid currentColor; }
.projet__fleche { position: absolute; top: 1.8rem; right: 1.8rem; font-size: 1.6rem; z-index: 1; }

.frise { list-style: none; position: relative; padding-left: 2.5rem; max-width: 800px; }
.frise::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--corail), var(--safran)); }
.frise li { position: relative; padding-bottom: 3rem; }
.frise li::before { content: ""; position: absolute; left: calc(-2.5rem + 1px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--creme); border: 3px solid var(--violet); }
.frise__date { font-size: .85rem; font-weight: 700; color: var(--corail); letter-spacing: .05em; }
.frise h3 { font-size: 1.6rem; margin: .3rem 0 .4rem; }
.frise small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--gris); }
.frise p { color: var(--gris); }

/* ===== Contact ===== */
.contact {
  position: relative; overflow: hidden; background: var(--encre); color: var(--creme); text-align: center;
  padding: 8rem clamp(1.2rem, 5vw, 4rem); margin: 2rem clamp(.6rem, 2vw, 1.5rem); border-radius: 40px;
}
.contact > *:not(.blob) { position: relative; z-index: 1; }
.contact .blob { position: absolute; z-index: 0; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 1.2rem; }
.contact__texte { color: rgba(251,247,241,.7); margin-bottom: 2.5rem; font-size: 1.15rem; }
.reseaux { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }
.reseaux a { text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--safran); padding-bottom: 2px; }
.reseaux a:hover { color: var(--safran); }
.pied { text-align: center; padding: 2rem; color: var(--gris); font-size: .9rem; }

/* ===== Apparition au défilement ===== */
.apparait { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.apparait.visible { opacity: 1; transform: none; }

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .nav__liens a:not(.nav__cta) { display: none; }
  .apropos { grid-template-columns: 1fr; gap: 3rem; }
  .apropos__photo { max-width: 320px; }
  .section { padding-block: 5rem; }
  .blob--1 { width: 260px; height: 260px; }
}

/* Respect des personnes sensibles aux animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
