* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #1e1028;
    color: #f0ece4;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: #b89fd4;
    transition: color 0.3s;
}

a:hover {
    color: #f0ece4;
}

.lien {
    text-decoration: underline;
    color: #b89fd4;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 16, 40, 0.95);
    border-bottom: 1px solid #b89fd4;
    transition: transform 0.4s ease;
}

#navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    width: 100%;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #b89fd4;
    color: #f0ece4;
    font-size: 1.4em;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}

#nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 18px 20px;
    margin: 0;
}

#nav-links li a {
    color: #f0ece4;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
    white-space: nowrap;
}

#nav-links li a:hover,
#nav-links li a.active {
    color: #b89fd4;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 70px;
    background-color: #1e1028;
}

.section-alt {
    background-color: #251535;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.accueil-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.accueil-left {
    flex: 0 0 280px;
    text-align: center;
}

.photo-auteur {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(184, 159, 212, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-auteur:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(184, 159, 212, 0.7);
}

.click-hint {
    margin-top: 15px;
    font-size: 0.95em;
    color: #b89fd4;
    font-style: italic;
    opacity: 1;
    text-align: center;
    background-color: rgba(184, 159, 212, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    animation: bounceHint 1.5s infinite;
}

.hint-mobile {
    display: none;
}

.hint-desktop {
    display: inline;
}

@keyframes bounceHint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.accueil-right {
    flex: 1;
    min-width: 0;
}

.accueil-right h1 {
    font-size: 2.5em;
    color: #b89fd4;
    margin-bottom: 5px;
    text-decoration: underline;
    line-height: 1.2;
}

.accueil-right h2 {
    font-size: 1.3em;
    color: #f0ece4;
    margin-bottom: 30px;
    font-weight: normal;
    font-style: italic;
    line-height: 1.4;
}

.bloc-texte {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #b89fd4;
    border-radius: 5px;
    padding: 20px 25px;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
    overflow-wrap: break-word;
}

.bloc-texte:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(184, 159, 212, 0.3);
    background-color: rgba(184, 159, 212, 0.08);
}

.bloc-texte ul {
    list-style: none;
    padding: 0;
}

.bloc-texte ul li {
    padding: 5px 0;
    font-size: 1em;
}

.bloc-texte ul li::before {
    content: "— ";
    color: #b89fd4;
}

.section-titre {
    font-size: 2em;
    color: #b89fd4;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 50px;
    letter-spacing: 2px;
    line-height: 1.3;
}

.livres-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.livre-card {
    perspective: 1000px;
    width: min(100%, 250px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livre-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(184, 159, 212, 0.3);
}

.livre-flip {
    position: relative;
    width: 100%;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
    cursor: pointer;
}

.livre-flip.flipped {
    transform: rotateY(180deg);
}

.livre-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.livre-recto {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #b89fd4;
}

.livre-verso {
    background-color: #2d1545;
    border: 1px solid #b89fd4;
    transform: rotateY(180deg);
    text-align: center;
    overflow-y: auto;
}

.livre-verso h3 {
    color: #b89fd4;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-decoration: underline;
    line-height: 1.4;
}

.livre-verso p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #f0ece4;
}

.couverture {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 5px;
    box-shadow: 3px 6px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.livre-hint {
    font-size: 0.85em;
    color: #b89fd4;
    font-style: italic;
    margin-top: 8px;
    opacity: 1;
    text-align: center;
    background-color: rgba(184, 159, 212, 0.1);
    padding: 5px 8px;
    border-radius: 5px;
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.next-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #b89fd4;
    font-size: 1.1em;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    text-align: center;
}

.next-btn:hover {
    color: #f0ece4;
    transform: translateY(5px);
}

.next-btn .arrow {
    font-size: 1.5em;
    margin-top: 5px;
    animation: bounce 1.5s infinite;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-subtitle {
    color: #b89fd4;
    text-align: center;
    text-decoration: underline;
    font-size: 1.6em;
    line-height: 1.4;
    margin-bottom: 25px;
    min-height: 95px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.contact-content,
.form-content {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #b89fd4;
    border-radius: 10px;
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-content:hover,
.form-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 159, 212, 0.3);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    flex-wrap: nowrap;
}

.contact-label {
    color: #b89fd4;
    font-weight: bold;
    min-width: 180px;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.icon-social {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-social:hover {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 5px 10px rgba(184, 159, 212, 0.6));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #b89fd4;
    font-weight: bold;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #b89fd4;
    border-radius: 5px;
    padding: 12px 14px;
    color: #f0ece4;
    font-family: inherit;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(240, 236, 228, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f0ece4;
    box-shadow: 0 0 12px rgba(184, 159, 212, 0.35);
    background-color: rgba(184, 159, 212, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    background-color: #b89fd4;
    color: #1e1028;
    border: none;
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-submit:hover {
    background-color: #f0ece4;
    transform: translateY(-2px);
}

.contact-form-wrapper {
    display: flex;
    justify-content: center;
}

.contact-form-wrapper .form-content {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #b89fd4;
    border-radius: 10px;
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper .form-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 159, 212, 0.3);
}

.footer-v2 {
    background-color: #150a1e;
    color: #f0ece4;
    border-top: 1px solid #b89fd4;
    padding: 30px 20px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-icones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 35px;
}

.footer-icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0ece4;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-icon-link:hover {
    color: #b89fd4;
    transform: translateY(-2px);
}

.footer-emoji {
    font-size: 1.2em;
    flex-shrink: 0;
}

.footer-reseaux {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-copy {
    text-align: center;
    color: #b89fd4;
    font-size: 0.9em;
    border-top: 1px solid rgba(184, 159, 212, 0.3);
    padding-top: 15px;
    width: 100%;
}

.btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #b89fd4;
    color: #1e1028;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 3px 6px 11px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    background-color: #f0ece4;
    color: #1e1028;
    transform: translateY(-5px) scale(1.1);
}

@media screen and (max-width: 1024px) {
    .section {
        padding: 130px 20px 60px;
    }

    .accueil-content {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .accueil-left {
        flex: none;
    }

    .accueil-right {
        width: 100%;
    }

    .accueil-right h1,
    .accueil-right h2 {
        text-align: center;
    }

    .section-titre {
        font-size: 1.8em;
        margin-bottom: 35px;
    }

    #nav-links {
        gap: 14px;
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    #nav-links li a {
        font-size: 0.95em;
    }

    .livres-grid {
        gap: 25px;
    }

    .livre-card {
        width: min(100%, 230px);
    }

    .contact-subtitle {
        font-size: 1.4em;
        min-height: 110px;
    }

    .contact-content,
    .form-content {
        padding: 28px;
    }
}

@media screen and (max-width: 639px) {
    .section {
        min-height: auto;
        padding: 95px 15px 50px;
    }

    .section-inner {
        width: 100%;
    }

    .nav-container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 10px 12px;
        position: relative;
        min-height: 56px;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: 220px;
        background-color: rgba(30, 16, 40, 0.98);
        border: 1px solid #b89fd4;
        border-radius: 8px;
        padding: 15px;
        z-index: 1001;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    #nav-links.open {
        display: flex;
    }

    #nav-links li {
        width: 100%;
        list-style: none;
    }

    #nav-links li a {
        display: block;
        width: 100%;
        font-size: 0.95em;
        letter-spacing: 0.5px;
        color: #f0ece4;
        padding: 2px 0;
    }

    .accueil-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 28px;
    }

    .photo-auteur {
        max-width: 220px;
    }

    .click-hint {
        opacity: 1;
    }

    .accueil-right h1 {
        font-size: 1.9em;
        text-align: center;
    }

    .accueil-right h2 {
        font-size: 1.1em;
        margin-bottom: 20px;
        text-align: center;
    }

    .bloc-texte {
        padding: 16px 18px;
        font-size: 0.98em;
        line-height: 1.6;
    }

    .section-titre {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .livres-grid {
        gap: 20px;
    }

    .livre-card {
        width: min(100%, 260px);
    }

    .livre-flip {
        height: 340px;
    }

    .couverture {
        max-width: 150px;
    }

    .livre-verso h3 {
        font-size: 1em;
    }

    .livre-verso p {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-subtitle {
        font-size: 1.2em;
        min-height: auto;
        margin-bottom: 18px;
    }

    .contact-content,
    .form-content {
        padding: 20px 18px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 1em;
    }

    .contact-label {
        min-width: auto;
    }

    .icon-social {
        width: 32px;
        height: 32px;
    }

    .btn-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }

    .bloc-texte:hover,
    .livre-card:hover,
    .photo-auteur:hover,
    .contact-content:hover,
    .form-content:hover {
        transform: none;
        box-shadow: none;
    }

    .livre-hint {
        opacity: 1;
    }

    .hint-desktop {
        display: none;
    }

    .hint-mobile {
        display: inline;
    }

    .click-hint {
        font-size: 0.9em;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-icon-link {
        font-size: 0.95em;
    }
}

@media screen and (min-width: 640px) {
    .menu-toggle {
        display: none !important;
    }

    #nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 40px;
        width: auto;
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 18px 20px;
    }
}