/* css/style.css - Styles communs pour HeureExacte.fr */

/* Variables CSS */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent: #0066ff;
    --accent-light: #e3f2fd;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 16px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Main content */
main {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Titres de page */
.page-title {
    text-align: center;
    margin: 2rem 0 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Boutons communs */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #0052cc;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #22a053;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #e09200;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Inputs */
.input {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utilitaires */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}


/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #3d3d3d;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --accent: #60a5fa;
        --accent-light: #1e3a5f;
    }

    body {
        background: var(--bg-secondary);
    }

    .card {
        background: var(--bg-primary);
        border-color: var(--bg-tertiary);
    }

    .input {
        background: var(--bg-tertiary);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .btn-secondary {
        background: var(--bg-tertiary);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Styles pour les éphémérides - À ajouter dans style.css */

/* Conteneur principal des éphémérides */
.ephemeride-display {
    text-align: center;
    line-height: 1.6;
}

.ephemeride-main {
    margin-bottom: 0.5rem;
}

/* Saint du jour */
.saint-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.saint-link:hover {
    opacity: 0.8;
}

.saint {
    color: var(--primary);
    font-weight: 500;
}

/* Fêtes */
.fete {
    color: var(--accent);
    font-weight: 500;
}

/* Phase lunaire */
.lune {
    font-size: 1.2rem;
    vertical-align: middle;
    cursor: help;
}

/* Signe astrologique */
.zodiaque-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    margin-left: 0.25rem;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.zodiaque-link:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-1px);
}

.zodiaque-emoji {
    font-size: 1.3rem;
    vertical-align: middle;
}

.zodiaque-nom {
    font-weight: 500;
    color: #8a2be2;
}

/* Dicton du jour */
.ephemeride-dicton {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding: 0 1rem;
    opacity: 0.9;
}

/* Animation au survol pour mobile */
@media (hover: none) {
    .zodiaque-link {
        background: rgba(138, 43, 226, 0.15);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ephemeride-main {
        font-size: 0.9rem;
    }
    
    .zodiaque-emoji {
        font-size: 1.1rem;
    }
    
    .ephemeride-dicton {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}

/* Solution optimisée à ajouter à la fin de css/style.css */

/* Forcer la visibilité des titres principaux */
.hero-section h1,
.page-title h1 {
    /* Désactiver le text-fill transparent */
    -webkit-text-fill-color: initial !important;
    color: var(--text-primary) !important; /* Utilise la variable de couleur existante */
}

/* Mode sombre - adaptation automatique */
@media (prefers-color-scheme: dark) {
    .hero-section h1,
    .page-title h1 {
        color: var(--text-primary) !important; /* S'adaptera automatiquement au mode sombre */
    }
}

/* Option alternative : Si vous voulez quand même un effet visuel sur les titres */
/* Vous pouvez utiliser une ombre colorée au lieu du gradient : */
/*
.hero-section h1,
.page-title h1 {
    -webkit-text-fill-color: initial !important;
    color: var(--text-primary) !important;
    text-shadow: 2px 2px 4px rgba(0, 102, 255, 0.2);
}
*/

/* Ou un effet de soulignement gradient : */
/*
.hero-section h1::after,
.page-title h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), #00b4d8);
    margin-top: 0.5rem;
    border-radius: 2px;
}
*/