* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero {
    background-image: url('Banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
    color: #fff;
}
.hero h1, .hero h4, .hero p, .hero .btn-outline-light {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero > .container img {
    border: 5px solid #fff;
    width: 200px;
    height: 200px;
}
.hero h1 span {
    display: block;
    color: #fff;
}
.hero .btn-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #0056d3 100%);
    border-color: #0d6efd;
}
.hero .btn-outline-light {
    border-color: #fff;
}
/* Empêcher le texte du bouton de sauter à la ligne et ajuster l'espacement */
.hero .btn-outline-light, .hero .btn-primary {
    padding: 0.6rem 1.1rem;
}
.hero .hero-contact-btn {
    white-space: nowrap;
}

/* Boutons du hero uniformes */
.hero .hero-btn{
    min-width: 220px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

@media (max-width: 768px){
    .hero .hero-btn{
        min-width: unset;
        width: 100%;
    }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 20px;
    padding-left: 20px;
}

.profile-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}
#project-detail .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
    font-weight: bold;
    margin-bottom: 25px;
}

.contact-card .form-control {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}
.contact-card .input-group-text {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #495057;
}
#project-detail {
    z-index: 2000;
}
#project-detail::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 10px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.contact-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-card .btn {
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
}

.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}
.badge i {
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* badge purple used in project card */
.badge-purple{
    background:#6f42c1;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    display:inline-block;
}

/* petit badge pour la carte compétence */
.badge-purple-small{
    background:#6f42c1;
    color:#fff;
    padding:4px 8px;
    border-radius:6px;
    display:inline-block;
    font-size:0.75rem;
    font-weight:600;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
    font-size: 1.5rem;
}

.social-icon:hover {
    transform: scale(1.3);
    color: #667eea;
}

footer {
    border-top: 1px solid #444;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: #0056d3;
    border-color: #0056d3;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .profile-circle {
        width: 150px;
        height: 150px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero .display-3 {
        font-size: 2rem;
    }
    
    .contact-card {
        margin-top: 30px;
        max-width: 100% !important;
    }
    
    .hero .hero-btn {
        min-width: unset;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero .d-flex {
        flex-direction: column;
    }
    
    /* Compétences responsif */
    #competences .row {
        flex-direction: column;
    }
    
    .card-competence-detail {
        min-height: auto;
        margin-top: 30px;
    }
    
    .skill {
        margin-bottom: 1.5rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    /* Projets responsif */
    .col-md-4 {
        margin-bottom: 20px;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Footer responsif */
    footer h2 {
        font-size: 1.5rem;
    }
    
    .footer-subtitle {
        font-size: 0.9rem;
    }
    
    .social-footer-link {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .btn-contact-footer {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .display-3 {
        font-size: 1.5rem;
    }
    
    .hero h4 {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero > .container img {
        width: 150px;
        height: 150px;
    }
    
    .contact-card {
        padding: 20px !important;
    }
    
    .contact-card h5 {
        font-size: 1.1rem;
    }
    
    /* Compétences mobile */
    #competences {
        padding: 1rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .skill-progress {
        height: 10px;
    }
    
    /* Projets mobile */
    .card {
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    /* Footer mobile */
    footer h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .d-flex.justify-content-center.align-items-center.gap-3 {
        gap: 1rem !important;
        flex-wrap: wrap;
    }
    
    .social-footer-link {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
    
    .btn-contact-footer {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 992px) {
    .hero > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero .d-flex {
        gap: 2rem;
    }
}

/* Styles pour la section Compétences (match capture) */
.skill-name{
    font-weight:600;
    color:#1b1b1b;
}
.skill-percent{
    font-weight:700;
    color:#1b1b1b;
}
.skill-progress{
    height:14px;
    background:#eef2f6;
    border-radius:10px;
    overflow:hidden;
}
.skill-progress .progress-bar{
    background: linear-gradient(90deg,#0d6efd 0%, #0056d3 100%);
    height:100%;
    border-radius:10px;
}


.card .card-body p.card-text{
    color:#596273;
}

/* Footer styles */
footer#contact{
    background: #1a1f35 !important;
}

footer h2{
    font-weight:700;
    font-size:2rem;
    margin-bottom:0.5rem;
}

.footer-subtitle{
    font-size:1rem;
    color:#ffffff;
    opacity:0.95;
}

.social-footer-link{
    font-size:1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    color:#ffffff;
}

/* Couleurs des icônes sociales du footer */
.social-linkedin{
    color:#0a66c2 !important;
}

.social-linkedin:hover{
    transform:scale(1.2);
    color:#0856a8 !important;
}

.social-github{
    color:#ffffff !important;
}

.social-github:hover{
    transform:scale(1.2);
    color:#d0d0d0 !important;
}

.social-instagram{
    color:#e4405f !important;
}

.social-instagram:hover{
    transform:scale(1.2);
    color:#c13584 !important;
}

.social-slack{
    color:#ffd700 !important;
}

.social-slack:hover{
    transform:scale(1.2);
    color:#ffed4e !important;
}

.btn-contact-footer{
    background:#0d6efd;
    border:none;
    padding:0.6rem 1.5rem;
    font-weight:600;
    font-size:1rem;
    border-radius:6px;
}

.btn-contact-footer:hover{
    background:#0056d3;
}

.footer-copyright{
    font-size:0.9rem;
    opacity:0.8;
}

/* Carte détail compétence - augmenter hauteur */
.card-competence-detail{
    min-height: 420px;
    display:flex;
    flex-direction:column;
}

.card-competence-detail .card-body{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    height:100%;
}
