/* Fichier layout_style.css - Styles pour la mise en page à deux colonnes */

/* Structure générale de la page */
body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background-color: #e9f5e1;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

/* Conteneur principal à deux colonnes */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Style pour la section mindmap avec les boutons */
.mindmap {
    width: 100%;
    height: auto;
    display: block;
}


.mindmap-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mindmap-container {
    position: relative;  /* Important pour positionner le halo */
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.mindmap-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Style pour les boutons des matières */
.subject-button {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(244, 162, 97, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.subject-button img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.subject-button span {
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subject-button:hover {
    transform: scale(1.1);
    background-color: rgba(231, 111, 81, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.hover-indicator {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.mindmap-container {
    position: relative;
}

/* Positions des boutons des matières */
#maths {
    top: 15%;
    left: 15%;
}

#francais {
    top: 35%;
    left: 15%;
}

#echecs {
    top: 55%;
    left: 15%;
}

#infos {
    top: 75%;
    left: 15%;
}

#sciences {
    top: 15%;
    left: 45%;
}

#english {
    top: 35%;
    left: 45%;
}

#philosophie {
    top: 55%;
    left: 45%;
}

#ia {
    top: 75%;
    left: 45%;
}

#histoire {
    top: 15%;
    left: 75%;
}

#programmation {
    top: 35%;
    left: 75%;
}

#ressources {
    top: 55%;
    left: 75%;
}

/* Style pour Curio le renard */
.curio-container {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 3;
}

#curio-image {
    width: 120px;
    height: auto;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#speech-bubble {
    position: absolute;
    top: -80px;
    right: 0;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 180px;
    font-size: 12px;
    text-align: center;
}

#speech-bubble:after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
}

/* Style pour la section parcours */
.parcours-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style pour les titres de section */
h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive design - Adaptation pour les tablettes */
@media screen and (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr 1fr;
    }

    .subject-button {
        width: 100px;
        height: 100px;
    }

    .subject-button img {
        width: 40px;
        height: 40px;
    }
}

/* Responsive design - Passage en colonnes sur petit écran */
@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .mindmap-section, .parcours-section {
        width: 100%;
    }
    
    .mindmap-container {
        height: 600px;
    }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .mindmap-section, .parcours-section {
        padding: 15px;
    }
    
    .subject-button {
        width: 80px;
        height: 80px;
    }
    
    .subject-button img {
        width: 30px;
        height: 30px;
    }
    
    .subject-button span {
        font-size: 10px;
    }
}

/* Mode contraste élevé */
body.high-contrast .subject-button {
    background-color: #333;
    border: 2px solid #FFEB3B;
}

body.high-contrast .subject-button:hover {
    background-color: #555;
}

body.high-contrast #speech-bubble {
    background-color: #333;
    color: #FFF;
    border: 2px solid #FFEB3B;
}

body.high-contrast #speech-bubble:after {
    border-color: #333 transparent;
}

/* Mise à jour de styles/layout_style.css */
@media (max-width: 768px) and (min-width: 481px) {
    .main-wrapper {
      flex-direction: column;
    }
    
    .mindmap-section {
      width: 100%;
      margin-bottom: 2rem;
    }
    
    .parcours-section {
      width: 100%;
    }
    
    /* Autres ajustements pour tablettes */
  }