/* ***********************************************************************************************************|
                                      responsive fiche projet (realisation)                                   |
**************************************************************************************************************/

@media only screen and (max-width: 5000px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 3000px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 1320px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 1200px) {

  /*********************** Récit et fiche projet *************************/
  .fp-grille {
      gap: 50px;
  }

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 1024px) {

  /*********************** Récit et fiche projet *************************/
  .fp-grille {
      grid-template-columns: minmax(0, 1fr);
  }

  .fp-texte {
      max-width: none;
      font-size: 17px;
  }

  .fp-fiche {
      position: static;
      max-width: 620px;
  }

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/
  .fp-photos,
  .fp-photos--4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: 220px;
  }

  .fp-photos--4 li:first-child {
      grid-row: auto;
      grid-column: span 2;
  }

  .fp-photos--4 li:nth-child(4) {
      grid-column: auto;
  }

  .fp-photos--1 {
      grid-template-columns: minmax(0, 1fr);
      grid-auto-rows: 380px;
  }

  /*********************** Projets similaires et navigation *************************/
  .fp-similaires {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-similaires li:nth-child(3) {
      display: none;
  }

}


@media only screen and (max-width: 900px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 768px) {

  /*********************** Récit et fiche projet *************************/
  .fp-texte {
      font-size: 16px;
  }

  .fp-bloc + .fp-bloc {
      margin-top: 36px;
  }

  .fp-titre {
      font-size: 20px;
  }

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/
  .fp-chiffres ul {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-chiffres-1 ul,
  .fp-chiffres ul.fp-chiffres-1 {
      grid-template-columns: minmax(0, 1fr);
  }

  .fp-chiffres li:nth-child(odd) {
      border-left: 0;
  }

  .fp-chiffres li:nth-child(n + 3) {
      border-top: 1px solid rgba(255, 255, 255, .28);
  }

  .fp-chiffres-3 li:last-child {
      grid-column: 1 / -1;
      border-left: 0;
  }

  .fp-chiffres li {
      padding: 15px 14px;
  }

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/
  .fp-similaires {
      margin-bottom: 36px;
  }

  .fp-nav {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-nav-tous {
      grid-column: 1 / -1;
      grid-row: 2;
      flex-direction: row;
      padding: 14px;
  }

}


@media only screen and (max-width: 600px) {

  /*********************** Récit et fiche projet *************************/
  .fp-fiche-tete {
      padding: 12px 16px;
  }

  .fp-fiche dl > div {
      grid-template-columns: minmax(0, 1fr);
      gap: 2px;
      padding: 10px 20px;
  }

  .fp-tags {
      padding: 16px 20px 4px;
  }

  .fp-fiche-pied {
      padding: 16px 20px 22px;
  }

  .fp-travaux li {
      padding: 10px 0;
      font-size: 14px;
  }

  /*********************** Tableau détaillé *************************/
  .fp-tableau table {
      font-size: 14.5px;
  }

  .fp-tableau thead th,
  .fp-tableau tbody th,
  .fp-tableau td,
  .fp-tableau tfoot th,
  .fp-tableau tfoot td {
      padding: 12px 14px;
  }

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/
  .fp-photos,
  .fp-photos--2,
  .fp-photos--4 {
      grid-template-columns: minmax(0, 1fr);
      grid-auto-rows: 220px;
  }

  .fp-photos--4 li:first-child {
      grid-column: auto;
  }

  .fp-photos--1 {
      grid-auto-rows: 260px;
  }

  .fp-photos button > span {
      padding: 30px 14px 12px;
      font-size: 14px;
  }

  /*********************** Projets similaires et navigation *************************/
  .fp-similaires {
      grid-template-columns: minmax(0, 1fr);
  }

  .fp-similaires li:nth-child(3) {
      display: block;
  }

  .fp-nav-lien {
      padding: 14px 16px;
  }

  .fp-nav-lien span {
      font-size: 15px;
  }

}


@media only screen and (max-width: 485px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/
  /* Le tableau (min-width 420px) tient dans l'écran au lieu de défiler */
  .fp-tableau table {
      min-width: 0;
      font-size: 13.5px;
  }

  .fp-tableau thead th,
  .fp-tableau tbody th,
  .fp-tableau td,
  .fp-tableau tfoot th,
  .fp-tableau tfoot td {
      padding: 11px 10px;
  }

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/
  .fp-carte-texte {
      padding: 18px 18px 20px;
  }

}


@media only screen and (max-width: 425px) {

  /*********************** Récit et fiche projet *************************/
  .fp-texte {
      font-size: 15px;
  }

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/
  .fp-nav {
      grid-template-columns: minmax(0, 1fr);
  }

  .fp-nav-tous {
      grid-row: auto;
  }

  .fp-nav-lien--suiv {
      text-align: left;
  }

}


@media only screen and (max-width: 375px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}


@media only screen and (max-width: 320px) {

  /*********************** Récit et fiche projet *************************/

  /*********************** Tableau détaillé *************************/
  .fp-tableau table {
      font-size: 12.5px;
  }

  /*********************** Chiffres clés *************************/

  /*********************** Photos *************************/

  /*********************** Projets similaires et navigation *************************/

}
