/* ==========================================================
   Sections ajoutées : confiance, références, projets, FAQ
   Utilise les variables définies dans style.css / theme-corail.css
   ========================================================== */

.section__lead { max-width: 40rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Bande de confiance (hero) ---------- */
.trust { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.trust__label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.trust__list { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.trust__list li { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); position: relative; }
.trust__list li + li::before { content: "•"; position: absolute; left: -.95rem; color: var(--red-dark); }

/* ---------- Références ---------- */
.refs { background: var(--paper-2); }
.stats {
  list-style: none;
  padding: 0;
  margin: 0 0 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stats li {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 5px 5px 0 var(--red-dark);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--red-dark);
}
.stats span { font-weight: 700; font-size: .95rem; }

.refs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ref {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.ref:hover { transform: translate(-4px, -6px); box-shadow: 10px 12px 0 var(--red-dark); }
.ref__visual { height: 200px; overflow: hidden; border-bottom: 3px solid var(--ink); background: #2b2d33; }
.ref__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ref:hover .ref__visual img { transform: scale(1.05); }
.ref__visual--icon { display: grid; place-items: center; background: linear-gradient(135deg, #e8f1fb, #cfe0f5); }
.ref__visual--icon img { width: 116px; height: 116px; border-radius: 26px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.ref__visual--books { position: relative; background: var(--yellow); }
.ref__visual--books img {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 104px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  transform-origin: 50% 120%;
  transition: transform .4s var(--ease-bounce);
}
.ref__visual--books img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.ref__visual--books img:nth-child(2) { transform: translateX(-50%) rotate(-12deg); }
.ref__visual--books img:nth-child(3) { transform: translateX(-50%) rotate(0deg); z-index: 3; }
.ref__visual--books img:nth-child(4) { transform: translateX(-50%) rotate(12deg); z-index: 2; }
.ref__visual--books img:nth-child(5) { transform: translateX(-50%) rotate(24deg); z-index: 1; }
.ref:hover .ref__visual--books img:nth-child(1) { transform: translateX(-50%) rotate(-32deg); }
.ref:hover .ref__visual--books img:nth-child(2) { transform: translateX(-50%) rotate(-16deg); }
.ref:hover .ref__visual--books img:nth-child(4) { transform: translateX(-50%) rotate(16deg); }
.ref:hover .ref__visual--books img:nth-child(5) { transform: translateX(-50%) rotate(32deg); }
.ref__visual--books img:nth-child(3) { transform: translateX(-50%) translateY(-6px); }
.ref__body { padding: 1.4rem 1.5rem 1.6rem; }
.ref__brand {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .2rem .8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
}
.ref h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .5rem; }
.ref p:last-child { margin: 0; color: var(--ink-soft); }

/* ---------- Preuve sur les cartes services ---------- */
.card__proof {
  margin: 1.2rem 0 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: .92rem;
  border-left: 4px solid var(--c);
}

/* ---------- Services : 4 offres ---------- */
.cards--four { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.4rem; max-width: 1000px; margin-inline: auto; }
.card--green { --c: #6e9b52; }
.card__list strong { color: var(--ink); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--c);
  padding-bottom: 2px;
  transition: gap .2s;
}
.card__link::after { content: "→"; }
.card__link:hover { gap: .8rem; }

/* ---------- Projets ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.project {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--red-dark);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.project--wide { grid-column: span 3; }
.project:hover { transform: translate(-3px, -6px); box-shadow: 9px 12px 0 var(--red-dark); }
.project__frame {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem .9rem;
  background: var(--paper-2);
  border-bottom: 3px solid var(--ink);
}
.project__dots { width: 42px; height: 10px; flex: none; background:
  radial-gradient(circle at 5px 5px, var(--red) 4px, transparent 5px),
  radial-gradient(circle at 21px 5px, var(--yellow) 4px, transparent 5px),
  radial-gradient(circle at 37px 5px, #a1c685 4px, transparent 5px); }
.project__url { font-size: .8rem; font-weight: 700; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s; }
.project:hover img { transform: scale(1.03); }
.project__body { padding: 1.2rem 1.3rem 1.4rem; border-top: 3px solid var(--ink); position: relative; background: var(--paper); flex: 1; }
.project__badge {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 800;
}
.project__body h3 { font-size: 1.25rem; margin-bottom: .35rem; display: flex; justify-content: space-between; gap: .5rem; }
.project__body h3::after { content: "↗"; color: var(--red); transition: transform .3s; }
.project:hover .project__body h3::after { transform: translate(3px, -3px); }
.project__body p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.project__tags { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.project__tags li { font-size: .78rem; font-weight: 800; padding: .2rem .7rem; border-radius: 999px; background: var(--yellow); }

/* ---------- Galerie créative (polaroïds) ---------- */
.gallery { background: var(--yellow); }
.gallery .hand { color: var(--red-dark); }
.gallery .section__lead { color: var(--ink); }
.polaroids { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1rem; }
.polaroid {
  background: var(--paper);
  padding: 10px 10px 0;
  border-radius: 4px;
  box-shadow: 6px 8px 0 var(--red-dark);
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.polaroid:nth-child(odd) { transform: rotate(-3deg); }
.polaroid:nth-child(even) { transform: rotate(2.5deg) translateY(12px); }
.polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; box-shadow: 10px 12px 0 var(--ink); }
.polaroid img { height: 150px; width: auto; max-width: 200px; object-fit: cover; display: block; }
.polaroid span { display: block; max-width: 200px; padding: .55rem .2rem .7rem; font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.15; text-align: center; }
/* le transform des polaroïds remplace celui de .reveal */
.polaroid.reveal { opacity: 0; }
.polaroid.reveal.is-visible { opacity: 1; }

/* ---------- Formulaire : anti-spam, note, confirmation ---------- */
[hidden] { display: none !important; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.form__note a { color: inherit; }
.form__success { text-align: center; outline: none; }
.form__success img { width: 110px; margin: 0 auto 1rem; animation: bob 3s ease-in-out infinite; }
.form__success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin-bottom: .6rem; }
.form__success p { margin: 0; color: var(--ink-soft); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- Pied de page ---------- */
.footer__links { display: flex; gap: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq__inner { max-width: 820px; }
.faq__list { display: grid; gap: .9rem; }
.faq details {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--red-dark);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: 6px 6px 0 var(--red); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.2rem;
  transition: transform .3s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 16px; }
.faq details p { margin: 0; padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards--four { grid-template-columns: 1fr; max-width: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .refs__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project, .project--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .projects__grid { grid-template-columns: 1fr; }
  .polaroids { gap: 1.4rem .8rem; }
  .polaroid { padding: 7px 7px 0; }
  .polaroid img { height: 105px; max-width: 148px; }
  .polaroid span { max-width: 148px; font-size: .95rem; }
  .trust__list li { font-size: 1.1rem; }
}
