/* =====================================
   PAGES.CSS — VERSION COMPLETE CORRIGEE
===================================== */

/* -------------------------------------
   BASE SINGLE / LECTURE
------------------------------------- */
.single{
  width: 100%;
  max-width: none;
  margin: 0;
}

.single-head{
  margin-bottom: 1rem;
}

.single-title{
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 .5rem;
}

.single-deck{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 1.05rem;
}

.single-hero{
  margin: 1.2rem 0 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.single-hero img{
  width: 100%;
  height: auto;
  display: block;
}

.reading{
  font-size: 1.06rem;
  line-height: 1.9;
  max-width: none;
}

.reading p{
  margin: 0 0 1.15rem;
}

.reading h2,
.reading h3{
  font-family: var(--font-title);
  margin: 1.8rem 0 .7rem;
}

.post-nav{
  margin-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.post-nav a{
  color: inherit;
  text-decoration: none;
}

.pagination{
  margin-top: 1.4rem;
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* -------------------------------------
   ABOUT PAGE PREMIUM
------------------------------------- */
.about-hero{
  padding: 3rem 0;
}

.about-hero-inner{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.about-image img{
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.about-intro h1{
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin-bottom: .5rem;
}

.about-subtitle{
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text p{
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-values{
  padding: 3rem 0;
}

.values-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

.value-item{
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}

.value-item h3{
  font-family: var(--font-title);
}

.about-quote{
  padding: 2rem 0;
  text-align: center;
}

.about-quote blockquote{
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-style: italic;
  opacity: .8;
}

/* -------------------------------------
   ABOUT SIGNATURE PAGE
------------------------------------- */
.about-signature{
  padding: 2.2rem 0 3rem;
}

.kicker{
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.about-title{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 .6rem;
}

.about-block{
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.about-block--hero{
  background:
    radial-gradient(900px 500px at 15% 15%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%),
    radial-gradient(900px 500px at 85% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 70%, transparent);
}

.about-block__grid{
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 0;
  align-items: stretch;
}

.about-block__grid--reverse{
  grid-template-columns: .95fr 1.25fr;
}

.about-block__text{
  padding: clamp(1.4rem, 2.6vw, 2rem);
}

.about-block__media{
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  justify-content: center;
}

.about-content.reading{
  max-width: 70ch;
}

.about-photo-frame{
  border-radius: 26px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
}

.about-photo-frame img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.about-photo-frame--placeholder{
  height: 520px;
}

.about-badge{
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: .85rem 1rem;
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
}

.about-badge__name{
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.about-badge__role{
  color: var(--muted);
  margin-top: .15rem;
}

.about-features{
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0;
}

.feat{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .75rem .8rem;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface2) 65%, transparent);
}

.feat__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  font-size: 1.05rem;
}

.feat__title{
  font-weight: 700;
  margin-bottom: .15rem;
}

.feat__text{
  color: var(--muted);
}

.about-actions{
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.about-h2{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0 0 .6rem;
}

.about-mini{
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .9rem 0 1rem;
}

.mini-pill{
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-size: .92rem;
}

.about-card{
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 1.1rem;
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
}

.about-resources{
  margin-top: 1.8rem;
}

.about-resources__head{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resources-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.resource{
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.resource:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 10%, transparent),
    color-mix(in srgb, var(--accent) 8%, transparent)
  );
}

.resource__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: .7rem;
}

.resource__title{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .25rem;
}

.resource__text{
  color: var(--muted);
}

/* -------------------------------------
   SINGLE ARTICLE + SIDEBAR
------------------------------------- */
.single-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 320px;
  gap: 2rem;
  align-items: start;
}

.single-main{
  min-width: 0;
}

.single-sidebar{
  min-width: 0;
  width: 100%;
}

/* Sidebar globale (articles) */
.site-sidebar{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 95px;
}

.sidebar-card{
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
}

.sidebar-title{
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin: 0 0 .8rem;
}

.sidebar-text{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.sidebar-link{
  display: inline-block;
  margin-top: .55rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.sidebar-author-photo{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .8rem;
}

.sidebar-author-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-posts{
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.sidebar-post-card{
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .55rem;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sidebar-post-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.sidebar-post-thumb{
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-post-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-thumb-placeholder{
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.sidebar-post-body{
  min-width: 0;
}

.sidebar-post-title{
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
}

.sidebar-post-title a{
  color: inherit;
  text-decoration: none;
}

.sidebar-post-excerpt{
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li{
  margin-bottom: .55rem;
}

.sidebar-list a{
  color: inherit;
  text-decoration: none;
}

.sidebar-list a:hover,
.sidebar-post-title a:hover{
  color: var(--primary);
}

.sidebar-quote blockquote{
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

/* -------------------------------------
   CONTACT PAGE
------------------------------------- */
.contact-page{
  padding: 2.5rem 0;
}

.contact-intro{
  margin-bottom: 1rem;
}

.contact-intro h1{
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin: 0 0 .5rem;
}

.contact-subtitle{
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-block{
  align-self: start;
}

.contact-form-block h2{
  font-family: var(--font-title);
  margin-bottom: .6rem;
}

.contact-text{
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Colonne droite Contact */
.contact-info{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  justify-content: flex-start;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  top: 0;
}

/* Très important : on neutralise tout sticky/héritage */
.contact-author-card,
.contact-info .contact-card,
.contact-info .contact-author-card{
  position: relative !important;
  top: auto !important;
  align-self: start;
  margin-top: 0 !important;
}

.contact-card{
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow);
}

.contact-card h3{
  font-family: var(--font-title);
  margin: 0 0 .5rem;
}

.contact-author-img{
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: .6rem;
  display: block;
}

.contact-small-text{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.contact-list{
  margin: 0;
  padding-left: 1.1rem;
}

.contact-list li{
  margin-bottom: .35rem;
}

.contact-quote blockquote{
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-style: italic;
}

/* -------------------------------------
   WPForms (Contact)
------------------------------------- */
.contact-form .wpforms-container{
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  padding: .7rem .8rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: .95rem;
}

.contact-form textarea{
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--primary);
}

.contact-form button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: .6rem;
}

.contact-form button:hover{
  opacity: .9;
}

/* Labels dark mode / WPForms */
.contact-form .wpforms-form label,
.contact-form .wpforms-form .wpforms-field-label,
.contact-form .wpforms-form .wpforms-field-name,
.contact-form .wpforms-form .wpforms-field-name label,
.contact-form .wpforms-form .wpforms-field-name .wpforms-field-label,
.contact-form .wpforms-form .wpforms-field-sublabel{
  color: var(--text) !important;
  font-size: .95rem;
}

.contact-form .wpforms-required-label{
  color: var(--accent) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: var(--muted);
  opacity: .85;
}

/* -------------------------------------
   RESPONSIVE
------------------------------------- */
@media (max-width: 1100px){
  .single-layout{
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
  }
}

@media (max-width: 980px){
  .single-layout{
    grid-template-columns: 1fr;
  }

  .site-sidebar{
    position: relative;
    top: auto;
  }

  .about-block__grid,
  .about-block__grid--reverse{
    grid-template-columns: 1fr;
  }

  .about-photo-frame img,
  .about-photo-frame--placeholder{
    height: 420px;
  }

  .resources-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px){
  .about-hero-inner{
    grid-template-columns: 1fr;
  }

  .values-grid{
    grid-template-columns: 1fr;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .resources-grid{
    grid-template-columns: 1fr;
  }
}

/* =====================================
   CONTACT – FIX ALIGNEMENT + LARGEURS
===================================== */

/* 1) La grille doit vraiment aligner les 2 colonnes en haut */
.contact-grid{
  align-items: start !important;
}

/* 2) Le contenu de gauche ne doit pas être poussé vers le bas
      par la marge par défaut du <h2> */
.contact-form-block{
  align-self: start !important;
}

.contact-form-block h2{
  margin-top: 0 !important;
  margin-bottom: .6rem;
}

/* 3) La colonne droite commence bien en haut */
.contact-info{
  align-self: start !important;
  justify-content: flex-start !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  width: 100%;
}

/* 4) Tous les blocs de droite ont EXACTEMENT la même largeur */
.contact-info > .contact-card,
.contact-info > .contact-author-card,
.contact-author-card,
.contact-card{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 5) Neutralise tout ancien comportement flottant/sticky */
.contact-info .contact-card,
.contact-info .contact-author-card{
  position: relative !important;
  top: auto !important;
}

/* 6) Les contenus internes ne doivent pas rétrécir visuellement les cards */
.contact-card p,
.contact-card ul{
  margin-top: 0;
  margin-bottom: 0;
}

.contact-list{
  margin: 0 !important;
  padding-left: 1.1rem;
}

/* 7) Si besoin : aspect visuel uniforme */
.contact-card{
  display: block;
}
