:root {
    --primary-color: #000000;
    --secondary-color: #d4af37;
    --tertiary-color: #f5f5f0;
    --text-color: #333333;
    --light-text: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-brand {
    max-height: 60px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 0 15px;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--light-text);
    border-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-color: var(--light-text);
    color: var(--light-text);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    margin-left: 15px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.services-section, .testimonials-section {
    padding: 6rem 0;
    background-color: var(--tertiary-color);
}

.service-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-position {
    font-size: 0.9rem;
    color: #777;
}

.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-text);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 7px;
    border-radius: 20px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright p {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .btn-primary, .btn-outline-light {
        padding: 10px 20px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-outline-light {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .service-card, .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Animation effects */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional styles for other pages */
.contact-hero, .about-hero, .services-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: var(--light-text);
}

/* Styles pour la section contact redesignée */
.contact-section {
    background-color: #f8f9fa;
}

.contact-info-card, .contact-form-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}

.contact-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item-text {
    color: #6c757d;
    margin-bottom: 0;
}

.contact-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.social-title {
    font-weight: 600;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.form-title {
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 15px;
    position: relative;
}

.form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.15);
}

.btn-submit {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-submit:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-submit:hover:before {
    left: 0;
}

/* Animation de chargement pour le bouton d'envoi */
.btn-submit.loading .btn-text {
    visibility: hidden;
}

.btn-submit.loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .contact-info-card, .contact-form-card {
        margin-bottom: 20px;
    }
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #e9ecef;
    transform: translateX(-50%);
}

.timeline-card {
    position: relative;
    margin-bottom: 30px;
}

.timeline-card-left {
    padding-right: 40px;
}

.timeline-card-right {
    padding-left: 40px;
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.timeline-card-left::after {
    right: -10px;
}

.timeline-card-right::after {
    left: -10px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(212, 175, 55, 0.25);
}

.team-card .card-img-top {
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--secondary-color) !important;
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.navbar-light {
    background-color: var(--light-text);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.bg-dark {
    background-color: var(--primary-color) !important;
}

.process-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.process-icon {
    position: relative;
    display: inline-block;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Promo Cards */
.promo-card {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    height: 100%;
}

.promo-content {
    flex: 1;
    z-index: 2;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.promo-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--accent-color);
    color: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: rotate(15deg);
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product Cards */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    justify-content: center;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-price {
    font-weight: 700;
    color: var(--accent-color);
}

/* Advantage Cards */
.advantage-card {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/2.webp');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #fff;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-body {
    padding: 20px;
    background-color: #fff;
}

/* Animation styles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bouton Retour en haut */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: -60px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    transition: all 0.5s ease;
}

.back-to-top.active {
    bottom: 25px;
    opacity: 1;
}

.back-to-top:hover, .back-to-top:focus {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CLADA Loader */
#clada-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#clada-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.clada-letters {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.letter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: letterAppear 2s ease infinite;
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }

@keyframes letterAppear {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-card, 
    .promo-card, 
    .advantage-card {
        margin-bottom: 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .promo-badge {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-card-left, .timeline-card-right {
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-card-left::after, .timeline-card-right::after {
        left: 30px;
        right: auto;
    }
}
