/* --- GLOBAL --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: "SF NS", sans-serif;
    font-weight: 400;
    font-stretch: 100%;
    font-optical-sizing: auto;
    color: #333;
    line-height: 1.6;
}

/* --- CONTAINER GÉNÉRAL AVEC MARGES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER TOP (Email & Réseaux Sociaux) --- */
.header-top {
    background: #fff2e1;
    font-size: 16px;
    color: #555;
    width: 100%;
    padding: 20px 0; /* Padding ajouté en haut */
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Email (sans gras) --- */
.contact-info a {
    color: #333;
    text-decoration: none;
}

/* --- Icônes des réseaux sociaux --- */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-icons img:hover {
    opacity: 0.7;
}

/* --- HEADER PRINCIPAL (Logo & Navigation) --- */
.header-main {
     background: #fff;
    border-bottom: 2px solid #ddd;
    position: relative;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo (avec ratio 883/375 ajusté) --- */
.logo img {
    width: 235px;
    height: auto;
}

/* --- MENU PRINCIPAL --- */
nav {
    display: flex;
    align-items: center;
}

/* --- Liens du menu desktop --- */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b88a44;
}

/* --- Bouton "Publier avec nous" (visible sur desktop) --- */
.btn-header {
    display: inline-block;
    padding: 12px 18px;
    background: #b88a44;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-left: 40px; /* Espacement ajouté pour éviter qu'il touche le menu */
}

.btn-header:hover {
    background: #916d30;
}

/* --- MENU BURGER (Mobile) --- */
@media (max-width: 768px) {
    /* Cacher le menu par défaut */
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 60px; /* Place le menu sous le bandeau blanc */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: white; /* Fond blanc */
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Empêche tout clic sur le menu masqué */
    }

    /* Affichage du menu lorsque le burger est cliqué */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Rend les liens interactifs */
    }

    /* Liens du menu mobile */
    .nav-links li {
        display: block;
    }

    .nav-links a {
        font-size: 22px;
        color: #333; /* Texte noir */
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
        display: block;
        padding: 10px 0;
    }

    .nav-links a:hover {
        color: #b88a44;
    }

    /* Bouton burger : bien placé dans le bandeau blanc */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 26px;
        color: #333;
        background: none;
        border: none;
        outline: none;
        z-index: 1001;
        position: absolute;
        top: 20px; /* Aligné avec le logo */
        right: 20px;
    }

    /* Effet croix quand le menu est actif */
    .menu-toggle.active::before {
        content: "✖";
        font-size: 32px;
        color: #333;
    }

    /* Cacher le bouton "Publier avec nous" en dehors du menu mobile */
    .btn-header {
        display: none;
    }

    /* Afficher "Publier avec nous" DANS le menu mobile */
    .nav-links::after {
        content: "";
        display: block;
        height: 20px;
    }

    .nav-links li:last-child {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links li:last-child .btn-header {
        display: block;
        text-align: center;
        background: #b88a44;
        color: white;
        padding: 12px 18px;
        font-size: 20px;
        font-weight: bold;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s ease;
        width: 80%;
    }

    .nav-links li:last-child .btn-header:hover {
        background: #916d30;
    }
}

/* --- Cacher le bouton burger sur les écrans larges --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}


/* --- COLLER LE FOOTER EN BAS DE PAGE --- */
.main-content {
    flex: 1;
}

/* --- FOOTER --- */
footer {
    background: #f4f4f4;
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-top: auto;
    width: 100%;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .container p {
   margin: 0 !important;
    padding: 0 !important;
}

/* --- Liens du footer --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links li {
    display: inline-block;
}

/* Trait de séparation entre Presse et Mentions Légales */
.footer-links .separator {
    color: #999;
    font-weight: bold;
}

/* Style des liens */
.footer-links a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #b88a44;
}

.footer p {
    margin: 0 !important;
    padding: 0 !important;
}


/* --- FORMULAIRE DE CONTACT --- */
.contact-section {
    max-width: 600px;
    margin: 50px auto; /* Ajout d'espace en haut et en bas */
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-section h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 16px;
    color: #666;
}

/* --- MESSAGES DE CONFIRMATION & ERREURS --- */
.message {
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    text-align: left;
    margin: 20px 0;
    font-family: "Arial", sans-serif; /* Typo différente */
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- FORMULAIRE --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form label {
    font-weight: bold;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background: #b88a44;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #916d30;
}

/* --- MISE EN AVANT DU MESSAGE POUR LES MANUSCRITS --- */
.manuscript-info {
    background: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #b88a44;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.manuscript-info a {
    color: #b88a44;
    font-weight: bold;
    text-decoration: none;
}

.manuscript-info a:hover {
    text-decoration: underline;
}

/* --- PAGE PUBLIER AVEC NOUS --- */
.publish-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.publish-section h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.publish-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.publish-instructions,
.file-requirements,
.additional-info {
    text-align: left;
    margin-bottom: 30px;
}

.publish-instructions h2,
.file-requirements h2,
.additional-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #b88a44;
}

.email-highlight {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.email-highlight a {
    color: #b88a44;
    text-decoration: none;
}

.email-highlight a:hover {
    text-decoration: underline;
}

.file-requirements ul {
    padding-left: 20px;
    font-size: 16px;
}

.file-requirements ul li {
    margin-bottom: 8px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-publish {
    background: #b88a44;
    color: white;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-publish:hover {
    background: #916d30;
}

/* --- PAGE NOS SERVICES --- */
.services-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.services-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.service {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.service h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #b88a44;
}

.no-bullets {
    padding-left: 0;
    font-size: 16px;
    list-style: none; /* Supprime les puces */
}

.no-bullets li {
    margin-bottom: 10px;
    font-weight: normal;
}

.btn-service {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    background: #b88a44;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-service:hover {
    background: #916d30;
}

/* --- PAGE LES ÉDITIONS PANAJACHEL --- */
.about-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* --- SECTION INTRODUCTION (Les éditions Panajachel) --- */
.intro-section {
    background: white; /* FOND BLANC PUR */
    padding: 20px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Contenu centré avec une largeur limitée pour un rendu élégant */
.intro-content {
    max-width: 700px;
}

/* --- Titre stylisé avec soulignement fin --- */
.intro-content h2 {
    font-size: 32px;
    color: #222;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.intro-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #b88a44;
    margin: 8px auto 0 auto;
}

/* --- Texte plus aéré et léger --- */
.intro-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* --- Bouton épuré et classe --- */
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: none;
    border: 2px solid #b88a44;
    color: #b88a44;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #b88a44;
    color: white;
}

/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
    .intro-section {
        padding: 60px 15px;
    }

    .intro-content h2 {
        font-size: 28px;
    }

    .intro-content p {
        font-size: 16px;
    }
}

/* Bloc d'introduction stylisé */
.intro-block {
    background: #f7f7f7;
    padding: 20px;
    border-left: 4px solid #b88a44;
    border-radius: 5px;
    font-size: 18px;  /* Uniformisation */
    font-style: italic;
    color: #555;
    font-family: "Georgia", serif; /* Police serif */
    margin-bottom: 30px;
        line-height: 1.6;

}

.signature {
    text-align: right;
    font-size: 16px; /* Uniformisation */
    font-style: normal;
    font-family: "Georgia", serif; /* Police serif */
    margin-top: 15px;
}

.about-content {
    margin-bottom: 30px;
}

.about-content h2 {
    font-size: 20px;
    color: #b88a44;
    margin-bottom: 10px;
}

.about-content p {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
}

.faq-link {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.faq-link a {
    color: #b88a44;
    text-decoration: none;
}

.faq-link a:hover {
    text-decoration: underline;
}

/* --- PAGE FAQ --- */
.faq-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-section h1 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
}

.faq-intro {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.faq-container {
    border-top: 1px solid #ddd;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.faq-question::after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-top: 10px;
    font-size: 16px;
    color: #444;
}
.faq-section h2 {
    font-size: 22px;
    color: #b88a44;
    margin-top: 40px;  /* Ajoute un espace AU-DESSUS */
    margin-bottom: 10px; /* Réduit l'espace en dessous */
}

/* --- MENTIONS LÉGALES --- */
.legal-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.legal-section h1 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

.legal-section h2 {
    font-size: 20px;
    color: #b88a44;
    margin-top: 40px;
    margin-bottom: 10px;
}

.legal-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-section a {
    color: #b88a44;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* --- HERO BANNER (Bandeau sans superposition de texte) --- */
.hero-banner {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Remplit sans déformer */
}

/* --- TEXTE SÉPARÉ DU BANDEAU --- */
.hero-text {
    text-align: center;
    padding: 40px 20px;
    background: #f4f4f4; /* Fond léger pour démarquer du bandeau */
}

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.btn-primary {
    display: inline-block;
    padding: 12px 20px;
    background: #b88a44;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #916d30;
}

/* --- RÉSPONSIVE (ADAPTATION POUR MOBILE) --- */
@media (max-width: 768px) {
    .hero-text {
        padding: 30px 15px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 16px;
    }
}




/* --- SECTION DERNIÈRES PUBLICATIONS --- */
.latest-books {
    text-align: center;
    padding: 50px 20px;
}

.latest-books h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Conteneur des livres */
.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptatif */
    gap: 20px;
    justify-content: center;
}

/* Style de chaque livre */
.book-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

/* Effet léger au survol */
.book-item:hover {
    transform: translateY(-5px);
}

/* Images des livres */
.book-item img {
    width: 100%; /* Image responsive */
    max-width: 200px; /* Taille max */
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Bouton "Découvrir" */
.btn-secondary {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #555;
}

/* --- MEDIA QUERIES POUR MOBILE --- */
@media (max-width: 768px) {
    .books-container {
        grid-template-columns: 1fr; /* 1 livre par ligne sur mobile */
    }

    .book-item {
        padding: 20px;
    }
}


/* --- Icône Enveloppe Globale --- */
.fa-envelope {
    font-size: 18px; /* Taille uniforme */
    color: #fff; /* Icône en blanc */
    margin-right: 5px; /* Espacement entre l'icône et le texte */
    display: inline-block;
}


