@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* base */
:root {
    /* LES NOIRS (La structure) */
    --Noir-Pur: #000000;           /* Fond profond, immersion totale */
    --Noir-Carbone: #121212;      /* Pour les cartes ou sections secondaires (donne du relief) */
    --Gris-Anthracite: #1f1f1f;   /* Bordures discrètes ou survols de boutons */

    /* LES ROUGES (L'émotion) */
    --Rouge-Crimson: #e60026;     /* Ton rouge principal (CTA, Titres). Ni trop clair, ni trop sombre. */
    --Rouge-Vibrant: #ff1e42;     /* Pour les effets de survol (hover) - l'oeil est immédiatement attiré. */
    --Rouge-Sombre: #8b0000;      /* Pour des ombres portées ou des accents subtils. */

    /* LE CONTRASTE (La lisibilité) */
    --Blanc-Pur: #ffffff;         /* Texte principal pour une clarté maximale */
    --Gris-Soie: #b3b3b3;         /* Texte secondaire (paragraphes) pour ne pas fatiguer l'œil */

    /* LE DEGRADE (L'effet Marketing) */
    --Degrade-Premium: linear-gradient(135deg, #e60026 0%, #8b0000 100%);
}

*{
    box-sizing: border-box;
}
html{
    font-size: 62.5%;
}

body{
    background-color: var(--Noir-Pur);
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--Gris-Soie);
    margin: 0;
    padding-top: 60px;
}
/* --- Correction Services & Portfolio --- */
.services, .portfolio {
    background-color: var(--Noir-Pur) !important; /* On reste dans le noir */
}
#about, #services, #portfolio, #contact {
    background-color: var(--Noir-Carbone); /* #121212 : Un noir très légèrement plus clair pour séparer les zones */
    padding: 80px 0; /* On donne de l'espace pour que ça respire */
}

.btn{
    background: var(--Degrade-Premium);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(230, 0, 38, 0.3);
}
.btn:hover{
    background: var(--Rouge-Vibrant);
    color: white;
}




h1, h2, h3, h4, h5, h6{
    color: var(--Blanc-Pur);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}
p {
    color: var(--Gris-Soie); /* #b3b3b3 */
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}

video {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

ul{
    padding-left: 2rem;
}

li{
    margin-bottom: 1rem;
}

.list-unstyled{
    list-style: none;
    margin: 0;
    padding: 0;
}

.category{
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--Bleu-Nuit-Profond);
}

.container{
    padding: 1rem 2rem;
}

.d-flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid{
    display: flex;
    flex-wrap: wrap;
}

.grid-item{
    flex-grow: 1;
    flex-shrink: 0;
    width: 100%;
    padding: 1rem;
}

@media screen and (min-width:750px) {
    .container{
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
    }
    
}
/* section chiffrée */
#results-stats .display-4 {
    letter-spacing: -2px;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.3); /* Un léger éclat rouge Code A-Z */
}

/* Base pour la transition fluide */
#results-stats .stat-card {
    transition: all 0.3s ease-in-out;
}

/* L'effet au survol amélioré */
#results-stats .stat-card:hover {
    border-color: var(--Rouge-Vibrant) !important; 
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.2) !important; /* Glow rouge subtil */
    transform: translateY(-5px); /* Fait légèrement "sauter" la carte vers le haut */
}

/* temoignage */
#testimonials .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Ajout de la transition sur le shadow pour la fluidité */
    background-color: #2b2b2b !important; /* Gris très sombre */
}

#testimonials .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.2) !important;
}

#testimonials .text-danger i {
    margin-right: 2px;
}

/* --- NOUVEAU CSS POUR L'AVATAR --- */
.testimonial-avatar {
    width: 60px; /* Taille de l'image */
    height: 60px;
    border-radius: 50%; /* Image parfaitement ronde */
    object-fit: cover; /* Recadre l'image proprement */
    border: 3px solid rgba(220, 53, 69, 0.2); /* Légère bordure rouge pour le style Code A-Z */
}

/* Gestion de l'alignement des étoiles et de la photo */
.stars-container {
    display: flex;
    justify-content: space-between; /* Étoiles à gauche, photo à droite */
    align-items: center; /* Centrage vertical */
}


.navbar {
    transition: top 0.3s ease-in-out; /* Animation fluide pour la montée/descente */
}

/* section */
/* section */
/* section */
/* section */

section{
    padding: 5.5rem 0;
}

.section-title{
    margin-top: 0;
    font-size: 3.8rem;
}

.section-header{
    text-align: center;
}

@media screen and (min-width:750px){
    .section-title{
        font-size: 4.8rem;
    }
}
/* hero */
/* hero */
/* hero */

.hero{
    background: linear-gradient(180deg, var(--Noir-Pur) 70%, rgba(230, 0, 38, 0.15) 100%);
    color: var(--Blanc-Pur);
    padding: 1rem 0 0 0;
}

.hero .title{
    font-size: 4rem;
    margin: 1.6rem 0 0 0;
}

.hero-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-item span{
    text-transform: uppercase;
    color: var(--Rouge-Crimson);
}

.hero-item.left{
    animation-duration: 1s;
    animation-name: slideInleft;
}

.hero-item.right{
    animation-duration: 1s;
    animation-name: slideInright;
}

@media screen and (max-width:749px){
    .hero-item.left{
        order: 2;
    }

.hero-item.right{
        order: 1;
    }
}

@media screen and (min-width:750px){
    .hero-item{
        flex: 1 0 50%;
        text-align: left;
    }

    .hero-item.left{
        align-items: flex-start;
    }

    .hero-avatar img{
        max-width: 400px;
        border-radius: 170px;
        border: 1px solid var(--Rouge-Crimson) !important; /* On remplace le cyan par le rouge */
        box-shadow: 0 0 30px rgba(230, 0, 38, 0.2); /* Halo rouge subtil */
        
    }

    .hero .title{
        font-size: 5rem;
    }
}

/* about */
/* Animation de flottement Code A-Z */
@keyframes float {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    }
    50% {
        transform: translateY(-20px);
        /* L'ombre devient plus floue et légère quand le logo monte */
        filter: drop-shadow(0 25px 25px rgba(220, 53, 69, 0.2));
    }
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    }
}

.about img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    /* Application de l'animation */
    animation: float 5s ease-in-out infinite;
    transition: all 0.5s ease;
}

/* Effet au survol : on intensifie le rouge Code A-Z */
.about img:hover {
    animation-play-state: paused; /* Le logo s'arrête pour laisser le client l'admirer */
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(220, 53, 69, 0.6));
    cursor: pointer;
}

@media screen and (min-width: 750px) {
    .about img {
        padding-right: 3rem;
    }
}


.about .section-title{
    margin-top: 2.8rem;
}

@media screen and (min-width:750px){
    .about img{
        padding-right: 3rem;
    }
}
.service-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 40px;
    color: var(--Rouge-Crimson);
    background: rgba(230, 0, 38, 0.05); /* Un très léger fond rouge transparent */
    border: 1px solid var(--Rouge-Crimson);
    border-radius: 50%;
    transition: 0.3s;
    margin-bottom: 1.5rem; /* Espace entre l'icône et le titre */
}
/* 
.service:hover .service-icon {
    background: var(--Rouge-Crimson);
    color: white;
    box-shadow: 0 0 20px rgba(230, 0, 38, 0.4);
} */

.service-content{
    flex: 1;
}

.service h3 {
    margin-bottom: 1rem; /* Sépare le titre du texte */
    font-weight: 700;    /* Renforce l'autorité du titre */
    text-transform: uppercase; /* Comme sur ta maquette */
}

@media screen and (max-width:749px){
    .service{
        text-align: center;
    }

    .service-icon{
        margin: 0 auto;
    }
}

@media screen and (min-width:750px){
    .grid-item {
        width: 50%; 
    }

    .service {
        display: flex;
        margin-bottom: 4rem; /* Donne de l'espace pour que le contenu respire */
        align-items: center;
    }

    .service-icon{
        margin-right: 2rem;
    }
}

/* skills      Mes Compétences */
/* skills      Mes Compétences */
/* skills      Mes Compétences */
/* skills      Mes Compétences */

.skills h4, .skills p{
    margin: 0 0 0.3rem 0;
}

.skills li{
    border-left: 3px solid var(--Bleu-Nuit-Profond);
    padding: 0.9rem 2rem;
}

.skills .progressbar{
    background: var(--Gris-Anthracite); /* Fond sombre */
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 1rem;
    
}

.skills .bar{
    background: var(--Degrade-Premium) !important; /* Ton dégradé rouge/noir */
    padding: 0;
    padding: 1rem;
}

        /* portfolio */
        /* portfolio */
        /* portfolio */
        /* portfolio */

.portfolio .grid-item{
    max-width: 50%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
}

.portfolio .grid-item.hide {
    opacity: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-filters .grid-item{
    max-width: 50%;
    margin-bottom: 0;
}

.portfolio-filters a{
    color: var(--Rouge-Vibrant);
    background: var(--Gris-Anthracite);
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 1rem;
}

.portfolio-filters a.active{
    background: var(--Rouge-Sombre);
    color: #fff;
}

.card{
    background: var(--Gris-Anthracite);
    text-transform: uppercase;
    position: relative;
    color: var(--Blanc-Pur);
    box-shadow:var(--Rouge-Vibrant) 0px 0px 5px 0px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.card-inner{
    padding: 2rem;
}

.card-title{
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

.card-overlay{
    font-size: 4.5rem;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 110%;
    transition: all 0.3s;
}

.card-overlay a{
    color: var(--Blanc-Titane);
    font-size: 4.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.card:hover .card-overlay{
    border-color: var(--Rouge-Crimson);
    transform: translateY(-10px);
    top: 0;
}

@media screen and (max-width:749px){
    .portfolio .grid-item{
        font-size: 1.4rem;
    }
}

@media screen and (min-width:750px){
    .portfolio .grid-item{
        max-width: 33.3333%;
    }
    .portfolio-filters .grid-item{
        max-width: 25%;
    }

    
}
 /* tarifs */
 /* Section Tarifs */
#tarifs {
    background-color: #000;
}

.pricing-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #dc3545;
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.1);
}

/* Style de la carte en vedette */
.pricing-card.featured {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc3545;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: #888;
}

.description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.features-list i {
    margin-right: 10px;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
    

/*  formulaire */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a; /* Gris très sombre */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Style des groupes d'input */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #252525;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* L'effet de bordure rouge au focus */
.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    background: #2a2a2a;
    border-color: #dc3545; /* Le rouge Code A-Z */
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.2);
}

.input-group textarea {
    min-height: 150px;
    resize: none;
}

/* Le Bouton Copywriting Expert */
.btn-submit {
    background: #dc3545;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: scale(1.05);
    background: #c82333;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* --- Footer --- */
footer {
    border-top: 1px solid #333;
}

/* Custom styles for footer and general tweaks */
footer {
    background-color: #343a40;
    color: #fff;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* ensure footer doesn't stick to content */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}




@keyframes slideInleft {
    from{
        transform: translateX(-110%);
    }

    to{
        transform: translateX(0);
    }
}


@keyframes slideInright {
    from{
        transform: translateX(110%);
    }

    to{
        transform: translateX(0);
    }
}

/* composant */

.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    transform: scale(0);
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;                 /* Aligne le contenu au centre */
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.show.modal {
    transform: scale(1);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-content {
    background: var(--Noir-Pur);
    color: var(--Gris-Soie);
    height: 100vh;
    padding: 5rem 1rem;
    overflow: auto;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    
}

.modal-content .h3 {
    color: var(--Blanc-Pur) !important;
}

.modal-content p {
    color: var(--Gris-Soie);
}

.modal img {
    margin-bottom: 2rem;
}
.modal-title {
    margin: 0 0 2rem;
    color: var(--Blanc-Pur);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    z-index: 9999;
    background: var(--Noir-Carbone);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2.1rem;
    color: var(--Blanc-Pur);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--Rouge-Crimson);
    border-color: var(--Rouge-Crimson);
    transform: rotate(90deg); /* Petit effet sympa à la fermeture */
}

.modal .grid-item {
    max-width: 100%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
}

@media screen and (min-width: 750px) {
    .modal .grid-item {
        max-width: 50%;
    }
    .modal-content {
        padding: 3rem;
    }
}

@media screen and (max-width: 749px) {
    .portfolio a {
        font-size: 1.4rem;
    }
    
}

@media screen and (min-width: 750px) {
    .portfolio-filters .grid-item {
        max-width: 25%;
    }
    .portfolio .grid-item {
        max-width: 33.3333%;
    }
    
}