/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:Consolas,'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}
p{
	text-align:justify;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #222;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #0056b3;
}

.btn-small {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-right: 10px;
}

.btn-small:hover {
    background: #0056b3;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color:#007bff;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff;
}

/* ===== HERO ===== */
/* ===== CARROUSEL HÉRO ===== */
.hero {
    position: relative;
    height: 100vh; /* Pleine hauteur de l'écran */
    min-height: 600px;
    overflow: hidden;
    color: #fff;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : couvre tout sans déformer */
    display: block;
}

/* Overlay pour assombrir l'arrière-plan et faire ressortir le texte */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Noir semi-transparent */
    z-index: 3;
}

/* Contenu texte (positionné au-dessus) */
.hero .hero-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s both;
    background: #007bff;
    border: 2px solid transparent;
}

.hero-content .btn:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

/* Indicateurs (points) */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* Flèches de navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0,123,255,0.8);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Animation pour le texte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
}

/* Pour les appareils qui réduisent les animations */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none;
    }
}
.hero {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* ===== À PROPOS ===== */
.about-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
	max-width:75%;
	margin:auto;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 10px;
    font-size: 0.99rem;
	color: #666;
    line-height: 1.5;
	padding:20px;
}
.about-text h3, h4 {
    text-align:center;
	color:#666;
    
}
/*
.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);*/
}

/* ===== COMPÉTENCES ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 10px;
    color: #222;
}

.skill-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
h2{
	color:#007bff;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    color:#007bff;
}
}
.portfolio-info h5 {
    font-style:none;
    color: red;
	text-align: right;
}
.portfolio-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.links p {
    color: red;
	text-align:right;
}
.portfolio-technos {
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.portfolio-links {
    margin-top: 10px;
}
/* ===== SECTION FORMATION ===== */
.formation {
    background: #f8f9fa; /* Fond légèrement gris pour se distinguer */
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.formation-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.formation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #666;
}

.formation-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.formation-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse le footer vers le bas */
}

.formation-features li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.formation-features i {
    color: #28a745; /* Vert pour les check */
    margin-right: 8px;
    width: 18px;
}

.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.formation-format {
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 500;
}

.formation-footer .btn-small {
    background: #28a745; /* Vert pour démarquer l'action */
}

.formation-footer .btn-small:hover {
    background: #218838;
}

/* ===== CONTACT ===== */
.contact {
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: #007bff;
    width: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form button {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer .social-links {
    margin-top: 15px;
}

.footer .social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #007bff;
}

/* ===== RESPONSIVE (MOBILE) ===== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
		max-width:95%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
	
}

/* ===== UTILITAIRES ===== */
img {
    max-width: 100%;
    height: auto;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
/* ===== PAGES SERVICES ===== */
.service-detail {
    padding: 100px 0 60px;
    background: #f9f9f9;
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-icon-large {
    font-size: 5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-header h1 {
    font-size: 2.5rem;
    color: #333;
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 30px 0 20px;
}

.service-content h2:first-of-type {
    margin-top: 0;
}

.service-benefits {
    list-style: none;
    margin: 20px 0;
}

.service-benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-benefits i {
    color: #28a745;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-benefits strong {
    color: #333;
}

/* Grille de prix */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

.pricing-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
}

.pricing-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pricing-card li::before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

/* Exemples grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.example-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.example-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

.example-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.example-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Features list */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.feature-item i {
    color: #007bff;
    font-size: 1.2rem;
}

/* CTA section */
.service-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
}

.service-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.service-cta .btn {
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    padding: 15px 40px;
}

.service-cta .btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .service-header h1 {
        font-size: 2rem;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
    
    .service-benefits li {
        font-size: 1rem;
    }
    
    .service-cta {
        padding: 30px 20px;
    }
    
    .service-cta h3 {
        font-size: 1.5rem;
    }
}