@charset "utf-8";
/* CSS Document */

/* ========== RESET DE BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #2f3e5c; /* ← plus contrasté que #576D88 */
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: #034d96; /* ← couleur d’accent plus vive */
  text-decoration: underline; /* ← pour l’accessibilité */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  background-color: #f9f9f9;
  color: #333;
}

/* ========== TYPOGRAPHIE GÉNÉRALE ========== */
h2, h3 {
  font-weight: 700;
  color: #576D88;
}

h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0;
}

h3 {
	font-size: 1.2rem;
	margin-top: 2rem;      /* espace avant le titre */
	margin-bottom: 1rem;   /* espace après le titre */
	text-align: left;
}

h4 {
	font-size: 1rem;
	margin-top: 0.5rem;     /* Espace au-dessus pour aérer */
	color: #576D88;
	line-height: 1.2;
	font-weight: bolder;
}

.textegras {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.4;
	color: #333;
	font-weight: bolder;
}

/* ========== EN-TÊTE ========== */
header {
  background-color: #576D88;
  color: white;
  padding: 1rem;
  position: relative;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.bandeau {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* ========== NAVIGATION ========== */
.menu-toggle {
  display: none;
}

.menu-label {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: bolder;
  z-index: 10;
}

.nav-links {
  display: flex;
  gap: 0.3rem; /* Réduire l'espace entre les items */
  margin-top: 0.5rem;
}

.nav-links a {
  color: white;
  padding: 0.3rem 0.2rem; /* Padding réduit */
  border-radius: 4px;
  min-width: 0; /* Essential pour le text wrapping */
  white-space: normal;
  text-align: center;
  line-height: 1;
  font-size: 0.80rem; /* Taille de police légèrement réduite */
  display: flex;
  align-items: top;
  justify-content: left;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Fond légèrement visible */
}


/* ========== CONTENU PRINCIPAL ========== */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  background-color: #fff;
}

.presentation-livre {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.prix-livre {
  font-size: 1.2rem;
  color: #034d96;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* Structure générale du formulaire */
#contact_form {
  max-width: 700px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: normal;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-row .half {
  flex: 1 1 calc(50% - 15px);
}

.texteTITRE {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
}

.titrelmvreduit {
  display: block;
  font-size: 0.8em;
  margin-top: 5px;
  color: #666;
}


/* Options de paiement */
.paiement-option {
  margin: 5px 0;
}

.paiement-option input {
  margin-right: 5px;
}

.zoneerreur {
	text-align: center;
	color: red;
	padding: 1em;
	margin-bottom: 20px;
	font-weight: bold;
	border-radius: 5px;
}

/* Options de livraison */
.livraison-block {
  margin-bottom: 20px;
}

.livraison-option {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.livraison-option:hover {
  background: #eaeaea;
}

.livraison-option input {
  margin-right: 10px;
}

.pointrelais-field {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fafafa;
}

.pointrelais-field img {
  display: block;
  margin-bottom: 10px;
  max-width: 100%;
}
/* ========== BOUTON D'ACHAT ========== */
.bouton-achat {
  display: inline-block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #034d96;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease forwards;
}

.bouton-achat:hover {
  background-color: #023a70;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ========== PAIEMENT ========== */

.payment-container {
  width: 90%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.payment-header {
  margin-bottom: 20px;
}

.payment-header h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.payment-cards-img {
  border: 1px solid #ccc;
  width: 358px;
  height: 40px;
}

.payment-section {
  margin: 20px 0;
}

.payment-method form {
  flex-wrap: wrap; /* permet au bouton de passer à la ligne */
}

.payment-method input[type="image"] {
  flex-basis: 100%;   /* force le bouton à passer en dessous */
  display: block;     /* se comporte comme un bloc */
  margin-top: 8px;    /* espace au-dessus du bouton */
  max-width: 220px;   /* largeur du bouton */
  /* alignement à gauche par défaut */
}

.payment-method h2 {
  color: #333;
  font-size: 20px;
  margin-bottom: 15px;
}

.payment-details {
  display: flex;
  gap: 20px;
}

.payment-description {
  flex: 60%;
}

.payment-address, .payment-info {
  flex: 40%;
}

.divider {
  height: 1px;
  background-color: #969167;
  margin: 20px 0;
}

.paypal-form {
  margin: 15px 0;
}

.paypal-button {
  cursor: pointer;
}

.payment-method select {
  width: 100%;          /* prend toute la largeur disponible */
  max-width: 500px;     /* largeur confortable adaptée à la longueur des options */
  padding: 8px 10px;
  border: 2px solid #576D88;
  border-radius: 5px;
  font-size: 1rem;      /* texte lisible */
  font-weight: 600;     /* choix bien visible */
  background: #fff;
  color: #333;
}

/* --- Pop-up d’erreur --- */
#popupErreur {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

#popupErreur .contenu {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

#popupErreur button {
  margin-top: 15px;
  padding: 8px 15px;
  border: none;
  background-color: #8b0015;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

/* ========== ANIMATION ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PIED DE PAGE ========== */
footer {
  background-color: #576D88;
  color: white;
  padding: 1.5rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: white;
  padding: 0.5rem;
}

.footer-links a:hover {
  color: #ddd;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
  .menu-label {
    display: block;
    z-index: 10;
  }

  .nav-links {
	display: none;
	flex-direction: column;
	background-color: #425368;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	padding: 1rem;
	z-index: 9;
	font-weight: bolder;
  }
 
  .menu-toggle:checked + .menu-label + .nav-links {
    display: flex;
  }
  
  .livraison-option {
    max-width: 60%;
  }
  .pointrelais-field {
    max-width: 65%;
  }

  /* Footer mobile */
  footer {
    padding: 1rem;
  }

  .footer-links {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
  }

  .footer-links a {
    padding: 0.2rem 0;
  }
}
