/*
Theme Name: AF Tailleur
Theme URI: https://www.af-tailleur.fr/
Author: AF Tailleur
Author URI: https://www.af-tailleur.fr/
Description: Thème WordPress premium pour AF Tailleur : costumes sur mesure homme, mariage, professionnel, accessoires et Journal.
Version: 1.8.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: af-tailleur
*/

/* Accessibilité : contrastes de texte sur fonds clairs (WCAG AA). */
.eyebrow-dark {
	color: #4e4c47;
}

.eyebrow-dark span,
.home-reviews-action .text-link,
.button-outline-dark,
.location-list li {
	color: #663b1c;
}

.editorial-lead,
.measure-choice p,
.measure-choice li,
.wardrobe-expansion-heading > p:last-child {
	color: #56534e;
}

.home-review-card footer span {
	color: #5c5a55;
}

/* La flèche conserve son dessin, avec une cible de clic conforme. */
.desktop-nav > .nav-list > .menu-item-has-children > .submenu-toggle {
	width: 24px;
	height: 24px;
}

/* Ajustements WordPress au-dessus de la feuille de style du site. */
.admin-bar .site-header { top: 32px; }
.site-header .desktop-nav,
.site-header .mobile-menu nav { list-style: none; }
.site-header .desktop-nav a.active,
.site-header .desktop-nav a[aria-current="page"] { color: var(--gold-light); }
.site-header .desktop-nav a.active::after,
.site-header .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.brand img,
.footer-logo img { object-fit: contain; }
.brand > img { background: transparent; }

/* Correctifs PageSpeed : contraste du footer et cibles tactiles. */
.site-footer .footer-brand p,
.site-footer .footer-links a,
.site-footer .footer-contact > p:not(.footer-title) { color: rgba(255, 255, 255, 0.82); }
.site-footer .footer-bottom { color: rgba(255, 255, 255, 0.72); }
.site-footer .footer-bottom > div { align-items: center; gap: 10px; }
.site-footer .footer-bottom a {
  min-height: 44px;
  padding: 12px 10px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--ink);
  background: var(--gold-light);
}

.wp-block-image img,
.entry-content img { height: auto; }
.alignwide { width: min(100% - 64px, 1480px); margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }

.journal-index {
  padding: 110px 0 125px;
  background: #e9dfd2;
}

.journal-index-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 70px;
  margin-bottom: 55px;
}

.journal-index-heading h2 {
  max-width: 800px;
  color: var(--ink);
  font-size: clamp(42px, 4vw, 60px);
  letter-spacing: -0.04em;
}

.journal-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: #fffdf9;
  border: 1px solid rgba(9, 26, 42, 0.12);
}

.post-card-image {
  display: block;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 320ms ease;
}

.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-copy { padding: 30px 30px 34px; }
.post-card-meta {
  display: block;
  margin-bottom: 16px;
  color: var(--cognac);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post-card h2 { margin-bottom: 16px; color: var(--ink); font-size: 29px; }
.post-card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.post-card .text-link { margin-top: 8px; }

.article-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4,14,23,.94), rgba(4,14,23,.45)); }
.article-hero-inner { position: relative; z-index: 1; padding-bottom: 90px; }
.article-hero h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(48px, 5.5vw, 80px); }
.article-meta { color: var(--gold-light); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.article-body { padding: 100px 0 120px; background: #fffdf9; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 90px; align-items: start; }
.entry-content { max-width: 820px; color: #333a40; font-family: Georgia, serif; font-size: 19px; line-height: 1.85; }
.entry-content h2 { margin: 55px 0 20px; color: var(--ink); font-size: 42px; }
.entry-content h3 { margin: 42px 0 16px; color: var(--ink); font-size: 30px; }
.entry-content a { color: var(--cognac); text-decoration: underline; text-underline-offset: 3px; }
.article-sidebar { padding: 28px; background: #f4eee4; border: 1px solid var(--line); }
.article-sidebar h2 { margin-bottom: 18px; color: var(--ink); font-size: 25px; }
.article-sidebar a { display: block; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 55px; }
.pagination .page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.pagination .current { color: #fff; background: var(--ink); }

.contact-alert { margin-bottom: 25px; padding: 16px 18px; border: 1px solid rgba(9,26,42,.16); font-size: 13px; }
.contact-alert-success { color: #244d36; background: #edf7f0; }
.contact-alert-error { color: #7a302b; background: #fff0ee; }
.contact-honeypot { position: absolute; left: -9999px; }

.generic-page { padding: 210px 0 120px; background: #fffdf9; }
.generic-page h1 { max-width: 950px; margin-bottom: 45px; color: var(--ink); font-size: clamp(50px, 6vw, 82px); }
.generic-page .entry-content { max-width: 900px; }

@media (max-width: 980px) {
  .journal-index-heading,
  .journal-index-grid,
  .article-layout { grid-template-columns: 1fr; }
  .journal-index-heading { gap: 22px; }
  .journal-index-grid { grid-template-columns: 1fr 1fr; }
  .article-sidebar { max-width: 520px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 640px) {
  .journal-index { padding: 78px 0 84px; }
  .journal-index-grid { grid-template-columns: 1fr; }
  .post-card-image img { height: 270px; }
  .article-hero { min-height: 650px; }
  .article-hero-inner { padding-bottom: 65px; }
  .article-body { padding: 78px 0 90px; }
  .entry-content { font-size: 17px; }
  .entry-content h2 { font-size: 35px; }
  .generic-page { padding: 170px 0 90px; }
}

/* Intégration des gabarits WordPress. */
.footer-brand img { background: transparent; }
.craft-copy-wordpress { position: relative; overflow: hidden; padding: 0; background: #071724; }
.craft-editorial-wordpress { position: absolute; inset: 0; min-height: 0; }
.craft-editorial-wordpress > img { width: 100%; height: 100%; object-fit: cover; }
.signature-symbol,
.contact-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cognac);
  font-family: Georgia, serif;
  font-size: 20px;
}
.craft-signature .signature-symbol { color: var(--gold-light); }
.benefit-icon { font-family: Georgia, serif; font-size: 13px; letter-spacing: .08em; }

.wp-page-hero { padding: 190px 0 85px; background: #e9dfd2; }
.wp-page-hero-inner { max-width: 980px; }
.wp-page-hero h1 { color: var(--ink); font-size: clamp(48px, 6vw, 82px); line-height: 1; }
.archive-description { max-width: 720px; margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.wp-page-content { padding: 90px 0 120px; background: #fffdf9; }
.prose-content { max-width: 840px; color: #333a40; font-family: Georgia, serif; font-size: 18px; line-height: 1.85; }
.prose-content h2 { margin: 52px 0 18px; color: var(--ink); font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.prose-content h2:first-child { margin-top: 0; }
.prose-content h3 { margin: 38px 0 14px; color: var(--ink); font-size: 29px; }
.prose-content p,
.prose-content ul,
.prose-content ol { margin-bottom: 24px; }
.prose-content a { color: var(--cognac); text-decoration: underline; text-underline-offset: 3px; }
.prose-content img { max-width: 100%; height: auto; }

.journal-card h2 a { color: inherit; }
.journal-empty { grid-column: 1 / -1; padding: clamp(38px, 6vw, 75px); background: #fffdf9; border: 1px solid rgba(9,26,42,.12); }
.journal-empty h2 { max-width: 760px; min-height: 0; margin-bottom: 22px; color: var(--ink); font-size: clamp(38px, 5vw, 62px); }
.journal-empty p:last-child { max-width: 760px; min-height: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.navigation.pagination { width: min(100% - 64px, 1480px); margin: 50px auto 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid var(--line); }
.nav-links .current { color: #fff; background: var(--ink); }

.single-hero { position: relative; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink); }
.single-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.single-hero .inner-hero-overlay { z-index: 1; }
.single-hero-copy { position: relative; z-index: 2; width: 100%; padding-bottom: 90px; }
.single-hero-copy h1 { max-width: 980px; margin: 18px 0 22px; font-size: clamp(48px, 6vw, 82px); line-height: .98; }
.single-hero-copy > p:last-child { max-width: 760px; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(50px, 8vw, 110px); align-items: start; padding-top: 100px; padding-bottom: 110px; background: #fffdf9; }
.article-content { margin: 0; }
.article-sidebar { position: sticky; top: 115px; }
.article-sidebar ul { margin: 0 0 28px; padding: 0; list-style: none; }
.article-sidebar .button { margin-top: 20px; }
.single-nav { padding-top: 30px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.single-nav .nav-links { justify-content: space-between; }
.single-nav a { color: var(--cognac); font-size: 13px; }
.error-page { min-height: 72vh; padding: 220px 0 130px; }
.error-page h1 { max-width: 850px; color: var(--ink); font-size: clamp(52px, 7vw, 94px); line-height: .95; }
.error-page > .shell > p:not(.eyebrow) { max-width: 620px; margin: 28px 0 34px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.contact-alert { color: #7a302b; background: #fff0ee; }
.contact-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }

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

@media (max-width: 720px) {
  .craft-editorial-wordpress { position: absolute; }
  .wp-page-hero { padding: 150px 0 65px; }
  .wp-page-content { padding: 65px 0 85px; }
  .prose-content { font-size: 17px; }
  .single-hero { min-height: 620px; }
  .single-hero-copy { padding-bottom: 62px; }
  .single-layout { padding-top: 72px; padding-bottom: 80px; }
  .error-page { padding: 170px 0 95px; }
}
