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

:root {
    --primary-color: #D4AF37;  /* Or / Gold */
    --secondary-color: #e0e0e0; /* Blanc */
    --bg-color: #d3d3d3;  /* Gris clair */
    --text-color: #555; 
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --success-color: #27ae60;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: var(--text-color);
    min-height: 100vh;
}
h1, h2, h3, .btn-submit {
    font-family: 'Lato', sans-serif;
    font-weight: 700; /* Plus épais pour les titres */
}

p, label, input {
    font-weight: 400; /* Épaisseur normale pour le texte */
}

/* Header */
.header {
    background: #555;
    padding: 30px 20px;
    border-bottom: 0px solid var(--primary-color);
    text align: center; /* Sécurité pour centrer tout le texte */
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 100px;
    width: auto;
    display: block;
    opacity: 0.85; /* Réduit l'éclat du blanc (1 = 100%, 0.85 = 85%) */
    transition: opacity 0.3s ease;
}

.header-text h1 {
    color: #e0e0e0;
    font-size: 28px;
    margin-bottom: 5px;
}

.header-text .subtitle {
    color: #e0e0e0;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Introduction */
.intro-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.intro-section h2 {
    color: #000000;
    font-size: 26px;
    margin-bottom: 15px;
}

.intro-section p {
    color: #333;
    margin-bottom: 10px;
}

.intro-section .note {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* Form */
form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #2a2a2a;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #e0e0e0;
    color: var(--text-color);
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 13px;
}

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

/* Upload de fichiers */
.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: block;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e0e0e0;
    color: #999;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-list {
    margin-top: 10px;
}

.file-item {
    background: #2a2a2a;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item-name {
    color: #000000;
    font-size: 14px;
}

.file-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.file-item-remove:hover {
    background: #c0392b;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    color: #000000;
}

/* Bouton d'envoi */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: var(--primary-color);
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    background: #c4a137;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.info-text {
    margin-top: 15px;
    color: #999;
    font-size: 14px;
}

/* Message de succès */
.success-message {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.success-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.success-message h3 {
    color: var(--success-color);
    font-size: 26px;
    margin-bottom: 15px;
}

.success-message p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 16px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-back:hover {
    background: #c4a137;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background: #555;
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    border-top: 0px solid var(--primary-color);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0px;
    
}

.footer-content p {
    margin: 5px 0;
    color: #e0e0e0;
}

.footer-small {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    form {
        padding: 25px 20px;
    }

    .intro-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 20px;
    }
}

/* États de validation */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* Animation de chargement */
.btn-submit.loading {
    background: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

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

/* Select options styling */
select option {
    background-color: #ffffff;
    color: var(--text-color);
}

/* Modifie tous les liens de la page */
a {
    color: var(--primary-color); /* Utilise l'Or défini dans vos variables */
    text-decoration: none;       /* Enlève le soulignement si désiré */
}

/* Couleur au survol de la souris */
a:hover {
    color: #ffffff; 
    text-decoration: underline;
}
