/* --- Identité Visuelle PromoRoute --- */
.logo-container {
    background-color: #ffffff;
    width: 100%;
    padding: 15px 0;
}
        .google-card {
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e9ecef;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            max-width: 600px;
            margin: 0 auto;
        }
        .google-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
        }
        .star-gold {
            color: #ffc107;
            font-size: 1.6rem;
        }
.logo-img {
    max-height: 120px;
    width: auto;
}
        /* Styles pour Bitmojis, reste dans le .css */
    .team-card {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 1.2rem; /* Légèrement plus d'espace */
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .team-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }
.bitmoji-avatar {
    width: 85px;
    height: 85px;
    
    /* 1. On dit à l'image de remplir tout le cercle en gardant ses proportions */
    object-fit: cover;    
    
    /* 2. On dit au CSS de s'aligner sur le HAUT de l'image (le visage) */
    object-position: center top; 
    
    border-radius: 50%;
    background-color: #f1f3f5; 
    padding: 4px;
    border: 2px solid #16f4d0; 
    flex-shrink: 0;
}
    
    /* Conteneur pour éviter que le "transform: scale" ne bave en dehors du cercle */
    .avatar-wrapper {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        overflow: hidden;     /* Coupe tout ce qui dépasse du rond */
        flex-shrink: 0;
    }

    .vehicle-card {
        transition: transform 0.2s ease;
    }
    .vehicle-card:hover {
        transform: scale(1.03);
    }
.brand-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e293b;
    vertical-align: middle;
    margin-left: 10px;
}

.navbar-promoroute-sticky { 
    background-color: #16f4d0 !important; 
    padding: 0 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.bg-menu-turquoise { 
    background-color: #16f4d0 !important; 
    width: 100%; 
    padding: 10px 0; 
}

.navbar-promoroute-sticky .nav-link { 
    color: #000000 !important; 
    font-weight: 600; 
}

.navbar-promoroute-sticky .nav-link.active { 
    border-bottom: 3px solid #000000; 
}

@media (min-width: 992px) {
    .navbar-promoroute-sticky .nav-link:hover { 
        background-color: rgba(255, 255, 255, 0.4); 
        border-radius: 4px; 
    }
}

.bg-promoroute-color { 
    background-color: #16f4d0 !important; 
}

.btn-promoroute {
    background-color: #000000; 
    color: #ffffff; 
    font-weight: bold;
    padding: 12px 30px; 
    border: none; 
    transition: all 0.3s ease;
}

.btn-promoroute:hover { 
    background-color: #16f4d0; 
    color: black; 
}

/* --- Animation du Trafic Interactif --- */
.route-container {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff; 
    position: relative;
    height: 140px; 
}

.car-wrapper {
    position: absolute;
    top: 58%; 
    transform: translateY(-50%); 
    transform-origin: center center; 
    cursor: pointer; 
    transition: transform 0.15s ease-out; 
    display: flex;
    justify-content: center;
    align-items: center;
    left: -400px; 
}

.car-2 { 
    top: 60%; 
}

.animated-car {
    height: 100px; 
    width: auto;
    display: block;
    position: relative;
    z-index: 2; 
    animation: vibrer 0.12s linear infinite; 
}

.impact-traits {
    position: absolute;
    top: -25px; 
    left: 50%; 
    transform: translateX(-50%); 
    height: 35px; 
    width: auto;
    z-index: 3; 
    opacity: 0; 
    transition: opacity 0.1s ease-in, transform 0.15s ease-out; 
}

.car-clicked { 
    transform: scale(1.15) translateY(-45%) !important; 
}

.car-clicked .impact-traits { 
    opacity: 1 !important; 
    transform: translateX(-50%) scale(1.1);
}

@keyframes vibrer {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-1px); }
    50% { transform: translateY(0px); }
    75% { transform: translateY(0.75px); }
    100% { transform: translateY(0px); }
}
:root {
    --turquoise: #16f4d0;
    --turquoise-dark: #0db89d;
    --turquoise-faint: #e8fdfb;
    --charcoal: #1a1a2e;
    --charcoal-soft: #2e2e45;
    --slate: #6c757d;
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-pill: 999px;
    --transition: 0.2s ease;
  }
 
  body { background: #f8f9fb; font-family: 'Segoe UI', system-ui, sans-serif; }
 
  /* ── Wrapper ── */
  .pf-wrapper {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
  }
 
  /* ── Header ── */
  .pf-header {
    background: var(--charcoal);
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
  }
  .pf-header .bi { color: var(--turquoise); font-size: 1.3rem; }
  .pf-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
  .pf-header p { margin: 0; font-size: .82rem; opacity: .65; }
 
  /* ── Steps bar ── */
  .pf-steps {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: #fafafa;
  }
  .pf-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .85rem .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: #adb5bd;
    border-bottom: 3px solid transparent;
    cursor: default;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .pf-step.active { color: var(--charcoal); border-bottom-color: var(--turquoise); }
  .pf-step .step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem;
    transition: var(--transition);
  }
  .pf-step.active .step-num { background: var(--turquoise); color: var(--charcoal); }
  .pf-step.done .step-num { background: var(--charcoal); color: #fff; }
  .pf-step.done { color: var(--charcoal); }
 
  /* ── Body ── */
  .pf-body { padding: 2rem; }
 
  /* ── Panel ── */
  .pf-panel { display: none; }
  .pf-panel.active { display: block; }
 
  /* ── Question title ── */
  .pf-question {
    font-size: 1.1rem; font-weight: 700; color: var(--charcoal);
    margin-bottom: .4rem;
  }
  .pf-sub { font-size: .85rem; color: var(--slate); margin-bottom: 1.5rem; }
 
  /* ── Choice cards ── */
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .choice-card {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-btn);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    background: #fff;
  }
  .choice-card:hover { border-color: var(--turquoise-dark); background: var(--turquoise-faint); }
  .choice-card.selected {
    border-color: var(--turquoise);
    background: var(--turquoise-faint);
    box-shadow: 0 0 0 3px rgba(22,244,208,.15);
  }
  .choice-card .choice-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
    display: block;
    color: var(--charcoal-soft);
  }
  .choice-card.selected .choice-icon { color: var(--turquoise-dark); }
  .choice-card .choice-label { font-weight: 700; font-size: .9rem; color: var(--charcoal); }
  .choice-card .choice-hint { font-size: .75rem; color: var(--slate); margin-top: .2rem; }
  .choice-card .choice-check {
    position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--turquoise);
    color: var(--charcoal);
    display: none;
    align-items: center; justify-content: center;
    font-size: .7rem;
  }
  .choice-card.selected .choice-check { display: flex; }
 
  /* ── Recommendation card ── */
  .reco-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--turquoise-faint);
    color: var(--turquoise-dark);
    border: 1px solid rgba(22,244,208,.4);
    border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 700;
    padding: .3rem .85rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase; letter-spacing: .05em;
  }
  .reco-title {
    font-size: 1.5rem; font-weight: 800; color: var(--charcoal);
    margin-bottom: .3rem;
  }
  .reco-desc { font-size: .9rem; color: var(--slate); margin-bottom: 1.75rem; max-width: 560px; }
 
  /* ── Price display ── */
  .price-block {
    background: var(--charcoal);
    border-radius: var(--radius-card);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
  .price-label { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }
  .price-amount {
    font-size: 2.5rem; font-weight: 800;
    color: var(--turquoise);
    line-height: 1;
  }
  .price-details { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: .2rem; }
  .price-breakdown { font-size: .82rem; color: rgba(255,255,255,.7); }
  .price-breakdown span { display: block; padding: .15rem 0; }
  .price-breakdown strong { color: #fff; }
 
  /* ── Timeline (REMC) ── */
  .remc-timeline { margin-bottom: 1.75rem; }
  .remc-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 1rem; }
  .remc-step {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: .9rem 1rem;
    border-radius: var(--radius-btn);
    background: #fafafa;
    border: 1px solid #f0f0f0;
    margin-bottom: .6rem;
    transition: var(--transition);
  }
  .remc-step:hover { background: var(--turquoise-faint); border-color: rgba(22,244,208,.3); }
  .remc-step-num {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--turquoise);
    color: var(--charcoal);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800;
  }
  .remc-step-content .remc-step-label { font-weight: 700; font-size: .88rem; color: var(--charcoal); }
  .remc-step-content .remc-step-desc { font-size: .78rem; color: var(--slate); margin-top: .15rem; }
 
  /* ── Info pills grid ── */
  .info-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; }
  .info-pill {
    display: flex; align-items: center; gap: .4rem;
    background: #f1f3f5;
    border-radius: var(--radius-pill);
    padding: .45rem 1rem;
    font-size: .8rem; color: var(--charcoal);
  }
  .info-pill .bi { color: var(--turquoise-dark); }
 
  /* ── Accordion for réglementaire ── */
  .pf-accordion .accordion-button {
    font-size: .85rem; font-weight: 600; background: #fff; color: var(--charcoal);
    border-radius: var(--radius-btn) !important; padding: .75rem 1rem;
  }
  .pf-accordion .accordion-button:not(.collapsed) { background: var(--turquoise-faint); color: var(--turquoise-dark); box-shadow: none; }
  .pf-accordion .accordion-button::after { filter: none; }
  .pf-accordion .accordion-item { border: 1px solid #e9ecef; border-radius: var(--radius-btn) !important; margin-bottom: .5rem; overflow: hidden; }
  .pf-accordion .accordion-body { font-size: .82rem; color: var(--slate); line-height: 1.7; }
 
  /* ── Nav buttons ── */
  .pf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e9ecef; }
  .btn-pf-back {
    display: flex; align-items: center; gap: .35rem;
    font-size: .85rem; font-weight: 600; color: var(--slate);
    background: none; border: none; cursor: pointer; padding: .5rem 0;
    transition: var(--transition);
  }
  .btn-pf-back:hover { color: var(--charcoal); }
  .btn-pf-next, .btn-pf-cta {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--turquoise); color: var(--charcoal);
    font-weight: 700; font-size: .9rem;
    padding: .65rem 1.6rem;
    border-radius: var(--radius-pill);
    border: none; cursor: pointer;
    transition: var(--transition);
  }
  .btn-pf-next:hover, .btn-pf-cta:hover { background: var(--turquoise-dark); }
  .btn-pf-next:disabled { opacity: .35; cursor: not-allowed; }
 
  /* ── Restart ── */
  .btn-restart {
    background: none; border: 1px solid #dee2e6; border-radius: var(--radius-pill);
    font-size: .82rem; color: var(--slate); padding: .45rem 1.1rem;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: .35rem;
  }
  .btn-restart:hover { border-color: var(--turquoise-dark); color: var(--charcoal); }
 
  /* ── Legal note ── */
  .legal-note { font-size: .72rem; color: #adb5bd; margin-top: 1rem; }
 
  /* ── AAC extra step ── */
  .aac-phases {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
    margin-bottom: 1.25rem;
  }
  .aac-phase {
    border-radius: var(--radius-btn);
    padding: 1rem;
    border: 1px solid #e9ecef;
  }
  .aac-phase.phase-school { background: #f0fdf9; border-color: rgba(22,244,208,.3); }
  .aac-phase.phase-road { background: #fef9ec; border-color: rgba(239,159,39,.3); }
  .aac-phase-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
  .aac-phase.phase-school .aac-phase-label { color: var(--turquoise-dark); }
  .aac-phase.phase-road .aac-phase-label { color: #ba7517; }
  .aac-phase-title { font-size: .9rem; font-weight: 700; color: var(--charcoal); }
  .aac-phase-desc { font-size: .77rem; color: var(--slate); margin-top: .2rem; }
 
  @media (max-width: 575px) {
    .pf-body { padding: 1.25rem; }
    .price-block { flex-direction: column; gap: .75rem; }
    .pf-header { padding: 1.1rem 1.25rem; }
    .aac-phases { grid-template-columns: 1fr; }
    .pf-step span.d-none-xs { display: none; }
    .pf-steps { font-size: .7rem; }
  }
  /* --- Scène Trafic Urbain --- */
.scene-route {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
    border-radius: var(--radius-card);
}

.scene-asphalt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--charcoal);
}

.scene-asphalt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        to right,
        var(--turquoise) 0px,
        var(--turquoise) 40px,
        transparent 40px,
        transparent 80px
    );
    opacity: .6;
}

/* Voiture */
.scene-car {
    position: absolute;
    bottom: 14px;
    left: -200px;
    width: 140px;
    height: auto;
    z-index: 4;
    will-change: transform, left;
}
/* Styles pour améliorer l'ergonomie des étapes */
.pf-step.clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.pf-step.clickable:hover {
    opacity: 0.8;
}
.btn-pf-back {
    font-weight: 600;
}

/* --- INTEGRATION SCÈNE ROUTE ANIMÉE (De Gauche à Droite) --- */
.scene-route {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    margin-top: 10px;
}

.scene-asphalt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #1e293b; /* Charcoal */
}

.scene-asphalt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        to right,
        #16f4d0 0px,
        #16f4d0 40px,
        transparent 40px,
        transparent 80px
    );
    opacity: .6;
}

/* Voiture */
.scene-car {
    position: absolute;
    bottom: -20px;
    left: -150px; /* Position initiale hors écran par défaut */
    width: 140px;
    height: auto;
    z-index: 4;
    will-change: transform, left;
}

.scene-car img {
    display: block;
    width: 100%;
    height: auto;
    animation: vibrer 0.12s linear infinite;
}

.scene-car.is-braking img {
    animation-duration: 0.25s;
}

/* Passage piéton */
.scene-crosswalk {
    position: absolute;
    bottom: 0;
    left: 40%; /* Positionné à 40% de la route */
    height: 90px;
    width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1;
    transform: translateX(-50%);
}

.scene-crosswalk span {
    display: block;
    width: 100%;
    height: 10px;
    background: #f1f3f5;
    opacity: .85;
}

    .scene-pedestrian {
    position: absolute;
    bottom: 90px; /* Sur le trottoir du haut */
    left: 40%;
    width: 38px;
    height: 58px;
    z-index: 5;
    opacity: 0;
    transform: translateX(-50%) translateY(0px);
    transition: transform 2s linear, opacity .3s ease; /* Fluidifie le mouvement vertical */
}

.scene-pedestrian img,
.scene-pedestrian .ped-fallback {
    width: 100%;
    height: 100%;
    display: block;
}
/* Animation de la jambe gauche : grand coup vers l'extérieur puis revient */
@keyframes stickWalkLeft {
    0%, 100% { 
        transform: rotate(28deg) scaleY(0.8); 
        opacity: 1; 
    }
    50% { 
        transform: rotate(-10deg) scaleY(1); 
        opacity: 0.9; 
    }
}

/* Animation de la jambe droite : l'exact inverse */
@keyframes stickWalkRight {
    0%, 100% { 
        transform: rotate(-10deg) scaleY(1); 
        opacity: 0.9; 
    }
    50% { 
        transform: rotate(28deg) scaleY(0.8); 
        opacity: 1; 
    }
}

/* Application des animations sur les jambes */
.scene-pedestrian .stick-leg-left {
    animation: stickWalkLeft 0.45s infinite ease-in-out;
}
.scene-pedestrian .stick-leg-right {
    animation: stickWalkRight 0.45s infinite ease-in-out;
}
.scene-pedestrian .ped-fallback {
    background: #ffc107;
    border-radius: 4px;
    position: relative;
}

.scene-pedestrian .ped-fallback::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc107;
}
/* Panneau de signalisation */
.scene-sign {
    position: absolute;
    top: 45px; /* Aligné en haut sur le trottoir */
    left: 36%; /* Placé juste avant le passage piéton (qui est à 40%) */
    width: 32px; /* Taille du triangle */
    height: auto;
    z-index: 3;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.scene-sign img {
    display: block;
    width: 100%;
    height: auto;
}

/* Le poteau du panneau */
.scene-sign::after {
    content: "";
    position: absolute;
    top: 28px; /* Démarre sous le triangle */
    left: 50%;
    width: 3px;
    height: 38px; /* Descend jusqu'au bord du trottoir */
    background: #718096; /* Couleur métallique gris/acier */
    transform: translateX(-50%);
    z-index: -1;
}

/* Feu tricolore */
.scene-traffic-light {
    position: absolute;
    bottom: 120px;
    left: 80%; /* Placé à 80% */
    width: 22px;
    height: 65px;
    background: #2d3748;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 6px 0;
    z-index: 2;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.scene-traffic-light::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 4px;
    height: 90px;
    background: #2d3748;
    transform: translateX(-50%);
    z-index: -1;
}

/* Version mobile */
@media (max-width: 575px) {
    .scene-sign {
        top: 50px;
        width: 24px;
        left: 30%;
    }
    .scene-sign::after {
        top: 20px;
        height: 30px;
    }
    
    .scene-traffic-light::after{
        top: 50px;
        height: 20px;
    }

}
.scene-traffic-light .light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.scene-traffic-light .light.red.on {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,.8);
}

.scene-traffic-light .light.yellow.on {
    background: #f5b50a;
    box-shadow: 0 0 10px rgba(245,181,10,.8);
}

.scene-traffic-light .light.green.on {
    background: #16f4d0;
    box-shadow: 0 0 10px rgba(22,244,208,.8);
}

@keyframes vibrer {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 575px) {
    .scene-route { height: 170px; 
    }
    .scene-car { width: 100px; 
    transform: translateX(-70%);}
    .scene-asphalt { height: 70px; }
    .scene-traffic-light { top: 30px; height: 50px; width: 18px; }
    .scene-traffic-light .light { width: 9px; height: 9px; }
    .scene-pedestrian { height: 35px; width: 22px; bottom: 75px; }
    .scene-crosswalk { height: 70px; width: 50px; }
}
