/* ============================================================
   L'ÉCHO DU BOSQUET — Refonte Moderne & Artisanale v2
   Palette : verts profonds, sable/crème, accents cuivrés
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --vert-fonce:    #243d26;
  --vert-moyen:    #345e37;
  --vert-clair:    #6a9e6e;
  --vert-pale:     #d4e8d5;
  --sable:         #f7f1e8;
  --sable-fonce:   #e9deca;
  --cuivre:        #a8682e;
  --cuivre-clair:  #c4854a;
  --blanc-casse:   #fbf8f3;
  --texte:         #1a2b1b;
  --texte-doux:    #4a5e4b;
  --ombre:         rgba(36, 61, 38, 0.10);
  --ombre-forte:   rgba(36, 61, 38, 0.20);
  --rayon:         14px;
  --rayon-lg:      22px;
  --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--blanc-casse);
  font-family: 'Jost', sans-serif;
  color: var(--texte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--vert-fonce);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; font-weight: 600; }

p, li, small { font-family: 'Jost', sans-serif; color: var(--texte-doux); }
a { color: var(--vert-moyen); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cuivre); }

/* === NAVBAR === */
.navbar {
  background: var(--vert-fonce) !important;
  padding: 0 !important;
  z-index: 1030;
  box-shadow: 0 4px 24px var(--ombre-forte);
}
.navbar > .container {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-brand {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--sable) !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cuivre-clair);
  transition: width 0.3s ease;
}
.navbar-brand:hover::after { width: 100%; }
.navbar-brand:hover { color: var(--sable) !important; }

.navbar .nav-link {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(247, 241, 232, 0.75) !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--cuivre-clair);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--sable) !important;
  background: transparent;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }

#panierDropdown {
  font-size: 1.15rem;
  border: none;
  background: none;
  color: rgba(247,241,232,0.8) !important;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
#panierDropdown:hover {
  background: rgba(255,255,255,0.08);
  color: var(--sable) !important;
}
#panierDropdown .badge {
  position: absolute;
  top: -5px; right: -7px;
  font-size: 0.58rem;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  background-color: var(--cuivre) !important;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}
.navbar .dropdown-toggle {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(247, 241, 232, 0.75) !important;
  transition: color var(--transition);
}
.navbar .dropdown-toggle:hover { color: var(--sable) !important; }

.dropdown-menu {
  border: none;
  border-radius: var(--rayon);
  box-shadow: 0 12px 40px var(--ombre-forte);
  background: white;
  padding: 0.6rem;
  margin-top: 0.6rem;
  min-width: 200px;
}
.dropdown-item {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--texte);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  transition: all 0.15s;
}
.dropdown-item:hover { background-color: var(--vert-pale); color: var(--vert-fonce); }
.dropdown-item.text-danger { color: #c0392b !important; }
.dropdown-item.text-danger:hover { background-color: #fdecea; color: #a93226 !important; }
.dropdown-divider { border-color: var(--sable-fonce); margin: 0.3rem 0; }

#panierDropdownMenu {
  min-width: 300px;
  border-radius: var(--rayon);
  padding: 1.1rem;
  box-shadow: 0 12px 40px var(--ombre-forte);
  background: white;
}

/* === FOOTER === */
footer {
  background: var(--vert-fonce);
  color: var(--sable);
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer p { color: rgba(247,241,232,0.5); margin: 0; }

/* === BOUTONS === */
.btn {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  border-radius: var(--rayon);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary, .btn-custom {
  background-color: var(--vert-moyen);
  color: white;
  border: none;
  padding: 0.65rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(52, 94, 55, 0.3);
}
.btn-primary:hover, .btn-custom:hover {
  background-color: var(--vert-fonce);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(52, 94, 55, 0.38);
  color: white;
}
.btn-adoption, .btn-boutique {
  background-color: var(--cuivre);
  color: white;
  border: none;
  padding: 0.65rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(168, 104, 46, 0.28);
}
.btn-adoption:hover, .btn-boutique:hover {
  background-color: #8f5524;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(168, 104, 46, 0.38);
  color: white;
}
.btn-about {
  background-color: transparent;
  color: var(--vert-fonce);
  border: 2px solid var(--vert-moyen);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}
.btn-about:hover {
  background-color: var(--vert-moyen);
  color: white;
  transform: translateY(-2px);
}
.btn-outline-primary {
  border: 1.5px solid var(--vert-moyen);
  color: var(--vert-moyen);
  background: transparent;
  font-weight: 500;
}
.btn-outline-primary:hover {
  background-color: var(--vert-moyen);
  border-color: var(--vert-moyen);
  color: white;
  transform: translateY(-1px);
}
.btn-outline-secondary {
  border: 1.5px solid var(--sable-fonce);
  color: var(--texte-doux);
  background: transparent;
}
.btn-outline-secondary:hover {
  background-color: var(--sable-fonce);
  color: var(--texte);
  border-color: var(--sable-fonce);
}
.btn-success {
  background-color: var(--vert-moyen);
  border-color: var(--vert-moyen);
  font-weight: 500;
}
.btn-success:hover { background-color: var(--vert-fonce); border-color: var(--vert-fonce); }
.btn-danger { font-weight: 500; }

/* === CARDS === */
.card {
  border: none;
  border-radius: var(--rayon-lg);
  background: white;
  box-shadow: 0 2px 20px var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px var(--ombre-forte);
}
.card-img-top {
  height: 220px;
  object-fit: contain;
  width: 100%;
  background-color: var(--sable);
  padding: 16px;
}
.card-body { padding: 1.4rem; }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.card-text { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.55; }

/* === PRODUIT / ADOPTION CARDS === */
.produit-card, .adoption-card {
  background: white;
  border-radius: var(--rayon-lg);
  box-shadow: 0 2px 20px var(--ombre);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.produit-card:hover, .adoption-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--ombre-forte);
}
.produit-card .card-body, .adoption-card .card-body {
  padding: 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.produit-card .card-body h5, .adoption-card .card-body h5 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--vert-fonce);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.produit-card img, .adoption-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background-color: var(--sable);
  padding: 12px;
  transition: transform 0.4s ease;
}
.produit-card:hover img, .adoption-card:hover img { transform: scale(1.04); }

/* Prix */
.produit-prix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cuivre);
  margin-bottom: 0.8rem;
}

/* === CARD IMG WRAPPER === */
.card-img-wrapper {
  width: 100%; height: 200px;
  background-color: var(--sable);
  display: flex; justify-content: center; align-items: center;
  padding: 12px; overflow: hidden;
}
.card-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* === HERO === */
.hero-section {
  background: transparent;
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--vert-fonce);
  margin-bottom: 0.75rem;
}
.hero-section .mascotte {
  max-width: 110px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 6px 16px var(--ombre));
}
.hero-section .lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--texte-doux);
  font-size: 1.35rem;
  font-weight: 400;
}
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cuivre), transparent);
  margin: 1.5rem auto;
  border: none;
}

/* === SECTIONS === */
section { padding: 4.5rem 1rem; }
.full-width-section { width: 100%; }

.presentation-section {
  background: white;
  border-top: 1px solid var(--sable-fonce);
  border-bottom: 1px solid var(--sable-fonce);
}
.adoption-section { background: var(--sable); }
.produits-section { background: white; }
.contact-section {
  background: var(--vert-fonce);
  color: var(--sable);
}
.contact-section h2 { color: var(--sable); }
.contact-section .lead { color: rgba(247,241,232,0.75); }
.contact-section .btn-custom {
  background: var(--cuivre);
  box-shadow: 0 2px 12px rgba(168,104,46,0.3);
}
.contact-section .btn-custom:hover { background: var(--cuivre-clair); }

.presentation-section h2,
.adoption-section h2,
.produits-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--vert-fonce);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--vert-clair), var(--cuivre));
  margin: 1rem auto 2.5rem;
  border-radius: 2px;
}

.presentation-section p {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--texte-doux);
}

.adoption-grid, .produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}
.adoption-cta, .produits-cta { text-align: center; margin-top: 2.75rem; }

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 100%);
  padding: 2.5rem 1rem;
  text-align: center;
}
.page-header h2 {
  color: var(--sable);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 2px;
  margin: 0;
}
.page-header p {
  color: rgba(247,241,232,0.6);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* === PORTÉE WRAPPER === */
.portee-wrapper .card-body h5 { font-family: 'Jost', sans-serif; color: var(--texte-doux); text-align: center; }
.portee-wrapper .card-body .btn {
  background-color: var(--vert-clair); color: white; border: none;
  border-radius: 8px; margin-top: 0.5rem; font-weight: 600; transition: background var(--transition);
}
.portee-wrapper .card-body .btn:hover { background-color: var(--vert-moyen); color: white; }
.portee-wrapper .card-body .badge {
  display: inline-block; min-width: 100px; padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 600; border-radius: 50px; text-align: center;
  margin: 0.75rem auto 0; color: white; background-color: var(--vert-clair);
  box-shadow: 0 2px 6px var(--ombre);
}
.portee-wrapper .card-body .badge.reserved { background-color: #9aa49a; }

/* === FORMULAIRES === */
form { background-color: transparent; padding: 0; }
.form-control, textarea, select {
  border-radius: 10px;
  border: 1.5px solid var(--sable-fonce);
  padding: 0.7rem 1rem;
  font-size: 0.93rem;
  background-color: white;
  font-family: 'Jost', sans-serif;
  color: var(--texte);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, textarea:focus, select:focus {
  border-color: var(--vert-clair);
  box-shadow: 0 0 0 3px rgba(106, 158, 110, 0.18);
  outline: none;
}
.form-label, form label {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  color: var(--vert-fonce);
  margin-bottom: 0.4rem;
  display: block;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
}
.form-select {
  border-radius: 10px;
  border: 1.5px solid var(--sable-fonce);
  font-family: 'Jost', sans-serif;
  color: var(--texte);
}
.form-check-input:checked { background-color: var(--vert-moyen); border-color: var(--vert-moyen); }
form p.text-center { margin-top: 1.5rem; font-size: 0.9rem; }
form p.text-center a { color: var(--vert-moyen); font-weight: 600; }
form p.text-center a:hover { color: var(--cuivre); }

#password-strength { height: 4px; border-radius: 4px; margin-top: 4px; background-color: var(--sable-fonce); overflow: hidden; }
#password-strength .strength-bar { height: 100%; width: 0%; transition: width 0.3s ease; }
.strength-weak { background-color: #e74c3c; }
.strength-medium { background-color: #f1c40f; }
.strength-strong { background-color: var(--vert-clair); }

/* === LIST GROUP === */
.list-group-item {
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon) !important;
  margin-bottom: 0.5rem;
  background: white;
  padding: 1rem 1.25rem;
  font-family: 'Jost', sans-serif;
  transition: box-shadow var(--transition);
}
.list-group-item:hover { box-shadow: 0 2px 12px var(--ombre); }
.list-group-item:first-child,
.list-group-item:last-child { border-radius: var(--rayon) !important; }

/* === BADGES === */
.badge {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;
  padding: 0.35em 0.85em;
  font-size: 0.75rem;
}
.badge.bg-success { background-color: var(--vert-clair) !important; }
.badge.bg-warning { background-color: #e8b84b !important; color: #3d2e00 !important; }
.badge.bg-secondary { background-color: #8a9e8b !important; }

/* === ALERTS === */
.alert {
  border-radius: var(--rayon);
  font-family: 'Jost', sans-serif;
  border: none;
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
}
.alert-warning { background-color: #fef9ec; color: #7a5c0e; border-left: 3px solid #e8b84b; }
.alert-danger  { background-color: #fdf0f0; color: #922b2b; border-left: 3px solid #e74c3c; }
.alert-success { background-color: #f0f8f1; color: var(--vert-fonce); border-left: 3px solid var(--vert-clair); }
.alert-info    { background-color: #eef6fc; color: #1a5276; border-left: 3px solid #5dade2; }

/* === MODAL === */
.modal-content {
  border: none;
  border-radius: var(--rayon-lg);
  box-shadow: 0 20px 60px rgba(36,61,38,0.22);
  overflow: hidden;
}
.modal-header {
  background: var(--sable);
  border-bottom: 1px solid var(--sable-fonce);
  padding: 1.3rem 1.6rem;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--vert-fonce);
  font-size: 1.4rem;
  font-weight: 600;
}
.modal-body { padding: 1.6rem; background: white; }
.modal-body img {
  max-width: 100%; height: auto; object-fit: contain;
  border-radius: 10px; background: var(--sable); padding: 8px;
}
.modal-info h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--vert-fonce); font-size: 1.4rem; margin-bottom: 0.5rem;
}
.modal-info p { color: var(--texte-doux); font-size: 0.92rem; }
.modal-info label {
  font-weight: 600; color: var(--vert-fonce); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
#modal-quantity {
  width: 80px; border-radius: 8px;
  border: 1.5px solid var(--sable-fonce); padding: 6px 10px; font-family: 'Jost', sans-serif;
}
#modal-ajouter-panier {
  background-color: var(--vert-moyen); border: none; color: white;
  padding: 0.6rem 1.3rem; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-family: 'Jost', sans-serif; font-size: 0.9rem;
  transition: all var(--transition); box-shadow: 0 2px 10px rgba(52,94,55,0.25);
}
#modal-ajouter-panier:hover:not(:disabled) {
  background-color: var(--vert-fonce); transform: translateY(-1px);
}
#modal-ajouter-panier:disabled { background-color: var(--vert-pale); color: var(--texte-doux); cursor: not-allowed; }
#modal-stock-message { font-size: 0.85rem; color: #c0392b; margin-bottom: 0.5rem; }
.btn-close { opacity: 0.4; }
.btn-close:hover { opacity: 0.8; }

/* === MISC === */
.container-custom { max-width: 1100px; margin: 0 auto; padding: 20px 15px; }
input[type=number].no-spinner { appearance: none; -webkit-appearance: none; -moz-appearance: textfield; }
#panier-count-badge { font-size: 0.62rem; padding: 3px 5px; }
.text-end.fw-bold { color: var(--vert-fonce); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card, .produit-card, .adoption-card { animation: fadeInUp 0.4s ease both; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .navbar-collapse { padding: 0.75rem 0; }
  .navbar .nav-link::after { display: none; }
}
@media (max-width: 768px) {
  section { padding: 3rem 1rem; }
  .adoption-grid, .produits-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 576px) {
  .adoption-grid, .produits-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .modal-body { padding: 1rem; }
  form .btn { width: 100%; }
}

/* === Chien bouton (page d'accueil) === */
.btn-about + .chien-bouton,
.chien-bouton {
  margin-left: -15px;
  height: 75px;
  width: auto;
  vertical-align: middle;
}

/* === Grille cards taille fixe (accueil) === */
.adoption-grid,
.produits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.adoption-grid .adoption-card,
.produits-grid .produit-card {
  width: 280px;
  flex: 0 0 280px;
}
