@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --dark-bg: #1b1a1f;
    --accent: #ffb641;
    --accent-light: #FFF480;
    --text-light: #ffffff;
    --text-secondary: #b1b1b1;
    --border-radius: 10px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Figtree', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Quadrillage de pointillés oranges */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: var(--space-xl) 0;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 90%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent);
    position: relative;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-light);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
    border-radius: 50px;
}

.btn:hover::before {
    width: 100%;
    right: 0;
    left: auto;
}

.btn-primary {
    background-color: var(--dark-bg);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    color: var(--dark-bg);
}

.btn-primary::before {
    background-color: var(--accent);
}

.btn-secondary {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    color: var(--text-light);
}

.btn-secondary::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    color: var(--dark-bg);
}

.btn-outline::before {
    background-color: var(--accent);
}

.btn-text {
    background: none;
    color: var(--accent);
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    overflow: visible;
}

.btn-text::before {
    display: none;
}

.btn-text i {
    transition: transform 0.3s ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: var(--space-sm) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(27, 26, 31, 0.9);
    backdrop-filter: blur(10px);
}

.logo-container .logo {
    height: 40px;
}

.nav-menu ul {
    display: flex;
    gap: var(--space-md);
}

.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}

.hero-content {
    max-width: 600px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
}

.hero-image {
    position: relative;
    width: 500px;
    height: 500px;
}

.shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(255, 182, 65, 0.3) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    75% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Information Bar */
.information {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin: var(--space-lg) auto;
    max-width: var(--container-width);
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.information .content {
    flex: 1;
}

.info-icon {
    margin-right: var(--space-md);
    font-size: 1.5rem;
    color: var(--accent);
}

.promo-code {
    background-color: var(--accent);
    color: var(--dark-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 5px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 182, 65, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    max-width: 100%;
}

/* Pour les grands écrans, limiter à 2 colonnes pour un meilleur aspect visuel */
@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 182, 65, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 (9/16 = 0.5625) */
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(27, 26, 31, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform; /* Améliore les performances d'animation */
    backface-visibility: hidden; /* Évite les artefacts visuels pendant l'animation */
    transform-origin: center center; /* Animation centrée */
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    z-index: 0;
}

.portfolio-info {
    padding: var(--space-md);
    position: relative;
    z-index: 1;
}

.portfolio-info h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.portfolio-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.portfolio-item:hover .portfolio-info h3::after {
    width: 100%;
}

.portfolio-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-sm);
}

.portfolio-tags span {
    background-color: rgba(255, 182, 65, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-tags span:hover {
    background-color: var(--accent);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    gap: 8px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-light);
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.contact-info:hover, .contact-form:hover {
    border-color: rgba(255, 182, 65, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.contact-item i {
    font-size: 1rem;
    color: var(--accent);
    margin-right: var(--space-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 182, 65, 0.1);
}

.contact-social {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Figtree', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Messages de succès et d'erreur */
.form-success,
.form-error {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: var(--space-md);
}

.form-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.form-success i,
.form-error i {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.form-success i {
    color: #28a745;
}

.form-error i {
    color: #dc3545;
}

.form-success h3 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.form-success p,
.form-error p {
    margin-bottom: 0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.about-text {
    font-size: 1.1rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.value-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 182, 65, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 182, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.value-icon i {
    color: var(--accent);
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 182, 65, 0.1) 0%, rgba(255, 182, 65, 0.03) 100%);
    padding: var(--space-xl) 5%;
    text-align: center;
    border-radius: var(--border-radius);
    margin: var(--space-xl) auto;
    max-width: var(--container-width);
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section p {
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: var(--space-xl) 5% var(--space-md);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo img {
    width: 50%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* Styles pour la section d'expertise locale */
.local-expertise {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 182, 65, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.local-expertise h3 {
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.local-expertise ul {
    list-style: none;
    padding: 0;
}

.local-expertise li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.local-expertise li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    :root {
        --container-width: 90%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
        height: auto;
        padding-top: 150px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .information {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Amélioration de l'affichage des images pour différents appareils */
@media (max-width: 768px) {
    .portfolio-image {
        padding-top: 56.25%; /* Maintenir le ratio 16:9 même sur mobile */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
