/* ============================================================
   TOOTB 2025 — Direction art éditoriale (presse / corporate)
   Inspiration : Reuters Agency, The Atlantic, Le Monde corporate
   ============================================================ */

/* ===== Réglages globaux ===== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #1a1a1a; }
p { color: inherit; }

/* Renforce la lisibilité : remplace les couleurs trop pâles inline par du plus contrasté */
.entry-content [style*="color:#444"],
.entry-content [style*="color:#555"],
.entry-content [style*="color:#666"] { color: #1a1a1a !important; }
.entry-content [style*="color:#888"],
.entry-content [style*="color:#999"] { color: #444 !important; }
.entry-content [style*="color:#aaa"] { color: #555 !important; }

/* Renforce les tailles trop petites des paragraphes inline */
.entry-content p[style*="font-size:0.9rem"]  { font-size: 1rem !important; }
.entry-content p[style*="font-size:0.95rem"] { font-size: 1.05rem !important; }
.entry-content p[style*="font-size:1rem"]    { font-size: 1.1rem !important; }
.entry-content p[style*="font-size:1.05rem"] { font-size: 1.15rem !important; }
.entry-content p[style*="font-size:1.1rem"]  { font-size: 1.2rem !important; }
.entry-content p[style*="font-size:1.15rem"] { font-size: 1.25rem !important; }

/* Liens corps : soulignés discrets type presse */
.entry-content a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.25);
  transition: text-decoration-color 0.15s ease;
}
.entry-content a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover {
  text-decoration-color: #5cb8e8;
}

/* ===== Boutons ===== */
.wp-block-button.is-style-arrow .wp-block-button__link::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 0.4em;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
  transform: translateX(4px);
}
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: #5cb8e8;
}

/* ===== Header (barre haute) — 3 colonnes : marque | nav (centrée) | spacer ===== */
.tootb-header {
  border-bottom: 1px solid #e2e2dd;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.tootb-header > .tootb-brand    { justify-self: start; }
.tootb-header > .tootb-nav,
.tootb-header > nav.tootb-nav   { justify-self: center; }
.tootb-header > .tootb-header-spacer { justify-self: end; min-height: 1px; }

/* Marque : logo + nom alignés */
.tootb-header .tootb-brand {
  display: flex !important;
  align-items: center;
  gap: 1rem !important;
}
.tootb-header .wp-block-site-logo,
.tootb-header .wp-block-site-logo a {
  display: inline-flex;
  align-items: center;
}
.tootb-header .wp-block-site-logo img {
  width: auto !important;
  height: 64px !important;
  max-height: 64px !important;
  max-width: 100px !important;
  object-fit: contain;
}
.tootb-header .tootb-site-name,
.tootb-header .wp-block-site-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.tootb-header .tootb-site-name a,
.tootb-header .wp-block-site-title a {
  color: #111;
  text-decoration: none;
}
.tootb-header .tootb-site-name a:hover {
  color: #5cb8e8;
}

/* Navigation centrée */
.tootb-header .wp-block-navigation {
  font-size: 1.1rem !important;
  font-weight: 500;
}
.tootb-header .wp-block-navigation ul,
.tootb-header .wp-block-navigation .wp-block-navigation__container {
  gap: 2.5rem !important;
}
.tootb-header .wp-block-navigation .wp-block-navigation-item__content {
  padding: 0.25rem 0;
  font-size: 1.1rem;
  color: #111;
  transition: color 0.15s ease;
}
.tootb-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: #5cb8e8;
}

/* Responsive : mobile passe en 2 colonnes (marque à gauche, hamburger à droite) */
@media (max-width: 880px) {
  .tootb-header {
    grid-template-columns: auto auto;
    gap: 1rem;
  }
  .tootb-header > .tootb-nav,
  .tootb-header > nav.tootb-nav { justify-self: end; grid-column: 2; }
  .tootb-header > .tootb-header-spacer { display: none; }
  .tootb-header .wp-block-site-logo img { height: 48px !important; max-height: 48px !important; }
  .tootb-header .tootb-site-name { font-size: 1.3rem; }
}

/* Cache l'éventuel titre de page rendu par le template parent */
.wp-site-blocks > main > .wp-block-group > .wp-block-post-title,
main > .wp-block-post-title { display: none !important; }

/* Cache l'éventuel titre de page rendu par le template parent (filet sécurité) */
.wp-site-blocks > main > .wp-block-group > .wp-block-post-title,
main > .wp-block-post-title { display: none !important; }

/* ===== HERO — Photo plein écran + overlay éditorial ===== */
.tootb-hero-cover {
  min-height: 78vh;
  position: relative;
}
@media (max-width: 781px) {
  .tootb-hero-cover { min-height: 60vh; }
}
.tootb-hero-cover .wp-block-cover__background {
  /* overlay gradient dégradé pour lisibilité texte */
  background: linear-gradient(110deg, rgba(10,14,26,0.78) 0%, rgba(10,14,26,0.55) 55%, rgba(92,184,232,0.20) 100%) !important;
}
.tootb-hero-cover h1 {
  color: #ffffff !important;
  font-size: clamp(2.75rem, 6.5vw, 5rem) !important;
  font-style: normal !important;
  max-width: 18ch;
  margin: 0 0 1.5rem;
}
.tootb-hero-cover .tootb-hero-kicker {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #cdefff;
  border-left: 2px solid #5cb8e8;
  padding-left: 0.7rem;
  margin-bottom: 1.5rem;
}
.tootb-hero-cover p.tootb-hero-lead {
  color: #e6e6ec !important;
  font-size: 1.3rem !important;
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* ===== Sections texte : filets fins type presse ===== */
.tootb-section-title {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem !important;
}
.tootb-section-title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: #5cb8e8;
}
.tootb-section-title.is-style-left::after {
  left: 0;
  transform: none;
}

/* ===== Kicker au-dessus des H2 — alignement cohérent ===== */
.entry-content .tootb-kicker { margin-bottom: 1rem; }

/* ===== Kicker (sur-titre) ===== */
.tootb-kicker {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5cb8e8;
  margin-bottom: 1rem;
}
.tootb-kicker--dark { color: #5cb8e8; }
.tootb-kicker--inline {
  border-left: 2px solid #5cb8e8;
  padding-left: 0.7rem;
  border-bottom: none;
}

/* ===== Cards éditoriales pour les 3 marques ===== */
.tootb-brand-card {
  border: 1px solid #e2e2dd;
  padding: 2.75rem 2.25rem;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tootb-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #111;
}
.tootb-brand-card img {
  margin-bottom: 1.5rem !important;
}
.tootb-brand-card h3 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
  font-size: 1.5rem !important;
  margin: 0 0 1rem !important;
  color: #111;
}
.tootb-brand-card p {
  font-size: 1.05rem !important;
  line-height: 1.6;
  color: #1a1a1a !important;
}

/* ===== Bandeau photo plein écran (intermédiaire) ===== */
.tootb-photo-band {
  position: relative;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
}
.tootb-photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0.25) 100%);
}
.tootb-photo-band__inner {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  color: #ffffff;
  text-align: center;
}
.tootb-photo-band__inner h2 {
  color: #ffffff !important;
  margin: 0 auto 1rem;
  max-width: 24ch;
}
.tootb-photo-band__inner p {
  color: #d7d7e0;
  max-width: 60ch;
  margin: 0 auto;
}

/* ===== Section avec photo latérale (split) ===== */
.tootb-split-image {
  min-height: 480px;
  background-size: cover;
  background-position: center;
}

/* ===== Métier : numéros éditoriaux (au lieu des cercles) ===== */
.tootb-step-number {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 3.5rem;
  color: #5cb8e8;
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== Équipe : portraits placeholders sobres ===== */
.tootb-team-portrait {
  aspect-ratio: 1;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 2.5rem;
  color: #999;
  max-width: 160px;
  margin: 0 auto;
}

/* ===== FAQ accordéon ===== */
.wp-block-details {
  border-bottom: 1px solid #e2e2dd;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 1.25rem 0 !important;
}
.wp-block-details summary {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  padding-right: 2rem;
  position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: #5cb8e8;
  transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

/* ===== Footer ===== */
.tootb-footer {
  background: #111;
  color: #aaa;
}
.tootb-footer h3, .tootb-footer h4 { color: #ffffff; }
.tootb-footer a { color: #ccc; text-decoration: none; }
.tootb-footer a:hover { color: #5cb8e8; }
.tootb-footer .tootb-diamond { background: #5cb8e8; }

/* ===== Losange décoratif ===== */
.tootb-diamond {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #5cb8e8;
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ===== Bloc RSS custom (shortcode [tootb_rss]) ===== */
.tootb-rss-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.tootb-rss-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid #e2e2dd;
  align-items: start;
}
.tootb-rss-item:first-child {
  padding-top: 0;
}
.tootb-rss-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tootb-rss-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0ec;
  border-radius: 2px;
}
.tootb-rss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tootb-rss-thumb:hover img {
  transform: scale(1.05);
}
.tootb-rss-thumb--empty {
  background: linear-gradient(135deg, #e2e2dd 0%, #f0f0ec 100%);
  position: relative;
}
.tootb-rss-thumb--empty::after {
  content: "—";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1.5rem;
}
.tootb-rss-body { min-width: 0; }
.tootb-rss-title {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #111;
  text-decoration: none !important;
  margin-bottom: 0.6rem;
  transition: color 0.15s ease;
}
.tootb-rss-title:hover { color: #5cb8e8; }
.tootb-rss-meta {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.tootb-rss-author {
  color: #5cb8e8;
  font-weight: 600;
}
.tootb-rss-sep { color: #ccc; }
.tootb-rss-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}
.tootb-rss-error {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}
@media (max-width: 600px) {
  .tootb-rss-item { grid-template-columns: 1fr; gap: 1rem; }
  .tootb-rss-thumb { aspect-ratio: 16 / 9; }
}

/* ===== Aperçu site (capture d'écran encadrée) ===== */
.tootb-site-preview {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #e2e2dd;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tootb-site-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}
.tootb-site-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.tootb-site-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #f7f7f5;
  border-bottom: 1px solid #e2e2dd;
}
.tootb-site-preview-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6d6d2;
  display: inline-block;
}
.tootb-site-preview-bar .tootb-site-preview-url {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  margin-left: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.01em;
}

/* ===== Tables (mentions / privacy) ===== */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td {
  border: 1px solid #e2e2dd;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}
.wp-block-table th {
  background: #fafaf7;
  font-weight: 600;
}

/* ===== Responsive : empilage gracieux ===== */
@media (max-width: 781px) {
  .tootb-brand-card { padding: 1.75rem 1.25rem; }
  .tootb-photo-band__inner { padding: 3rem 1.25rem; }
}
