/* fonctionnement.css — gabarit page Fonctionnement FR
   common.css : tokens, reset, nav, footer, STT — non dupliqués. */

body:has(.timeline){
  --max:1100px;
}

/* page-hero / section / CTA : candidats partage (même famille faq/tarifs/fonctionnalités) */
body:has(.timeline) .page-hero{
  background:var(--band);padding:64px 32px 56px;color:#fff;text-align:center;
  position:relative;overflow:visible;
}
body:has(.timeline) .page-hero::before{display:none}
body:has(.timeline) .page-hero .ey{
  display:inline-block;font-size:.75rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;background:rgba(13,17,23,.28);color:rgba(255,255,255,.95);
  padding:4px 14px;border-radius:100px;margin-bottom:18px;
}
body:has(.timeline) .page-hero h1{
  font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;letter-spacing:-.03em;
  line-height:1.15;margin-bottom:14px;
}
body:has(.timeline) .page-hero h1 em{
  font-style:italic;font-family:'DM Serif Display',Georgia,serif;font-weight:400;color:#9FD4C8;
}
body:has(.timeline) .page-hero p{
  font-size:1rem;color:rgba(255,255,255,.95);max-width:540px;margin:0 auto;line-height:1.65;
}
body:has(.timeline) .section{padding:80px 32px}
body:has(.timeline) .section--alt{background:var(--bg2)}
body:has(.timeline) .inner{max-width:var(--max);margin:0 auto}
body:has(.timeline) .eyebrow{
  font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--green-text);margin-bottom:12px;
}
body:has(.timeline) .sec-title{
  font-size:clamp(1.5rem,2.8vw,2.1rem);font-weight:800;letter-spacing:-.03em;
  line-height:1.2;margin-bottom:16px;
}
body:has(.timeline) .sec-title em{
  font-style:italic;font-family:'DM Serif Display',Georgia,serif;font-weight:400;color:var(--green-text);
}
body:has(.timeline) .sec-sub{
  font-size:.97rem;color:var(--muted);max-width:560px;line-height:1.7;margin-bottom:48px;
}

/* Timeline — spécifique fonctionnement */
body:has(.timeline) .timeline{display:flex;flex-direction:column;gap:0;position:relative}
body:has(.timeline) .timeline::before{
  content:'';position:absolute;left:28px;top:0;bottom:0;width:2px;background:var(--border);
}
body:has(.timeline) .tl-item{
  display:grid;grid-template-columns:60px 1fr;gap:24px;padding-bottom:48px;position:relative;
}
body:has(.timeline) .tl-item:last-child{padding-bottom:0}
body:has(.timeline) .tl-num{
  width:56px;height:56px;border-radius:50%;background:var(--green);color:#fff;
  font-size:1.1rem;font-weight:800;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;position:relative;z-index:1;box-shadow:0 0 0 4px var(--bg);
}
body:has(.timeline) .section--alt .tl-num{box-shadow:0 0 0 4px var(--bg2)}
body:has(.timeline) .tl-content{padding-top:12px}
body:has(.timeline) .tl-title{font-size:1.1rem;font-weight:700;margin-bottom:8px;color:var(--fg)}
body:has(.timeline) .tl-desc{font-size:.92rem;color:var(--muted);line-height:1.7;margin-bottom:12px}
body:has(.timeline) .tl-detail{
  background:var(--card);border:1px solid var(--border);border-radius:var(--r);
  padding:16px 20px;font-size:.88rem;color:var(--fg2);line-height:1.65;
}
body:has(.timeline) .tl-detail strong{color:var(--green-text);font-weight:600}

/* Architecture — spécifique */
body:has(.timeline) .arch-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
body:has(.timeline) .arch-visual{
  background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:28px;font-size:.85rem;
}
body:has(.timeline) .arch-visual-label{
  font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted);margin-bottom:14px;
}
body:has(.timeline) .arch-row{
  display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:9px;
  margin-bottom:6px;font-weight:500;
}
body:has(.timeline) .arch-row:last-child{margin-bottom:0}
body:has(.timeline) .arch-row.local{background:var(--green-bg);color:var(--green-d)}
body:has(.timeline) .arch-row.cloud{background:#FEF2F2;color:#7f1d1d}
body:has(.timeline) .arch-row.never{background:#FEF2F2;color:#7f1d1d}
body:has(.timeline) .arch-row.arrow{
  justify-content:center;color:var(--muted);font-size:1.2rem;background:transparent;padding:4px;
}
body:has(.timeline) .arch-icon{font-size:1.1rem;flex-shrink:0}
body:has(.timeline) .arch-text{flex:1;line-height:1.4}
body:has(.timeline) .arch-badge{
  font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  padding:2px 8px;border-radius:4px;flex-shrink:0;
}
body:has(.timeline) .badge-ok{background:#E1F5EE;color:#085041}
body:has(.timeline) .badge-no{background:#FCEBEB;color:#791F1F}
body:has(.timeline) .arch-legend{margin-top:16px;display:flex;gap:14px;flex-wrap:wrap}
body:has(.timeline) .arch-legend span{
  font-size:.75rem;color:var(--muted);display:flex;align-items:center;gap:5px;
}
body:has(.timeline) .arch-legend span::before{
  content:'';width:10px;height:10px;border-radius:3px;flex-shrink:0;
}
body:has(.timeline) .arch-legend .ok::before{background:#4A7C6F}
body:has(.timeline) .arch-legend .no::before{background:#dc2626}
body:has(.timeline) .arch-aside-title{
  font-size:1.1rem;font-weight:700;margin-bottom:16px;color:var(--fg);
}
body:has(.timeline) .arch-aside-p{
  font-size:.92rem;color:var(--muted);line-height:1.75;margin-bottom:14px;
}
body:has(.timeline) .arch-aside-p:last-child{margin-bottom:0}

/* Cartes sources — spécifique */
body:has(.timeline) .features-detail{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
body:has(.timeline) .fd-card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:24px;
}
body:has(.timeline) .fd-icon{font-size:1.4rem;margin-bottom:10px}
body:has(.timeline) .fd-title{font-size:.95rem;font-weight:700;margin-bottom:6px;color:var(--fg)}
body:has(.timeline) .fd-desc{font-size:.85rem;color:var(--muted);line-height:1.65}

body:has(.timeline) .cta-section{
  background:var(--band);padding:80px 32px;text-align:center;color:#fff;
}
body:has(.timeline) .cta-section h2{
  font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;letter-spacing:-.03em;margin-bottom:12px;
}
body:has(.timeline) .cta-section h2 em{
  font-style:italic;font-family:'DM Serif Display',Georgia,serif;font-weight:400;color:#9FD4C8;
}
body:has(.timeline) .cta-section p{
  font-size:1rem;color:rgba(255,255,255,.95);margin-bottom:28px;max-width:480px;
  margin-left:auto;margin-right:auto;line-height:1.65;
}
body:has(.timeline) .btn-w{
  background:#fff;color:#3A6259;border-radius:10px;padding:13px 28px;font-size:.95rem;
  font-weight:700;text-decoration:none;display:inline-block;
}
body:has(.timeline) .btn-w:hover{background:#e8f4f1;text-decoration:none}

@media(max-width:900px){
  body:has(.timeline) .arch-grid{grid-template-columns:1fr}
  body:has(.timeline) .features-detail{grid-template-columns:1fr}
}
@media(max-width:600px){
  body:has(.timeline) .section{padding:56px 20px}
  body:has(.timeline) .page-hero{padding:48px 20px 40px}
  body:has(.timeline) .cta-section{padding:56px 20px}
  body:has(.timeline) .timeline::before{left:24px}
  body:has(.timeline) .tl-item{grid-template-columns:52px 1fr}
  body:has(.timeline) .tl-num{width:48px;height:48px}
}
