/*
Theme Name: Revelando Child
Theme URI: https://revelando.xyz/
Description: Thème enfant Kadence pour Revelando.
Author: André Ortais
Author URI: https://seofrances.fr/
Template: kadence
Version: 1.0.0
Text Domain: revelando-child
*/

/* =========================================================
   REVELANDO — HOME
   Kadence + Gutenberg
========================================================= */

.site-header-row-container-inner {
  min-height: 76px;
}

.site-branding .site-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-navigation .header-menu-container > ul > li > a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

:root {
  --revelando-dark: #171816;
  --revelando-dark-soft: #242520;
  --revelando-light: #f5f3ee;
  --revelando-white: #ffffff;
  --revelando-text: #353630;
  --revelando-muted: #6e7068;
  --revelando-line: rgba(23, 24, 22, 0.14);
  --revelando-accent: #987553;
  --revelando-wide: 1240px;
  --revelando-reading: 720px;
  --revelando-radius: 2px;
  --revelando-shadow: 0 20px 60px rgba(23, 24, 22, 0.08);
}


/* =========================================================
   BASE
========================================================= */

.revelando-home {
  overflow: hidden;
  color: var(--revelando-text);
  background: var(--revelando-white);
}

.revelando-home,
.revelando-home button,
.revelando-home input,
.revelando-home textarea {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

.revelando-home h1,
.revelando-home h2,
.revelando-home h3 {
  margin-top: 0;
  color: var(--revelando-dark);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.revelando-home h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 0.98;
}

.revelando-home h2 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 3.6vw, 3.65rem);
  line-height: 1.05;
}

.revelando-home h3 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.revelando-home p {
  line-height: 1.75;
}

.revelando-home .has-medium-font-size {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem) !important;
  line-height: 1.7;
}

.revelando-home img {
  display: block;
  width: 100%;
}


/* =========================================================
   LARGEURS ET ESPACEMENTS
========================================================= */

.revelando-section {
  padding-top: clamp(90px, 11vw, 160px);
  padding-bottom: clamp(90px, 11vw, 160px);
}

.revelando-section > *:last-child,
.revelando-feature-copy > *:last-child,
.revelando-contact > *:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PETITS SUR-TITRES
========================================================= */

.revelando-eyebrow {
  margin-bottom: 22px !important;
  color: var(--revelando-accent);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.revelando-number {
  margin-bottom: 26px !important;
  color: var(--revelando-accent);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}


/* =========================================================
   HERO
========================================================= */

.revelando-hero-columns {
  gap: clamp(44px, 7vw, 100px);
  margin-bottom: 0;
}

.revelando-intro {
  max-width: 590px;
  margin-bottom: 36px;
  color: var(--revelando-muted);
}

.revelando-hero-image {
  position: relative;
  margin: 0;
}

.revelando-hero-image::before {
  position: absolute;
  z-index: -1;
  top: clamp(18px, 2vw, 30px);
  right: clamp(-18px, -2vw, -30px);
  width: 72%;
  height: 85%;
  background: var(--revelando-light);
  content: "";
}

.revelando-hero-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--revelando-shadow);
}


/* =========================================================
   BOUTONS
========================================================= */

.revelando-home .wp-block-buttons {
  gap: 12px;
}

.revelando-home .wp-block-button__link {
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid var(--revelando-dark);
  border-radius: var(--revelando-radius);
  background: var(--revelando-dark);
  color: var(--revelando-white);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.revelando-home .wp-block-button__link:hover,
.revelando-home .wp-block-button__link:focus {
  border-color: var(--revelando-accent);
  background: var(--revelando-accent);
  color: var(--revelando-white);
  transform: translateY(-2px);
}

.revelando-home .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--revelando-dark);
}

.revelando-home .is-style-outline .wp-block-button__link:hover,
.revelando-home .is-style-outline .wp-block-button__link:focus {
  border-color: var(--revelando-dark);
  background: var(--revelando-dark);
  color: var(--revelando-white);
}


/* =========================================================
   DÉCLARATION CENTRALE
========================================================= */

.revelando-statement-section {
  padding-top: clamp(90px, 11vw, 160px);
  padding-bottom: clamp(90px, 11vw, 160px);
  background: var(--revelando-light);
}

.revelando-statement {
  max-width: 900px;
}

.revelando-statement h2 {
  margin-right: auto;
  margin-left: auto;
}

.revelando-statement .has-medium-font-size {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--revelando-muted);
}


/* =========================================================
   SECTIONS IMAGE + TEXTE
========================================================= */

.revelando-feature {
  gap: clamp(45px, 7vw, 100px);
  margin-bottom: 0;
}

.revelando-feature-copy {
  padding: clamp(10px, 2vw, 30px) 0;
}

.revelando-feature-copy p:not(.revelando-eyebrow) {
  color: var(--revelando-muted);
}

.revelando-feature-image,
.revelando-about-image {
  margin: 0;
}

.revelando-feature-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.revelando-about-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   VALEUR POUR L’AGENCE
========================================================= */

.revelando-agency-section {
  background: var(--revelando-dark);
  color: rgba(255, 255, 255, 0.72);
}

.revelando-agency-section h2,
.revelando-agency-section h3 {
  color: var(--revelando-white);
}

.revelando-agency-section .revelando-eyebrow,
.revelando-agency-section .revelando-number {
  color: #c6a17d;
}

.revelando-agency-section .wp-block-columns {
  gap: clamp(35px, 5vw, 75px);
}

.revelando-benefits {
  margin-bottom: 0;
}

.revelando-benefits > .wp-block-column {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.revelando-benefits p:last-child {
  color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   MÉTHODE
========================================================= */

.revelando-method-section {
  background: var(--revelando-light);
}

.revelando-method-section h2 {
  margin-right: auto;
  margin-left: auto;
}

.revelando-steps {
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--revelando-line);
  border-bottom: 1px solid var(--revelando-line);
}

.revelando-steps > .wp-block-column {
  padding: 38px clamp(18px, 2.5vw, 35px) 34px;
  border-right: 1px solid var(--revelando-line);
}

.revelando-steps > .wp-block-column:first-child {
  padding-left: 0;
}

.revelando-steps > .wp-block-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.revelando-steps p:last-child {
  color: var(--revelando-muted);
}


/* =========================================================
   À PROPOS
========================================================= */

.revelando-about > .wp-block-columns {
  gap: clamp(50px, 8vw, 115px);
  margin-bottom: 0;
}

.revelando-about .revelando-feature-copy {
  max-width: 610px;
}


/* =========================================================
   CONTACT
========================================================= */

.revelando-contact-section {
  padding-top: clamp(100px, 12vw, 180px);
  padding-bottom: clamp(100px, 12vw, 180px);
  background: var(--revelando-dark-soft);
  color: rgba(255, 255, 255, 0.72);
}

.revelando-contact {
  max-width: 820px;
  text-align: center;
}

.revelando-contact h2 {
  margin-right: auto;
  margin-left: auto;
  color: var(--revelando-white);
}

.revelando-contact .revelando-eyebrow {
  color: #c6a17d;
}

.revelando-contact .wp-block-buttons {
  margin-top: 38px;
  margin-bottom: 32px;
  justify-content: center;
}

.revelando-contact .wp-block-button__link {
  border-color: var(--revelando-white);
  background: var(--revelando-white);
  color: var(--revelando-dark);
}

.revelando-contact .wp-block-button__link:hover,
.revelando-contact .wp-block-button__link:focus {
  border-color: #c6a17d;
  background: #c6a17d;
  color: var(--revelando-dark);
}

.revelando-contact-note {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  line-height: 1.55 !important;
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.revelando-home a:focus-visible {
  outline: 2px solid var(--revelando-accent);
  outline-offset: 4px;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1024px) {

  .revelando-home h1 {
    font-size: clamp(2.7rem, 6vw, 4.3rem);
  }

  .revelando-hero-columns,
  .revelando-feature,
  .revelando-about > .wp-block-columns {
    gap: 50px;
  }

  .revelando-steps {
    flex-wrap: wrap !important;
  }

  .revelando-steps > .wp-block-column {
    flex-basis: 50% !important;
    padding: 32px !important;
    border-bottom: 1px solid var(--revelando-line);
  }

  .revelando-steps > .wp-block-column:nth-child(2) {
    border-right: 0;
  }

  .revelando-steps > .wp-block-column:nth-child(3),
  .revelando-steps > .wp-block-column:nth-child(4) {
    border-bottom: 0;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 781px) {

  .revelando-section,
  .revelando-statement-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .revelando-hero {
    padding-top: 55px;
    padding-bottom: 85px;
  }

  .revelando-hero-columns,
  .revelando-feature,
  .revelando-about > .wp-block-columns {
    gap: 42px;
  }

  .revelando-home h1 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
    line-height: 1;
  }

  .revelando-home h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .revelando-hero-image::before {
    display: none;
  }

  .revelando-feature-reverse {
    flex-direction: column-reverse;
  }

  .revelando-benefits {
    gap: 36px;
  }

  .revelando-steps {
    display: block;
    border-bottom: 0;
  }

  .revelando-steps > .wp-block-column {
    padding: 30px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--revelando-line) !important;
  }

  .revelando-steps > .wp-block-column:last-child {
    border-bottom: 0 !important;
  }

  .revelando-contact-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 480px) {

  .revelando-home h1 {
    font-size: 2.65rem;
  }

  .revelando-home h2 {
    font-size: 2.15rem;
  }

  .revelando-home .wp-block-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .revelando-home .wp-block-button,
  .revelando-home .wp-block-button__link {
    width: 100%;
  }

  .revelando-home .wp-block-button__link {
    justify-content: center;
    text-align: center;
  }

}


/* =========================================================
   MOUVEMENTS RÉDUITS
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .revelando-home *,
  .revelando-home *::before,
  .revelando-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

/* =========================================================
   CORRECTIF LARGEURS KADENCE / GUTENBERG
========================================================= */

/* Empêche tout élément décoratif de créer un scroll horizontal */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Calcul des dimensions plus prévisible */
.revelando-home,
.revelando-home *,
.revelando-home *::before,
.revelando-home *::after {
  box-sizing: border-box;
}

/* La page principale occupe la largeur disponible sans dépasser */
.entry-content > .revelando-home.alignfull,
.revelando-home.alignfull {
  position: relative;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
}

/* Neutralise les marges négatives alignwide de Kadence */
.revelando-home .alignwide {
  position: relative;
  left: auto !important;
  width: calc(100% - 48px) !important;
  max-width: 1240px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none !important;
}

/* Les sections pleine largeur ne doivent pas hériter
   des calculs de largeur du contenu Gutenberg */
.revelando-home .alignfull {
  position: relative;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
}

/* Le contenu interne des sections pleine largeur */
.revelando-home .alignfull > .alignwide {
  width: calc(100% - 48px) !important;
  max-width: 1240px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Les colonnes restent dans leur conteneur */
.revelando-home .wp-block-columns,
.revelando-home .wp-block-column {
  min-width: 0;
  max-width: 100%;
}

/* Empêche les médias de dépasser */
.revelando-home figure,
.revelando-home img {
  max-width: 100%;
}

/* Le décor du hero reste dans la largeur du site */
.revelando-hero-image::before {
  right: -18px;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1024px) {

  .revelando-home .alignwide,
  .revelando-home .alignfull > .alignwide {
    width: calc(100% - 48px) !important;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 781px) {

  .revelando-home .alignwide,
  .revelando-home .alignfull > .alignwide {
    width: calc(100% - 36px) !important;
  }

  .revelando-hero-image::before {
    display: none;
  }

}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

/* Placé après les règles responsive pour préserver la cascade d’origine. */
.revelando-hero {
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: clamp(70px, 8vw, 110px);
}

@media (max-width: 480px) {

  .revelando-home .alignwide,
  .revelando-home .alignfull > .alignwide {
    width: calc(100% - 28px) !important;
  }

}

/* Hero : davantage de place à l’image */
.revelando-hero-columns > .wp-block-column:first-child {
  flex-basis: 43% !important;
}

.revelando-hero-columns > .wp-block-column:last-child {
  flex-basis: 57% !important;
}

/* Sections éditoriales : images légèrement plus présentes */
.revelando-feature {
  gap: clamp(45px, 6vw, 85px);
}


/* =========================================================
   REVELANDO — PAGES LÉGALES
========================================================= */

.revelando-legal-page,
.revelando-legal-page *,
.revelando-legal-page *::before,
.revelando-legal-page *::after {
  box-sizing: border-box;
}

.revelando-legal-page {
  overflow: hidden;
  color: var(--revelando-text);
  background: var(--revelando-white);
}

.revelando-legal-page.alignfull {
  position: relative;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
}

.revelando-legal-page .alignwide {
  position: relative;
  left: auto !important;
  width: calc(100% - 48px) !important;
  max-width: 1240px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none !important;
}


/* Introduction */

.revelando-legal-hero {
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(75px, 8vw, 115px);
  background: var(--revelando-light);
}

.revelando-legal-hero-inner {
  max-width: 840px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center;
}

.revelando-legal-page .revelando-eyebrow {
  margin-bottom: 22px !important;
}

.revelando-legal-hero h1 {
  max-width: 760px;
  margin: 0 0 25px;
  color: var(--revelando-dark);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.revelando-legal-intro {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--revelando-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.revelando-legal-date {
  margin-bottom: 0;
  color: var(--revelando-muted);
  font-size: 0.82rem;
}


/* Contenu */

.revelando-legal-content {
  width: calc(100% - 48px) !important;
  max-width: 820px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-top: clamp(75px, 9vw, 125px);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.revelando-legal-content h2 {
  margin-top: clamp(58px, 7vw, 82px);
  margin-bottom: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--revelando-line);
  color: var(--revelando-dark);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.revelando-legal-content h2:first-child {
  margin-top: 0;
}

.revelando-legal-content h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--revelando-dark);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.revelando-legal-content p,
.revelando-legal-content li {
  color: var(--revelando-text);
  font-size: 1rem;
  line-height: 1.8;
}

.revelando-legal-content p {
  margin-bottom: 20px;
}

.revelando-legal-content ul {
  margin-top: 16px;
  margin-bottom: 26px;
  padding-left: 1.25rem;
}

.revelando-legal-content li {
  margin-bottom: 9px;
  padding-left: 5px;
}

.revelando-legal-content a {
  color: var(--revelando-dark);
  text-decoration-color: var(--revelando-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.revelando-legal-content a:hover,
.revelando-legal-content a:focus {
  color: var(--revelando-accent);
}

.revelando-legal-card {
  margin-top: 25px;
  margin-bottom: 32px;
  padding: clamp(25px, 4vw, 38px);
  border-left: 3px solid var(--revelando-accent);
  background: var(--revelando-light);
}

.revelando-legal-card p:last-child {
  margin-bottom: 0;
}

.revelando-legal-note {
  margin-top: 42px;
  padding: 24px 28px;
  border: 1px solid var(--revelando-line);
  color: var(--revelando-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* Mobile */

@media (max-width: 781px) {

  .revelando-legal-page .alignwide,
  .revelando-legal-content {
    width: calc(100% - 36px) !important;
  }

  .revelando-legal-hero {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .revelando-legal-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }

  .revelando-legal-content {
    padding-top: 70px;
    padding-bottom: 90px;
  }

}

@media (max-width: 480px) {

  .revelando-legal-page .alignwide,
  .revelando-legal-content {
    width: calc(100% - 28px) !important;
  }

  .revelando-legal-card {
    padding: 23px 20px;
  }

}

/* =========================================================
   REVELANDO — FOOTER
========================================================= */

.site-footer {
  border-top: 1px solid rgba(23, 24, 22, 0.1);
  background: #ffffff;
}

.site-footer .site-bottom-footer-inner-wrap {
  min-height: 82px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.revelando-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 28px;
  color: var(--revelando-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.revelando-footer-copyright {
  white-space: nowrap;
}

.revelando-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.revelando-footer-legal a {
  color: var(--revelando-muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.revelando-footer-legal a:hover,
.revelando-footer-legal a:focus {
  color: var(--revelando-accent);
}

.revelando-footer-legal a:focus-visible {
  outline: 2px solid var(--revelando-accent);
  outline-offset: 4px;
}


/* Mobile */

@media (max-width: 600px) {

  .site-footer .site-bottom-footer-inner-wrap {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .revelando-footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .revelando-footer-legal {
    justify-content: center;
    gap: 10px 18px;
  }

}
/* =========================================================
   PAGES LÉGALES — HERO CENTRÉ
========================================================= */

.revelando-legal-hero .revelando-eyebrow,
.revelando-legal-hero h1,
.revelando-legal-hero .revelando-legal-intro,
.revelando-legal-hero .revelando-legal-date {
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center;
}
