/* ============================================================
   Sections — styles propres à chaque bloc de la page.
   ============================================================ */

/* ===================== HERO ===================== */
.hero {
  padding-top: clamp(130px, 18vw, 190px);
  padding-bottom: clamp(40px, 6vw, 70px);
}

/* Badge de disponibilité (« Dispo ») */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 8px 16px 8px 13px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(.5); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Grand titre éditorial */
.h-headline {
  font-family: var(--display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  font-size: clamp(48px, 9.5vw, 138px);
}
.h-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
  letter-spacing: -.01em;
}
/* overflow:hidden masque les lignes pendant l'animation de glissement.
   Le padding/marge négative évite de rogner les jambages (p, y, é…). */
.h-row { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.h-row > span { display: block; }

/* Animation d'entrée du titre.
   État de repos VISIBLE par défaut (transform:none). L'animation n'est armée
   que si le JS ajoute `anim` sur <html> ; elle se déclenche quand `ready`
   est ajouté (toujours sur <html> — c'est le correctif du « trou » du hero). */
@media (prefers-reduced-motion: no-preference) {
  html.anim .h-row > span {
    transform: translateY(105%);
    transition: transform .9s cubic-bezier(.2, .75, .1, 1);
  }
  html.anim.ready .h-row > span { transform: none; }
  html.anim .h-row:nth-child(2) > span { transition-delay: .1s; }
  html.anim .h-row:nth-child(3) > span { transition-delay: .2s; }
}

.h-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-top: clamp(34px, 5vw, 56px);
}
.h-tag {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.h-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 680px) { .h-foot { grid-template-columns: 1fr; } }


/* ===================== À PROPOS ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}
.about-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 24ch;
}
.about-p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 58ch;
  text-wrap: pretty;
}
.facts { display: flex; flex-direction: column; gap: 2px; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact .k { font-size: 13px; color: var(--ink-soft); }
.fact .v { font-size: 15px; font-weight: 600; text-align: right; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* ===================== COMPÉTENCES ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}
.bar { margin-bottom: 24px; }
.bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.bar-name { font-size: 17px; font-weight: 600; }
.bar-pct {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--cream-2);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
@media (prefers-reduced-motion: no-preference) {
  html.anim .bar-fill { transition: width 1.2s cubic-bezier(.2, .7, .1, 1); }
}
.areas { display: flex; flex-direction: column; gap: 12px; }
.area {
  background: var(--cream-2);
  border-radius: 18px;
  padding: 22px 24px;
  transition: .25s;
}
.area:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(34, 29, 21, .08); }
.area h4 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.area h4 i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 400;
}
.area p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.tools { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.chip {
  font-size: 13px;
  font-weight: 500;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--ink-soft);
  transition: .2s;
}
.chip:hover { background: var(--accent); color: #fff; }
@media (max-width: 780px) { .skills-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ===================== PROJETS ===================== */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filter {
  font-size: 13px;
  font-weight: 500;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 9px 17px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: .2s;
  border: none;
}
.filter:hover { color: var(--ink); }
.filter.on { background: var(--ink); color: var(--cream); font-weight: 600; }

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.pcard {
  border-radius: 22px;
  padding: 24px;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(34, 29, 21, .16); }
.pcard.v0 { background: linear-gradient(150deg, #fff4e4, #f7d9ac); }
.pcard.v1 { background: linear-gradient(150deg, #fde6cf, #f1b878); }
.pcard.v2 { background: var(--ink); color: var(--cream); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-cat {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 600;
  opacity: .7;
}
.pc-status {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  opacity: .85;
}
.pc-thumb {
  margin: 20px 0;
  height: 128px;
  border-radius: 14px;
  background: rgba(34, 29, 21, .08);
  position: relative;
  overflow: hidden;
}
.pcard.v2 .pc-thumb { background: rgba(255, 255, 255, .08); }
.pc-thumb .ph {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}
.pc-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
  margin-top: auto;
  line-height: 1;
}
.pc-desc { font-size: 14px; line-height: 1.55; margin-top: 9px; opacity: .78; }
.pc-stack { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.pc-stack span {
  font-size: 11px;
  font-weight: 500;
  background: rgba(34, 29, 21, .1);
  border-radius: 6px;
  padding: 3px 9px;
}
.pcard.v2 .pc-stack span { background: rgba(255, 255, 255, .12); }
.pc-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  color: var(--accent-deep);
}
.pcard.v2 .pc-go { color: var(--accent-soft); }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } }

.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.prow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: .25s;
}
.prow:hover { padding-left: 18px; background: var(--cream-2); }
.prow .pnum { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.prow .pname {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.02em;
  transition: color .2s;
}
.prow:hover .pname { color: var(--accent-deep); }
.prow .pcat { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.prow .parw { color: var(--ink-soft); font-size: 20px; transition: transform .25s, color .25s; }
.prow:hover .parw { transform: translate(4px, -4px); color: var(--accent-deep); }
@media (max-width: 640px) {
  .prow { grid-template-columns: auto 1fr auto; }
  .prow .pcat { display: none; }
}

/* ===================== PARCOURS ===================== */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); }
.pc-col h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-col h3::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.tl-item {
  position: relative;
  padding: 0 0 26px 28px;
  border-left: 2px solid var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--cream);
}
.tl-period { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.tl-role { font-family: var(--display); font-size: 18px; font-weight: 700; margin: 6px 0 3px; }
.tl-org { font-size: 14px; color: var(--ink-soft); }
.tl-d { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-top: 8px; max-width: 46ch; }
@media (max-width: 780px) { .pc-grid { grid-template-columns: 1fr; gap: 46px; } }

/* ===================== CONTACT ===================== */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.ct-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 30px;
  padding: clamp(40px, 7vw, 84px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ct-card .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 44, .5), transparent 65%);
  right: -80px;
  top: -120px;
  pointer-events: none;
}
.ct-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  position: relative;
}
.ct-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}
.ct-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  color: #d8cdb8;
  max-width: 46ch;
  margin: 0 auto 36px;
  position: relative;
  text-wrap: pretty;
}
.ct-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; position: relative; }
.ct-card .btn { border-color: rgba(246, 239, 226, .4); color: var(--cream); }
.ct-card .btn.fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.ct-card .btn.fill:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.ct-card .btn.ghost:hover { background: var(--cream); color: var(--ink); }
.ct-foot {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
  font-size: 13px;
  color: #a99f8a;
}
.ct-foot a { transition: color .2s; }
.ct-foot a:hover { color: var(--accent-soft); }

/* ---- Formulaire de contact ---- */
.ct-form {
  margin-top: 40px;
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.ct-input {
  width: 100%;
  background: rgba(246, 239, 226, .07);
  border: 1.5px solid rgba(246, 239, 226, .18);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.ct-input::placeholder { color: rgba(246, 239, 226, .35); }
.ct-input:focus {
  border-color: var(--accent);
  background: rgba(246, 239, 226, .10);
}
textarea.ct-input {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 16px;
}
.ct-form-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ct-form-msg {
  font-size: 14px;
  color: var(--accent-soft);
  line-height: 1.45;
}
.ct-form-msg.error { color: #f6a09a; }
@media (max-width: 580px) {
  .ct-form-row { grid-template-columns: 1fr; }
}

/* ---- Bouton retour en haut ---- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(34, 29, 21, .18);
}
.scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scroll-top:hover { background: var(--accent); }
