* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* Animation fadeIn avec translateY */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-in-up.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.top-line {
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin-top: 15px;
    margin-bottom: 22px;
}

h1 {
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    line-height: 1.2;
}

/* Preserve desktop padding behavior */
@media (min-width: 992px) {
    .h1-container {
        padding-left: 0px !important;
    }
}

.hero-section {
    background: #e0e0e0;
    padding: 0;
    position: relative;
}

.hero-section .row {
    display: flex;
    align-items: center;
}

.prefecture-badge {
    position: absolute;
    left: -55px;
    top: 23px;
    z-index: 10;
    width: 80px;
    height: auto;
}

.blue-search-box {
    background: #165799;
    padding: 30px 30px 18px 30px;
    border-radius: 0;
    position: relative;
    margin-left: -31px;
    margin-top: 10px;
    padding-left: 80px;
}

.search-wrapper {
    max-width: 432px;
    width: 100%;
}

.stage-search .input-group {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: block;
    flex-grow: 1;
}

.input-wrapper input[type="text"].form-control {
    padding: 14px 12px 8px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    position: relative;
    z-index: 0;
    height: 46px;
    line-height: normal;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 100%;
    box-sizing: border-box;
}

.input-wrapper input[type="text"].form-control:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
    z-index: 1;
}

.input-wrapper .placeholder-label {
    position: absolute;
    top: 15px;
    left: 12px;
    font-size: 14px;
    line-height: 1.1;
    color: #999;
    pointer-events: none;
    transition: all .2s ease-out;
    background-color: transparent;
    padding: 0 4px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}

.input-wrapper input[type="text"].form-control:focus + .placeholder-label,
.input-wrapper.has-value .placeholder-label {
    top: 3px;
    left: 8px;
    font-size: 11px;
    color: #222;
    background-color: #fff;
    transform: translateY(0);
    z-index: 5;
    line-height: 1;
    padding: 0 4px;
    font-weight: 400;
}

.stage-search .input-group-btn {
    width: auto;
    flex-shrink: 0;
}

.stage-search .btn {
    font-weight: 700;
    height: 46px;
    font-size: 14px;
    line-height: 1.42857143;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

.hero-section form.stage-search button.btn-hero-search {
    font-size: 14px;
    background-color: #f94f1b;
    color: #fff;
    border: 1px solid #f94f1b;
    border-bottom: 3px solid #d63d0e;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease, border .15s ease, transform .1s ease;
}

.hero-section form.stage-search button.btn-hero-search:hover,
.hero-section form.stage-search button.btn-hero-search:focus,
.hero-section form.stage-search button.btn-hero-search:active {
    background-color: #fff;
    color: #f94f1b;
    border: 1px solid #f94f1b;
}

.hero-subtext {
    font-size: 12px;
    margin-top: -6px;
    opacity: .9;
    color: #fff;
    margin-left: 4px;
    margin-bottom:0;
}

.hero-links {
    margin-top: 20px;
    padding-top: 28px;
    margin-left: 28px;
}

.hero-links-mobile {
    display: none;
}

.hero-link-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 21px;
}

.hero-link-arrow {
    color: #000;
    margin-right: 8px;
    font-size: 16px;
}

.hero-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-link:hover {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.hero-link-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-link-note {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: none;
    margin-top: 4px;
}

.hero-link-text {
    display: inline;
}



.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 30px;
}

.hero-decoration {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.hero-decoration img {
    width: 100%;
    height: auto;
}

.section-title {
    font-size: 36px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.stages-info-section {
    background: #FAF7F4;
    padding: 40px 0;
    margin-top: 40px;
    margin-bottom: 40px;
    height: 640px;
    overflow: hidden;
    position: relative;
}

.stages-info-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.stages-info-text {
    flex: 1;
    margin-top: -100px;
}

.stages-info-text h2 {
    font-family: 'League Spartan', Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

.stages-info-text h2:not(:first-child) {
    margin-top: 61px;
}

.stage-duration-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.stage-duration-wrapper h2 {
    margin-top: 0 !important;
}

.stage-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
}

.stage-duration {
    background-color: #000000;
    color: #ffffff;
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px 1px;
    display: inline-block;
    text-transform: uppercase;
}

.stage-points {
    background-color: transparent;
    color: #000000;
    box-shadow: inset 0 0 0 1px #000000;
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px 1px;
    display: inline-block;
    text-transform: uppercase;
}

.stages-info-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
    max-width: 530px;
    text-align: justify;
    
}

.stages-info-text a {
    text-decoration: none;
    border-bottom: 1px solid #165799;
    color: #165799;
    font-weight: 400;
}

.stage-badge-outline {
    background-color: transparent;
    color: #000000;
    box-shadow: inset 0 0 0 1px #000000;
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px 1px;
    display: inline-block;
    text-transform: uppercase;
}



.stages-info-image {
    flex: 0 0 auto;
    margin-top: 0;
    position: relative;
}

.stages-info-image img {
    max-width: 350px;
    height: auto;
    position: relative;
    bottom: -50px;
}


@media (max-width: 991px) {
    .stages-info-section {
        height: auto;
        min-height: 375px;
        padding-top: 64px;
        padding-left: 15px;
        padding-right: 15px;
        max-height: 1175px;
    }
    
    .stages-info-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .stages-info-text {
        order: 1;
        margin-top: 0 !important;
    }
    
    .stages-info-text h2 {
        text-align: center;
    }
    
    .stages-info-text p {
        text-align: justify;
    }
    
    .stages-info-image {
        order: 2;
        text-align: center;
        margin-top: 0;
    }
    
    .stages-info-image img {
        max-width: 100%;
        height: auto;
    }
    
}

.legipermis-info-section {
    background: #ffffff;
    padding: 30px 0 80px 0;
    position: relative;
}

.legipermis-info-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.legipermis-logo-hero {
    height: 175px;
    width: auto;
    flex-shrink: 0;
}

.legipermis-logo-section-info {
    height: 150px;
    width: auto;
}

.legipermis-description {
    font-size: 22px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    font-weight: 400;
}

/* Desktop only: limit description width */
@media (min-width: 992px) {
    .legipermis-description {
        max-width: 750px;
    }
}

.legipermis-description strong {
    font-weight: 700;
    color: #000;
}

.stats-line-animation {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 200px;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 160px;
    pointer-events: none;
    z-index: 1;
}

/* Cacher le trait de la section LegiPermis sur mobile/tablette: affichage desktop uniquement */
@media (max-width: 991px) {
    .legipermis-info-section .stats-line-animation {
        display: none;
    }
}

.stats-line-path {
    /* Utilise une variable pour adapter la longueur du trait dynamiquement */
    stroke-dasharray: var(--line-length, 440);
    stroke-dashoffset: var(--line-length, 440);
    animation: drawLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: both;
    animation-play-state: paused;
    stroke-width: 0.28; /* 20% plus fin que 0.35 */
    vector-effect: non-scaling-stroke;
}

/* Flèche animée au bout du segment horizontal */
/* (flèche supprimée) */

/* Segment horizontal avec dégradé d'opacité */

@keyframes drawLine {
    0% {
        stroke-dashoffset: var(--line-length, 440);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.stats-animated .stats-line-path {
    animation-play-state: running;
}



.stats-ripple-dot {
    fill: #000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.stats-ripple-wave {
    fill: none;
    stroke: #000;
    stroke-width: 0.28; /* 20% plus fin que 0.35 */
    vector-effect: non-scaling-stroke;
    opacity: 0.6;
    transform-origin: center;
    transform-box: fill-box;
    pointer-events: none;
    animation: none; /* lancée via JS */
}

@keyframes rippleWave {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3.6); opacity: 0; }
}

/* Variante plus légère (utilisée pour la section législation) */
/* variante éventuelle conservée si besoin ultérieur */
@keyframes rippleWaveLight {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(3.6); opacity: 0; }
}

/* Effacement du trait supprimé selon la demande */

/* Transition douce sur les stats pour le fade final */
/* (styles de baisse d'opacité supprimés) */

.legipermis-stats {
    display: flex;
    justify-content: center;
    gap: 81px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

/* Barres séparatrices verticales entre les stats (desktop) */
@media (min-width: 992px) {
    .legipermis-stats { --stats-gap: 81px; }
    .legipermis-stats .stat-item { position: relative; }
    .legipermis-stats .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: calc(-0.5 * var(--stats-gap, 81px) - 1px);
        transform: translateY(-50%);
        width: 2px;
        height: 50px;
        background-color: rgba(110, 110, 115, 0.2);
    }
}

/* Masquer la première stat tant que son compteur n'a pas démarré */
#stat-stages.wait-counter {
    visibility: hidden;
}

.stat-item {
    text-align: center;
}

/* (barre verticale supprimée) */

/* (animation de barre supprimée) */

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: 'League Spartan', Arial, sans-serif;
}

.stat-label {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 400;
    line-height: 1.4;
}

.stat-label a {
    color: #165799;
    text-decoration: none;
    border-bottom: 1px solid #165799;
    font-weight: 400;
    transition: all 0.3s ease;
}

.stat-label a:hover {
    color: #0d3d6d;
    border-bottom-color: #0d3d6d;
}

.animated-avis {
    display: inline-block;
    min-width: 48px; /* réserver l'espace pour éviter le shift */
    text-align: right; /* aligner les chiffres côté sommet */
}

.fade-in-stat {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fade-in-stat.visible {
    opacity: 1;
}

.number-container {
    display: inline-block;
    position: relative;
}

.number-placeholder {
    visibility: hidden;
    display: inline-block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: inherit;
}

.animated-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: inherit;
}

.number-container-small .number-placeholder,
.number-container-small .animated-number {
    font-size: inherit;
}

.stat-number {
    white-space: nowrap;
    font-family: 'League Spartan', Arial, sans-serif;
}

.stat-years,
.stat-years-text {
    font-weight: 600;
}

.animated-decimal {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-block;
    min-width: 40px;
    text-align: right;
}

.stat-rating-max {
    font-size: 18px;
    margin-left: 2px;
}

@media (max-width: 991px) {
    .legipermis-info-section {
        padding: 40px 15px 80px 15px;
        display: block;
        margin-top: 40px;
    }
    
    .legipermis-info-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .legipermis-logo-hero {
        height: 90px;
        margin: 0 auto;
        display: block;
    }
    
    .legipermis-description {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .legipermis-description.fade-in-up {
        opacity: 1;
        transform: translateY(0);
    }
    
    .stats-line-animation {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
        transform: none;
        top: 130px;
        height: 180px;
    }
    
    .legipermis-stats {
        flex-direction: column;
        gap: 45px;
        margin-top: 40px;
    }
    
    .stat-rating-max {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    /* Pas de styles spécifiques nécessaires pour mobile */
}


/* Supprimé - Ces styles sont maintenant dans @media (max-width: 991px) unifié */

@media (max-width: 991px) {
    h1 {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 32px;
        line-height: 1.1;
    }
    
    .h1-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .hero-section .col-xs-12 {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-section .col-xs-12:first-child {
        padding: 0;
        order: 2;
    }
    
    .hero-section .col-xs-12:last-child {
        order: 1;
    }
    
    .hero-links-desktop {
        display: none;
    }
    
    .hero-links-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #e0e0e0;
        padding: 37px 15px 37px 0px;
        margin: 0;
    }
    
    .hero-links-mobile .hero-link-wrapper {
        display: flex;
        align-items: baseline;
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin-bottom: 21px;
    }
    
    .hero-links-mobile .hero-link-wrapper:last-child {
        margin-bottom: 0;
    }

    .hero-links-mobile .hero-link {
        text-align: center;
    }

    .hero-links-mobile .hero-link-content {
        align-items: center;
    }

    .hero-links-mobile .hero-link-note {
        text-align: center;
    }
    
    .blue-search-box {
        margin-left: 0;
        margin-top: 0px;
        padding-top: 32px;
        padding-bottom: 36px;
        padding-left: 20px;
        padding-right: 20px;
        position: relative;
        margin-left:-15px; 
        margin-right:-15px;
    }
    
    .search-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-control {
        min-width: 100%;
    }
    
    
    .prefecture-badge {
        position: absolute;
        top: auto !important;
        bottom: -27px !important;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        z-index: 10;
    }
}

/* Reassurance Section Styles */
.reassurance-section {
    margin-top: 84px;
    margin-bottom: 42px;
}

.reassurance-section .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 100px;
}

.reassurance-list {
    list-style: none;
    padding-left: 21px;
    margin: 0;
    position: relative;
}

.reassurance-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.5px;
    height: 0;
    background-color: #00000091;
    transition: height 1s ease-out;
}

.reassurance-list.animate-border::before {
    height: 100%;
}

.reassurance-list li {
    display: flex;
    align-items: center;
    margin-bottom: 17px;
}

.reassurance-list li:last-child {
    margin-bottom: 0;
}

.reassurance-list li .img-container {
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.reassurance-list li span {
    flex: 1;
    text-align: left;
    font-size: 15px;
    line-height: 1.3;
}

.reassurance-list li img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.reassurance-list li:first-child img {
    width: auto;
    height: 34px;
}

.reassurance-item.ekomi-col a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.reassurance-item.ekomi-col a div.ekomi-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reassurance-item.ekomi-col a div.ekomi-content img.logo-ekomi-reass {
    width: 69px;
    height: 69px;
    flex-shrink: 0;
}

.ekomi-rating {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#reassurance-stars {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

#reassurance-rating {
    text-align: left;
    font-size: 13px;
    color: #000;
    text-decoration: none;
    margin: -5px 0 0 8px;
    line-height: 17px;
    font-weight: 400;
}

.ekomi-col a,
.ekomi-col a:hover {
    text-decoration: none;
}

@media (min-width: 992px) {
    .reassurance-section .row {
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .reassurance-item {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .reassurance-item.payment-col {
        margin-top: 0;
        margin-left: 0;
    }
    
    .reassurance-item.ekomi-col {
        margin-top: 0;
        margin-left: 0;
    }
    
    .reassurance-item.logo-col {
        margin-left: 0;
        margin-top: 0;
    }
    
    /* Ajuster la hauteur de la liste pour l'alignement parfait */
    .reassurance-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}


@media (max-width: 991px) {
    .reassurance-list {
        margin-left: -32px;
        padding-left: 28px;
    }
    
    .reassurance-section {
        margin-bottom: 0;
    }
    
    .reassurance-section .row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .reassurance-item.ekomi-col a {
        display: flex;
        align-items: center;
    }
    
    .reassurance-item.ekomi-col a div.ekomi-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .reassurance-item.ekomi-col a div.ekomi-content img.logo-ekomi-reass {
        width: 58px;
        height: 58px;
        flex-shrink: 0;
    }
    
    .ekomi-rating {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    #reassurance-stars {
        text-align: left;
        line-height: 1;
    }
    
    #reassurance-rating {
        text-align: left;
        margin: 2px 0 0 6px;
        font-size: 11.5px;
        line-height: 1.2;
    }
}

/* Prefecture Info Section */
.prefecture-info-section {
    background: #D6D6F5;
    padding: 80px 0;
    margin-top: 60px;
    margin-bottom: 0;
    position: relative;
}

.prefecture-info-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.prefecture-info-left {
    flex: 1;
}

.prefecture-info-left h2 {
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.3;
}

.prefecture-info-section .section-subtitle {
    font-size: 10.7px;
    color: #000;
    margin-bottom: 21px;
    font-weight: 400;
    text-align: left;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid #000;
    padding: 1px 10px 1px;
    letter-spacing: 1px;
}

.prefecture-info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-top: 35px;
    margin-bottom: 0;
    text-align: justify;
    max-width: 550px;
}

.prefecture-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prefecture-info-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
}

.prefecture-info-list li:last-child {
    margin-bottom: 0;
}

.prefecture-info-list .list-arrow {
    color: #000;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.prefecture-info-list a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: inline;
}

.prefecture-info-list a:hover {
    color: #165799;
    border-bottom-color: #165799;
}

.prefecture-info-right {
    flex: 0 0 auto;
}

.prefecture-building {
    width: 260px;
    height: auto;
}

@media (max-width: 991px) {
    .prefecture-info-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .prefecture-info-left h2 {
        font-size: 24px;
        text-align: center;
    }

    .prefecture-info-section .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: table;
    }
    
    .prefecture-building {
        width: 300px;
    }
}

@media (max-width: 991px) {
    .prefecture-info-section {
        padding: 80px 15px;
        margin-top: 40px;
        margin-bottom: 0;
    }
    
    .prefecture-info-left h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .prefecture-info-list li {
        margin-bottom: 20px;
        display: block;
        padding-left: 25px;
        position: relative;
    }
    
    .prefecture-info-list .list-arrow {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .prefecture-info-list a {
        font-size: 15px;
        display: inline;
    }
    
    .prefecture-info-right {
        display: none;
    }
    
    .prefecture-building {
        width: 250px;
        display: block;
        margin: 0 auto;
    }
}

/* Prefecture Logo Border */
.prefecture-logo-border {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 6px 10px;
    z-index: 10;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

.logo-legipermis-border {
    width: 150px;
    height: auto;
    display: block;
}

/* Section liste des liens des villes pour les stages */
.liste-liens-villes-stages {
    margin: 120px 0;
}

/* Guides Section Styles */
.guides-section {
    background: #FFF;
    padding: 40px 0;
    position: relative;
    margin-top: 90px;
}

.guides-section .container {
    overflow: visible;
    position: relative;
}

.guides-section .section-subtitle {
    font-size: 10.7px;
    color: #000;
    margin-bottom: 21px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 0 0 0.7px rgb(0, 0, 0);
    padding: 1px 10px 1px;
    letter-spacing: 1px;
}

.guides-section .section-title {
    font-family: 'League Spartan', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
    text-align: center;
}

.guides-section .section-header {
    display: block;
    margin-bottom: 21px;
    padding: 0 20px;
    text-align: center;
}

.guides-slider-wrapper {
    position: relative;
    margin: 0;
    padding: 20px 60px 40px 60px;
    overflow: hidden;
    cursor: grab;
    margin-left: -40px;
    margin-right: -40px;
}

.guides-slider-wrapper.dragging {
    cursor: grabbing;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(6, calc(33.333% - 20px));
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.guide-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
    position: relative;
    border: 1px solid #ECECEC;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background-color: #165799;
    z-index: 1;
}

@media (min-width: 992px) {
    .guide-card {
        cursor: pointer;
    }
}

.guide-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    background: #fff;
}

.guide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.guide-placeholder::before {
    content: "";
    width: 80px;
    height: 80px;
    background: url('/templates/blue/img/logo-legipermis.png#') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

.guide-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-title {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
}

.guide-title a {
    color: #165799;
    text-decoration: underline;
    text-decoration-color: #165799;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    display: inline;
}

.guide-title a:hover {
    color: #165799;
    text-decoration: underline;
    text-decoration-color: #165799;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.guide-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.guide-button {
    display: inline-block;
    background: #ffffff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.guide-button:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* Slider Navigation */
.guides-section .slider-navigation {
    display: none;
}

/* Position des boutons par-dessus le carrousel */
.guides-slider-wrapper {
    position: relative;
}

.guides-slider-wrapper .slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 48px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.guides-slider-wrapper .slider-nav-prev {
    left: 0px; /* Positionner plus à l'extrémité gauche du carrousel */
}

.guides-slider-wrapper .slider-nav-next {
    right: 0px; /* Positionner plus à l'extrémité droite du carrousel */
}

.guides-slider-wrapper .slider-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
}

.guides-slider-wrapper .slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.guides-slider-wrapper .slider-nav-btn svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* Taille des SVG sur tablette */
@media (max-width: 991px) {
    .guides-slider-wrapper .slider-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Slider Pagination */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #165799;
    width: 24px;
    border-radius: 4px;
}

/* Responsive Design for Guides */
/* Tablette - 2 éléments visibles */
@media (max-width: 991px) {
    .guides-grid {
        grid-template-columns: repeat(6, calc(50% - 12.5px));
    }
    
    .guides-section .section-header {
        padding: 0 20px;
    }
    
    .guides-slider-wrapper {
        padding: 20px 20px 40px 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Boutons sur tablette */
    .guides-slider-wrapper .slider-nav-btn {
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .guides-slider-wrapper .slider-nav-prev {
        left: 10px;
    }
    
    .guides-slider-wrapper .slider-nav-next {
        right: 10px;
    }
}

/* Mobile - 1 élément visible, pas de boutons */
@media (max-width: 768px) {
    /* Sur mobile, cacher les boutons car le scroll tactile est plus naturel */
    .guides-slider-wrapper .slider-nav-btn {
        display: none;
    }
    
    .guides-section {
        padding: 60px 0 0px;
        margin-top: 40px;
    }
    
    .guides-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .guides-section .section-subtitle {
        padding-left: 8px;
        padding-right: 8px;
        text-align: center;
        text-transform: uppercase;
        display: table;
        margin-left: auto;
        margin-right: auto;
    }
    
    .guides-section .section-title {
        font-size: 36px;
        margin-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    
    .guides-section .section-header {
        margin-bottom: 30px;
        align-items: center; /* center alignment on mobile */
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Boutons cachés sur mobile - déjà géré plus haut */
    
    /* Supprimé - règle générique qui créait un conflit */
    
    .guides-slider-wrapper {
        margin: 0;
        padding: 10px 0 30px 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }
    
    .guides-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .guides-grid {
        grid-template-columns: repeat(6, 80vw);
        gap: 15px;
        padding: 0 calc(10vw - 7.5px);
        scroll-snap-type: x mandatory;
        scroll-padding: 0 calc(10vw - 7.5px);
    }
    
    .guide-card {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    
    .guide-image {
        height: 200px;
    }
    
    .guide-content {
        padding: 20px;
    }
    
    .guide-title {
        font-size: 18px;
    }
    
    .guide-description {
        font-size: 14px;
    }
    
    .slider-pagination {
        display: none;
    }
}

@media (max-width: 480px) {
    .guides-section .section-title {
        font-size: 28px;
    }
    
    .guides-grid {
        grid-template-columns: repeat(6, 85vw);
        padding: 0 calc(7.5vw - 7.5px);
        scroll-padding: 0 calc(7.5vw - 7.5px);
    }
    
    .guide-image {
        height: 180px;
    }
    
    .guide-content {
        padding: 15px;
    }
    
    .guide-title {
        font-size: 16px;
    }
    
    .guide-description {
        font-size: 13px;
    }
    
    /* Modifications pour très petit mobile */
    .input-wrapper .placeholder-label {
        display: none;
    }
    
    .input-wrapper::after {
        content: "Tapez votre CP ou ville";
        position: absolute;
        top: 15px;
        left: 12px;
        font-size: 14px;
        line-height: 1.1;
        color: #999;
        pointer-events: none;
        transition: all .2s ease-out;
        background-color: transparent;
        padding: 0 4px;
        white-space: nowrap;
        max-width: calc(100% - 24px);
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 3;
    }
    
    .input-wrapper:focus-within::after,
    .input-wrapper.has-value::after {
        top: 3px;
        left: 8px;
        font-size: 11px;
        color: #222;
        background-color: #fff;
        transform: translateY(0);
        z-index: 5;
        line-height: 1;
        padding: 0 4px;
        font-weight: 400;
    }
    
    .hero-section form.stage-search button.btn-hero-search {
        font-size: 12px;
    }
}

/* Section législation info */
.legislation-info-section {
    padding: 50px 0;
    background-color: #fff;
    margin-top: 100px;
    margin-bottom: -50px;
    position: relative;
    z-index: 2; /* s'assurer que le trait peut passer visuellement au-dessus de la section suivante */
}

.legislation-info-section p {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 22px;
    color: #222;
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    padding: 30px 0;
}

@media (max-width: 768px) {
    .legislation-info-section p {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Forcer le poids du mot "LegiPermis" dans l'intro législation */
.legislation-info-section .brand-legipermis {
    font-weight: 400;
}

.legislation-info-section p::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: rgba(110, 110, 115, 0.2);
    top: 0;
}

/* Trait vertical et ripple */
.legislation-line-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0; /* ajusté dynamiquement en JS sous le texte */
    width: 100px;
    height: 0; /* ajusté dynamiquement en JS */
    pointer-events: none;
    z-index: 3; /* au-dessus du contenu de la section elle-même */
}

.legislation-line-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.legislation-line-path {
    /* longueur injectée en JS selon le tracé réel */
    stroke-dasharray: var(--leg-line-length, 200);
    stroke-dashoffset: var(--leg-line-length, 200);
    animation: drawLegislationLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-play-state: paused;
    opacity: 0;
    /* pendant l'animation, le trait est noir */
    stroke: #000;
    stroke-width: 0.28; /* 20% plus fin que 0.35 */
    vector-effect: non-scaling-stroke;
}

@keyframes drawLegislationLine {
    0% { stroke-dashoffset: var(--leg-line-length, 200); opacity: 0; }
    5% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Ripple pour la législation: on réutilise .stats-ripple-* et @keyframes rippleWave */

.legislation-line-path.animate {
    animation-play-state: running;
}

/* Opacité réduite pour le point et l'onde dans la section législation */
.legislation-info-section .stats-ripple-dot { opacity: 1; }
.legislation-info-section .stats-ripple-wave { opacity: 1; }

/* Après le traçage de l'encadré, on atténue le trait + disque */
.legislation-info-section.dimmed .legislation-line-path { stroke: rgba(0,0,0,0.5); }
.legislation-info-section.dimmed .stats-ripple-dot { opacity: 0.5; }
.legislation-info-section.dimmed .stats-ripple-wave { opacity: 0.5; }

/* Encadré animé pour "Référence" (guides-section) */
.guides-section .section-subtitle {
    position: relative;
    box-shadow: none; /* pas d'encadré au départ */
}

.guides-section .section-subtitle .subtitle-border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none; /* désactivé au profit d'un tracé CSS plus fiable sur Safari */
}

.guides-section .section-subtitle .subtitle-border-rect {
    fill: none;
    stroke: #000;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    /* dasharray/offest seront définis en JS selon la taille réelle */
}

/* Utilisé sur Safari: tracer via path pour éviter les imprécisions de rect */
.guides-section .section-subtitle .subtitle-border-path {
    fill: none;
    stroke: #000;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
    stroke-linejoin: miter;
    stroke-linecap: butt;
    stroke-miterlimit: 2;
}

/* Nouveau tracé via 4 segments CSS pour une netteté parfaite (notamment Safari) */
.guides-section .section-subtitle .subtitle-border-side {
    position: absolute;
    background: #000;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.25s ease-in-out;
    transform: translateZ(0);
}

.guides-section .section-subtitle .subtitle-border-top,
.guides-section .section-subtitle .subtitle-border-bottom {
    height: 1px;
    width: 100%;
    left: 0;
    transform: scaleX(0);
}

.guides-section .section-subtitle .subtitle-border-top { top: 0; }
.guides-section .section-subtitle .subtitle-border-bottom { bottom: 0; }

.guides-section .section-subtitle .subtitle-border-left,
.guides-section .section-subtitle .subtitle-border-right {
    width: 1px;
    height: 100%;
    top: 0;
    transform: scaleY(0);
}

.guides-section .section-subtitle .subtitle-border-left { left: 0; }
.guides-section .section-subtitle .subtitle-border-right { right: 0; }

/* Origines pour un tracé qui suit le cadre */
.guides-section .section-subtitle .subtitle-border-top { top: 0; transform-origin: left center; }
.guides-section .section-subtitle .subtitle-border-right { right: 0; transform-origin: center top; }
.guides-section .section-subtitle .subtitle-border-bottom { bottom: 0; transform-origin: right center; }
.guides-section .section-subtitle .subtitle-border-left { left: 0; transform-origin: center bottom; }

/* Déclenchement animé (séquentiel: 4 x 250ms = 1s) */
.guides-section .section-subtitle.subtitle-border-animate .subtitle-border-top { transform: scaleX(1); transition-delay: 0s; }
.guides-section .section-subtitle.subtitle-border-animate .subtitle-border-right { transform: scaleY(1); transition-delay: 0.25s; }
.guides-section .section-subtitle.subtitle-border-animate .subtitle-border-bottom { transform: scaleX(1); transition-delay: 0.5s; }
.guides-section .section-subtitle.subtitle-border-animate .subtitle-border-left { transform: scaleY(1); transition-delay: 0.75s; }

/* l'onde utilisera une keyframe dédiée (voir JS), on garde ici les styles par défaut */
