/* 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: #f8f9fa;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Header */
header {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 15px 0;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

.menu a {
    margin-left: 25px;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
}

.menu a:hover {
    color: #3498db;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 0px;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9));
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #7f8c8d;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    font-size: 3rem;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
    flex-grow: 1;
}

/* Templates Section */
.templates {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 0 20px;
}

.template-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.template-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 0px 3px #a1a1a1;
}

.template-content {
    padding: 25px;
    position: relative;
    padding-bottom: 70px; /* Espace pour le bouton */
}

.template-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.template-content p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #e9f7fe;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e9f7fe;
    color: #3498db;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #d0e9fb;
    color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.template-btn {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    padding-left: 25px;
    padding-right: 25px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    background-size: cover;
    background-position: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #3498db;
}

.footer-col p {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 60px auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.template-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.template-preview {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    background-color: #eeeeef;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.template-info {
    padding: 40px;
}

.template-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.template-info p {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.template-info h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.template-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.template-info ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.template-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.btn-group {
    display: flex;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .template-details {
        grid-template-columns: 1fr;
    }
    
    .template-preview {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .menu a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .services, .templates, .cta {
        padding: 50px 0;
    }
    
    .btn-group {
        flex-direction: column;
    }

    #contact{
        padding: 20px;
    }
}


.template-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.template-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.template-content {
    padding: 25px;
    position: relative;
    padding-bottom: 70px; /* Espace pour le bouton */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
    height: 40px; /* Hauteur fixe pour les titres */
    display: flex;
    align-items: center;
}

.template-content p {
    margin-bottom: 15px;
    color: #7f8c8d;
    height: 60px; /* Hauteur fixe pour les descriptions */
    overflow: hidden;
}



/* Styles supplémentaires pour la modale de service */

/* Modale de service */
#serviceModal .modal-content {
    max-width: 80%;
}

.service-details {
    padding: 30px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    min-width: 150px;
    min-height: 150px;
    width: 350px;
}

.service-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.service-section {
    margin-top: 30px;
}

.service-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #3498db;
    position: relative;
    padding-bottom: 10px;
}

.service-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #3498db;
}

#modal-service-features {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#modal-service-features li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

#modal-service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

#modal-service-process li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.service-info .btn-group {
    margin-top: 30px;
}

#contact-btn{
    text-align: center;
}

/* Responsive pour la modale de service */
@media (max-width: 768px) {
    .service-details {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .service-icon {
        margin: 0 auto 20px;
        width: 100%;
    }
}

#modal-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #333;
    font-weight: 500;
}

/* Help text for form fields */
.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Hero CTA buttons */
.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: white;
    color: #007bff;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: white;
}

/* CTA buttons section */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section description */
.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .service-card,
    .template-card {
        border: 2px solid #333;
    }
}

/* Print styles */
@media print {
    .nav,
    .footer,
    .hero-cta,
    .cta-buttons,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .template-card {
        page-break-inside: avoid;
    }
}

