/* ==== Refonte 2026 : style Art Résine Déco appliqué à ATF Formation ====
   Couche ajoutée après styles.css : polices, fond blanc, boutons, cartes, animations. */
:root{
  --serif:"Playfair Display", Georgia, serif;
  --sans:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --white:#FFFFFF;
  --tint:#F2F7FA;
  --line:#E3E9EE;
  --ease:cubic-bezier(.2,.7,.2,1);
  --sh-1:0 1px 2px rgba(16,40,60,.06),0 4px 16px rgba(16,40,60,.06);
  --sh-2:0 14px 40px rgba(16,40,60,.16);
}
body{font-family:var(--sans);background:#fff}
h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:-.01em;line-height:1.12}
h1{font-weight:500}
h1>span:not(.rf-w),h2>span{font-style:italic}
h4,.eyebrow,.course-meta,.photo-tag{font-family:var(--sans)}
.eyebrow{display:inline-flex;align-items:center;gap:12px;color:var(--accent-dark,#1f76b2)}
.eyebrow::before{content:"";width:32px;height:1px;background:currentColor;flex-shrink:0}

/* Boutons */
.button,.button-secondary,a.button{border-radius:999px!important;transition:transform .35s var(--ease),box-shadow .3s var(--ease),background .25s,color .25s,border-color .25s!important}
.button:not(.button-secondary){box-shadow:0 8px 24px rgba(31,118,178,.25)}
.button:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(31,118,178,.32)}
.button-secondary:hover{transform:translateY(-2px)}

/* En-tête */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:box-shadow .35s var(--ease)}
.site-header.is-scrolled{box-shadow:0 1px 0 var(--line),0 8px 30px rgba(16,40,60,.06)}
#main-nav a{position:relative}
#main-nav a:not(.button)::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .35s var(--ease)}
#main-nav a:not(.button):hover::after,#main-nav a[aria-current="page"]::after{transform:scaleX(1);transform-origin:left}

/* Barre de progression + retour en haut */
.rf-progress{position:fixed;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#19b3e7,#1f76b2);transform-origin:0 50%;transform:scaleX(0);z-index:60;pointer-events:none}
.rf-top{position:fixed;right:24px;bottom:24px;width:52px;height:52px;border-radius:50%;border:0;background:#1f76b2;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:var(--sh-2);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .35s,transform .35s var(--ease),background .25s;z-index:40}
.rf-top.show{opacity:1;transform:none;pointer-events:auto}
.rf-top:hover{background:#19b3e7}
.rf-top svg{width:22px;height:22px}

/* Héros : zoom lent sur la photo */
.hero-visual>img{animation:rfKen 22s var(--ease) infinite alternate;transform-origin:55% 45%}
.hero h1 .rf-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
.hero h1 .rf-w>span{display:inline-block;transform:translateY(105%);animation:rfRise .9s var(--ease) forwards;animation-delay:calc(var(--i)*70ms + 150ms)}

/* Cartes formation */
.course-card{border-radius:16px!important;border-color:var(--line);transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .5s;position:relative;isolation:isolate}
.course-card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(25,179,231,.10),transparent 45%);opacity:0;transition:opacity .4s}
.course-card:hover{transform:translateY(-6px);box-shadow:var(--sh-2);border-color:transparent}
.course-card:hover::before{opacity:1}
.course-photo img{transition:transform 1.1s var(--ease)!important}
.course-card:hover .course-photo img{transform:scale(1.07)}
.photo-tag{border-radius:999px}

/* Images et blocs arrondis */
.art-figure,.experience-image,.hero-inset{border-radius:16px;overflow:hidden}
.art-figure img,.experience-image img{transition:transform 1.1s var(--ease)}
.art-figure:hover img{transform:scale(1.05)}
.contact-band,.shop-band{position:relative;overflow:hidden}
.contact-band::after{content:"";position:absolute;width:520px;height:520px;right:-160px;top:-220px;border-radius:50%;background:radial-gradient(circle,rgba(25,179,231,.18),transparent 65%);animation:rfFloat 11s ease-in-out infinite alternate;pointer-events:none}
.contact-band-inner{position:relative;z-index:1}
details{transition:background .3s}
details summary{cursor:pointer;transition:color .25s}
details summary:hover{color:#19b3e7}

/* Apparition au défilement */
.rf-reveal{opacity:0;transform:translateY(32px);transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--d,0ms)}
.rf-reveal.rf-in{opacity:1;transform:none}

@keyframes rfKen{from{transform:scale(1.02)}to{transform:scale(1.12) translate(-1.5%,-1%)}}
@keyframes rfRise{to{transform:none}}
@keyframes rfFloat{to{transform:translate(-60px,60px) scale(1.1)}}

@media (max-width:640px){.rf-top{bottom:16px;right:16px;width:46px;height:46px}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .rf-reveal{opacity:1;transform:none}
  .hero h1 .rf-w>span{transform:none}
}
@media print{.rf-progress,.rf-top{display:none}.rf-reveal{opacity:1!important;transform:none!important}}
