* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fefefe;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3a2c27; /* brun profond */
    line-height: 1.6;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-left: 2px solid #dddddd;
    border-right: 2px solid #dddddd;
}

.banner {
    border-radius: 15px; /* tu peux ajuster la valeur */
    overflow: hidden;
    display: block;
    max-width: 100%;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 0.2em;
    color: #8b1e23;  /* rouge profond */
}

header p {
    font-style: italic;
    font-size: 1.1em;
    color: #5f4b44;
}

h2 {
    color: #8b1e23;
    border-bottom: 2px solid #8b1e23;
    padding-bottom: 6px;
    margin-top: 40px;
}


ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin: 10px 0;
    padding-left: 1em;
    text-indent: -1em;
}

a {
    color: #8b1e23;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    margin-top: 40px;
}

section img {
    margin: 15px 0;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

footer {
    margin-top: 60px;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    text-align: center;
}

.center {
    text-align: center;
}

.logo-circle {
    margin: 30px auto 10px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #8b1e23; /* fine bordure rouge profond */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-circle {
    margin: 25px auto 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8b1e23; /* bordure rouge profond */
    background-color: #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
}

.portrait-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
img {
    display: block;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: 0.3s ease;
   filter: grayscale(100%);
}

.social-icons img:hover {
    filter :none;
    transform: scale(1.1);

}

.email-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #8b1e23;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.email-button:hover {
    background-color: #a5292f;
    text-decoration: none; /* <-- empêche le soulignement */
}

.ebook-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.ebook {
    flex: 1 1 45%; /* 2 colonnes, prend environ 45% */
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2em;
}

/* Sur mobile, on force une colonne */
@media (max-width: 768px) {
  .ebook {
    flex: 1 1 100%;
  }
}
.ebook-image {
    text-align: center;
    margin-top: 2em;
}

.ebook-cover {
  width: 100px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: block; /* <-- important */
}

.ebook p {
  margin: 0.2em 0;
  text-align: left;
}


.separator {
  border: none;
  border-top: 1px solid #8b1e23;  /* couleur fine et élégante */
  width: 50%;
  margin: 3em auto 2em auto;
}
.navbar {
  background-color: #f4f1ee;
  padding: 0px 20px;
  text-align: center; /* centre tout */
  border-bottom: 1px solid #ccc; /* fine ligne grise claire */
  /*border-top: 1px solid #ccc; /* fine ligne grise claire */

}

.hamburger {
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  padding: 5px 10px;
  display: inline-block;
  margin: 0 auto;
  color: #8b1e23; /* <- couleur des 3 lignes */
}

.nav-links {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: none;
  flex-direction: column;
  align-items: center; /* centre chaque item du menu */
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  margin: 10px 0;
  position: relative;
  padding-left: 40px;
}


#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #8b1e23;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: none; /* caché par défaut */
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #a92a2e;
}


#newsletter {
  text-align: center;
  padding: 30px 10px;
  border-radius: 10px;
}

.newsletter-form {
  margin-top: 15px;
}

.newsletter-form input[type="email"] {
  padding: 10px;
  width: 250px;
  max-width: 90%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.newsletter-form button {
  padding: 10px 20px;
  margin-left: 10px;
  background-color: #990000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background-color: #cc0000;
}

.flip-counter {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.digit {
  width: 40px;
  height: 60px;
  background: linear-gradient(to bottom, #222 50%, #111 50%);
  color: white;
  font-size: 2em;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: inset 0 -2px 2px rgba(0,0,0,0.4), inset 0 2px 2px rgba(255,255,255,0.1);
  text-shadow: 0 1px 2px black;
}

.back-to-site {
    margin-top: 1.5em;
}

.back-to-site a {
    color: #a72b00;
    text-decoration: none;
    font-size: 0.95em;
}

.back-to-site a:hover {
    text-decoration: underline;
}

.admin-link {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.admin-link:hover {
    text-decoration: none;
}

.email-button:disabled {
    background-color: #f5c7c7;  /* Rouge pâle */
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

select.donation-select {
    appearance: none;
    background-color: #fff;
    border: 2px solid #8c0000;
    color: #333;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: center;
    cursor: pointer;
}

select.donation-select:focus {
    border-color: #c40000;
    outline: none;
    box-shadow: 0 0 5px rgba(140, 0, 0, 0.3);
}

.button-red {
    background-color: #a72b00;
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.button-red:hover {
    background-color: #881f00;
}
.ebook-grid a:hover img {
    opacity: 0.9;
    transform: scale(1.01);
    transition: all 0.2s ease;
}
.ebook-grid a img {
    cursor: pointer;
}
