/*
Theme Name: J'apprends la Photo
Theme URI: https://japprendslaphoto.fr
Author: J'apprends la Photo
Author URI: https://japprendslaphoto.fr
Description: Theme enfant personnalise de Twenty Twenty-Four pour japprendslaphoto.fr, avec une direction artistique blanche et bleue.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: japprendslaphoto
Template: twentytwentyfour
Tags: blog, education, photography, responsive, full-site-editing, block-patterns, custom-colors
*/

/* ==========================================================================
   J'apprends la Photo - palette et base
   ========================================================================== */
:root {
  --ink: #1a1a1a;
  --ink-soft: #4a5568;
  --photo-blue: #4ea9c5;
  --photo-blue-deep: #23687d;
  --photo-blue-hover: #3f94ae;
  --photo-blue-100: #eef9fc;
  --photo-blue-200: #dff3f8;
  --photo-blue-300: #bfe4ee;
  --photo-blue-line: #a9d9e6;
  --cream: #ffffff;
  --sand: #f7fbfe;
  --line: #d9e8f2;
  --line-strong: #bfe4ee;
  --teal: #0d9488;
  --teal-soft: #ecfdf8;
  --white: #ffffff;
  --warn-bg: #fdf3e7;
  --warn-line: #e9c891;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, .05), 0 2px 10px rgba(26, 26, 26, .06);
  --shadow-md: 0 8px 28px rgba(26, 26, 26, .10);
  --shadow-lg: 0 20px 55px rgba(26, 26, 26, .16);

  --container: 1180px;
  --container-narrow: 760px;

  --font-serif: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + .8vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);

  --plum: var(--photo-blue);
  --plum-deep: var(--photo-blue-deep);
  --plum-50: var(--photo-blue-100);
  --rose: var(--photo-blue);
  --blush: var(--photo-blue-100);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: var(--photo-blue-deep);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  transition: color .18s ease;
}

a:hover {
  color: var(--photo-blue);
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0 0 .5em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
  margin: 0 0 1.1em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

blockquote {
  background: #f7fbfe;
  border-left: 4px solid var(--photo-blue);
  border-radius: 0 10px 10px 0;
  color: var(--photo-blue-deep);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-style: italic;
  line-height: 1.58;
  margin: 1.7rem 0;
  padding: .9rem 1.1rem .9rem 2.55rem;
  position: relative;
}

blockquote::before {
  color: var(--photo-blue);
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 700;
  left: .65rem;
  line-height: 1;
  position: absolute;
  top: .55rem;
  opacity: 1;
}

blockquote p {
  margin-bottom: .6rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--photo-blue);
  outline-offset: 2px;
}

::selection,
mark {
  background: var(--photo-blue);
  color: var(--white);
}

/* ==========================================================================
   Helpers repris du theme-exemple
   ========================================================================== */
.container {
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--container));
}

.container-narrow {
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--container-narrow));
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-sm {
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}

.eyebrow {
  align-items: center;
  color: var(--photo-blue-deep);
  display: inline-flex;
  font-size: var(--step--1);
  font-weight: 700;
  gap: .5em;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--photo-blue);
  border-radius: 2px;
  content: "";
  height: 2px;
  width: 1.6em;
}

.section-head {
  margin-bottom: 2.4rem;
  max-width: 640px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.wp-block-heading.is-style-asterisk::before,
.is-style-asterisk::before {
  content: none !important;
  display: none !important;
}

ul.is-style-checkmark-list,
.wp-block-list.is-style-checkmark-list {
  list-style: none;
  padding-left: 0;
}

ul.is-style-checkmark-list li,
.wp-block-list.is-style-checkmark-list li {
  padding-left: 2.1rem;
  position: relative;
}

ul.is-style-checkmark-list li::before,
.wp-block-list.is-style-checkmark-list li::before {
  align-items: center;
  background: var(--photo-blue);
  border-radius: 999px;
  color: var(--white);
  content: "\2713";
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  height: 1.25rem;
  justify-content: center;
  left: 0;
  line-height: 1;
  position: absolute;
  top: .25em;
  width: 1.25rem;
}

.lede {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

.skip-link {
  background: var(--photo-blue-deep);
  border-radius: 0 0 var(--radius-sm) 0;
  color: var(--white);
  left: -999px;
  padding: .7rem 1.2rem;
  position: absolute;
  top: 0;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Boutons, liens d'action et elements WordPress
   ========================================================================== */
.btn,
.wp-block-button__link,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  align-items: center;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  font-size: var(--step-0);
  font-weight: 700;
  gap: .5em;
  justify-content: center;
  line-height: 1;
  padding: .85em 1.5em;
  transition: all .2s ease;
}

.btn-primary,
.wp-block-button__link,
input[type="submit"] {
  background: var(--photo-blue);
  border: 1.5px solid var(--photo-blue);
  box-shadow: 0 4px 15px rgba(35, 112, 169, .26);
  color: var(--white);
  font-weight: 800;
}

.btn-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--photo-blue-hover);
  border-color: var(--photo-blue-hover);
  box-shadow: 0 8px 22px rgba(35, 112, 169, .34);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost,
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
  color: var(--photo-blue-deep);
}

.btn-ghost:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--photo-blue-100);
  border-color: var(--photo-blue);
  color: var(--photo-blue-deep);
}

.btn-light {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--photo-blue-deep);
}

.btn-light:hover {
  color: var(--photo-blue-deep);
  transform: translateY(-1px);
}

.chip {
  align-items: center;
  background: var(--photo-blue-100);
  border-radius: 100px;
  color: var(--photo-blue-deep);
  display: inline-flex;
  font-size: var(--step--1);
  font-weight: 700;
  gap: .4em;
  letter-spacing: .01em;
  padding: .35em .85em;
}

.chip-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.has-accent-background-color,
.has-photo-blue-background-color {
  background-color: var(--photo-blue) !important;
  color: var(--white) !important;
}

.has-accent-color,
.has-photo-blue-color {
  color: var(--photo-blue) !important;
}

.has-accent-2-background-color,
.has-photo-blue-light-background-color {
  background-color: var(--photo-blue-100) !important;
}

/* ==========================================================================
   Header et navigation
   ========================================================================== */
.site-header,
.wp-site-blocks > header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  height: 96px;
  justify-content: space-between;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
}

.brand,
.wp-block-site-title a {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav a,
.wp-block-navigation a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.wp-site-blocks > header .wp-block-navigation,
.wp-site-blocks > header .wp-block-search,
.wp-site-blocks > header .wp-block-buttons,
.wp-site-blocks > header .wp-block-button {
  transform: translateY(2px);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  background: var(--photo-blue-100);
  border-radius: 100px;
  color: var(--photo-blue-deep);
}

.wp-site-blocks > header .wp-block-button__link,
header.wp-block-template-part .wp-block-button__link {
  background: var(--photo-blue);
  border-color: var(--photo-blue);
  box-shadow: 0 6px 16px rgba(35, 112, 169, .24);
  color: var(--white) !important;
}

.wp-site-blocks > header .wp-block-button__link:hover,
header.wp-block-template-part .wp-block-button__link:hover {
  background: var(--photo-blue-hover);
  border-color: var(--photo-blue-hover);
  color: var(--white) !important;
}

/* ==========================================================================
   Hero generique inspire du theme-exemple
   ========================================================================== */
.hero {
  overflow: visible;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero::before {
  background: var(--white);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1.05fr .95fr;
}

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: .4em;
}

.hero h1 em {
  color: var(--photo-blue-deep);
  font-style: italic;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: 1.8rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.6rem;
}

.hero-trust {
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--step--1);
  gap: 1.2rem;
}

.hero-visual {
  aspect-ratio: 4 / 4.4;
  background: var(--photo-blue-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ==========================================================================
   Hero "apprendre la guitare" adapte en bleu pour la photo
   Les classes d'origine sont conservees pour reutiliser le HTML existant.
   ========================================================================== */
.guitar-hero-section,
.photo-hero-section {
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  padding: 60px 20px;
}

.guitar-hero-section *,
.photo-hero-section * {
  box-sizing: border-box;
}

.guitar-hero-container,
.photo-hero-container {
  align-items: center;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
}

.guitar-hero-left,
.photo-hero-left {
  flex: 1.2;
}

.guitar-badge-premium,
.photo-badge-premium {
  background-color: var(--photo-blue-100);
  border: 1px solid rgba(35, 112, 169, .25);
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(35, 112, 169, .06);
  color: var(--photo-blue-deep);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 8px 18px;
}

.guitar-hero-title,
.photo-hero-title {
  color: var(--ink);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 16px;
}

.guitar-hero-description,
.photo-hero-description {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.guitar-action-container,
.photo-action-container {
  margin-bottom: 25px;
  max-width: 550px;
}

.guitar-btn-link,
.photo-btn-link {
  background-color: var(--photo-blue);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(35, 112, 169, .25);
  color: var(--white);
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 18px 32px;
  text-align: center;
  text-decoration: none;
  transition: all .2s ease-in-out;
  width: 100%;
}

.guitar-btn-link:hover,
.photo-btn-link:hover {
  background-color: var(--photo-blue-hover);
  box-shadow: 0 10px 25px rgba(35, 112, 169, .35);
  color: var(--white);
  transform: translateY(-2px);
}

.guitar-features-mini,
.photo-features-mini {
  display: flex;
  gap: 32px;
}

.guitar-feat-item,
.photo-feat-item {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
}

.guitar-emoji,
.photo-emoji {
  font-size: 18px;
}

.guitar-hero-right,
.photo-hero-right {
  display: flex;
  flex: .8;
  justify-content: center;
}

.guitar-image-wrapper,
.photo-image-wrapper {
  max-width: 420px;
  position: relative;
  width: 100%;
}

.guitar-main-img,
.photo-main-img {
  border-radius: 40px;
  box-shadow: 0 0 0 10px var(--white), 0 15px 35px rgba(26, 26, 26, .08);
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 2;
}

.guitar-bg-shape,
.photo-bg-shape {
  background-color: var(--photo-blue-200);
  border-radius: 40px;
  height: 92%;
  left: 6%;
  position: absolute;
  top: 6%;
  width: 92%;
  z-index: 1;
}

.guitar-floating-badge,
.photo-floating-badge {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  bottom: 20px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, .08);
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  position: absolute;
  right: -20px;
  z-index: 3;
}

.badge-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Fonds et blocs bleus clairs
   ========================================================================== */
.surface-blue,
.wp-block-group.has-accent-2-background-color {
  background: var(--photo-blue-100);
}

.surface-blue-strong {
  background: var(--photo-blue-200);
}

.callout,
.wp-block-quote {
  background: #f7fbfe;
  border-color: var(--photo-blue);
  border-radius: 0;
}

:root :where(.wp-block-quote),
.jlp-article-content .wp-block-quote {
  border-radius: 0 10px 10px 0 !important;
  font-size: var(--step-0) !important;
  line-height: 1.58 !important;
  padding: .9rem 1.1rem .9rem 2.55rem !important;
}

.wp-block-separator {
  border-color: var(--line);
}

.wp-block-post-terms a,
.taxonomy-category a,
.taxonomy-post_tag a {
  background: var(--photo-blue-100);
  border-radius: 100px;
  color: var(--photo-blue-deep);
  display: inline-block;
  padding: .25rem .75rem;
  text-decoration: none;
}

.wp-block-post-terms a:hover,
.taxonomy-category a:hover,
.taxonomy-post_tag a:hover {
  background: var(--photo-blue-200);
  color: var(--photo-blue-deep);
}

/* ==========================================================================
   Recherche
   ========================================================================== */
.wp-block-search {
  max-width: 220px;
}

.wp-block-search .wp-block-search__inside-wrapper {
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--photo-blue);
  border-radius: 999px;
  display: flex;
  height: 46px;
  min-height: 46px;
  overflow: hidden;
}

.wp-block-search .wp-block-search__input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: .55rem .85rem;
}

.wp-block-search .wp-block-search__input:focus {
  outline: 0;
}

.wp-block-search .wp-block-search__button,
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--photo-blue);
  height: 46px;
  min-height: 46px;
  min-width: 42px;
  padding: 0 .75rem 0 .45rem;
  transform: none;
}

.wp-block-search .wp-block-search__button svg {
  fill: currentColor;
  height: 22px;
  min-height: 22px;
  min-width: 22px;
  width: 22px;
}

.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus-visible {
  color: var(--photo-blue-deep);
}

/* ==========================================================================
   Articles avec table des matieres sticky
   ========================================================================== */
.jlp-single-page {
  background: var(--white);
}

.jlp-single-header {
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
}

.jlp-single-header .wp-block-post-featured-image img {
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(26, 26, 26, .08);
}

.jlp-single-header .wp-block-post-title {
  font-size: clamp(2.45rem, 2rem + 1.75vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 920px;
}

.jlp-article-content h2 {
  font-size: clamp(1.65rem, 1.42rem + .72vw, 2.15rem);
  letter-spacing: 0;
  line-height: 1.12;
  margin-top: clamp(2.6rem, 5vw, 4rem);
}

.jlp-article-content h3 {
  font-size: clamp(1.18rem, 1.08rem + .42vw, 1.5rem);
  letter-spacing: 0;
  line-height: 1.18;
  margin-top: 2rem;
}

.jlp-article-content h4 {
  font-size: clamp(1.12rem, 1.02rem + .35vw, 1.35rem);
  letter-spacing: 0;
  line-height: 1.25;
  margin-top: 1.6rem;
}

.jlp-single-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 780px) minmax(260px, 360px);
  margin-inline: auto;
  max-width: 1280px;
  padding: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}

.jlp-article-column {
  min-width: 0;
}

.jlp-article-content {
  scroll-padding-top: 120px;
}

.jlp-article-content h2,
.jlp-article-content h3 {
  scroll-margin-top: 120px;
}

.jlp-toc-sidebar {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 24px;
}

.admin-bar .jlp-toc-sidebar {
  top: 56px;
}

.jlp-toc {
  background: var(--photo-blue-100);
  border: 1px solid var(--line);
  border-right: 4px solid var(--photo-blue);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(26, 26, 26, .08);
  max-height: 380px;
  overflow: auto;
  padding: 1.35rem 1.25rem;
  scrollbar-color: var(--photo-blue) transparent;
  scrollbar-width: thin;
}

.admin-bar .jlp-toc {
  max-height: 380px;
}

.jlp-toc::-webkit-scrollbar {
  width: 8px;
}

.jlp-toc::-webkit-scrollbar-thumb {
  background: var(--photo-blue);
  border-radius: 100px;
}

.jlp-toc-title {
  align-items: center;
  color: var(--photo-blue);
  cursor: pointer;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: space-between;
  line-height: 1.2;
  margin: 0 0 1.15rem;
  user-select: none;
}

.jlp-toc-title::after {
  color: var(--photo-blue);
  content: "\2304";
  display: inline-block;
  font-size: .85rem;
  line-height: 1;
  margin-left: 1rem;
  transform-origin: center;
  transition: transform .18s ease;
}

.jlp-toc-title:focus-visible {
  outline: 2px solid var(--photo-blue);
  outline-offset: 4px;
}

.jlp-toc.is-collapsed {
  padding-bottom: 1.35rem;
}

.jlp-toc.is-collapsed .jlp-toc-title {
  margin-bottom: 0;
}

.jlp-toc.is-collapsed .jlp-toc-title::after {
  transform: rotate(180deg);
}

.jlp-toc-list {
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jlp-toc-item {
  margin: 0;
}

.jlp-toc-item + .jlp-toc-item {
  margin-top: .7rem;
}

.jlp-toc a {
  border-left: 2px solid transparent;
  color: var(--ink);
  display: block;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.28;
  padding-left: .65rem;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.jlp-toc a:hover,
.jlp-toc a.is-active {
  border-color: var(--photo-blue);
  color: var(--photo-blue);
}

.jlp-toc-item-h3 a {
  color: #24364a;
  font-size: .9rem;
  font-weight: 650;
  padding-left: 1.4rem;
}

/* ==========================================================================
   Accordeons
   ========================================================================== */
.wp-block-accordion {
  border-top: 1px solid var(--line);
  margin-block: 1.1rem 0 !important;
}

.wp-block-accordion + .wp-block-accordion {
  border-top: 0;
  margin-block: 0 !important;
}

.wp-block-accordion-item {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0;
}

.wp-block-accordion > .wp-block-accordion-item,
.wp-block-accordion > .wp-block-accordion-item + .wp-block-accordion-item {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.wp-block-accordion-item.wp-block-accordion-item-is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-block-accordion-item:not(:first-child) {
  border-top: 0 !important;
}

.wp-block-accordion-heading,
.jlp-article-content .wp-block-accordion-heading {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.wp-block-accordion-heading__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font-sans);
  font-size: clamp(.92rem, .88rem + .16vw, 1rem);
  font-weight: 700;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.45;
  padding: .82rem 0;
  text-align: left;
  transform: none;
  width: 100%;
}

.wp-block-accordion-heading__toggle:hover,
.wp-block-accordion-heading__toggle:focus-visible,
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle,
.wp-block-accordion-heading__toggle[aria-expanded="true"] {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--photo-blue);
  transform: none;
}

.wp-block-accordion-heading__toggle:focus-visible {
  outline: 2px solid var(--photo-blue);
  outline-offset: 4px;
}

.wp-block-accordion-heading__toggle-title,
.wp-block-accordion-heading__toggle-title strong {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  margin: 0;
}

.wp-block-accordion-heading__toggle-icon {
  align-items: center;
  color: var(--photo-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 800;
  height: 1.4rem;
  justify-content: center;
  line-height: 1;
  width: 1.4rem;
}

.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
  transform: rotate(45deg);
}

.wp-block-accordion-panel {
  color: #4d5967;
  font-size: .95rem;
  line-height: 1.65;
  padding: 0 0 .9rem;
}

.wp-block-accordion-panel > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Commentaires
   ========================================================================== */
.wp-block-comments,
.wp-block-comments-query-loop {
  margin-inline: auto;
  max-width: 840px;
}

.wp-block-comments > h2,
.wp-block-comments-title {
  color: #1f2d3d;
  font-size: clamp(1.8rem, 1.45rem + 1.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 2rem;
  text-align: center;
}

.wp-block-comments-title {
  align-items: center;
  color: var(--photo-blue);
  display: flex;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.9rem);
  gap: .7rem;
  justify-content: center;
  margin-top: 3rem;
}

.wp-block-comments-title::before {
  border: 2px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 1rem;
  position: relative;
  width: 1.25rem;
}

.wp-block-comment-template,
.wp-block-comments .comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-comment-template > li,
.wp-block-comments .comment {
  margin: 0 0 2rem;
}

.wp-block-comment-template > li > .wp-block-group,
.wp-block-comments .comment-body {
  align-items: flex-start;
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 52px minmax(0, 1fr);
}

.wp-block-comment-template > li > .wp-block-group > .wp-block-group:first-child {
  display: contents;
}

.wp-block-comment-template > li > .wp-block-group > .wp-block-group:first-child > .wp-block-group {
  grid-column: 2;
}

.wp-block-comment-template > li > .wp-block-group > .wp-block-group:last-child {
  grid-column: 2;
}

.wp-block-avatar,
.wp-block-comments .avatar {
  border-radius: 999px;
  filter: grayscale(.08);
  overflow: hidden;
}

.wp-block-avatar img,
.wp-block-comments .avatar {
  background: #d4d8dd;
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--photo-blue-100);
}

.wp-block-comment-author-name,
.wp-block-comment-author-name a,
.comment-author .fn,
.comment-author .fn a {
  color: #1f2d3d;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.wp-block-comment-date,
.wp-block-comment-date a,
.comment-metadata,
.comment-metadata a {
  color: #7b8794;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-comment-content,
.comment-content {
  color: #4d5967;
  font-size: 1rem;
  grid-column: 2;
  line-height: 1.7;
  margin-top: .75rem;
}

.wp-block-comment-content p,
.comment-content p {
  margin-bottom: .65rem;
}

.wp-block-comment-reply-link,
.wp-block-comment-edit-link,
.reply {
  grid-column: 2;
  margin-top: .4rem;
}

.wp-block-comment-reply-link a,
.wp-block-comment-edit-link a,
.comment-reply-link,
.comment-edit-link {
  color: var(--photo-blue);
  font-weight: 800;
  text-decoration: none;
}

.wp-block-comment-reply-link a:hover,
.wp-block-comment-edit-link a:hover,
.comment-reply-link:hover,
.comment-edit-link:hover {
  color: var(--photo-blue-deep);
}

.comment-respond,
.wp-block-post-comments-form {
  background: var(--photo-blue-100);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(26, 26, 26, .08);
  margin: 2.5rem auto 0;
  max-width: 840px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.comment-reply-title {
  color: #1f2d3d;
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 1.6rem;
  text-align: center;
}

.comment-notes,
.logged-in-as {
  color: #536273;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.comment-notes #email-notes {
  color: #536273;
  display: inline-block;
  font-weight: 650;
}

.comment-notes .required-field-message {
  color: #536273;
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-top: .15rem;
}

.required-field-message,
.required {
  color: var(--photo-blue);
  font-weight: 800;
}

.comment-form p {
  margin-bottom: 1.1rem;
}

.comment-form label {
  color: #1f2d3d;
  display: block;
  font-weight: 800;
  margin-bottom: .45rem;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  background: var(--white);
  border: 1.5px solid #cfdce6;
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font: inherit;
  padding: .85rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: min(100%, 360px);
}

.comment-form textarea {
  min-height: 220px;
  resize: vertical;
  width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--photo-blue);
  box-shadow: 0 0 0 4px rgba(35, 112, 169, .12);
  outline: 0;
}

.comment-form-cookies-consent {
  align-items: flex-start;
  color: #1f2d3d;
  display: flex;
  font-weight: 650;
  gap: .65rem;
}

.comment-form-cookies-consent input {
  accent-color: var(--photo-blue);
  margin-top: .35rem;
}

.comment-form-cookies-consent label {
  display: inline;
  font-weight: 650;
  margin: 0;
}

.form-submit {
  margin-bottom: 0;
  margin-top: 1.5rem;
}

.comment-form input[type="submit"],
.form-submit .submit {
  background: var(--photo-blue);
  border-color: var(--photo-blue);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 112, 169, .24);
  color: var(--white);
  font-weight: 800;
  min-width: 240px;
  padding: 1rem 1.4rem;
  text-transform: uppercase;
}

.comment-form input[type="submit"]:hover,
.form-submit .submit:hover {
  background: var(--photo-blue-hover);
  border-color: var(--photo-blue-hover);
  box-shadow: 0 14px 30px rgba(35, 112, 169, .32);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .guitar-hero-section,
  .photo-hero-section {
    padding: 40px 20px;
  }

  .guitar-hero-container,
  .photo-hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .jlp-single-layout {
    display: block;
  }

  .jlp-toc-sidebar {
    display: none;
  }

  .guitar-badge-premium,
  .photo-badge-premium {
    margin: 0 auto 20px;
  }

  .guitar-action-container,
  .photo-action-container {
    margin: 0 auto 25px;
  }

  .guitar-features-mini,
  .photo-features-mini {
    justify-content: center;
  }

  .guitar-image-wrapper,
  .photo-image-wrapper {
    margin: 0 auto;
    max-width: 340px;
  }

  .guitar-floating-badge,
  .photo-floating-badge {
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 576px) {
  .container,
  .container-narrow {
    width: min(100% - 1.5rem, var(--container));
  }

  .guitar-hero-title,
  .photo-hero-title {
    font-size: 38px;
  }

  .guitar-hero-description,
  .photo-hero-description {
    font-size: 16px;
  }

  .guitar-btn-link,
  .photo-btn-link {
    font-size: 16px;
    padding: 16px 20px;
  }
}
