/* === BASE GLOBALE === */
body {
  font-family: 'Arial', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

body.homepage {
  background-image: url('http://el-condor.org/imgelc/mont_aiguille.jpg');
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body:not(.homepage) {
background-color: rgba(0, 51, 102, 0.9);
}

/* === HEADER === */
header {
  text-align: center;
  color: white;
  padding: 50px 20px;
/*  background-color: rgba(0, 0, 0, 0.6);*/
}
header h1,
header h2,
header h3 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
header h1 {
  font-size: 3em;
  margin: 0;
}

header h2 {
  font-size: 2em;
  font-weight: bold;
  margin: 10px 0;
}

header h3 {
  font-size: 1.5em;
  margin-top: 10px;
}

/* Menu navigation - général (toutes les pages) */
nav {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}

/* Menu sur la page d'accueil uniquement (avec fond visible) */
body.homepage nav {
  /*background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);*/
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

body.homepage nav a {
  color: white;
}

/* Menu sur les autres pages */
body:not(.homepage) nav {
  background-color: #e0e0e0;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-bottom: 3px solid #ccc;
  color: #003366;
  text-align: center;
}

body:not(.homepage) nav .int0,
body:not(.homepage) nav .int3,
body:not(.homepage) nav .int4,
body:not(.homepage) nav .int5,
body:not(.homepage) nav .int6 {
  margin: 10px;
}

body:not(.homepage) nav img {
  width: 100px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s ease;
  display: block;
  margin: 0 auto 8px;
}

body:not(.homepage) nav img:hover {
  transform: scale(1.05);
  border-color: #003366;
}

body:not(.homepage) nav a {
  display: block;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  margin-top: 5px;
}

body:not(.homepage) nav a:hover {
  text-decoration: underline;
}


/* === SECTIONS NAVIGABLES === */
.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.nav-item {
  width: 250px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-item a {
  text-decoration: none;
  color: #003366;
  display: block;
}

.nav-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.nav-item span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.1em;
}

.nav-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* === CONTENU PRINCIPAL === */
main,
.el-condor-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main h2,
.el-condor-title {
  text-align: center;
  color: #003366;
  font-size: 2em;
  margin-bottom: 30px;
  font-weight: bold;
}

main a {
  display: inline-block;
  margin: 10px 0;
  color: #006699;
  text-decoration: none;
  font-weight: bold;
}

main a:hover {
  text-decoration: underline;
  color: #004466;
}

/* === GRILLE DES NUMÉROS === */
.el-condor-issue-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  padding: 10px;
  justify-items: center;
}

.el-condor-issue-row a {
  background-color: #003366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1em;
  display: block;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.el-condor-issue-row a:hover {
  background-color: #005599;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* === FOOTER === */
footer {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent */
  color: white;
  padding: 40px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.friend-sites-section {
  padding: 40px 20px;
  background-color: rgba(0, 51, 102, 0.9); /* fond bleu foncé semi-transparent */
  color: white;
  text-align: center;
}

.friend-sites-section h3 {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffa500;
}

.friend-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}

.friend-sites-grid li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  transition: background-color 0.3s ease;
}

.friend-sites-grid li:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.friend-sites-grid a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.friend-sites-grid a:hover {
  color: #ffa500;
  text-decoration: underline;
}


/* Contact / directeur */
footer p {
  margin-top: 20px;
  font-size: 1em;
}

footer a.mail {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
}


/* === CONTACT === */
#contact {
  text-align: center;
  padding: 20px;
  font-size: 0.95em;
  color: #333;
}

#contact a {
  color: #003366;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav .int0,
  nav .int3,
  nav .int4,
  nav .int5,
  nav .int6 {
    width: 100%;
  }

  nav img {
    width: 80px;
  }

  .el-condor-issue-row {
    grid-template-columns: 1fr;
  }

  .el-condor-issue-row a {
    padding: 10px 15px;
    font-size: 1em;
  }
}
