/* ===========================================
   CSS minimal Musicologie
   =========================================== */
   
 @import url("../font/font.css");
 
  
/* 1. Base */
* { box-sizing: border-box; }

body {
  max-width: 840px;
  width: 90%;
  margin: 0 auto;
  background-color: #fff;
  font-family: "Merriweather sans", Arial, Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8rem;
  color: #222;
}

/* Bloc principal contenu */
#bloc570 {
  max-width: 570px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  font-size: 1.1rem;
  line-height: 1.9rem;
  text-align: justify;
  text-align-last: left; /* laisse les signatures et .droite fonctionner */
  hyphens: auto;
}

/* 2. Liens */
a { color: #8d4024; text-decoration: none; }
a:hover { color: mediumvioletred; }
a:visited { color: #8d4024; }

/* === 3. Titres === */

h1, h2, h3 {
  font-family:  'Merriweather serif', Georgia, serif;
  color: darkslategrey;
  font-weight: 300;
  text-align: left;
  hyphens: auto;
}

h1 {
  font-size: 2rem;
  line-height: 120%;
  font-weight: bold;
}

h2 {
  font-size: 24pt;
  line-height: 30pt;
}

h3 {
  font-size: 18pt;
  line-height: 30pt;
}

/* Mobile : titres plus petits */
@media screen and (max-width: 450px) {
  h1 {
    font-size: 18pt;
    line-height: 22pt;
  }
}



/* 4. texte */

.italique {

  font-family: 'Merriweather regular', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
 
}

.cap {
  font-variant: small-caps;
}

.cap_ital {
  font-family: 'Merriweather regular', Georgia, serif;
  font-variant: small-caps;
  font-style: italic;
}


.lettrine {
  font-family: 'Merriweather regular', Georgia, serif;
  font-size: 80pt;
  font-weight:bold;
  color: darkslategrey;
  float: left;
  line-height: 70pt;
  margin-right: 20px;
}

/* 4. Images responsives */
img.responsive { width: 100%; height: auto; display: block; }


/* Images flottantes à gauche */
.imagegauche {
  float: left;
  margin-right: 10px;
  display: block;
}

/*  5. === MENU HAUT === */
.menu_haut {
  background: #f1f1f1;
  border-radius: 4px;
  padding: 0;
  margin: 10px auto;
  max-width: 840px;
  font-size: 1rem;
}

/* Bouton mobile */
.menu-toggle {
  display: none;
  background: #004080;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
}

/* Liste principale */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.menu-list li {
  position: relative;
}

/* Boutons principaux */
.dropbtn {
  padding: 8px 12px;
  cursor: pointer;
  color: #004080;
  text-decoration: none;
  display: inline-block;
}

.dropbtn:hover {
  background: #004080;
  color: #fff;
  border-radius: 3px;
}

.dropdown-content {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* Sous-menus */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
   min-width: 200px;
}

.dropdown-content li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background: transparent;
  color: #0333;
}

.dropdown-content.show {
  display: block;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    background: #f1f1f1;
    border-radius: 4px;
    margin-top: 5px;
    padding: 10px;
  }

  .menu-list.active {
    display: flex;
  }

  .dropdown-content {
    position: relative;
    box-shadow: none;
    background: #e9e9e9;
    border-radius: 4px;
  }

  .dropdown-content li a {
    padding-left: 20px;
  }
}


/* 6. Signature / alignement droite */
.droite {
  width: 100%;
  font-weight: bold;
  text-align: right;
  line-height: 1.2rem;
  text-align-last: right;
}

@media (max-width:480px) {
  .droite {
    text-align: left;
    text-align-last: left;
  }
}

/* Signature auteur */
.signature {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9em;
  flex-wrap: wrap;
  font-weight: bold;
  line-height: 1.2em;
}

.signature img {
  flex-shrink: 0;
  max-width: 150px;
  height: auto;
}

/* 7. Images et légendes */
.imagecentre_legende {
  display: block;
  text-align: left;
  font-size: 10pt;
  line-height: 100%;
  margin: 0.3em 0;
}


/* Bloc PayPal / partage */

.partage {
  float: right;
  width: 210px;
  text-align: center;
  margin-left: 20px;
}

.btn-partage {
  width: 100%;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #0070ba, #003087);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-partage:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.btn-partage:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 450px) {
  .partage {
    float: none;
    margin: 10px auto;
  }
}


/* 8. Publicités */
.publicites { text-align: center; line-height: 0; }
.vignettes { width: 49%; height: auto; display: inline-block; vertical-align: top; }
.cul { display: block; width: 33%; height: auto; margin: 1rem auto; }

/* 9. Pied de page */
footer { font-size: 0.9rem; text-align: center; margin-top: 2rem; }


/* Bouton gris */
.btn-journal {
    display: inline-block;
    padding: 8px 16px;               /* padding réduit */
    background: linear-gradient(to bottom, #e4e1d8, #d2cec3);
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    line-height: 1.4;
    border: 1px solid #bdb7aa;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.btn-journal:hover {
    background: linear-gradient(to bottom, #dad6cb, #c7c2b6);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 4px 10px rgba(0,0,0,0.12);
}

.btn-journal:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.12);
}



/* Bouton gris àaligné à gauche */
.btn-gris-gauche {
    display: inline-block;
    padding: 8px 16px;               /* padding réduit */
    background: linear-gradient(to bottom, #e4e1d8, #d2cec3);
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    text-align: left;
    line-height: 1.4;
    border: 1px solid #bdb7aa;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.btn-journal:hover {
    background: linear-gradient(to bottom, #dad6cb, #c7c2b6);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 4px 10px rgba(0,0,0,0.12);
}

.btn-journal:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.12);
}


/* Style général pour tous les boutons PayPal personnalisés */
.paypal-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0070ba; /* bleu PayPal */
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.paypal-btn:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

.paypal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive : boutons plus petits sur mobile */
@media (max-width: 480px) {
    .paypal-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}
