/* Menu burger mobile */
#menu-btn {
  display: none;
}

@media (max-width: 800px) {
  nav#main-nav {
    display: none;
  }
  #menu-btn {
    display: block;
    position: absolute;
    right: 30px;
    top: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1100;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #34285d;
  color: #ffffff;
}

header {
  background-color: #56439c;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

.btn-nav {
  background: #1ed760;
  color: black;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.section h2 {
  margin-bottom: 15px;
}

.section.dark {
  background-color: #56439c;
  border-radius: 15px;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #222;
}

.title {
  text-align: center;
  font-size: 50px;
}

.subtitle {
  text-align: center;
  font-size: 24px;
}

.info-text {
  text-align: center;
}

.info-hero {
  background-color: #56439c;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
}

.btn-abo-info {
  background: #1ed760;
  color: black;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
}

nav a:hover {
  color: #1ed760;
  transition: color 0.3s ease;
}

.icon-social {
  color: #1ed760;
  font-size: 2rem;
  padding: 4px 8px;
}

/* =========================
          404
   ========================= */
.page-introuvable-texte {
  text-align: center;
  font-size: 80px;
  margin-top: 100px;
  color: #ffffff;
}

.page-introuvable-sub {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  color: #ababab;
}

#page-introuvable {
  display: block;
  width: fit-content;
  margin: 40px auto;
  background: #1ed760;
  color: black;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
}

/* =========================
          msg-ano
   ========================= */
.msg-ano-info {
  text-align: center;
  font-size: 60px;
  margin-top: 100px;
  color: #5c5c5c;
}

/* =========================
          Admin
   ========================= */
   .admin-container {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}


.admin-card {
background-color: #56439c;
border-radius: 20px;
padding: 25px;
width: 260px;
text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}


.admin-card img {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 50%;
margin-bottom: 15px;
border: 3px solid #1ed760;
}


.admin-card h3 {
margin-bottom: 15px;
}
/* =========================
           BOUTONS 
   ========================= */

.btn {
  padding: 18px 40px;
  border-radius: 35px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1ed760, #1aa34a);
  color: #56439c;
  box-shadow: 0 8px 20px rgba(30, 215, 96, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(30, 215, 96, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: #1ed760;
  border: 2px solid #1ed760;
}

.btn-secondary:hover {
  background-color: #1ed760;
  color: #56439c;
  transform: translateY(-3px) scale(1.05);
}

/* bouton sous le texte */
.section .btn {
  display: inline-block;
  margin-top: 20px;
}

/* navbar fixe */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* espace pour éviter que le contenu passe sous la navbar */
body {
  padding-top: 90px;
}

#info {
  display: block;
  margin: 30px auto 0 auto;
}

/* =========================
        NAVIGATION TEL 
   ========================= */

#page-nav {
  display: none;            /* 👈 caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  min-height: 100vh;
  background: #34285d;
  color: #fff;
  padding: 40px 20px;
}

#page-nav h1 {
  text-align: center;
  margin-bottom: 40px;
}

#page-nav a {
  display: block;
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #56439c;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

/* =========================
   Admins - responsive
   ========================= */
@media (max-width: 600px) {
  header {
    padding: 12px 16px;
  }
  .logo img {
    height: 36px;
  }
  nav a {
    margin-left: 10px;
    font-size: 0.95rem;
  }
  .admin-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
  .admin-card {
    width: 100%;
    max-width: 520px;
    padding: 18px;
  }
  .admin-card img {
    width: 100px;
    height: 100px;
  }
  .admin-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .admin-card .btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    text-align: center;
  }
}

/* Style nav tel */
.btn-abo-navtel {
  background: #1ed760;
  color: black;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
}



/* =========================
            CONCOURS
   ========================= */

#btn-concours {
  display: block;
  margin: 20px auto;
  text-align: center;
}

.btn-livre-exemple {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.btn-concours-nav {
  color: rgb(34, 255, 0);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}
/* Contrôles de taille du texte */
#nav-reader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  background-color: #111;
  border-bottom: 2px solid #1ed760;
}

.text-size-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.btn-size {
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #1ed760, #1aa34a);
  color: #000;
  border: none;
  transition: all 0.3s ease;
}

.btn-size:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(30, 215, 96, 0.4);
}

#text-size-display {
  font-size: 1rem;
  font-weight: bold;
  color: #1ed760;
  min-width: 60px;
  text-align: center;
}

#main-content-reader {
  line-height: 1.6;
}

/* =========================
      FORMULAIRE STUDIO
   ========================= */

.form-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px 20px;
}

.form-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #1ed760;
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #333;
  border-radius: 8px;
  background-color: #56439c;
  color: #fff;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1ed760;
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.3);
  background-color: #56439c;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

.form-group textarea {
  min-height: 300px;
  resize: vertical;
}

.studio-form .btn {
  align-self: center;
  margin-top: 20px;
  padding: 14px 40px;
  font-size: 1.1rem;
}

/* =========================
      MODAL FORMULAIRE
   ========================= */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(86, 67, 156, 0.7);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: block;
}

.modal-form {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #56439c;
  padding: 40px;
  border-radius: 12px;
  z-index: 2001;
  max-width: 500px;
  width: 90%;
  border: 2px solid #1ed760;
  box-shadow: 0 20px 60px rgba(86, 67, 156, 0.8);
  animation: slideIn 0.3s ease;
}

.modal-form.active {
  display: block;
}

.btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #1ed760;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close:hover {
  color: #fff;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .modal-form {
    width: 95%;
    padding: 30px 20px;
  }
  
  .form-title {
    font-size: 2rem;
  }
}

/* =========================
  PAGE D'ENVOI DU FORMULAIRE
   ========================= */
  
#title-sendhtml {
  color: #1ed760;
}

.num-sendhtml {
  text-align: center;
}

.read-readhtml {
  background-color: #5c5c5c;
}

.title-textread-sendhtml {
  text-align: center;
  padding: 50px;
  font-size:  60px;
}
.text-textread-sendhtml {
  text-align: center;
  font-size: 24px;
}

.buttons-sendhtml {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* =========================
   BLOCS IMAGES CLIQUABLES
   ========================= */

.image-links {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.image-links-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1ed760;
}

.image-links-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.image-links-card {
  width: 220px;
  background-color: #56439c;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-links-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.image-links-card span {
  display: block;
  padding: 15px;
  text-align: center;
  font-weight: bold;
}

.image-links-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 18px 35px rgba(30,215,96,0.35);
}

/* responsive */
@media (max-width: 600px) {
  .image-links-card {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
           NEWS
   ========================= */

#news-section {
  text-align: center;
  position: relative;
}

#news-container {
  margin-top: 20px;
}

#news-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

#news-subtitle {
  font-size: 1.2rem;
  color: #ccc;
}

#news-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* CONTROLES */

.news-controls button {

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  border-radius: 50%;

  background: #56439c;
  border: 2px solid #1ed760;
  color: #1ed760;

  font-size: 20px;
  cursor: pointer;

  opacity: 0;
  transition: all 0.3s ease;

}

/* gauche */
#news-prev {
  left: 20px;
}

/* droite */
#news-next {
  right: 20px;
}

/* apparait au hover */
#news-section:hover .news-controls button {
  opacity: 1;
}

/* effet hover */
.news-controls button:hover {
  background: #1ed760;
  color: black;
  transform: translateY(-50%) scale(1.1);
}

/* barre de progression */

.news-progress{
width:100%;
height:4px;
background:#222;
margin-top:25px;
border-radius:3px;
overflow:hidden;
}

#news-progress-bar{
height:100%;
width:0%;
background:#1ed760;
transition:width 5s linear;
}

/* =========================
            POPUP 
   ========================= */

/* Overlay de la popup */
.popup-overlay{
  display:none;            /* invisible par défaut */
  position:fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.7);
  z-index:2000;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* contenu de la popup */
.popup-content{
  background:#56439c;
  padding:30px;
  border-radius:15px;
  max-width:500px;
  width:90%;
  position:relative;
  text-align:center;
  box-shadow:0 10px 40px rgba(0,0,0,0.6);
  animation:slideIn 0.3s ease;
}

/* bouton fermer */
.btn-close{
  position:absolute;
  top:10px;
  right:10px;
  background:none;
  border:none;
  font-size:2rem;
  color:#1ed760;
  cursor:pointer;
}

.btn-close:hover{
  color:white;
}

/* animation */
@keyframes slideIn{
  from{transform:translateY(-30px); opacity:0;}
  to{transform:translateY(0); opacity:1;}
}


