@font-face {
    font-family: 'Google Sans Flex';
    src: url('/orientation-sup/fonts/GoogleSansFlex_24pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Flex';
    src: url('/orientation-sup/fonts/GoogleSansFlex_24pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Flex';
    src: url('/orientation-sup/fonts/GoogleSansFlex_24pt-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES — DARK MODE PAR DÉFAUT
   ========================================================= */

:root {
    /* Couleurs principales */
    --primary: #2469FE;
    --primary-dark: #3030AC;
    --secondary: #8b5cf6;

    --success: #10b981;
    --danger: #FF7F00;
    --warning: #f59e0b;

    /* Arrière-plans */
    --bg: #2469FE;
    --bg-secondary: #1e293b;
    --card-bg: #1e293b;
    --card-bg-hover: #273449;

    /* Textes */
    --text: #FFFFFF;
    --text-secondary: #78F0F0;
    --text-muted: #64748b;

    /* Bordures */
    --border: #334155;
    --border-light: #475569;

    /* Gradients */
    --gradient-primary: #3030AC;
    --gradient-bg: #3030AC;

    --rose:#FE3579;
    --txt-menu:#070D37;
    --bg-card:#F3F5FF;

    /* Ombres */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3),
               0 2px 4px -2px rgb(0 0 0 / 0.3);

--shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.15),
                  0 8px 10px -6px rgb(0 0 0 / 0.15);
}


/* =========================================================
   BODY
   ========================================================= */


body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Google Sans Flex', sans-serif;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
    transition: background 0.3s ease, color 0.3s ease;
    /*padding-bottom: 90px;*/
}


/* =========================================================
   LOADER
   ========================================================= */

.loader {
    position: fixed;
    inset: 0;

    background: var(--bg);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition:
        opacity 0.5s,
        visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;

    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;

    border-radius: 50%;

    animation: spin 1s linear infinite;

    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   CONTAINER
   ========================================================= */

.app-container {
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    padding: 5px;
    margin-bottom: 10px;
    display: none;
}

.progress-bar {
    height: 6px;
    background: var(--primary-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    width: 60px;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text-secondary);
    transition: width 0.5s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    /*gap: 12px;*/
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    color: var(--text);
    text-align: center;
}
#badges{display: none;}
.badges-container {
    display: flex;
    gap: 8px;

    flex-wrap: wrap;
    justify-content: center;
}
.emoji-profil {
    font-size: 52px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    color: #070D37;
    font-size: 0.85rem;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 6px;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   SCREENS
   ========================================================= */

.screen {
    display: none;
    animation: fadeIn 0.5s;
    padding-bottom: 90px;
}
#welcome.screen{
    padding-bottom: 20px;
}
#go.screen{
    padding-bottom: 20px;
}
.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   WELCOME / HERO
   ========================================================= */


.logo-renasup{width:100%; text-align: center;}
.logo-renasup svg {
    width: 185px;
}
.slogan-renasup{font-size: 12px;font-weight: normal;text-align: center;}
.welcome-hero {

padding: 10px 20px;
position: relative;
  

}

.hero-emoji {
    font-size: 65px;
    animation: float 3s ease-in-out infinite;
    margin-top: 8px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}
svg#logo-orientation-quest {
    width: 40px;
}
.hero-title {
    font-size: 3rem;
    line-height: 3rem;
    margin-bottom: 16px;
    font-weight: bold;
    color: var(--text);
    position: relative;
}
.hero-title span{
	position: absolute;
    bottom: -9px;
}
.gradient-text {
    background: var(--gradient-primary);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-direction: row;

    gap: 4px;
}

.stat {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
    background: #FFF;
    padding: 40px 11px;
    border-radius: 12px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;

    color:var(--rose);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rose);
    
}
.path {
    width: 88px;
    left: 210px;
    position: absolute;
    top: -34px;
}
.hero-img{
    margin: 35px 0 20px 0;    
}
.hero-img svg {
    width: 51px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    padding: 20px 32px;
    width: 100%;

    border: none;
    border-radius: 360px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

    margin: 10px 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}
.bt-center{
    text-align: center;
    margin: 10px 0;
}
.bt-center .btn {
    width: auto;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(99, 102, 241, 0.3);
}
.choice{margin-top:22px;}
.choice .btn{
    margin: 12px 0;
}
.btn-large {
    padding: 18px 48px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   STEPS
   ========================================================= */

.step-content {
    background: var(--text);  
    border-radius: 14px;
    padding: 20px;
}

.step-number {
    display: inline-block;

    background: var(--gradient-primary);

    color: white;

    padding: 8px 16px;

    border-radius: 20px;

    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 20px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--txt-menu);
    font-weight: 500;
    text-align: center;
}

.step-subtitle {
    font-size: 1.1rem;

    color: var(--text-secondary);

    margin-bottom: 40px;
}


/* =========================================================
   CARDS DE SÉLECTION
   ========================================================= */

.avatar-grid,
.interests-grid,
.style-cards,
.level-timeline {
    display: grid;
    gap: 8px;
}

.avatar-grid {
    grid-template-columns:
    repeat(auto-fit, minmax(133px, 1fr));
}

.interests-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
}

.style-cards {
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 8px;
}

.level-timeline {
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 8px;
}


/* Carte générique */

.avatar-card,
.interest-card,
.style-card,
.level-option,
.etablissement-card {
    background: var(--bg-card);
    transition: all 0.3s;
}

.avatar-card:hover,
.interest-card:hover,
.style-card:hover,
.level-option:hover,
.etablissement-card:hover {
    transform: translateY(-3px);
}


/* Avatar */

.avatar-card {
    border-radius:25px;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
}

.avatar-card.selected {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.avatar-card.selected .avatar-name {
    color: white;
}

.avatar-emoji {
    font-size: 40px;
    margin-bottom: 0px;
}

.avatar-name {
    font-weight: 400;
    color: var(--txt-menu);
}


/* Intérêts */

.interest-card {
    border-radius:25px;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.interest-card.selected {
    background:var(--primary-dark);
}

.interest-icon {
    font-size: 36px;
}

.interest-name {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--txt-menu);
}
.interest-card.selected .interest-name {
     color: #FFF;
}
.interest-count {
    color: var(--txt-menu);
    font-size: 0.9rem;
    font-weight: 700;
}
.interest-card.selected .interest-count {
     color: #FFF;
}

/* Styles */

.style-card {
    border-radius: 16px;
    padding: 5px 15px;
    cursor: pointer;
    text-align: center;
}

.style-card.selected {
    background:var(--gradient-bg);
}

.style-icon {
    font-size: 48px;
}

.style-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--txt-menu);
}

.style-card p {
    color: var(--txt-menu);
    font-weight: 600;
    font-size: 12px;
    
}

.style-card ul {
    list-style: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.style-card ul li {
    padding: 8px 0;
    color: var(--txt-menu);
    font-size: 12px;
    font-weight: 400;
    margin-left:20px;
    position: relative;
}

.style-card ul li::before {
    content: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYWxxdWVfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDIwIDIwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMCAyMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxjaXJjbGUgZmlsbD0iIzRERDlFOSIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIi8+Cgk8ZyBpZD0idmFsaWRhdGlvbl8wMDAwMDE2NzM1NTM2NjU1Mzk3NTc0ODc2MDAwMDAxMTcxNTUzNTE2NjY3ODk4MTU1NF8iPgoJCTxnPgoJCQk8cG9seWdvbiBmaWxsPSIjMDcwRDM3IiBwb2ludHM9IjguMywxMyA1LjQsMTAuMSA2LjEsOS40IDguMywxMS42IDEzLjksNiAxNC42LDYuNyIvPgoJCTwvZz4KCTwvZz4KPC9nPgo8L3N2Zz4=");
    width: 16px;
    position: absolute;
    left: -20px;
}
.style-card.selected li, .style-card.selected p, .style-card.selected h3{
    color:#FFF;
}

/* =========================================================
   NIVEAUX
   ========================================================= */

.level-option {
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.level-option.selected {
    background:var(--gradient-bg);
}

.level-duration {
    position: absolute;

    top: -12px;
    left: 50%;

    transform: translateX(-50%);

    background: var(--warning);

    color: white;

    padding: 6px 16px;

    border-radius: 20px;

    font-size: 0.85rem;
    font-weight: 600;
}

.level-icon {
    font-size: 48px;
}

.level-option h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--txt-menu);
}

.level-option p {
    color: var(--txt-menu);
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    background: var(--text-secondary);
    color: var(--txt-menu);
    padding: 6px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 400;
}
.level-option.selected p, .level-option.selected h3{
    color:#FFF;
}

/* =========================================================
   LOCALISATION
   ========================================================= */

.location-options {
    margin-bottom: 40px;
}

.location-btn {
    width: 100%;

    padding: 24px;

    background: var(--gradient-primary);

    color: white;

    border: none;

    border-radius: 16px;

    font-size: 1.2rem;
    font-weight: 600;

    cursor: pointer;

    margin-bottom: 24px;

    transition: all 0.3s;
}

.location-btn:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}

.location-divider {
    text-align: center;

    color: var(--text-secondary);

    margin: 24px 0;
}

.etablissements-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 16px;
}

.etablissement-card {
    border-radius: 12px;

    padding: 16px;

    cursor: pointer;

    text-align: center;

    font-size: 0.85rem;
    line-height: 1.4;

    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.etablissement-card.selected {
    background: var(--primary);

    color: white;

    border-color: var(--primary);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.step-actions {
    display: flex;
    justify-content: space-between;
}

button.bt-back {
    border: 0;
    position: absolute;
    top: 25px;
    left: 10px;
    background: transparent;
}
button.bt-back svg {
    width: 52px;
}

/* =========================================================
   SWIPE
   ========================================================= */

.anim-swipe {
  /* Définit le point d'ancrage de la rotation : En bas (100%) et au centre (50%) */
  transform-origin: 50% 100%;
  
  /* L'animation : nom, durée, fluidité, répétition (10 fois) */
  animation: swipeSwing 1.5s ease-in-out 5;
}

@keyframes swipeSwing {
  0% {
    transform: rotate(0deg); /* Position centrale de départ */
  }
  25% {
    transform: rotate(20deg); /* Penche vers la droite */
  }
  75% {
    transform: rotate(-20deg); /* Penche vers la gauche */
  }
  100% {
    transform: rotate(0deg); /* Revient au centre */
  }
}

.swipe-title-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.swipe-title-container svg{width: 30px;}
.swipe-title-container .explore-title{
	padding: 0 10px;
	margin-bottom: 5px;
}


.swipe-content {
    background: white;
    border: 0;
    border-radius: 14px;
    padding: 0px;
    /*max-width: 600px;*/
    margin: 0 auto;
        margin-top: -12px;
}

.swipe-header {
    text-align: center;
    margin-bottom: 32px;
}

.swipe-title {
    font-size: 2rem;

    margin-bottom: 12px;

    color: var(--text);
}

.swipe-subtitle {
    color: var(--txt-menu);
    margin-bottom: 4px;
    text-align: center;
    font-size: 12px;
}

.swipe-counter {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 400;
    color: var(--text);
    font-size: 12px;
    margin: 8px 0 0 0; 
    z-index: 999;
}


/* Container */

.swipe-container-wrapper {
    position: relative;
    height: 315px;
    margin-bottom: 15px;
    overflow: visible;
}

.swipe-container {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: visible;
}

.swipe-stack {
    position: relative;

    width: 100%;
    height: 100%;
}


/* Carte */

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 14px;
    padding: 32px 10px;
    box-shadow: var(--shadow-hover);
    cursor: grab;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.swiping {
    transition: none;
}


/* Animations */

.swipe-card.swipe-out-left {
    animation:
        swipeOutLeft
        0.4s
        cubic-bezier(0.6, 0, 0.8, 1)
        forwards;
}

.swipe-card.swipe-out-right {
    animation:
        swipeOutRight
        0.4s
        cubic-bezier(0.6, 0, 0.8, 1)
        forwards;
}

@keyframes swipeOutLeft {
    0% {
        transform:
            translateX(0)
            rotate(0deg);
        opacity: 1;
    }

    100% {
        transform:
            translateX(-200%)
            rotate(-40deg)
            scale(0.7);
        opacity: 0;
    }
}

@keyframes swipeOutRight {
    0% {
        transform:
            translateX(0)
            rotate(0deg);
        opacity: 1;
    }

    100% {
        transform:
            translateX(200%)
            rotate(40deg)
            scale(0.7);
        opacity: 0;
    }
}


/* Contenu carte */

.swipe-card-indicator {
    position: absolute;
    top: 20px;
    font-size: 38px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.swipe-card-indicator.nope {
    right: 20px;
}

.swipe-card-indicator.like {
    left: 20px;
}
/*.swipe-card-indicator{display: none;}*/
.swipe-card-domaine {
    font-size: 3rem;

    text-align: center;

    margin-bottom: 16px;
}

.swipe-card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--txt-menu);
    margin: 26px;
    text-align: center;
}

.swipe-card-meta {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.swipe-meta-badge {
	background: transparent;
    color: var(--txt-menu);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 2px solid var(--text-secondary);
}

.swipe-card-etablissements {
	display: none;
/*	background: transparent;
    color: var(--txt-menu);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 2px solid var(--text-secondary);*/
}


/* Actions swipe */

.swipe-actions {
	/*display: none;*/
    display: flex;
    justify-content: center;
    justify-content: space-around;
    gap: 24px;
}

.swipe-btn {
       background: transparent;
    border: 2px solid #FFF;
    padding: 5px 15px;
    border-radius: 360px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: revert;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    gap: 4px;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

/*.swipe-btn-nope {
    border-color: var(--danger);
}

.swipe-btn-nope:hover {
    background: var(--danger);
}

.swipe-btn-like {
    border-color: var(--success);
}

.swipe-btn-like:hover {
    background: var(--success);
}*/

.swipe-btn-nope:hover .swipe-btn-icon,
.swipe-btn-nope:hover .swipe-btn-text,
.swipe-btn-like:hover .swipe-btn-icon,
.swipe-btn-like:hover .swipe-btn-text {
    color: white;
}

.swipe-btn-icon {
    font-size: 22px;
}

.swipe-btn-text {
    font-size: 14px;

    font-weight: 600;

    color: var(--text);
}


/* État vide */

.swipe-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    margin-top: -320px;
    z-index: 9;
    position: relative;
}

.swipe-empty .empty-emoji {
    font-size: 52px;
}

.swipe-empty h3 {
    font-size: 1.5rem;
    color: var(--txt-menu);
}

.swipe-empty p {
    color: var(--txt-menu);
        margin-bottom: 16px;
}


/* =========================================================
   RESULTS / EXPLORE / FAVORITES
   ========================================================= */
.favorites-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.emoji-favoris {
    font-size: 52px;
}
.results-content,
.explore-content,
.favorites-content {
    background: #FFF;
    border-radius: 24px;
    padding: 10px;
}

.results-hero {
    text-align: center;
    margin-bottom: 20px;
}

.results-emoji {
    font-size: 80px;
    margin-top: -32px;
}

.results-title {
    font-size: 2.5rem;
    color: var(--txt-menu);
}

.results-subtitle {
    font-size: 1rem;
    color: var(--txt-menu);
}
.results-infos {
    color: var(--txt-menu);
    margin-bottom: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}
.results-infos.blc {
    color: #FFF;
    font-weight: 500;
    margin-top:10px;
    font-size: 14px;
}
.results-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    
}
.empty-state p{color: var(--txt-menu);}

/* =========================================================
   FORMATION CARDS
   ========================================================= */

.formation-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 16px;
}

.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

}

.formation-score {
    background:var(--rose);
    color: var(--txt-menu);
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: 500;
    font-size: 0.9rem;
}
.formation-score.colorScore100{
    background: #00FF6D;
}
.formation-score.colorScore80{
    background: #7BFFB0;
}
.formation-score.colorScore60{
    background: #FFCE00;
}
.formation-score.colorScore40{
    background: #FF7F00;
}

.favorite-btn {
    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    transition: transform 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.formation-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--txt-menu);
    margin-bottom: 12px;
}
.formation-title-inline {
    flex: 1;
    margin-right: 12px;
    margin-bottom: 0;
}

.formation-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 16px;
}

.meta-badge {
    background: transparent;
    color: var(--txt-menu);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;

    border: 2px solid var(--text-secondary);
}

.meta-badge-bac,
.swipe-badge-bac {
    background:var(--text-secondary);
    color: var(--txt-menu);
}

.formation-etablissements {
    font-size: 0.85rem;
    color: var(--txt-menu);
    line-height: 1.5;
    margin-top: 8px;
    display: flex;
}


/* =========================================================
   ACTIONS RESULTS
   ========================================================= */

.results-actions,
.explore-actions,
.favorites-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   EXPLORE
   ========================================================= */

.explore-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.emoji-search {
    font-size: 52px;
}
.explore-title,
.favorites-title {
    font-size: 2rem;

    margin-bottom: 24px;

    text-align: center;

    color: var(--text);
}

.favorites-subtitle {
    text-align: center;

    color: var(--text-secondary);

    margin-bottom: 40px;
}

.explore-filters {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px;
    margin-bottom: 32px;
    padding: 0 20px;
}

.filter-select {
    padding: 8px 16px;
    border: 2px solid #FFF;
    border-radius: 360px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #FFF;
    color: var(--txt-menu);
    font-weight: 500;
}
.search-input {
    padding: 10px 16px;
    border: 2px solid #FFF;
    border-radius: 360px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: transparent;
    color: #FFF;
    font-weight: 500;
    display: none;
}
.search-input::placeholder {
  color: #ffffff;
  opacity: 1; 
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #FFF;
}

.explore-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}
/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center;

    padding: 60px 20px;

    color: var(--text-secondary);
}

.empty-emoji {
    font-size: 64px;

    margin-bottom: 16px;
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
    position: fixed;
    /* Utilise env(safe-area-inset-bottom) pour les iPhones/PWA avec encoche du bas */
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    background: var(--text);
    border-radius: 80px;
    display: flex;
    justify-content: space-around;
    padding: 8px 0px;
    z-index: 1000;
    width: calc(100% - 20px);
    max-width: 480px;
}


.nav-item {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;

    /*gap: 4px;*/

    padding: 8px;

    background: none;

    border: none;

    cursor: pointer;

    transition: all 0.3s;

    position: relative;

    color: var(--text-secondary);
}

.nav-item:hover,
.nav-item.active {

    transform: translateY(-2px);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--txt-menu);
}
.nav-item.active .nav-label {    font-weight: 900;}
.nav-badge {
    position: absolute;
    top: 4px;
    right: 20%;
    background: var(--text-secondary);
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
@keyframes navBadgeBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.5); }
    50% { transform: scale(0.85); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.nav-badge-bump {
    animation: navBadgeBump 0.4s ease-out;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.summary-card {
    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 32px;

    margin-bottom: 32px;
}

.summary-item {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 24px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;

    margin-bottom: 0;

    padding-bottom: 0;
}

.summary-icon {
    font-size: 32px;

    min-width: 48px;

    text-align: center;
}

.summary-label {
    font-weight: 700;

    color: var(--text);

    margin-bottom: 8px;

    font-size: 0.95rem;
}

.summary-value,
.summary-values {
    color: var(--text-secondary);

    font-size: 1.05rem;
}

.summary-values {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.summary-result {
    background: var(--gradient-primary);

    color: white;

    border-radius: 20px;

    padding: 24px;

    text-align: center;

    margin-bottom: 32px;
}

.summary-result-emoji {
    font-size: 48px;

    margin-bottom: 12px;
}

.summary-result-text {
    font-size: 1.3rem;

    font-weight: 600;
}

.summary-result-text span {
    font-size: 2rem;

    font-weight: 700;
}


/* =========================================================
   INSTALL BANNER
   ========================================================= */

.install-banner {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    background: var(--text);
    box-shadow:
        0 -4px 20px rgb(0 0 0 / 0.3);

    z-index: 998;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-banner-content {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 10px;

    max-width: 600px;

    margin: 0 auto;
}

.install-banner-icon {
    font-size: 40px;

    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;

    min-width: 0;
}

.install-banner-title {
    font-weight: 700;

    font-size: 1rem;

    color: var(--primary);

    margin-bottom: 4px;
}

.install-banner-subtitle {
    font-size: 0.85rem;

    color: var(--primary-dark);

    line-height: 1.3;
}

.install-banner-btn {
    background: var(--primary-dark);
    color: white;
    border: none;

    padding: 10px 20px;

    border-radius: 20px;

    font-weight: 600;

    font-size: 0.9rem;

    cursor: pointer;

    white-space: nowrap;

    transition: transform 0.2s;
}

.install-banner-btn:hover {
    transform: scale(1.05);
}

.install-banner-btn:active {
    transform: scale(0.95);
}

.install-banner-close {
    background: none;

    border: none;

    font-size: 24px;

    color: var(--primary-dark);

    cursor: pointer;

    padding: 4px;

    line-height: 1;

    flex-shrink: 0;

    transition: color 0.2s;
}

.install-banner-close:hover {
    color: var(--text);
}


/* =========================================================
   MODAL
   ========================================================= */

.formation-modal-links {
    display: block;
 /*   flex-direction: column;
    gap: 10px;*/
}

.formation-modal-link {
	ext-align: left;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--txt-menu);
    border: 2px solid var(--txt-menu);
    border-radius: 20px;
    padding: 2px 12px;
    display: inline-block;
    margin-bottom: 10px;
}
.formation-modal-link svg{width: 11px;}
.formation-modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgb(0 0 0 / 0.7);

    z-index: 2000;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.formation-modal.active {
    display: flex;
}

.formation-modal-content {
    background: #FFF;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.formation-modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    background: none;

    border: none;

    font-size: 20px;

    cursor: pointer;

    color: var(--primary-dark);
}

.formation-modal-close:hover {
    color: var(--primary-dark);
}

.formation-modal-content h3 {
    margin-bottom: 16px;
    padding-right: 30px;
    color: var(--txt-menu);
}

.formation-modal-content p {
    color: var(--txt-menu);
    line-height: 1.6;
    margin-bottom: 24px;
}
p.formation-modal-links-title{
	margin-bottom: 5px;
	font-weight: 600;
}
.formation-actions-row {
    display: flex;
    gap: 13px;
}

.btn-info,
.btn-external svg{
    width:24px;
    background:transparent;
}
.btn-info,
.btn-external svg path{
fill:var(--primary-dark)
}

.btn-info {
    flex: 1;
    cursor: pointer;
    border:0;
}
