/* Variables pour les couleurs et les ombres */
:root {
    --primary-bg: #1a1f36;
    --navigateur: #20347E;
    --card-bg: rgba(43, 62, 91, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Empile les éléments verticalement */
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    min-height: 100%; /* Fait que le conteneur prend toute la hauteur de l'écran */
    padding: 1rem; /* Ajoute un peu d'espace autour */
    box-sizing: border-box; /* Inclut les paddings dans les dimensions totales */
    --primary-bg: linear-gradient(135deg, #294cab 0%, #312d7c 100%);
    --text-primary: #ffffff;
    transition: background-color 0.3s ease; /* Animation fluide du changement de couleur */
    flex: 1;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Couleurs pour le mode sombre */
        --primary-bg: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
        --text-primary: #c9d1d9;
        --card-bg: rgba(30, 41, 59, 0.8);
    }
    .section {
        background: var(--card-bg); /* Mode sombre */
    }
}

/* Styles globaux */
body {
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 2rem;
    min-height: 100%;
    background: var(--primary-bg); /* Utilise la couleur de fond dynamique */
    background-color: var(--navigateur);
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Feature Grid Layout */
.section__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1200px;
    overflow-x: hidden; /* Cache tout débordement horizontal */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section conteneur */
.section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section.small {
    display: flex; /* Active le modèle Flexbox */
    align-items: center; /* Centre verticalement */
}

.images-container {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre les images horizontalement */
    align-items: center; /* Centre les images verticalement */
    gap: 10px; /* Ajoute un espace entre les images */
    height: 130px; /* Définissez une hauteur fixe pour le conteneur si nécessaire */
}

.images-container img {
    max-width: 125px; /* Limite la largeur des images */
    height: auto; /* Conserve le ratio d'aspect des images */
    display: block; /* Évite les marges indésirables autour des images */
}


/* Styles pour les sections grandes et petites */
.big {
    grid-column: span 4;
}

.small {
    grid-column: span 2;
}

/* Liens */
.section a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    border-radius: calc(var(--border-radius) - 4px);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: block;
}

.section a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(8px);
}

/* Bouton de contact */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .section__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .big,
    .small {
        grid-column: 1 / -1;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

#memoji {
    position: relative;
    width: 175px;
    height: 175px;

    border-radius: 50%;
    background-color: lightgrey;
}

#connexion {
    color: white;
    text-decoration: none;
    position: fixed;
    top: 4px;
    left: 12px;
}

#profil {
    margin-top: 0;
    text-align: center;
}

.mail {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    top: 100px;
    bottom: 100px;
    color: white;
}

#mail a {
    display: flex; /* Aligne les enfants horizontalement */
    align-items: center; /* Centre verticalement le SVG et le texte */
    gap: 1rem; /* Espace entre le SVG et le texte */
    text-decoration: none; /* Supprime le soulignement du lien */
    color: var(--text-secondary); /* Utilise la couleur principale du texte */
    position: relative; /* Retirez "fixed", car cela cause des problèmes d'alignement */
    top: -19px;
    width: 268px;
}

#mail svg {
    flex-shrink: 0; /* Empêche le SVG de rétrécir si l'espace est limité */
}

#mail p {
    margin: 0; /* Supprime les marges par défaut du paragraphe */
}

.profil-description {
    font-size: 13px;
}

.identifiant {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    top: 100px;
    bottom: 100px;
    color: white;
}

#identifiant a {
    display: flex; /* Aligne les enfants horizontalement */
    align-items: center; /* Centre verticalement le SVG et le texte */
    gap: 1rem; /* Espace entre le SVG et le texte */
    text-decoration: none; /* Supprime le soulignement du lien */
    color: var(--text-secondary); /* Utilise la couleur principale du texte */
    position: relative; /* Retirez "fixed", car cela cause des problèmes d'alignement */
    top: -19px;
    width: 268px;
}

#identifiant svg {
    flex-shrink: 0; /* Empêche le SVG de rétrécir si l'espace est limité */
    width: 26px;
    height: auto;
}

#identifiant p {
    margin: 0; /* Supprime les marges par défaut du paragraphe */
}

.actu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: block;
}

.actu a:hover {
    background: rgba(255, 255, 255, 0.1); /* Effet de changement de fond */
    color: var(--text-primary); /* Effet de changement de couleur */
    transform: none; /* Désactive le déplacement */
}

/*Style FOOTER*/
footer {
    color: black;
    width: 100vw;
    text-align: center;
    position: relative;
    bottom: 0;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0.5rem;
}

.footer-container p {
    margin: 0;
    text-align: center;
    flex-grow: 1;
    color: white;
    font-size: 0.7rem;
}

.footer-container svg {
    position: absolute;
    right: 2rem;
    top: 15%;
    transform: translateY(-50%);
}

.cls-1 {
fill: #27a620;
}


.footer-clean {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--card-bg);
  margin-bottom: -48px;
  margin-top: 37px;
}

.footer-clean * {
  position: relative;
  z-index: 1; /* Garde le texte au premier plan */
}

.footer-clean h3 {
  margin-top:0;
  margin-bottom:12px;
  font-weight:bold;
  font-size:16px;
}

.footer-clean ul {
  padding:0;
  list-style:none;
  line-height:1.6;
  font-size:14px;
  margin-bottom:0;
}

.footer-clean ul a {
  color:inherit;
  text-decoration:none;
  opacity:0.8;
}

.footer-clean ul a:hover {
  opacity:1;
}

.footer-clean .item.social {
  text-align:right;
}

@media (max-width:767px) {
  .footer-clean .item {
    text-align:center;
    padding-bottom:20px;
  }
}

@media (max-width: 768px) {
  .footer-clean .item.social {
    text-align:center;
  }
}

.footer-clean .item.social > a {
  font-size:24px;
  width:40px;
  height:40px;
  line-height:40px;
  display:inline-block;
  text-align:center;
  border-radius:50%;
  border:1px solid #ccc;
  margin-left:10px;
  margin-top:22px;
  color:inherit;
  opacity:0.75;
}

.row .justify-content-center  {
   display: flex;
}

.footer-clean .item.social > a:hover {
  opacity:0.9;
}

@media (max-width:991px) {
  .footer-clean .item.social > a {
    margin-top:40px;
  }
}

@media (max-width:767px) {
  .footer-clean .item.social > a {
    margin-top:10px;
  }
}

.footer-clean .copyright {
  margin-top:14px;
  margin-bottom:0;
  font-size:13px;
  opacity:0.6;
}

.footer-clean .row.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 130px; /* Espacement entre colonnes */
    justify-content: center; /* Centre les colonnes horizontalement */
    flex-wrap: wrap; /* Permet de gérer les colonnes sur plusieurs lignes si nécessaire */
    width: 100%; /* S'assure que la ligne occupe toute la largeur */
}

.footer-clean .item {
    flex: 1 1 calc(15% - 5px); /* Réduire la largeur des colonnes */
    max-width: calc(15% - 5px); /* Ajuster pour garder de l'espace entre elles */
    box-sizing: border-box;
    text-align: left;
}

.footer-clean h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: white;
}

.footer-clean ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-clean ul li {
    margin-bottom: 5px;
}

.footer-clean ul a {
    color: #FFF5DC;
    text-decoration: none;
    font-size: 14px;
}

.footer-clean ul a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-clean .item {
        flex: 1 1 100%; /* Une seule colonne sur petits écrans */
        max-width: 100%;
        text-align: center;
    }
}

#info {
    text-decoration: none;
    color: lightcoral;
}