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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #2d7a3e 0%, #4a9d5f 100%);
    color: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Sections */
section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #2d7a3e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #2d7a3e;
    padding-bottom: 0.5rem;
}

/* Nouveaux styles pour les blocs de services */
.service-block {
    background: #f8fdf9;
    border: 2px solid #e0f2e4;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-title {
    color: #2d7a3e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-content {
    margin-top: 1rem;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.service-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #2d7a3e;
}

.detail-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: #2d7a3e;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
}

.service-note {
    font-size: 0.95rem;
    color: #666;
    background: #fff9e6;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin-top: 1rem;
}

/* Services Grid (pour les sous-services) */
.service-block .services-grid {
    margin: 1.5rem 0;
}

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

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2d7a3e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.service-card h3,
.service-card h4 {
    color: #2d7a3e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: #666;
}

/* Prospectus Download */
.download-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2d7a3e15 0%, #4a9d5f15 100%);
    border-radius: 8px;
}

.download-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2d7a3e;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    flex: 1;
    min-width: 250px;
    justify-content: center;
}

.btn-download:hover {
    background: #246331;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.cert-item {
    text-align: center;
    padding: 1rem;
}

.cert-item img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.cert-item p {
    font-weight: bold;
    color: #2d7a3e;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ed 100%);
    border: 2px solid #c8e6d3;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.info-box h4 {
    color: #2d7a3e;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h4::before {
    content: "ℹ️";
    font-size: 1.5rem;
}

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

.info-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #444;
    border-bottom: 1px solid #d8ead8;
}

.info-list li:last-child {
    border-bottom: none;
}

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

.info-list a {
    color: #2d7a3e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-list a:hover {
    color: #1f5a2b;
    text-decoration: underline;
}

/* Section Contact simplifiée */
.contact-info {
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    background: #f8fdf9;
    border: 2px solid #e0f2e4;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(45, 122, 62, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-details h3 {
    color: #2d7a3e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2d7a3e;
    text-decoration: underline;
}

.contact-note {
    background: #fff9e6;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 2rem;
    text-align: left;
}

.contact-note p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.legal {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mentions légales déroulantes */
.legal-notice-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-legal-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.toggle-legal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-legal-btn .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.toggle-legal-btn.active .arrow {
    transform: rotate(180deg);
}

.legal-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    text-align: left;
    margin-top: 1rem;
}

.legal-content.open {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

.legal-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.legal-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header {
        padding: 2rem 0;
    }

    .subtitle {
        font-size: 1rem;
    }

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

    section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

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

    .cert-item img {
        max-height: 120px;
    }

    .toggle-legal-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .legal-content {
        padding: 0 0.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-logo img {
        width: 100px;
        height: 100px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    section {
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .download-box {
        padding: 1.5rem 1rem;
    }
}