/* header, menu de navigation, footer, boutons stylés, cartes, formulaires, 
badges, modales, sliders, tout bloc réutilisable */

/* Header & Navigation */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #EAA237; 
  gap: 15px;
}

.site-header .custom-logo,
.site-header .site-logo__img{
  height: clamp(64px, 8vw, 100px);
  width: auto;
  display: block;
  max-height: none; 
}
.header__inner{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:3rem;
  padding:0.6rem 0; 
}
.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a{
  color: #7b775a;            
  font-weight: 700;
}

/*panier*/
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 24px;
}

.header-cart img {
  width: 28px;
  height: auto;
}

.header-cart__count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #CC9D82;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #CC9D82;
  color: #fff;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
/* fin panier*/


.site-name{ font-family:"Merriweather",serif; font-weight:700; color:#fff; }

/* Nav desktop horizontale */
.site-nav{ position:static; transform:none; }
.site-nav .menu{
  display:flex; gap:1rem; list-style:none; margin:0; padding:0;
}
.site-nav .menu a{
  font-family:"Merriweather", serif; color:#615C3F; text-decoration:none; font-weight:700;
}
.site-nav .menu a:hover{ text-decoration:underline; }
.site-nav .menu a:focus-visible{
  outline:2px solid currentColor; outline-offset:2px;
}

/* Burger caché en desktop */
.nav-toggle{
  display:none; border:0; background:transparent;
  width:40px; height:40px; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.nav-toggle .line{
  display:block; width:24px; height:2px; background:#615C3F;
  margin:6px auto; transition:0.2s; pointer-events:none; 
}

/*  Mobile */
@media (max-width: 1024px){
  .nav-toggle{ display:block; } /* burger visible en mobile */

  /* Panneau latéral 70% largeur fermé par défaut */
  .site-nav{
    position:fixed; inset:0 0 0 30%;
    background:#fff; color:#615C3F;
    transform:translateX(100%); transition:transform 0.3s ease;
    z-index:1000; padding-top:4.5rem; box-shadow:-6px 0 16px rgba(0,0,0,0.15);
  }
  .site-nav.is-open{ transform:translateX(0); }

  .site-nav .menu{
    flex-direction:column; gap:0.25rem; padding:1rem 1rem 2rem;
  }
  .site-nav .menu a{
    font-family:"Merriweather", serif; color:#615C3F;
    font-size:1.1rem; padding:0.6rem 0; 
  }
}

/* Sécurité : on reforce le desktop */
@media (min-width: 1025px){
  .nav-toggle{ display:none !important; }
  .site-nav{
    position:static !important; transform:none !important;
    box-shadow:none !important; padding-top:0 !important;
  }
}

/* BOUTON */

.btn {
  background-color: #CC9D82;
  color: #ffffff;
  display:inline-block;
  border: none;
  outline: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: "Merriweather", serif; 
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #b88a70;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus {
  outline: none;
  box-shadow: none;
}

/* Espace entre texte et bouton  */
.card .btn{
  margin-top:1.75rem;
  margin-bottom: 1rem;
}


/* CARTES – GÉNÉRAL */

.card{
  background:#FFFBF6;
}

.card__body {
  padding: 1rem 0 0 0.75rem; /* décale le texte vers la droite */
  text-align: left;
}

/* Texte dans cartes */
.card .wys p{
  margin: .5rem 0 1rem;
}


/* ACTIVITÉS */
.home-activites__card{
  background:#FFFBF6;
}

/* PRODUITS EN VEDETTES */

.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  
}

.product-card img {
  width: 100%;
  height: 280px;          /* hauteur fixe propre */
  object-fit: cover;
  display: block;
}

.product-card__title {
  font-family: "Merriweather", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-align: left; 
}


/* ANIMAUX */
.home-animals__card{
  background:#FFFBF6;
}

/* ACTUALITÉS*/
.news-item__media img{
  width:100%;
  height:auto;
  display:block;
  
}

.news-item__title{
  font-family:"Merriweather", serif;
  font-size:1.1rem;
  margin:.75rem 0 .25rem;
  color:#615C3F;
}

.news-item__excerpt{
  font-family:"Open Sans", system-ui, sans-serif;
  font-size:.95rem;
  margin:0;
}

/* NEWSLETTER  */
.nl-form{
  display:flex;
  gap:.75rem;
  align-items:center;
  flex-wrap:wrap;
}

.nl-form input[type="email"]{
  flex:1 1 320px;
  min-width:260px;
  padding:.9rem 1rem;
  border-radius:999px;
  border:0;
  background:#fffafe;
  color:#2b2b2b;
}


/* FOOTER */

/*  Couleur globale du footer*/
.site-footer{
  /* on force les variables déjà utilisées plus bas */
  --footer-heading:      #615C3F;
  --footer-link:         #615C3F;
  --footer-link-hover:   #615C3F;
  --footer-muted:        #615C3F;

  color:#615C3F; /* texte par défaut */
}

/* Logo footer  */
.site-footer .custom-logo,
.site-footer .footer-logo img{
  height: 100px;
  width: auto;
  display: block;
  max-height: none;
}

.footer-col h4{
  margin:0 0 .75rem;
  font-family:"Merriweather", serif;
  color: var(--footer-heading);
}

.footer-menu,
.footer-contact{ list-style:none; padding:0; margin:0; }

/* Contact + icônes */
.footer-contact{ display:grid; gap:.35rem; }
.footer-contact__item{ display:flex; align-items:center; gap:.5rem; }

/* Adresse  */
.footer-contact__item--address::before{
  content:"";
  width:20px; height:20px;
  background: currentColor;
  -webkit-mask: url("../images/mingcute_location-fill.svg") no-repeat center / contain;
          mask: url("../images/mingcute_location-fill.svg") no-repeat center / contain;
}

/* Mail/Tél  */
.footer-contact__item--email a,
.footer-contact__item--phone a{
  display:inline-flex; align-items:center; gap:.5rem;
}
.footer-contact__item--email a::before{
  content:"";
  width:20px; height:20px;
  background: currentColor;
  -webkit-mask: url("../images/material-symbols_mail.svg") no-repeat center / contain;
          mask: url("../images/material-symbols_mail.svg") no-repeat center / contain;
}
.footer-contact__item--phone a::before{
  content:"";
  width:20px; height:20px;
  background: currentColor;
  -webkit-mask: url("../images/famicons_call.svg") no-repeat center / contain;
          mask: url("../images/famicons_call.svg") no-repeat center / contain;
}

/* Fallback anciens navigateurs  */
@supports not (mask: url("")){
  .footer-contact__item--address::before{
    background:none;
    background-image:url("../images/mingcute_location-fill.svg");
    background-repeat:no-repeat; background-position:center; background-size:contain;
  }
  .footer-contact__item--email a::before{
    background:none;
    background-image:url("../images/material-symbols_mail.svg");
    background-repeat:no-repeat; background-position:center; background-size:contain;
  }
  .footer-contact__item--phone a::before{
    background:none;
    background-image:url("../images/famicons_call.svg");
    background-repeat:no-repeat; background-position:center; background-size:contain;
  }
}

.footer-menu li + li{ margin-top:.35rem; }

.footer-menu a{
  color: var(--footer-link);
  text-decoration:none;
}
.footer-menu a:hover{
  color: var(--footer-link-hover); 
  text-decoration:underline;
}

/* Couleurs de base des textes/liens du footer  */
.footer-contact li{ color: var(--footer-muted); }
.footer-contact a{ color: var(--footer-link); text-decoration:none; }
.footer-contact a:hover{ text-decoration:underline; }

.footer-logo img{ width:56px; height:auto; border-radius:12px; }
.footer-logo__text{ font-weight:700; }

.footer-social{ display:flex; gap:.75rem; margin-top:.5rem; }
.footer-social .social{ color:var(--footer-link); text-decoration:none; font-weight:600; }
.footer-social .social:hover{ text-decoration:underline; }

.footer-mascotte{ font-size:1.8rem; margin-top:.6rem; }

/* Lien Facebook en icône seule  */
.footer-menu .menu-item-fb > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px; height:28px; padding:0;
  font-size:0; line-height:0;
}
.footer-menu .menu-item-fb > a::before{
  content:"";
  width:20px; height:20px;
  background: currentColor; 
  -webkit-mask: url("../images/ic_baseline-facebook.svg") no-repeat center / contain;
          mask: url("../images/ic_baseline-facebook.svg") no-repeat center / contain;
}

/* Mascotte poule sous la colonne réseaux sociaux  */
.footer-mascotte--inline{ margin-top:.75rem; }
.footer-mascotte--inline img{
  display:block;
  width:150px; height:auto;
  filter:none; mix-blend-mode:normal; opacity:1; 
}
.footer-col .footer-mascotte--inline{ text-align:right; }
.footer-col .footer-mascotte--inline img{ margin-left:auto; }

/* Fallback vieux navigateurs */
@supports not (mask: url("")){
  .footer-menu .menu-item-fb > a::before{
    background: none;
    background-image: url("../images/ic_baseline-facebook.svg");
    background-repeat:no-repeat; background-position:center; background-size:contain;
  }
}


/* PAGE ANIMAUX */

/* TITRES */

.species__heading {
  margin-bottom: 1rem;
}

/* CARTE TEXTE  */

.species__card {
  background: #FFFBF6;
  padding: 3rem;
  border-radius: 0;
}


.species__names {
  font-weight: 600;
  margin-bottom: 1rem;
}
/* SLIDER – IMAGE UNIQUE */

.species-slider {
  position: relative;
  width: 100%;
  overflow: hidden; /* IMPORTANT */
}

.species-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

.species-slider__item {
  flex: 0 0 100%;   
  width: 100%;
}


/* IMAGE RECTANGULAIRE */
.species-slider__item img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/*  FLÈCHES SOUS L’IMAGE  */

.species-slider__controls {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.species-slider__prev,
.species-slider__next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #CC9D82;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.species-slider__prev:hover,
.species-slider__next:hover {
  background: #b9896f;
}



/* PAGE A PROPOS */

.about-title {
 
  margin-bottom: 24px;
}

.about-subtitle {
  font-size: 30px;
  margin-bottom: 64px;
}

/* SECTION 1 – ACCROCHE */

.about-history__content .wys p:first-child {
  font-size: 18px;
  margin-bottom: 32px;
}

/* TEAM */

.team-card {
  text-align: left;
}

/*TEAM IMAGEs */

.team-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;   /* carré */
  overflow: hidden;  
  margin-bottom: 16px;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  display: block;
}

.team-card__name {
  font-family: "Merriweather", serif;
  font-size: 20px;
  color: #615C3F;
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 14px;
  line-height: 1.7;
  color: #615C3F;
}

/* SECTION 3 – ENGAGEMENT */

.about-commit__content .about-subtitle {
  margin-bottom: 32px;
}

.about-commit__content .wys p {
  max-width: 520px;
}


/* PAGE CONTACT */

/*  IMAGES  */
.contact-hero__image img,
.visit-ferme__image img,
.contact-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;    
    display: block;
}

/* FORMULAIRE - */
.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5d4c8;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: #fff;
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background: #cb9865;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: "Merriweather", serif;
    margin-top: 0rem;
}

/* PRODUITS PRODUCT CARD */

.products-page h2,
.products-page h3 {
    font-family: "Merriweather", serif;
    color: #CC9D82;
}

.product-card {
    text-align: center;
}

/* Lien cliquable */
.product-card__link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.product-card__image {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover image */
.product-card__link:hover img {
    transform: scale(1.05);
}

/* Titre produit */

.product-card__title {
    font-family: 'Merriweather', serif;
    font-weight: 400; /* Regular */
    font-size: 1.1rem;
    color: #615C3F;
    margin-bottom: 0.5rem;
}

/* Prix */
.product-card__price {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #615C3F;
}



/* PAGE POUR 1 PRODUIT */

.product-single {
  background: #F2E9E2;
  padding: 6rem 6rem;
}

.product-back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 1.2rem;
  text-decoration: none;
  color: #615C3F;
}

.product-single__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.product-single__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-single__title {
  font-family: 'Merriweather', serif;
  color: #615C3F;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-single__price {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: #615C3F;
  margin-bottom: 2rem;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}


.product-add {
  display: inline-block;
  background: #CC9D82;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

.product-single__desc {
  font-family: 'Open Sans', sans-serif;
  color: #615C3F;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .product-single__grid {
    grid-template-columns: 1fr;
  }
  .product-single {
    padding: 3rem 2rem;
  }
}


/* PAGE PAIEMENT  */

/*CARD APERÇU*/
.summary-card {
  background-color: #FFFBF6;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.summary-card h2 {
  margin-bottom: 24px;
  font-weight: 500;
  color: #6f655c;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-total {
  font-weight: 600;
  margin-top: 24px;
}

/* FORM TITLES  */
.payment-form h1 {
  margin-bottom: 32px;
  font-weight: 500;
  color: #6f655c;
}

/*  INPUTS  */
.payment-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d8c6bb;
  background: transparent;
  margin-bottom: 16px;
  font-family: inherit;
}

.payment-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/*  TOGGLE  */
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.toggle-switch {
  width: 42px;
  height: 24px;
  background: #ddd;
  border-radius: 20px;
  position: relative;
}

.toggle-switch::after {
  content: '';
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

/*  PRODUCT PREVIEW  */
.payment-product img {
  border-radius: 12px;
}

.payment-product p {
  margin: 6px 0;
  font-size: 15px;
  color: #6f655c;
}


/* PAGE CONFIRMATION*/ 

.confirmation-title {
  font-size: 2.5rem;
  margin-bottom: 32px;
}

.confirmation-lead {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.confirmation-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .confirmation-hero {
    padding: 96px 24px 120px;
  }

  .confirmation-title {
    font-size: 2rem;
  }
}


/* PAGE ACTIVITÉS  */

/* Titres spécifiques */
.activities-title {
  margin-bottom: 20px;
}

.activities-section-title {
  font-size: 2rem;
  margin-bottom: 64px;
  
}

/* Intro */
.activities-lead {
  font-family: "Merriweather", serif;
  font-size: 1.125rem;
  color: #615C3F;
  margin-bottom: 24px;
  max-width: 46ch;
}

.activities-text {
  max-width: 62ch;
}

/* Cartes */
.activity-card {
  display: block;
}

.activity-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.activity-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.activity-card__image:hover img {
  transform: scale(1.04);
}

.activity-card__title {
  font-size: 1.125rem;
  margin: 22px 0 12px;
}

.activity-card__text {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 62ch;
}

/* ACTIVITY HERO */

.activity-title {
  margin: 0;
  max-width: 20ch;
}

/* Bouton retour – composant global */

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  margin-bottom: 64px;

  border-radius: 50%;
  background: #CC9D82;

  color: #fff;
  font-size: 22px;
  font-weight: 700;

  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover */
.btn-back:hover {
  background: #b8876d;
  transform: translateX(-4px);
}

/* Focus clavier */
.btn-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}


/* Dernière solution pour les premieres section page à propos, nos produits, animaux et activités */

@media (min-width: 1025px){

  :root{
    --gutter: 1rem;
  }

  /* À propos */
  .about-history__content{
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
    padding-right: clamp(1.5rem, 3vw, 5rem) !important;
    padding-block: clamp(2.5rem, 5vw, 4rem) !important;
    max-width: none !important;
  }

  /* Activités */
  .activities-intro__content{
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
  }

  /* Animaux */
  .animals-intro__text{
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
  }

  /* Produits */
  .products-hero__text{
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
  }

  /* Section inversée (texte à droite) */
  .about-commit__content{
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
  }
}
