/* ============================================================
   difference.css — section "Notre différence" : une fiche de
   contrôle qui refuse (ou accepte) un véhicule sous vos yeux.
   À charger après style.css.
   ============================================================ */
.ctrl-section { background: var(--black); color: #fff; padding: 110px 0; overflow: hidden; }
.ctrl-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }

/* ---- Texte ---- */
.ctrl-texte h2 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; }
.ctrl-texte h2 em { font-style: italic; color: var(--red); font-weight: 700; }
.ctrl-lead { margin-top: 22px; font-size: 17px; line-height: 1.65; color: #b7b7bb; max-width: 480px; }
.ctrl-punch {
  margin: 28px 0 32px; padding-left: 18px; border-left: 3px solid var(--red); max-width: 460px;
  font-family: var(--font-serif); font-size: 21px; line-height: 1.4; color: #fff;
}

/* ---- La fiche ---- */
.ctrl-scene { position: relative; }
.ctrl-fiche {
  position: relative; background: #fffdf8; color: var(--ink); border-radius: 4px; padding: 0 28px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(1deg); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.ctrl-fiche:hover { transform: rotate(0) translateY(-4px); }
.ctrl-fiche::before { /* pince du porte-bloc */
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 22px; margin-left: -55px;
  background: linear-gradient(#5b5b62, #3a3a40); border-radius: 5px 5px 3px 3px; box-shadow: 0 3px 6px rgba(0,0,0,.4);
}

.ctrl-entete {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 28px 0 16px; border-bottom: 2px solid var(--ink);
}
.ctrl-entete strong { display: block; font-family: var(--font-serif); font-size: 21px; }
.ctrl-entete span { font-size: 12.5px; color: var(--gray); }

.ctrl-onglets { display: inline-flex; background: #efebe0; border-radius: 30px; padding: 3px; }
.ctrl-onglets button {
  border: 0; background: none; cursor: pointer; padding: 7px 13px; border-radius: 30px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gray);
  transition: background .25s, color .25s;
}
.ctrl-onglets button.actif { background: var(--ink); color: #fff; }

/* Points de contrôle */
.ctrl-points { list-style: none; margin: 8px 0 0; padding: 0; }
.ctrl-points li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #ece7da; font-size: 14.5px; transition: background .3s, opacity .3s;
}
.ctrl-points i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfc8b6; position: relative; transition: all .25s; }
.ctrl-points em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.ctrl-points li.ok i { background: #1f7a4a; border-color: #1f7a4a; }
.ctrl-points li.ok i::after {
  content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ctrl-points li.ok em { color: #1f7a4a; }

.ctrl-points li.ko { background: #fff0f0; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.ctrl-points li.ko i { background: var(--red); border-color: var(--red); animation: ctrlSecousse .4s ease; }
.ctrl-points li.ko i::before, .ctrl-points li.ko i::after {
  content: ""; position: absolute; left: 8.5px; top: 4px; width: 2px; height: 10px; background: #fff; border-radius: 1px;
}
.ctrl-points li.ko i::before { transform: rotate(45deg); }
.ctrl-points li.ko i::after { transform: rotate(-45deg); }
.ctrl-points li.ko span { font-weight: 700; color: var(--red); }
.ctrl-points li.ko em { color: var(--red); }
@keyframes ctrlSecousse { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }

.ctrl-points li.ignore { opacity: .38; }
.ctrl-points li.ignore span { text-decoration: line-through; }
.ctrl-points li.ignore em { color: var(--gray); }

.ctrl-note {
  margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 13.5px; line-height: 1.5; color: #1f7a4a;
  transition: max-height .4s ease, opacity .4s ease, margin .4s ease;
}
.ctrl-note.visible { max-height: 80px; opacity: 1; margin-top: 14px; }
.ctrl-note { padding-right: 128px; }
.ctrl-note.alerte { color: var(--red); font-weight: 600; }

.ctrl-verdict {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed #cfc8b6; padding-right: 128px;
}
.ctrl-verdict span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.ctrl-verdict strong { font-size: 14px; }
.est-refuse .ctrl-verdict strong { color: var(--red); }
.est-valide .ctrl-verdict strong { color: #1f7a4a; }

/* Tampon */
.ctrl-tampon {
  position: absolute; right: 16px; bottom: 14px; width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--red); box-shadow: inset 0 0 0 5px #fffdf8, inset 0 0 0 7px var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--red); text-transform: uppercase; mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-16deg) scale(1.8); pointer-events: none;
}
.ctrl-tampon span { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.ctrl-tampon strong { font-family: var(--font-serif); font-size: 19px; line-height: 1.1; }
.est-valide .ctrl-tampon { color: #1f7a4a; border-color: #1f7a4a; box-shadow: inset 0 0 0 5px #fffdf8, inset 0 0 0 7px #1f7a4a; }
.est-refuse .ctrl-tampon, .est-valide .ctrl-tampon { animation: ctrlTamponner .45s .15s cubic-bezier(.5, 0, .75, 1) forwards; }
@keyframes ctrlTamponner {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.8); }
  70% { opacity: .95; transform: rotate(-16deg) scale(.94); }
  100% { opacity: .9; transform: rotate(-16deg) scale(1); }
}

.ctrl-legende { margin-top: 22px; font-size: 12.5px; color: var(--gray-light); text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .ctrl-grid { grid-template-columns: 1fr; gap: 50px; }
  .ctrl-texte { order: -1; }
  .ctrl-scene { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .ctrl-section { padding: 80px 0; }
  .ctrl-fiche { padding: 0 18px 20px; transform: none; }
  .ctrl-points li { font-size: 13.5px; }
  .ctrl-tampon { width: 88px; height: 88px; right: 10px; bottom: 12px; }
  .ctrl-tampon strong { font-size: 16px; }
  .ctrl-verdict, .ctrl-note { padding-right: 92px; }
  .ctrl-verdict { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctrl-fiche, .ctrl-fiche:hover { transform: none; }
  .est-refuse .ctrl-tampon, .est-valide .ctrl-tampon { animation: none; opacity: .9; transform: rotate(-16deg); }
}
