:root {
    /* Palette de couleurs */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: rgba(0, 123, 255, 0.1);
    
    --success: #28a745;
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    --success-text: #155724;
    
    --error: #dc3545;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
    --error-text: #721c24;
    
    --warning: #ffc107;
    --warning-bg: #fff3cd;
    --warning-border: #ffeeba;
    --warning-text: #856404;
    
    --info: #17a2b8;
    --info-bg: #fbddae;
    --info-border: #451201;
    --info-text: #451201;
    
    --text: #343a40;
    --text-light: #6c757d;
    --bg: #98300d;
    --container: #98300d;
    --white: #ffffff;
    --black: #000000;
    --gray: #e0e0e0;
	--label1: #E7B466;

    
    /* Espacements & Bordures */
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
    --input-padding: 12px 14px;
    --btn-padding: 14px 20px;
}

/* #d1ecf1; bleu ciel  #bee5eb; filet 0c5460; txt */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


h1,h2,h4 {
    margin: 0;
    padding: 0;
    text-align: center;
	color: #b9491A;
}

h2 {
	line-height: 90%;

}

h4 {

}


/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    width: 100%;
    max-width: 520px;
}

/* Form Styles */
#form-intro {
    margin-bottom: 28px;
    text-align: center;
}

#form-intro h2 {
    font-size: 1.6rem;
	color: #b9491A;
    font-weight: 600;
    margin-bottom: 8px;

}

#form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
	color: var(--label1);
}

/* Input Fields (Text & Email) */
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: var(--input-padding);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Buttons */
.btn {
    width: 100%;
    padding: var(--btn-padding);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-submit:hover {
    background: var(--primary-dark);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
    text-align: center;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    text-align: center;

}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    text-align: center;

}

/* Messages Container */
#form-messages {
    margin-bottom: 20px;
}


/* Footer */
.footernl {
    background: var(--bg);
    color: var(--white);
    border-radius: var(--border-radius);
    margin-top: 30px;
    padding: 16px;
    text-align: center;
}

.footernl h4 {
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.footernl a {
	color: #fdcb6e;
    text-decoration: none;
    font-weight: 500;
}

.footernl a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    #form-intro h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px 15px;
    }

    #form-intro h2 {
        font-size: 1.25rem;
    }
}

/* Utility Classes (pour les messages HTML dans les réponses JSON) */
.alert-success, .alert-error, .alert-info {
    padding: 12px;
    border-radius: var(--border-radius);
    margin: 8px 0;
    font-size: 0.95rem;
}