/* Écran d'arrivée de l'accueil (inc/intro.php, assets/js/hero-intro.js). Chargé sur l'accueil seulement.
   Écran noir : les deux crochets du logo se tracent, le nom apparaît entre eux, puis l'écran s'ouvre en deux
   comme une paire de portes, chaque crochet partant avec la sienne. Derrière, l'accueil habituel :
   la photo recule doucement, le slogan monte mot par mot, la barre du haut arrive.
   Joue une fois par session, jamais si le visiteur a réduit les animations : sans la classe « intro-pending »
   sur <html>, rien de cette feuille ne s'applique. */

/* Raleway (SIL Open Font License), hébergée dans le thème : uniquement pour le nom de cet écran.
   Un seul fichier variable couvre le maigre (300) et le gras (700). */
@font-face{font-family:'Raleway';font-style:normal;font-weight:300 700;font-display:block;src:url(../fonts/raleway-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--intro-z:2000;--intro-out:cubic-bezier(.23,1,.32,1);--intro-in-out:cubic-bezier(.77,0,.175,1)}

.intro-veil{display:none}
html.intro-pending{overflow:hidden}
html.intro-pending .intro-veil{display:block;position:fixed;inset:0;z-index:var(--intro-z);overflow:hidden}
.intro-veil .iv-door{position:absolute;top:0;bottom:0;width:50.5%;background:#0c0c0b;transition:transform 1100ms var(--intro-in-out)}
.intro-veil .iv-l{left:0}
.intro-veil .iv-r{right:0}

/* Le nom reprend le logo : « CUIS'IN » en gras, « concept » en maigre, même largeur, crochets épais. */
.intro-logo{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:grid;justify-items:center;padding:.2em .52em .22em;color:#f8f8f6;font-family:'Raleway','Manrope',system-ui,sans-serif;font-size:clamp(46px,8.6vw,136px);line-height:.95;white-space:nowrap}
.intro-logo span{opacity:0;transform:translateY(.14em);transition:opacity 600ms var(--intro-out) 350ms,transform 700ms var(--intro-out) 350ms}
.intro-logo .il-a{font-weight:700;letter-spacing:.012em}
.intro-logo .il-b{font-weight:300;font-size:.985em;transition-delay:430ms}
.intro-logo i{position:absolute;top:0;bottom:0;width:.24em;border:solid currentColor;border-width:.06em 0 .06em .06em;clip-path:inset(50% 0);transition:clip-path 700ms var(--intro-out),transform 1100ms var(--intro-in-out)}
.intro-logo .il-l{left:0}
.intro-logo .il-r{right:0;border-width:.06em .06em .06em 0}

/* 1. Les crochets se tracent, le nom apparaît. */
html.intro-draw .intro-logo i{clip-path:inset(0)}
html.intro-draw .intro-logo span{opacity:1;transform:none}

/* 2. Les portes s'ouvrent : le nom s'efface vite, chaque crochet part avec sa porte. */
html.intro-reveal .intro-veil{pointer-events:none}
html.intro-reveal .intro-veil .iv-l{transform:translateX(-100%)}
html.intro-reveal .intro-veil .iv-r{transform:translateX(100%)}
html.intro-reveal .intro-logo .il-l{transform:translateX(-50vw)}
html.intro-reveal .intro-logo .il-r{transform:translateX(50vw)}
html.intro-reveal .intro-logo span{opacity:0;transition:opacity 220ms ease-out}

/* 3. L'accueil derrière les portes. */
html.intro-pending .home-page .site-header{opacity:0}
html.intro-pending .home-page .hero-title-brand>*,
html.intro-pending .home-page .hero .hero-description,
html.intro-pending .home-page .hero .hero-content>.pill,
html.intro-pending .home-page .hero .hero-bottom{opacity:0}
html.intro-reveal .home-page .hero .hero-image{animation:intro-photo 2400ms var(--intro-out) both!important}
html.intro-reveal .home-page .hero-title-brand>*{animation:intro-word 900ms var(--intro-out) both}
html.intro-reveal .home-page .hero-title-brand .ht-a{animation-delay:520ms}
html.intro-reveal .home-page .hero-title-brand .ht-b{animation-delay:590ms}
html.intro-reveal .home-page .hero-title-brand .ht-c{animation-delay:660ms}
html.intro-reveal .home-page .hero-title-brand .ht-d{animation-delay:730ms}
html.intro-reveal .home-page .hero .hero-description{opacity:1;transition:opacity 700ms ease-out 1000ms}
html.intro-reveal .home-page .hero .hero-content>.pill{opacity:1;transition:opacity 700ms ease-out 1120ms}
html.intro-reveal .home-page .hero .hero-bottom{opacity:1;transition:opacity 700ms ease-out 1240ms}
html.intro-reveal .home-page .site-header{opacity:1;transition:opacity 700ms ease-out 1100ms}
@keyframes intro-photo{from{transform:scale(1.1)}to{transform:none}}
@keyframes intro-word{from{opacity:0;transform:translateY(.22em)}to{opacity:1;transform:none}}
