/* Variables couleurs basées sur le logo */
:root {
    --primary-color: #1a3c6e;
    --primary-light: #2a5c8e;
    --primary-dark: #0e2a4e;
    --secondary-color: #FF7F27;
    --secondary-light: #ff9f57;
    --secondary-dark: #e66a1a;
    --text-color: #2d2d2d;
    --light-bg: #f8f6f4;
    --gradient-start: #1a3c6e;
    --gradient-end: #FF7F27;
}

/* Général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.section {
    padding: 4rem 1.5rem;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
}

.navbar-item img {
    max-height: 45px;
}

.navbar-item.is-active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.navbar-item:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f6f4 0%, #fff5eb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 127, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.main-title {
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.main-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.main-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary-color);
    opacity: 0.3;
    border-radius: 4px;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(26, 60, 110, 0.15);
    border: 4px solid var(--secondary-color);
}

/* Boutons */
.button.is-primary {
    background: var(--primary-color);
    transition: all 0.3s ease;
    color: white;
}

.button.is-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 60, 110, 0.3);
}

.button.is-primary.is-rounded {
    padding-left: 2rem;
    padding-right: 2rem;
}

.button.is-secondary {
    background: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.button.is-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 127, 39, 0.3);
    color: white;
}

.button.is-outlined.is-light {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.button.is-outlined.is-light:hover {
    background: var(--secondary-color);
    color: white;
}

/* Section Titres */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title .highlight {
    color: var(--secondary-color);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0.5rem auto 1.5rem;
    border-radius: 2px;
}

.divider-left {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0.5rem 0 1.5rem;
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 60, 110, 0.15);
}

.service-icon {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.service-card .card-content {
    padding: 2rem 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Réalisations */
.realisations-section {
    background: var(--light-bg);
}

.realisation-card {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 60, 110, 0.15);
}

.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 60, 110, 0.95), transparent);
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-overlay h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.realisation-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.realisation-overlay .tag {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.card-image {
    position: relative;
}

/* Équipe */
.team-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 60, 110, 0.15);
    border-color: var(--secondary-color);
}

.team-card .card-image {
    padding: 1rem 1rem 0;
}

.team-card .card-image img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.team-card .card-content {
    padding: 1rem;
}

.team-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
}

.team-card .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
}

.social-icons .button {
    margin: 0 0.25rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
}

.social-icons .button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* À propos */
.apropos-section {
    background: white;
}

.rounded-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid var(--secondary-color);
}

.stats .stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stats .stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 127, 39, 0.15);
}

.stats .stat-box h3 {
    color: var(--secondary-color);
    font-weight: 800;
}

.stats .stat-box p {
    color: var(--text-color);
    font-weight: 500;
}

/* Devis */
.devis-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff5eb 100%);
}

#devisForm .box {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2.5rem;
    border-top: 4px solid var(--secondary-color);
}

#devisForm .label {
    font-weight: 600;
    color: var(--primary-color);
}

#devisForm .input,
#devisForm .textarea,
#devisForm .select select {
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

#devisForm .input:focus,
#devisForm .textarea:focus,
#devisForm .select select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 39, 0.1);
}

#devisForm .checkbox a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contact */
.contact-section {
    background: white;
}

.contact-card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid var(--secondary-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 127, 39, 0.15);
}

.contact-icon {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.social-buttons .button {
    margin: 0.5rem;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.social-buttons .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.button.is-whatsapp {
    background: #25d366;
    color: white;
}

.button.is-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 1.5rem 2rem;
}

.footer-title {
    color: white !important;
    font-weight: 700;
}

.footer-title .highlight {
    color: var(--secondary-color);
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a::before {
    content: '›';
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.call-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(255, 127, 39, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-orange 2s infinite;
}

.call-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 127, 39, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 127, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 39, 0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 2.5rem !important;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    #devisForm .box {
        padding: 1.5rem;
    }
    
    .social-buttons .button {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float,
    .call-float {
        right: 15px;
    }
    
    .whatsapp-float {
        bottom: 20px;
    }
    
    .call-float {
        bottom: 85px;
    }
    
    .hero::before {
        display: none;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge et tags */
.tag.is-secondary {
    background: var(--secondary-color);
    color: white;
}

/* Progress bars */
.progress-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Cards avec bordure orange */
.card-border-orange {
    border-top: 4px solid var(--secondary-color);
}

/* Boutons avec gradient */
.button-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.button-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 127, 39, 0.3);
    color: white;
}

/* ===== EXTENSIONS CSS MD-BTP ===== */

/* === BREADCRUMB === */
.breadcrumb-section {
    background: var(--light-bg);
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb li.is-active a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* === BLOG === */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 60, 110, 0.15);
}

.blog-card .card-image {
    position: relative;
}

.blog-card .card-image .blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card .card-content {
    padding: 1.5rem;
}

.blog-card .blog-date {
    color: #888;
    font-size: 0.85rem;
}

.blog-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0.5rem 0;
}

.blog-card .blog-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === GALERIE === */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--secondary-color) !important;
    color: white !important;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galerie-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.galerie-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

.galerie-item .galerie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.galerie-item:hover .galerie-overlay {
    transform: translateY(0);
}

.galerie-item .galerie-overlay h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.lightbox-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav button:hover {
    background: var(--secondary-color);
}

/* === TEMOIGNAGES === */
.temoignage-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--secondary-color);
}

.temoignage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 127, 39, 0.15);
}

.temoignage-card .stars {
    color: #FFB800;
    margin-bottom: 1rem;
}

.temoignage-card .temoignage-text {
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.temoignage-card .temoignage-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.temoignage-card .temoignage-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.temoignage-card .temoignage-author .author-info h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.temoignage-card .temoignage-author .author-info p {
    color: #888;
    font-size: 0.85rem;
}

/* === STARS INPUT === */
.stars-input {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    cursor: pointer;
}

.stars-input .star-input {
    color: #ddd;
    transition: all 0.3s ease;
}

.stars-input .star-input.active {
    color: #FFB800;
}

.stars-input .star-input:hover {
    transform: scale(1.2);
}

/* === PROJETS === */
.projet-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 60, 110, 0.15);
}

.projet-card .card-image {
    position: relative;
}

.projet-card .card-image .projet-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.projet-status.encours {
    background: #FFB800;
    color: #333;
}

.projet-status.termine {
    background: #27ae60;
    color: white;
}

.projet-status.enattente {
    background: #e74c3c;
    color: white;
}

.projet-card .projet-progress {
    margin-top: 1rem;
}

.projet-card .projet-progress .progress {
    height: 8px;
    border-radius: 4px;
    background: #e8e8e8;
}

.projet-card .projet-progress .progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.projet-card .projet-progress .progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* === LIVE CHAT === */
.chat-float {
    position: fixed;
    bottom: 170px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(255, 127, 39, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-orange 2s infinite;
}

.chat-float:hover {
    transform: scale(1.1);
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 220px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 60px);
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-header-title {
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f6f4;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message .chat-message-content {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chat-message.user .chat-message-content {
    background: var(--secondary-color);
    color: white;
}

.chat-message .chat-message-time {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.2rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    background: white;
    border-top: 1px solid #e8e8e8;
}

.chat-input input {
    flex: 1;
    border-radius: 25px;
    border: 2px solid #e8e8e8;
    padding: 0.5rem 1rem;
}

.chat-input input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.chat-input button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .chat-window {
        bottom: 180px;
        right: 15px;
        width: calc(100vw - 30px);
        height: 400px;
    }
    
    .chat-float {
        bottom: 140px;
        right: 15px;
        padding: 12px;
    }
    
    .lightbox-nav button {
        padding: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .galerie-item img {
        height: 200px;
    }
}