/* Page d'accueil v2 : styles limités à .home2, le header et le simulateur ne sont pas touchés */

.home2 {
    --h2-green: var(--couleur-vert-paletiz, #63b340);
    --h2-yellow: #ebd20c;         /* bouton d'action */
    --h2-ink: #222;
    --h2-text: #46504a;
    --h2-surface: #fff;
    --h2-tint: var(--paletiz-gray, #f8f9fa);
    --h2-line: #e2e5e8;
    --h2-radius: 12px;
    --h2-space: clamp(56px, 8vw, 110px);
    --h2-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --h2-display: 'Poppins', sans-serif;

    color: var(--h2-text);
    font-size: 1rem;
    line-height: 1.7;
}

.home2 section { padding: var(--h2-space) 0; }
.home2 p { max-width: 68ch; margin: 0 0 1.1em; }
.home2 strong { color: var(--h2-ink); font-weight: 600; }
.home2 p a { color: var(--h2-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--h2-green); text-decoration-thickness: 2px; }
.home2 p a:hover { color: var(--h2-green); }

.home2 .h2-title {
    font-family: var(--h2-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.25;
    color: var(--h2-ink);
    margin: 0 0 22px;
    text-wrap: balance;
}
.home2 .h2-title--xl { font-size: clamp(1.75rem, 3.1vw, 2.65rem); line-height: 1.2; }
.home2 .h2-title strong { color: var(--h2-green); font-weight: 600; }

.home2 .h2-head { max-width: 760px; margin-bottom: 48px; }

.home2 .h2-route a:focus-visible,
.home2 a:focus-visible,
.home2 button:focus-visible,
.home2 .BlockQuestion:focus-visible { outline: 3px solid var(--h2-green); outline-offset: 3px; }

/* Boutons et liens d'action */
.home2 .h2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s var(--h2-ease);
}
.home2 .h2-btn:hover { transform: translateY(-2px); text-decoration: none; }
.home2 .h2-btn--green { background: var(--h2-green); color: var(--h2-ink); }
.home2 .h2-btn--green:hover { background: var(--h2-ink); color: #fff; }
.home2 .h2-btn--yellow { background: var(--h2-yellow); color: var(--h2-ink); }
.home2 .h2-btn--yellow:hover { background: #fff; color: var(--h2-ink); }
.home2 .h2-btn--dark { background: var(--h2-ink); color: #fff; }
.home2 .h2-btn--dark:hover { background: #fff; color: var(--h2-ink); }
.home2 .h2-btn--outline { border-color: var(--h2-green); color: var(--h2-ink); background: transparent; }
.home2 .h2-btn--outline:hover { background: var(--h2-green); color: var(--h2-ink); }

.home2 .h2-more i { display: inline-block; margin-left: 6px; transition: transform .2s var(--h2-ease); }
@media (hover: hover) { .home2 .h2-more:hover i { transform: translateX(5px); } }

/* Présentation */
.home2 .h2-intro { background: var(--h2-surface); padding-top: calc(var(--h2-space) * .6); }
.home2 .h2-intro__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.home2 .h2-lead { font-size: 1.2rem; line-height: 1.6; color: var(--h2-ink); }
.home2 .h2-intro__visual { margin: 0; border-radius: var(--h2-radius); overflow: hidden; background: var(--h2-ink); }
.home2 .h2-intro__visual img { display: block; width: 100%; height: auto; }
.home2 .h2-intro__visual figcaption { display: grid; grid-template-columns: repeat(3, 1fr); color: #e6e6e6; font-size: .85rem; line-height: 1.4; }
.home2 .h2-intro__visual figcaption span { padding: 18px 16px; }
.home2 .h2-intro__visual figcaption span + span { border-left: 1px solid rgba(255,255,255,.14); }
.home2 .h2-intro__visual figcaption b { display: block; font-family: var(--h2-display); font-size: 1.5rem; line-height: 1.2; color: var(--h2-green); }

/* Formats de palettes, dessinés à l'échelle (vue de dessus, 1 px = 1 cm pour les standards) */
.home2 .h2-formats { background: var(--h2-tint); }
.home2 .h2-formats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 20px; }
.home2 .h2-formats__list li { display: flex; }
.home2 .h2-format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
    text-align: left;
    background: var(--h2-surface);
    border: 2px solid var(--h2-line);
    border-radius: var(--h2-radius);
    cursor: pointer;
    transition: border-color .2s, transform .25s var(--h2-ease);
}
.home2 .h2-format:hover { border-color: var(--h2-green); transform: translateY(-4px); }
.home2 .h2-format__floor { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 150px; margin-bottom: 18px; }
.home2 .h2-pal {
    display: block;
    width: var(--w);
    max-width: 100%;
    height: var(--h);
    border-radius: 3px;
    /* planches de bois sur des traverses */
    background: repeating-linear-gradient(90deg, #d9a766 0, #d9a766 calc(20% - 5px), #8a6234 calc(20% - 5px), #8a6234 20%);
    border: 3px solid #8a6234;
}
.home2 .h2-pal--custom { background: repeating-linear-gradient(90deg, #d9a766 0, #d9a766 calc(10% - 4px), #8a6234 calc(10% - 4px), #8a6234 10%); }
.home2 .h2-format__name { font-size: .95rem; color: var(--h2-text); }
.home2 .h2-format__size { font-family: var(--h2-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--h2-ink); }
.home2 .h2-format__go i { color: var(--h2-green); }
.home2 .h2-format__go { margin-top: auto; padding-top: 16px; font-size: .85rem; font-weight: 600; color: var(--h2-ink); }
.home2 .h2-format--custom { border-style: dashed; border-color: var(--h2-green); }
.home2 .h2-format--custom:hover { border-style: solid; }
.home2 .h2-formats__note { font-size: .9rem; margin: 0; }

/* Parcours */
.home2 .h2-route { background: var(--h2-green); color: var(--h2-ink); }
.home2 .h2-route .h2-title { color: var(--h2-ink); }
.home2 .h2-route p a { color: var(--h2-ink); text-decoration-color: var(--h2-ink); }
.home2 .h2-route p a:hover { color: #fff; }
.home2 .h2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.home2 .h2-steps li { position: relative; }
/* route reliant les étapes */
.home2 .h2-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 56px;
    right: -12px;
    border-top: 3px dashed rgba(255,255,255,.75);
}
.home2 .h2-steps__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--h2-ink);
    font-family: var(--h2-display);
    font-size: 1.35rem;
    font-weight: 600;
}
.home2 .h2-steps img { display: block; width: 84px; height: 84px; margin: 28px 0 14px; }
.home2 .h2-route strong { color: var(--h2-ink); }
.home2 .h2-steps h3 { margin: 0; max-width: 22ch; font-family: var(--h2-display); font-size: 1.05rem; font-weight: 600; line-height: 1.45; color: var(--h2-ink); }

/* Léa */
.home2 .h2-lea { background: var(--h2-surface); }
.home2 .h2-lea__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.home2 .h2-chat { background: var(--h2-tint); border-radius: var(--h2-radius); padding: clamp(20px, 3vw, 36px); }
.home2 .h2-chat__who { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.home2 .h2-chat__who img { width: 72px; height: 72px; object-fit: contain; }
.home2 .h2-chat__who h3 { margin: 0 0 4px; font-family: var(--h2-display); font-size: 1.2rem; font-weight: 600; color: var(--h2-ink); }
.home2 .h2-chat__who p { margin: 0; font-size: .9rem; line-height: 1.5; }
.home2 .h2-chat ul.Question_IA_block { flex-direction: column; align-items: flex-end; gap: 10px; }
.home2 .h2-chat ul.Question_IA_block li { width: auto; max-width: 100%; }
.home2 .h2-chat ul.Question_IA_block li a.btn {
    min-height: 44px;
    padding: 10px 18px;
    white-space: normal;
    background: var(--h2-surface);
    border: 1px solid var(--h2-line);
    border-radius: 18px 18px 4px 18px;
    color: var(--h2-ink);
    font-size: .95rem;
    transition: background-color .2s, color .2s, border-color .2s;
}
.home2 .h2-chat ul.Question_IA_block li a.btn:hover { background: var(--h2-green); border-color: var(--h2-green); color: var(--h2-ink); }

/* PME */
.home2 .h2-pme { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--h2-ink); color: #d4d4d4; }
.home2 .h2-pme__photo { min-height: 420px; background: url('../img/warehouse_ia.jpg') 70% center / cover no-repeat; }
.home2 .h2-pme__content { padding: var(--h2-space) clamp(24px, 5vw, 90px); }
.home2 .h2-pme .h2-title { color: #fff; }
.home2 .h2-pme strong { color: var(--h2-green); }
.home2 .h2-pme h3 { margin: 36px 0 14px; font-family: var(--h2-display); font-size: 1.25rem; font-weight: 600; color: #fff; }

/* Approvisionnement et tarifs */
.home2 .h2-supply { background: var(--h2-surface); }
.home2 .h2-supply__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.home2 .h2-supply__visual { display: block; width: 100%; max-width: 600px; height: auto; margin-top: 32px; }
.home2 .h2-quote { background: var(--h2-ink); color: #d9d9d9; border-radius: var(--h2-radius); padding: clamp(24px, 4vw, 56px); }
.home2 .h2-quote .h2-title { color: #fff; }
.home2 .h2-quote strong { color: #fff; }
.home2 .h2-quote p a { color: #fff; }
.home2 .h2-quote p a:hover { color: #fff; }
.home2 .h2-quote .h2-btn { margin-top: 12px; }

/* Connecteurs : API et module PrestaShop */
.home2 .h2-connect { background: var(--h2-tint); }
.home2 .h2-connect__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.home2 .h2-connect__card { background: var(--h2-surface); border: 1px solid var(--h2-line); border-radius: var(--h2-radius); padding: clamp(24px, 4vw, 40px); }
.home2 .h2-connect__card h3 { margin: 14px 0 12px; font-family: var(--h2-display); font-size: 1.25rem; font-weight: 600; color: var(--h2-ink); line-height: 1.35; }
.home2 .h2-connect__card--dark { background: var(--h2-ink); color: #d9d9d9; border-color: var(--h2-ink); }
.home2 .h2-connect__card--dark h3 { color: #fff; }
.home2 .h2-connect__card--dark strong { color: #fff; }
.home2 .h2-connect__card--dark p { color: #d9d9d9; }
.home2 .h2-connect__tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 20px; background: var(--h2-green); color: var(--h2-ink); font-family: var(--h2-display); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.home2 .h2-connect__tag--light { background: rgba(255,255,255,.12); color: #fff; }
.home2 .h2-connect__list { list-style: none; margin: 0 0 1.1em; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.home2 .h2-connect__list code { font-size: .85rem; background: var(--h2-tint); color: var(--h2-ink); padding: 2px 8px; border-radius: 4px; margin-right: 6px; }
.home2 .h2-connect__card--dark .h2-btn { margin-top: 8px; }
.home2 .h2-connect__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home2 .h2-connect__partner-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 6px 10px; }
.home2 .h2-connect__partner-logo img { height: 18px; width: auto; display: block; }
.home2 .h2-connect__shot { margin: 0 0 20px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 32px -20px rgba(0,0,0,.5); }
.home2 .h2-connect__shot img { display: block; width: 100%; height: auto; }

/* Avis */
.home2 #STrustpilot { background: var(--h2-tint); }
.home2 #STrustpilot .tp-header h2 { font-family: var(--h2-display); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600; color: var(--h2-ink); }
.home2 #STrustpilot .tp-score { color: var(--h2-ink); }
.home2 #STrustpilot .tp-score-block p { color: var(--h2-text); max-width: none; }
.home2 #STrustpilot .tp-link { color: var(--h2-ink); border-color: var(--h2-green); }
.home2 #STrustpilot .tp-link:hover { background: var(--h2-green); color: var(--h2-ink); }
.home2 #STrustpilot .tp-card { box-shadow: none; border: 1px solid var(--h2-line); border-radius: var(--h2-radius); }
.home2 #STrustpilot .tp-avatar { background: var(--h2-green); color: var(--h2-ink); }
.home2 #STrustpilot .tp-verified { color: var(--h2-ink); background: var(--h2-tint); }
.home2 #STrustpilot .tp-verified i { color: var(--h2-green); }
.home2 #STrustpilot .tp-owl .owl-nav button:hover { background: var(--h2-green) !important; color: var(--h2-ink) !important; }
.home2 #STrustpilot .tp-text { max-width: none; }
.home2 #STrustpilot .tp-owl .owl-dot span { background: #cfd3d7 !important; }
.home2 #STrustpilot .tp-owl .owl-dot.active span { background: var(--h2-green) !important; }
@media (max-width: 1360px) {
    .home2 #STrustpilot .tp-owl .owl-nav { display: none; }
}

/* FAQ */
.home2 #SFAQ { margin: 0; padding: var(--h2-space) 0; background: var(--h2-surface); }
.home2 .h2-faq__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.home2 .h2-faq__side { position: sticky; top: 100px; }
.home2 #SFAQ article { border-bottom: 1px solid var(--h2-line); }
.home2 #SFAQ article .BlockQuestion { margin: 0; padding: 18px 4px; background: transparent; border-radius: 0; transition: color .2s; }
.home2 #SFAQ article .BlockQuestion .TitreQuestion { color: var(--h2-ink); font-size: 1.02rem; line-height: 1.5; }
.home2 #SFAQ article .BlockQuestion:hover .TitreQuestion,
.home2 #SFAQ article .BlockQuestion.active .TitreQuestion { color: var(--h2-ink); }
.home2 #SFAQ article .BlockQuestion .TitreQuestion i { margin-right: 16px; background: var(--h2-tint); color: var(--h2-green); transition: transform .25s var(--h2-ease), background-color .2s; }
.home2 #SFAQ article .BlockQuestion.active .TitreQuestion i { background: var(--h2-green); color: var(--h2-ink); }
.home2 #SFAQ article .BlockQuestion:hover .TitreQuestion i:not(.fa-rotate-90) { background: #e9ecef; }
.home2 #SFAQ article .BlockReponse { padding: 0 4px 24px 50px; background: transparent; color: var(--h2-text); border-radius: 0; }
.home2 #SFAQ article .BlockReponse p { color: var(--h2-text); }

/* Appel final */
.home2 .h2-final { background: var(--h2-green); color: var(--h2-ink); padding: calc(var(--h2-space) * .65) 0; }
.home2 .h2-final__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.home2 .h2-final .h2-title { color: var(--h2-ink); margin-bottom: 8px; }
.home2 .h2-final p { margin: 0; }

/* Apparition au défilement */
.home2.h2-animate .h2-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--h2-ease), transform .6s var(--h2-ease); }
.home2.h2-animate .h2-reveal.is-visible { opacity: 1; transform: none; }

/* Tablette */
@media (max-width: 991px) {
    .home2 .h2-intro__grid,
    .home2 .h2-lea__grid,
    .home2 .h2-supply__grid,
    .home2 .h2-connect__grid,
    .home2 .h2-faq__grid,
    .home2 .h2-pme { grid-template-columns: minmax(0, 1fr); }
    .home2 .h2-pme__photo { min-height: 260px; background-position: right center; }
    .home2 .h2-faq__side { position: static; }
    .home2 .h2-formats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home2 .h2-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .home2 .h2-steps li:nth-child(2)::after { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
    .home2 .container { padding-left: 20px; padding-right: 20px; }
    .home2 .h2-format { padding: 14px; }
    .home2 .h2-format__size { font-size: 1.1rem; }
    .home2 .h2-intro__visual figcaption span { padding: 14px 10px; }
    .home2 .h2-intro__visual figcaption b { font-size: 1.2rem; }
    /* étapes empilées, route verticale */
    .home2 .h2-steps { grid-template-columns: 1fr; row-gap: 32px; }
    .home2 .h2-steps li { display: grid; grid-template-columns: 44px 56px 1fr; gap: 16px; align-items: center; }
    .home2 .h2-steps img { width: 56px; height: 56px; margin: 0; }
    .home2 .h2-route strong { color: var(--h2-ink); }
.home2 .h2-steps h3 { font-size: 1rem; }
    .home2 .h2-steps li:not(:last-child)::after,
    .home2 .h2-steps li:nth-child(2)::after { display: block; top: calc(50% + 24px); bottom: -34px; left: 20px; right: auto; border-top: 0; border-left: 3px dashed rgba(255,255,255,.75); }
    .home2 .h2-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .home2 *, .home2 *::before, .home2 *::after { animation: none !important; transition: none !important; }
}
