/* Guide « Avantages et inconvénients » (pour-contre-neuf.html, pourcontre.js). Fonds : sections.css ; parcours : permis.css ; en-tête : permis.css + guide.css. */

/* apparition au défilement (pourcontre.js pose .vu) */
[data-pc-apparait] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--courbe), transform .7s var(--courbe); transition-delay: calc(var(--i, 0) * 90ms); }
[data-pc-apparait].vu > * { opacity: 1; transform: none; }
.pc-secu-rang[data-pc-apparait] { opacity: 0; transform: scale(.92); transition: opacity .8s var(--courbe), transform .8s var(--courbe); }
.pc-secu-rang[data-pc-apparait].vu { opacity: 1; transform: none; }
.pc-secu-rang[data-pc-apparait] > * { opacity: 1; transform: none; }

/* ---------- sécurité ---------- */
.pc-secu { padding: 80px 0; }
.pc-secu-grille { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; }
.pc-secu-rang { position: relative; padding: 34px 34px 30px; border-radius: 30px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgb(40 163 230 / .55), transparent 55%), radial-gradient(circle at 100% 100%, rgb(21 151 83 / .5), transparent 50%), #0f2a3d;
  box-shadow: 0 30px 60px -30px rgb(15 42 61 / .8); }
.pc-secu-rang::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgb(255 255 255 / .14); pointer-events: none; }
.pc-secu-sur { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgb(255 255 255 / .1); }
.pc-secu-sur svg { width: 16px; height: 16px; fill: none; stroke: #fde68a; stroke-width: 2; }
.pc-secu-n { margin: 6px 0 0; font-size: clamp(120px, 14vw, 190px); font-weight: 800; line-height: .95; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 30%, #9fd8f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-secu-n sup { -webkit-text-fill-color: #9fd8f7; color: #9fd8f7; font-size: .32em; vertical-align: top; position: relative; top: .3em; margin-left: 4px; letter-spacing: 0; }
.pc-secu-l { margin: 6px 0 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.pc-secu-afr { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 0; padding: 12px 18px; max-width: 290px; border-radius: 18px; text-align: left;
  color: #0f2a3d; background: linear-gradient(135deg, #fde68a, #ffd23f); box-shadow: 0 12px 24px -14px rgb(253 210 63 / .9); animation: pcPouls 3.2s ease-in-out infinite; }
.pc-secu-afr svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2; background: #159753; }
.pc-secu-afr b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.pc-secu-afr sup { font-size: .55em; }
.pc-secu-afr small { font-size: 13px; font-weight: 700; opacity: .75; }
@keyframes pcPouls { 50% { transform: scale(1.04); } }

.pc-secu-texte { padding: 30px 32px; border-radius: 26px; background: rgb(255 255 255 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 24px 44px -30px rgb(15 42 61 / .55); }
.pc-classe { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.pc-classe li { display: grid; grid-template-columns: 46px 150px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; font-size: 14.5px; color: var(--txt); }
.pc-classe-r { font-weight: 800; color: var(--mute); text-align: right; }
.pc-classe-r sup { font-size: .6em; }
.pc-classe-p { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-classe-b { height: 10px; border-radius: 99px; background: rgb(15 42 61 / .07); overflow: hidden; }
.pc-classe-b i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9fd0ec, var(--b2)); transition: width 1.2s var(--courbe); transition-delay: calc(var(--i) * 110ms); }
.vu .pc-classe-b i { width: var(--v); }
.pc-classe li.nous { padding: 10px; color: #fff; background: linear-gradient(135deg, var(--b2), var(--b1)); box-shadow: 0 10px 22px -12px rgb(28 125 179 / .9); transform: scale(1.03); }
.pc-classe li.nous .pc-classe-r, .pc-classe li.nous .pc-classe-p { color: #fff; font-size: 16px; }
.pc-classe li.nous .pc-classe-b { background: rgb(255 255 255 / .25); }
.pc-classe li.nous .pc-classe-b i { background: linear-gradient(90deg, #fde68a, #fff); }
.pc-classe li.fr .pc-classe-b i { background: linear-gradient(90deg, #f3b1b1, var(--r)); }
.pc-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--txt); background: #f4f8fc; }
.pc-note svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--b1); stroke-width: 2; }
.pc-source { margin: 12px 0 0; font-size: 12.5px; color: var(--mute); }

/* ---------- avantages ---------- */
.pc-avs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.pc-av { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 22px 40px -30px rgb(15 42 61 / .6); }
.pc-av-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pc-av-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--courbe); }
.pc-av:hover .pc-av-photo img { transform: scale(1.08); }
.pc-av-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgb(15 42 61 / .72)); }
.pc-av-v { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .35); }
.pc-av-v i { display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: rgb(255 255 255 / .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .35); }
.pc-av-v svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; }
.pc-av-corps { padding: 16px 18px 20px; }
.pc-av h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.pc-av p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--txt); }

/* ---------- inconvénients ---------- */
.pc-inconv { padding: 76px 0 70px; }
.pc-tab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 30px; }
.pc-liste { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-liste button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px; border-radius: 18px; cursor: pointer; color: #fff; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); transition: background .3s, border-color .3s, transform .3s var(--courbe); }
.pc-liste button:hover { background: rgb(255 255 255 / .1); transform: translateX(4px); }
.pc-liste button:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
.pc-liste button.on { background: linear-gradient(135deg, rgb(40 163 230 / .4), rgb(21 151 83 / .3)); border-color: rgb(255 255 255 / .3); }
.pc-l-ic { display: grid; place-items: center; width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: rgb(255 255 255 / .1); transition: background .3s; }
.pc-l-ic svg { width: 100%; height: 100%; fill: none; stroke: #9fd8f7; stroke-width: 2; }
.pc-liste button.on .pc-l-ic { background: #fff; }
.pc-liste button.on .pc-l-ic svg { stroke: var(--b1); }
.pc-l-t { font-size: 16px; font-weight: 700; }
.pc-l-fl svg { width: 18px; height: 18px; fill: none; stroke: rgb(255 255 255 / .5); stroke-width: 2; transition: transform .3s, stroke .3s; }
.pc-liste button.on .pc-l-fl svg { stroke: #fde68a; transform: translateX(3px); }

.pc-rep { display: none; }
.pc-panneau { position: sticky; top: 110px; padding: 28px 30px; border-radius: 26px; color: var(--txt); background: #fff; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.pc-panneau.change { animation: pcEntre .45s var(--courbe); }
@keyframes pcEntre { from { opacity: 0; transform: translateY(12px); } }
.pc-rep-sur { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--b1); background: var(--lb); }
.pc-rep-sur svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pc-panneau h3, .pc-rep h3 { margin: 14px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pc-rep-qui { margin: 16px 0 0 !important; font-size: 12.5px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--g) !important; }
.pc-panneau p, .pc-rep p { margin: 6px 0 0; font-size: 16px; line-height: 1.7; }
.pc-rep-lien { margin-top: 18px !important; }
.pc-panneau .bouton-verre { color: var(--b1); background: var(--lb); }


/* ---------- pour qui ---------- */
.pc-profils { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.pc-profil { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none;
  box-shadow: 0 24px 44px -28px rgb(15 42 61 / .7); isolation: isolate; }
.pc-profil img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--courbe); }
.pc-profil::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(15 42 61 / .88)); }
.pc-profil:hover img { transform: scale(1.08); }
.pc-profil-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--g); }
.pc-profil.sv .pc-profil-badge { color: #0f2a3d; background: #fde68a; }
.pc-profil-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.pc-profil-corps { display: grid; gap: 6px; padding: 18px; }
.pc-profil b { font-size: 19px; font-weight: 800; }
.pc-profil small { font-size: 14px; line-height: 1.45; color: rgb(255 255 255 / .88); }
.pc-profil-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 800; color: #fde68a; }
.pc-profil-lien svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .3s; }
.pc-profil:hover .pc-profil-lien svg { transform: translateX(4px); }
.pc-prep-act { margin: 30px 0 0; text-align: center; }

@media (max-width: 1100px) {
  .pc-avs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-profils { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pc-secu-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pc-secu-rang { max-width: 460px; margin: 0 auto; width: 100%; }
  .pc-tab { grid-template-columns: minmax(0, 1fr); }
  .pc-panneau { display: none; }
  .pc-rep:not([hidden]) { display: block; margin: 6px 0 4px; padding: 20px; border-radius: 18px; color: var(--txt); background: #fff; animation: pcEntre .4s var(--courbe); }
  .pc-rep .bouton-verre { color: var(--b1); background: var(--lb); }
}
@media (max-width: 600px) {
  .pc-secu { padding: 50px 0; }
  .pc-secu-rang { padding: 26px 20px 24px; }
  .pc-secu-texte { padding: 22px 16px; }
  .pc-classe li { grid-template-columns: 38px 110px minmax(0, 1fr); gap: 8px; font-size: 13.5px; padding: 6px 4px; }
  .pc-avs { grid-template-columns: minmax(0, 1fr); }
  .pc-av-photo { aspect-ratio: 16 / 10; }
  .pc-liste button { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 12px; padding: 10px 12px 10px 10px; }
  .pc-l-ic { width: 38px; height: 38px; padding: 9px; }
  .pc-l-t { font-size: 15px; }
  .pc-rep h3 { font-size: 21px; }
  .pc-profils { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 26px -16px 0; padding: 0 16px 10px; scrollbar-width: none; }
  .pc-profils::-webkit-scrollbar { display: none; }
  .pc-profil { flex: 0 0 78%; min-height: 340px; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  [data-pc-apparait] > *, .pc-secu-rang[data-pc-apparait] { opacity: 1; transform: none; transition: none; }
  .pc-secu-afr { animation: none; }
  .pc-classe-b i { transition: none; }
}
