/* =================================
   VARIABLES CSS
================================= */
:root {
    /* Couleurs principales */
    --primary-blue: #006DB7;
    --primary-yellow: #F4CA3C;
    --sky-blue: #3DB7EA;

    /* Couleurs de texte */
    --text-dark: #667085;
    --text-light: #0D0007;
    --subtitle-color: #292929;
    --paragraph-color: #525252;

    /* Couleurs de fond */
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Autres */
    --link-blue: #0065B0;
    --border-color: #e0e0e0;

    /* Espacements */
    --section-padding: 50px;
    --section-margin: 50px;

    /* Typographie */
    --font-primary: 'Sansation', sans-serif;
    --font-secondary: 'Helvetica', sans-serif;
    --font-tertiary: 'Roboto', sans-serif;
}

/* =================================
   RESET & BASE
================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#apropos h2,
#titre-acces h2,
#responsabilites h2,
#sanctions h2,
#tarification h2,
#documents h2 {
    margin-top: 800 !important;
}


body {
    font-family: var(--font-primary), var(--font-secondary), Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* =================================
   UTILITAIRES
================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content {
    margin: var(--section-margin);
}

.row-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.column-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-blue {
    color: var(--primary-blue);
}

.text-content {
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-tertiary);
    font-weight: 400;
    line-height: 1.6;
}

strong {
    font-family: var(--font-secondary);
    font-size: 14px;
}

/* Sections communes */
section {
    scroll-margin-top: 100px;
    
}

/* =================================
   HERO BANNER
================================= */
.hero-banner {
    background: linear-gradient(rgba(0, 85, 150, 0.75), rgba(0, 85, 150, 0.75)),
        url('../images/badge.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-weight: 700;
}

/* =================================
   BREADCRUMB
================================= */
.breadcrumb {
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-family: sans-serif;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb span {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 12px;
    color: var(--text-dark);
}

/* =================================
   MENU NAVIGATION - DESKTOP/TABLETTE
================================= */
.internal-menu {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    /* 45px (topbar) + 68px (navbar) */
    z-index: 900;
    padding: 1rem 0;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.1);
    background: var(--white);
    text-align: center;
    margin-bottom: 1rem;
   
}




@media (max-width: 992px) {
    .internal-menu {
        top: 105px;
        /* Ajustement pour tablettes si le header change */
    }
}

/* Menu horizontal (desktop/tablette) */
.internal-menu-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.internal-menu-horizontal a {
    position: relative;
    padding: 0 1.25rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.internal-menu-horizontal a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 2px;

}

.internal-menu-horizontal a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.internal-menu-horizontal a:hover::after {
    width: 70%;
}

.internal-menu-horizontal a.active {
    color: var(--white);
}

.internal-menu-horizontal a.active::after {
    display: none;
}

/* Plan de la page (caché sur desktop, visible sur mobile) */
.plan-page {
    display: none;
}

.plan-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #F5C400;
    color: #333;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.plan-dropdown-toggle:hover {
    background: #e5b932;
}

.plan-dropdown-toggle .arrow {
    transition: transform 0.3s ease;
}

.plan-dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.plan-dropdown-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.plan-dropdown-menu.show {
    max-height: 500px;
}

.plan-dropdown-menu ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.plan-dropdown-menu li {
    margin: 0;
}

.plan-dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.plan-dropdown-menu li:first-child a {
    color: #006DB7;
    font-weight: 500;
}

.plan-dropdown-menu a:hover {
    background: #f9f9f9;
    color: #006DB7;
}

/* =================================
   PUNCTUATION
================================= */
.punctuation {
    font-size: 3.5rem;
    line-height: 0;
    vertical-align: middle;
    color: var(--primary-blue);
}

.punctuation-middle {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
}

.responsability-text.row-items p {
    text-align: justify;
}

/* =================================
   SUBTITLES & TITLES
================================= */
.subtitle-about-ticket,
.subtitle-title-access {
    font-size: 15px;
    color: var(--subtitle-color);
    font-family: var(--font-tertiary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.subtitle-title-access {
    color: var(--white);
}

.subtitle-title-access .punctuation {
    color: var(--sky-blue);
}

.title-about-ticket,
.title-tarif {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
}

.nb-tarif {
    margin-top: 30px;
    padding: 0.5rem 5px;
    border: 1px solid var(--primary-blue);
    border-radius: 5px;
    background-color: #0065B01A;
}

.nb-tarif p {
    color: var(--paragraph-color);
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
}

/* =================================
   SECTION À PROPOS
================================= */
#apropos {
    margin: var(--section-margin);
}

.about-ticket {
    display: grid;
    grid-template-columns: minmax(300px, 500px) 1fr;
    gap: 3rem;
    align-items: start;
}

.about-ticket-image {
    width: 100%;
}

.ticket-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-ticket-text {
    display: flex;
    flex-direction: column;
}

.about-ticket-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
    margin: 0.5rem 0 1rem;
}

.about-ticket-text p,
.about-ticket-text ul {
    color: var(--paragraph-color);
    line-height: 1.7;
    text-align: justify !important;
}

.about-ticket-text ul {
    padding-left: 1.5rem;
}

.about-ticket-text ul li {
    margin-bottom: 0.5rem;
}

/* =================================
   SECTION TITRES D'ACCÈS
================================= */
#titre-acces {
    width: 100%;
    margin: 0;
    padding: var(--section-margin);
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--sky-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-access {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
}

.typa-title-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    /* max-width: 1200px; */
    margin-bottom: 1.5rem;
}

.acceess-title-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.acceess-title-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.last-access-title-content {
    background: var(--primary-blue);
    color: var(--white);
}

.title-type,
.last-title-type {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-light);
}

.last-title-type {
    color: var(--white);
}

.title-content {
    color: var(--paragraph-color);
    line-height: 1.6;
    flex-grow: 1;
}

.last-access-title-content .title-content {
    color: rgba(255, 255, 255, 0.9);
}

/* Boutons */
.btn-read-more,
.last-btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content;
}

.btn-read-more {
    background: var(--primary-yellow);
    color: var(--text-light);
}

.last-btn-read-more {
    background: var(--sky-blue);
    color: var(--white);
}

.btn-read-more:hover {
    background: #e5b932;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 202, 60, 0.4);
}

.last-btn-read-more:hover {
    background: #2da5d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 183, 234, 0.4);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-read-more:hover .arrow-icon,
.last-btn-read-more:hover .arrow-icon {
    transform: translateX(4px);
}

/* =================================
   SECTION RESPONSABILITÉS
================================= */
#responsabilites {
    margin: var(--section-margin);
}

#sanctions {
    margin: var(--section-margin);
}

.responsability-section {
    display: grid;
    grid-template-columns: minmax(300px, 500px) 1fr;
    gap: 4rem;
    align-items: start;
    margin: 3rem 0;
}

.responsability-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.responsability-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.responsability-text h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
}

.responsability-text span {
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-secondary);
    font-weight: 600;
    display: block;
}

.responsability-text p {
    color: var(--paragraph-color);
    line-height: 1.7;
}

.responsability-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.responsability-text ul li {
    color: var(--paragraph-color);
    line-height: 1.7;
}

/* =================================
   SECTION TARIFICATION
================================= */
#tarification {
    margin: var(--section-margin);
}

.pricing-ticket {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-info {
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-tertiary);
    max-width: 800px;
    text-align: center;
    line-height: 1.7;
    margin: 1rem 0 2rem;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grille-tarifaire {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    background: var(--white);
}

.grille-tarifaire thead {
    background: var(--primary-blue);
    color: var(--white);
}

.grille-tarifaire th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 300;
}

.grille-tarifaire tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.grille-tarifaire tbody tr:hover {
    background: var(--bg-light);
}

.grille-tarifaire tbody tr:last-child {
    border-bottom: none;
}

.grille-tarifaire td {
    padding: 1.25rem 1.5rem;
    color: var(--subtitle-color);
    font-weight: 100;
    font-family: var(--font-secondary);
}

.grille-tarifaire tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* =================================
   SECTION DOCUMENTS
================================= */
#documents {
    margin: var(--section-margin);
}

.documents-ticket {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.documents-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
}

.document-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.document-item:hover {
    background: var(--bg-light);
}

.document-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 109, 183, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.document-icon i {
    color: var(--primary-blue);
}

.document-info p {
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--primary-blue);
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}


/* =================================
   RESPONSIVE - TABLETTES
================================= */
@media (max-width: 992px) {
    :root {
        --section-margin: 50px;
    }

    .about-ticket,
    .responsability-section {
        gap: 2rem;
    }

    .about-ticket-text p,
    .about-ticket-text ul {
        text-align: justify !important;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 200px;
    }

    .hero-banner h1 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
}

@media (max-width: 992px) {
    :root {
        --section-margin: 50px 2rem;
    }

    .about-ticket,
    .responsability-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-ticket-image,
    .responsability-img {
        max-width: 100%;
        justify-self: center;
    }

    .typa-title-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 150px;
    }

    .hero-banner h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
}

/* =================================
   RESPONSIVE - MOBILE (MENU DÉROULANT)
================================= */
@media (max-width: 768px) {
    :root {
        --section-margin: 30px 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Cacher le menu horizontal */
    .internal-menu-horizontal {
        display: none;
    }

    /* Afficher le plan-page (accordéon mobile) */
    .plan-page {
        display: block;
        width: 100%;
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
    }

    /* Header accordéon mobile */
    .plan-page h3 {
        font-size: 1rem;
        background: #F5C400;
        color: #333;
        margin: 0;
        padding: 12px 16px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .plan-page h3::after {
        content: '\f077';
        /* chevron-up */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .plan-page.collapsed h3::after {
        transform: rotate(180deg);
    }

    .plan-page>ul {
        text-align: left;
        max-height: 1000px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fff;
    }

    .plan-page.collapsed>ul {
        max-height: 0;
    }

    .plan-page>ul>li {
        padding: 12px 16px;
        border-left: none;
    }

    .plan-page>ul>li:last-child {
        border-bottom: none;
    }

    .plan-page>ul>li>a {
        display: block;
        font-weight: 400;
        color: #333;
        text-decoration: none;
        font-size: 15px;
    }

    .plan-page>ul>li.active>a,
    .plan-page>ul>li:first-child>a {
        color: #006DB7;
        font-weight: 500;
    }

    .plan-page>ul>li>a:hover {
        color: #006DB7;
    }

    .hero-banner {
        height: 150px;
        border-radius: 4px;
    }

    .breadcrumb {
        font-size: 14px;
    }

    .punctuation {
        font-size: 2.5rem;
    }

    .about-ticket,
    .responsability-section {
        gap: 1.5rem;
    }

    #titre-acces {
        padding: 2rem 1rem;
    }

    .acceess-title-content {
        padding: 1.5rem;
    }

    .btn-read-more,
    .last-btn-read-more {
        width: 100%;
        font-size: 14px;
    }

    .document-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .document-icon {
        margin: 0 auto;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .grille-tarifaire {
        width: auto;
        min-width: 0;
    }

    .grille-tarifaire th,
    .grille-tarifaire td {
        padding: 1rem 0.75rem;
        font-size: 14px;
    }

    .responsability-section {
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 120px;
    }

    .hero-banner h1 {
        font-size: 1.5rem !important;
        letter-spacing: 1px;
    }

    .breadcrumb {
        font-size: 11px;
        gap: 1px;
    }

    .plan-dropdown-toggle {
        font-size: 14px;
        padding: 0.5rem 3.5rem;
    }

    .acceess-title-content {
        padding: 1.25rem;
    }

    .subtitle-about-ticket,
    .subtitle-title-access {
        font-size: 13px;
    }
}

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

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

.about-ticket,
.responsability-section,
.pricing-ticket,
.documents-ticket {
    animation: fadeIn 0.6s ease-out;
}

/* =================================
   IMPRESSION
================================= */
@media print {

    .internal-menu,
    .breadcrumb,
    .btn-read-more,
    .last-btn-read-more,
    .btn-download {
        display: none;
    }

    .hero-banner {
        height: auto;
        padding: 2rem;
    }

    section {
        page-break-inside: avoid;
    }
}