@font-face {
  font-family: "GorriSans";
  src: url("GorriSans.woff2") format("woff2"),
    url("GorriSans.woff") format("woff"),
    url("GorriSans.ttf") format("truetype");
}

:root {
    --primary-color: #ff9800;
    --primary-hover: #f57c00;
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

#enhaut {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.icon {
    font-size: 1.5rem;
}

.card-body {
    flex-grow: 1;
}

.instruction {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

/* File Upload styling */
.file-upload-wrapper {
    margin-bottom: 1.5rem;
}

.file-label {
    display: inline-block;
    background-color: #eee;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 2px dashed #ccc;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.file-label:hover {
    background-color: #e0e0e0;
}

.file-label input[type="file"] {
    display: none;
}

.status-msg {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-success { color: #2e7d32; }
.status-error { color: #c62828; }

.excel-info {
    background: #fff8e1;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.excel-info h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.excel-info ul {
    margin: 0;
    padding-left: 1.2rem;
}

.video-wrapper {
    width: 100%;
    margin-top: 0.5rem;
}

.video-wrapper video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

.actions {
    text-align: center;
    margin-top: 1rem;
}

.bouton-principal {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.bouton-principal:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.bouton-principal:active {
    transform: translateY(0);
}

.enbas {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

#msg a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Impression visibility */
#impression {
    display: none;
}

@media print {
    #enhaut, .enbas {
        display: none !important;
    }
    #impression {
        display: block !important;
    }
}
