/* ============================================================
   assets/style/style.css
   Transhumanism Watch - Styles principaux
   ============================================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Navigation Bar ---------- */
.navbar {
    background-color: #1a1a2e;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo / Brand */
.logo {
    color: #e94560;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}
.logo span {
    color: #ffffff;
    font-weight: 300;
}

/* ---------- Menu (Liste) ---------- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: #e94560;
    color: #ffffff;
}

/* ---------- Dropdown ---------- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #16213e;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-content a {
    padding: 10px 20px;
    font-weight: 400;
    color: #c0c0c0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #e94560;
    color: #ffffff;
    border-radius: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ---------- Contenu principal (Hero) ---------- */
main {
    flex: 1;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    color: #1a1a2e;
    font-size: 3rem;
    font-weight: 700;
}

.hero .highlight {
    color: #e94560;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #444;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.6;
}

.hero .description {
    font-size: 1rem;
    color: #777;
}

/* ---------- Cartes d'aperçu (features) ---------- */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #e94560;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 1.3rem;
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
footer {
    background-color: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* ---------- Responsive : Mobile ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #0f0f1f;
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }
}


/* ============================================================
   FOOTER COMPLET
   ============================================================ */

/* --- Footer principal --- */
.site-footer {
    background-color: #1a1a2e;
    color: #c0c0c0;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 3px solid #e94560;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

/* --- Colonnes du footer --- */
.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
    padding-bottom: 0.4rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #e94560;
    padding-left: 4px;
}

/* --- Réseaux sociaux --- */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #c0c0c0;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.social-links a:hover {
    background: #e94560;
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Newsletter --- */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter-form input[type="email"] {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s;
}

.newsletter-form input[type="email"]:focus {
    border-color: #e94560;
}

.newsletter-form input[type="email"]::placeholder {
    color: #777;
}

.newsletter-form button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    background: #e94560;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.newsletter-form button:hover {
    background: #d63851;
    transform: scale(1.02);
}

/* --- Recherche --- */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s;
}

.search-form input[type="search"]:focus {
    border-color: #e94560;
}

.search-form input[type="search"]::placeholder {
    color: #777;
}

.search-form button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #c0c0c0;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.search-form button:hover {
    background: #e94560;
    color: #ffffff;
}

/* --- Copyright et mentions légales --- */
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-bottom .legal-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom .legal-links a:hover {
    color: #e94560;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-bottom .legal-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}


/* ============================================================
   STYLES SPÉCIFIQUES À LA PAGE "WHAT IS TRANSHUMANISM?"
   (Ajouté à la fin de style.css)
   ============================================================ */

/* --- Hero / header de la page --- */
.page-hero {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    border-bottom: 2px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 2rem;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}
.page-hero h1 .highlight {
    color: #e94560;
}
.page-hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 750px;
    margin: 0.5rem auto 0;
}

/* --- Conteneur principal --- */
.content-container {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

/* --- Blocs de texte --- */
.content-section {
    margin-bottom: 2.5rem;
}
.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #e94560;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}
.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}
.content-section p strong {
    color: #1a1a2e;
}
.content-section .highlight-text {
    color: #e94560;
    font-weight: 600;
}

/* --- Liste dans la section critique --- */
.content-section ul {
    padding-left: 1.5rem;
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}
.content-section ul li {
    margin-bottom: 0.3rem;
}

/* --- Citation / Bloc de mise en garde critique --- */
.quote-block {
    background: rgba(233, 69, 96, 0.05);
    border-left: 4px solid #e94560;
    padding: 1.2rem 1.8rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}
.quote-block p {
    font-style: italic;
    color: #444;
    margin: 0;
}
.quote-block .attribution {
    font-style: normal;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 0.5rem;
}

/* --- Grille des ressources (liens vers les autres pages) --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: #ffffff;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 3px solid #e94560;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.resource-card .icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    display: block;
}
.resource-card .label {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
}
.resource-card .desc {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.2rem;
}

/* --- Responsive pour cette page --- */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.1rem;
    }
    .content-section h2 {
        font-size: 1.5rem;
    }
    .content-section p {
        font-size: 0.98rem;
    }
    .content-section ul {
        font-size: 0.98rem;
    }
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .page-hero p {
        font-size: 1rem;
    }
}

/* --- Rubrique Key Words --- */
.keywords-section {
    margin-top: 1rem;
}
.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.keyword-tag {
    display: inline-block;
    background: #f0f0f5;
    color: #1a1a2e;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.keyword-tag:hover {
    background-color: #e94560;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.25);
}

@media (max-width: 480px) {
    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }
}

/* --- Rubrique Key Advocates --- */
.advocates-section {
    margin-top: 1rem;
}

.advocates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.advocate-card {
    background: #ffffff;
    padding: 1.4rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid #e94560;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advocate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.advocate-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.advocate-name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.advocate-name a:hover {
    color: #e94560;
    text-decoration: underline;
}

.advocate-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e94560;
    margin-bottom: 0.5rem;
}

.advocate-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.advocate-bio em {
    color: #1a1a2e;
}

.advocate-bio strong {
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .advocates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .advocate-card {
        padding: 1rem 1.2rem;
    }
    .advocate-name {
        font-size: 1.05rem;
    }
    .advocate-bio {
        font-size: 0.9rem;
    }
}


/* ============================================================
   STYLES SPÉCIFIQUES À LA PAGE BOOKS
   ============================================================ */

/* --- Hero / header de la page --- */
.page-hero {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    border-bottom: 2px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 2rem;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}
.page-hero h1 .highlight {
    color: #e94560;
}
.page-hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 680px;
    margin: 0.5rem auto 0;
}

/* --- Grille des livres --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
}

/* --- Carte individuelle --- */
.book-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    padding-bottom: 1.2rem;
    border: 1px solid #f0f0f5;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
    border-color: #e94560;
}

/* --- Image du livre --- */
.book-image {
    width: 100%;
    height: 260px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid #e94560;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback si l'image ne charge pas */
.book-image .no-image {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    padding: 1rem;
}

/* --- Informations du livre --- */
.book-info {
    padding: 1rem 0.8rem 0.5rem 0.8rem;
}

.book-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.book-author {
    font-size: 0.9rem;
    color: #e94560;
    font-weight: 600;
    margin: 0.2rem 0;
}

.book-publisher {
    font-size: 0.8rem;
    color: #888;
    margin: 0.2rem 0 0.3rem 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.1rem;
    }
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
        padding: 0 1rem;
    }
    .book-image {
        height: 200px;
    }
    .book-title {
        font-size: 0.95rem;
    }
    .book-author {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .book-image {
        height: 160px;
    }
    .book-title {
        font-size: 0.85rem;
    }
    .book-author {
        font-size: 0.75rem;
    }
    .book-publisher {
        font-size: 0.7rem;
    }
}

/* ============================================================
   STYLES SPÉCIFIQUES À LA PAGE CONTACT
   ============================================================ */

/* --- Conteneur du formulaire --- */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

/* --- Le formulaire --- */
.contact-form {
    background: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f5;
}

/* --- Grille pour les champs sur 2 colonnes --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- Groupes de champs --- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}

.form-group label .required {
    color: #e94560;
    margin-left: 0.2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e0e0e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafc;
    transition: border-color 0.25s, box-shadow 0.25s;
    color: #1a1a2e;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* --- Message de confirmation (caché par défaut) --- */
#form-message {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

#form-message.success {
    display: block;
    background: #e6f9ed;
    color: #1a7a3a;
    border-left: 4px solid #28a745;
}

#form-message.error {
    display: block;
    background: #fde8e8;
    color: #a12b2b;
    border-left: 4px solid #e94560;
}

/* --- Bouton d'envoi --- */
.contact-form .submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: #e94560;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.contact-form .submit-btn:hover {
    background: #d63851;
    transform: scale(1.02);
}

.contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}