/* Fiche modele V3 - feuille dediee, chargee uniquement par detail-v5.asp */

.content {
  max-width: 1180px;
  margin: 0 auto;
}

.c-model {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid #e2e8ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(34, 52, 66, .07);
  color: #303a42;
  overflow: hidden;
}

.c-model:first-of-type {
  border-top: 4px solid #42a4e8;
}

.c-model h2 {
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 12px;
  color: #27343e;
  font-size: 22px;
  line-height: 1.25;
}

.c-model h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #42a4e8;
}

.c-model small {
  display: block;
  margin-top: 8px;
  color: #77838c;
}

/* Entete du profil */
.c-infos {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.c-infos td {
  box-sizing: border-box;
  padding: 0 22px 0 0;
  vertical-align: top;
}

.c-infos td:first-child {
  width: 250px;
}

.c-infos td:nth-child(2) {
  width: auto;
}

.c-infos td:last-child {
  width: 235px;
  padding: 0;
  text-align: right;
}

.c-infos td:first-child > a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #edf2f5;
}

.c-infos td:first-child img {
  display: block;
  width: 100%;
  height: 300px;
  margin: 0;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.c-infos td:first-child a:hover img {
  opacity: .94;
  transform: scale(1.015);
}

.c-infos ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4c5962;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.c-infos li {
  padding: 8px 0;
  border-bottom: 1px solid #edf0f2;
}

.c-infos li:first-child {
  padding-top: 0;
  color: #25333d;
  font-size: 18px;
}

.c-infos li:last-child {
  border-bottom: 0;
}

.c-infos label {
  color: #27343e;
  font-weight: 700;
}

.c-infos .bouton-rose,
.c-infos .bouton-gris,
.c-model > .bouton-rose {
  box-sizing: border-box;
  min-width: 210px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.c-infos .bouton-rose,
.c-model > .bouton-rose {
  background: #42a4e8;
  box-shadow: 0 5px 14px rgba(66, 164, 232, .22);
}

.c-infos .bouton-gris {
  background: #35414a;
}

.c-infos .bouton-rose:hover,
.c-infos .bouton-gris:hover,
.c-model > .bouton-rose:hover {
  transform: translateY(-1px);
}

/* Portfolio : Fancybox reste geree par les liens existants */
.c-portfolio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.c-portfolio li {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.c-portfolio a {
  display: block;
  overflow: hidden;
  height: 245px;
  border-radius: 10px;
  background: #edf2f5;
}

.c-portfolio li img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.c-portfolio a:hover {
  opacity: 1;
}

.c-portfolio a:hover img {
  opacity: .93;
  transform: scale(1.025);
}

/* Tableaux d'informations transformes en cartes lisibles */
.tab-model {
  width: 100%;
  margin: 18px 0 30px;
  border: 1px solid #e5eaee;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  overflow: hidden;
}

.tab-model:last-of-type {
  margin-bottom: 24px;
}

.tab-model td {
  box-sizing: border-box;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e8edf0;
  background: #fff;
  line-height: 1.45;
  vertical-align: top;
}

.tab-model tr:last-child td {
  border-bottom: 0;
}

.tab-model td:first-child {
  width: 34%;
  border-right: 1px solid #e8edf0;
  background: #f6f8f9;
  color: #34424c;
  font-weight: 700;
}

.tab-model td:last-child {
  width: 66%;
  color: #4c5962;
}

.c-model > .bouton-rose {
  display: table;
  margin: 4px auto 0;
}

@media screen and (max-width: 900px) {
  .c-infos td:first-child {
    width: 210px;
  }

  .c-infos td:last-child {
    display: table-row;
    width: auto;
  }

  .c-infos td:last-child a {
    margin-top: 18px;
  }

  .c-portfolio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .c-model {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .c-model h2 {
    font-size: 20px;
  }

  .c-infos,
  .c-infos tbody,
  .c-infos tr,
  .c-infos td {
    display: block;
    width: 100% !important;
  }

  .c-infos td {
    padding: 0;
  }

  .c-infos td:first-child {
    max-width: 330px;
    margin: 0 auto 20px;
  }

  .c-infos td:first-child img {
    height: auto;
    max-height: 430px;
    object-fit: contain;
  }

  .c-infos td:nth-child(2) {
    margin-bottom: 16px;
  }

  .c-infos td:last-child {
    text-align: center;
  }

  .c-infos td:last-child a,
  .c-infos .bouton-rose,
  .c-infos .bouton-gris,
  .c-model > .bouton-rose {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .c-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .c-portfolio a {
    height: 210px;
  }

  .tab-model,
  .tab-model tbody,
  .tab-model tr,
  .tab-model td {
    display: block;
    width: 100% !important;
  }

  .tab-model {
    border-radius: 9px;
  }

  .tab-model tr {
    border-bottom: 1px solid #e3e8eb;
  }

  .tab-model tr:last-child {
    border-bottom: 0;
  }

  .tab-model td {
    border: 0;
  }

  .tab-model td:first-child {
    padding-bottom: 5px;
    border: 0;
    background: #f6f8f9;
  }

  .tab-model td:last-child {
    padding-top: 6px;
  }
}

@media screen and (max-width: 420px) {
  .c-portfolio a {
    height: 175px;
  }
}

/* Blocs de recherche : meme regle que sur les listes et l'accueil. */
.recherche-M p,
.menu-recherche {
  border-radius: 8px !important;
  overflow: hidden;
  background-clip: padding-box;
}
