/*
Theme Name: Contact Theme Marc
Theme URI: https://example.com
Author: Marc
Author URI: https://example.com
Description: Thème WordPress avec page de contact intégrée incluant validation et captcha
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contact-theme
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header */
.site-header {
    background-color: #0073aa;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
}

.site-title a {
    color: white;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* Content */
.site-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* Page de contact */
.contact-page {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-page h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.contact-form {
    border: 2px solid #0073aa;
    padding: 40px;
    background: white;
    border-radius: 4px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

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

.captcha-group input {
    max-width: 150px;
}

.submit-button {
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #005a87;
}

.success-message {
    background-color: #ecf7ed;
    border: 2px solid #46b450;
    color: #46b450;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-weight: 500;
}

.error-message {
    background-color: #fef7f7;
    border: 2px solid #dc3232;
    color: #dc3232;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-page {
        padding: 20px;
    }
}
