/* ===========================================
   BONNE BOUFFE - Feuille de styles principale
   Couleurs : #f69581 (corail), #feeae3 (beige), #2c2c2c (texte)
   Polices : Playfair Display (titres), Nunito Sans (corps)
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #d4725c; text-decoration: none; transition: color .2s; }
a:hover { color: #b85a45; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; }

/* --- Utilitaires --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    background: #fff;
    border-bottom: 3px solid #f69581;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: 6px;
}

.main-nav .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav .nav-list a {
    font-weight: 600;
    font-size: .95rem;
    color: #2c2c2c;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #f69581;
    border-bottom-color: #f69581;
}

/* Menu toggle mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c2c2c;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: .3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ===========================================
   HERO
   =========================================== */
.hero {
    background: linear-gradient(135deg, #feeae3 0%, #fff5f0 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    color: #d4725c;
    margin-bottom: .75rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #feeae3;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #f69581;
    margin: .75rem auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* ===========================================
   CARDS (Grille d'articles)
   =========================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s;
}

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

.card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.card:hover .card-image-link img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    margin-bottom: .5rem;
    line-height: 1.4;
}

.card-body h3 a {
    color: #2c2c2c;
}

.card-body h3 a:hover {
    color: #d4725c;
}

.card-body p {
    font-size: .9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===========================================
   BOUTONS
   =========================================== */
.btn {
    display: inline-block;
    background: #f69581;
    color: #fff;
    padding: .75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .5px;
    transition: background .2s, transform .2s;
    border: 2px solid #f69581;
}

.btn:hover {
    background: #e07a65;
    border-color: #e07a65;
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: .5rem 1.25rem;
    font-size: .85rem;
}

.btn-outline {
    background: transparent;
    color: #f69581;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: #f69581;
    color: #fff;
}

/* ===========================================
   ARTICLE SINGLE
   =========================================== */
.breadcrumb {
    padding: 1rem 0;
    font-size: .85rem;
    color: #999;
}

.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #f69581; }
.breadcrumb .sep { margin: 0 .5rem; }

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    line-height: 1.3;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.article-hero-image {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* Contenu article */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #d4725c;
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #feeae3;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #2c2c2c;
    margin: 2rem 0 .75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: .5rem;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content strong {
    color: #2c2c2c;
}

.article-content a {
    color: #d4725c;
    border-bottom: 1px solid #feeae3;
    transition: border-color .2s;
}

.article-content a:hover {
    border-bottom-color: #d4725c;
}

/* Encadré ingrédients */
.ingredients-box {
    background: #feeae3;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid #f69581;
}

.ingredients-box h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #d4725c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ingredients-box ul {
    columns: 2;
    column-gap: 2rem;
}

.ingredients-box li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
    break-inside: avoid;
}

.ingredients-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f69581;
    font-weight: 700;
}

/* Étapes de préparation */
.steps-list {
    counter-reset: step;
}

.steps-list li {
    list-style: none;
    counter-increment: step;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: #f69581;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}

/* Encadré conseils */
.tip-box {
    background: linear-gradient(135deg, #fff5f0, #feeae3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid #f69581;
}

.tip-box h3 {
    color: #d4725c;
    margin-bottom: .5rem;
}

/* Cocon sémantique - liens internes */
.cocon-links {
    background: #feeae3;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 3rem 0 1rem;
}

.cocon-links h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #d4725c;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.cocon-links ul { margin: 0; }

.cocon-links li {
    list-style: none;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(214, 114, 92, .15);
}

.cocon-links li:last-child { border-bottom: none; }

.cocon-links a {
    color: #d4725c;
    font-weight: 600;
    font-size: .95rem;
}

/* Section articles liés */
.section-related {
    background: #f9f5f3;
    padding: 3rem 0;
}

/* ===========================================
   PAGE TITRE
   =========================================== */
.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.error-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 8rem;
    color: #feeae3;
    font-weight: 700;
    line-height: 1;
    margin: 1rem 0;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #f69581;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: .9rem;
    line-height: 1.6;
}

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

.footer-col a {
    color: #ccc;
    font-size: .9rem;
    transition: color .2s;
}

.footer-col a:hover {
    color: #f69581;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.25rem 0;
    text-align: center;
    font-size: .85rem;
}

.footer-bottom a { color: #f69581; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }

    .card-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .article-header h1 { font-size: 1.75rem; }
    .article-content { font-size: 1rem; }
    .ingredients-box ul { columns: 1; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .page-title { font-size: 1.75rem; }
    .error-code { font-size: 5rem; }

    /* Mobile menu */
    .menu-toggle { display: block; }

    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
        gap: 0;
    }

    .main-nav .nav-list.open { display: flex; }

    .main-nav .nav-list li {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.75rem; }
    .btn { padding: .6rem 1.5rem; }
    .steps-list li { padding-left: 2.5rem; }
}
