/*
Theme Name: Domaine des Loups Légendaires
Author: Élevage Canin
Description: Thème 100% sur-mesure pour l'élevage de Malinois et Bergers Allemands.
Version: 1.1
*/

/* Reset & Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #222222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

a {
    color: #d4af37; /* Couleur Or */
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: #000000;
    border-bottom: 2px solid #d4af37;
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Masquer le bouton burger et la checkbox sur ordinateur */
.menu-toggle,
.hamburger {
    display: none;
}

/* Footer */
footer {
    background-color: #000000;
    color: #ffffff;
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 50px;
}

footer p {
    color: #ffffff;
}

/* Container des icônes sociales */
.social-icons {
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.social-icons a {
    color: #b59410;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: #ffffff;
}

/* ==========================================================
   PAGE D'ACCUEIL - STYLES SUR MESURE
   ========================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-or {
    background-color: #d4af37;
    color: #000000;
    border: 2px solid #d4af37;
}

.btn-or:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #d4af37;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.85)), url('images/logo.png') center/contain no-repeat;
    background-color: #121212 !important;
    padding: 100px 0;
    text-align: center;
    border-bottom: 2px solid #d4af37;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    padding: 80px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #000000;
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-grid-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 480px;
    margin: 0 auto;
}

.about-grid-photos img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 2px solid #d4af37;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.about-grid-photos img:hover {
    transform: scale(1.03);
}

/* Races Section */
.races-section {
    background-color: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.races-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.race-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.race-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.race-card h3 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.race-card p {
    color: #aaaaaa;
}

/* ==========================================================
   PAGE REPRODUCTEURS
   ========================================================== */

.page-header {
    text-align: center;
    padding: 50px 20px 20px 20px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #111111;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header p {
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

.reproducteurs-section {
    padding-bottom: 80px;
}

.section-subtitle {
    font-size: 1.6rem;
    color: #111111;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
    margin-bottom: 30px;
    display: inline-block;
}

.dogs-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dog-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    max-height: 380px;
}

.dog-image {
    position: relative;
    width: 40%;
    height: 380px;
    flex-shrink: 0;
    overflow: hidden;
}

.dog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dog-card:hover {
    transform: translateY(-5px);
}

.dog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #000000;
    color: #d4af37;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #d4af37;
    z-index: 2;
}

.dog-info {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dog-info h3 {
    font-size: 1.4rem;
    color: #111111;
    margin-bottom: 5px;
}

.dog-titles {
    color: #b8860b;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.dog-details {
    list-style: none;
    margin-bottom: 10px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
}

.dog-details li {
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 4px;
}

.dog-desc {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 30px;
}

.dog-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    padding-top: 10px;
}

.footer-left,
.footer-right {
    color: #333333 !important;
    font-weight: bold;
}

/* ==========================================================
   PAGE CHIOTS & PORTÉES
   ========================================================== */

.chiots-section {
    padding-bottom: 80px;
}

.portee-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.portee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.portee-header h3 {
    font-size: 1.4rem;
    color: #111111;
}

.status-badge {
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
}

.status-dispo {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceebd5;
}

.status-attente {
    background-color: #feefc3;
    color: #b06000;
    border: 1px solid #fde293;
}

.portee-parents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.parent-box {
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #d4af37;
    color: #333333;
}

.portee-details {
    list-style: none;
    margin-bottom: 25px;
}

.portee-details li {
    margin-bottom: 8px;
    color: #444444;
}

.btn-outline-dark {
    background-color: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.btn-outline-dark:hover {
    background-color: #111111;
    color: #ffffff;
}

.litter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.litter-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.litter-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.litter-gallery img:hover {
    transform: scale(1.03);
}

/* ==========================================================
   PAGE CONTACT
   ========================================================== */

.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2, .contact-form-card h2 {
    font-size: 1.6rem;
    color: #111111;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: inline-block;
}

.contact-details {
    list-style: none;
    margin: 25px 0;
}

.contact-details li {
    margin-bottom: 20px;
    color: #444444;
    line-height: 1.5;
}

.contact-details a {
    color: #b8860b;
    font-weight: bold;
}

.legal-box {
    background-color: #f9f9f9;
    border-left: 3px solid #d4af37;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.legal-box h3 {
    font-size: 1.1rem;
    color: #111111;
    margin-bottom: 10px;
}

.legal-box p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 4px;
}

/* Formulaire */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #222222;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #ffffff;
}

.btn-block {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* ==========================================================
   GESTION DU MENU BURGER & RESPONSIVE MOBILE
   ========================================================== */
@media (max-width: 992px) {

    /* 1. Masquer la checkbox physiquement tout en restant fonctionnelle */
    .menu-toggle {
        display: none !important;
    }

    /* 2. Afficher et styliser le bouton burger (les 3 traits) */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #d4af37;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation des 3 traits en "X" quand le menu est ouvert */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 3. Masquer le menu de navigation par défaut sur mobile */
    .nav-flex nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 20px 0;
        border-bottom: 2px solid #d4af37;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    /* 4. Afficher le menu uniquement lorsque la checkbox est cochée */
    .menu-toggle:checked ~ nav {
        display: block !important;
    }

    /* Alignement des liens dans le menu déroulant */
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }

    .social-icons {
        display: none;
    }

    /* Adaptations des grilles */
    .about-grid, 
    .races-grid, 
    .contact-grid, 
    .litter-card, 
    .portee-parents {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .dog-card {
        flex-direction: column;
        max-height: none;
    }

    .dog-image {
        width: 100%;
        height: 250px;
    }

    .dog-info {
        width: 100%;
    }
}