/* ==========================================
   HOME PAGE STYLES - Chez les Copains d'abord
   Niche: Culture Tourisme Cuisine Maison
   ========================================== */

/* === HERO === */
.hero {
    background-color: #fffbeb;
    padding: 60px 24px 48px;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-content {
    flex: 1;
    min-width: 0;
}
.hero-badge {
    display: inline-block;
    background-color: #fde68a;
    color: #713f12;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #713f12;
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-intro {
    font-size: 1.125rem;
    color: #57534e;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #713f12;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.hero-cta:hover {
    background-color: #5a3210;
    color: #fff;
    transform: translateY(-2px);
}
.hero-cta svg {
    flex-shrink: 0;
}
.hero-visual {
    flex: 0 0 380px;
}
.hero-scene {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* === INTRO SECTION === */
.intro-section {
    background-color: #fff;
    padding: 56px 24px;
}
.intro-container {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.intro-lead {
    font-size: 1.2rem;
    color: #713f12;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 16px;
}
.intro-container p {
    color: #57534e;
    font-size: 1rem;
    line-height: 1.7;
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    color: #713f12;
    margin-bottom: 12px;
}
.section-subtitle {
    color: #78716c;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === SEASONAL TIMELINE === */
.seasonal-timeline {
    background-color: #fef9ef;
    padding: 72px 24px;
}
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 0;
}
.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #fde68a;
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(32px);
    animation: timelineAppear 0.6s ease forwards;
}
.timeline-entry:nth-child(2) { animation-delay: 0.15s; }
.timeline-entry:nth-child(3) { animation-delay: 0.3s; }
.timeline-entry:nth-child(4) { animation-delay: 0.45s; }
.timeline-entry:last-child {
    margin-bottom: 0;
}
@keyframes timelineAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.timeline-node {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    z-index: 2;
}
.timeline-dot {
    width: 52px;
    height: 52px;
    background-color: #713f12;
    border: 4px solid #fde68a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(113, 63, 18, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-entry:hover .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(113, 63, 18, 0.3);
}
.timeline-card {
    width: calc(50% - 52px);
    background-color: #fff;
    border: 2px solid #fde68a;
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.timeline-entry:hover .timeline-card {
    border-color: #e11d48;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
    transform: translateY(-4px);
}
.timeline-entry--left .timeline-card {
    margin-right: auto;
}
.timeline-entry--right .timeline-card {
    margin-left: auto;
}
.timeline-season {
    display: inline-block;
    background-color: #fde68a;
    color: #713f12;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.timeline-card h3 {
    color: #713f12;
    margin-bottom: 10px;
}
.timeline-card p {
    color: #57534e;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 16px;
}
.timeline-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.timeline-tags li {
    background-color: #fffbeb;
    color: #713f12;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid #fde68a;
}

/* === CONVERSION SECTION === */
.conversion-section {
    background-color: #fff;
    padding: 72px 24px;
}
.conversion-card {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 16px;
    overflow: hidden;
}
.conversion-tabs {
    display: flex;
    border-bottom: 2px solid #fde68a;
}
.conversion-tab {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #78716c;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
}
.conversion-tab:hover {
    background-color: #fde68a;
    color: #713f12;
}
.conversion-tab.active {
    background-color: #fde68a;
    color: #713f12;
    border-bottom: 3px solid #713f12;
    margin-bottom: -2px;
}
.conversion-panels {
    padding: 24px;
}
.conversion-panel {
    display: none;
}
.conversion-panel.active {
    display: block;
}
.converter-group {
    margin-bottom: 20px;
}
.converter-group:last-child {
    margin-bottom: 0;
}
.converter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #713f12;
    margin-bottom: 8px;
}
.converter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.converter-row input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid #e7e5e4;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #44403c;
    background-color: #fff;
    transition: border-color 0.2s;
}
.converter-row input:focus {
    border-color: #713f12;
    outline: none;
}
.converter-unit {
    font-size: 13px;
    font-weight: 600;
    color: #78716c;
}
.converter-eq {
    font-size: 16px;
    font-weight: 700;
    color: #713f12;
}
.converter-result {
    font-size: 16px;
    font-weight: 700;
    color: #e11d48;
    background-color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #e11d48;
    min-width: 80px;
    text-align: center;
}

/* === ARTICLES SECTION === */
.articles-section {
    background-color: #fef9ef;
    padding: 72px 24px;
}
.articles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.article-card {
    background-color: #fff;
    border: 2px solid #fde68a;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.article-card:hover {
    border-color: #e11d48;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
    transform: translateY(-4px);
}
.article-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #fde68a;
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.article-card:hover .article-card__image img {
    transform: scale(1.05);
}
.article-card__body {
    padding: 24px;
}
.article-card__category {
    display: inline-block;
    background-color: #fde68a;
    color: #713f12;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.article-card__body h3 {
    margin-bottom: 10px;
}
.article-card__body h3 a {
    color: #713f12;
    text-decoration: none;
    transition: color 0.2s;
}
.article-card__body h3 a:hover {
    color: #e11d48;
}
.article-card__excerpt {
    color: #78716c;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-card__reading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #a8a29e;
    font-weight: 500;
}

/* === TOPICS SECTION === */
.topics-section {
    background-color: #fff;
    padding: 72px 24px;
}
.topics-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.topic-card {
    background-color: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.topic-card:hover {
    border-color: #e11d48;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.06);
    transform: translateY(-4px);
}
.topic-icon {
    margin-bottom: 16px;
}
.topic-icon svg {
    display: block;
    margin: 0 auto;
}
.topic-card h3 {
    color: #713f12;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.topic-card p {
    color: #78716c;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* === NEWSLETTER SECTION === */
.newsletter-section {
    background-color: #fde68a;
    padding: 72px 24px;
}
.newsletter-container {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-icon {
    margin-bottom: 20px;
}
.newsletter-icon svg {
    display: block;
    margin: 0 auto;
}
.newsletter-container h2 {
    color: #713f12;
    margin-bottom: 12px;
}
.newsletter-container > p {
    color: #57534e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}
.newsletter-form {
    margin-bottom: 16px;
}
.newsletter-input-group {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #713f12;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #44403c;
    background-color: #fff;
    transition: border-color 0.2s;
}
.newsletter-input-group input:focus {
    border-color: #e11d48;
    outline: none;
}
.newsletter-input-group button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    background-color: #713f12;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.newsletter-input-group button:hover {
    background-color: #5a3210;
    transform: translateY(-2px);
}
.newsletter-input-group button svg {
    flex-shrink: 0;
}
.newsletter-note {
    font-size: 12px;
    color: #78716c;
    font-style: italic;
}

/* === RESPONSIVE: TABLET === */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-visual {
        flex: none;
        max-width: 340px;
        margin: 0 auto;
    }
    .hero-intro {
        max-width: 100%;
    }
    .hero-cta-row {
        justify-content: center;
    }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 32px;
    }
    .hero h1 {
        font-size: 1.875rem;
    }
    .hero-intro {
        font-size: 1rem;
    }
    .intro-section {
        padding: 40px 16px;
    }
    .intro-lead {
        font-size: 1.05rem;
    }
    .seasonal-timeline {
        padding: 48px 16px;
    }
    .timeline-track {
        left: 24px;
    }
    .timeline-entry {
        flex-direction: column;
        padding-left: 60px;
        margin-bottom: 36px;
    }
    .timeline-node {
        left: 24px;
        top: 0;
        transform: none;
    }
    .timeline-dot {
        width: 44px;
        height: 44px;
    }
    .timeline-card {
        width: 100%;
        margin: 0 !important;
        padding: 20px;
    }
    .conversion-section {
        padding: 48px 16px;
    }
    .converter-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .converter-row input {
        width: 80px;
    }
    .articles-section {
        padding: 48px 16px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .topics-section {
        padding: 48px 16px;
    }
    .topics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .newsletter-section {
        padding: 48px 16px;
    }
    .newsletter-input-group {
        flex-direction: column;
    }
    .newsletter-input-group button {
        justify-content: center;
    }
}

/* ===== RESPONSIVE (auto-repair) ===== */
/* ==========================================
   MEDIA QUERIES MANQUANTES — Générées
   ========================================== */

/* === 1. TABLETTE (max-width: 1024px) === */
@media (max-width: 1024px) {
    .hero-container {
        gap: 32px;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero-visual {
        flex: 0 0 320px;
    }
    .intro-container {
        max-width: 640px;
    }
    .timeline {
        max-width: 800px;
    }
    .timeline-card {
        padding: 22px;
    }
    .timeline-entry {
        margin-bottom: 40px;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-header {
        margin-bottom: 36px;
    }
    .conversion-card {
        max-width: 560px;
    }
    .newsletter-input-group {
        max-width: 400px;
    }
}

/* === 2. MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    body {
        overflow-x: hidden;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .hero {
        padding: 40px 16px 32px;
    }
    .hero h1 {
        font-size: 1.875rem;
    }
    .hero-intro {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-cta-row {
        justify-content: center;
    }
    .hero-visual {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }
    .intro-section {
        padding: 40px 16px;
    }
    .intro-lead {
        font-size: 1.05rem;
    }
    .seasonal-timeline {
        padding: 48px 16px;
    }
    .timeline-track {
        left: 24px;
    }
    .timeline-entry {
        flex-direction: column;
        padding-left: 60px;
        margin-bottom: 36px;
    }
    .timeline-node {
        left: 24px;
        top: 0;
        transform: none;
    }
    .timeline-dot {
        width: 44px;
        height: 44px;
    }
    .timeline-card {
        width: 100%;
        margin: 0 !important;
        padding: 20px;
    }
    .timeline-tags {
        flex-wrap: wrap;
    }
    .conversion-section {
        padding: 48px 16px;
    }
    .conversion-tabs {
        flex-wrap: wrap;
    }
    .conversion-tab {
        font-size: 13px;
        padding: 12px 14px;
    }
    .converter-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .converter-row input {
        width: 80px;
    }
    .articles-section {
        padding: 48px 16px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .article-card__meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .topics-section {
        padding: 48px 16px;
    }
    .topics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .newsletter-section {
        padding: 48px 16px;
    }
    .newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    .newsletter-input-group button {
        justify-content: center;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* === 3. PETIT MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .hero {
        padding: 28px 12px 24px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero-intro {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .hero-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    .hero-cta {
        font-size: 13px;
        padding: 10px 18px;
    }
    .hero-visual {
        max-width: 240px;
    }
    .intro-section {
        padding: 28px 12px;
    }
    .intro-lead {
        font-size: 0.95rem;
    }
    .intro-container p {
        font-size: 0.9rem;
    }
    .seasonal-timeline {
        padding: 32px 12px;
    }
    .timeline-track {
        left: 18px;
    }
    .timeline-entry {
        padding-left: 48px;
        margin-bottom: 28px;
    }
    .timeline-node {
        left: 18px;
    }
    .timeline-dot {
        width: 36px;
        height: 36px;
    }
    .timeline-card {
        padding: 16px;
        border-radius: 12px;
    }
    .timeline-season {
        font-size: 10px;
        padding: 3px 8px;
    }
    .timeline-card h3 {
        font-size: 1rem;
    }
    .timeline-card p {
        font-size: 0.85rem;
    }
    .timeline-tags li {
        font-size: 10px;
        padding: 3px 8px;
    }
    .section-header h2 {
        font-size: 1.25rem;
    }
    .section-subtitle {
        font-size: 0.875rem;
    }
    .conversion-section {
        padding: 32px 12px;
    }
    .conversion-card {
        border-radius: 12px;
    }
    .conversion-tab {
        font-size: 12px;
        padding: 10px 8px;
    }
    .converter-group label {
        font-size: 12px;
    }
    .converter-row input {
        width: 70px;
        padding: 8px 10px;
        font-size: 14px;
    }
    .converter-eq {
        font-size: 14px;
    }
    .converter-result {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 60px;
    }
    .converter-unit {
        font-size: 12px;
    }
    .articles-section {
        padding: 32px 12px;
    }
    .articles-grid {
        gap: 16px;
    }
    .article-card {
        border-radius: 12px;
    }
    .article-card__image {
        height: 160px;
    }
    .article-card__body {
        padding: 16px;
    }
    .article-card__category {
        font-size: 10px;
        padding: 3px 8px;
    }
    .article-card__excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    .article-card__reading {
        font-size: 11px;
    }
    .topics-section {
        padding: 32px 12px;
    }
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .topic-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .topic-card h3 {
        font-size: 1rem;
    }
    .topic-card p {
        font-size: 0.82rem;
    }
    .newsletter-section {
        padding: 32px 12px;
    }
    .newsletter-container h2 {
        font-size: 1.25rem;
    }
    .newsletter-container > p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .newsletter-input-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .newsletter-input-group button {
        padding: 12px 18px;
        font-size: 14px;
    }
    .newsletter-note {
        font-size: 11px;
    }
}