@import url(/sources/Styles/colors.css);

/* --------------------- GLOBAL STYLE --------------------- */
body {
    background: var(--gradient-radial);
    background-attachment: fixed;
    color: var(--white);
    font-family: Jost !important;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* --------------------- HEADER CORRIGÉ --------------------- */
.profile-section {
    position: relative;
    padding: 0;
    overflow: hidden; /* empêche débordement de l'image du fond */
}

.profile-background {
    position: relative;
    width: 100%;
    height: 400px;
    z-index: 1;
}

.profile-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* couverture de l'image sur toute la zone sans déformation */
    display: block;
}

/* Dégradé sur l'image de fond */
.profile-background::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--shiny-navy));
    pointer-events: none; /* empêcher le dégradé de bloquer les clics */
    z-index: 2;
}

/* Photo de profil */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: -5px 5px 0px var(--deep-navy);
    object-fit: cover;
    display: block;
    margin: -90px auto 30px auto; /* pour gérer l'emplacement de la pdp */
    position: relative;
    z-index: 3; /* au dessus du dégradé */
}

/* Contenu texte */
.profile-content {
    position: relative;
    z-index: 1;
    padding: 20px 15px 30px;
    text-align: center;
}

/* Responsive - mobile */
@media (max-width: 767px) {
    .profile-background {
        height: 250px;
    }
    .profile-background::after {
        height: 70px;
    }
    .profile-picture {
        margin-top: -80px; /* pour gérer l'emplacement de la pdp */
    }
}

h1 {
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 32px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--white) !important;
}

.tagline {
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: var(--icy-blue);
    margin-bottom: 16px;
    text-align: center;
}

/* Localisation */
.profile-location {
    font-size: 16px;
    margin: 10px auto;
    color: var(--icy-blue);
}

.profile-location i {
    margin-right: 5px;
    color: var(--cool-sky);
}

/* CTA */
.cta-text {
    font-weight: 400;
    margin: 5px 0;
    font-size: 18px;
    text-align: center;
    color: var(--white);
}

.cta-button {
    border-radius: 10px;
    background-color: var(--cool-sky);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease !important;
    border: 2px solid transparent;
    margin: 8px 0;
    font-size: 16px;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--honeyberry);
    color: var(--white);
    transform: scale(1.05) !important;
}

/* Boutons réseaux sociaux */
.social-buttons {
    display: flex;
    flex-wrap: wrap; /* passage à la ligne sur mobile */
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(10px); */ /* effet de verre dépoli */
    border: 2px solid var(--white);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    font-size: 16px;
}

.social-button i {
    font-size: 20px;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 8, 57, 0.6);
}

/* Button color hover */
.social-button.facebook:hover { background-color: #1877f2; border-color: #1877f2; }
.social-button.instagram:hover { 
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    border-color: transparent;
}
.social-button.linkedin:hover { background-color: #0077b5; border-color: #0077b5; }
.social-button.behance:hover { background-color: #1769ff; border-color: #1769ff; }

/* --------------------- BIO / QUOTE --------------------- */
.bio-section {
    padding: 60px 15px;
}

.bio-quote {
    font-weight: 600;
    font-style: italic;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bio-quote p {
    margin-bottom: 16px;
}

.bio-quote p:first-child::before {
    content: "❝";
    font-size: 32px;
    color: var(--cool-sky);
    margin-right: 8px;
}

.bio-quote p:last-child::after {
    content: "❞";
    font-size: 32px;
    color: var(--cool-sky);
    margin-left: 8px;
}

/* --------------------- CARDS SERVICES --------------------- */
.services-section {
    padding: 40px 15px;
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 48px;
    color: var(--white);
    text-shadow: 2px 2px 0 var(--deep-navy);
    font-size: 28px;
}

/* Grille pour les cartes */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background-color: var(--white);
    color: var(--shiny-navy);
    border-radius: 10px;
    box-shadow: -10px 10px 0px var(--deep-navy);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 280px;
    margin: 0 auto;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: -12px 12px 0px var(--deep-navy);
}

.image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

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

.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 1;
}

.service-card-h2 {
    font-weight: 600;
    margin: 15px 0 0 0;
    font-size: 20px;
    padding: 0 16px;
    text-align: center;
}

.service-card p {
    margin: 10px 0 0 0;
    padding: 0 16px 24px;
    color: var(--deep-navy);
    text-align: center;
    font-size: 15px;
}

/* --------------------- SLIDER CORRIGÉ --------------------- */
.slider-section {
    padding: 48px 15px;
    background: rgba(8, 8, 57, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px 10px 0 0;
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.scroll-container {
    display: flex;
    overflow-x: auto; /* active le défilement horizontal */
    gap: 16px;
    padding: 10px 0 20px;
    scroll-behavior: smooth; /* défilement fluide */
    scrollbar-width: none; /* cache la scrollbar native sur Firefox */
    -ms-overflow-style: none; /* cache la scrollbar native sur IE/Edge */
    width: 100%;
}

.scroll-container::-webkit-scrollbar {
    display: none; /* cache la scrollbar native sur Chrome/Safari */
}

.scroll-item {
    flex: 0 0 auto; /* empêche les items de rétrécir */
    width: 280px;
}

.slider-card {
    background-color: var(--white);
    color: var(--shiny-navy);
    border-radius: 10px;
    box-shadow: -10px 10px 0px var(--deep-navy);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    height: 340px; /* hauteur fixe pour uniformiser les cartes */
    display: flex;
    flex-direction: column;
}

.slider-image {
    width: 100%;
    height: 180px; /* hauteur fixe pour toutes les images */
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* empêche l'image de rétrécir */
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.slider-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}

.slider-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 160px;
}

.slider-content h3 {
    font-weight: 700;
    color: var(--shiny-navy);
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: uppercase;
}

.slider-content p {
    color: var(--deep-navy);
    margin: 0;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Scrollbar personnalisée */
.scrollbar-horizontal {
    width: 100%;
    margin-top: 15px;
    padding: 5px 0;
}

.scrollbar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
}

.scrollbar-thumb {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, var(--cool-sky), var(--honeyberry));
    border-radius: 10px;
    cursor: grab;
    box-shadow: 0 0 10px var(--cool-sky);
    width: 120px;
}

/* --------------------- PORTFOLIO / CONTACT SECTION --------------------- */
.portfolio-section {
    padding: 50px 15px 20px 15px;
    text-align: center;
}

.portfolio-section h2 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    font-size: 24px;
}

.portfolio-section p {
    margin-bottom: 24px;
    color: var(--icy-blue);
    font-size: 16px;
}

.cta-whatsapp {
    background-color: var(--icy-blue);
    color: var(--honeyberry);
}

.cta-whatsapp:hover {
    background-color: var(--honeyberry);
}

.double-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* --------------------- FOOTER --------------------- */
footer {
    background: var(--deep-navy);
    padding: 16px 15px 16px;
    border-radius: 10px 10px 0 0;
    margin-top: 40px;
    text-align: center;
}

.footer-logo {
    width: 150px;
    margin: 30px auto;
    display: block;
}

.text-footer {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: var(--white);
}

footer a {
    text-decoration: none;
    color: var(--cool-sky);
    transition: color 0.3s ease;
    font-size: 14px;
}

footer a:hover {
    color: var(--icy-blue);
}

/* Progress bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
}

.progress-bar-custom {
    height: 5px;
    background: linear-gradient(90deg, var(--cool-sky), var(--honeyberry), var(--shiny-navy));
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 10px var(--cool-sky);
}

/* --------------------- RESPONSIVE --------------------- */
/* Mobile (moins de 768px) */
@media (max-width: 767px) {
    .social-button {
        min-width: 130px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .service-card-h2 {
        font-size: 18px;
    }
    
    .service-card {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        justify-content: center;
    }
    
    .profile-section {
        min-height: 550px;
    }
}

/* Tablette (768px à 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .service-card {
        width: 320px;
    }
    
    .social-button {
        min-width: 150px;
    }
}

/* Desktop (992px et plus) */
@media (min-width: 992px) {
    .service-card {
        width: 280px;
    }
    
    .services-grid {
        max-width: 1200px;
        margin: 0 auto;
    }
}