/* Rubrique Guides et conseils */

.page-content .intro{
  margin-bottom:32px;
}

.guides-intro-banner{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 auto 26px;
  padding:20px 22px;
  background:linear-gradient(135deg,#fff7ed,#fef3c7);
  border:1px solid #fed7aa;
  border-radius:18px;
  color:#1a1a2e;
}

.guides-intro-banner-icon{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 52px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 16px rgba(245,158,11,.16);
  font-size:27px;
}

.guides-intro-banner strong{
  display:block;
  font-size:18px;
  line-height:1.25;
  margin-bottom:4px;
}

.guides-intro-banner span{
  display:block;
  color:#6b4f22;
  font-size:14px;
  line-height:1.55;
}

.guides-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.guide-card{
  display:flex;
  align-items:center;
  gap:15px;
  min-width:0;
  padding:18px;
  background:#fff;
  color:#1a1a2e;
  text-decoration:none;
  border:2px solid transparent;
  border-radius:17px;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.guide-card:hover{
  transform:translateY(-3px);
  border-color:#fbbf24;
  box-shadow:0 10px 26px rgba(251,191,36,.20);
}

.guide-card-large{
  min-height:145px;
}

.guide-card-icon{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 54px;
  border-radius:16px;
  background:linear-gradient(135deg,#fef3c7,#fde68a);
  font-size:28px;
}

.guide-card-content{
  display:block;
  flex:1;
  min-width:0;
}

.guide-card-content strong{
  display:block;
  margin-bottom:6px;
  font-size:17px;
  line-height:1.3;
}

.guide-card-content small{
  display:block;
  color:#64748b;
  font-size:14px;
  line-height:1.5;
}

.guide-card-arrow{
  color:#d97706;
  flex:0 0 auto;
  font-size:25px;
  font-weight:800;
  transition:transform .2s ease;
}

.guide-card:hover .guide-card-arrow{
  transform:translateX(4px);
}

.guides-create-banner{
  margin-top:32px;
}

.secondary-link-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:28px;
  padding:22px 24px;
  background:#fff;
  border:1px solid rgba(26,26,46,.08);
  border-radius:18px;
  box-shadow:0 4px 18px rgba(0,0,0,.06);
}

.secondary-link-box strong{
  display:block;
  margin-bottom:5px;
  color:#1a1a2e;
  font-size:17px;
}

.secondary-link-box p{
  margin:0;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}

.secondary-link-box a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 18px;
  border-radius:999px;
  background:#1a1a2e;
  color:#fbbf24;
  text-decoration:none;
  white-space:nowrap;
  font-weight:800;
  font-size:14px;
}

.secondary-link-box a:hover{
  background:#111827;
}

/* Article de guide */

.guide-article{
  max-width:860px;
  margin:0 auto;
  padding:30px 34px;
  background:#fff;
  border:1px solid rgba(26,26,46,.07);
  border-radius:22px;
  box-shadow:0 8px 30px rgba(0,0,0,.07);
}

.guide-essential{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:32px;
  padding:18px 20px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:16px;
}

.guide-essential-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  border-radius:13px;
  background:#fff;
  font-size:22px;
}

.guide-essential strong{
  display:block;
  margin-bottom:4px;
  color:#7c2d12;
  font-size:16px;
}

.guide-essential p{
  margin:0;
  color:#7c2d12;
  font-size:14px;
  line-height:1.65;
}

.guide-section{
  margin-top:34px;
}

.guide-section:first-of-type{
  margin-top:0;
}

.guide-section h2{
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:2px solid #fef3c7;
  color:#1a1a2e;
  font-size:24px;
  line-height:1.3;
}

.guide-section p{
  margin:0 0 14px;
  color:#475569;
  font-size:16px;
  line-height:1.75;
}

.guide-section ul{
  margin:8px 0 18px 22px;
  color:#475569;
}

.guide-section li{
  margin-bottom:9px;
  padding-left:3px;
  line-height:1.65;
}

.guide-section li::marker{
  color:#f59e0b;
}

.guide-tip{
  margin:20px 0 6px;
  padding:17px 19px;
  background:#f8fafc;
  border-left:5px solid #fbbf24;
  border-radius:0 14px 14px 0;
}

.guide-tip strong{
  display:block;
  margin-bottom:4px;
  color:#1a1a2e;
}

.guide-tip p{
  margin:0;
  font-size:14px;
}

.guide-steps{
  list-style:none;
  counter-reset:guide-step;
  margin:18px 0;
  padding:0;
  display:grid;
  gap:13px;
}

.guide-steps li{
  counter-increment:guide-step;
  position:relative;
  margin:0;
  padding:16px 17px 16px 60px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:15px;
}

.guide-steps li::before{
  content:counter(guide-step);
  position:absolute;
  left:15px;
  top:14px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#1a1a2e;
  color:#fbbf24;
  font-weight:800;
}

.guide-steps strong{
  display:block;
  margin-bottom:3px;
  color:#1a1a2e;
}

.guide-steps span{
  display:block;
  color:#64748b;
  line-height:1.55;
}

.guide-table-wrap{
  overflow-x:auto;
  border:1px solid #e2e8f0;
  border-radius:15px;
}

.guide-table{
  width:100%;
  min-width:650px;
  border-collapse:collapse;
  background:#fff;
}

.guide-table th,
.guide-table td{
  padding:13px 14px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
  vertical-align:top;
  line-height:1.5;
}

.guide-table th{
  background:#1a1a2e;
  color:#fbbf24;
  font-size:14px;
}

.guide-table td{
  color:#475569;
  font-size:14px;
}

.guide-table tr:last-child td{
  border-bottom:0;
}

.guide-faq{
  display:grid;
  gap:11px;
}

.guide-faq details{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
}

.guide-faq summary{
  padding:15px 17px;
  color:#1a1a2e;
  cursor:pointer;
  font-weight:800;
  list-style:none;
}

.guide-faq summary::-webkit-details-marker{
  display:none;
}

.guide-faq summary::after{
  content:'+';
  float:right;
  color:#d97706;
  font-size:22px;
  line-height:1;
}

.guide-faq details[open] summary::after{
  content:'–';
}

.guide-faq details p{
  margin:0;
  padding:0 17px 17px;
  color:#475569;
  font-size:14px;
  line-height:1.65;
}

.guide-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:38px;
  padding:24px;
  background:linear-gradient(135deg,#1a1a2e,#2d2d5e);
  border-radius:18px;
  color:#fff;
}

.guide-cta h2{
  margin:0 0 6px;
  font-size:21px;
}

.guide-cta p{
  margin:0;
  max-width:540px;
  color:#cbd5e1;
  line-height:1.55;
  font-size:14px;
}

.guide-cta .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:12px 20px;
  border-radius:999px;
  background:#fbbf24;
  color:#1a1a2e;
  text-decoration:none;
  white-space:nowrap;
  font-weight:800;
}

.guide-cta .btn:hover{
  background:#f59e0b;
}

.related-guides{
  margin-top:44px;
}

.guides-grid-small{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.guides-grid-small .guide-card{
  align-items:flex-start;
  padding:16px;
}

.guides-grid-small .guide-card-icon{
  width:44px;
  height:44px;
  flex-basis:44px;
  font-size:22px;
}

.guides-grid-small .guide-card-content strong{
  font-size:14px;
}

.guides-grid-small .guide-card-content small{
  font-size:12px;
}

/* Page des autres sites */

.external-sites-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.external-site-card{
  display:flex;
  flex-direction:column;
  gap:13px;
  min-height:270px;
  padding:21px;
  background:#fff;
  border:2px solid transparent;
  border-radius:18px;
  box-shadow:0 3px 14px rgba(0,0,0,.08);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.external-site-card:hover{
  transform:translateY(-3px);
  border-color:#fbbf24;
  box-shadow:0 10px 27px rgba(251,191,36,.18);
}

.external-site-head{
  display:flex;
  align-items:center;
  gap:13px;
}

.external-site-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 48px;
  border-radius:15px;
  background:#fef3c7;
  font-size:25px;
}

.external-site-card h2{
  margin:0;
  color:#1a1a2e;
  font-size:20px;
  line-height:1.25;
}

.external-site-card p{
  flex:1;
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.65;
}

.external-site-card > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  padding:11px 15px;
  border-radius:999px;
  background:#fbbf24;
  color:#1a1a2e;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
}

.external-site-card > a:hover{
  background:#f59e0b;
}

/* Bloc à insérer sur la page d'accueil */

.home-guides-block{
  margin:42px 0;
}

.home-guides-block .guides-grid{
  margin-top:22px;
}

.home-guides-more{
  margin-top:18px;
  text-align:center;
}

.home-guides-more a{
  display:inline-flex;
  padding:12px 22px;
  border-radius:999px;
  background:#1a1a2e;
  color:#fbbf24;
  text-decoration:none;
  font-weight:800;
}

@media(max-width:768px){
  .guides-grid,
  .external-sites-grid{
    grid-template-columns:1fr;
  }

  .guide-card-large{
    min-height:auto;
  }

  .guide-article{
    padding:23px 18px;
    border-radius:18px;
  }

  .guide-section h2{
    font-size:21px;
  }

  .guide-section p{
    font-size:15px;
  }

  .guide-cta,
  .secondary-link-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .guide-cta .btn,
  .secondary-link-box a{
    width:100%;
  }

  .guides-grid-small{
    grid-template-columns:1fr;
  }

  .external-site-card{
    min-height:auto;
  }
}

@media(max-width:520px){
  .guides-intro-banner{
    align-items:flex-start;
    padding:17px;
  }

  .guide-card{
    align-items:flex-start;
    padding:15px;
  }

  .guide-card-icon{
    width:46px;
    height:46px;
    flex-basis:46px;
    font-size:23px;
  }

  .guide-card-content strong{
    font-size:15px;
  }

  .guide-card-content small{
    font-size:13px;
  }

  .guide-card-arrow{
    font-size:20px;
  }

  .guide-essential{
    padding:15px;
  }

  .guide-essential-icon{
    display:none;
  }

  .guide-steps li{
    padding-left:52px;
  }

  .guide-steps li::before{
    left:12px;
  }
}
