@charset "utf-8";
/* CSS Document */

/* =========================================================
   STYLE GENERAL 
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #eef1e8;
    color: #333;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

.site {
    max-width: 1200px;
    margin: 25px auto;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,.18);
}


/* =========================================================
   MENU
   ========================================================= */

.topbar {
    background: #315b36;
    padding: 0;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
}

.menu a:hover,
.menu a.active {
    background: #b28a35;
    color: #fff;
}


/* =========================================================
   EN-TETE — même style que PALMARES
   ========================================================= */
.hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background: #315b36;
}



.hero-content {
    position: relative;
    z-index: 2;

    max-width: 600px;
    padding: 50px;
    color: #fff;
}

.hero-small {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: 46px;
    line-height: 1.1;
}

.hero p {
    margin: 5px 0;
    font-size: 20px;
}

.hero .identifiant {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero .distinction {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}


/* =========================================================
   CONTENU
   ========================================================= */

.contenu {
    padding: 40px 50px 50px;
}

.intro {
    max-width: 900px;
    margin: 0 auto 35px;
    text-align: center;
}

.intro h2 {
    margin: 0 0 15px;
    color: #315b36;
    font-size: 30px;
}

.intro p {
    margin: 8px 0;
    font-size: 17px;
}


/* =========================================================
   BLOCS
   ========================================================= */

.section {
    margin: 35px 0;
}

.section h2 {
    margin: 0 0 20px;
    padding: 12px 18px;
    background: #315b36;
    color: #fff;
    font-size: 24px;
    font-weight: normal;
}

.section h3 {
    color: #315b36;
    margin-top: 25px;
}


/* =========================================================
   INFORMATIONS / POIDS
   ========================================================= */

.informations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.info {
    padding: 20px;
    background: #eef1e8;
    border-left: 5px solid #315b36;
    text-align: center;
}

.info strong {
    display: block;
    color: #315b36;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
}

.info span {
    display: block;
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}


/* =========================================================
   TABLEAU DE GENEALOGIE
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
}

.pedigree {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.pedigree col {
    width: 16.666666%;
}

.pedigree td {
    border: 1px solid #fff;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.3;
}

.pedigree a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.pedigree a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Partie mâle — vert
   --------------------------------------------------------- */

.pedigree-male td {
    background: #e8f3d8;
}

.pedigree-male .origine {
    background: #669900;
    color: #fff;
    font-weight: bold;
}

.pedigree-male .niveau-1 {
    background: #cfe5a8;
}

.pedigree-male .niveau-2 {
    background: #deefc3;
}


/* ---------------------------------------------------------
   Partie femelle — orange
   --------------------------------------------------------- */

.pedigree-female td {
    background: #fff0d2;
}

.pedigree-female .origine {
    background: #e58a00;
    color: #fff;
    font-weight: bold;
}

.pedigree-female .niveau-1 {
    background: #ffd99b;
}

.pedigree-female .niveau-2 {
    background: #ffe6bd;
}


/* ---------------------------------------------------------
   Titres Père / Mère
   --------------------------------------------------------- */

.pedigree .titre-male {
    background: #315b36;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    padding: 12px;
}

.pedigree .titre-female {
    background: #b56f00;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    padding: 12px;
}



/* =====================================================
   TABLEAU DE POINTAGE
   ===================================================== */

.pointage {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pointage th {
    padding: 12px 10px;
    background: #315b36;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: left;
}

.pointage td {
    padding: 9px 10px;
    border-bottom: 1px solid #ddd;
    background: #ffffff;
}

/* Alternance des lignes */
.pointage tbody tr:nth-child(even) td {
    background: #f1f4ed;
}

/* Lignes mises en évidence en vert */
.pointage tbody tr.ligne-verte td {
    background: #66CC66;
    color: #000;
    font-weight: bold;
}

/* Alignement des colonnes */
.pointage td:nth-child(2),
.pointage td:nth-child(3) {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.pointage td:nth-child(3) {
    color: #315b36;
}

/* Conserver le texte noir sur les lignes vertes */
.pointage tr.ligne-verte td:nth-child(3) {
    color: #000;
}

/* =====================================================
   INDEX IBOVAL 2026
   ===================================================== */

.iboval {
  margin: 25px 0;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #dfe6dc;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(30, 50, 30, 0.05);
}

.iboval h2 {
	margin: 0 0 12px;
	padding-bottom: 12px;
	color: #FFFFFF;
	border-bottom: 2px solid #e5ecdf;
}

.section-intro {
  margin-bottom: 20px;
  color: #667166;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.table-iboval {
	width: 100%;
	min-width: 650px;
	border-collapse: collapse;
	font-family: Arial, sans-serif;
	font-size: 14px;
	text-align: center;
	color: #315B36;
}

.table-iboval th,
.table-iboval td {
  padding: 13px 10px;
  border: 1px solid #dfe6dc;
  text-align: center;
  vertical-align: middle;
}

.table-iboval thead th {
  background: #315b36;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  border-color: #315b36;
}

.table-iboval thead th:first-child {
  background: #b28a35;
  border-color: #b28a35;
}

.table-iboval tbody th {
  background: #edf2e9;
  color: #315b36;
  font-weight: 700;
}

.table-iboval tbody td {
  background: #ffffff;
  color: #667166;
}

.table-iboval tbody tr:hover td {
	background: #f3f6ef;
	color: #315B36;
}

.table-iboval .valeur-disponible {
  background: #f5edda;
  color: #315b36;
  font-size: 17px;
  font-weight: 700;
}

.note-iboval {
  margin: 14px 0 0;
  color: #667166;
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 600px) {
  .iboval {
    padding: 18px 12px;
  }

  .table-iboval th,
  .table-iboval td {
    padding: 10px 8px;
    font-size: 12px;
  }
}


/* =====================================================
   SCORES GÉNOMIQUES EVALIM
   ===================================================== */

.evalim {
  margin: 25px 0;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #dfe6dc;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(30, 50, 30, 0.05);
}

.evalim h2 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: #ffffff;
  border-bottom: 2px solid #e5ecdf;
}

.evalim .table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.evalim .table-evalim {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  text-align: center;
}

.evalim .table-evalim th,
.evalim .table-evalim td {
  width: 12.5%;
  padding: 14px 8px;
  border-right: 1px solid #dfe6dc;
  border-bottom: 1px solid #dfe6dc;
  text-align: center;
}

/* En-tête vert */
.evalim .table-evalim thead th {
  background: #315b36;
  color: #ffffff;
  font-weight: 700;
  border-top: 1px solid #315b36;
}

/* Première bordure à gauche */
.evalim .table-evalim th:first-child,
.evalim .table-evalim td:first-child {
  border-left: 1px solid #dfe6dc;
}

/* Arrondi des deux coins supérieurs */
.evalim .table-evalim thead th:first-child {
  border-top-left-radius: 8px;
  border-left-color: #315b36;
}

.evalim .table-evalim thead th:last-child {
  border-top-right-radius: 8px;
  border-right-color: #315b36;
}

/* Cellules de résultats */
.evalim .table-evalim tbody td {
  background: #f3f6ef;
  color: #315b36;
  font-size: 17px;
  font-weight: 700;
}

/* Mise en valeur de certaines colonnes */
.evalim .table-evalim tbody td:nth-child(4),
.evalim .table-evalim tbody td:nth-child(6) {
  background: #f5edda;
  color: #765b20;
}

/* Arrondi des deux coins inférieurs */
.evalim .table-evalim tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.evalim .table-evalim tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* Affichage sur téléphone */
@media (max-width: 600px) {
  .evalim {
    padding: 18px 12px;
  }

  .evalim .table-evalim {
    min-width: 440px;
    font-size: 13px;
  }

  .evalim .table-evalim th,
  .evalim .table-evalim td {
    padding: 11px 6px;
  }
}

/* =========================================================
   RETOUR
   ========================================================= */

.retour {
    margin: 40px 0 10px;
    text-align: center;
}

.retour a {
    display: inline-block;
    padding: 10px 18px;
    background: #315b36;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.retour a:hover {
    background: #b28a35;
}


/* =========================================================
   PIED DE PAGE — même style que PALMARES
   ========================================================= */

footer {
    padding: 30px 20px;
    background: #263d29;
    color: #fff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .site {
        margin: 0;
        width: 100%;
    }

    .menu {
        display: block;
    }

    .menu a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .hero {
        min-height: 430px;
        background-position: 60% center;
    }

    .hero-content {
        padding: 35px 25px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .contenu {
        padding: 30px 20px;
    }

    .informations {
        grid-template-columns: 1fr;
    }

    .intro h2 {
        font-size: 26px;
    }

    .pointage {
        font-size: 13px;
    }

}
/* =========================================================
   PAGE DES REPRODUCTEURS MÂLES
   ========================================================= */

.taureaux-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 35px;
    font-size: 17px;
}

.taureaux-intro p {
    margin: 12px 0;
}

.taureaux-intro strong {
    color: #315b36;
}

.taureaux-groupe {
    margin: 35px 0 45px;
}

.taureaux-groupe h2 {
    padding: 13px 18px;
    background: #315b36;
    color: #fff;
    font-size: 24px;
    font-weight: normal;
    border-left: 6px solid #b28a35;
}

.taureaux-groupe .description-groupe {
    margin: 15px 0 22px;
    color: #555;
}

.taureaux-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.taureau-carte {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6dc;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(30, 50, 30, .08);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.taureau-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(30, 50, 30, .15);
}

.taureau-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 175px;
    padding: 10px;
    background: #f3f5ef;
}

.taureau-photo img {
    display: block;
    max-width: 100%;
    max-height: 155px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.taureau-nom {
    display: block;
    padding: 14px 8px 16px;
    color: #315b36;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.taureau-nom:hover {
    background: #eef1e8;
    color: #8a6825;
    text-decoration: underline;
}

.taureau-nom small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.taureau-sans-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 175px;
    padding: 15px;
    background: #eef1e8;
    color: #315b36;
    font-size: 38px;
}

@media (max-width: 900px) {
    .taureaux-grille {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .taureaux-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .taureau-photo,
    .taureau-sans-photo {
        height: 135px;
    }

    .taureau-photo img {
        max-height: 120px;
    }

    .taureau-nom {
        padding: 11px 5px;
        font-size: 15px;
    }

    .taureaux-groupe h2 {
        font-size: 20px;
    }
}