/* Noctambus Eileen Sfreddo - 2026.06.03 */

body {
    font-family: "Comfortaa", sans-serif;
    color: white;
    background-image: url(img/fond.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;

}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(240, 248, 255, 0);
}

/* typographie =================================== */

h1 {
    font-size: 100px;
    margin: 0;
}

h2 {
    font-size: 34px;
    text-transform: uppercase;
    border-bottom: 2px yellow solid;
    margin: 0 0 25px 0;
    padding-bottom: 5px;
}

h3 {
    font-size: 34px;
    font-weight: bolder;
    border-bottom: 2px yellow solid;
    margin: 0;
    padding-bottom: 10px;
}

h4 {
    font-size: 35px;
    margin: 0 0 5px 0;
}

p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.chapeau {
    font-size: 20px;
}

a {
    color: white;
}

a:hover {
    color: yellow;
}

.chiffre-ligne {
    font-size: 180px;
    font-weight: bold;
    color: yellow;
}

.categorie-ligne {
    font-size: 18px;
    position: relative;
    top: -20px;
}

footer .chapeau {
    font-size: 16px;
}

.footer a {
    font-size: 16px;
}

/* intro ======================== */

.intro {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.intro a {
    display: block;
    font-size: 18px;
    width: fit-content;
    background-color: yellow;
    color: #0D234B;
    padding: 12px 22px;
    margin: 100px auto;
    border-radius: 40px;
    text-decoration: none;
    transition: padding .2s, margin .2s;
}

.intro a:hover {
    text-decoration: underline;
    font-weight: bold;
    margin: 97px auto;
    padding: 15px 25px;
}

.intro svg {
    margin-top: 100px;
    position: relative;
    top: 30px;
}

/* présentation ==================== */

#ancre-presentation {
    position: relative;
    top: -80px;
}

.presentation {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    max-height: 5000px;
}

.presentation div,
.presentation .video-container {
    width: 100%;
    position: relative;
}

button#play {
    background-color: #0D234B;
    font-family: "Comfortaa", sans-serif;
    border-radius: 20px;
    padding: 6px 15px;
    color: yellow;
    border: solid 2px yellow;
}

button#play:hover {
    font-weight: 900;
}

video {
    max-height: 400px;
}

.presentation video[poster] {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
    object-fit: cover;
    border-radius: 35px 0 0 35px;
}

.presentation .element-texte {
    background-color: #0d234b;
    border-radius: 35px;
    padding: 50px;
    box-sizing: border-box;
    z-index: 3;
    position: relative;
    left: -35px;
}

.presentation p {
    margin-bottom: 20px;
}

svg.path01 {
    position: absolute;
    top: -7px;
    left: 285px;
    z-index: 1;
    width: 12%;
}

svg.path02 {
    position: absolute;
    top: 0px;
    left: 410px;
    z-index: 1;
    width: 18%;
}

/* nb-lignes ========================== */

.nb-lignes .inner {
    display: flex;
    justify-content: space-around;
    margin: 140px auto;
}

.ligne {
    text-align: center;
}

/* avantages =========================== */

.avantages {
    margin-bottom: 100px;
}

.avantage {
    display: flex;
    align-items: end;
    gap: 55px;
    height: 500px;
    margin-bottom: 70px;
}

.avantage .capsule,
.avantage .element-texte {
    width: 50%;
    margin: 80px 0;
}

.avantage02 {
    flex-direction: row-reverse;
}

.avantage img {
    border-radius: 5px;
    width: 95%;
}

.capsule {
    position: relative;
}

.capsule img {
    filter: drop-shadow(5px 5px 5px #0000005a);
}

.avantage01 .capsule img,
.avantage03 .capsule img {
    position: absolute;
    bottom: 0;
    right: 0;
}

.avantage02 .capsule img {
    position: absolute;
    bottom: 0;
    left: 5;
}

/* capusle 01 */

.capsule01_etape01 {
    rotate: 6deg;
}

.capsule01_etape02 {
    rotate: -8deg;
}

.capsule01_etape03 {
    rotate: 0deg;
}

.capsule01_etape04 {
    rotate: -4deg;
}

/* capusle 02 */

.capsule02_etape01 {
    rotate: 6deg;
}

.capsule02_etape02 {
    rotate: -8deg;
}

.capsule02_etape03 {
    rotate: 0deg;
}

.capsule02_etape04 {
    rotate: -4deg;
}

/* capusle 03 */

.capsule03_etape01 {
    rotate: 6deg;
}

.capsule03_etape02 {
    rotate: -8deg;
}

.capsule03_etape03 {
    rotate: 0deg;
}

.capsule03_etape04 {
    rotate: -4deg;
}


/* infos pratiques ======================= */

.infos {
    background-color: #0D234B;
    border-radius: 35px;
    padding: 50px 50px 70px 50px;
    margin-bottom: 150px;
    box-sizing: border-box;
}

.infos h2 {
    border: none;
}

details {
    border-bottom: yellow solid 2px;
}

details#first {
    border-top: yellow solid 2px;
}

details div {
    padding: 20px;
    padding-bottom: 50px;
}

details img {
    width: 75%;
}

details p {
    width: 50%;
}

summary {
    font-size: 23px;
    font-weight: light;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* design du marker du detail ( ressource -> https://css-tricks.com/using-styling-the-details-element/ )"*/

summary {
    position: relative;
    anchor-name: --summary;

    &::marker {
        content: "";
    }

    &::before,
    &::after {
        content: "";
        border-block-start: 3px solid #ffff00;
        height: 0;
        width: 1rem;

        /* Positions des lignes */
        inset-block-start: 50%;
        inset-inline-end: 2%;

        /* ancre la forme au summary */
        position: absolute;
        position-anchor: --summary;
        position-area: top end;
    }

    /* Rotate just the ::after line to create a "+"" shape */
    &::after {
        transform: rotate(90deg);
        transform-origin: 50%;
    }
}

/* Rotation de la ligne quand l'accordéon s'ouvre */
details[open] summary::after {
    transform: rotate(0deg);
}

/* design des listes des lignes  */

details ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

details ul li {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    list-style: none;
    width: 20px;
    text-align: center;
    padding: 4px 8px;
    background-color: red;
    border-radius: 30px;
}

.bus-noir {
    color: black;
}

/* tickets */

.plus-infos {
    font-weight: bolder;
    margin-top: 25px;
}

.plus-infos a {
    color: yellow;
}


/* footer ============================================ */

footer {
    padding-bottom: 100px;
}

.footer-top {
    display: flex;
    gap: 25px;
    padding-bottom: 80px;
    border-bottom: solid yellow 2px;
}

.col01 {
    width: 66%;
}

.col02 {
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    top: 15px;
}

.footer-bottom .socials {
    width: fit-content;
    margin: 80px auto;
    display: flex;
    gap: 20px;
    height: 70px;
}

.footer-bottom img {
    width: 60px;
    transition: width .2s;
}

.footer-bottom img:hover {
    width: 70px;
}