/*
 * Sandrine Gluck
 * Blog / Articles
 *
 * Le header et le footer restent gérés
 * par les styles globaux du thème.
 *
 * Tout le design éditorial est limité à :
 * .sg-single
 * .sg-post
 */


/* =========================================================
   PAGE SINGLE
   ========================================================= */

.sg-single {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}


/*
 * Gutenberg ne doit pas imposer
 * sa propre largeur au contenu de l'article.
 */
.sg-single > .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}


/* =========================================================
   H1 WORDPRESS
   ========================================================= */

.sg-single__hero-title {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 64px 24px 0 !important;

  box-sizing: border-box;

  background: #f5f2ee;
}


/*
 * Le titre renseigné dans WordPress
 * constitue l'unique H1 de la page.
 */
.sg-single__hero-title .sg-post-hero__title {
  width: 100%;
  max-width: 1140px;

  margin: 0 auto !important;

  font-family: "Raleway", sans-serif;
  font-size: clamp(38px, 3.8vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;

  color: #000;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.sg-post {
  width: 100%;
  margin: 0;
  padding: 0;

  background: #fff;
  color: #2f2f2f;

  font-family: "Raleway", sans-serif;
}


/* =========================================================
   HERO ARTICLE
   ========================================================= */

.sg-post .sg-post-hero {
  width: 100%;
  padding: 42px 0 54px;

  background: #f5f2ee;
}


.sg-post .sg-post-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
}

.sg-post .sg-post-hero__content {
  width: 100%;
  max-width: 650px;

  padding-top: 24px;
}

.sg-post .sg-post-hero__eyebrow {
  margin: 0 0 22px;

  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;

  text-transform: uppercase;

  color: #8f7b63;
}

/* =========================================================
   CHAPEAU HERO
   ========================================================= */

.sg-post .sg-post-hero__lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;

  width: 100%;
  max-width: 650px;

  margin: 0;
  padding: 0;

  font-family: "Raleway", sans-serif;

  color: #414141;
}

.sg-post .sg-post-hero__lead p {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;

  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.62;

  color: #414141;
}

/* =========================================================
   IMAGE HERO
   ========================================================= */

.sg-post .sg-post-hero__media {
  width: 100%;
  margin: 0;

  overflow: hidden;

  aspect-ratio: 4 / 5;
}


.sg-post .sg-post-hero__media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   CORPS ARTICLE — COLONNE UNIQUE
   ========================================================= */

.sg-post .sg-post-body {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sg-post .sg-post-content {
  width: calc(100% - 48px) !important;
  max-width: 960px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding: 72px 0 88px !important;
  box-sizing: border-box !important;
}


/*
 * IMPORTANT :
 * aucune largeur individuelle sur les éléments éditoriaux.
 * C'est .sg-post-content qui définit toute la colonne.
 */
.sg-post .sg-post-content p,
.sg-post .sg-post-content ul,
.sg-post .sg-post-content ol,
.sg-post .sg-post-content h2,
.sg-post .sg-post-content h3 {
  width: auto !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* =========================================================
   PARAGRAPHES
   ========================================================= */

.sg-post .sg-post-content p {
  margin-top: 0;
  margin-bottom: 28px;

  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.66;

  color: #3d3d3d;
}


/* =========================================================
   INTRO
   ========================================================= */

.sg-post .sg-post-content .sg-post-intro {
  margin: 0 0 32px !important;

  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;

  color: #2f2f2f !important;
}


/* =========================================================
   H2
   ========================================================= */

.sg-post .sg-post-content h2 {
  margin-top: 58px !important;
  margin-bottom: 22px !important;

  font-family: "Raleway", sans-serif;
  font-size: 25px;
  font-weight: 450;
  line-height: 1.18;
  letter-spacing: .01em;

  text-transform: uppercase;

  color: #000;
}


/* =========================================================
   H3
   ========================================================= */

.sg-post .sg-post-content h3 {
  margin-top: 34px !important;
  margin-bottom: 12px !important;

  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .02em;

  text-transform: uppercase;

  color: #000;
}


/* =========================================================
   LISTES
   ========================================================= */

.sg-post .sg-post-content ul,
.sg-post .sg-post-content ol {
  box-sizing: border-box;

  margin-top: 18px !important;
  margin-bottom: 30px !important;

  padding-left: 26px;
}

.sg-post .sg-post-content li {
  margin-bottom: 8px;

  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.66;

  color: #3d3d3d;
}

/* =========================================================
   IMAGE ÉDITORIALE
   Portrait homme
   ========================================================= */

.sg-post .sg-post-figure {
  width: 100%;
  max-width: 430px;

  margin: 52px auto 48px;
}


.sg-post .sg-post-figure img {
  display: block;

  width: 100%;
  height: auto;
}


.sg-post .sg-post-figure figcaption {
  width: 100%;
  max-width: 410px;

  margin: 11px auto 0;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;

  text-align: center;

  color: #777;
}


/* =========================================================
   AUTRES IMAGES ÉDITORIALES ÉVENTUELLES
   ========================================================= */

.sg-post .sg-post-image {
  width: 100%;
  margin: 52px auto;
}


.sg-post .sg-post-image img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
}


.sg-post .sg-post-image--portrait {
  max-width: 520px;
}


.sg-post .sg-post-image--wide {
  max-width: 900px;
}


/* =========================================================
   CITATION
   ========================================================= */

.sg-post .sg-post-quote {
  width: 100%;
  max-width: 760px;

  margin: 50px auto;
  padding: 26px 32px;

  box-sizing: border-box;

  border-left: 3px solid #b3a18a;
}


.sg-post .sg-post-quote p {
  margin: 0 !important;

  font-family: "Raleway", sans-serif;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;

  color: #2f2f2f !important;
}


/* =========================================================
   CTA FINAL ARTICLE
   ========================================================= */

.sg-post .sg-post-cta {
  width: 100%;
  max-width: 900px;

  margin: 64px auto 0;
  padding: 46px 52px;

  box-sizing: border-box;

  background: #000;
  color: #fff;

  text-align: center;
}


.sg-post .sg-post-cta p {
  width: 100%;
  max-width: 680px;

  margin: 0 auto 28px;

  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;

  color: rgba(255,255,255,.84);
}


.sg-post .sg-post-cta strong {
  font-weight: 600;
  color: #fff;
}


.sg-post .sg-post-cta .sg-btn {
  margin: 0 auto !important;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

  .sg-post .sg-post-hero__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
  }

  .sg-post .sg-post-content {
    max-width: 860px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .sg-post .sg-post-content > p,
  .sg-post .sg-post-content > ul,
  .sg-post .sg-post-content > ol,
  .sg-post .sg-post-content > h2,
  .sg-post .sg-post-content > h3 {
    max-width: 812px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  /* H1 */

  .sg-single__hero-title {
    padding: 44px 20px 0 !important;
  }


  .sg-single__hero-title .sg-post-hero__title {
    font-size: 36px;
    line-height: 1.08;
  }


  /* HERO */

  .sg-post .sg-post-hero {
    padding: 28px 0 0;
  }


  .sg-post .sg-post-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;

    padding: 0 20px;
  }


  .sg-post .sg-post-hero__lead {
    font-size: 18px;
    line-height: 1.55;
  }


  .sg-post .sg-post-hero__media {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
  }
  

  /* CONTENU */

  .sg-post .sg-post-content {
    width: 100%;
    max-width: none;

    padding: 52px 20px 68px;
  }


  .sg-post .sg-post-content > p,
  .sg-post .sg-post-content > ul,
  .sg-post .sg-post-content > ol,
  .sg-post .sg-post-content > h2,
  .sg-post .sg-post-content > h3 {
    width: 100%;
    max-width: none;
  }


  .sg-post .sg-post-content > p,
  .sg-post .sg-post-content li {
    font-size: 16px;
    line-height: 1.65;
  }


  .sg-post .sg-post-intro {
    max-width: none !important;

    font-size: 18px !important;
  }


  /* TITRES */

  .sg-post .sg-post-content h2 {
    margin-top: 46px;
    margin-bottom: 18px;

    font-size: 23px;
  }


  .sg-post .sg-post-content h3 {
    margin-top: 30px;

    font-size: 15px;
  }


  /* IMAGE */

  .sg-post .sg-post-figure {
    max-width: 360px;

    margin: 40px auto 36px;
  }


  /* CITATION */

  .sg-post .sg-post-quote {
    max-width: none;

    margin: 40px auto;
    padding: 22px 24px;
  }


  .sg-post .sg-post-quote p {
    font-size: 18px !important;
  }


  /* CTA */

  .sg-post .sg-post-cta {
    max-width: none;

    margin-top: 52px;
    padding: 38px 24px;
  }

}


/* =========================================================
   SINGLE POST — SUPPRESSION DE LA CONTRAINTE GUTENBERG
   ========================================================= */

body.single-post .sg-single,
body.single-post .sg-single > .wp-block-post-content,
body.single-post .wp-block-post-content,
body.single-post .wp-block-post-content.is-layout-constrained,
body.single-post .sg-post {
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*
 * Gutenberg applique également des largeurs
 * aux enfants directs des layouts constrained.
 */
body.single-post
.wp-block-post-content.is-layout-constrained
> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* =========================================================
   NOTRE PROPRE COLONNE ÉDITORIALE
   ========================================================= */

body.single-post .sg-post-body {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
}

body.single-post .sg-post-content {
  width: calc(100% - 48px) !important;
  max-width: 900px !important;

  margin: 0 auto !important;
  padding: 72px 0 88px !important;

  box-sizing: border-box;
}


/* paragraphes, titres et listes :
   ils utilisent toute la colonne de 900 px */

body.single-post .sg-post-content p,
body.single-post .sg-post-content ul,
body.single-post .sg-post-content ol,
body.single-post .sg-post-content h2,
body.single-post .sg-post-content h3 {
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* on conserve les marges verticales */

body.single-post .sg-post-content p {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
}

body.single-post .sg-post-content h2 {
  margin-top: 58px !important;
  margin-bottom: 22px !important;
}

body.single-post .sg-post-content h3 {
  margin-top: 34px !important;
  margin-bottom: 12px !important;
}


/* éléments volontairement plus étroits */

body.single-post .sg-post-figure {
  width: 100% !important;
  max-width: 430px !important;
  margin: 52px auto 48px !important;
}

body.single-post .sg-post-quote {
  width: 100% !important;
  max-width: 760px !important;
  margin: 50px auto !important;
}

body.single-post .sg-post-cta {
  width: 100% !important;
  max-width: 900px !important;
  margin: 64px auto 0 !important;
}


/* MOBILE */

@media (max-width: 767px) {

  body.single-post .sg-post-content {
    width: 100% !important;
    max-width: none !important;

    padding: 52px 20px 68px !important;
  }

}
/* =========================================================
   JOURNAL — RECENTRAGE VISUEL DES PORTRAITS
   ========================================================= */

.sg-journal-card__media {
  display: block;
  overflow: hidden;
}

.sg-journal-card__media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 1 — LinkedIn : remonter nettement le cadrage vers le visage */
.sg-journal-card:nth-child(1) .sg-journal-card__media img {
  object-position: 50% 25%;
}

/* 2 — À l'aise devant l'objectif : visage déjà assez central */
.sg-journal-card:nth-child(2) .sg-journal-card__media img {
  object-position: 52% 38%;
}

/* 3 — Site de rencontre : remonter le visage */
.sg-journal-card:nth-child(3) .sg-journal-card__media img {
  object-position: 50% 24%;
}
/* EYEBROW */

.sg-journal-card__eyebrow {
  margin: 0 0 5px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .10em;

  text-transform: uppercase;

  color: #8f7b63;
}


/* DATE */

.sg-journal-card__date {
  display: block;

  margin: 0 0 14px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .03em;

  color: #888;
}


/* TITRE */

.sg-journal-card__title {
  margin: 0 0 22px;
}


/* EXCERPT */

.sg-journal-card__excerpt {
  margin: 0;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;

  color: #555;
}


/* LIEN */

.sg-journal-card__link {
  display: inline-block;

  margin-top: 22px;

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;

  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   BLOG / INDEX DU JOURNAL
   ========================================================= */

.sg-blog {
  width: 100%;
  background: #fff;
}


/* HERO */

.sg-blog-hero {
  padding: 72px 24px 64px;
  background: #f5f2ee;
  text-align: center;
}

.sg-blog-hero__title {
  margin: 0 0 18px;

  font-family: "Raleway", sans-serif;
  font-size: 54px;
  font-weight: 300;
  line-height: 1;

  color: #000;
}

.sg-blog-hero__intro {
  margin: 0;

  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;

  color: #8f7b63;
}


/* LISTE */

.sg-blog-list {
  padding: 72px 0 88px;
  background: #fff;
}

.sg-blog-list .sg-container {
  max-width: 1140px;
}


/* GRILLE */

.sg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;

  width: 100%;
}


/*
 * Même logique visuelle que les cartes
 * Journal de la home.
 */

.sg-blog-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  background: #f5f2ee;
}


/* IMAGE */

.sg-blog-card .sg-journal-card__media {
  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #e8e3dc;
}

.sg-blog-card .sg-journal-card__media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .35s ease;
}

.sg-blog-card .sg-journal-card__media:hover img {
  transform: scale(1.02);
}


/* CONTENU */

.sg-blog-card .sg-journal-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 30px 30px 32px;
}


/* EYEBROW */

.sg-blog-card .sg-journal-card__category {
  margin: 0 0 5px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;

  text-transform: uppercase;

  color: #8f7b63;
}


/* DATE */

.sg-blog-card .sg-journal-card__date {
  display: block;

  margin: 0 0 20px;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;

  color: #8a8a8a;
}


/* TITRE */

.sg-blog-card .sg-journal-card__title {
  margin: 0 0 22px;

  font-family: "Raleway", sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.28;

  color: #111;
}

.sg-blog-card .sg-journal-card__title a {
  color: inherit;
  text-decoration: none;
}


/* EXTRAIT */

.sg-blog-card .sg-journal-card__excerpt {
  margin: 0 0 26px;

  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;

  color: #565656;
}


/* LIEN */

.sg-blog-card .sg-journal-card__link {
  display: inline-block;

  margin-top: auto;

  width: fit-content;

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;

  color: #111;

  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.sg-blog-pagination {
  margin-top: 64px;
  text-align: center;
}

.sg-blog-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  flex-wrap: wrap;
}

.sg-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;
  padding: 0 14px;

  box-sizing: border-box;

  background: #f5f2ee;
  color: #111;

  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;

  text-decoration: none;
}

.sg-blog-pagination .page-numbers.current {
  background: #000;
  color: #fff;
}

.sg-blog-pagination a.page-numbers:hover {
  background: #b3a18a;
  color: #fff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .sg-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

}


@media (max-width: 767px) {

  .sg-blog-hero {
    padding: 56px 20px 50px;
  }

  .sg-blog-hero__title {
    font-size: 42px;
  }

  .sg-blog-list {
    padding: 52px 16px 68px;
  }

  .sg-blog-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sg-blog-card .sg-journal-card__content {
    padding: 26px 24px 28px;
  }

  .sg-blog-card .sg-journal-card__title {
    font-size: 23px;
  }

  .sg-blog-pagination {
    margin-top: 48px;
  }

}
/* Zoom spécifique : article "À l’aise devant l’objectif" */

.sg-blog-card .sg-journal-card__media img[src*="portrait-homme-a-l-aise-devant-objectif"] {
  transform: scale(1.16);
  transform-origin: 58% 38%;
}

/* Conserver un léger effet au survol */
.sg-blog-card .sg-journal-card__media:hover img[src*="portrait-homme-a-l-aise-devant-objectif"] {
  transform: scale(1.20);
}

/* =========================================================
   PARTAGE ARTICLE
   ========================================================= */

.sg-share {
  width: 100%;
  padding: 0 24px 88px;

  box-sizing: border-box;

  background: #fff;
}

.sg-share__inner {
  width: 100%;
  max-width: 900px;

  margin: 0 auto;
  padding-top: 32px;

  border-top: 1px solid #ddd7d0;
}

.sg-share__title {
  margin: 0 0 22px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;

  color: #8f7b63;

  text-transform: uppercase;
}

.sg-share__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.sg-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 15px;

  box-sizing: border-box;

  border: 1px solid #cac2b8;
  border-radius: 0;

  background: transparent;
  color: #222;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.sg-share__link:hover {
  border-color: #000;

  background: #000;
  color: #fff;
}

.sg-share__copy {
  appearance: none;
}


/* MOBILE */

@media (max-width: 767px) {

  .sg-share {
    padding: 0 20px 64px;
  }

  .sg-share__inner {
    padding-top: 28px;
  }

  .sg-share__links {
    gap: 8px;
  }

  .sg-share__link {
    min-height: 40px;
    padding: 0 13px;
  }

}

  .sg-single__date {
  max-width: 1140px;
  margin: 19px auto 0 !important;

  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;

  color: #8f7b63;
}

/* =========================================================
   CTA ARTICLE — CENTRAGE OPTIQUE DU LIBELLÉ
   ========================================================= */

.sg-post .sg-post-cta .sg-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  height: 46px !important;
  min-height: 46px !important;

  /* 3px en bas remontent optiquement le texte
     sans déplacer le bouton */
  padding: 0 26px 3px !important;

  margin: 0 auto !important;

  box-sizing: border-box !important;

  text-align: center !important;
  line-height: 1 !important;
}