/*
Theme Name: Generatepress theme modifications (Cosmik.me)
Theme URI: https://www.cosmik.me/
Description: Thème enfant de GeneratePress pour les modifications spécifiques de Cosmik.me
Author: Fritig Robin
Author URI: https://www.cosmik.me/
Template: generatepress
Version: 1.0.0
*/

/* ========= Variables ========= */
:root{
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Serif;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #586069;
  --color-border: #eeeeee;
  --color-accent: #111111;
  
  /* ↓ liens */
  --link: #8b0000;
  --link-hover: #5f0000;
  --link-visited: #6d0030;
  
  --container-max: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --shadow-soft: 0 2px 8px rgba(0,0,0,.06);
}

/* ========= Contenu ========= */
.inside-article{ padding: 40px 80px !important; }
@media (max-width:640px){ .inside-article{ padding: 10px 20px !important; } }
.entry-content{ padding: 10px 20px !important; }
.entry-content > ul:last-of-type { border-left : inherit !important }
.entry-content > ul:last-of-type a[href]::after{
  content: none !important;
}
.entry-content a:has(img)::after{
  content: none !important;
}
/* Appliquer la couleur des liens (hors boutons) */
.entry-content a:where(:not(.wp-block-button__link):not(.button):not(.ed-btn)),
.ed-nav .menu a,
.ed-footer a{
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-underline-offset: 2px;
  text-decoration-thickness: .08em;
}
.entry-content a:where(:not(.wp-block-button__link):not(.button):not(.ed-btn)):hover,
.ed-nav .menu a:hover,
.ed-footer a:hover{
  color: var(--link-hover);
  border-bottom-color: currentColor;
}
.entry-content a:visited{ color: var(--link-visited); }
.entry-content p{
  margin-bottom: 1.2em;
}
@media (max-width:783px){
	.entry-content p{
	  font-size:120%
	}
}

/* ========= Header sticky ========= */
.site-header, .ed-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
@media (min-width:783px){
  body.admin-bar .site-header, body.admin-bar .ed-header{ top:32px; }
}
@media (max-width:782px){
  body.admin-bar .site-header, body.admin-bar .ed-header{ top:46px; }
}

/* ========= Barre haute ========= */
.ed-bar{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 168px;
}
.ed-brand{ display:flex; align-items:center; gap:18px; text-decoration:none; color:inherit; width:60% }
.ed-brand img{
  height: 17% ; width:17%
}

.ed-title{ line-height:1.15; display:flex; flex-direction:column; }

@media (max-width:782px){
  .ed-brand{
    width:90%
  }
  .ed-brand img{
    height: 20% !important;
    width: 20% !important;
  }
}
.ed-name{
  font-family: serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: .2px;
  color: var(--color-text);
}
.ed-sub,.ed-info{
  display:block;
  margin-top:6px;
  font-family:"Montserrat",sans-serif;
  font-weight:400;
  font-size:14px;
  line-height:1.3;
  color:#6a5f57;
}

/* Titres */
h1,h2,h3,h4,h5{ font-family: serif !important; }
h1,h2{ color:#8b0000 !important; margin: 50px 0 30px !important; }
h3,h4,h5{ color:#333 !important; margin: 40px 0 15px !important; font-weight:600 !important; }

/* ========= CTA ========= */
@media (min-width:801px){
  .ed-cta{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; margin-left:auto; }
  .ed-phone{ display:block; margin-top:2px; }
}
@media (max-width:800px){
  .ed-cta{ display:flex; align-items:center; gap:16px; margin-left:auto; }
  .ed-phone{ display:none; }
}
.ed-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:4px;
  background:#efe9e1;
  color:#8f3a32;
  font-family:"Montserrat",sans-serif;
  font-weight:600;
  text-decoration:none;
  transition:filter .2s ease;
}
.ed-btn:hover{ filter:brightness(.96); }
@media (max-width:800px){
  .ed-btn{
    display:none
  }
}
.ed-phone{
  color:#6a5f57; text-decoration:none;
  font-family:var(--font-body);
  font-weight:100; font-size:22px; text-align:center; margin:0 auto;
}

/* ========= Nav ========= */
.ed-nav{ border-top:1px solid #eee; }
.ed-nav .menu{
  max-width:var(--container-max); margin:0 auto; padding:8px var(--gutter);
  display:flex; flex-wrap:wrap; align-items:center; gap:22px; list-style:none;
}
.ed-nav .menu li{ margin:0; }
.ed-nav .menu a{
  display:inline-block; padding:10px 8px; text-decoration:none;
  color:gray !important; font-family:"Montserrat",sans-serif; font-weight:500;
  font-size:13px; line-height:1.35; border-radius:4px; transition:background .2s,color .2s;
}
.ed-nav .menu a:hover{ color:#8f3a32; }
.ed-nav .menu a.current{
  color:#6a574f; background:#e9dfd5; border-bottom:none; padding:10px 12px;
}
.ed-nav .menu li.right{ margin-left:auto; display:flex; align-items:center; }

/* Burger */
.ed-burger{ display:none; background:none; border:0; padding:6px 4px; cursor:pointer; }
.ed-burger span{ display:block; width:22px; height:2px; margin:4px 0; background:#333; }

/* Responsive nav */
@media (max-width:1100px){ .ed-name{ font-size:48px; } }
@media (max-width:980px){ 
  .ed-name{ font-size:40px; } 
  .ed-sub,.ed-info{ font-size:13px; } 
}
@media (max-width:640px){ 
  .ed-name{ font-size:20px; } 
  .ed-sub,.ed-info{ font-size:16px; } 
}
@media (max-width:720px){
  .ed-burger{ display:block; }
  .ed-nav{ display:none; }
  .ed-nav.open{ display:block; }
  .ed-nav .menu{ flex-direction:column; align-items:flex-start; gap:0; }
  .ed-nav .menu li.right{ margin-left:0; }
  .ed-nav .menu a{ padding:12px 0; }
}

/* ========= Listes stylées ========= */
.entry-content ul,
.prose ul{
  list-style:none;
  margin:16px 0 30px;
  padding:12px 16px;
  background:#f7f4f1;
  border-left:4px solid #b5453a;
  border-radius:8px;
}
.entry-content ul > li,
.prose ul > li{
  position:relative;
  margin:8px 0;
  padding-left:18px;
}
.entry-content ul > li::before,
.prose ul > li::before{
  content:"";
  position:absolute; left:0; top:0.85em; transform:translateY(-50%);
  width:6px; height:6px; border-radius:50%;
  background:#2ea66a; box-shadow:0 0 0 2px #eaf3ee inset;
}
.entry-content ul ul,
.prose ul ul{
  background:transparent; border:0; border-radius:0;
  padding:0 0 0 14px; margin-top:6px;
}
.entry-content ul ul > li::before,
.prose ul ul > li::before{
  background:#9aa3a0; box-shadow:none;
}

/* Icône de lien dans le contenu */
.entry-content a[href^="http"]:not(.wp-block-button__link):not(.button):not(.ed-btn)::after{
  content:" (🔗)";
  font-size:.95em;
}

.entry-content img{
  border-radius:20px;
  margin:5px 0 0px 0;
}

.ed-nav .menu a::after, .nav a::after, .menu a::after{ content:none !important; }
.entry-content a.no-link-icon::after{ content:none !important; }

/* ========= Footer élégant ========= */
.ed-footer{
  --ed-beige:#d9c8ad;
  --ed-text:#111;
  --ed-muted:#6a5f57;
  --ed-link:#111;
  --ed-link-hover:#8b0000;
  background:#fff;
  color:var(--ed-text);
  border-top:4px solid var(--ed-beige);
  border-bottom:4px solid var(--ed-beige);
}
.ed-footer__inner{
  max-width:1200px;
  margin:0 auto;
  padding:28px 20px 18px;
}
.ed-footer__brand{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; flex-wrap:wrap; padding-bottom:6px; border-bottom:1px solid #eee;
  margin-bottom:18px;
}
.ed-footer__title{
  font-family:serif; font-weight:400; letter-spacing:.2px;
  font-size:22px; line-height:1.25;
}
.ed-footer__status{
  font-family:"Montserrat",sans-serif; font-size:12px; color:var(--ed-muted);
}
.ed-footer__socials{ display:flex; gap:10px; align-items:center; margin:10px 0 6px; }
.soc{ width:28px; height:28px; display:inline-block; border-radius:3px; }
.soc-ig{ background:#e1306c; } .soc-fb{ background:#1877f2; }
.soc-in{ background:#0a66c2; } .soc-yt{ background:#ff0000; }
.soc::after{
  content:""; display:block; width:16px; height:16px; margin:6px auto 0;
  background:#fff; mask-repeat:no-repeat; mask-position:center; mask-size:contain;
}
.soc-ig::after{ mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6zM18.5 6a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z"/></svg>'); }
.soc-fb::after{ mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M13.5 9H16l.5-3h-3V4.5C13.5 3.7 13.8 3 15 3h1.5V0h-2C11.9 0 10.5 1.8 10.5 4.5V6H8v3h2.5v12h3V9z"/></svg>'); }
.soc-in::after{ mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M4.98 3.5C4.98 5 3.9 6 2.5 6S0 5 0 3.5 1.1 1 2.5 1s2.48 1 2.48 2.5zM0 8h5v16H0zM8 8h4.8v2.2h.1c.7-1.2 2.3-2.4 4.7-2.4 5 0 5.9 3.2 5.9 7.3V24h-5v-7.1c0-1.7 0-3.9-2.4-3.9s-2.8 1.9-2.8 3.8V24H8V8z"/></svg>'); }
.soc-yt::after{ mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .6 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.3.6 9.3.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8zM9.5 15.5v-7l6 3.5-6 3.5z"/></svg>'); }

.ed-footer__cols{
  display:grid; grid-template-columns: 1fr 1fr; gap:40px; margin-top:8px;
}
.ed-col h3{ font-family:serif; font-size:18px; margin:10px 0 8px; }
.ed-col p, .ed-col li{ font-family:"Montserrat",sans-serif; font-size:14px; line-height:1.5; color:var(--ed-text); }

.ed-col ul{ list-style: disc inside; margin:6px 0 0; padding:0; }
.ed-col ul li{ margin:6px 0; }

.ed-footer a{ color:var(--ed-link); text-decoration:none; border-bottom:1px solid rgba(0,0,0,.08); }
.ed-footer a:hover{ color:var(--ed-link-hover); border-bottom-color: currentColor; }

.ed-credit{ font-style:italic; color:var(--ed-muted); margin-top:10px; font-size:12px; }

.ed-footer__bottom{
  margin-top:18px; padding-top:12px; border-top:1px solid #eee;
  font-family:"Montserrat",sans-serif; font-size:12px; color:#444; text-align:center;
}

@media (max-width: 860px){
  .ed-footer__cols{ grid-template-columns:1fr; gap:22px; }
  .ed-footer__brand{ align-items:flex-start; gap:8px; }
}

/* YT videos */
.entry-content figure.wp-block-embed-youtube{
  max-width: 700px;
  margin-left: 0;
}

/* Forcer un ratio 16:9 propre et responsive */
.entry-content figure.wp-block-embed-youtube .wp-block-embed__wrapper{
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 9 / 16 = 0.5625 → ratio 16:9 */
}

.entry-content figure.wp-block-embed-youtube iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.h1-long{
  font-size:40px !important;
  line-height:1.1;
}

/*************** AVATAR CARD ************************/

/* Carte auteur plus compacte */
.sco-author-bar{
  max-width: 720px;
  margin: 10px 0 18px;
  padding: 10px 16px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color:#555;
}

.sco-author-bar__layout{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.sco-author-bar__avatar{
  border-radius: 50%;
  width: 55px;
  height: 56px;
  object-fit: cover;
  margin: 0 0 0 19px;
  max-width: fit-content;
}


@media (max-width:991px){ 
	.sco-author-bar__avatar{
		border-radius: 50%;
		width: 67px;
		height: 42px;
		object-fit: cover;
		margin: 0 0 0 -6px;
		max-width: fit-content;
	}
}


/* ligne titre/date plus serrée */
.sco-author-bar__top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:2px;
}

.sco-author-bar__meta{
  font-size:12px;
  color:#777;
  margin-bottom:4px;
}

/* bloc bio + réseaux plus compact */
.sco-author-bar__bottom{
  margin-top:2px;
  border-top:1px solid #f0f0f0;
  padding-top:4px;
}

.sco-author-bar__bio{
  margin: 0 29px 13px 5px;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}
.sco-author-bar__top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:4px;
}
.sco-author-bar__icon{ font-size:18px; }
.sco-author-bar__author{
  font-weight:600;
  color:#333;
}
.sco-author-bar__sep{ margin:0 4px; color:#aaa; }
.sco-author-bar__date{ color:#777;     margin: 0 0 0 27px;}

.sco-author-bar__meta{
  font-size:13px;
  color:#777;
  
      margin: 0 0 6px 27px;
}

.sco-author-bar__bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:21px;
  border-top:1px solid #f0f0f0;
  padding-top:6px;
}
.sco-author-bar__tagline{
  margin:0;
  font-size:13px;
  color:#555;
  font-style:italic;
}

/* Bio longue = desktop, accroche courte = mobile */
.sco-author-bar__bio--desktop {
  display: block;
}

.sco-author-bar__tagline--mobile {
  display: none;
}

@media (max-width: 768px) {
  .sco-author-bar__bio--desktop {
    display: none;
  }
  .sco-author-bar__tagline--mobile {
    display: block;
  }
}


/* === Réseaux sociaux auteur : icônes images rondes === */
.sco-author-bar__socials{
    display: grid;
    gap: 8px;
    margin: 10px auto !important;
    text-align: center !important;
    width: 10px !important;
}
@media (max-width:991px){
	.sco-author-bar__socials{
		width: inherit !important;
	}
}

.sco-author-bar__social{
  display:inline-flex;
  width:28px;
  height:28px;
  border-radius:999px;
  background-color:transparent;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;

  /* on garde IN/IG/YT pour l’accessibilité, mais on le masque visuellement */
  text-indent:-9999px;
  overflow:hidden;

  transition:transform 0.15s ease, opacity 0.15s ease;
}

.sco-author-bar__social:hover,
.sco-author-bar__social:focus{
  transform:scale(1.05);
  opacity:0.85;
}

/* Icônes spécifiques */
.sco-author-bar__social--linkedin{
  background-image:url('/wp-content/uploads/socials_networks/linkedin.png');
}
.sco-author-bar__social--instagram{
  background-image:url('/wp-content/uploads/socials_networks/instagram.png');
}
.sco-author-bar__social--youtube{
  background-image:url('/wp-content/uploads/socials_networks/youtube.png');
}

@media (max-width:768px){
  .sco-author-bar{ margin:0 12px 20px; }
}

.sco-author-bar__title{
  font-size: 13px;
  font-weight: 400;
   color: darkred;
}

/* Valeur par défaut au cas où le style inline n'est pas là */
.cs-hero {
  --hero-veil-strength: 0.55;
  position: relative;
  margin-bottom: 40px;
  height: clamp(260px, 45vh, 520px);
  overflow: hidden;
  border-radius: 10px;
}

@media (max-width:640px){ 
  .cs-hero {
    height: clamp(260px, 33vh, 520px);
  }
}

/* Voile qui utilise la variable */
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0, 0) 0%,
    rgba(0,0,0, calc(var(--hero-veil-strength) * 0.25)) 40%,
    rgba(0,0,0, calc(var(--hero-veil-strength) * 0.60)) 100%
  );
}

/* Image COVER — centrage vertical parfait */
.cs-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  z-index: 0;
}

/* Conteneur du titre : AU-DESSUS du voile */
.cs-hero__title-slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 3vw, 36px);
  text-align: left;
  padding-left: clamp(24px, 3vw, 80px);
  pointer-events: none;
  z-index: 2;
}

/* H1 dans la cover */
.cs-hero__title-slot h1 {
  margin: 0;
  color: #ffffff !important;
  font-family: "Montserrat", var(--font-heading, serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.65);
}

.cs-hero__title-slot h1.h1-long {
  font-size: clamp(22px, 3vw, 42px);
}

/* ========= HERO avec image mise en avant ========= */
div.cs-hero {
  display: block !important;
}

/* Courbe dynamique ~ veil^1.5 */
.cs-hero {
  --hero-veil-strength: 0.55;
  --shadow-strength: calc(var(--hero-veil-strength) * sqrt(var(--hero-veil-strength)));
}

/* Text-shadow dynamique haut de gamme */
.cs-hero__title-slot h1 {
  text-shadow:
    0 0 calc(4px * var(--shadow-strength)) rgba(0,0,0,0.70),
    0 calc(1px * var(--shadow-strength)) calc(10px * var(--shadow-strength)) rgba(0,0,0,0.55);
  transition: text-shadow 0.25s ease-out;
}


/* ========= MODAL pour Leadmagnet PDF ========= */

/* Empêcher la page de scroller quand la modale est ouverte */
html.cs-modal-open,
body.cs-modal-open {
  overflow: hidden;
}

/* Ajuste un peu les marges des titres dans la modale */
#cs-pdf-modal h3 {
  margin-top: 20px;
}
#cs-pdf-modal h4 {
  margin-top: 0;
}

/* ============== MODALE PDF ================= */

.cs-soft-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-soft-modal.is-open {
  display: block;
}

.cs-soft-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Contenant de la modale */
.cs-soft-modal__dialog {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
  padding: 24px 24px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);

  /* hauteur max + scroll interne */
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Croix de fermeture en haut à droite */
.cs-soft-modal__close {
  position: sticky;       /* reste visible quand le contenu scroll */
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #444;
  z-index: 2;
}

.cs-soft-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Layout interne */
.cs-soft-modal__inner {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.cs-soft-modal__col {
  flex: 1;
  font-size: 14px;
  color: #444;
}

/* Colonne texte / téléphone */
.cs-soft-modal__col--text h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 18px;
}

.cs-soft-modal__call {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

/* Colonne formulaire */
.cs-soft-modal__col--form h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.cs-soft-modal__form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.cs-soft-modal__form input,
.cs-soft-modal__form textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.cs-soft-modal__form textarea {
  resize: vertical;
  min-height: 72px;
}

.cs-soft-modal__submit {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #efe9e1;
  color: #8f3a32;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cs-soft-modal__hint {
  margin-top: 6px;
  font-size: 11px;
  color: #777;
}

/* ======= MOBILE ======= */
@media (max-width: 640px) {
  .cs-soft-modal__dialog {
    margin: 10px;
    padding: 18px 16px 16px;
    max-height: calc(100vh - 20px); /* un peu moins de marge */
  }

  .cs-soft-modal__inner {
    flex-direction: column;
  }
}


/* ===== Accordéon FAQ sophrologie ===== */
.faq-accordeon {
  max-width: 760px;
  margin: 40px 0 0;
  padding: 0 1rem;
}

.faq-accordeon__title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: left;
}

/* Item */
.faq-accordeon__item {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Bouton question */
.faq-accordeon__question {
  width: 100%;
  padding: 0.8rem 0.2rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  color: #333;
  box-shadow: none;
}

/* Icône + / - */
.faq-accordeon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.8rem;
  line-height: 1;
}

/* Contenu réponse (animé par JS via max-height) */
.faq-accordeon__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.45s ease;
}

.faq-accordeon__item.is-open .faq-accordeon__content {
  opacity: 1;
  margin-bottom: 0.6rem;
}

/* Icône en mode ouvert */
.faq-accordeon__item.is-open .faq-accordeon__icon {
  border-color: rgba(0,0,0,0.25);
}

.faq-accordeon__question:hover,
.faq-accordeon__question:focus {
  color: #333;
  background-color: #faf5f1;
  box-shadow: none;
  outline: none;
}

/* Item ouvert */
.faq-accordeon__item.is-open .faq-accordeon__question {
  background-color: #f7f1eb;
  color: #333;
}

/* Neutralisation styles globaux */
.faq-accordeon__question,
.faq-accordeon__question:hover,
.faq-accordeon__question:focus {
  border-radius: 0;
  border: none;
}




/* Respecter la largeur "redimensionnée" de Gutenberg sur desktop */
@media (min-width: 768px) {
  .entry-content figure.wp-block-image.is-resized img {
    width: auto !important;      /* ne plus forcer 100% */
    max-width: 100%;             /* reste responsive si la colonne est plus petite */
  }

  /* Optionnel : limiter la largeur du bloc lui-même */
  .entry-content figure.wp-block-image.is-resized {
    max-width: 498px;
    margin-left: 0;              /* ou auto pour centrer */
  }
}




/* Wrapper auteur + table des matières */
.sco-author-toc-wrap {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Desktop : auteur à gauche, TOC à droite */
@media (min-width: 992px) {
  .sco-author-toc-wrap {
    display: flex;
    align-items: stretch;
    gap: 24px;
  }

  .sco-author-toc-wrap .sco-author-bar {
    flex: 0 0 60%;
    max-width: 60%;
  }

  .sco-author-toc-wrap .lwptoc {
    flex: 1 1 40%;
    max-width: 40%;
    margin: 0;
  }
}

/* Mobile : auteur au-dessus, TOC en dessous */
@media (max-width: 991px) {
  .sco-author-toc-wrap {
    display: block;
  }
  .sco-author-toc-wrap .lwptoc {
    margin-top: 16px;
  }
}

/* CoconSEM SEO TOC – élargir le bloc de table des matières sur desktop */
@media (min-width: 992px) {
  .sco-author-toc-wrap .coconsem-toc {
    flex: 0 0 48%;
    max-width: 48%;
  }
  .sco-author-toc-wrap .sco-author-bar {
    flex: 1 1 52%;
    max-width: 52%;
  }
}
