/*  Définition des couleurs */
:root {
    --primary-color: #1e3a8a; /* Bleu nuit */
    --secondary-color: #facc15; /* Jaune doré */
    --text-color: #ffffff;
    --background-color: #0f172a; /* Bleu très foncé */
    --card-background: #1e293b;
    --hover-color: #2563eb;
}

/*  Réglages généraux */
body {
    font-family: 'Poppins', sans-serif;
    background: #0f172a ;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/*  Animation de chargement */
.loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cache l'écran de chargement après chargement de la page */
.loaded .loader-container {
    opacity: 0;
    pointer-events: none;
}

/*  Conteneur principal */
.container {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*  Navigation */
nav {
    background: rgba(30, 58, 138, 0.9);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
    backdrop-filter: blur(5px);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    font-size: 18px;
}

nav ul li a:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: scale(1.1);
}

/*  Titres et textes */
h1, h2, h3, p {
    color: #ffffff;
}

a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/*  Formulaires */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.2);
}

input, textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
}

/*  Boutons */
button {
    background: var(--secondary-color);
    color: var(--background-color);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(254, 195, 0, 0.3);
}

button:hover {
    background: var(--hover-color);
    color: white;
    transform: scale(1.05);
}

/*  Cartes (Portfolio) */
.card {
    background: var(--card-background);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/*  Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: relative;
    margin-top: auto;
    border-top: 2px solid var(--secondary-color);
}

footer p {
    margin: 0;
}

/*  Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        width: 95%;
    }
}

.testimonials-container {
    text-align: center;
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 40px;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.slider {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.slide {
    display: none;
    font-size: 18px;
    padding: 20px;
}

.slide.active {
    display: block;
    animation: fade 1s ease-in-out;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.controls button {
    background: var(--secondary-color);
    border: none;
    color: var(--background-color);
    padding: 10px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.controls button:hover {
    background: var(--hover-color);
}

/* 📌 Améliorations responsive */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 30px;
    }
    
    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 8px 12px;
    }

    .testimonials-container {
        width: 95%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .container {
        width: 100%;
        padding: 20px;
    }

    form {
        width: 100%;
    }

    button {
        width: 100%;
        padding: 10px;
    }

    .controls button {
        padding: 8px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    .container {
        padding: 15px;
    }

    .testimonials-container {
        padding: 20px;
    }

    .controls button {
        font-size: 14px;
        padding: 6px;
    }
}
/* 🌍 Section Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: linear-gradient(to right, #1e3a8a, #0f172a);
    color: white;
    border-radius: 10px;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 2.5em;
}

.hero p {
    font-size: 1.2em;
    margin: 10px 0;
}

.hero-image {
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🎨 Boutons */
.btn-primary {
    display: inline-block;
    background: #facc15;
    color: #1e3a8a;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #ffd700;
}

/* 🌟 Présentation */
.presentation {
    text-align: center;
    padding: 50px;
    background: #1e293b;
    color: white;
}

.presentation h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.presentation p {
    font-size: 1.2em;
    margin: 10px 0;
}

/* 📞 Section Contact */
.cta {
    text-align: center;
    padding: 50px;
    background: #1e3a8a;
    color: white;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 10px;
}
/* 🌟 Section À Propos */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: linear-gradient(to right, #1e3a8a, #0f172a);
    color: white;
    border-radius: 10px;
}

.about-content {
    max-width: 50%;
}

.about h1 {
    font-size: 2.5em;
}

.about p {
    font-size: 1.2em;
    margin: 10px 0;
}

.about-image {
    max-width: 40%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🛠️ Compétences */
.skills {
    text-align: center;
    padding: 50px;
    background: #1e293b;
    color: rgb(0, 0, 0);
}

.skills h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.skill h3 {
    color: black; /* Assure-toi que le titre est bien visible */
    font-size: 1.2em;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skill {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 22%;
    text-align: center;
}

.skill i {
    font-size: 40px;
    margin-bottom: 10px;
}

.skill:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

/* 📈 Expérience */
.experience {
    text-align: center;
    padding: 50px;
    background: #0f172a;
    color: white;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item {
    background: #1e293b;
    padding: 15px;
    margin: 10px 0;
    width: 50%;
    border-radius: 10px;
    text-align: center;
}

.date {
    font-size: 1.1em;
    color: #facc15;
    font-weight: bold;
}

/* 📩 Contact */
.contact-me {
    text-align: center;
    padding: 50px;
    background: #1e3a8a;
    color: white;
}

.contact-me h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.3em;
    color: black;
}

.service-card p {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-card {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card img {
    width: 100%;
    border-radius: 10px;
    height: 180px;
    object-fit: cover;
}

.portfolio-card h3 {
    font-size: 1.3em;
    color: black;
}

.portfolio-card p {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

/* 📂 Portfolio en Maintenance */
.maintenance-container {
    text-align: center;
    padding: 50px;
    background: var(--card-background);
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 50px auto;
    animation: fadeIn 1s ease-in-out;
}

.maintenance-container h1 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.maintenance-container p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 15px;
}

.maintenance-icon {
    font-size: 4em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: shake 1.5s infinite alternate ease-in-out;
}

/* 🔄 Animation d'alerte */
@keyframes shake {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}
 /* 🌟 Témoignages */
.testimonials-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.testimonials-container h2 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    font-size: 1.2em;
    color: white;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    max-width: 80%;
    margin: auto;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
    animation: fade 1s ease-in-out;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.controls button {
    background: var(--secondary-color);
    border: none;
    color: var(--background-color);
    padding: 12px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: 0.3s ease-in-out;
}

.controls button:hover {
    background: var(--hover-color);
    transform: scale(1.1);
}

/* 🔄 Animation de transition */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    max-width: 500px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.cookie-banner button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#acceptCookies {
    background: #4CAF50; /* Vert */
    color: white;
}

#declineCookies {
    background: #d9534f; /* Rouge */
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul .logo {
    margin-right: 20px;
}

nav ul .logo img {
    height: 40px; /* Ajuste selon la taille que tu veux */
    width: auto;
    vertical-align: middle;
}
.message-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-container i {
    font-size: 20px;
}
/* Masque la scrollbar pour l'iframe Calendly */
iframe::-webkit-scrollbar {
    display: none;
}

/* Désactive le défilement pour éviter que l'utilisateur ne puisse scroller */
iframe {
    overflow: hidden;
    -ms-overflow-style: none;  /* Pour Internet Explorer et Edge */
    scrollbar-width: none;  /* Pour Firefox */
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
#popup-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
/* 🏆 TABLEAU ADMIN 🏆 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-weight: bold;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* 🔥 LISTE DÉROULANTE STATUT 🔥 */
select {
    background: #1e1e2f;
    color: white;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #444;
    font-size: 14px;
}

select:focus {
    outline: none;
    border: 1px solid #f1c40f;
}

/* 🎨 BOUTON METTRE À JOUR 🎨 */
.update-btn {
    background: #f1c40f;
    color: #1e1e2f;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.update-btn:hover {
    background: #f39c12;
    transform: scale(1.05);
}

/* ❌ BOUTON SUPPRIMER ❌ */
.delete-btn {
    background: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* 📱 RESPONSIVE 📱 */
@media (max-width: 768px) {
    .admin-table {
        font-size: 14px;
    }
    select, .update-btn, .delete-btn {
        font-size: 12px;
        padding: 6px;
    }
}
/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de la navbar */
header {
    background-color: #333;
    padding: 1em;
}

header h1 {
    text-align: center;
    padding: 10px;
    color: #fff;
    background-color: #333;
}

header p {
    text-align: center;
    color: #ddd;
    font-size: 1.1em;
    margin-bottom: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Style du contenu principal */
main {
    padding: 2em;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Styles de section */
section {
    margin-bottom: 1.5em;
}

h1, h2 {
    color: #facc15;
    margin-bottom: 0.5em;
}

/* Hauteur minimale pour le conteneur principal pour couvrir toute la page */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles de la section des témoignages */
.testimonials {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    gap: 20px;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #007BFF; /* Accent coloré */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.testimonial-text {
    font-style: italic;
    color: #333;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

/* Styles du footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
    margin-top: auto;
}

/* Styles de la galerie de portfolio */
.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.portfolio-item {
    flex: 1 1 calc(33.333% - 1em); /* 3 colonnes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
}

.portfolio-item p {
    padding: 0.5em;
    background-color: #f7f7f7;
    font-size: 1em;
}

/* Styles pour le formulaire de contact */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
}

input, textarea {
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #facc15;
    color: #1e3a8a;
    padding: 0.75em;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Ajustements globaux */
body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
}

p {
    margin-bottom: 1em;
}

a {
    color: #007BFF;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}
/* Ajouter une bordure pour mieux voir les lignes */
td, th {
    border: 1px solid #ddd;
    padding: 10px;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.orders-table th, .orders-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-table th {
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-weight: bold;
}

.orders-table tr:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* 🎨 Boutons */
.edit-btn, .delete-btn {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.edit-btn {
    background: #f1c40f;
    color: black;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.edit-btn:hover {
    background: #f39c12;
}

.delete-btn:hover {
    background: #c0392b;
}
