/* Horaires page styles — extracted from horaires.html */

/* Decorative quotes around title */
.page-title-quotes {
    position: relative;
    display: inline-block;
}
.page-title-quotes::before {
    content: '❝';
    position: absolute;
    top: -0.4em;
    left: -0.6em;
    font-size: 1.3em;
    color: #D4B86A;
    opacity: 0.8;
    line-height: 1;
}
.page-title-quotes::after {
    content: '❞';
    position: absolute;
    bottom: -0.5em;
    right: -0.6em;
    font-size: 1.3em;
    color: #D4B86A;
    opacity: 0.8;
    line-height: 1;
}

/* Tabs Styles */
.horaires-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.horaires-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius) - 4px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.horaires-tab:hover {
    background: var(--light-bg);
    color: var(--primary);
}
.horaires-tab.active {
    color: white;
    box-shadow: var(--shadow-sm);
}
.horaires-tab.active img {
    filter: brightness(0) invert(1);
}
.horaires-tab[data-tab="maternelle"].active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.horaires-tab[data-tab="primaire"].active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}
.horaires-tab i {
    font-size: 1.25rem;
}
.horaires-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.horaires-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .horaires-tab {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    .horaires-tab i {
        font-size: 1.1rem;
    }
}

.horaires-content {
    max-width: 1400px;
    margin: 0 auto;
}
.horaires-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.horaires-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-ultra-light);
    position: relative;
}
.horaires-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.horaires-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}
.horaires-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}
.horaires-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.horaires-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.horaires-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.horaire-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}
.horaire-item.highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}
.horaire-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
    font-size: 0.95rem;
}
.horaire-desc {
    color: var(--text-dark);
    font-weight: 500;
}
.horaires-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.horaires-group {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
}
.group-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.group-badge.p1p2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}
.group-badge.p3p6 {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    color: white;
}
/* Maternelle specific styles */
.horaires-maternelle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.horaires-maternelle-column {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 1.5rem;
}
.maternelle-badge {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.maternelle-badge.accueil-m1 {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}
.maternelle-badge.m2-m3 {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}
.horaires-maternelle-column .horaires-list {
    gap: 0.5rem;
}
.horaires-maternelle-column .horaire-item {
    background: white;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}
.horaires-maternelle-column .horaire-time {
    min-width: 100px;
    font-size: 0.85rem;
}
.horaire-item.sieste-item {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}
.horaire-item.sieste-item .horaire-desc i {
    color: #10B981;
    margin-right: 0.25rem;
}
.horaire-item.midi-item {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}
.horaire-item.midi-item .horaire-desc i {
    color: var(--success);
    margin-right: 0.25rem;
}
.horaire-item.mercredi-note {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}
.horaire-item.mercredi-note .horaire-time i {
    color: #F59E0B;
    margin-right: 0.25rem;
}
.horaires-group .horaire-item {
    background: white;
}
.midi-section {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    margin: 1.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 0;
    border: none;
}
.midi-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.midi-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}
.midi-option i {
    color: var(--success);
}
.midi-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}
.mercredi-section {
    margin: 1.5rem -2.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
}
.mercredi-options {
    margin-top: 1rem;
}
.mercredi-options p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}
.mercredi-options i {
    color: var(--success);
}
@media (max-width: 768px) {
    .horaires-maternelle-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .horaires-maternelle-column {
        padding: 1.25rem;
    }
    .horaires-maternelle-column .horaire-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .horaires-maternelle-column .horaire-time {
        min-width: auto;
    }
}
@media (max-width: 640px) {
    .horaires-card {
        padding: 1.5rem;
    }
    .horaires-grid {
        grid-template-columns: 1fr;
    }
    .horaire-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .horaire-time {
        min-width: auto;
    }
    .midi-section, .mercredi-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .midi-options {
        flex-direction: column;
    }
    .horaires-maternelle-column {
        padding: 1rem;
    }
}

/* PDF Download Button Styles */
.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.25rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.btn-pdf-download:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.btn-pdf-download:active {
    transform: translateY(0);
}
.btn-pdf-download.loading {
    pointer-events: none;
    opacity: 0.8;
}
.btn-pdf-download.loading i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.btn-pdf-header {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}
.btn-pdf-header:hover {
    transform: translateY(-50%);
}
.pdf-buttons-group {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}
.btn-pdf-small {
    margin-top: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
}
.btn-pdf-small:hover {
    transform: none;
}
@media (max-width: 768px) {
    .btn-pdf-header {
        position: static;
        transform: none;
        margin-top: 1rem;
        width: 100%;
    }
    .pdf-buttons-group {
        position: static;
        transform: none;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    .btn-pdf-small {
        flex: 1;
        min-width: 140px;
    }
}

/* PDF Template Styles (embedded for reliable rendering) */
.pdf-template {
    width: 190mm;
    padding: 5mm 10mm 10mm 10mm;
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #1f2937;
    background: white;
}
.pdf-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2F51AF;
}
.pdf-logo {
    font-size: 24px;
    font-weight: 800;
    color: #2F51AF;
    margin-bottom: 4px;
}
.pdf-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}
.pdf-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.pdf-badge-accueil {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.pdf-badge-m2m3 {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}
.pdf-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.pdf-schedule-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
}
.pdf-schedule-table tr:last-child td {
    border-bottom: none;
}
.pdf-time {
    font-weight: 700;
    color: #2F51AF;
    width: 100px;
    white-space: nowrap;
}
.pdf-highlight td {
    background: #FEF3C7;
    font-weight: 600;
}
.pdf-sieste td {
    background: #D1FAE5;
}
.pdf-midi td {
    background: #ECFDF5;
}
.pdf-mercredi td {
    background: #FEF3C7;
}
.pdf-section {
    margin-bottom: 8px;
    page-break-inside: avoid;
}
.pdf-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #2F51AF;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #d4dbf0;
}
.pdf-two-col td {
    width: 50%;
    vertical-align: top;
}
.pdf-badge-inline {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    margin-right: 6px;
}
.pdf-badge-p1p2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}
.pdf-badge-p3p6 {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}
.pdf-midi-section {
    background: #ECFDF5;
    padding: 10px;
    border-radius: 8px;
}
.pdf-midi-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.pdf-midi-option {
    background: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 10px;
}
.pdf-midi-note {
    font-size: 10px;
    font-style: italic;
    color: #6b7280;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
}
.pdf-mercredi-section {
    background: #FEF3C7;
    padding: 10px;
    border-radius: 8px;
}
.pdf-mercredi-note {
    margin-top: 8px;
    font-weight: 600;
    color: #92400e;
}
.pdf-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px solid #2F51AF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}
.pdf-contact {
    color: #4b5563;
    line-height: 1.5;
}
.pdf-website {
    font-weight: 700;
    color: #2F51AF;
}
