/*
Il y a 327 lignes sans les commentaires et les espaces !
*/

body {
  margin: 0;
  font-family: "Times New Roman", serif;
  color: #111;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

header,
footer {
  font-family: "Source Code Pro", monospace;
}

#logo,
.logo-mobile,
main h2,
main h3,
footer h4 {
  font-family: "Roboto", sans-serif;
}

header :is(p, h1),
main :is(h2, h3, p),
footer :is(h4, p) {
  margin: 0;
}

/* THEMES + NAV */

#themes,
nav {
  overflow-x: auto;
  white-space: nowrap;
}

#themes li,
nav li,
.custom-page .custom-menu-1,
.custom-page .custom-droite {
  display: inline-block;
}

#themes li::after,
nav li::after {
  color: #999;
  margin: .6rem;
}

#themes li::after { content: "•"; }
nav li::after { content: "|"; }

#themes li:last-child::after,
nav li:last-child::after {
  content: "";
}

/* HEADER */

#bandeau-principal-desktop,
#bandeau-principal-mobile,
.index-page .grand-article,
footer {
  background: cyan;
}

#bandeau-principal-desktop,
#bandeau-principal-mobile {
  color: #0b4f7a;
}

#bandeau-principal-desktop button,
#bandeau-principal-mobile button,
nav button {
  border: 0;
  background: none;
}

#logo {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
  font-weight: bold;
}

.logo-mobile {
  font-size: 2.2rem;
  font-weight: bold;
}

#bandeau-principal-desktop .gauche,
#bandeau-principal-desktop .droite {
  flex: 1;
}

/* BUTTONS */

.promo,
.abonne,
.login {
  font-size: clamp(.7rem, 2vw, .8rem);
  padding: clamp(.15rem, 1vw, .25rem) clamp(.6rem, 2vw, .8rem);
}

.promo {
  color: #fff;
  background: #3a322e;
}

.abonne {
  color: #111;
  background: #e7d05d;
}

.login {
  color: #000;
  border: 1px solid #000;
}

/* MOBILE HEADER */

.abonne-mobile,
.login-mobile {
  font-size: .75rem;
  white-space: nowrap;
  color: #0b4f7a;
  background: none;
  border: 0;
  padding: 0;
}

/* NAV */

nav {
  background: #fff;
  border-block: 1px solid #999;
}

nav a {
  color: #222;
  text-decoration: none;
}

/* INDEX */

.index-page .grand-article,
.index-page .image-principale {
  min-height: 20rem;
}

.index-page .article-bas-grand {
  min-height: 16rem;
  background: #000;
}

.index-page .grand-article h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.index-page .article-bas-grand h3,
.carte-actu h3 {
  line-height: 1.3;
}

.index-page .article-bas-grand h3 {
  font-size: 1.05rem;
}

/* CARTE */

.carte-actu {
  display: grid;
  grid-template: auto 1fr auto / 1.2fr 1fr;
  grid-template-areas:
    "titre image"
    ". image"
    "meta image";
}

.carte-actu h3 { grid-area: titre; }

.carte-actu p {
  grid-area: meta;
  align-self: end;
  color: #777;
}

.carte-actu img { grid-area: image; }

/* ULTIMAS */

.index-page .ultimas-noticias :is(h2, li) {
  margin-bottom: 1rem;
}

.index-page .ultimas-noticias ul {
  position: relative;
  margin-left: .4rem;
  padding-left: 1.1rem;
}

.index-page .ultimas-noticias li {
  position: relative;
}

.index-page .ultimas-noticias :is(ul, li)::before {
  content: "";
  position: absolute;
}

.index-page .ultimas-noticias ul::before {
  top: .3rem;
  bottom: 0;
  left: .02rem;
  width: 1px;
  background: #7f9db0;
}

.index-page .ultimas-noticias li::before {
  top: .25rem;
  left: -1.3rem;
  width: .45rem;
  height: .45rem;
  background: cyan;
}

/* ARTICLE */

.article-page article {
  max-width: 42rem;
}

.article-page .article-meta h2,
.custom-page .custom-preview h2 {
  margin: .35rem 0 .6rem;
  line-height: 1.1;
}

.article-page .article-meta h2 {
  font-size: clamp(2rem, 4vw, 2.4rem);
}

.custom-page .custom-preview h2 {
  font-size: clamp(1.7rem, 3vw, 2rem);
}

.article-page article p,
.custom-page .custom-preview p {
  margin-bottom: 1rem;
}

.article-page article p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-page article h3,
.custom-page .custom-preview h3 {
  margin: 2rem 0 .75rem;
  font-size: 1.5rem;
}

.article-page .resume,
.custom-page .resume {
  margin: 1.25rem 0;
  font-size: 1.15rem;
  font-style: italic;
}

/* VOTE BOX */

.article-page .article-vote {
  max-width: 18rem;
  position: sticky;
  top: 1rem;
  border: 1px solid #999;
  background: #fff;
  padding: 1rem;
}

.article-page .vote-stars {
  font-size: 1.4rem;
}

/*CUSTOM*/

.custom-page form {
  overflow: hidden;
}

.custom-page .custom-layout {
  width: 100%;
  height: 62vh;
  min-height: 26rem;
  font-size: 0;
}

.custom-page .custom-menu-1,
.custom-page .custom-droite {
  display: inline-block;
  vertical-align: top;
  height: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}

.custom-page .custom-menu-1 {
  width: 28%;
  overflow-y: auto;
  padding: .75rem;
  border: 1px solid #999;
  background: #fff;
}

.custom-page .custom-droite {
  width: 72%;
  padding-left: .35rem;
}

.custom-page .custom-preview {
  height: calc(65% - .2rem);
  overflow-y: auto;
  padding: .75rem;
  border: 1px solid #999;
  background: #fff;
}

.custom-page .custom-menu-2 {
  height: calc(35% - .2rem);
  margin-top: .35rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .55rem .6rem;
  font-size: 0;
  white-space: normal;
  border: 1px solid #999;
  background: #fff;
}

.custom-page .custom-menu-1 label {
  display: block;
  margin: .6rem 0 .25rem;
}

.custom-page .custom-menu-2 .widget-inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 .35rem .25rem 0;
  max-width: 100%;
}

.custom-page .custom-menu-2 :is(label, input, select) {
  display: inline-block;
  vertical-align: middle;
  font-size: .8rem;
  margin: 0 .25rem .25rem 0;
  max-width: 100%;
}

.custom-page .custom-menu-2 .form-range {
  width: 5rem;
}

.custom-page .custom-menu-2 .form-select {
  width: 5.5rem;
}

.custom-page .custom-menu-2 .form-control-color {
  width: 2.2rem;
}

.custom-page .custom-menu-2 button {
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
  padding: .2rem .45rem;
}

.custom-page .custom-preview p {
  line-height: 1.35;
}

/* FOOTER */

footer,
.footer-bas {
  border-top: 1px solid #999;
}

footer h4 {
  color: blue;
  margin-bottom: .8rem;
}

footer ul {
  margin-bottom: 1rem;
}

footer li {
  margin-bottom: .35rem;
}

.newsletter {
  max-width: 13rem;
}

.newsletter-btn {
  color: cyan;
  background: blue;
}

.social ul {
  flex-wrap: wrap;
}

.footer-bas {
  margin-top: 1rem;
  padding-top: .8rem;
  text-align: center;
}

.footer-bas p {
  margin-bottom: .6rem;
}

.footer-bas ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

