/*
Theme Name: Loiselle Constructions
Author: Antoine RIGOLE
Description: Thème personnalisé pour Loiselle Constructions
Version: 1.0
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3d7a;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* === HEADER === */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

.site-title a {
    color: #2c5aa0;
    font-weight: 700;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

/* === NAVIGATION === */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.main-navigation .nav-menu li {
    position: relative;
}

.main-navigation .nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu .current-menu-item a {
    color: #2c5aa0;
}

/* === MAIN CONTENT === */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === FOOTER === */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

/* === PAGE D'ACCUEIL === */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d7a 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 10px;
}

.about-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d7a 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: white;
}

.stat-box p {
    font-size: 1rem;
    margin: 0;
}

/* Services Grid */
.services-section {
    margin-top: 50px;
}

.services-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.service-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

/* === PAGE ÉQUIPE === */
.team-section h1 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.team-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-name {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.team-title {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.team-description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.team-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #2c5aa0;
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.team-email:hover {
    background-color: #1a3d7a;
    color: white;
}

.team-email svg {
    flex-shrink: 0;
}

/* === PAGE CONTACT === */
.contact-section h1 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

.info-item a {
    color: #2c5aa0;
}

/* Formulaire de contact */
.contact-form-wrapper h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

.submit-btn {
    background-color: #2c5aa0;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 20px;
    }
}
