/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f15;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-tertiary: #888898;
    --accent-primary: #4f46e5;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --border-color: #1f1f2e;
    --card-bg: #141420;
    --hover-bg: #1c1c2a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0 2rem;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
}

.header-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.header-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
    border-color: rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(136, 136, 152, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(136, 136, 152, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(136, 136, 152, 0.35);
    border-color: rgba(136, 136, 152, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 136, 152, 0.4);
    color: #ffffff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Les boutons dans header-links utilisent les styles normaux des boutons */

.btn-full {
    width: 100%;
}

button.btn-primary,
button.btn-secondary,
button.btn-danger,
button.btn-success {
    appearance: none;
    -webkit-appearance: none;
}

/* Boutons désactivés */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-danger:disabled:hover,
.btn-success:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* Messages d'alerte */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================
   STATUS OVERVIEW
   ============================================ */
.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.overview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: var(--shadow-md);
    background: var(--hover-bg);
}

.overview-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: var(--transition);
    color: var(--accent-primary);
}

.overview-icon svg {
    width: 24px;
    height: 24px;
}

.overview-card:hover .overview-icon {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.4);
    transform: scale(1.05);
}

.overview-content {
    flex: 1;
}

.overview-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.overview-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    margin-bottom: 4rem;
}

.services-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carte de service moderne (style comme l'image) */
.service-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
    margin-bottom: 1rem;
}

.service-header-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.service-icon.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.service-icon.unknown {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.service-icon svg {
    width: 16px;
    height: 16px;
}

.service-name-modern {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-uptime {
    margin-bottom: 0.75rem;
}

.uptime-percent {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Barre d'uptime historique */
.uptime-bar-container {
    margin-top: 0.5rem;
}

.uptime-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(156, 163, 175, 0.2);
    margin-bottom: 0.5rem;
}

.uptime-segment {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.uptime-segment:hover {
    opacity: 0.8;
    transform: scaleY(1.2);
}

.uptime-bar-labels {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.uptime-bar-empty {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: var(--shadow-md);
    background: var(--hover-bg);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-status.up {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-status.down {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.service-status.unknown {
    background: rgba(136, 136, 152, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(136, 136, 152, 0.3);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-info-item:last-child {
    border-bottom: none;
}

.service-info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.service-info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.service-url {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
}

.service-url:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ============================================
   NOTICE HISTORY SECTION
   ============================================ */
.notice-history-section-main {
    margin-bottom: 4rem;
    margin-top: 3rem;
}

.notice-history-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 100px;
}

#updates-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px;
    color: var(--text-primary);
}

#updates-list:empty::before {
    content: 'Chargement...';
    display: block;
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
}

.notice-history-section {
    margin-bottom: 1.5rem;
}

.notice-history-section:last-child {
    margin-bottom: 0;
}

.notice-history-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-history-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.notice-history-status svg {
    flex-shrink: 0;
}

.notice-history-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.notice-history-item:last-child {
    border-bottom: none;
}

.notice-history-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notice-history-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notice-history-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notice-history-empty {
    padding: 2rem 0;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-history-empty p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HISTORY SECTION
   ============================================ */
.history-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2,
.history-section h2,
.notice-history-section-main h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.history-item:hover::before {
    transform: scaleX(1);
}

.history-item:hover {
    transform: translateX(4px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: var(--shadow-md);
}

.history-item.down {
    border-left-color: var(--error-color);
}

.history-item.down::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.history-item.up {
    border-left-color: var(--success-color);
}

.history-item.up::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.history-item-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 500;
}

.history-item-service {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.history-item-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.history-item-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.history-item-meta span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    width: 100%;
    padding: 3rem 0 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.empty-state-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.empty-state-icon svg {
    width: 48px;
    height: 48px;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem 1.25rem;
    }
    
    .header-links {
        gap: 0.75rem;
    }
    
    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tablettes */
@media (max-width: 968px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .header h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }
    
    .header-links {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .header-links .btn-small {
        width: 100%;
        justify-content: center;
    }

    .status-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .overview-icon {
        width: 50px;
        height: 50px;
    }
    
    .overview-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .overview-value {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .services-section h2,
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .history-item-date {
        white-space: normal;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }
}

/* Mobiles */
@media (max-width: 640px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .header {
        padding: 1.5rem 0 1rem;
        margin-bottom: 2rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .header-links {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .status-overview {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .overview-icon {
        width: 45px;
        height: 45px;
    }
    
    .overview-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .overview-label {
        font-size: 0.85rem;
    }
    
    .overview-value {
        font-size: 1.3rem;
    }

    .services-section,
    .history-section {
        margin-bottom: 2.5rem;
    }
    
    .services-section h2,
    .section-header h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .service-card {
        padding: 1rem;
    }
    
    .service-name {
        font-size: 1.1rem;
    }
    
    .service-info-item {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .history-item {
        padding: 1rem;
    }
    
    .history-item-title {
        font-size: 1rem;
    }
    
    .history-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .history-item-meta span {
        font-size: 0.8rem;
    }
    
    .history-item-meta svg {
        width: 14px;
        height: 14px;
    }

    .tabs {
        padding: 0.2rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .empty-state {
        padding: 2.5rem 1.5rem;
    }
    
    .empty-state-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1.5rem;
        margin-top: 2.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.5rem;
    }
    
    .header {
        padding: 1.25rem 0 0.75rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .overview-card {
        padding: 0.875rem;
    }
    
    .overview-value {
        font-size: 1.2rem;
    }
    
    .service-card,
    .history-item {
        padding: 0.875rem;
    }
    
    .btn-small {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
}
