/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
/* ANIMATION ARRIVÉE DE LA FLÈCHE */
.global-arrow-clip {
    overflow: visible; /* laisser visible pour la tête de flèche */
}

.global-arrow {
    display: flex;
    align-items: center;
    max-width: 1150px;
    margin: 40px auto;
}

.segment, .arrow-head {
    opacity: 0;
    transform: translateX(-50px); /* départ décalé à gauche */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Classe activée par JS pour animer */
.global-arrow.show .segment,
.global-arrow.show .arrow-head {
    opacity: 1;
    transform: translateX(0);
}








/* SEGMENTS : style flèche solide et propre */
.segment {
	line-height: 1.7;
	margin-right:4px;
    flex: 1;
    background: #041927;
    padding: 20px 25px;
    text-align: center;
    color: white;
    font-weight: bold;
    border-right: 2px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.segment:last-child {
    border-right: none;
}
.segment:hover {
    background: linear-gradient(90deg, #c2f4c8, #286e45);
    box-shadow: inset 0 0 12px rgba(255,255,255,0.5), 
                0 0 12px rgba(40,110,69,0.7);
    transition: .25s ease;
}


/* TÊTE DE FLÈCHE réaliste */
.arrow-head {
    width: 0;
    height: 0;
    border-top: 90px solid transparent;
    border-bottom: 90px solid transparent;
    border-left: 90px solid #041927;
}

/* Textes plus visibles */
.duration {
    font-size: 1.4rem;
    display: block;
}
.price {
    font-size: 2rem;
    display: block;
    font-weight: 900;
    margin-top: 5px;
}

/* BOUTON "i" */
.info {
    cursor: pointer;
    margin-left: 12px;
    background: white;
    color: #286e45;
    width: 26px;
    height: 26px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: bold;
    transition: .2s;
}
.info:hover {
    transform: scale(1.25);
}

/* SHIMMER SEQUENTIEL : invisible par défaut */
.segment::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* départ à gauche hors écran */
    width: 300%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.55) 45%,
        transparent 100%
    );
    transform: skewX(-25deg);
    opacity: 0;  /* visible par défaut */
    pointer-events: none;
}


/* Classe activée par JS */
.segment.shine::after {
    animation: shimmer 0.9s ease-out forwards;
    opacity: 1;
}

@keyframes shimmer {
    0%   { left: -120%; }
    100% { left: 140%; }
}

/* PROLONGATION */
.prolongation-box {
    display: none;
    background: #e9ffec;
    border-left: 5px solid #286e45;
    padding: 12px 18px;
    margin-top: 18px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    font-weight: bold;
    color: #1d4f33;
    text-align: center;
}
.prolongation-box.show {
    display: block;
    animation: slide .3s ease-out;
}

@keyframes slide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}




/*responsive*/
@media screen and (max-width: 1286px) {
  .global-arrow {
    max-width: 937px;
  }
}
@media screen and (max-width: 1024px) {
  .global-arrow {
    max-width: 732px;
  }
}
@media screen and (max-width: 768px) {
  .arrow-head {
        display: none;
    }
}
@media screen and (max-width: 560px) {
    .global-arrow {
        flex-direction: column;
        gap: 13px;
    }
    .segment {
        padding: 20px 80px;
    }
}
