/* =========================================
   FICHIER : src/css/projet.css
   PAGES   : /projets/* (pages détail)
   STYLE   : premium, clair, lisible, cohérent
   ========================================= */

/* --------- Petites utilitaires utilisées dans tes templates --------- */
.mt-10 { margin-top: 10px; }
.btn-full { display: block; width: 100%; text-align: center; }

/* Sécurité : si certains tokens globaux n'existent pas */
:root{
  --proj-accent: var(--color-accent, #ff6e40);
  --proj-deep: var(--color-deep, #1e3d59);
  --proj-sand: var(--color-sand, #f5f0e1);
  --proj-ease: var(--ease, cubic-bezier(.2,.8,.2,1));
}

/* --------- Section wrapper (tes pages utilisent .section) --------- */
.section{
  padding: clamp(64px, 7vw, 92px) 0;
  background: #fcfbf8;
}

/* --------- HERO --------- */
.project-hero{
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 12vw, 170px) 0 clamp(54px, 6vw, 86px);
  color: #fff;
  text-align: center;

  /* Fond “pro” même sans image */
  background:
    radial-gradient(900px 380px at 18% 18%, rgba(255,110,64,.26) 0%, rgba(255,110,64,0) 60%),
    radial-gradient(820px 320px at 86% 22%, rgba(245,240,225,.18) 0%, rgba(245,240,225,0) 62%),
    linear-gradient(135deg, #fafafa 0%, #0684f1 100%);
  background-size: cover;
  background-position: center;
}

/* Overlay pour lisibilité si tu mets une image en background-image via inline style */
.project-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,34,49,.72) 0%, rgba(15,34,49,.72) 55%, rgba(15,34,49,.82) 100%);
  pointer-events:none;
}

/* Petit halo décoratif */
.project-hero::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(closest-side at 50% 50%, rgba(255,255,255,.10), transparent 60%);
  transform: rotate(10deg);
  opacity: .9;
  pointer-events:none;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 14px;
}

.project-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.92);
  background: rgba(255,110,64,.22);
  border: 1px solid rgba(255,110,64,.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-hero h1{
  margin: 14px 0 10px;
  font-family: var(--font-title, "Cormorant Garamond", serif);
  font-size: clamp(2.2rem, 2.0rem + 2.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 25px rgba(0,0,0,.22);
}

.project-hero p{
  margin: 0 auto;
  max-width: 74ch;
  color: rgba(255,255,255,.86);
  line-height: 1.75;
  font-size: clamp(1.02rem, 0.98rem + .35vw, 1.20rem);
}

/* --------- LAYOUT : contenu + sidebar --------- */
.project-layout{
  display: grid;
  grid-template-columns: 1.65fr 0.95fr;
  gap: clamp(22px, 4vw, 64px);
  align-items: start;
}

/* --------- CONTENU PRINCIPAL --------- */
.project-main{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(30,61,89,.10);
  border-radius: 22px;
  box-shadow: var(--shadow-card, 0 18px 55px rgba(30,61,89,.10));
  padding: clamp(18px, 2.2vw, 28px);
}

.project-main h2{
  margin: 28px 0 12px;
  color: var(--proj-deep);
  font-size: clamp(1.45rem, 1.30rem + .7vw, 2.05rem);
  font-family: var(--font-title, "Cormorant Garamond", serif);
  letter-spacing: -0.02em;
}

.project-main h2:first-child{ margin-top: 0; }

.project-main p{
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(45,52,54,.84);
}

.project-main a{
  color: rgba(30,61,89,.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(30,61,89,.18);
  transition: color .2s var(--proj-ease), border-color .2s var(--proj-ease);
}
.project-main a:hover{
  color: var(--proj-accent);
  border-bottom-color: rgba(255,110,64,.35);
}

.project-main ul{
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-main li{
  position: relative;
  padding-left: 28px;
  color: rgba(45,52,54,.84);
  line-height: 1.75;
}

.project-main li::before{
  content:"";
  position:absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--proj-accent);
  box-shadow: 0 0 0 4px rgba(255,110,64,.14);
}

/* --------- IMPACT BOX (tu en as parfois plusieurs) --------- */
.impact-box{
  margin: 18px 0;
  border-radius: 20px;
  border: 1px solid rgba(255,110,64,.18);
  background:
    radial-gradient(520px 240px at 18% 20%, rgba(255,110,64,.12), transparent 65%),
    rgba(245,240,225,.55);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.impact-number{
  font-size: clamp(1.8rem, 1.55rem + 1.1vw, 2.6rem);
  font-weight: 1000;
  color: var(--proj-deep);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.impact-label{
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(30,61,89,.70);
  font-weight: 900;
  line-height: 1.35;
}

/* --------- SIDEBAR --------- */
.project-sidebar{
  position: sticky;
  top: 110px; /* ajuste si ton header est plus/moins haut */
}

.sidebar-widget{
  background: rgba(255,255,255,.92);
  border-radius: 22px;
  border: 1px solid rgba(30,61,89,.10);
  box-shadow: var(--shadow-card, 0 18px 55px rgba(30,61,89,.10));
  padding: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.sidebar-widget::before{
  content:"";
  position:absolute;
  top:-40%;
  right:-30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,110,64,.14) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
}

.sidebar-widget > *{ position: relative; z-index: 1; }

.sidebar-widget h3{
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 1000;
  color: var(--proj-deep);
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,61,89,.10);
}

.info-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.info-list li{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(30,61,89,.12);
  font-size: .97rem;
  color: rgba(45,52,54,.78);
}

.info-list strong{
  color: var(--proj-deep);
  font-weight: 950;
}

.needs-list{
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}

.needs-list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(45,52,54,.82);
  line-height: 1.6;
}

.needs-list i{
  color: var(--proj-accent);
  margin-top: 2px;
}

/* --------- Responsive --------- */
@media (max-width: 980px){
  .project-layout{
    grid-template-columns: 1fr;
  }

  .project-sidebar{
    position: static;
    top: auto;
  }

  .project-main{
    padding: 18px;
  }
}

@media (max-width: 560px){
  .project-hero{
    padding: 120px 0 54px;
  }

  .project-tag{
    font-size: .74rem;
    padding: 7px 12px;
  }

  .project-main p{
    font-size: 1.02rem;
  }
}
