/* Altersec - Style moderne et simple */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #1a1a2e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

header img {
    max-width: 250px;
    height: auto;
    margin-bottom: 15px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero */
.hero {
    background: #fff;
    padding: 40px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: justify;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section h2 {
    font-size: 2rem;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 20px;
}

.section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: justify;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    margin: 0 0 15px 0;
    text-align: justify;
    font-size: 1rem;
}

/* Locations */
.locations {
    background: #fff;
    padding: 40px 0;
    text-align: center;
}

.locations p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.locations strong {
    color: #1a1a2e;
}

/* Contact */
.contact {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.contact p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

.contact a {
    color: #1a1a2e;
    text-decoration: underline;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.1);
}

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

.submit-btn {
    background-color: #1a1a2e;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #333;
}

/* Honeypot - invisible */
.honeypot-field {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

footer p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Messages */
.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.form-errors ul {
    margin: 5px 0 0 20px;
    padding-left: 15px;
}

.form-errors li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero h1,
    .section h2 {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        align-self: stretch;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }
    
    header img {
        max-width: 200px;
    }
    
    .hero,
    .section,
    .locations,
    .contact {
        padding: 20px 0;
    }
}

/* Print */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header, footer, .submit-btn {
        display: none;
    }
    
    .hero, .section {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
}
