/* Variables de Couleurs - Basé sur votre palette */
:root {
    --primary-pink: #EC268F; /* Votre rose vif */
    --primary-blue: #2E4C94; /* Votre bleu foncé */
    --secondary-purple: #9B59B6; /* Votre violet (utilisé pour des accents si besoin) */
    --bg-light: #F8F8F8; /* Un gris très clair, presque blanc, pour un look épuré */
    --bg-dark-section: #F2F2F2; /* Un gris clair légèrement plus prononcé */
    --text-dark: #333333; /* Texte principal foncé (noir presque) */
    --text-light: #6c757d; /* Texte secondaire, plus clair */
    --white: #FFFFFF;
    --black: #000000;
    --border-color: #e0e0e0; /* Couleur de bordure générale plus claire */

    /* Polices */
    --font-heading: 'Playfair Display', serif; /* Pour les titres importants */
    --font-body: 'Roboto', sans-serif; /* Pour le texte courant */

    /* Pattern pour l'accueil */
    /* REMPLACER 'votre-pattern.png' par le chemin de votre image de motif */
    --pattern-url: url('Fichier 4.png'); 
    --pattern-opacity: 0.07; /* Opacité du pattern (ajustez si besoin, ici un peu plus faible) */
}

/* Styles Généraux */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-pink);
}

a:hover {
    color: var(--primary-blue);
}

.container {
    max-width: 1140px;
}

/* Utilitaires de texte pour les couleurs */
.text-pink { color: var(--primary-pink) !important; }
.text-blue { color: var(--primary-blue) !important; }


/* Titres de section (similaires à la maquette) */
.section-heading-big {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-heading-medium {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-heading-small {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-subheading {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

/* Boutons Bootstrap personnalisés */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-dark);
}

.btn-outline-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-dark);
}


/* --- Header --- */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05); /* Ombre plus légère */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo-container {
    flex-shrink: 0;
    margin-right: 20px;
}

.main-header .logo {
    height: 45px;
    vertical-align: middle;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-pink);
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-pink);
    transition: width 0.3s ease;
}

.btn-consultation-header {
    background-color: var(--primary-pink);
    color: var(--white);
    border: 1px solid var(--primary-pink);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    margin-left: 40px;
}

.btn-consultation-header:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--primary-blue);
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2846, 76, 148, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Menu */
.offcanvas {
    background-color: var(--bg-light);
}
.offcanvas .offcanvas-header {
    background-color: var(--primary-blue);
    color: var(--white);
}
.offcanvas .offcanvas-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}
.offcanvas .btn-close {
    filter: invert(1);
}
.offcanvas .navbar-nav .nav-item {
    margin-bottom: 10px;
}
.offcanvas .navbar-nav .nav-link {
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.offcanvas .navbar-nav .nav-link:hover,
.offcanvas .navbar-nav .nav-link.active {
    background-color: var(--primary-pink);
    color: var(--white);
}


/* --- Hero Section (Accueil) --- */
.hero-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative; /* Pour positionner le pattern */
    overflow: hidden; /* S'assurer que le pattern ne déborde pas */
}

.hero-section::before { /* Le pattern en arrière-plan */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-url);
    background-repeat: repeat;
    background-size: 150px; /* Taille du pattern, ajustez si besoin */
    opacity: var(--pattern-opacity);
    z-index: 0;
}

.hero-section > .container { /* Assurez-vous que le contenu est au-dessus du pattern */
    position: relative;
    z-index: 1;
}

.hero-text-content {
    text-align: left;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 25px;
    font-family: var(--font-body);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons .btn {
    margin-right: 20px;
}

.hero-cta-btn {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 600;
}

.hero-cta-btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.hero-cv-btn {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
    padding: 15px 35px;
    font-weight: 600;
}

.hero-cv-btn:hover {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.hero-image-wrapper {
    text-align: center;
    padding-left: 40px;
}

.hero-image-container {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08); /* Ombre plus légère */
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.pink-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--primary-pink);
    border-radius: 0 0 10px 10px;
    z-index: 0;
}


/* --- Section À propos (Pourquoi collaborer avec moi & Hi, I'm Sokhna) --- */
.section-about-full {
    background-color: var(--bg-dark-section); /* Fond gris-clair */
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}
.section-about-full .text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.section-about-full .text-content .btn-learn-more {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 500;
}
.section-about-full .text-content .btn-learn-more:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Photo Placeholder */
.photo-placeholder {
    width: 250px; /* Taille du cadre, ajustez si besoin */
    height: 250px; /* Taille du cadre */
    background-color: var(--bg-light); /* Couleur de fond du cadre */
    border: 2px dashed var(--border-color); /* Bordure en pointillé pour indiquer un placeholder */
    border-radius: 8px; /* Bords arrondis */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Centrer le placeholder */
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

.why-me-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.why-me-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.5;
}
.why-me-list .icon-arrow-pink {
    color: var(--primary-pink);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    padding-top: 3px;
}


/* --- Section Services (Compacte et Épurée) --- */
.section-services {
    background-color: var(--white);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-card-compact {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px; /* Padding ajusté pour un cadre plus réduit */
    text-align: center;
    height: 100%; /* Important pour aligner les cartes en hauteur */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Répartit l'espace entre les éléments */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: var(--white);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
}

.service-icon-wrapper i {
    font-size: 2.5rem; /* Taille réduite pour un look plus compact */
    color: var(--white);
}

.service-title {
    font-family: var(--font-body);
    font-size: 1.5rem; /* Titre plus compact */
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px; /* Marge réduite */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: center; /* Centrer le texte de la liste */
    width: 100%;
    margin-top: auto; /* Pousse la liste vers le bas avant le bouton */
    margin-bottom: 25px; /* Marge réduite */
    font-size: 0.95rem; /* Taille de texte plus petite */
    line-height: 1.6;
    color: var(--text-dark);
}
.service-features li {
    margin-bottom: 8px; /* Espacement réduit entre les points */
    position: relative;
    padding-left: 20px; /* Espace pour l'icône */
}
.service-features li::before {
    content: "\f00c"; /* Checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-pink);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.8em; /* Taille de l'icône légèrement plus petite */
}

.btn-service-cta {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 500;
    margin-top: auto; /* Pousse le bouton vers le bas */
    font-size: 0.9rem;
}
.btn-service-cta:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}


/* --- Section Projets (Plus épurée) --- */
.section-projects {
    background-color: var(--bg-dark-section); /* Fond gris-clair */
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-card-clean {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03); /* Ombre très subtile */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Bordure très fine */
}
.project-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08); /* Ombre plus prononcée au survol */
}

.project-img-wrapper {
    height: 200px; /* Hauteur fixe pour l'image */
    overflow: hidden;
    background-color: #f0f0f0; /* Fond gris si l'image est manquante */
    border-bottom: 1px solid var(--border-color);
}

.project-card-img-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.project-card-clean:hover .project-card-img-clean {
    transform: scale(1.05); /* Zoom léger sur l'image au survol */
}

.project-card-content-clean {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category-clean {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-pink);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.project-title-clean {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.project-description-clean {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}
.btn-project-details-clean {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
    padding: 8px 20px;
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9rem;
}
.btn-project-details-clean:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}


/* --- Section Compétences --- */
.section-skills {
    background-color: var(--bg-light);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}
.skill-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.skill-card-icon {
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
}
.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.skill-card p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Outils maîtrisés */
.tool-icons {
    margin-top: 25px;
}
.tool-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(80%);
    transition: filter 0.3s ease;
}
.tool-icon:hover {
    filter: grayscale(0%);
}

/* Soft Skills */
.soft-skills-tags {
    margin-top: 15px;
}
.skill-tag {
    display: inline-block;
    background-color: var(--primary-pink);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px;
    transition: background-color 0.3s ease;
}
.skill-tag:hover {
    background-color: var(--primary-blue);
}


/* --- Section Contact --- */
.section-contact {
    background-color: var(--bg-dark-section);
    padding: 100px 0;
}
.contact-cta-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    padding: 50px;
}
.contact-cta-card .cta-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}
.contact-cta-card .cta-description {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
}
.btn-cta.btn-email {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
}
.btn-cta.btn-email:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-cta.btn-phone {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}
.btn-cta.btn-phone:hover {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}
.back-to-top-btn {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-dark);
    margin-top: 30px;
    padding: 10px 25px;
}
.back-to-top-btn:hover {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
}


/* --- Footer --- */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.footer-contact-info {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.footer-contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact-info .info-item i {
    color: var(--primary-pink);
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.social-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-pink);
}


/* --- Media Queries pour la Responsivité --- */
@media (max-width: 1200px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991px) { /* Tablettes et petits ordinateurs */
    .main-header .main-nav ul {
        display: none;
    }
    .main-header .btn-consultation-header {
        display: none !important;
    }
    .main-header .container {
        justify-content: space-between;
    }

    .hero-section {
        padding: 60px 0;
    }
    .hero-text-content {
        padding-right: 15px;
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.6rem;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        margin-right: 0;
        width: 100%;
    }
    .hero-image-wrapper {
        padding-left: 15px;
    }
    .pink-banner {
        height: 40px;
    }

    .section-heading-big {
        font-size: 2.2rem;
    }
    .section-heading-medium {
        font-size: 2rem;
    }
    .section-heading-small {
        font-size: 1.8rem;
    }
    .section-subheading {
        font-size: 1.6rem;
    }

    .section-about-full .text-content,
    .section-about-full .image-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .section-about-full .row:nth-child(2) .image-content {
        order: -1;
        margin-bottom: 25px;
    }
    .section-about-full .row:nth-child(3) .image-content {
        margin-bottom: 25px;
    }
    .why-me-list li,
    .section-about-full .text-content p {
        font-size: 1rem;
    }
    .photo-placeholder {
        width: 200px;
        height: 200px;
        font-size: 0.9rem;
    }


    /* Services Responsiveness (cartes réduites et empilées) */
    .section-services .col-lg-4 { /* Cible les colonnes de service */
        flex: 0 0 auto;
        width: 100%; /* Sur les écrans moyens et petits, les cartes prennent toute la largeur */
    }
    /* Pour que les cartes de service restent sur une seule colonne sur les petits écrans */
    .section-services .col-md-6 {
        width: 100%;
    }
    
    .service-card-compact {
        padding: 25px;
    }
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .service-icon-wrapper i {
        font-size: 2rem;
    }
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .service-features {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .btn-service-cta {
        font-size: 0.85rem;
        padding: 8px 20px;
    }


    .project-img-wrapper {
        height: 180px;
    }
    .project-title-clean {
        font-size: 1.4rem;
    }
    .project-description-clean {
        font-size: 0.9rem;
    }
    .btn-project-details-clean {
        font-size: 0.85rem;
        padding: 7px 18px;
    }

    .skill-card-icon {
        font-size: 2rem;
    }
    .skill-card h3 {
        font-size: 1.1rem;
    }
    .tool-icon {
        height: 40px;
    }
    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .contact-cta-card {
        padding: 30px 15px;
    }
    .contact-cta-card .cta-title {
        font-size: 1.8rem;
    }
    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-text, .footer-contact-info, .social-icons {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 576px) { /* Très petits mobiles */
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-heading-big {
        font-size: 1.8rem;
    }
    .section-heading-medium {
        font-size: 1.6rem;
    }
    .section-heading-small {
        font-size: 1.5rem;
    }
    .section-subheading {
        font-size: 1.4rem;
    }
    .photo-placeholder {
        width: 180px;
        height: 180px;
        font-size: 0.85rem;
    }
    .service-title {
        font-size: 1.2rem;
    }
    .project-img-wrapper {
        height: 150px;
    }
    .project-title-clean {
        font-size: 1.2rem;
    }
}
