/*
 Theme Name: Cratyle
 Theme URI: https://cratyle.org
 Author: Cratyle
 Author URI: https://cratyle.org
 Description: Thème WordPress pour la gestion de cours en ligne avec ACF
 Version: 1.0.0
 License: GPL2
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: cratyle
 Domain Path: /languages
 Requires at least: 5.0
 Requires PHP: 7.4
*/

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* Liens */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

/* Boutons */
button,
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover,
.btn:hover {
    background-color: #1d4ed8;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 40px;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #1f2937;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #4b5563;
    font-weight: 500;
}

.main-nav a:hover {
    color: #2563eb;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #d1d5db;
}

.footer-widget a:hover {
    color: white;
}

/* Cours Card */
.cours-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cours-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e5e7eb;
}

.cours-card-content {
    padding: 20px;
}

.cours-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1f2937;
}

.cours-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cours-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.cours-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.cours-price.free {
    color: #10b981;
}

/* Single Cours */
.cours-single {
    max-width: 800px;
    margin: 0 auto;
}

.cours-hero {
    width: 100%;
    height: 400px;
    background-color: #e5e7eb;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.cours-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
}

.cours-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cours-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cours-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cours-info-item strong {
    color: #2563eb;
}

.cours-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cours-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.cours-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #2563eb;
}

.cours-content ul,
.cours-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cours-content li {
    margin-bottom: 8px;
}

/* Sidebar */
.cours-sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.cours-price-big {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 20px;
}

.cta-button {
    width: 100%;
    padding: 15px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

.cours-features {
    list-style: none;
}

.cours-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cours-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Highlight - Encadrés call-to-action */
.cta-highlight {
    box-shadow: 0 4px 15px rgba(212, 197, 169, 0.3);
    border: 2px solid #D4C5A9;
    transition: all 0.3s ease;
}

.cta-highlight:hover {
    box-shadow: 0 8px 25px rgba(212, 197, 169, 0.4);
    transform: scale(1.03);
}

/* Animation pulse doré pour les CTA principaux */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 197, 169, 0.5); }
    50% { box-shadow: 0 0 20px 6px rgba(212, 197, 169, 0.3); }
}

.cta-pulse {
    animation: goldPulse 2.5s ease-in-out infinite;
}

.cta-pulse:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .cours-hero {
        height: 250px;
    }
    
    .cours-header h1 {
        font-size: 1.5rem;
    }
    
    .cours-sidebar {
        position: static;
        margin-top: 30px;
    }
}
