/*
Theme Name: Gourmandise à Poil
Theme URI: https://gourmandiseapoil.fr
Author: Gourmandise à Poil
Author URI: https://gourmandiseapoil.fr
Description: Thème WordPress pour le site de recettes pour animaux "Gourmandise à Poil". Design girly et élégant avec palette rose et or.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gourmandises
*/

/* --- VARIABLES CSS --- */
:root {
    --pink-light: #fff0f3;
    --pink-medium: #ffccd5;
    --pink-deep: #ff4d6d;
    --gold: #d4af37;
    --text-dark: #4a4a4a;
    --text-soft: #707070;
    --white: #ffffff;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--pink-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: var(--text-dark);
}

h1 {
    font-family: 'Pacifico', cursive;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-style: italic;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: var(--pink-deep);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.4rem;
}

.logo a {
    color: var(--pink-deep);
    text-decoration: none;
}

.logo-image-link {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 50px;
    width: auto;
}

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

nav ul li {
    list-style: none;
}

nav a {
    color: var(--text-soft);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover,
nav .current-menu-item a,
nav .current_page_item a {
    color: var(--pink-deep);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pink-deep);
    cursor: pointer;
}

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

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 15px rgba(255, 77, 109, 0.1);
        gap: 15px;
    }

    nav ul.active {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.85);
    padding: 60px;
    border-radius: 50px 0 50px 0;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--pink-medium);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--pink-deep);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-soft);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 40px 20px;
    }

    .hero-overlay {
        padding: 30px;
    }

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

    .hero p {
        font-size: 1rem;
    }
}

/* --- BOUTON CHIC --- */
.btn-chic {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    padding: 15px 40px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-chic:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
    color: white;
}

/* --- CATEGORIES CERCLES --- */
.categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.cat-bubble {
    background: white;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 3px solid var(--pink-light);
    cursor: pointer;
    text-decoration: none;
}

.cat-bubble:hover {
    transform: translateY(-10px);
    border-color: var(--pink-deep);
}

.cat-bubble i {
    font-size: 2.5rem;
    color: var(--pink-deep);
    margin-bottom: 10px;
}

.cat-bubble span {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-soft);
}

@media (max-width: 768px) {
    .categories {
        gap: 20px;
        margin-top: -30px;
    }

    .cat-bubble {
        width: 120px;
        height: 120px;
    }

    .cat-bubble i {
        font-size: 2rem;
    }
}

/* --- CONTENU PRINCIPAL --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.section-header span {
    display: block;
    font-family: 'Pacifico', cursive;
    color: var(--gold);
    font-size: 1.5rem;
}

.section-header p {
    color: var(--text-soft);
    margin-top: 10px;
}

/* --- FOCUS COCHON D'INDE --- */
.guinea-pig-special {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
}

.gp-image {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.gp-content {
    flex: 1;
    padding: 50px;
    min-width: 300px;
}

.badge-new {
    background: var(--pink-deep);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.gp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.ingredient-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
}

.ingredient-list li i {
    color: var(--gold);
}

.tip-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
}

@media (max-width: 768px) {
    .gp-image {
        min-height: 250px;
    }

    .gp-content {
        padding: 30px;
    }
}

/* --- CARTE RECETTES --- */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: 0.4s;
    position: relative;
}

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

.card a {
    text-decoration: none;
    color: inherit;
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--pink-deep);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.85rem;
    margin: 15px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
}

.recipe-meta i {
    margin-right: 5px;
}

/* --- SECTION NEWSLETTER --- */
.newsletter-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 50px;
}

.newsletter-section i.section-icon {
    font-size: 3rem;
    color: var(--pink-deep);
    margin-bottom: 20px;
    display: block;
}

.newsletter-section h2 {
    margin-bottom: 10px;
}

.newsletter-section p {
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--pink-light);
    border-radius: 30px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--pink-medium);
}

.newsletter-form .btn-chic {
    padding: 15px 30px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form .btn-chic {
        width: 100%;
    }
}

/* --- FOOTER --- */
footer {
    background: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    border-top: 10px solid var(--pink-medium);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--pink-light);
    color: var(--pink-deep);
    border-radius: 50%;
    line-height: 40px;
    margin: 0 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--pink-deep);
    color: white;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.footer-copyright i {
    color: var(--pink-deep);
}

/* --- PAGE TEMPLATE --- */
.page-content {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.page-content h1 {
    color: var(--pink-deep);
    margin-bottom: 30px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- SINGLE RECETTE --- */
.single-recette-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.recette-hero {
    position: relative;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
}

.recette-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recette-hero .tag {
    position: absolute;
    top: 30px;
    right: 30px;
}

.recette-content {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.recette-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--pink-deep);
    margin-bottom: 20px;
}

.recette-meta-box {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--pink-light);
    border-radius: 15px;
}

.recette-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recette-meta-item i {
    color: var(--pink-deep);
    font-size: 1.2rem;
}

/* --- ARCHIVE RECETTES --- */
.archive-header {
    text-align: center;
    padding: 60px 20px;
}

.archive-header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: var(--pink-deep);
}

/* --- WORDPRESS SPECIFIQUES --- */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    font-style: italic;
    text-align: center;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination .current {
    background: var(--pink-deep);
    color: white;
}

.pagination a:hover {
    background: var(--pink-light);
}