a{
  text-decoration: none;
  color:#8484ff;
}
.ordre a:hover, .famille a:hover, #box_ia1:hover, #box_ia2:hover, a:hover{
  color:#ffa633;
}
.ordre a, .famille a, .fiche{
  text-decoration: none;
  color:#838cc0;
  background: no-repeat right center/14px url(https://www.oiseaux.net/images/externe.png) ;
  padding: 0 17px 0 0;
}
.ordre a, .famille a{
  font-size:1.2em;
}
div h1, div h2{
  text-align: center;
  margin:auto;
}
header {
 display:flex;
 flex-direction:row;
 justify-content:center;
 align-items:center;
 height:32px
}
body {
  padding-top: 32px;
}
header .nav {
  top:0;
  left:auto;
  max-width: 63em;
  width:100%;
}
.on_centre {
  top:0;
}
.menu {
  width:100%;
}
.on_pieddepage {
  top: 0;
}
.contenu{
  min-width: 300px;
  width: 90%;
  margin:auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: normal;
}

.resultats{
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
  width: 100%;
  font-size:1.1em;
  color: #000;
}
.resultats h1, .resultats h2{
  margin: 0;
  padding: 0;
  font-size:1.3em;
  color: #000;
}
.resultats h1{
  width: 100%;
  margin: 0 0 10px 0;
  font-size:1.6em;
  color: #000;
  text-align:center;
}
.titre-esp{
  width: 100%;
  background-color:#eeecec;
  font-size:1.1em;
  text-align: center;
  padding: 3px 0;
}
.photo-img{
  margin: 5px 0 15px 0;
  margin-right:10px;
  min-height:150px;
  float:left;
}
.titre-ia{
  text-align: left;
  margin: 25px 0 15px 0;
}
.titre-ia p:first-child{
  font-weight:700;
  font-size:1.4em;
  color: #707070;
  background-color:#dbdbdb;
  padding: 2px 0 2px 15px;
}
.texte-ia{
  font-size:1.1em;
  padding: 2px 0 10px 0;
}
#box_ia1, #box_ia2{
  font-size:.7em;
  font-style:italic;
  cursor:pointer;
  color:#545e95;
}
.titre-ia span:last-child{
  width: 100%;
  padding: 2px 0 2px 15px;
}

.titre-ia span:nth-child(2){
  font-size:1.1em;
  padding: 2px 0 2px 15px;
}
.gen-spe{
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #111;
}
.flex-col{
  display: flex;
  flex-direction: column;
  justify-content:center;
   align-content: stretch;
  width: 100%;
  min-height:30px;
}

.flex-row, .genre{
  display: flex;
  justify-content: space-between;
}
.genre{
  border-left: 1px solid #919191;
}
.flex-row{
  border-bottom: 1px solid #bebebe;
}
.flex-row div:nth-child(2){
  padding-left:10px;
  border-left: 1px solid #919191;
}
.genres{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-height:30px;
}
.flex-row, .flex-row div:nth-child(2), .genres, .especes, .genre, .species{
  width: 100%;
}
.genre{
  border-bottom: 1px solid #bebebe;
}
.genre:last-child{
  border-bottom: 0 none;
}
.genus{
  min-width: 170px;
  width: 170px;
  padding-left:10px;
}
.col1, .pour100{
  width:80px;
  min-width: 80px;
  text-align:center;
  margin: auto; /* Important */
}
.pour100{
  width:110px;
  min-width: 110px;
  max-width: 110px;
  font-weight:700;
  font-size:1.1em
}
.fam-img{
  align-items: center;
  align-content: center;
  text-align: center;
  margin: auto; /* Important */
  border-left: 1px solid #919191;
  min-width: 110px;
  max-width: 110px;
}
.fam-img img{
  width: 90px;
  opacity: .3;
  vertical-align: bottom;
}

/* ************ espèces ************ */
.especes{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  align-content: normal;
  margin: 10px 0 30px 0;
}
.espece{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 250px;
  max-width: 250px;
  width: 250px;
  min-height: 390px;
  max-height: 390px;
  height: 390px;
  margin-top: 10px;
  padding:0 10px 10px 10px;
  background-color:#f4f4f4;
  border: 1px solid #919191;
  text-align: center;
}
.especes .espece:nth-child(odd){
  background-color:#fff;
}
.pour100esp{
  width: 100%;
  min-height: 30px;
  max-height: 30px;
  font-weight: 700;
  font-size: 1.3em;
  text-align: center;
  margin-left: -10px;
  padding-right: 20px;
  background-color:#e5e5e5;
}
.species{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.esp{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto; /* Important */
  text-align:center;
  font-size:1.4em;
  color:#838cc0;
  font-weight:900;
  max-height: 54px;
}
.esp a{
  line-height: 1em;
}
.latin, .anglais{
  font-size:1.1em;
  margin-left:15px;
}
.latin{
  font-style: italic;
}
.spec-img{
  align-items: center;
  align-content: center;
  text-align: center;
  min-width: 250px;
  max-width: 250px;
  min-height: 250px;
  max-height: 250px;
}
.spec-img img{
  vertical-align: bottom;
  width: 250px;
}
.accueil_id{
  position: absolute;
  top:0;
  left:0;
  margin: 20px 30px 20px 30px;
}
.accueil_id a, .accueil_id a:hover {
  font-size: 1.4em;
  margin: 0 20px 0 20px;
  padding: 0 7px 1px 7px;
  border: 1px dashed #009578;
  border-radius: 10px;
  background-color: #f7f7f7;
  color: #7477a3;
}
.accueil_id a:hover{
  border: 1px dashed #000;
  background-color: #fff;
  color: orange;
}
.message, .erreur{
  display: block;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
  margin:5px;
}
.message{
  margin:5px;
  color:red;
}
.copyright{
  margin:20px;
  padding:20px;
  display: block;
  margin:auto;
  font-size:1em;
  text-align: center;
  font-style: italic;
}
.copyright img{
  width:80px;
  height:50px;
}
.recadre{
  position: relative;
  width: 100%;
  display: block;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}
.boutons{
  display: flex;
  width: 100%;
  margin:auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-top: 30px;
}
.validez, .annuler{
  margin-right: 15px;
  padding: 5px 15px;
  border: 1px solid #222;
  border-radius: 5px;
  font-size:1.4em;
}
.reponses{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.reponses figure {
  width:200px;
  padding: 1px 5px;
  border: 1px solid #919191;
}
.reponses figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 2px 0 0 0;
  width:200px;
  background-color: #FFF;
  border: 0 none;
  text-align: center;
  min-height:50px;
  font-size:1.2em;
}
.reponses figure div {
  align-items: center;
  justify-content: space-around;
  width:200px;
}
.reponses figure img {
  border: none 0;
  margin: 0;
  padding: 0;
  width:200px;
  height:200px;
}
.drop {
  max-width: 400px;
  width: 400px;
  height: 400px;
  margin: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
  color: #c3c3c3;
  border: 4px dashed #009578;
  border-radius: 10px;
  background-color: white;
}
.drop p, .drop span {
  text-align: center;
  hyphens: inherit;
  font-size: 1.2em;
}
.drop--over {
  border-style: solid;
}
.drop__input {
  display: none;
}
.drop_erreur {
  color: red;
  font-size: 1.4em;
}
.drop__thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #cccccc;
  background-size: cover;
  position: relative;
}
.drop__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}

.jcrop-handle {
  height: 16px;
  width: 16px;
}

.jcrop-handle.ord-n{left:50%;margin-left:-8px;margin-top:-8px;top:0;}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-8px;margin-left:-8px;}
.jcrop-handle.ord-e{margin-right:-8px;margin-top:-8px;right:0;top:50%;}
.jcrop-handle.ord-w{left:0;margin-left:-8px;margin-top:-8px;top:50%;}
.jcrop-handle.ord-nw{left:0;margin-left:-8px;margin-top:-8px;top:0;}
.jcrop-handle.ord-ne{margin-right:-8px;margin-top:-8px;right:0;top:0;}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-8px;margin-right:-8px;right:0;}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-8px;margin-left:-8px;}

.info_ia1, .info_ia2{
    display:none;
    position:relative;
    top:0;
    width:100%;
    padding:0;
    margin:0 auto;
    overflow:auto;
    background-color:#feffd7;
    color:#000;
    z-index:50000;
    border:1px solid #6c6c6c;
    filter:drop-shadow(2px 2px 2px #000)
}
.info_ia1 p, .info_ia2 p{
    padding:10px;
}

.info_ia1 h3, .info_ia2 h3{
    margin-left:10px;
    color:#333;
    font-size:1.2em;
}
.ferme_ia1, .ferme_ia2{
  margin:0;
  padding:0;
  width:100%;
  height:25px;
  text-align:right;
  font-weight:600;
  border-bottom:1px solid #555;
  background-color:#f1f1f1
}
.ferme_ia1 a,.ferme_ia2 a{
  margin:0;
  padding:0 7px 0 7px;
  background-color:#FFF;
  color:#000;
  font-size:16px
}
.ferme_ia1 a:hover,.ferme_ia2 a:hover{
  background-color:#CECECE;
}

/* =====================================================
   NOUVEAUX STYLES POUR V2 - FILTRAGE GÉOGRAPHIQUE
   ===================================================== */

/* Écran d'accueil - Choix géolocalisation */
.choix-geo {
	max-width: 800px;
	margin: 0 auto 40px auto;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.choix-geo h2 {
	font-size: 24px;
	color: #2c5530;
	margin-bottom: 15px;
	text-align: center;
}

.choix-geo .explication {
	font-size: 16px;
	color: #666;
	margin-bottom: 30px;
	text-align: center;
	line-height: 1.6;
}

.boutons-choix {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-choix {
	flex: 1;
	min-width: 280px;
	max-width: 350px;
	padding: 30px 20px;
	background: white;
	border: 2px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.btn-choix:hover {
	border-color: #4a7c4e;
	box-shadow: 0 4px 12px rgba(74, 124, 78, 0.2);
	transform: translateY(-2px);
}

.btn-sans-geo:hover {
	background: #f0f8f1;
}

.btn-avec-geo:hover {
	background: #e8f5e9;
}

.titre-btn {
	font-size: 20px;
	font-weight: bold;
	color: #2c5530;
	margin-bottom: 10px;
	display: block;
}

.desc-btn {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	display: block;
}

/* Sélection du pays */
.selection-pays {
	max-width: 600px;
	margin: 0 auto 40px auto;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.selection-pays h2 {
	font-size: 24px;
	color: #2c5530;
	margin-bottom: 15px;
	text-align: center;
}

.selection-pays .explication {
	font-size: 16px;
	color: #666;
	margin-bottom: 25px;
	text-align: center;
}

.select-wrapper {
	margin: 20px 0;
}

.select-wrapper select {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	border: 2px solid #ddd;
	border-radius: 8px;
	background: white;
	cursor: pointer;
	transition: border-color 0.3s;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
	border-color: #4a7c4e;
	outline: none;
}

.btn-valider {
	width: 100%;
	padding: 15px;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background: #4a7c4e;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 15px;
}

.btn-valider:hover {
	background: #3a6c3e;
}

.retour {
	margin-top: 20px;
	text-align: center;
}

.retour a {
	color: #4a7c4e;
	text-decoration: none;
	font-size: 14px;
}

.retour a:hover {
	text-decoration: underline;
}

/* Info pays affichée */
.info-pays {
	background: #e8f5e9;
	padding: 12px 20px;
	border-radius: 8px;
	text-align: center;
	font-size: 16px;
	color: #2c5530;
	margin: 15px 0;
	border-left: 4px solid #4a7c4e;
}

.info-filtrage {
	padding: 10px 0;
	text-align: left;
	font-size: 1.1em;
	color: #000;
	margin: 15px 0;
}

/* Badges de distribution */
.badge-present,
.badge-accidentel,
.badge-introduit,
.badge-rare,
.badge-absent,
.badge-inconnu {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	margin-left: 8px;
	white-space: nowrap;
}

.badge-present {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.badge-accidentel {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.badge-introduit {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.badge-rare {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.badge-absent {
	background: #f8d7da;
	color: #cc0000;
	border: 1px solid #cc0000;
}

.badge-inconnu {
	background: #e2e3e5;
	color: #6c757d;
	border: 1px solid #adb5bd;
}

/* Bloc introduction nouvelle version (page d'accueil) */
.version-intro {
	margin-bottom: 18px;
}

.badge-new {
	display: inline-block;
	background: #e8f0fe;
	color: #1a56db;
	font-weight: bold;
	font-size: 0.82em;
	padding: 3px 12px;
	border-radius: 20px;
	letter-spacing: 0.03em;
	border: 1px solid #c3d4f8;
	margin-bottom: 10px;
}

/* Localisation de la prise de vue */
.alerte-localisation {
	padding: 4px 0;
	margin: 4px 0 0 0;
	font-size: 1.1em;
	font-style: normal;
	color: #444;
}

/* Alerte espèces hors zone */
.alerte-hors-zone {
	padding: 0;
	margin: 5px 0;
	text-align: left;
	font-size: 1.25em;
	background: none;
	border: none;
}

/* Texte contextuel (localisation, phrase explicative) */
.alerte-contexte {
	color: #666;
	font-style: italic;
	font-weight: normal;
}

/* Mots-clés critiques : statut alarmant ou absence */
.alerte-critique {
	color: #cc0000;
	font-weight: bold;
	font-style: normal;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .boutons-choix {
    flex-direction: column;
    align-items: center;
  }

  .btn-choix {
    max-width: 100%;
    width: 100%;
  }

  .choix-geo,
  .selection-pays {
    padding: 5px;
    margin: 10px 0;
    width: 98%;
  }
  .selection-pays {
      text-align: center;
  }
  .selection-pays h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .select-wrapper {
      text-align: center;
  }
  .select-wrapper select {
    width: 90%;
    padding: 10px;

  }
  .btn-valider {
    width: 90%;
  }

}

@media only screen and (max-width: 640px){
body {
  padding-top: 0;
}
div h1, div h2 {
  font-size: 1.3em;
}
.recadre {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}
#ImgG_Fond {
  display: none !important;
}
#ImgG {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  left: auto !important;
  top: auto !important;
}
#cropbox {
  max-width: 100% !important;
  height: auto !important;
}
.especes,
.reponses {
  justify-content: center;
  gap: 10px;
}
.espece{
  min-height: auto;
  height: auto;
}
.copyright {
    margin: 10px;
    font-size: 0.8em;
}

.contenu{
  min-width: 93%;
  width: 93%;
}
.resultats {
  padding: 0;

  font-size: 1em;

}
.drop {
  max-width: 300px;
  width: 300px;
  height: 300px;
  margin: 5px;
  padding: 15px;
  font-size: 12px;
}
.accueil_id{
  position: absolute;
  top:0;
  left:0;
  margin: 5px 30px 20px 0px;
}
.titre-ia {
  font-size: 0.9em;
  margin: 40px 0 5px 0;
}
.texte-ia {
  font-size: 1em;
  padding: 2px 0 10px 0;
  width: 100%;
}
}



@media (max-width: 450px) {
.fam-img{
  display: none;
}

}

