/* Logo */
.logo-img {
    width: 80px;
    height: auto;
    display: block;
}

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

:root {
    --primary-color: #00a8e6;
    --secondary-color: #e40087;
    --tertiary-color: #fae500;
    --bg-color: #111111;
    --text-color: #FFFFFF;
    --dark-bg: #1a1a1a;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    transition: var(--transition);
}

h2:hover::after {
    width: 120px;
    background: var(--tertiary-color);
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0;
    background-color: rgba(17, 17, 17, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}
nav ul li:first-child {
    margin-left: 0px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Bouton Appel */
.call-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(228, 0, 135, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.call-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(228, 0, 135, 0.4);
    color: white;
    background: var(--primary-color);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(228, 0, 135, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(228, 0, 135, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 0, 135, 0);
    }
}

/* Bouton Retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 168, 230, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
}

/* Section Présentation */
#presentation {
    padding: 150px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-presentation.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.presentation-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.profile-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.profile-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 5px solid var(--primary-color);
    top: 10%;
    left: 10%;
    z-index: -1;
    transition: var(--transition);
}

.profile-image:hover::before {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-color: var(--secondary-color);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    border-radius: 10px;
    transition: var(--transition);
}

.profile-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.presentation-text {
    flex: 1;
    min-width: 300px;
    padding: 20px 40px;
}

.presentation-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: white;
    text-align: left;
    position: relative;
    display: inline-block;
}

.presentation-text h2::after {
    left: 0;
    margin: 15px 0 0 0;
}

.presentation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Valeurs */
#valeurs {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.valeur-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.valeur-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.valeur-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(0, 168, 230, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.valeur-card:hover .valeur-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.valeur-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
}

.valeur-card h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.valeur-card:hover h3::after {
    width: 60px;
    background: var(--tertiary-color);
}

.valeur-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Section Réalisations */
#realisations {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.realisation-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.realisation-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.1);
}

.realisation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 230, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-overlay a {
    color: white;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 30px;
    transition: var(--transition);
}

.realisation-overlay a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.realisation-overlay a i {
    margin-left: 10px;
    font-size: 1rem;
}

.realisation-info {
    padding: 25px;
}

.realisation-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.realisation-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Section Prestations */
#prestations{
    padding: 100px 0;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
    width: 100%;
    min-width: 1200px;
}
#avis {
    padding: 100px 0;
}

.prestation-card,
.avis-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Permet aux cartes de rétrécir si nécessaire */
}
.avis-card {
    margin-bottom: 50px;
}

.prestation-card:hover,
.avis-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.prestation-icon {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 15px 0;
    transition: var(--transition);
    position: relative;
}

.prestation-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    transition: var(--transition);
}

.prestation-card:hover .prestation-icon {
    transform: translateY(-10px);
}

.prestation-card:hover .prestation-icon::after {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.prestation-info,
.avis-info {
    padding: 25px;
    text-align: center;
}

.prestation-info h3,
.avis-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
}

.prestation-info h3::after,
.avis-info h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.prestation-card:hover .prestation-info h3::after,
.avis-card:hover .avis-info h3::after {
    width: 60px;
    background: var(--tertiary-color);
}

.prestation-info p,
.avis-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Section Contact */
#contact {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    text-align: left;
}

.footer-logo h2::after {
    display: none;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 50px 0;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.modal-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.modal-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.modal-gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1400px) {
    .prestations-grid {
        grid-template-columns: repeat(3, 1fr);
        min-width: auto;
        gap: 15px;
    }
    
    .prestation-icon {
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .presentation-content {
        flex-direction: column;
    }
    
    .presentation-text {
        padding: 40px 0 0 0;
    }
    
    .presentation-text h2 {
        text-align: center;
    }
    
    .presentation-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .prestations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prestation-icon {
        height: 70px;
        font-size: 1.8rem;
    }
    .menu-toggle {
        display: block !important;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-bg);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px 0;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .valeurs-grid,
    .realisations-grid,
    .prestations-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
    }
}

/* Animation des éléments au défilement */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation du bouton menu mobile */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
    top: 9px;
}

.menu-toggle span:nth-child(4) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-toggle.active span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* Animation du chargement */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation du texte défilant */
.typing-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Animation des boutons */
.btn-pulse {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-pulse:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
