#about {
    margin-top: 0!important;
}

.hero-apropos {
  background-color: #fadc9f;
  padding: 30px 20px;
  text-align: center;
  overflow: hidden;
}

/* Texte */
.hero-text {
  flex: 1 1 300px;
  max-width: 600px;
  margin: 10px;
}

/* Image */
.hero-img {
  flex: 1 1 200px;
  max-width: 300px;
  margin: 10px;
  object-fit: contain;
}

/* === Bouton hero personnalisé === */
.hero-apropos .btn.scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;

    color: #fadc9f;             /* rappel du fond du hero */
    background-color: #5f7f6e;  /* vert sauge doux */
    border: 2px solid #4f6f5e;  /* léger contour pour effet premium */
    border-radius: 50px;        /* forme pilule / arrondie */
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-apropos .btn.scroll-btn:hover {
    background-color: #4f6f5e;
    border-color: #3f5f4e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hero-apropos .btn.scroll-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Optionnel : icône flèche douce à droite si tu veux */
.hero-apropos .btn.scroll-btn::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hero-apropos .btn.scroll-btn:hover::after {
    transform: translateX(5px);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .hero-apropos .btn.scroll-btn {
        width: 100%;
        max-width: 250px;
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .hero-apropos {
    flex-direction: column;
    }

    .hero-img {
        max-width: 80%;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text .btn {
        width: 100%;
        max-width: 250px;
    }
}


/**************************** SECTION CONSEILS ************************/
/* === Section conseils-about === */
.conseils-about {
    background-color: #e6f0e8; /* fond contrasté */
    padding: 80px 20px 60px 20px;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0% 100%); /* découpe en vague simple */
    position: relative;
    overflow: hidden;
}

/* Découpe incurvée pour transition hero -> section */
.conseils-about::before {
    content: "";
    display: block;
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fadc9f; /* même couleur que le hero */
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
}

/* Container custom */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Titre */
.conseils-about h2 {
    font-size: 2rem;
    color: #5f7f6e; /* vert sauge, même logique que bouton hero */
    margin-bottom: 50px;
}

/* Grid */
.presentation-grid-about {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* === Cartes conseils-about === */
.conseils-card-about {
    background: linear-gradient(145deg, #ffffff 0%, #f7f7f7 100%); /* léger dégradé */
    border-radius: 25px;
    padding: 30px 20px;
    flex: 1 1 280px;
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Image */
.conseils-card-about img {
    width: 80px;
    margin-bottom: 20px;
    transition: transform 0.35s ease;
}

/* Titres et paragraphes */
.conseils-card-about h3 {
    font-size: 1.25rem;
    color: #4f6f5e;
    margin-bottom: 15px;
}

.conseils-card-about p {
    font-size: 0.95rem;
    color: #333;
}

/* Effets au survol */
.conseils-card-about:hover {
    transform: translateY(-12px) rotate(-1deg) scale(1.03);
    box-shadow: 0 16px 35px rgba(0,0,0,0.18);
    background: linear-gradient(145deg, #f7f7f7 0%, #ffffff 100%);
}

.conseils-card-about:hover img {
    transform: translateY(-5px) scale(1.05) rotate(-2deg);
}

/* Ajout d'un pseudo-élément décoratif sur la carte pour l'effet “wahou” */
.conseils-card-about::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    background-color: rgba(95, 127, 110, 0.1); /* arrondi doux */
    transition: transform 0.35s ease;
    z-index: 1;
}

/* Assignation des icônes par carte via classes */
.conseils-card-about.suivi::after {
    background-image: url('../img/a_propos/logo_veto.png');
}
.conseils-card-about.environnement::after {
    background-image: url('../img/a_propos/logo_env_about.png');
}
.conseils-card-about.socialisation::after {
    background-image: url('../img/a_propos/logo_social_about.jpg');
}

.conseils-card-about:hover::after {
    transform: translate(10px, 10px) scale(1.2);
}

/* === Responsive mobile === */
@media (max-width: 768px) {
    .presentation-grid-about {
        flex-direction: column;
        gap: 20px;
    }

    .conseils-card-about {
        max-width: 90%;
        padding: 25px 15px;
    }
}


/* === Section Élevage narrative === */
/* === Section Élevage narrative chaleureuse === */
.elevage-about {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f9f7f2, #eef4ed); /* gradient doux + chaleur */
}

.elevage-about h2 {
    text-align: center;
    color: #3d533d;
    margin-bottom: 3rem;
    font-weight: bold;
}

/* Story flex inchangé */
.elevage-story {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Portrait circulaire avec halo dynamique */
.elevage-img-wrapper {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.elevage-img-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63,83,63,0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.elevage-img-wrapper:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.elevage-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.elevage-img-wrapper:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* Texte narratif */
.elevage-text {
    flex: 1 1 400px;
    max-width: 600px;
}

.elevage-text h3 {
    font-size: 1.5rem;
    color: #2f4f2f;
    margin-bottom: 1rem;
}

.elevage-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.elevage-text p span.highlight {
    position: relative;
    cursor: default;
    transition: color 0.35s ease, transform 0.35s ease;
}

.elevage-text p span.highlight:hover {
    color: #6b8c6b; /* rappel vert hero */
    transform: translateY(-2px) scale(1.02);
}

/* === Bouton original pour section élevage === */
.elevage-text .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #dfeadf, #f2f7f2); /* dégradé doux */
    color: #2f4f2f; /* texte vert doux */
    border: none;
    border-radius: 50px 15px 50px 15px; /* forme originale */
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Effet “petit rebond” au hover + glow */
.elevage-text .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(63,83,63,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}

.elevage-text .btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.elevage-text .btn:hover {
    transform: translateY(-3px) scale(1.08) rotate(-1deg); /* micro mouvement fun */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #cfe7cf, #eef4ed); /* léger changement au hover */
}

/* Optionnel : micro-animation de texte */
.elevage-text .btn span {
    display: inline-block;
    transition: transform 0.35s ease;
}

.elevage-text .btn:hover span {
    transform: translateY(-2px) rotate(-2deg);
}


/* Responsive mobile inchangé */
@media (max-width: 768px) {
    .elevage-story {
        flex-direction: column;
        text-align: center;
    }

    .elevage-img-wrapper {
        margin-bottom: 1.5rem;
    }
}


/* === Galerie About === */
.gallery-grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-card-about img {
  width: 100%;        /* remplit la largeur de sa card */
  height: 200px;      /* hauteur fixe pour toutes les images */
  object-fit: cover;  /* garde le ratio et coupe si nécessaire */
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-card-about img:hover {
  transform: scale(1.05);
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
}

.lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.lightbox-text p {
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Responsive */
@media (max-width: 600px) {
  .lightbox-text h3 {
    font-size: 1.2rem;
  }
  .lightbox-text p {
    font-size: 0.9rem;
  }
}

.gallery-cta {
  margin-top: 48px;
  text-align: center;
}

.btn-gallery {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: #4f6f52;
  background: transparent;

  border: 2px solid rgba(79, 111, 82, 0.45);
  border-radius: 999px;

  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover élégant */
.btn-gallery:hover {
  color: #2f4634;
  border-color: #4f6f52;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 111, 82, 0.15);
}

/* Petit effet "halo" très léger */
.btn-gallery::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(79, 111, 82, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-gallery:hover::after {
  opacity: 1;
}

/* =========================================================
   SECTION AVIS — STRUCTURE GLOBALE
   ========================================================= */

/* === Section Avis globale === */
.avis-about {
    padding: 60px 0;
    background: #f9f9f9;
    color: #2b2b2b;
}

.avis-about h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
    color: #3d533d;
}

/* === Sous-sections === */
.avis-section {
    margin-bottom: 60px;
}

.avis-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #4f6f52;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   FORMULAIRE D’AVIS
   ========================================================= */

.avis-form-section .avis-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avis-form input,
.avis-form textarea,
.avis-form select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.avis-form button {
    padding: 12px 20px;
    background-color: #3d533d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.avis-form button:hover {
    background-color: #2f4f2f;
}

/* =========================================================
   NOTATION (PATTE FORMULAIRE)
   ========================================================= */

.notation {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.notation .patte-note {
    cursor: pointer;
}

.notation .patte-note svg ellipse,
.notation .patte-note svg path {
    stroke: #000;
    stroke-width: 2;
    pointer-events: all;
}

/* =========================================================
   MUR DES AVIS — GRILLE
   ========================================================= */

.avis-pattes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

/* =========================================================
   PATTE AVIS — ÉTAT NORMAL & HOVER
   ========================================================= */

.avis-pattes-grid .patte-avis {
    cursor: default;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.avis-pattes-grid .patte-avis:hover {
    transform: scale(1.2) rotate(var(--rotation, 0deg));
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* =========================================================
   COULEURS SELON LA NOTE (DATA-ATTRIBUT)
   ========================================================= */

.avis-pattes-grid .patte-avis[data-note^="0"] svg * { fill: #ff4d4d; }
.avis-pattes-grid .patte-avis[data-note^="1"] svg * { fill: #ff4d4d; }
.avis-pattes-grid .patte-avis[data-note^="2"] svg * { fill: #ff944d; }
.avis-pattes-grid .patte-avis[data-note^="3"] svg * { fill: #ffd11a; }
.avis-pattes-grid .patte-avis[data-note^="4"] svg * { fill: #b3ff66; }
.avis-pattes-grid .patte-avis[data-note^="5"] svg * { fill: #33cc33; }

/* =========================================================
   ÉTATS AVANCÉS — FOCUS / OPEN / CENTERED
   ⚠️ NE PAS TOUCHER POUR L’INSTANT (OPACITÉ DES AUTRES)
   ========================================================= */

.avis-pattes-grid.grid-focused .patte-avis:not(.focused) {
    opacity: 0.35;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* =========================================================
   SVG — DIMENSIONS DE BASE
   ========================================================= */

.avis-pattes-grid .patte-avis svg {
    width: 100%;
    height: auto;
}

.patte-icon ellipse,
.patte-icon path {
    fill: #3d533d;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =========================================================
   TEXTE SVG — COMPORTEMENT SAIN
   ========================================================= */

.patte-info text,
.patte-info tspan {
    text-anchor: middle;
    dominant-baseline: middle;
    font-family: inherit;
    font-size: 1.2px;

    user-select: none;
}

/* =========================================================
   MUR DES AVIS — OPACITÉ STABLE
   ========================================================= */

.avis-pattes-grid.grid-focused .patte-avis:not(.focused) {
    opacity: 0.35;
    filter: blur(2px);
    pointer-events: none;
}

/* =========================================================
   FOCUS / ZOOM SUR PATTE - SOLUTION SIMPLE ET FONCTIONNELLE
   ========================================================= */

/* Overlay */
.avis-pattes-grid.grid-focused::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 49;
    opacity: 1;
    pointer-events: all;
}

/* Patte focus */
.patte-avis.focused {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%) scale(2.5) rotate(0deg) !important;
    z-index: 100;
    opacity: 1 !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* SVG focus */
.patte-avis.focused svg {
    width: 70vmin !important;
    height: 70vmin !important;
    max-width: 600px;
    max-height: 600px;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.1));
}

/* Afficher les infos */
.patte-info {
    opacity: 0;
    pointer-events: none;
}

.patte-avis.focused .patte-info {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.3s ease 0.1s;
}

/* Style de base pour tous les textes */
.patte-avis.focused .patte-info text {
    fill: #2b2b2b !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

/* Taille des textes */
.patte-avis.focused .info-auteur {
    font-size: 1.8px !important;
    font-weight: 500;
}

.patte-avis.focused .info-date,
.patte-avis.focused .info-note {
    font-size: 1.6px !important;
}

.patte-avis.focused .info-back {
    font-size: 1.8px !important;
    font-weight: 500;
}

/* Container wrapper pour le message */
.message-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Container scrollable pour les longs messages */
.message-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  color: #2b2b2b !important;
  font-size: 1.3px;
  text-align: center;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 1px 2px;
  word-wrap: break-word;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 43, 43, 0.3) transparent;
}

/* Scrollbar pour Webkit (Chrome, Safari, Edge) */
.message-scroll-container::-webkit-scrollbar {
  width: 0.3px;
}

.message-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.message-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(43, 43, 43, 0.3);
  border-radius: 2px;
}

.message-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 43, 43, 0.5);
}
/* Hover coussinet droit */
.patte-avis.focused .pad-right {
    cursor: pointer;
}

.patte-avis.focused .pad-right:hover {
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

/* Flou sur les autres pattes */
.avis-pattes-grid.grid-focused .patte-avis:not(.focused) {
    opacity: 0.1;
    filter: blur(6px);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .patte-avis.focused {
        transform: translate(-50%, -75%) scale(2) rotate(0deg) !important;
    }
}

@media (max-width: 480px) {
    .patte-avis.focused {
        transform: translate(-50%, -70%) scale(1.6) rotate(0deg) !important;
    }
}

