/*
Theme Name: SEGABY GeneratePress Child
Theme URI: https://segaby-informatique.fr
Description: Thème enfant SEGABY Informatique basé sur GeneratePress.
Author: Ahmed BYBI
Author URI: https://segaby-informatique.fr
Template: generatepress
Version: 1.4.0
Text Domain: segaby-generatepress-child
*/

/* Styles personnalisés SEGABY */

/* ==========================================================
   SEGABY  Base visuelle premium
   Atelier local, sobre, rapide, rassurant, expert
   ========================================================== */

/* Police d'affichage Manrope — SELF-HÉBERGÉE (RGPD : aucune requête
   Google Fonts). Fichiers .woff2 sous /assets/fonts/, licence OFL.
   Utilisée uniquement pour les titres ; le corps de texte reste sur la
   pile système (lisible, léger). font-display:swap = pas de texte invisible. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/manrope-800.woff2") format("woff2");
}

:root {
  --segaby-blue: #102a43;
  --segaby-blue-dark: #071a2d;
  /* Palette alignée sur le logo SEGABY : bleu azur en tête, rouge en filet.
     --segaby-accent est repointé de l'ambre historique (#f59e0b) vers l'azur
     du logo : toutes les utilisations existantes deviennent azur d'un coup. */
  --segaby-azure: #1683c4;
  --segaby-azure-deep: #0e6ea9;
  --segaby-red: #c01f33;
  --segaby-accent: #1683c4;
  --segaby-green: #15803d;
  --segaby-text: #1f2933;
  --segaby-muted: #64748b;
  --segaby-bg: #f8fafc;
  --segaby-white: #ffffff;
  --segaby-border: #e2e8f0;
  --segaby-radius: 18px;
  --segaby-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  /* Pile police d'affichage : Manrope si chargée, sinon système (fallback). */
  --segaby-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--segaby-text);
  background: var(--segaby-bg);
  font-size: 17px;
  line-height: 1.65;
}

/* Titres en Manrope (police d'affichage). Le corps de texte reste sur la pile
   système pour un confort de lecture maximal. Seuls les titres changent. */
h1, h2, h3,
.segaby-footer-title {
  font-family: var(--segaby-font-display);
}

a {
  color: var(--segaby-blue);
}

a:hover {
  color: var(--segaby-accent);
}

.site-header {
  background: var(--segaby-white);
  border-bottom: 1px solid var(--segaby-border);
}

.main-navigation .main-nav ul li a {
  font-weight: 700;
}

.segaby-container {
  max-width: 1180px;
  margin: 0 auto;
}

.segaby-section {
  padding: 80px 20px;
}

.segaby-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  padding: 90px 20px;
  border-bottom: 1px solid var(--segaby-border);
}

/* Eyebrow : label technique mono + filet azur (plus de pastille "faux bouton"),
   cohérent avec le hero de l'accueil. */
.segaby-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--segaby-azure-deep);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.segaby-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--segaby-azure);
}

.segaby-hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  color: var(--segaby-blue-dark);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.segaby-hero p {
  max-width: 740px;
  color: var(--segaby-muted);
  font-size: 21px;
  margin-bottom: 30px;
}

.segaby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.segaby-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.segaby-btn-primary {
  background: var(--segaby-azure);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(22, 131, 196, 0.22);
}

.segaby-btn-primary:hover {
  background: var(--segaby-azure-deep);
  color: #ffffff;
}

.segaby-btn-secondary {
  background: #ffffff;
  color: var(--segaby-blue);
  border: 1px solid var(--segaby-border);
}

.segaby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.segaby-card {
  background: var(--segaby-white);
  border: 1px solid var(--segaby-border);
  border-radius: var(--segaby-radius);
  padding: 28px;
  box-shadow: var(--segaby-shadow);
}

.segaby-card h3 {
  margin-top: 0;
  color: var(--segaby-blue-dark);
  font-size: 22px;
}

.segaby-card p {
  color: var(--segaby-muted);
}

/* Preuves : rangée d'items cochés (plus de pilules "faux boutons"). */
.segaby-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
}

.segaby-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--segaby-muted);
  font-weight: 600;
  font-size: 15px;
}

.segaby-proof span::before {
  content: "\2713";
  color: var(--segaby-azure);
  font-weight: 800;
}

/* ==========================================================
   HERO DE PAGE INTERNE — navy premium, défini UNE SEULE FOIS (DRY).
   Appliqué via la classe .segaby-page-hero ajoutée à chaque <section> hero
   (services, contact, à propos, rendez-vous). La double classe / le sélecteur
   descendant priment sur les règles .segaby-<x>-hero de chaque page : aucun
   bloc navy dupliqué page par page.
   ========================================================== */
.segaby-page-hero.segaby-page-hero {
  background: #0b2136;
  color: #eaf1f8;
  border-bottom: 1px solid #1c3550;
  padding: 76px 20px 64px;
}

.segaby-page-hero.segaby-page-hero h1 {
  color: #ffffff;
}

.segaby-page-hero.segaby-page-hero p {
  color: #b9c6d6;
}

.segaby-page-hero .segaby-eyebrow {
  color: #4fb6e8;
}

.segaby-page-hero .segaby-eyebrow::before {
  background: #4fb6e8;
}

.segaby-page-hero .segaby-proof span {
  color: #b9c6d6;
}

.segaby-page-hero .segaby-proof span::before {
  color: #4fb6e8;
}

.segaby-page-hero .segaby-btn-secondary {
  background: transparent;
  color: #eaf1f8;
  border: 1px solid #2c4560;
}

.segaby-page-hero .segaby-btn-secondary:hover {
  border-color: #4fb6e8;
  color: #ffffff;
}

@media (max-width: 900px) {
  .segaby-page-hero.segaby-page-hero {
    padding: 56px 18px 48px;
  }
}

.segaby-note {
  border-left: 4px solid var(--segaby-accent);
  background: #eef6fc;
  padding: 18px 20px;
  border-radius: 14px;
}

/* Filet rouge fin sous les titres de section : seul rouge de l'UI, en rappel
   du "INFORMATIQUE" du logo. Global (toutes les pages qui utilisent
   .segaby-section-head). Dosé, jamais dominant. */
.segaby-section-head h2 {
  position: relative;
  padding-bottom: 14px;
}

.segaby-section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--segaby-red);
}

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

  .segaby-section,
  .segaby-hero {
    padding: 56px 18px;
  }

  .segaby-hero p {
    font-size: 18px;
  }
}

/* ==========================================================
   SEGABY  Correction page accueil
   Supprime le rendu WordPress brut sur la homepage
   ========================================================== */

.home .entry-header {
  display: none;
}

.home .inside-article {
  padding: 0;
  background: transparent;
}

.home .site-main {
  margin: 0;
}

.home .site-content {
  padding: 0;
}

.home .content-area {
  width: 100%;
}

.home .container.grid-container {
  max-width: none;
}


/* ==========================================================
   FOOTER SEGABY — sobre, premium local, fond bleu très foncé
   Injecté via generate_before_footer_content (voir functions.php).
   S'applique sur tout le site, sans toucher au thème parent.
   ========================================================== */

/* Fond foncé pleine largeur pour tout le pied de page GeneratePress */
.site-footer {
  background: var(--segaby-blue-dark);
  color: #cbd5e1;
}

/* Container interne centré, cohérent avec le reste du site (1180px) */
.segaby-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

/* Grille 4 colonnes desktop */
.segaby-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

/* Titres de colonnes — sobres, sans icône */
.segaby-footer-title {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.segaby-footer-col h3 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.segaby-footer-brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 260px;
}

/* Listes de liens propres, sans puce */
.segaby-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.segaby-footer-col li {
  margin-bottom: 8px;
}

.segaby-footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.segaby-footer-col a:hover {
  color: #ffffff;
}

/* Bloc portail — bouton visible mais pas agressif (contour clair) */
.segaby-footer-portail-btn {
  display: inline-block;
  margin-bottom: 14px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.segaby-footer-portail-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.segaby-footer-portail p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
  max-width: 240px;
}

/* Ligne légale — discrète, séparée par un filet */
.segaby-footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.segaby-footer-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
}

.segaby-footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.segaby-footer-legal a:hover {
  color: #ffffff;
}

/* Barre de copyright GeneratePress — harmonisée avec le footer foncé */
.site-footer .site-info,
.site-footer .inside-site-info {
  background: transparent;
  border: 0;
}

.site-footer .copyright-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.site-footer .copyright-bar a {
  color: #cbd5e1;
}

/* Tablette : 2 colonnes */
@media (max-width: 900px) {
  .segaby-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile : 1 colonne */
@media (max-width: 560px) {
  .segaby-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .segaby-footer {
    padding: 44px 18px 8px;
  }
}

/* ==========================================================
   BLOG — Rendu des articles (single post)
   Portée STRICTE : .single-post .entry-content.
   Aucune page ni gabarit existant n'est affecté.
   Objectif : lisibilité, rythme sobre, tableaux propres sur
   mobile. Aucune couleur agressive, aucun CTA, rendu
   GeneratePress conservé et léger.
   ========================================================== */

/* Rythme de lecture : espacements maîtrisés, pas de grands vides */
.single-post .entry-content > * {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.single-post .entry-content h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}

.single-post .entry-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.single-post .entry-content p {
  line-height: 1.7;
}

/* Encadrés « rappel » sobres, sans effet marketing */
.single-post .entry-content blockquote {
  margin: 1.6rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--segaby-azure, #1683c4);
  background: var(--segaby-bg, #f8fafc);
  font-style: normal;
}

.single-post .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images d'article : jamais de débordement */
.single-post .entry-content img {
  max-width: 100%;
  height: auto;
}

/* Tableaux : pleine largeur, cellules lisibles */
.single-post .entry-content table {
  width: 100%;
  max-width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.single-post .entry-content th,
.single-post .entry-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--segaby-border, #e2e8f0);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.single-post .entry-content thead th {
  background: var(--segaby-bg, #f8fafc);
  color: var(--segaby-blue-dark, #071a2d);
  font-weight: 700;
}

.single-post .entry-content tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

/* Mobile : H1 d'article maîtrisé + tableau en scroll horizontal fluide */
@media (max-width: 600px) {
  /* Titre d'article : évite le bloc massif, sans toucher au titre en base.
     Règle globale à tous les articles, pas d'effet landing page. */
  .single-post .entry-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
  }

  /* Le tableau devient lui-même le conteneur défilable : pas de colonnes
     écrasées, pas de débordement brutal de la page. Le min-width des
     cellules impose une largeur utile d'environ 640 px, puis on scrolle. */
  .single-post .entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .single-post .entry-content th,
  .single-post .entry-content td {
    padding: 0.5rem 0.6rem;
    min-width: 170px;
    white-space: normal;
  }

  /* Première colonne (symptôme court) : pas besoin de la même largeur */
  .single-post .entry-content th:first-child,
  .single-post .entry-content td:first-child {
    min-width: 130px;
  }
}

/* ==========================================================
   BLOG — Index des articles (page des articles, body.blog)
   Sobre, technique, sans CTA. Portée stricte body.blog :
   n'affecte ni les pages, ni les articles (single-post).
   ========================================================== */

/* Neutralisation du wrapper GeneratePress sur l'index blog (comme l'accueil) */
body.blog #page { max-width: none; padding-left: 0; padding-right: 0; }
body.blog .site-content { display: block; max-width: none; width: 100%; margin: 0; padding: 0; }
body.blog .content-area { width: 100%; max-width: none; float: none; margin: 0; padding: 0; }
body.blog .site-main,
body.blog #primary { width: 100%; max-width: none; margin: 0; padding: 0; }
body.blog .inside-article { padding: 0; background: transparent; }
body.blog #right-sidebar,
body.blog #left-sidebar,
body.blog .is-right-sidebar,
body.blog .is-left-sidebar { display: none; }

/* Hero blog */
.segaby-blog-hero {
  background: var(--segaby-bg);
  border-bottom: 1px solid var(--segaby-border);
  padding: 48px 20px 36px;
}
.segaby-blog-hero h1 {
  margin: 8px 0 10px;
  color: var(--segaby-blue-dark);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
}
.segaby-blog-intro {
  margin: 0;
  max-width: 680px;
  color: var(--segaby-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Layout 2 colonnes : articles + barre latérale */
.segaby-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 56px;
}

/* Grille d'articles */
.segaby-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.segaby-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--segaby-white);
  border: 1px solid var(--segaby-border);
  border-radius: var(--segaby-radius);
  overflow: hidden;
  box-shadow: var(--segaby-shadow);
}
.segaby-blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--segaby-bg);
}
.segaby-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.segaby-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}
.segaby-blog-card-cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--segaby-azure-deep);
}
.segaby-blog-card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}
.segaby-blog-card-title a {
  color: var(--segaby-blue-dark);
  text-decoration: none;
}
.segaby-blog-card-title a:hover { color: var(--segaby-azure-deep); }
.segaby-blog-card-excerpt {
  margin: 0;
  color: var(--segaby-muted);
  font-size: 15px;
  line-height: 1.6;
}
.segaby-blog-card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.segaby-blog-card-foot time { color: var(--segaby-muted); font-size: 13px; }
.segaby-blog-card-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--segaby-azure);
  text-decoration: none;
  white-space: nowrap;
}
.segaby-blog-card-more:hover { color: var(--segaby-azure-deep); }

/* Barre latérale sobre */
.segaby-blog-aside {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 24px;
}
.segaby-blog-widget {
  background: var(--segaby-white);
  border: 1px solid var(--segaby-border);
  border-radius: var(--segaby-radius);
  padding: 20px 22px;
}
.segaby-blog-widget-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--segaby-blue-dark);
}
.segaby-blog-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.segaby-blog-widget a {
  color: var(--segaby-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
.segaby-blog-widget a:hover { color: var(--segaby-azure-deep); }
.segaby-blog-method p {
  margin: 0;
  color: var(--segaby-muted);
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
}

/* Pagination sobre */
.segaby-blog-main .pagination,
.segaby-blog-main nav.navigation { margin-top: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .segaby-blog-layout { grid-template-columns: 1fr; gap: 32px; }
  .segaby-blog-aside { position: static; }
}
@media (max-width: 600px) {
  .segaby-blog-grid { grid-template-columns: 1fr; }
  .segaby-blog-hero { padding: 36px 16px 28px; }
}
