/*-----------------------------------------*/
/*	 STYLE GLOBAL : MÉDIA QUERIES
/*-----------------------------------------*/

/* ----------- MIN-WIDTH : 576PX ----------- */
@media (min-width: 576px) {
  /* IMAGES ÉDITORIAL WP */
  .alignleft {
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .alignright {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .aligncenter {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }

  .home .exergue {
    padding: 4rem 0;
  }
}

/* ----------- MIN-WIDTH : 768PX ----------- */
@media (min-width: 768px) {
  /* MENU TOP */
  .menu-top ul {
    justify-content: flex-end;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: -5px; /* Alignement baseline avec h1 */
  }

  .menu-top ul > li:nth-child(-n + 2)::after {
    color: #c0c0c0;
    content: "\002223";
    display: inline-block;
    padding: 0 0.5rem;
  }

  /* MENU PRIMAIRE */
  /* Barre menu */
  #MenuPrimaireResponsive {
    position: relative;
    height: 90px;
    width: 100%;
    border-radius: 0.2rem;
  }

  #menu-menu-primaire {
    flex-wrap: wrap;
    padding-left: 8.333333%;
    padding-right: 8.333333%;
    width: 100%;
  }

  /* Barre de premier niveau */
  .navbar-nav .dropdown {
    position: static;
  }

  .navbar-nav > .menu-item {
    margin-right: 1rem;
  }

  #MenuPrimaireResponsive .nav-link {
    padding-left: 0.2rem;
  }

  /* Barre de second niveau */
  .dropdown-menu {
    align-items: center;
    margin-top: -0.5rem;
    border: 0;
    border-radius: 0 0 0.2rem 0.2rem;
    padding-left: calc(8.333333% + 0.2rem);
    padding-right: 4%;
  }

  .dropdown-menu.show {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
  }

  .dropdown-menu .menu-item {
    display: flex;
    padding: 0.3rem 0; /* Espacement vertical si plusieurs lignes (wrap) */
  }

  .dropdown-item {
    padding: 0;
  }

  /* Séparateur */
  .dropdown-menu .menu-item:not(:last-of-type)::after {
    content: "\00007c";
    display: inline-block;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.2);
  }

  .dropdown-menu .menu-item:first-of-type {
    padding-left: 0;
  }

  /* SCOPE */
  .scope {
    margin-top: -40px;
  }

  .scope .row {
    padding-top: 40px;
    height: 200px;
  }

  /*	 {} PIED DE PAGE
------------------------------------------*/
  .partenariats > div:not(:last-child) {
    margin-right: 2rem;
  }

  .pdp .logo-aftl {
    flex-grow: 1;
  }
}

/* ----------- MIN-WIDTH : 992PX ----------- */
@media (min-width: 992px) {
  /* IDENTITÉ ÉCOLE*/
  .en-tete h2 {
    font-size: 1rem;
  }

  .en-tete h1 {
    font-size: 2rem;
  }

  .en-tete h3 {
    font-size: 0.9rem;
  }

  /* MENU TOP */
  .menu-top ul {
    margin-top: -1px; /* Alignement baseline avec h1 */
  }

  .menu-top ul li a[href*="tel:"]:before {
    content: "";
    position: relative;
    top: 2px;
    right: 4px;
    display: inline-block;
    height: 0.9rem;
    width: 0.9rem;
    background: url(../images/menu-primaire/icon-telephone.png) no-repeat left center;
    background-size: contain;
    opacity: 0.5;
  }

  /*	 [] ACCUEIL
------------------------------------------*/
  .dernieres-actualites .vignette {
    width: 200px;
    height: 200px;
  }

  /*	 [] ACTUALITÉS - LISTING
------------------------------------------*/
  .bloc-post .date-cats {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .bloc-post .date {
    margin: 0 0 1rem;
  }

  .bloc-post .stickypost {
    margin: 1rem 0 0;
  }

  /*	 [] ACTUALITÉS - SINGLE
------------------------------------------*/
  .single .bloc-post .date-cats {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
  }

  .single .bloc-post .date {
    margin: 0 1rem 0 0;
  }

  .titre-date-categories {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .single .bloc-post .stickypost {
    margin: 0;
  }

  .single-actualite .contenu-editorial {
    margin-top: 2rem;
  }
}

/* ----------- MIN-WIDTH : 1200PX ----------- */
@media (min-width: 1200px) {
  /* Vignettes */
  .vignette {
    height: 250px;
    width: 250px;
  }

  .home .exergue .vignette {
    height: 350px;
    width: 350px;
  }
}

/* ----------- MAX-WIDTH : 575.98PX ----------- */
@media (max-width: 575.98px) {
  /* IDENTITÉ ÉCOLE */
  .menu-top {
    padding-right: 0;
  }

  /* TITRES */
  h1,
  h2 {
    font-size: 2rem;
  }

  /* IMAGES ÉDITORIAL WP (Suppression alignements) */
  img.alignleft,
  img.alignright,
  wp-caption.alignleft,
  wp-caption.alignright {
    float: none;
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* SCOPE */
  .visuel-scope {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  /*	 [] ACCUEIL
------------------------------------------*/
  .home .exergue {
    padding: 3rem 0;
  }
}

/* ----------- MAX-WIDTH : 767.98PX ----------- */
@media (max-width: 767.98px) {
  /*	 DESIGN ÉDITORIAL
------------------------------------------*/
  /* Espacement intérieur Pages et Actualités */
  .page-editoriale,
  .dernieres-actualites,
  .explorer-actualites {
    padding: 3rem 0;
  }

  .surtitre {
    margin-bottom: 2rem;
  }

  .dernieres-actualites .surtitre {
    margin-bottom: 3.75rem;
  }

  /*	 {} EN-TÊTE
------------------------------------------*/
  /* IDENTITÉ ÉCOLE */
  .en-tete h2 {
    font-size: 0.8rem;
  }

  .en-tete h1 {
    font-size: 1.1rem;
  }

  .en-tete h3 {
    font-size: 0.7rem;
  }

  /* MENU TOP */
  .menu-top {
    height: 70px;
    z-index: 2;
  }

  .menu-top ul {
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
  }

  /* MENU PRIMAIRE */
  .navbar {
    margin-top: -70px;
  }

  #MenuPrimaireResponsive .navbar-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1rem;
    text-align: right;
  }

  .dropdown-toggle,
  .dropdown-item {
    /* Pour permettre texte long sur deux lignes (Annule règles de Boostrap) */
    white-space: normal;
  }

  /* Second niveau */
  .dropdown-menu li:not(:last-child) .dropdown-item::after {
    content: "";
    position: relative;
    padding-top: 6px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .switcher-menu {
    font-size: 0.8rem;
    color: #fff;
    padding: 0.4rem 0.6rem;
    background-color: #9b1435;
    border-radius: 3px;
  }

  .navbar-toggler {
    border: none;
    background: transparent !important;
  }

  .navbar-toggler:focus {
    outline: none;
    background: transparent !important;
  }

  .navbar-toggler[aria-expanded="false"] .icon-bar,
  .navbar-toggler .icon-bar {
    background-color: #fff;
    transform: rotate(0deg) translate(0, 0);
    transition: ease all 0.2s;
  }

  .navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
  }

  .navbar-toggler .icon-bar + .icon-bar {
    margin-top: 4px;
  }

  .icon-bar:nth-child(2) {
    width: 16px;
    transition: ease all 0.2s;
  }

  .navbar-toggler:hover > .icon-bar:nth-child(2) {
    width: 22px;
    transition: ease all 0.2s;
  }

  .navbar-toggler:active > .icon-bar:nth-child(2) {
    width: 22px;
    transition: ease all 0.2s;
  }

  .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
    transition: ease all 0.2s;
  }

  .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
    transition: ease all 0.2s;
  }

  .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    transition: ease all 0.2s;
  }

  /* SCOPE */
  .scope .row {
    min-height: 160px;
  }

  .chemin {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .chemin li:not(:last-child) {
    font-size: calc(1rem * 0.8);
    line-height: calc(1rem * 0.8);
  }

  .chemin li:last-child {
    font-size: calc(2rem * 0.7);
    line-height: calc(2rem * 0.8);
  }

  /*	 {} DERNIÈRES ACTUALITÉS
------------------------------------------*/
  .dernieres-actualites .actu {
    margin-bottom: 4rem;
  }

  /*	 {} EXPLORER LES ACTUALITÉS
------------------------------------------*/
  .explorer-actualites .nav {
    justify-content: space-between;
  }

  .explorer-actualites .nav-tabs span {
    display: none;
  }

  .explorer-actualites .nav-tabs i {
    font-size: 1.3rem;
  }
  .explorer-actualites .nav-link.active i {
    color: #fff;
  }

  /*	 {} PIED DE PAGE
------------------------------------------*/
  .pdp .adresse-ecole {
    margin-top: 1rem;
  }

  /*	 [] ACCUEIL
------------------------------------------*/
  .home .exergue:nth-child(2n) .row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }

  .home .editorial {
    margin-top: 2rem;
  }

  /*	 [] ACTUALITÉS - LISTING
------------------------------------------*/
  .liste-actualites .bloc-post,
  .single .bloc-post,
  .liste-pages-enfants .bloc-post {
    padding: 3rem 0;
  }

  .liste-actualites .visuel-vedette {
    order: -2;
    margin-bottom: 2rem;
  }

  .date-cats {
    display: flex;
    flex-wrap: wrap;
  }

  .bloc-post .date,
  .bloc-post .categories,
  .bloc-post .stickypost {
    margin-bottom: 0.5rem;
  }

  /*	 [] PAGE PARENT LISTE ENFANTS
------------------------------------------*/
  .liste-pages-enfants .editorial {
    margin-top: 2rem;
  }
}

/* ----------- MAX-WIDTH : 991.98PX ----------- */
@media (max-width: 991.98px) {
  #MenuPrimaireResponsive {
    font-size: 0.9rem;
  }

  /* Vignettes */
  .vignette {
    height: 200px;
    width: 200px;
  }

  .pdp .logo-cotec img {
    width: calc(140px * 0.7);
  }

  .pdp .logo-aftl img {
    width: calc(104px * 0.7);
  }

  .pdp .logo-diocese-lille img {
    width: calc(40px * 0.7);
  }

  .pdp .logo-enseignement-catho img {
    width: calc(110px * 0.7);
  }

  .pdp .logo-ville-tourcoing img {
    width: calc(136px * 0.7);
  }

  /*	 [] ACCUEIL
------------------------------------------*/
  .dernieres-actualites .vignette {
    width: 150px;
    height: 150px;
  }

  /*	 [] ACTUALITÉS - LISTING
------------------------------------------*/
  .bloc-post .date-cats {
    order: -1;
    display: flex;
    margin-bottom: 2rem;
  }

  .bloc-post .date {
    margin-right: 1rem;
  }

  /*	 [] ACTUALITÉS - SINGLE
------------------------------------------*/
  .single .visuel-vedette {
    margin-bottom: 2rem;
  }
}

/* ----------- MAX-WIDTH : 1199.98PX ----------- */
@media (max-width: 1199.98px) {
  .pdp .contact-chef,
  .pdp .accessibilite {
    margin-top: 1rem;
  }
}

/* ----------- ENTRE 575.98PX ET 767.98PX ----------- */
@media (min-width: 576px) and (max-width: 767.98px) {
}

/* ----------- ENTRE 575.98PX ET 767.98PX EN LANDSCAPE ----------- */
@media (min-width: 576px) and (max-width: 767.98px) and (orientation: landscape) {
}

/* ----------- ENTRE 768PX ET 991.98PX ----------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* IDENTITÉ ÉCOLE */
  .en-tete h2 {
    font-size: 0.9rem;
  }

  .en-tete h1 {
    font-size: 1.4rem;
  }

  .en-tete h3 {
    font-size: 0.8rem;
  }

  .blog .visuel-vedette {
    margin-bottom: 0;
  }
}

/* ----------- ENTRE 992PX ET 1199.98PX ----------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Vignettes */
  .vignette {
    height: 200px;
    width: 200px;
  }

  .home .exergue .vignette {
    height: 250px;
    width: 250px;
  }
}

/* ----------- ENTRE 768PX ET 1399.98PX ----------- */
@media (min-width: 768px) and (max-width: 1399.98px) {
}
