body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* En-tête */
.mag-header {
    background-color: #111;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mag-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto; 
	margin: 0 auto; /* Centrage horizontal global */
    padding: 0 1rem; /* Ajoute un padding à gauche et à droite */
    width: 100%;

}

.mag-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4;
    text-decoration: none;
}

.mag-menu {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #00bcd4;
    border-radius: 5px;
    transition: background 0.3s;

}

.mag-menu:hover {
    background: #008ba3;
}

/* Contenu principal */
.mag-content {
    padding-top: 120px; /* Ajouté pour éviter la superposition */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.mag-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

/* Image */
.mag-image-wrapper {
    flex: 1;
    max-width: 300px;
}

.mag-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-in-out;
	padding-top: 50px;
}

.mag-image:hover {
    transform: scale(1.05);
}

/* Texte */
.mag-text {
    flex: 1;
    max-width: 500px;
    margin-top: 1rem;
}

.mag-title {
    font-size: 2rem;
    font-weight: bold;
    color: #00bcd4;
}

.mag-subtitle {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #ccc;
    font-style: italic;
}

.mag-description {
    font-size: 1rem;
    margin: 1rem 0;
    color: #aaa;
}

.mag-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.mag-list li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #00bcd4;
    position: relative;
}

/* Boutons */
.mag-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start; /* Aligne les boutons à gauche */
    align-items: center; /* Centre verticalement si nécessaire */
    gap: 1rem; /* Espace entre les boutons */
    width: 100%; /* S'assure que le conteneur prend toute la largeur disponible */
    padding-left: 1rem; /* Ajoute un décalage à gauche */
}

}

.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    margin: 0.5rem;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    font-weight: bold;
}

.btn-primary {
    background-color: #00bcd4;
    color: #fff;
	padding:2rem;
}

.btn-primary:hover {
    background-color: #008ba3;
}

.btn-secondary {
    background-color: transparent;
    color: #00bcd4;
    border: 2px solid #00bcd4;
	padding:2rem;
}

.btn-secondary:hover {
    background-color: #00bcd4;
    color: #fff;
}

/* Pied de page */
.mag-footer {
    text-align: center;
    padding: 1rem;
    background-color: #111;
    color: #777;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .mag-container {
        flex-direction: column;
        align-items: center;
    }

    .mag-text {
        max-width: 100%;
        text-align: center;
    }

    .mag-title {
        font-size: 1.8rem;
    }

    .mag-subtitle {
        font-size: 1rem;
    }

    .mag-list {
        max-width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
		padding:0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .mag-buttons {
        flex-direction: column; /* Les boutons s'empilent verticalement */
        align-items: flex-start; /* Les boutons sont alignés à gauche */
        padding-left: 1rem; /* Garde un espacement à gauche */
    }

    .btn-primary, .btn-secondary {
        width: calc(100% - 2rem); /* S'assure que les boutons ne touchent pas les bords */
    }
}

@media screen and (max-width: 480px) {
    .mag-buttons {
        padding-left: 1rem; /* Assure un alignement correct sur les très petits écrans */
    }

    .btn-primary, .btn-secondary {
        width: calc(100% - 2rem); /* Réduit légèrement la largeur pour éviter qu'ils touchent les bords */
        margin-bottom: 0.5rem; /* Ajoute un espace entre les boutons */
		padding:0.2rem;
		  }
		.mag-menu {
 
	margin: 0 auto; 
	margin: 0 auto; /* Centrage horizontal global */
    }
}
.mag-extra-text {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #003366; /* couleur Mediwalk */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.mag-extra-text h3 {
  color: #003366;
  font-size: 1.4rem;
  margin-top: 20px;
}

.mag-extra-text p {
  margin-bottom: 15px;
}
