/* Page « Refonte de site internet » : complète /assets/site.css, uniquement sur cette page (tout est sous .rf).
   En-tête pétrole avec le comparateur avant / après de vrais sites, chiffres, plan de redirection, sept signes. */

/* ── En-tête ─────────────────────────────────────────── */
.rf-hero{position:relative;overflow:hidden;padding:clamp(28px,3.5vw,48px) 0 0;background:var(--petrole);color:#fff;isolation:isolate}
.rf-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px) 0 0/100% 96px,
  linear-gradient(180deg,#183945 0%,#10303C 100%)}
.rf-hero .ariane,.rf-hero .ariane a{color:rgba(255,255,255,.72)}
.rf-hero .ariane [aria-current],.rf-hero .ariane a:hover{color:#fff}
.rf-hero .ariane li+li::before{color:rgba(255,255,255,.4)}
.rf-hero .tag{color:#fff}
.rf-hero-grille{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,80px);align-items:end;margin-top:clamp(20px,3vw,36px)}
.rf-hero h1{font:300 clamp(2.6rem,1.2rem + 4.8vw,5.8rem)/.98 var(--titres);letter-spacing:-.055em;color:#fff;max-width:13ch}
.rf-hero h1 em{font-style:normal;color:var(--ciel)}
.rf-hero .promesse{color:rgba(255,255,255,.86);margin-top:0}
.rf-hero .ctas{display:flex;flex-wrap:wrap;gap:1rem 1.75rem;align-items:center;margin-top:1.75rem}
.rf-hero .lien{color:#fff}
.rf-hero :focus-visible{outline-color:#fff}

/* ── Comparateur avant / après ───────────────────────── */
.rf-comparateur{position:relative;z-index:2;margin-top:clamp(28px,3.5vw,52px)}
.rf-onglets{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.rf-onglets button{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:0 1.05rem;border:1px solid rgba(255,255,255,.34);border-radius:99px;background:transparent;color:#fff;font:600 .9rem/1 var(--ui);cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.rf-onglets button small{font:500 .75rem/1 var(--ui);color:rgba(255,255,255,.62)}
.rf-onglets button:hover{border-color:#fff}
.rf-onglets button[aria-pressed="true"]{background:#fff;border-color:#fff;color:var(--nuit)}
.rf-onglets button[aria-pressed="true"] small{color:var(--gris)}
.rf-onglets button:focus-visible{outline:3px solid var(--ciel);outline-offset:3px}
.rf-nav{margin:0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 60px 100px -50px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.1)}
.rf-barre{display:flex;align-items:center;gap:14px;height:40px;padding:0 14px;background:#EEF2F7;border-bottom:1px solid #DDE4EC}
.rf-barre i{display:flex;gap:7px}
.rf-barre i::before,.rf-barre i::after,.rf-barre i span{content:"";width:10px;height:10px;border-radius:50%;background:#CDD5DF}
.rf-url{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:24px;max-width:420px;margin:0 auto;padding:0 12px;border-radius:7px;background:#fff;font:500 .78rem/1 var(--ui);color:#4A4F57;white-space:nowrap;overflow:hidden}
.rf-url svg{flex:none;width:11px;height:11px;color:#6B6C70}
.rf-barre::after{content:"";width:44px;flex:none}
.rf-ecran{position:relative;aspect-ratio:16/10;background:#DDE4EC;--pos:50%;touch-action:pan-y}
.rf-paire{position:absolute;inset:0;display:none}
.rf-paire.actif{display:block}
.rf-paire picture,.rf-paire img{position:absolute;inset:0;width:100%;height:100%}
.rf-paire img{object-fit:cover;object-position:top center}
.rf-paire .rf-avant{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.rf-poignee{position:absolute;z-index:2;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#fff;pointer-events:none;box-shadow:0 0 0 1px rgba(8,34,93,.25)}
.rf-poignee::after{content:"";position:absolute;top:50%;left:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308225D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/24px no-repeat;box-shadow:0 10px 24px -8px rgba(0,0,0,.45),0 0 0 4px #fff}
.rf-ecran:has(input:focus-visible) .rf-poignee::after{outline:3px solid var(--nuit);outline-offset:4px}
.rf-etiq{position:absolute;z-index:2;top:16px;display:flex;flex-direction:column;gap:.2rem;padding:.55rem .8rem;border-radius:8px;background:rgba(8,34,93,.86);color:#fff;font:600 .75rem/1 var(--ui);letter-spacing:.14em;text-transform:uppercase;pointer-events:none}
.rf-etiq small{font:500 .72rem/1.2 var(--ui);letter-spacing:0;text-transform:none;color:rgba(255,255,255,.75)}
.rf-etiq.g{left:16px}
.rf-etiq.d{right:16px;align-items:flex-end;background:var(--ciel);color:var(--nuit)}
.rf-etiq.d small{color:rgba(8,34,93,.75)}
.rf-ecran input{position:absolute;inset:0;z-index:3;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.rf-legende{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.5rem;margin-top:1rem;font:500 .875rem/1.45 var(--ui);color:var(--gris)}
.rf-legende a{font-weight:600}
.rf-fond-bas{position:absolute;left:0;right:0;bottom:0;height:clamp(90px,14vw,230px);background:var(--blanc);z-index:1}
.rf-hero>.wrap{position:relative;z-index:2}
.rf-hero .rf-comparateur-wrap{padding-bottom:clamp(36px,5vw,64px)}

/* ── Chiffres ────────────────────────────────────────── */
.rf-chiffres{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ligne)}
.rf-chiffres li{padding:clamp(24px,3vw,36px) clamp(12px,2vw,28px) 0 0}
.rf-chiffres li+li{padding-left:clamp(12px,2vw,28px);border-left:1px solid var(--ligne)}
.rf-chiffres strong{display:block;font:300 clamp(3rem,2rem + 3.2vw,5.25rem)/.9 var(--titres);letter-spacing:-.06em;color:var(--noir)}
.rf-chiffres strong sup{font-size:.4em;vertical-align:top;letter-spacing:0;margin-left:.08em}
.rf-chiffres span{display:block;margin-top:1rem;font-size:.97rem;line-height:1.5;max-width:28ch}

/* ── Plan de redirection ─────────────────────────────── */
.rf-garder{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,6vw,96px);align-items:center}
.rf-console{border-radius:14px;background:var(--nuit);color:#fff;overflow:hidden;box-shadow:0 40px 80px -48px rgba(8,34,93,.7)}
.rf-console-tete{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.12);font:600 .75rem/1.3 var(--ui);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.rf-console-tete span:first-child{color:#fff;letter-spacing:.04em;text-transform:none;font-size:.85rem}
.rf-console ol{list-style:none;margin:0;padding:.5rem 0}
.rf-console li{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.9rem;padding:.7rem 1.25rem;font:500 .84rem/1.35 ui-monospace,"SF Mono",Menlo,monospace}
.rf-console li+li{border-top:1px solid rgba(255,255,255,.06)}
.rf-console code{font:inherit;color:rgba(255,255,255,.62);overflow-wrap:anywhere}
.rf-console code+span+code{color:#fff}
.rf-301{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .55rem;border-radius:6px;background:rgba(68,177,254,.16);color:var(--ciel);font:700 .72rem/1 var(--ui);letter-spacing:.06em;white-space:nowrap}
.rf-301::after{content:"";width:14px;height:10px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.rf-console-pied{display:flex;align-items:baseline;gap:.75rem;padding:1.1rem 1.25rem;border-top:1px solid rgba(255,255,255,.12);font:500 .95rem/1.4 var(--ui);color:rgba(255,255,255,.8)}
.rf-console-pied b{font:300 2.4rem/1 var(--titres);letter-spacing:-.04em;color:#fff}
/* apparition ligne à ligne, une seule fois (script : classe .vu) */
.js .rf-console li{opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease}
.js .rf-console.vu li{opacity:1;transform:none}
.js .rf-console.vu li:nth-child(2){transition-delay:.12s}.js .rf-console.vu li:nth-child(3){transition-delay:.24s}
.js .rf-console.vu li:nth-child(4){transition-delay:.36s}.js .rf-console.vu li:nth-child(5){transition-delay:.48s}
.js .rf-console.vu li:nth-child(6){transition-delay:.6s}

/* ── Sept signes ─────────────────────────────────────── */
.rf-signes{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.rf-signes li{display:flex;flex-direction:column;gap:.7rem;padding:clamp(20px,2.2vw,28px);border:1px solid var(--ligne);border-radius:var(--r);background:#fff}
.rf-signes li:first-child{grid-column:span 2;background:var(--ciel-pale);border-color:transparent}
.rf-signes .rf-ico{display:flex;justify-content:space-between;align-items:center}
.rf-signes svg{width:40px;height:40px;padding:9px;border-radius:10px;background:var(--ciel-pale);color:var(--nuit)}
.rf-signes li:first-child svg{background:#fff}
.rf-signes .rf-ico span{font:600 .8125rem/1 var(--ui);letter-spacing:.1em;color:var(--gris)}
.rf-signes b{font:500 1.15rem/1.25 var(--titres);letter-spacing:-.015em;color:var(--noir)}
.rf-signes p{font-size:.95rem;line-height:1.55}
.rf-signes-fin{margin-top:clamp(24px,3vw,36px);font-size:1.05rem}

.wrap>.liens-texte{list-style:none;display:flex;flex-wrap:wrap;gap:.6rem 1.75rem}

/* ── Écrans moyens et petits ─────────────────────────── */
@media (max-width:980px){
  .rf-fond-bas{display:none}
  .rf-legende{color:rgba(255,255,255,.72)}
  .rf-legende a{color:#fff}
  .rf-hero-grille,.rf-garder{grid-template-columns:1fr}
  .rf-signes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rf-chiffres{grid-template-columns:1fr}
  .rf-chiffres li,.rf-chiffres li+li{padding-left:0;border-left:0}
  .rf-chiffres li+li{border-top:1px solid var(--ligne);margin-top:1.5rem}
}
@media (max-width:640px){
  .rf-ecran{aspect-ratio:4/3.4}
  .rf-barre{height:32px;gap:8px;padding:0 10px}
  .rf-barre i::before,.rf-barre i::after,.rf-barre i span{width:7px;height:7px}
  .rf-url{height:20px;font-size:.7rem}
  .rf-nav{border-radius:10px}
  .rf-etiq{top:10px;padding:.4rem .55rem}
  .rf-etiq.g{left:10px}.rf-etiq.d{right:10px}
  .rf-signes{grid-template-columns:1fr}
  .rf-signes li:first-child{grid-column:auto}
  .rf-console li{grid-template-columns:1fr;gap:.35rem}
  .rf-301{justify-self:start}
}
@media (prefers-reduced-motion:reduce){
  .rf-onglets button{transition:none}
  .js .rf-console li{opacity:1;transform:none;transition:none}
}
