/* containers, sections, grilles, colonnes, espacements entre sections, 
structure des pages, organisation desktop/mobile, media queries pour le responsive */

/* Comportement mobile empêcher le scroll derrière le panneau nav */
@media (max-width:900px){
  html.nav-open{ overflow:hidden; }
}



@media (max-width:900px){
  .grid--2{ grid-template-columns:1fr; }
  .home-activites__title{ margin-bottom: .75rem; }
}

/*ACTIVITÉS */
.home-activites{
  background:#F2E9E2;
}


.home-activites__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:center;
}

.home-activites__media img{
  width:100%;
  height:auto;
  display:block;
}

/* PRODUITS EN VEDETTES */
.home-products{
  padding:4rem 0;
}


.home-products__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.5rem;
}

/* ANIMAUX */
.home-animals{
  background:#F2E9E2;
}


.home-animals__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:center;
}

.home-animals__media img{
  width:100%;
  height:auto;
  display:block;
 
}

/* ACTUALITÉS 2 cartes simples*/
.home-news{
  background:#FFFBF6;
}


.home-news__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}

/* Newsletter */
.home-newsletter{
  position: relative; isolation: isolate; color:#fff;
  --btn-bg:   #CC9D82;      
  --btn-text: #fffafe;      
  --btn-font: "Merriweather", serif;
}
.home-newsletter::before{
  content:""; position:absolute; inset:0;
  background-image: var(--nl-bg);
  background-size: cover; background-position: center;
  z-index:-2;
}
.home-newsletter::after{
  content:""; position:absolute; inset:0;
  background: var(--nl-overlay);
  z-index:-1;
}
.home-newsletter__inner{ text-align:left; padding:3rem 0; }
.home-newsletter__title{
  font-family: "Merriweather", serif; margin:0 0 .5rem; color:#CC9D82;
}
.home-newsletter__text{ margin:0 0 1rem; font-family:"Open Sans", system-ui, -apple-system, sans-serif; color: #fff; }


@media (max-width: 1024px) {

  /* ACTIVITÉS */
  .home-activites__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* PRODUITS EN VEDETTES */
  .home-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ANIMAUX */
  .home-animals__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* ACTUALITÉS */
  .home-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* NEWSLETTER */
  .home-newsletter__inner {
    padding: 2.5rem 0;
  }
  
  .home-products img,
  .home-animals__media img,
  .home-activites__media img {
    max-height: 320px;
    object-fit: cover;
  }
}

/* RESPONSIVE */
@media (max-width:768px){

  .home-activites__grid,
  .home-animals__grid,
  .home-news__grid{
    grid-template-columns:1fr;
  }

  .home-products__grid{
    grid-template-columns:1fr;
  }
}

/* Footer */
.site-footer{ background: var(--footer-bg); color: var(--footer-text); }
.site-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
}
.site-footer__note{
  border-top: 1px solid rgba(255,255,255,.2);
  font-size:.9rem;
  padding:.85rem 0;
  color: var(--footer-muted);
}
@media (max-width: 900px){
  .site-footer__grid{ grid-template-columns:1fr; }
}

/* Sections */
.section{padding: var(--space-5) 0}
.section--alt{background:var(--cream)}
.section__head{display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom: var(--space-3)}
.grid{display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:var(--space-3)}
.grid--2{grid-template-columns: repeat(auto-fit, minmax(320px,1fr))}
.grid--3{grid-template-columns: repeat(auto-fit, minmax(260px,1fr))}

/* Hero */
.hero{position:relative}
.hero__media img{display:block; width:100%; height:auto; border-radius:0}
.hero__content{position:absolute; inset: auto 0 12% 0}
.hero__inner{max-width: var(--max); margin:auto; padding: 0 1rem; color:#fff}
.hero__title{font-size: clamp(2rem, 1rem + 3vw, 3.2rem); color:#fff; text-shadow: 0 2px 12px rgba(0,0,0,.35)}
.hero__text{max-width: 52ch}

/* Footer grille secondaire */
.site-footer{background:var(--brand); color:#fff; padding: var(--space-4) 0}
.footer-grid{display:grid; grid-template-columns:repeat(4,minmax(160px,1fr)); gap: var(--space-3)}
.footer-grid a{color:#fff; text-decoration:none}
@media (max-width: 900px){ .footer-grid{grid-template-columns:1fr 1fr} }



/* PAGE ANIMAUX – LAYOUT */

.animals-page {
  background: #FFF8EF;
}

/* INTRO*/

.animals-intro__grid {
  display: grid;
  grid-template-columns: 55% 45%; 
  min-height: 520px;
}

.animals-intro__text {
  padding: 60px 80px;
  
}


.animals-intro__title {
  margin-bottom: 1.5rem;
}

.animals-intro__lead {
  max-width: 520px;
}

.animals-intro__media {
  position: relative;
  overflow: hidden;
}

.animals-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SECTIONS ESPÈCES – LAYOUT */

.section--alt {
  background: #F2E9E2;
  padding: 6rem 0;
}

.species__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.species__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* alternance gauche / droite */
.species__grid--reverse {
  direction: rtl;
}

.species__grid--reverse > * {
  direction: ltr;
}

/* IMAGE  */

.species__media {
  width: 100%;
}

/* TEXTE */

.species__heading {
  margin-bottom: 1.5rem;
}


/* RESPONSIVE  */

@media (max-width: 1024px) {

  /* INTRO */
  .animals-intro__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
  }

  .animals-intro__text {
    padding: 1.5rem 1rem;
    padding-left: 3rem;
  }

  /* ESPÈCES */
  .species__grid {
    gap: 2.5rem;
  }

  .species__heading {
    margin-bottom: 1rem;
  }
  .species__media img {
    max-height: 380px;
    object-fit: cover;
  }
}


@media (max-width: 768px) {

  /* INTRO */

  .animals-intro__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .animals-intro__text {
    padding: 1rem 1rem;
    padding-left: 1rem;
  }

  .animals-intro__media {
    height: 300px;
  }

  .animals-intro__img {
    height: 100%;
  }

  /* SECTIONS ESPÈCES*/

  .section--alt {
    padding: 4rem 0;
  }

  .species__grid,
  .species__grid--reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }

  .species__media {
    order: 1;
  }

  .species__content {
    order: 2;
  }

}


/* PAGE À PROPOS  */

.about-page {
  width: 100%;
}

/*SECTION 1 – HISTOIRE*/

.about-history {
  background: #FFFBF6;
}


.about-history__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  min-height: 520px;
}

.about-history__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.about-history__image {
  width: 100%;
  height: 100%;
}

.about-history__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*SECTION 2 – ÉQUIPE
 */

.about-team {
  background: #F2E9E2;
  padding: 120px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

/*SECTION 3 – ENGAGEMENT */

.about-commit {
  background: #FFFBF6;
}

.about-commit__grid {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  min-height: 700px;
}

.about-commit__image {
  width: 100%;
  height: 100%;
}

.about-commit__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-commit__content {
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*RESPONSIVE */
@media (max-width: 1024px) {

  /* Sections en colonne */
  .about-history__grid,
  .about-commit__grid {
    grid-template-columns: 1fr;
  }

  /* Padding plus léger */
  .about-history__content,
  .about-commit__content {
    order: 1;
    padding: 1rem 1rem;
  }

   .about-history__image {
    order: 2;
  }
  .about-history__image img {
    height: 300px;
    object-fit: cover;
  }

  /* Team : 1 colonne */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-card__image {
    max-width: 280px;
    
  }
}
@media (max-width: 768px) {

  /* SECTION 1 – HISTOIRE */
  .about-history__content {
    padding: 1.5rem 1.25rem;
  }

  .about-history__image,
  .about-commit__image {
    min-height: 280px;
  }

  /* SECTION 2 – TEAM */
  .about-team {
    padding: 72px 0;
  }

  .team-card__image {
    max-width: 240px;
    margin-bottom: 12px;
    
  }

  .team-card__name {
    font-size: 18px;
  }

  .team-card__bio {
    font-size: 14px;
  }

  /* SECTION 3 – ENGAGEMENT */
  .about-commit__content {
    padding: 48px 1.5rem;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .about-subtitle {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .about-commit__content .wys p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}



/*PAGE CONTACT  */

.contact-hero {
    display: flex;
    width: 100%;
    align-items: stretch; 
}

.contact-hero__image {
    flex: 1;
    height: auto;
}

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


/*  COLONNE FORMULAIRE */
.contact-hero__form {
    flex: 1;
    background: #FFFBF6;
    padding-bottom: 2rem; 
}


/* ESPACE SOUS LE FORMULAIRE  */
.contact-form {
  flex: 1;
  min-width: 0;
  margin-bottom: 0; 
}
.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
}


/* ALIGNEMENT COMME LE MENU  */
.contact-hero__form-inner {
    width: 100%;
    max-width: 520px;
    margin-left: 4rem;
    margin-top: 3.5rem; 
    box-sizing: border-box;
}

/*SECTION 2 : VISITEZ NOTRE FERME */

.visit-ferme {
    display: flex;
    width: 100%;
    min-height: 55vh;            
}

/* Texte à gauche */
.visit-ferme__text {
    flex: 1;
    background: #F2E9E2;
    display: flex;
    align-items: center;  
    padding-left: 4rem;      
}

/* Contenu aligné comme le header */
.visit-ferme__text-inner {
    width: 100%;
    max-width: 520px;
    margin-left: 4rem;
}

/* Image à droite */
.visit-ferme__image {
    flex: 1;
}

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


/* SECTION 3 : la grande image */

.contact-images img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 4rem 0;
}

/* GOOGLE MAP */

.contact-map {
    width: 100%;
    margin-top: 0;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* RESPONSIVE — PAGE CONTACT */

@media (max-width: 1024px) {

  /* HERO */
  .contact-hero {
    align-items: stretch;
  }

  .contact-hero__form-inner {
    margin-left: 1rem;  
    margin-top: 3rem;
    max-width: 480px;
  }

  /* VISITE FERME */
  .visit-ferme__text {
    padding-left: 1rem;
  }

  .visit-ferme__text-inner {
    margin-left: 1rem;
    max-width: 480px;
  }

  /* GRANDE IMAGE */
  .contact-images img {
    height: 420px;
    margin: 3rem 0;
  }

  /* MAP */
  .contact-map iframe {
    height: 380px;
  }
}

@media (max-width: 768px) {

    /* HERO */
    .contact-hero {
        flex-direction: column;
        height: auto;        
        min-height: auto;    
    }

    .contact-hero__image {
        height: 280px;       
    }

    .contact-hero__image img {
        height: 100%;
        object-fit: cover;
    }

    .contact-hero__form {
        padding: 1rem 0;
    }

    .contact-hero__form-inner {
        margin: 0 auto;     
        padding: 0 2rem;
        max-width: 100%;
    }

    /* VISITEZ NOTRE FERME */
    .visit-ferme {
        flex-direction: column;
        min-height: auto;
    }

    .visit-ferme__image {
        height: 260px;
    }

    .visit-ferme__image img {
        height: 100%;
        object-fit: cover;
    }

    .visit-ferme__text {
        padding: 2rem;
    }

    .contact-map iframe {
        height: 300px;
    }
}


/* PAGE NOS PRODUITS */

.products-page {
    width: 100%;
}

/* HERO */

.products-hero {
    display: flex;
    
}

.products-hero__text {
    background: #FFF9F6;
    padding: 60px 80px;
    min-width: 0; 
}

.products-hero__text-inner {
    max-width: 520px;
    
}

.products-hero__image {
    flex: 1;
    overflow: hidden;
    min-width: 0; 
}

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

/*  LISTE PRODUITS  */

.products-list {
    background: #F2E9E2;
    padding: 6rem 2rem;
}


.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}


/* RESPONSIVE nos produits page  */

@media (max-width: 1024px) {

  /* HERO */
  .products-hero__text {
    padding: 3rem 3rem;
    padding-left: 1rem; 
  }

  .products-hero__text-inner {
    max-width: 100%;
  }

  /* GRILLE PRODUITS */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  /* HERO */
  .products-hero {
    flex-direction: column;
  }

  .products-hero__text {
    padding: 1.5rem 1rem;
  }

  .products-hero__image {
    height: 260px;
  }

  .products-hero__image img {
    height: 100%;
    object-fit: cover;
  }

  /* PRODUITS */
  .products-list {
    padding: 4rem 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}



/* PAGE PRODUIT 6 Produits */

.product-page {
  background: #F2E9E2;
}

.product-page__inner {
  max-width: 1200px;      
  margin: 0 auto;
  padding-left: 2rem;    
  padding-right: 6rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  
}

.product-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #C89B7B;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin-bottom: 2rem;
}

/* Layout 2 colonnes */
.product-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 5rem;
  align-items: start;
}

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

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

.product-price {
  font-family: 'Open Sans', sans-serif;
  color: #615C3F;
  margin-bottom: 1.5rem;
}

/* Quantité */
.product-qty {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-qty button {
  width: 32px;
  height: 32px;
}

/* Description */
.product-description {
  margin-top: 2rem;
  max-width: 520px;
}

/* PAGE PRODUIT — RESPONSIVE */
@media (max-width: 1024px) {

  .product-page__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .product-layout {
    grid-template-columns: 380px 1fr;
    gap: 3rem;
  }

  .product-description {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  .product-page__inner {
    padding: 2rem 1.5rem;
  }

  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* Bouton retour */
  .product-back {
    position: relative;
    margin-bottom: 1rem;
    align-self: flex-start;
  }

  /* Image */
  .product-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  /* Contenu */
  .product-info {
    text-align: left;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .product-price {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  /* Quantité */
  .product-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  /* Bouton panier */
  .btn {
    width: 100%;
    text-align: center;
  }

}

/*PAGE PANIER*/

.cart-page {
  background: #F2E9E2;
  padding: 6rem 0 8rem;
}
.cart-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cart-back {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #CC9D82;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 32px;
}

.cart-title {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.cart-subtitle {
  margin-bottom: 48px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.cart-summary {
  background: #FFFBF6;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.cart-summary h2 {
  margin-bottom: 2rem;
  font-family: 'Merriweather', serif;
}

.cart-summary__line,
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-summary__total {
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

/* responsive page panier*/ 
@media (max-width: 1024px) {

  .cart-page {
    padding: 4rem 2rem 6rem;
  }

  .cart-layout {
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
  }

  .cart-item {
    gap: 1.5rem;
  }

  .cart-item img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    margin-top: 3rem;
  }
  
  .cart-title {
    font-size: 1.6rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .cart-summary {
    padding: 2rem;
  }

}


 /*PAGE PAIEMENT*/

.payment-page {
  background-color: #F2E9E2;
  padding: 80px 0 120px;
}

.payment-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr 360px;
  gap: 64px;
  align-items: start;
}

/* FORMULAIRE */
.payment-form {
  display: flex;
  flex-direction: column;
}

.payment-title{
 font-family: 'Merriweather', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

/* PRODUIT AU CENTRE */
.payment-product {
  text-align: center;
}

.payment-product img {
  max-width: 260px;
  margin-bottom: 16px;
}

/* APERCU */
.payment-summary {
  background: #FFFBF6;
  border-radius: 12px;
  position: sticky;
  top: 120px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

  .payment-page {
    padding: 1rem 1rem 6rem;
  }

  .payment-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .payment-product img {
    max-width: 220px;
  }

  .payment-summary {
    position: static;
  }
}

@media (max-width: 768px) {

  .payment-title {
    font-size: 1.6rem;
  }

  .payment-form {
    gap: 1rem;
  }

  .payment-product img {
    max-width: 180px;
    margin: 0 auto 1rem;
  }

  .payment-summary {
    padding: 2rem;
  }
}


/* PAGE CONFIRMATION*/

.confirmation-page {
  background: #FFFBF6;
}

.confirmation-hero {
  padding: 140px 0 160px; /* ESPACE HAUT + BAS */
}

.confirmation-content {
  max-width: 720px;
}


/* PAGE ACTIVITÉS */

.activities-page {
  background: #FFFBF6;
  
}

/* Intro */
.activities-intro {
  background: #FFFBF6;
}

.activities-intro__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  
}

/* Colonne texte */
.activities-intro__content {
  padding: 60px 80px;
  padding-left: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Colonne image */
.activities-intro__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

/* Liste activités */
.activities-list {
  background: #F2E9E2;
  padding: 90px 0 120px;
}

/* Grille */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px 96px;
}

/* Responsive */
@media (max-width: 1100px) {
  .activities-intro__grid {
    grid-template-columns: 1fr;
  }

  .activities-intro__content {
    padding: 72px 24px;
  }

  .activities-intro__image {
    height: 420px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* PAGE 1 ACTIVITÉ */
.activity-page {
  background: #F2E9E2;
}

/* HERO */
.activity-hero {
  padding: 80px 0 40px;
}

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

/* CONTENU */
.activity-content {
  padding: 80px 0 120px;
}

/* BLOCS */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  margin-bottom: 120px;
}

/* Alternance */
.activity-block.reverse {
  direction: rtl;
}
.activity-block.reverse > * {
  direction: ltr;
}

/* IMAGE */
.activity-block__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .activity-block {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 80px;
  }

  .activity-content {
    padding: 64px 0 96px;
  }
}
