:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: 'Poppins', sans-serif;
    --warning-color: #f0ad4e;  /* Orange/jaune pour les avertissements */
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    padding-top: 90px; /* Augmenté de 80px à 90px pour desktop */
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    max-height: 60px; /* Augmenté de 50px à 60px */
}

.phone-number, .email-address {
    font-size: 1.4rem; /* Augmenté de 1.2rem à 1.4rem */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.phone-number:hover, .email-address:hover {
    color: var(--secondary-color);
}

.contact-btn {
    font-weight: 600;
    padding: 10px 24px; /* Augmenté de 8px 20px à 10px 24px */
    font-size: 1.1rem; /* Ajout d'une taille de police plus grande */
}

/* Sections générales */
.section-padding {
    padding: 50px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 30px; /* Ajoute un espace supplémentaire en haut */
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Badge d'expérience */
.experience-badge {
    position: absolute;
    right: 10%;
    top: 60%;
    transform: translate(50%, -50%);
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Version mobile du badge (positionnement relatif entre les sections) */
.experience-badge-mobile {
    width: 140px;
    height: 140px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    margin: -70px auto 30px;
}

/* Styles communs pour le contenu du badge */
.badge-inner {
    text-align: center;
}

.badge-inner .years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.badge-inner .text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

/* Services */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Zone d'intervention */
.zone-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.zone-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.zone-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact form */
.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    padding: 5px 0;
}

.footer-links a, .footer-contact-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-links a:hover, .footer-contact-link:hover {
    color: white;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
        right: 5%;
    }
    
    .badge-inner .years {
        font-size: 2.5rem;
    }
    
    .badge-inner .text {
        font-size: 0.8rem;
    }
}


/* Style amélioré pour les cartes de services */
.service-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-details {
    margin-top: 20px;
    text-align: left;
    display: none;
    transition: all 0.3s ease;
}

.service-card:hover .service-details {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.service-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.service-features li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--success-color);
}

.service-icon {
    margin-top: -40px;
    background-color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;  /* Ajout de cette propriété */
    z-index: 10;         /* Ajout de cette propriété */
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;  /* Ajout de cette propriété */
    z-index: 1;          /* Ajout de cette propriété - inférieur à celui de l'icône */
}

.service-card {
    transition: all 0.3s ease;
    overflow: visible;   /* Changer de 'hidden' à 'visible' */
    position: relative;  /* Ajout de cette propriété */
}

/* Ajoutez ces styles après le style du phone-number */

.email-address {
    font-size: 1.4rem; /* Augmenté de 1.2rem à 1.4rem */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.email-address:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Ajustements responsives pour l'en-tête */
@media (max-width: 992px) {
    .contact-info {
        margin: 15px 0;
    }
    
    .phone-number, .email-address {
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .logo {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }
    
    .phone-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Ajustement pour le padding du body selon la hauteur du header */
body {
    padding-top: 90px; /* Augmenté de 80px à 90px pour desktop */
}

/* Ajustement du padding-top pour la section hero */
.hero-section {
    padding-top: 30px; /* Ajoute un espace supplémentaire en haut */
}

/* Media queries pour différentes tailles d'écran */
@media (max-width: 992px) {
    body {
        padding-top: 130px; /* Augmenté de 120px à 130px */
    }
    
    .hero-section {
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 150px; /* Encore plus grand pour mobile */
    }
    
    .hero-section {
        padding-top: 50px;
    }
    
    /* Ajustez la hauteur minimale pour mobile */
    .hero-section .min-vh-100 {
        min-height: calc(100vh - 150px) !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 120px; /* Maximum pour très petits écrans */
    }
    
    .hero-section .min-vh-100 {
        min-height: calc(100vh - 170px) !important;
    }
}

header .py-2 {
    padding-top: 0.75rem !important; /* Augmenté par rapport à la classe Bootstrap py-2 */
    padding-bottom: 0.75rem !important;
}

/* Styles pour la page des mentions légales - à ajouter à la fin du fichier style.css existant */

.mentions-legales {
    padding-top: 20px; /* Pour compenser le header fixe */
}

.mentions-legales h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mentions-legales p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links .active {
    font-weight: bold;
    color: white;
}

@media (max-width: 768px) {
    .mentions-legales {
        padding-top: 20px;
    }
}

/* Styles pour l'en-tête mobile */
.logo-mobile {
    max-height: 45px;
}

.contact-btn-mobile {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Style pour la zone de contact sur mobile */
.mobile-contact-info {
    text-align: center;
    display: flex;
    justify-content: center;
}

.mobile-contact-info .phone-number,
.mobile-contact-info .email-address {
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Media queries pour les ajustements sur très petits écrans */
@media (max-width: 370px) {
    .mobile-contact-info .phone-number,
    .mobile-contact-info .email-address {
        font-size: 1.1rem;
    }
    
    .contact-btn-mobile {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 400px) {
    .experience-badge-mobile {
        width: 120px;
        height: 120px;
        margin: -60px auto 20px;
    }
    
    .experience-badge-mobile .years {
        font-size: 2.5rem;
    }
    
    .experience-badge-mobile .text {
        font-size: 0.85rem;
    }
}

/* Styles pour le bouton "Plus d'infos" et comportement des détails */
.more-info-btn {
    margin: 15px auto 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.more-info-btn i {
    transition: transform 0.3s ease;
}

.more-info-btn.active i {
    transform: rotate(180deg);
}

/* Sur mobile, désactiver le hover et gérer l'affichage via les boutons */
@media (max-width: 767px) {
    .service-card:hover .service-details {
        display: none; /* Désactive le hover sur mobile */
    }
    
    .service-details {
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* Sur desktop, maintenir le comportement hover et cacher les boutons */
@media (min-width: 768px) {
    .more-info-btn {
        display: none;
    }
    
    .service-card:hover .service-details {
        display: block;
        animation: fadeIn 0.5s ease forwards;
    }
}

/* Ajoutez ces styles à votre fichier style.css */
.success-card {
    border: none;
    border-radius: 15px;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
}

.success-details {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ajoutez ces styles à votre fichier style.css */
.error-card {
    border: none;
    border-radius: 15px;
}

.error-icon {
    font-size: 80px;
    color: var(--warning-color);  /* Utilisez une couleur d'avertissement, pas d'erreur */
}

.error-details {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-options .btn {
    min-width: 200px;
}


/* Zone cliquable "Mes réalisations" */
.realisations-section {
    padding: 40px 0;
}

.realisations-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.realisations-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 30px;
}

.realisations-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisations-card:hover::before {
    opacity: 1;
}

.realisations-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 115, 232, 0.25);
}

.realisations-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.realisations-card:hover .realisations-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.realisations-content {
    flex: 1;
    position: relative;
}

.realisations-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.realisations-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.realisations-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.realisations-card:hover .realisations-arrow {
    transform: translateY(-50%) translateX(10px);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .realisations-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .realisations-content h3 {
        font-size: 1.7rem;
    }
    
    .realisations-content p {
        font-size: 1rem;
    }
    
    .realisations-arrow {
        position: static;
        transform: none;
        margin-top: 15px;
    }
    
    .realisations-card:hover .realisations-arrow {
        transform: translateY(5px);
    }
}

@media (max-width: 576px) {
    .realisations-card {
        padding: 25px 15px;
    }
    
    .realisations-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .realisations-content h3 {
        font-size: 1.5rem;
    }
}

/* --- Réalisations --- */
.realisation-item { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.realisation-title { color: var(--primary-color, #005CA9); font-weight:700; margin-bottom:8px; }
.realisation-desc { color: #444; line-height:1.5; }
/* Galerie : 3 images côte à côte sur grand écran, empilées sur petit écran */
.realisation-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 12px;
}

.realisation-image {
    flex: 0 0 calc(33.333% - 8px); /* trois colonnes égales, en tenant compte du gap */
}

.realisation-image img,
.realisation-thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,92,169,0.08);
    transition: transform .25s ease;
}

.realisation-thumb:hover { transform: translateY(-6px); }

@media (max-width: 992px) {
    /* autoriser le wrapping sur tablettes plus petites */
    .realisation-gallery { flex-wrap: wrap; }
    .realisation-image { flex: 0 0 calc(50% - 6px); }
}

@media (max-width: 576px) {
    /* sur mobile : images empilées pleine largeur */
    .realisation-gallery { flex-direction: column; gap: 12px; }
    .realisation-image { flex: 0 0 100%; }
}

/* Si vous préférez plusieurs images côte-à-côte sur grand écran, on peut ajouter
     un breakpoint pour passer en row (ex. >=1200px). Pour l'instant, toutes les
     images prennent la largeur du conteneur comme demandé. */