/*
 * Ajustements ciblés après la refonte.
 * La source Tailwind équivalente reste dans assets/css/input.css ; ce fichier
 * permet aussi au projet local de fonctionner quand le compilateur est absent.
 */

/* Accueil : manifeste clair, aéré et sans grand bloc sombre. */
.home-manifesto {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  padding: 5rem 0;
  color: #0f172a;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-radius: 3rem 3rem 0 0;
}

.manifesto-heading { max-width: 64rem; }
.manifesto-title {
  max-width: 64rem;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.045em;
  color: #0f172a;
}
.manifesto-title .title-line > span { color: #0f172a; }
.manifesto-title .title-line-accent > span { color: #94a3b8; }
.manifesto-copy {
  max-width: 42rem;
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}
.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4rem;
  border-block: 1px solid #e2e8f0;
}
.manifesto-stat {
  position: relative;
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  justify-content: center;
  padding: 2rem .5rem;
  border-bottom: 1px solid #e2e8f0;
}
.manifesto-stat:nth-child(odd) { border-right: 1px solid #e2e8f0; }
.manifesto-stat:nth-last-child(-n + 2) { border-bottom: 0; }
.manifesto-stat-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: #cbd5e1;
}
.manifesto-stat strong {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -.04em;
  color: #0f172a;
}
.manifesto-stat > span:last-child {
  margin-top: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #64748b;
}
.manifesto-gallery { display: grid; gap: 1rem; margin-top: 3rem; }
.manifesto-visual { position: relative; overflow: hidden; border-radius: 2rem; background: #f1f5f9; }
.manifesto-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s ease; }
.manifesto-visual:hover img { transform: scale(1.035); }
.manifesto-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgb(15 23 42 / 60%), transparent 60%);
}
.manifesto-visual figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
}
.manifesto-visual figcaption span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 999px;
  font-size: .625rem;
}

/* Dévoilement sobre des grands titres, désactivé si l'utilisateur le demande. */
.motion-title .title-line { display: block; overflow: hidden; }
.motion-title .title-line > span {
  display: block;
  transform: translateY(112%);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.motion-title .title-line:nth-child(2) > span { transition-delay: .12s; }
.motion-title.is-visible .title-line > span { transform: translateY(0); }

/* À propos : timeline verticale sur mobile, alternée sur grand écran. */
.about-timeline { position: relative; max-width: 64rem; margin: 3.5rem auto 0; }
.about-timeline::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: .7rem;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, #fecdd3, #f43f5e, #fecdd3);
}
.about-timeline-item { position: relative; margin-bottom: 1.75rem; padding-left: 3rem; }
.about-timeline-item:last-child { margin-bottom: 0; }
.about-timeline-marker {
  position: absolute;
  top: 2rem;
  left: 0;
  z-index: 10;
  width: 1.5rem;
  height: 1.5rem;
  border: 7px solid #fff;
  border-radius: 999px;
  background: #f43f5e;
  box-shadow: 0 0 0 1px #fecdd3;
}
.about-timeline-card {
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 16px 45px -32px rgb(15 23 42 / 18%);
  transition: transform .3s ease, border-color .3s ease;
}
.about-timeline-card:hover { transform: translateY(-.25rem); border-color: #cbd5e1; }
.about-timeline-card time {
  display: inline-flex;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #020617;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .025em;
  color: #fff;
}
.about-timeline-kicker {
  display: block;
  margin-top: 1.5rem;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e11d48;
}
.about-timeline-card h3 { margin-top: .5rem; font-size: 1.5rem; font-weight: 500; color: #0f172a; }
.about-timeline-card p { margin-top: 1rem; font-size: .875rem; line-height: 1.75; color: #475569; }

.footer-credit { letter-spacing: .025em; color: #94a3b8; }
.footer-credit strong { font-weight: 600; color: #334155; }

/* Un ratio portrait naturel évite de couper les visages et les épaules. */
.team-photo { aspect-ratio: 3 / 4; object-position: center center; }
.section[id] { scroll-margin-top: 5rem; }

/* Console : un formulaire stable à gauche et les contenus éditables à droite. */
.content-manager-layout { display: grid; gap: 1.5rem; align-items: start; }
.content-manager-form { display: grid; gap: 1.15rem; }
.content-field > label { display: block; margin-bottom: .5rem; font-size: .8125rem; font-weight: 700; color: #334155; }
.content-field > label span { color: #e11d48; }
.content-field-checkbox { display: flex; align-items: center; gap: .65rem; }
.content-field-checkbox > label { margin: 0; }
.content-field-upload { padding: 1rem; border: 1px dashed #cbd5e1; border-radius: 1.25rem; background: #f8fafc; }
.upload-guidance { display: flex; gap: .65rem; margin-top: .75rem; font-size: .72rem; line-height: 1.45; color: #64748b; }
.upload-guidance svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: #e11d48; }
.upload-guidance strong { display: block; color: #334155; }
.form-error { margin-top: .4rem; font-size: .75rem; font-weight: 600; color: #be123c; }
.content-current-image { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: .75rem; border-radius: 1rem; background: #f8fafc; }
.content-current-image img { width: 4.5rem; height: 4.5rem; flex: 0 0 auto; border-radius: .75rem; object-fit: cover; }
.content-current-image strong,
.content-current-image span { display: block; }
.content-current-image strong { font-size: .8125rem; color: #0f172a; }
.content-current-image span { margin-top: .2rem; font-size: .7rem; line-height: 1.4; color: #64748b; }
.content-manager-list { display: grid; gap: .8rem; }
.content-filter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 1rem; background: #f8fafc; }
.content-filter label { font-size: .75rem; font-weight: 700; color: #475569; }
.content-filter select { min-width: 10rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; padding: .55rem .75rem; font-size: .75rem; color: #0f172a; }
.content-manager-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1.4rem; background: #fff; }
.content-manager-thumb { display: grid; width: 4.5rem; height: 4.5rem; place-items: center; overflow: hidden; border-radius: 1rem; background: #f1f5f9; color: #94a3b8; }
.content-manager-thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-manager-thumb svg { width: 1.5rem; height: 1.5rem; }
.content-manager-copy { min-width: 0; }
.content-manager-meta { display: flex; justify-content: flex-end; }
.content-manager-copy h3 { overflow: hidden; margin-top: .1rem; font-size: 1rem; font-weight: 650; color: #0f172a; text-overflow: ellipsis; white-space: nowrap; }
.content-manager-category { display: block; margin-top: .15rem; font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e11d48; }
.content-manager-copy p { display: -webkit-box; overflow: hidden; margin-top: .3rem; font-size: .75rem; line-height: 1.5; color: #64748b; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-manager-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; padding-top: .75rem; border-top: 1px solid #f1f5f9; }

@media (min-width: 640px) {
  .home-manifesto { padding: 7rem 0; }
  .manifesto-title { font-size: 3.75rem; }
  .manifesto-copy { font-size: 1.125rem; }
  .manifesto-stat { padding-inline: 1.5rem; }
  .manifesto-stat strong { font-size: 3rem; }
  .about-timeline-card { padding: 2.25rem; }
  .about-timeline-card p { font-size: 1rem; }
  .content-manager-card { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; }
  .content-manager-thumb { width: 5rem; height: 5rem; }
  .content-manager-actions { grid-column: auto; align-self: stretch; align-items: center; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid #f1f5f9; }
}
@media (min-width: 768px) { .manifesto-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .manifesto-title { font-size: 4.5rem; }
  .manifesto-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 5rem; }
  .manifesto-stat { border-right: 1px solid #e2e8f0 !important; border-bottom: 0 !important; }
  .manifesto-stat:last-child { border-right: 0 !important; }
  .about-timeline::before { left: 50%; transform: translateX(-50%); }
  .about-timeline-item { width: 50%; margin-bottom: -1.5rem; padding-left: 0; }
  .about-timeline-item:nth-child(odd) { margin-right: auto; padding-right: 4rem; text-align: right; }
  .about-timeline-item:nth-child(even) { margin-left: auto; padding-left: 4rem; }
  .about-timeline-item:nth-child(odd) .about-timeline-marker { right: -.75rem; left: auto; }
  .about-timeline-item:nth-child(even) .about-timeline-marker { left: -.75rem; }
  .about-timeline-item:nth-child(odd) .about-timeline-card time { margin-left: auto; }
}
@media (min-width: 1280px) { .content-manager-layout { grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .motion-title .title-line > span { transform: none; } }
