﻿/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* On s'assure que le header reste fixé en haut */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Supprimer les bordures, outlines et box-shadows */
header,
.hero-section,
.hero-image {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Supprimer complètement l'espace entre header et hero */
header {
    margin-bottom: 0 !important;
}

.hero-section {
    position: relative;
    width: 100%;
    margin-top: var(--header-height, 80px); /* valeur par défaut 80px */
    padding: 0;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-image {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Exemple : si ton header est plus petit sur mobile */
@media (max-width: 640px) {
    .hero-section {
        margin-top: var(--header-height-mobile, 60px);
    }
}

/* Image toujours entière et responsive */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;  /* garde l'image entière */
    object-position: center;
}

/* Mobile */
@media (max-width: 640px) {
    .hero-section {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Tablette */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .hero-image {
        width: 100%;
        height: 650px;
        object-fit: cover;
    }
}

/* Animation du scroll down */
.scroll-down {
    width: 20px;
    height: 36px;
    border: 2px solid #f97316;
    border-radius: 10px;
    position: relative;
    display: none;
}

.scroll-down__arrow {
    width: 4px;
    height: 4px;
    background: #f97316;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Afficher le scroll indicator sur desktop */
@media (min-width: 768px) {
    .scroll-down {
        display: block;
    }
}

/* Styles pour les boutons CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 24px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cta-button__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-button__line {
    transform: scaleX(1);
}

.cta-button--secondary {
    background: transparent;
    border: 2px solid #f97316;
    color: #f97316;
}

.cta-button--secondary .cta-button__line {
    background: #f97316;
}

.cta-button--dark {
    background: #1f2937;
    color: white;
}

.cta-button--dark .cta-button__line {
    background: white;
}

/* Styles pour les cartes de service */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 32px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-card--highlight {
    border-top: 3px solid #f97316;
}

.service-card--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.03), rgba(255, 255, 255, 0.1));
    z-index: -1;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-card__icon {
    background: rgba(249, 115, 22, 0.2);
    transform: rotateY(180deg);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.service-card__description {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    color: #f97316;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card__link:hover {
    color: #ea580c;
}

.service-card__link:hover i {
    transform: translateX(4px);
}

/* Styles pour les cartes de projet */
.project-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card__image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card:hover .project-card__image {
    transform: scale(1.1);
}

.project-card__overlay-content {
    padding: 16px;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__overlay-content {
    transform: translateY(0);
}

.project-card__title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.project-card__link {
    display: inline-block;
    padding: 6px 16px;
    background: #f97316;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card__link:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* Styles pour les témoignages */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card__content {
    flex: 1;
}

.testimonial-card__rating {
    margin-bottom: 16px;
}

.testimonial-card__text {
    font-style: italic;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
}

.testimonial-card__text::before {
    content: '"';
    font-size: 3rem;
    color: rgba(249, 115, 22, 0.1);
    position: absolute;
    top: -16px;
    left: -12px;
    line-height: 1;
    z-index: 0;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-card__author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #f97316;
}

.testimonial-card__author-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.testimonial-card__author-position {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Effets de texte */
.text-gradient-orange {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #f97316, #f59e0b);
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: rgba(249, 115, 22, 0.3);
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight-text:hover::after {
    height: 40%;
}

/* Animation des éléments */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

/* Responsive adjustments pour le reste */
@media (max-width: 640px) {
    .cta-button {
        padding: 8px 20px;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
    }

    .service-card__title {
        font-size: 1.125rem;
    }

    .project-card__title {
        font-size: 1.125rem;
    }

    .project-card__description {
        font-size: 0.875rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card__author-image {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .cta-button {
        padding: 10px 24px;
    }

    .service-card {
        padding: 28px 20px;
    }
}
