/* REM Live · habillage Unigrains, « Lumière dorée » (webinaire du 26/11/2026).
   Couleurs relevées dans leurs fichiers officiels et sur unigrains.fr (18/11/2026) : marine #25346D (site #28336B),
   bleu #6274C0, pervenche #999DD0, jaune #FBB93A, orange #F29100 (site #DF6436). Police de leurs visuels : Poppins.
   Règles de leur charte : jamais de texte blanc sur le jaune ; le motif ne passe jamais sous un texte. */

.hab-unigrains {
    --s-nuit: #141c42;
    --s-nuit-2: #25346d;
    --s-creme: #f4f7fb;
    --s-papier: #ffffff;
    --s-encre: #25346d;
    --s-texte: #3d4566;
    --s-filet: rgba(37, 52, 109, 0.14);
    --s-action: #fbb93a;
    --s-action-texte: #1d2a5c;
    --s-action-survol: #f6a623;
    --s-accent: #d9730b;
    --s-lueur: #f29100;
    --s-lueur-2: #ffd98a;
    --s-police-titre: "Poppins", "Poppins-repli", sans-serif;
    --police: "Poppins", "Poppins-repli", sans-serif;
    --action: #25346d;
    --action-survol: #1d2a5c;
    --action-texte: #ffffff;
    --anneau: 0 0 0 3px #ffffff, 0 0 0 5px #6274c0;
    --texte: #25346d;
    --texte-2: #3d4566;
    --fond-doux: #f4f7fb;
    font-family: var(--police);
}

/* Le ciel du soir de leur visuel : bleu nuit en haut, champ doré à l'horizon */
.hab-unigrains .ouverture__ciel {
    background:
        radial-gradient(90% 55% at 74% 100%, rgba(255, 196, 92, 0.85) 0%, rgba(242, 145, 0, 0.42) 38%, transparent 70%),
        radial-gradient(60% 40% at 18% 100%, rgba(98, 116, 192, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, #111a3d 0%, #1d2a5c 46%, #4b3c5f 74%, #a8663a 100%);
}

/* Le texte du titre en blanc, comme sur leurs visuels sombres ; la pastille « Webinaire » en jaune, texte marine */
.hab-unigrains .ouverture__titre {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hab-unigrains .ouverture__etiquette {
    border-radius: 12px;
}

.hab-unigrains .bouton--grand {
    font-weight: 600;
}

.hab-unigrains .site-entete.est-solide,
.hab-unigrains:not(.site--ouverture) .site-entete {
    color: #25346d;
}

/* Le motif : en bas à droite sur l'ordinateur, coupé par les bords comme sur leurs supports */
.hab-unigrains .ouverture__motif {
    filter: drop-shadow(0 30px 60px rgba(10, 16, 40, 0.35));
}

.hab-unigrains .programme__num {
    color: #d9730b;
}

.hab-unigrains .segment input:checked + span {
    border-color: #25346d;
    background: #25346d;
}

@media (max-width: 734px) {
    .hab-unigrains .ouverture__titre {
        letter-spacing: -0.005em;
    }
}

/* Le logo empilé du visuel (nom sous le symbole) : un en-tête un peu plus haut. Sur l'ouverture, le logo est grand ;
   dès que l'en-tête devient solide, il se resserre en douceur. */
.hab-unigrains {
    --s-entete-h: 76px;
}

.site-entete__marque .site-logo--empile {
    height: 50px;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s cubic-bezier(0.4, 0, 0.6, 1);
}

.site--ouverture .site-entete:not(.site-entete--nav):not(.est-solide):not(.est-menu) .site-logo--empile {
    height: 62px;
}

.site-pied__logo--empile {
    height: 72px;
}

.espace-haut__logo .site-logo--empile {
    height: 44px;
}

@media (max-width: 734px) {
    .hab-unigrains {
        --s-entete-h: 64px;
    }

    .site-entete__marque .site-logo--empile,
    .site--ouverture .site-entete:not(.site-entete--nav):not(.est-solide):not(.est-menu) .site-logo--empile {
        height: 46px;
    }

    .espace-haut__logo .site-logo--empile {
        height: 38px;
    }

    .site-pied__logo--empile {
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-entete__marque .site-logo--empile {
        transition: none;
    }
}

/* ══ Rémi IA aux couleurs d'Unigrains ═══════════════════════════════════════════════════════════════════════════
   Le bouton : une pilule bleu nuit, le signe en onde dans un disque doré, « Rémi IA » en blanc ; au survol elle se
   soulève et l'onde s'allume. Aucune animation en boucle. Le panneau : en-tête bleu nuit, bulles claires, envoi doré. */
.hab-unigrains .remi {
    --remi-accent: #25346d;
    --remi-accent-texte: #ffffff;
}

.hab-unigrains .remi__lanceur {
    gap: 12px;
    min-height: 56px;
    padding: 6px 20px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 28, 66, 0.92);
    color: #ffffff;
    box-shadow: 0 18px 40px -14px rgba(13, 19, 49, 0.7);
    transition: transform 0.45s cubic-bezier(0.25, 1.35, 0.45, 1), box-shadow 0.3s ease;
}

.hab-unigrains .remi__lanceur:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -14px rgba(242, 145, 0, 0.55);
}

.hab-unigrains .remi__lanceur .remi__avatar {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbb93a, #f29100);
    animation: none;
}

.hab-unigrains .remi__lanceur:hover .remi__avatar {
    animation: none;
    transform: rotate(-8deg) scale(1.06);
    transition: transform 0.45s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.hab-unigrains .remi__lanceur .remi__avatar svg,
.hab-unigrains .remi__lanceur .remi__avatar img {
    width: 30px;
    height: 30px;
}

.hab-unigrains .remi__lanceur-texte {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.hab-unigrains .remi__lanceur-texte strong {
    color: #ffffff;
    font-weight: 700;
}

.hab-unigrains .remi__panneau {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 40px 90px -30px rgba(13, 19, 49, 0.55);
}

.hab-unigrains .remi__entete {
    background: linear-gradient(135deg, #141c42, #25346d);
    color: #ffffff;
}

.hab-unigrains .remi__entete .remi__titre,
.hab-unigrains .remi__entete .remi__icone {
    color: #ffffff;
}

.hab-unigrains .remi__entete .remi__statut {
    color: rgba(255, 255, 255, 0.72);
}

.hab-unigrains .remi__ia {
    background: #fbb93a;
    color: #1d2a5c;
}

/* ══ Le message flottant (« Vous êtes déconnecté… ») : une bulle bleu nuit, une coche dorée, il part tout seul ══ */
.site .site-contenu > .message,
.site-contenu > .message {
    position: fixed;
    top: calc(var(--s-entete-h, 64px) + env(safe-area-inset-top) + 22px);
    left: 50%;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 12px 20px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(20, 28, 66, 0.94);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 24px 50px -18px rgba(13, 19, 49, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
    animation: message-entre 0.6s cubic-bezier(0.25, 1.35, 0.45, 1) both;
}

.site-contenu > .message > .icone {
    flex: none;
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 6px;
    border-radius: 50%;
    background: #fbb93a;
    color: #1d2a5c;
}

.site-contenu > .message p {
    margin: 0;
    color: #ffffff;
}

.site-contenu > .message--ko > .icone {
    background: #ff6b7a;
    color: #ffffff;
}

.site-contenu > .message.est-parti {
    animation: message-part 0.4s ease forwards;
}

@keyframes message-entre {
    from { opacity: 0; transform: translate(-50%, -16px) scale(0.96); }
}

@keyframes message-part {
    to { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .site-contenu > .message,
    .site-contenu > .message.est-parti {
        animation: none;
    }
}
