/*
Theme Name: Tutoriel iPhone TiP Theme V17
Theme URI: https://www.tutoriel-iphone.fr/
Author: Tutoriel iPhone
Description: Thème WordPress premium avec identité TiP renforcée, logo intégré forcé par défaut, header marque, cartes éditoriales, blocs SEO/Amazon et base compatible RankMath.
Version: 17.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tutoriel-iphone-tip
*/
:root{
  --ti-ink:#0B1F3A;--ti-blue:#0A66FF;--ti-blue2:#5AC8FA;--ti-soft:#F5F7FA;--ti-white:#fff;--ti-line:#E5ECF6;--ti-muted:#637083;--ti-mid:#D1D5DB;--ti-cream:#FBFCFE;--ti-radius:30px;--ti-shadow:0 24px 70px rgba(11,31,58,.11);--ti-shadow-soft:0 12px 34px rgba(11,31,58,.075);--ti-wrap:1180px;--ti-logo-size:330px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 16% -8%,rgba(10,102,255,.10),transparent 32%),linear-gradient(180deg,#fff 0%,#F7FAFF 58%,#fff 100%);color:var(--ti-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;font-size:17px;line-height:1.68;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{color:inherit;text-decoration:none}a:hover{color:var(--ti-blue)}img{max-width:100%;height:auto;display:block}.ti-wrap{width:min(var(--ti-wrap),calc(100% - 36px));margin:0 auto}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.ti-topbar{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(22px);border-bottom:1px solid rgba(229,236,246,.88)}.ti-header{display:flex;flex-direction:column;gap:10px;padding:12px 0}.ti-brandbar{width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px}.ti-brand{display:flex;align-items:center}.ti-logo-link{display:inline-flex;line-height:0}.ti-brand img{width:var(--ti-logo-size);max-width:min(var(--ti-logo-size),72vw);height:auto}.ti-header-actions{display:flex;align-items:center;gap:10px}.ti-quick-link{display:inline-flex;align-items:center;gap:8px;padding:11px 15px;border:1px solid var(--ti-line);background:#fff;border-radius:999px;box-shadow:var(--ti-shadow-soft);font-size:14px;font-weight:850}.ti-quick-link:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ti-blue);box-shadow:0 0 0 5px rgba(10,102,255,.10)}.ti-nav{display:flex;justify-content:center;width:100%}.ti-nav ul{list-style:none;margin:0;padding:6px;display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;background:rgba(245,247,250,.85);border:1px solid var(--ti-line);border-radius:999px}.ti-nav a{display:block;padding:8px 14px;border-radius:999px;font-size:13.5px;font-weight:780;color:var(--ti-ink)}.ti-nav .current-menu-item>a,.ti-nav a:hover{background:#fff;color:var(--ti-blue);box-shadow:0 6px 18px rgba(11,31,58,.07)}.ti-mobile-toggle{display:none;width:44px;height:44px;border:1px solid var(--ti-line);border-radius:16px;background:#fff;box-shadow:var(--ti-shadow-soft)}.ti-mobile-toggle span{display:block;width:18px;height:2px;background:var(--ti-ink);border-radius:2px;margin:4px auto}.ti-topbar.centered .ti-brandbar{display:flex;justify-content:center}.ti-topbar.centered .ti-header-actions{position:absolute;right:18px}.ti-topbar.centered .ti-brand{justify-content:center}
.ti-hero-shell{padding:34px 0 26px}.ti-hero-home{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:34px;align-items:center;padding:48px;border:1px solid var(--ti-line);border-radius:44px;background:linear-gradient(135deg,#fff 0%,#F7FAFF 65%,#EAF3FF 100%);box-shadow:var(--ti-shadow)}.ti-hero-home:after{content:"";position:absolute;right:-150px;top:-180px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(10,102,255,.22),transparent 68%)}.ti-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;background:#EAF3FF;color:var(--ti-blue);border-radius:999px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.ti-kicker:before{content:"";width:9px;height:9px;background:var(--ti-blue);border-radius:50%}.ti-hero-home h1{max-width:720px;margin:18px 0 14px;font-size:clamp(44px,6vw,82px);line-height:.95;letter-spacing:-.075em;font-weight:890}.ti-hero-home h1 .dot{color:var(--ti-blue)}.ti-hero-home p{max-width:610px;margin:0;color:var(--ti-muted);font-size:20px;line-height:1.55}.ti-search-large{max-width:620px;margin:28px 0 0;display:flex;gap:8px;background:#fff;border:1px solid var(--ti-line);border-radius:999px;padding:8px;box-shadow:var(--ti-shadow-soft)}.ti-search-large input{flex:1;border:0;outline:0;background:transparent;padding:0 18px;font-size:16px}.ti-search-large button,.ti-btn{border:0;border-radius:999px;background:var(--ti-blue);color:#fff;font-weight:850;padding:13px 20px;box-shadow:0 14px 28px rgba(10,102,255,.24);cursor:pointer}.ti-hero-card{position:relative;z-index:2;background:rgba(255,255,255,.86);border:1px solid var(--ti-line);border-radius:34px;padding:24px;box-shadow:var(--ti-shadow-soft)}.ti-tip-device{height:290px;border-radius:30px;background:linear-gradient(160deg,#0B1F3A,#0A66FF);display:grid;place-items:center;color:#fff;position:relative;overflow:hidden}.ti-tip-device:before{content:"TiP";font-size:72px;font-weight:900;letter-spacing:-.08em}.ti-tip-device:after{content:"";position:absolute;top:58px;right:78px;width:18px;height:18px;border-radius:50%;background:#5AC8FA;box-shadow:0 0 0 12px rgba(90,200,250,.18)}.ti-hero-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.ti-hero-chips a{display:inline-flex;padding:8px 11px;border-radius:999px;background:#F5F8FF;border:1px solid var(--ti-line);font-size:13px;font-weight:800;color:var(--ti-ink)}
.ti-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:34px;padding:28px 0 60px}.ti-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 18px}.ti-section-head h2{margin:0;font-size:32px;letter-spacing:-.05em;line-height:1.1}.ti-section-head p{margin:0;color:var(--ti-muted)}.ti-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.ti-card,.ti-widget,.ti-article,.ti-mini-card{background:#fff;border:1px solid var(--ti-line);border-radius:var(--ti-radius);box-shadow:var(--ti-shadow-soft);overflow:hidden}.ti-card{position:relative;transition:transform .18s ease,box-shadow .18s ease}.ti-card:hover{transform:translateY(-4px);box-shadow:var(--ti-shadow)}.ti-thumb-pinterest{display:block;aspect-ratio:2/3;background:linear-gradient(135deg,#F5F7FA,#EAF3FF);overflow:hidden}.ti-thumb-pinterest img{width:100%;height:100%;object-fit:cover}.ti-card-body{padding:20px 22px 23px}.ti-card h2{margin:8px 0 10px;font-size:25px;line-height:1.1;letter-spacing:-.045em}.ti-card p{margin:0 0 16px;color:var(--ti-muted);font-size:15.5px}.ti-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;background:#EAF3FF;color:var(--ti-blue);border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.ti-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ti-blue)}.ti-meta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;color:#8A95A6;font-size:13px;font-weight:680}.ti-feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0 8px}.ti-feature{background:#fff;border:1px solid var(--ti-line);border-radius:26px;padding:18px;box-shadow:var(--ti-shadow-soft)}.ti-feature strong{display:block;font-size:16px;letter-spacing:-.03em}.ti-feature span{display:block;margin-top:5px;color:var(--ti-muted);font-size:13.5px;line-height:1.35}.ti-feature .dot{width:10px;height:10px;border-radius:50%;background:var(--ti-blue);margin-bottom:12px}
.ti-article{padding:46px clamp(20px,5vw,70px);overflow:visible}.ti-article-header{text-align:center;margin:0 auto 32px;max-width:860px}.ti-article-header h1{margin:16px 0 14px;font-size:clamp(38px,5.4vw,68px);line-height:1;letter-spacing:-.06em}.ti-article-header .ti-excerpt{font-size:20px;color:var(--ti-muted);line-height:1.55}.ti-article-cover{border-radius:32px;overflow:hidden;margin:26px auto 38px;box-shadow:var(--ti-shadow)}.ti-content{font-size:18px;line-height:1.78}.ti-content h2{margin:42px 0 14px;font-size:34px;line-height:1.1;letter-spacing:-.045em}.ti-content h3{margin:30px 0 10px;font-size:24px;letter-spacing:-.03em}.ti-content p{margin:0 0 20px}.ti-content ul,.ti-content ol{padding-left:1.25em}.ti-content blockquote,.ti-note,.ti-amazon,.ti-related-searches{margin:32px 0;padding:24px;border-radius:24px;border:1px solid var(--ti-line);background:linear-gradient(180deg,#fff,#f8fbff)}.ti-content blockquote{font-weight:760;color:var(--ti-ink);border-left:5px solid var(--ti-blue)}.ti-amazon h2,.ti-related-searches h2{margin-top:0}.ti-amazon ul{list-style:none;padding:0;margin:15px 0 0;display:grid;gap:12px}.ti-amazon li a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px;border-radius:18px;background:#fff;border:1px solid var(--ti-line);font-weight:850;color:var(--ti-ink)}.ti-amazon li a:after{content:"Voir";background:var(--ti-blue);color:#fff;border-radius:12px;padding:8px 13px;font-size:13px}.ti-related-tags{display:flex;flex-wrap:wrap;gap:10px}.ti-related-tags a{display:inline-flex;padding:9px 13px;border-radius:999px;background:#fff;border:1px solid var(--ti-line);font-size:14px;font-weight:780;color:var(--ti-ink)}
.ti-sidebar{display:grid;gap:20px;align-content:start}.ti-widget{padding:22px}.ti-widget-title{margin:0 0 14px;font-size:18px;letter-spacing:-.03em}.ti-mini-card{display:grid;grid-template-columns:82px 1fr;gap:12px;border:0;box-shadow:none;border-radius:0;padding:12px 0;background:transparent;border-bottom:1px solid var(--ti-line)}.ti-mini-card:last-child{border-bottom:0}.ti-mini-card .ti-thumb-pinterest{border-radius:16px}.ti-mini-body h3{margin:0 0 8px;font-size:15px;line-height:1.25}.ti-rank-list{counter-reset:item;display:grid;gap:14px}.ti-rank-item{counter-increment:item;display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.ti-rank-number:before{content:counter(item);display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;background:#EAF3FF;color:var(--ti-blue);font-weight:900}.ti-rank-content a{display:block;font-weight:850;line-height:1.25}.ti-rank-date{display:block;margin-top:5px;color:#8A95A6;font-size:12px}.ti-tag-cloud{display:flex;flex-wrap:wrap;gap:9px}.ti-tag-cloud a{padding:8px 11px;border-radius:999px;background:var(--ti-soft);border:1px solid var(--ti-line);font-size:13px;font-weight:780}.ti-footer{border-top:1px solid var(--ti-line);background:#fff;padding:36px 0;color:var(--ti-muted)}.ti-footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}.ti-footer strong{color:var(--ti-ink)}.ti-ad{margin:22px auto;padding:12px;text-align:center;border-radius:18px;background:#fafcff}.pagination,.nav-links{display:flex;gap:10px;justify-content:center;margin:34px 0}.page-numbers{padding:10px 14px;border-radius:13px;background:#fff;border:1px solid var(--ti-line);font-weight:850}.page-numbers.current{background:var(--ti-blue);color:#fff}.ti-empty{background:#fff;border:1px solid var(--ti-line);border-radius:28px;padding:40px;text-align:center}.ti-search-title{padding:42px 0 8px;text-align:center}.ti-search-title h1{font-size:44px;letter-spacing:-.05em;margin:0 0 8px}.ti-search-title p{color:var(--ti-muted);margin:0}.wp-caption,.aligncenter{margin-left:auto;margin-right:auto}.alignwide{max-width:calc(var(--ti-wrap) + 120px);margin-left:50%;transform:translateX(-50%)}.alignfull{width:100vw;max-width:100vw;margin-left:50%;transform:translateX(-50%)}
@media(max-width:980px){.ti-hero-home{grid-template-columns:1fr;padding:34px}.ti-layout{grid-template-columns:1fr}.ti-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.ti-brand img{max-width:min(var(--ti-logo-size),70vw)}.ti-feature-strip{grid-template-columns:1fr}}
@media(max-width:720px){body{font-size:16px}.ti-wrap{width:min(100% - 28px,var(--ti-wrap))}.ti-header{align-items:stretch;gap:8px;padding:11px 0}.ti-brandbar{grid-template-columns:1fr auto}.ti-brand img{width:min(var(--ti-logo-size),250px);max-width:calc(100vw - 104px)}.ti-quick-link{display:none}.ti-mobile-toggle{display:block}.ti-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--ti-line);padding:12px 18px;box-shadow:0 16px 36px rgba(11,31,58,.08)}.ti-nav.is-open{display:flex}.ti-nav ul{width:100%;display:grid;border-radius:22px;background:var(--ti-soft)}.ti-nav a{text-align:center;padding:12px}.ti-hero-shell{padding:20px 0}.ti-hero-home{padding:26px;border-radius:32px}.ti-hero-home h1{font-size:43px}.ti-hero-home p{font-size:17px}.ti-search-large{border-radius:24px;display:grid}.ti-search-large button{width:100%}.ti-tip-device{height:210px}.ti-post-grid{grid-template-columns:1fr}.ti-sidebar{grid-template-columns:1fr}.ti-article{padding:28px 18px;border-radius:24px}.ti-article-header{text-align:left}.ti-article-header h1{font-size:38px}.ti-article-header .ti-excerpt{font-size:17px}.ti-content{font-size:17px}.ti-content h2{font-size:29px}.ti-footer-inner{display:grid;text-align:center;justify-content:center}.ti-amazon li a{grid-template-columns:1fr}.ti-amazon li a:after{justify-content:center;text-align:center}}


/* V11 logo simplifié : badge TiP + nom texte, sans doublon */
.ti-brand a {
  text-decoration: none;
}
.ti-logo-v11 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ti-logo-v11-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 14px 34px rgba(11,31,58,.13);
}
.ti-logo-v11-name {
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  letter-spacing: -0.045em;
  color: #0B1F3A;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .ti-logo-v11-name { display: none; }
  .ti-logo-v11-badge { width: 50px; height: 50px; border-radius: 16px; }
}


/* =========================
   V12 — Header compact premium
   ========================= */

/* Retire l'effet "gros panneau" */
.ti-topbar {
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid rgba(11,31,58,.08) !important;
  box-shadow: 0 8px 24px rgba(11,31,58,.04) !important;
}

.ti-header {
  padding-top: 18px !important;
  padding-bottom: 12px !important;
  min-height: auto !important;
}

.ti-brandbar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 18px !important;
}

.ti-brand {
  grid-column: 2 !important;
  justify-self: center !important;
}

.ti-header-actions {
  grid-column: 3 !important;
  justify-self: end !important;
}

.ti-logo-v11 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.ti-logo-v11-badge,
.ti-logo-img,
.ti-mini-logo {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  box-shadow: 0 10px 24px rgba(11,31,58,.12) !important;
}

.ti-logo-v11-name {
  font-size: 1.65rem !important;
  line-height: .95 !important;
  letter-spacing: -0.055em !important;
  font-weight: 850 !important;
  color: #0B1F3A !important;
}

.ti-nav {
  margin-top: 14px !important;
  display: flex !important;
  justify-content: center !important;
  border-top: 0 !important;
}

.ti-nav ul {
  display: inline-flex !important;
  gap: 4px !important;
  padding: 6px !important;
  border: 1px solid rgba(11,31,58,.09) !important;
  border-radius: 999px !important;
  background: #F5F7FA !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

.ti-nav a {
  padding: 9px 16px !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
  font-size: .92rem !important;
}

.ti-nav .current-menu-item > a,
.ti-nav a:hover {
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(11,31,58,.08) !important;
}

.ti-quick-link {
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: .86rem !important;
  box-shadow: 0 8px 22px rgba(11,31,58,.06) !important;
}

/* Réduit les grands vides de la page d'accueil */
.ti-hero,
.ti-home-hero,
.ti-front-hero,
.ti-home-intro,
.ti-hero-panel {
  margin-top: 28px !important;
}

.ti-wrap:first-of-type {
  margin-top: 0 !important;
}

/* Pub moins envahissante en haut */
.ti-ad-header,
.ti-ad--header,
.ti-ad.header,
.ti-wrap > .ti-ad:first-child {
  margin-top: 18px !important;
  margin-bottom: 28px !important;
}

/* Hero maison V12 si présent */
.ti-v12-hero {
  margin: 30px auto 22px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 8%, rgba(10,102,255,.20), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%);
  border: 1px solid rgba(11,31,58,.08);
  box-shadow: 0 24px 60px rgba(11,31,58,.08);
}

.ti-v12-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10,102,255,.10);
  color: #0A66FF;
  font-weight: 850;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ti-v12-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0A66FF;
}

.ti-v12-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .94;
  letter-spacing: -0.075em;
  color: #0B1F3A;
}

.ti-v12-hero p {
  max-width: 620px;
  margin: 0;
  color: #5F6B7A;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.ti-v12-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ti-v12-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0B1F3A;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(11,31,58,.08);
  box-shadow: 0 10px 24px rgba(11,31,58,.06);
}

.ti-v12-action:first-child {
  background: #0A66FF;
  color: #fff;
  border-color: #0A66FF;
}

@media (max-width: 760px) {
  .ti-header {
    padding-top: 12px !important;
  }
  .ti-brandbar {
    grid-template-columns: auto 1fr auto !important;
  }
  .ti-brand {
    grid-column: 1 !important;
    justify-self: start !important;
  }
  .ti-logo-v11-name {
    display: none !important;
  }
  .ti-logo-v11-badge,
  .ti-logo-img,
  .ti-mini-logo {
    width: 48px !important;
    height: 48px !important;
  }
  .ti-header-actions {
    grid-column: 3 !important;
  }
  .ti-quick-link {
    display: none !important;
  }
  .ti-nav {
    margin-top: 10px !important;
  }
  .ti-nav ul {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .ti-v12-hero {
    padding: 24px;
    border-radius: 26px;
    margin-top: 20px;
  }
}



/* =========================
   V13 — exact horizontal logo + real size control
   ========================= */
:root{
  --ti-logo-size: 520px;
}

.ti-header{
  padding-top: 18px !important;
  padding-bottom: 10px !important;
}

.ti-brandbar{
  display:grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items:center !important;
  gap:16px !important;
}

.ti-brand{
  grid-column:2 !important;
  justify-self:center !important;
}

.ti-header-actions{
  grid-column:3 !important;
  justify-self:end !important;
}

.ti-logo-link{
  display:block !important;
  line-height:0 !important;
}

.ti-logo-main{
  display:block !important;
  width:min(var(--ti-logo-size), 92vw) !important;
  max-width:min(var(--ti-logo-size), 92vw) !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
}

/* neutralise anciens styles qui réduisaient le logo */
.ti-logo-v11-badge,
.ti-logo-v11-name,
.ti-logo-v11,
.ti-logo-img{
  all: unset;
}

.ti-nav{
  margin-top: 12px !important;
  display:flex !important;
  justify-content:center !important;
}

.ti-nav ul{
  display:inline-flex !important;
  gap:4px !important;
  padding:6px !important;
  border:1px solid rgba(11,31,58,.09) !important;
  border-radius:999px !important;
  background:#F5F7FA !important;
}

.ti-nav a{
  padding:9px 16px !important;
  border-radius:999px !important;
}

.ti-nav .current-menu-item > a,
.ti-nav a:hover{
  background:#fff !important;
  box-shadow:0 6px 18px rgba(11,31,58,.08) !important;
}

@media (max-width:760px){
  :root{ --ti-logo-size: 280px; }
  .ti-brandbar{
    grid-template-columns: 1fr auto !important;
  }
  .ti-brand{
    grid-column:1 !important;
    justify-self:start !important;
  }
  .ti-header-actions{
    grid-column:2 !important;
    justify-self:end !important;
  }
  .ti-quick-link{ display:none !important; }
  .ti-mobile-toggle{ display:inline-flex !important; }
  .ti-nav{
    margin-top:10px !important;
  }
  .ti-nav ul{
    width:100% !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
  }
}


/* =========================
   V14 — logo transparent + header réduit
   ========================= */

:root {
  --ti-logo-size: 520px;
}

.ti-topbar {
  background: #fff !important;
  border-bottom: 1px solid rgba(11,31,58,.07) !important;
  box-shadow: 0 4px 18px rgba(11,31,58,.035) !important;
}

.ti-header {
  padding-top: 12px !important;
  padding-bottom: 10px !important;
  min-height: 0 !important;
}

.ti-brandbar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 14px !important;
}

.ti-brand {
  grid-column: 2 !important;
  justify-self: center !important;
  line-height: 0 !important;
}

.ti-header-actions {
  grid-column: 3 !important;
  justify-self: end !important;
}

.ti-logo-link {
  display: inline-block !important;
  line-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.ti-logo-main {
  display: block !important;
  width: min(var(--ti-logo-size), 92vw) !important;
  max-width: min(var(--ti-logo-size), 92vw) !important;
  height: auto !important;
  max-height: 98px !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Si un ancien style impose une boîte blanche autour du logo */
.ti-logo-main,
.ti-logo-link img {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.ti-nav {
  margin-top: 8px !important;
  display: flex !important;
  justify-content: center !important;
}

.ti-nav ul {
  display: inline-flex !important;
  gap: 4px !important;
  padding: 5px !important;
  border: 1px solid rgba(11,31,58,.09) !important;
  border-radius: 999px !important;
  background: #F5F7FA !important;
}

.ti-nav a {
  padding: 8px 15px !important;
  border-radius: 999px !important;
  font-size: .92rem !important;
  font-weight: 780 !important;
}

.ti-quick-link {
  padding: 8px 13px !important;
  font-size: .84rem !important;
}

@media (max-width: 760px) {
  :root {
    --ti-logo-size: 260px;
  }

  .ti-header {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  .ti-brandbar {
    grid-template-columns: 1fr auto !important;
  }

  .ti-brand {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .ti-header-actions {
    grid-column: 2 !important;
  }

  .ti-logo-main {
    max-height: 62px !important;
  }

  .ti-quick-link {
    display: none !important;
  }

  .ti-nav {
    margin-top: 8px !important;
  }
}


/* =========================
   V15 — Menu mobile hamburger propre
   ========================= */

/* Desktop : menu visible, bouton caché */
.ti-mobile-toggle {
  display: none !important;
}

/* Mobile : bouton visible, menu caché par défaut */
@media (max-width: 760px) {
  .ti-mobile-toggle {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    border: 1px solid rgba(11,31,58,.10) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(11,31,58,.08) !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  .ti-mobile-toggle span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #0B1F3A !important;
    transition: transform .2s ease, opacity .2s ease !important;
  }

  .ti-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .ti-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  .ti-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  .ti-nav {
    display: none !important;
    margin-top: 12px !important;
    width: 100% !important;
  }

  body.ti-menu-open .ti-nav {
    display: block !important;
  }

  .ti-nav ul {
    display: grid !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 22px !important;
    background: #fff !important;
    border: 1px solid rgba(11,31,58,.10) !important;
    box-shadow: 0 18px 40px rgba(11,31,58,.10) !important;
  }

  .ti-nav li {
    width: 100% !important;
  }

  .ti-nav a {
    display: block !important;
    width: 100% !important;
    padding: 13px 14px !important;
    text-align: left !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
  }
}


/* V16 — panneau bleu : vrai logo intégré */
.ti-tip-device{display:flex !important;align-items:center !important;justify-content:center !important;position:relative !important;overflow:hidden !important;background:linear-gradient(135deg,#133A7A 0%, #204FA5 100%) !important}.ti-tip-device:before,.ti-tip-device:after{content:none !important}.ti-tip-device-logo{display:block !important;width:min(84%, 480px) !important;max-width:84% !important;height:auto !important;filter:drop-shadow(0 16px 30px rgba(11,31,58,.18))}.ti-tip-device{padding:24px !important}@media(max-width:720px){.ti-tip-device-logo{width:min(86%, 320px) !important}}


/* =========================
   V17 — homepage nettoyée + sidebar premium
   ========================= */

/* cache totalement l'ancien second hero si du cache HTML le garde */
.ti-hero-shell,
.ti-hero-home,
.ti-hero-card,
.ti-tip-device,
.ti-v12-hero + .ti-hero-shell {
  display: none !important;
}

/* Un seul hero propre */
.ti-v17-hero {
  margin: 28px auto 18px !important;
  padding: clamp(28px, 5vw, 52px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(10,102,255,.16), transparent 34%),
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFF 64%, #EEF5FF 100%) !important;
  border: 1px solid rgba(11,31,58,.08) !important;
  box-shadow: 0 24px 60px rgba(11,31,58,.08) !important;
}

.ti-v17-hero h1 {
  max-width: 820px !important;
  margin: 16px 0 12px !important;
  font-size: clamp(42px, 7vw, 76px) !important;
  line-height: .94 !important;
  letter-spacing: -0.08em !important;
  font-weight: 900 !important;
  color: #0B1F3A !important;
}

.ti-v17-hero h1 .dot {
  color: #0A66FF !important;
}

.ti-v17-hero p {
  max-width: 650px !important;
  margin: 0 !important;
  color: #5F6B7A !important;
  font-size: clamp(17px, 2vw, 20px) !important;
  line-height: 1.6 !important;
}

.ti-v17-search {
  max-width: 650px !important;
  margin-top: 28px !important;
  display: flex !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,58,.09) !important;
  box-shadow: 0 16px 36px rgba(11,31,58,.08) !important;
}

.ti-v17-search input {
  min-width: 0 !important;
  flex: 1 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 0 16px !important;
  font-size: 15px !important;
}

.ti-v17-search button {
  border: 0 !important;
  border-radius: 999px !important;
  background: #0A66FF !important;
  color: #fff !important;
  font-weight: 850 !important;
  padding: 12px 18px !important;
  box-shadow: 0 12px 26px rgba(10,102,255,.22) !important;
  cursor: pointer !important;
}

.ti-v17-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.ti-v17-features a {
  display: block !important;
  text-decoration: none !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,58,.08) !important;
  box-shadow: 0 14px 34px rgba(11,31,58,.06) !important;
}

.ti-v17-features span {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #0A66FF !important;
  margin-bottom: 14px !important;
}

.ti-v17-features strong {
  display: block !important;
  color: #0B1F3A !important;
  font-size: 16px !important;
  margin-bottom: 7px !important;
}

.ti-v17-features small {
  display: block !important;
  color: #6B7585 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.ti-v17-after-hero-ad {
  margin-top: 8px !important;
  margin-bottom: 36px !important;
}

/* Sidebar premium : plus de rendu WordPress brut */
.ti-v17-sidebar {
  display: grid !important;
  gap: 18px !important;
  align-content: start !important;
}

.ti-widget,
.widget,
.ti-premium-widget {
  border-radius: 26px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(11,31,58,.08) !important;
  box-shadow: 0 18px 46px rgba(11,31,58,.07) !important;
}

.ti-premium-widget {
  padding: 22px !important;
}

.ti-premium-widget h2 {
  margin: 10px 0 8px !important;
  color: #0B1F3A !important;
  font-size: 22px !important;
  letter-spacing: -.04em !important;
  line-height: 1.08 !important;
}

.ti-premium-widget p {
  margin: 0 0 16px !important;
  color: #6B7585 !important;
  line-height: 1.55 !important;
  font-size: 14px !important;
}

.ti-widget-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: #EAF3FF !important;
  color: #0A66FF !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

.ti-widget-pill:before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #0A66FF !important;
}

.ti-widget-links,
.ti-widget-tags {
  display: grid !important;
  gap: 8px !important;
}

.ti-widget-links a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 13px !important;
  border-radius: 16px !important;
  background: #F7FAFF !important;
  color: #0B1F3A !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.ti-widget-links a:after {
  content: "›" !important;
  color: #0A66FF !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.ti-widget-tags {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}

.ti-widget-tags a {
  padding: 10px 12px !important;
  border-radius: 999px !important;
  background: #F5F7FA !important;
  border: 1px solid rgba(11,31,58,.08) !important;
  color: #0B1F3A !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.ti-widget-posts {
  display: grid !important;
  gap: 12px !important;
}

.ti-widget-posts a {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  text-decoration: none !important;
}

.ti-widget-posts img,
.ti-widget-thumb {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  background: linear-gradient(135deg,#0B1F3A,#0A66FF) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 900 !important;
}

.ti-widget-posts strong {
  color: #0B1F3A !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.ti-widget-cta {
  display: inline-flex !important;
  width: 100% !important;
  justify-content: center !important;
  padding: 12px 14px !important;
  border-radius: 999px !important;
  background: #0A66FF !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(10,102,255,.22) !important;
}

.ti-sos-widget {
  background:
    radial-gradient(circle at 100% 0%, rgba(10,102,255,.14), transparent 38%),
    #fff !important;
}

.ti-affiliate-widget {
  background:
    linear-gradient(135deg,#FFFFFF 0%,#F7FAFF 100%) !important;
}

/* Articles grid un peu plus premium */
.ti-card {
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 44px rgba(11,31,58,.07) !important;
}

@media (max-width: 980px) {
  .ti-v17-features {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .ti-v17-hero {
    padding: 26px !important;
    border-radius: 28px !important;
    margin-top: 20px !important;
  }

  .ti-v17-search {
    border-radius: 24px !important;
    display: grid !important;
  }

  .ti-v17-search button {
    width: 100% !important;
  }

  .ti-widget-tags {
    grid-template-columns: 1fr !important;
  }
}
