/* LogiDrink · Annonce de l’Assistant IA : pastille du héros (accueil) + page /fonctionnalites/assistant-ia */

/* Pastille d’annonce dans le héros */
.ld-ai-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid #ffd9c2; color: #0a2540 !important; text-decoration: none !important;
  font-size: 14px; font-weight: 500; line-height: 1.3;
  box-shadow: 0 6px 20px rgba(253,112,32,.14);
  position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}

.ld-ai-pill::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg);
  animation: ldAiShine 3.6s ease-in-out infinite;
}
@keyframes ldAiShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ld-ai-pill b {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #fd7020 50%, #c44a0c); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.ld-ai-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ld-ai-pill i { font-style: normal; color: #c44a0c; font-weight: 700; transition: transform .18s; }
.ld-ai-pill:hover i { transform: translateX(3px); }
@media (max-width: 640px) { .ld-ai-pill { font-size: 13px; white-space: normal; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .ld-ai-pill::after { animation: none; } }

/* Page : héros centré */
.ld-ai-hero .ld-ai-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ld-ai-eyebrow { display: inline-flex !important; align-items: center; gap: 6px; color: #c44a0c !important; }

/* Démonstration de l’écran */
.ld-ai-demo { max-width: 720px; perspective: 1400px; }
.ld-ai-win {
  text-align: left; background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(10,37,64,.18), 0 6px 18px rgba(10,37,64,.08);
  
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
}
.ld-ai-win-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e3e8ee; font-size: 14px; color: #0a2540; }
.ld-ai-win-head em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #c44a0c; background: #fff1e8; border: 1px solid #ffd9c2; border-radius: 4px; padding: 1px 6px; }
.ld-ai-win-head i { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #e3e8ee; }
.ld-ai-win-head i + i { margin-left: 6px; }
.ld-ai-spark { color: #fd7020; }
.ld-ai-win-body { padding: 18px 20px 6px; font-size: 13.5px; line-height: 1.55; color: #0a2540; }
.ld-ai-msg { margin-bottom: 14px; }
.ld-ai-msg.me { margin-left: auto; max-width: 82%; background: #f6f9fc; border: 1px solid #e3e8ee; border-radius: 12px 12px 4px 12px; padding: 10px 14px; }
.ld-ai-msg small { display: block; text-align: right; color: #8898aa; font-size: 11px; margin-top: 4px; }
.ld-ai-msg u, .ld-ai-step u { color: #c44a0c; text-decoration: none; border-bottom: 1px solid rgba(196,74,12,.35); font-weight: 600; }
.ld-ai-plan { position: relative; border: 1px solid #e3e8ee; border-radius: 14px; padding: 14px 16px 10px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(10,37,64,.06); }
.ld-ai-plan::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(253,112,32,.6) 50%, rgba(85,221,255,.5) 60%, transparent 80%) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ldAiSheen 3.2s linear infinite;
}
@keyframes ldAiSheen { to { background-position: -300% 0; } }
.ld-ai-plan-h { display: flex; gap: 10px; align-items: flex-start; }
.ld-ai-plan-h b { font-size: 14px; }
.ld-ai-plan-h p { margin: 2px 0 0; font-size: 12.5px; color: #425466; }
.ld-ai-bolt { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff8a3d, #c44a0c); color: #fff; font-size: 13px; }
.ld-ai-count { margin-left: auto; flex: none; font-size: 11px; font-weight: 600; color: #425466; background: #f6f9fc; border: 1px solid #e3e8ee; border-radius: 20px; padding: 2px 9px; }
.ld-ai-step { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 8px; }
.ld-ai-step small { display: block; color: #067647; font-size: 12.5px; }
.ld-ai-ok { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #12b76a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; animation: ldAiPop 2.4s ease infinite; }
@keyframes ldAiPop { 0%, 30% { transform: scale(.6); opacity: .2; } 45% { transform: scale(1.1); opacity: 1; } 55%, 100% { transform: none; opacity: 1; } }
.ld-ai-bar { height: 3px; background: #f6f9fc; border-radius: 3px; overflow: hidden; }
.ld-ai-bar span { display: block; height: 100%; background: #12b76a; animation: ldAiBar 2.4s ease infinite; }
@keyframes ldAiBar { 0% { width: 0; } 40%, 100% { width: 100%; } }
.ld-ai-state span { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: #067647; background: #ecfdf3; border-radius: 20px; padding: 2px 9px; }
.ld-ai-win-input { display: flex; align-items: center; gap: 10px; margin: 6px 16px 16px; padding: 10px 10px 10px 14px; border: 1px solid #fdb78f; border-radius: 14px; box-shadow: 0 0 0 3px rgba(253,112,32,.1); color: #8898aa; font-size: 13.5px; }
.ld-ai-win-input i { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: #fd7020; color: #fff; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .ld-ai-plan::before, .ld-ai-ok, .ld-ai-bar span { animation: none; } .ld-ai-bar span { width: 100%; } .ld-ai-win { transform: none; } }

/* Étapes numérotées */
.ld-ai-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff1e8; color: #c44a0c; font-size: 14px; font-weight: 700; margin-right: 6px; vertical-align: middle; }

/* Exemples */
.ld-ai-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.ld-ai-examples blockquote {
  margin: 0; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #e3e8ee;
  font-size: 15px; line-height: 1.55; color: #0a2540; position: relative; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ld-ai-examples blockquote::before { content: '✦'; color: #fd7020; margin-right: 6px; }
.ld-ai-examples blockquote:hover { border-color: #ffd9c2; }
@media (max-width: 980px) { .ld-ai-examples { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ld-ai-examples { grid-template-columns: 1fr; } }

/* Garde-fous */
.ld-ai-safe { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 12px; }
.ld-ai-safe li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid #e3e8ee; background: #fff; }
.ld-ai-safe li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #ecfdf3; color: #067647; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ld-ai-safe li p { margin: 0; color: #425466; line-height: 1.6; }

/* FAQ */
.ld-ai-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.ld-ai-faq details { background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 0 18px; }
.ld-ai-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: #0a2540; list-style: none; position: relative; padding-right: 28px; }
.ld-ai-faq summary::-webkit-details-marker { display: none; }
.ld-ai-faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 20px; color: #c44a0c; transition: transform .2s; }
.ld-ai-faq details[open] summary::after { transform: rotate(45deg); }
.ld-ai-faq details p { margin: 0 0 16px; color: #425466; line-height: 1.65; }

/* Appel final */
.ld-ai-final-box {
  max-width: 980px; margin: 0 auto; text-align: center; padding: 56px 32px; border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, #fd7020 0%, #c44a0c 45%, #0a2540 100%); color: #fff;
}
.ld-ai-final-box h2 { color: #fff !important; }
.ld-ai-final-box p { color: rgba(255,255,255,.88); max-width: 640px; margin: 12px auto 0; }
.ld-ai-final-box .hero-cta { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
section.ld-ai-final { background: transparent !important; }

/* Carte « Assistant IA » de la page Fonctionnalités */
.ld-ai-featcard { border: 1px solid #ffd9c2 !important; background: linear-gradient(180deg, #fff 0%, #fff7f1 100%) !important; }
.ld-ai-featcard .icon { background: linear-gradient(135deg, #ff8a3d, #c44a0c) !important; color: #fff !important; }

/* Grille 3 × 2 : sélecteur plus précis que la règle auto-fit de ld-fpage.css */
html:not([data-ld-portal]) .feat-grid.ld-ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 980px) { html:not([data-ld-portal]) .feat-grid.ld-ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { html:not([data-ld-portal]) .feat-grid.ld-ai-grid { grid-template-columns: 1fr !important; } }

/* Annonce sous la capture du portail, au-dessus de « Découvrez LogiDrink par vous-même » : version très visible */
.ld-ai-pill.ld-ai-pill--big {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 8px 18px 8px 8px; gap: 12px;
  font-size: 15.5px; font-weight: 600; border: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 2px #fd7020, 0 10px 30px rgba(253,112,32,.28);
  animation: ldAiGlow 2.6s ease-in-out infinite;
}
.ld-ai-pill.ld-ai-pill--big b { padding: 5px 12px; font-size: 13px; }
.ld-ai-pill.ld-ai-pill--big:hover { box-shadow: 0 0 0 2px #c44a0c, 0 14px 36px rgba(253,112,32,.38); }
@keyframes ldAiGlow { 0%, 100% { box-shadow: 0 0 0 2px #fd7020, 0 10px 30px rgba(253,112,32,.22); } 50% { box-shadow: 0 0 0 2px #fd7020, 0 0 0 8px rgba(253,112,32,.14), 0 12px 34px rgba(253,112,32,.34); } }
@media (max-width: 640px) { .ld-ai-pill.ld-ai-pill--big { font-size: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .ld-ai-pill.ld-ai-pill--big { animation: none; } }

/* Bandeau en tête de la page Fonctionnalités */
section.ld-ai-feat-section { padding-top: 8px !important; padding-bottom: 8px !important; background: transparent !important; }
.ld-ai-featbanner {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; text-decoration: none !important; color: #0a2540 !important;
  background: linear-gradient(120deg, #fff 0%, #fff4ec 100%); border: 1px solid #ffd9c2; box-shadow: 0 0 0 2px rgba(253,112,32,.15), 0 12px 32px rgba(253,112,32,.12);
  transition: transform .18s, box-shadow .18s;
}
.ld-ai-featbanner:hover { box-shadow: 0 0 0 2px rgba(253,112,32,.35), 0 12px 32px rgba(253,112,32,.14); }
.ld-ai-featbanner-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #ff8a3d, #c44a0c); }
.ld-ai-featbanner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ld-ai-featbanner-txt b { font-size: 19px; font-weight: 700; }
.ld-ai-featbanner-txt b em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #fd7020; border-radius: 999px; padding: 3px 10px; margin-right: 6px; vertical-align: 2px; }
.ld-ai-featbanner-txt > span { color: #425466; font-size: 15px; line-height: 1.55; }
.ld-ai-featbanner-go { flex: none; font-size: 22px; color: #c44a0c; font-weight: 700; transition: transform .18s; }
.ld-ai-featbanner:hover .ld-ai-featbanner-go { transform: translateX(4px); }
@media (max-width: 640px) { .ld-ai-featbanner { align-items: flex-start; padding: 18px; } .ld-ai-featbanner-go { display: none; } .ld-ai-featbanner-txt b { font-size: 17px; } }


/* ===== Page Assistant IA, version sobre (09/10 soir) ===== */
/* Héros en deux colonnes comme l’accueil : texte à gauche, écran de l’assistant à droite */
.ld-ai-hero .ld-ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ld-ai-hero .ld-ai-demo { max-width: none; margin: 0 !important; }
.ld-ai-hero .ld-ai-win { box-shadow: 0 18px 44px rgba(10,37,64,.12), 0 2px 6px rgba(10,37,64,.05); }
@media (max-width: 980px) { .ld-ai-hero .ld-ai-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
/* Animations de la maquette ralenties et discrètes */
.ld-ai-plan::before { animation-duration: 6s; opacity: .7; }
.ld-ai-ok { animation: none; }
.ld-ai-bar span { animation: none; width: 100%; }
/* Avant / Avec l’assistant */
.ld-ai-chg { border: 1px solid #e3e8ee; border-radius: 14px; overflow: hidden; background: #fff; }
.ld-ai-chg-head, .ld-ai-chg-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 20px; padding: 16px 22px; }
.ld-ai-chg-head { background: #f6f9fc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7a8c; }
.ld-ai-chg-head span:last-child { color: #c44a0c; }
.ld-ai-chg-row { border-top: 1px solid #eef1f5; align-items: start; }
.ld-ai-chg-row b { color: #0a2540; font-weight: 600; }
.ld-ai-chg-row .b { color: #6b7a8c; }
.ld-ai-chg-row .a { color: #0a2540; padding-left: 14px; border-left: 3px solid #fd7020; }
@media (max-width: 760px) {
  .ld-ai-chg-head { display: none; }
  .ld-ai-chg-row { grid-template-columns: 1fr; gap: 6px; }
  .ld-ai-chg-row .b::before { content: 'Avant : '; font-weight: 600; }
}
/* Garde-fous sur deux colonnes, FAQ et appel final : alignement d’origine du site */
.ld-ai-safe { max-width: 980px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ld-ai-safe { grid-template-columns: 1fr; } }
/* Héros en deux colonnes : fil d’Ariane, pastilles et boutons alignés sur le texte */
html:not([data-ld-portal]) section.hero.ld-ai-hero .crumb { text-align: left !important; margin-left: 0 !important; }
html:not([data-ld-portal]) section.hero.ld-ai-hero .ld-ai-hero-inner, html:not([data-ld-portal]) section.hero.ld-ai-hero .ld-ai-hero-inner h1, html:not([data-ld-portal]) section.hero.ld-ai-hero .ld-ai-hero-inner p.lead { text-align: left !important; margin-left: 0 !important; }
html:not([data-ld-portal]) section.hero.ld-ai-hero .hero-tags, html:not([data-ld-portal]) section.hero.ld-ai-hero .hero-cta { justify-content: flex-start !important; }
