*,
*:before,
*:after {
  box-sizing: border-box;
}

@font-face {
    font-family: 'Junicode';
    src: url('fonts/Junicode.ttf');
}

@font-face {
    font-family: 'ATypewriter';
    src: url('fonts/ATypewriter.ttf');
}


body {
    font-family: 'ATypewriter', monospace, sans-serif;
    font-size: 1.2rem;
    color: #0D0D0D;
    line-height: 1.6;
    background-color: #EDEDED;
    overflow-x: hidden;
    padding-top: 130px; 
    cursor: url('images/cursor/cursor4.png'), auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    
}

h1, h2, h3 {
    font-family: 'Junicode', serif, sans-serif;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #EDEDED;
    z-index: 1000;
    border-bottom: 2px solid #0D0D0D;
    transition: box-shadow 0.3s ease;
}

.logo-corner {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 1001;
}

.logo-corner h1 {
    font-size: 1.8rem;
    margin: 0;
    
}

.logo-corner h1 a {
    color: #0D0D0D;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-corner h1 a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.nav-bar {
    font-family: 'Junicode', monospace, sans-serif;
    display: flex;
    justify-content: center;
    
    padding: 15px 20px;
    border-bottom: 1px solid #0D0D0D;
    flex-wrap: wrap;
}

.nav-bar a {
    color: #0D0D0D;
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.3s;
    margin: 0 15px;
}

.nav-bar a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.scrolling-banner {
    width: 100%;
    overflow: hidden;
    background-color: #0D0D0D;
    color: #EDEDED;
    padding: 7px 0;
    position: relative;
    max-width: 100vw;
    
}

.scrolling-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
}

.scrolling-content span {
    display: inline-block;
    padding: 0 20px;
    font-size: 1.2rem;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.carousel-container {
   position: relative;
    width: 100%;
    max-width: 1500px;     
    margin: 60px auto 20px auto;  
    padding: 10px;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
}

.carousel-item {
    height: 320px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-right: 30px;
    width: auto;
}

.carousel-item img {
    width: auto; 
    height: 100%; 
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.carousel-item:last-child {
    margin-right: 0; 
}

.book-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(237, 237, 237, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 10px;
    padding: 20px;
}

.carousel-item:hover .book-overlay {
    opacity: 1;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.carousel-item:hover img {
    opacity: 0;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.book-overlay h3 {
    font-family: 'Junicode', serif, sans-serif;
    font-size: 1.4rem;
    margin: 0;
    color: #0D0D0D;
    line-height: 1.3;
}

.book-overlay .book-author {
    font-family: 'ATypewriter', monospace, sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: #0D0D0D;
    font-style: italic;
}

.book-overlay .book-price {
    font-family: 'ATypewriter', monospace, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0D0D0D;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: #0D0D0D;
    border: none;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    opacity: 0.9;
    
}

.carousel-btn:hover {
    cursor: url('images/cursor/cursor4.png'), auto;
    background-color: rgba(255, 255, 255, 0);
    transform: scale(1.02);
}

.carousel-btn:disabled {
    cursor: url('images/cursor/cursor4.png'), auto;
    opacity: 0.2;
}

.carousel-btn-left {
    cursor: url('images/cursor/cursor4.png'), auto;
    left: 25px;
}

.carousel-btn-right {
    cursor: url('images/cursor/cursor4.png'), auto;
    right: 25px;
}

p a {
    font-family: 'ATypewriter', monospace, sans-serif;
    color: #0D0D0D;
    text-decoration: underline;
    transition: opacity 0.3s;
}

p a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}


.main-content {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
    padding: 0 20px;
}

.description {
    text-align: center;
    margin: 60px 0 20px 0;
}

.description h2 {
    font-size: 2.5rem;
}

.description p {
    font-size: 1.2rem;
}

.italic {
  font-style: italic;
  padding: 0 7%;
  max-width: 100%;
  font-size: 0.9rem;
    box-sizing: border-box;

}

.welcome-content {
    padding: 40px 0;
    text-align: left;
}

.welcome-content h2 {
    margin-bottom: 10px;
}

.welcome-content h3 {
    margin-bottom: 15px;
    font-style: italic;
}

.welcome-content p {
    margin-top: 20px;
}

.random-images {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 60px 0;
}

.random-link {
    position: absolute;
    transition: transform 0.3s;
}

.random-link:hover {
    transform: scale(1.05);
    cursor: url('images/cursor/cursor4.png'), auto;
}

.random-link img {
    width: 150px;
    height: auto;
}

.content-with-image {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
}

.content-with-image img {
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

.content-with-image{
    padding: 0px;
}

.text-content p {
    margin: 0px;
    
}

.links-container {
    display: flex;
    justify-content: center;
    padding: 10px 30px;
    gap: 20px;
    flex-wrap: wrap; 
    margin: 10px 20px;
    transition: all 0.3s;
}

.links-container :hover {
    transform: scale(1.05);
    cursor: url('images/cursor/cursor4.png'), auto;
}

.links-container .logo-reseaux img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s;
}

.content-with-image.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.content-with-image.three-columns img {
    width: 90%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.content-with-image.three-columns .text-content {
    grid-column: 1 / -1;
    margin-top: 10px;
}

footer {
    font-family: 'ATypewriter', monospace, sans-serif;
    color: #0D0D0D;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    border-top: 2px solid #0D0D0D;
    background-color: #EDEDED;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer .links-container {
    margin: 0;
    padding: 0;
    gap: 15px;
}


footer p {
    margin: 0;
}

footer a {
    font-family: 'ATypewriter', monospace, sans-serif;
    color: #0D0D0D;
    text-decoration: underline;
    font-size: 1rem;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}


@media (max-width: 1200px) {
    body {
        padding-top: 175px;
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .fixed-header {
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }

    .logo-corner {
        position: static;
        text-align: center;
        padding: 12px 15px;
        border-bottom: 2px solid #0D0D0D;
    }

    .logo-corner h1 {
        font-size: 1.8rem;
    }

    .nav-bar {
        gap: 20px;
        padding: 12px 20px;
    }

    .nav-bar a {
        font-size: 1.25rem;
    }

    .scrolling-content span {
        font-size: 1rem;
        padding: 0 15px;
    }

    .carousel-container {
        padding: 0 55px;
        margin: 35px auto;
    }

    .carousel-item {
        height: 290px;
        margin-right: 20px;
    }

    .carousel-track {
        gap: 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .carousel-btn-left {
        left: 8px;
    }

    .carousel-btn-right {
        right: 8px;
    }

    .book-overlay h3 {
        font-size: 1.2rem;
    }

    .book-overlay .book-author {
        font-size: 1rem;
    }

    /* Contenu */
    .main-content {
        max-width: 90%;
        
        padding: 0 20px;
        box-sizing: border-box;
    }

    .description {
        margin: 45px 0 30px 0;
        padding: 0 20px;
    }
    
    .description p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .description h2 {
        font-size: 2rem;
        text-align: center;
    }

    .italic {
        padding: 0 5%;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .content-with-image {
        gap: 25px;
    }

    .content-with-image img {
        max-width: 250px;
    }

    .welcome-content {
        padding: 30px 0;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .welcome-content h3 {
        font-size: 1.1rem;
    }

    .welcome-content p {
        font-size: 1.05rem;
    }

    .random-images {
        height: 300px;
        margin: 45px 0;
    }

    .random-link img {
        width: 120px;
    }
    
    .content-with-image.three-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Footer */
    footer {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.95rem;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 680px) {
    body {
        padding-top: 60px;
        font-size: 1.05rem;
        line-height: 1.75;
        overflow-x: hidden;

    }

    .fixed-header {
        padding-top: 5px;
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
        position: static;
        overflow-x: hidden;
    }
    
    .logo-corner {
        position: fixed;
        text-align: center;
        padding: 10px 0;
        border-bottom: 2px solid #0D0D0D;
        top: 0;
        left: 0;
        right: 0;
        background-color: #EDEDED;
        z-index: 1001;
    }

    .logo-corner h1 {
        font-size: 1.5rem;
    }

    .nav-bar {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 8px;
        padding: 5px 15px 5px 35px;
        margin: 0;
        padding-left: 20px;
        font-size: 1.2rem;
        box-sizing : border-box;
        
    }

    .nav-bar a {
        font-size: 1.1rem;
        padding: 5px 0;
        width: 100%;
        text-align: left;
        border-bottom: 2px solid #0D0D0D;
        box-sizing: border-box;
    
    }
    
    .nav-bar a:last-child {
        border-bottom: none;
        padding: 2px 0;
    }

    .scrolling-content span {
        font-size: 0.80rem;
        padding: 0 12px;
        
    }

    .scrolling-banner {
        position: relative;
        padding: 5px 0;
        line-height: 1.2;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .carousel-container {
        padding: 0 40px;
        margin: 25px auto;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .carousel-item {
        height: 230px;
        margin-right: 15px;
    
    }

    .carousel-track {
        gap: 15px;
        padding: 15px 0;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }

    .carousel-btn-left {
        left: 5px;
    }

    .carousel-btn-right {
        right: 5px;
    }

    .book-overlay {
        padding: 15px;
    }

    .book-overlay h3 {
        font-size: 1.05rem;
    }

    .book-overlay .book-author {
        font-size: 0.9rem;
    }

    .main-content {
        max-width: 90%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .description {
        margin: 35px 0 25px 0;
        padding: 0 15px;
    }

    .description h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .description p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .italic {
        padding: 0 15px;
        font-size: 0.9rem;
        line-height: 1.8;
        text-align: justify;
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-with-image img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }

    .welcome-content {
        padding: 25px 0;
    }

    .welcome-content h2 {
        font-size: 1.3rem;
    }

    .welcome-content h3 {
        font-size: 1rem;
    }

    .welcome-content p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: justify;
    }

    .random-images {
        height: 220px;
        margin: 35px 0;
    }

    .random-link img {
        width: 90px;
    }
    
     .content-with-image.three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-with-image.three-columns img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    footer {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        box-sizing: border-box;
        text-align: center;
    }

    footer a {
        font-size: 0.9rem;
    }
}