/*
Theme Name: Portfolio Theme
Theme URI: https://example.com/portfolio_theme
Author: Votre Nom
Author URI: https://example.com
Description: Un thème WordPress pour portfolio
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio_theme
*/

@import url('assets/css/header.css');
@import url('assets/css/footer.css');
@import url('assets/css/modal.css');
@import url('assets/css/competences.css');
@import url('assets/css/single.css');
@import url('assets/css/projet.css');

body.page-template .page-template-projet .page-template-projet-php .page .page-id-13 .logged-in 
.admin-bar  .customize-support {
  margin-top: 80px;
}

/* Styles pour centrer le contenu */
.center-section {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 75vh;  */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 80px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .about-container {
  background: var(--nav-color);
}

body.dark .about-container {
  background-color: var(--nav-color);
  box-shadow: 0 0 10px #000;
}

.about__image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Limite la largeur de l'image */
  margin: 20px auto;
  display: block;
  border-radius: 8px;
}

.about__name {
  color: var(--heading-color); /* Couleur du texte */
  font-weight: bold;
}

.about__desc {
  color: var(--text-color); /* Couleur du texte */
  line-height: 1.6;
  text-align: justify;
}

/* style single */

img.photo-image {
  width: 25%;
  height: 400px;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* section projet de la page d'accueil */
/* Global Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--body-color);
}

body.dark {
  background-color: var(--body-color);
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  background: var(--body-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

body.dark .container {
  background: var(--nav-color);
}

h2, h3 {
  color: var(--heading-color);
  text-align: left;
}

body.dark h2, body.dark h3 {
  color: var(--heading-color);  
}

/* Formation Section */
.section.formation,
.section.certificat {
  display: flex;
  flex-direction: column;
  align-items: center;  
  width: 100%;
  padding: 20px;
  background: var(--body-color);
  border-radius: 8px;
}
.section.formation{
  margin-top: 50px;
}

body.dark .section.formation,
body.dark .section.certificat {
  background: var(--nav-color);
}

.formation_description,
.certificat__grid {
  max-width: 1100px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.dark .formation_description,
body.dark .certificat__grid {
  background:#333;
}

.formation_description ul, .formation_description ol,
.certificat__grid ul, .certificat__grid ol {
  margin-left: 20px;
}

.formation_description ul li, .formation_description ol li,
.certificat__grid ul li, .certificat__grid ol li {
  margin-bottom: 10px;
}

/* Link to PDF */
.formation_description p a,
.certificat__grid p a {
  color: #0073e6;
  text-decoration: none;
}

.formation_description p a:hover,
.certificat__grid p a:hover {
  text-decoration: underline;
}

/* Certificat Section Grid */
.certificat__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.certificat__item {
  flex: 1 1 calc(33.333% - 20px);
  background: var(--body-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .certificat__item {
  background: var(--nav-color);
}

.certificat__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.dark .certificat__item:hover {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Projets Section */
#projects-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: var(--body-color);
  border-radius: 8px;
}

body.dark #projects-section {
   background: var(--nav-color);
}

.projects-container {
  width: 100%;
  max-width: 1100px;  
}
.projet_accueil {
  text-align: center;
  padding-bottom: 15px;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.single_projet {
  flex: 1 1 calc(50% - 20px);
  display: flex;
  flex-direction: column;
  background: var(--body-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .single_projet {
  background: var(--nav-color);
  box-shadow: 0 0 10px #000;
}

.single_projet:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.dark .single_projet:hover {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.photo-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.projet_description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
}

.single_description_date {
  margin-bottom: 20px;
}

.single_categorie_photo,
.single_description_categorie {
  margin-bottom: 20px;
}

.projects-cta {
  margin-top: 20px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--nav-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #005bb5;
}

/* Alignments */
.projet_description h3,
.single_description_date p {
  margin: 0;
}

/* Styles pour centrer le contenu */
.bio-center-section {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 30vh;  */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.bio-container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .bio-container {
  background: var(--nav-color);
  box-shadow: 0 0 10px #000;
}
.bio__name {
  color: var(--heading-color); /* Couleur du texte */
  font-weight: bold;
  line-height: 3;
}

body.dark .bio__name {
  color: var(--heading-color);
}

.bio__desc {
  color: var(--text-color); /* Couleur du texte */
  line-height: 1.6;
  text-align: justify;
}

.entry-title {
  max-width: 1000px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content {
  max-width: 1000px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Poppins";  
}

body.dark .entry-content {
  color: var(--text-color);
}

.projet {
  max-width: 1000px;
  height: 1000px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Poppins";  
}

body.dark .projet {
  color: var(--text-color);
}

/* Responsive styles */
@media (max-width: 790px) {
  .bio__desc {
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify;
    font-size: 15px;
  }
  .single_projet {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%; /* Ajuste la largeur à 100% pour afficher une card par ligne */
    margin-bottom: 20px; /* Ajoute de l'espace entre les cards */
  }
  .entry-title {
    margin-top: 45px;
    margin-left: 20px;
  }
  .entry-content {
    max-width: 1000px;
    font-size: 14px;
    margin-top: 15px;
    margin-left: 20px;
    margin-right: 15px;
    font-family: "Poppins"; 
    margin-bottom: 25px; 
  }
    .about-container {
  margin-top: 45px;
}

a.cta-button {
  margin-top: -10px;
}
}