/* CCI Cote d'Ivoire theme override — loaded after index.css/custom.css/layout.css.
   Repaints the purple "new_home" theme in CCI colors and adds CCI branding. */

:root {
    --cci-orange: #7A2331;
    --cci-blue: #58595B;
    --cci-orange-light: #efe1e3;
    --cci-blue-light: #eaeaea;
}

/* ---- global elements shared across the whole app2 layout (header, footer, buttons not
   explicitly re-styled on the page itself) — keep these in sync with --cci-orange ---- */
.btn-white {
    background-color: #fff;
    border: 1px solid var(--cci-orange);
    color: var(--cci-orange);
}
.btn-primary,
.btn-white.active,
.btn-white:active,
.btn-white:focus,
.btn-white:hover {
    background-color: var(--cci-orange);
    border: 1px solid #fff;
    color: #fff;
}
.btn-primary-light,
.btn-primary.active,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    background-color: #fff;
    border: 1px solid var(--cci-orange);
    color: var(--cci-orange);
}
.btn-primary-light.active,
.btn-primary-light:active,
.btn-primary-light:focus,
.btn-primary-light:hover {
    background-color: var(--cci-orange);
    border: 1px solid var(--cci-orange);
    color: #fff;
}
.section-heading h2:after {
    background-color: var(--cci-orange);
}
.text-primary {
    color: var(--cci-orange) !important;
}
.bg-primary {
    background-color: var(--cci-orange) !important;
}
mark {
    background-color: transparent;
    color: var(--cci-orange);
}
.slick-arrow {
    background-color: var(--cci-orange);
    border: 1px solid var(--cci-orange);
}
.slick-arrow.active,
.slick-arrow:active,
.slick-arrow:focus,
.slick-arrow:hover {
    background-color: transparent;
    border: 1px solid var(--cci-orange);
    color: var(--cci-orange);
}
.features-section .feature-slider .slick-list .feature-card:hover .card-img {
    border: 1px solid var(--cci-orange);
    box-shadow: 0 0 20px var(--cci-orange-light);
}
.modern-interface-section .interface-card .interface-img:before {
    display: none;
}
.pricing-plan-section .pricing-slider .slick-dots li.slick-active button:before {
    color: var(--cci-orange);
}
.center-slider .slick-arrow,
.less-plan-icon-btn,
.show-plan-icon-btn {
    color: var(--cci-orange);
}
.header .dropdown .dropdown-menu li .nav-link.active,
.header .dropdown .dropdown-menu li .nav-link:active,
.header .dropdown .dropdown-menu li .nav-link:focus,
.header .dropdown .dropdown-menu li .nav-link:hover {
    color: var(--cci-orange) !important;
}
.contact-section .icon-purpul {
    color: var(--cci-orange) !important;
}

/* ---- CCI branded top strip, mirrors the multicolour underline of the CCI-CI logo ---- */
.cci-accent-strip {
    height: 6px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #6e3fa3 0%,
        #2e5fa3 20%,
        #2ca6a4 40%,
        #4caf6d 60%,
        #f2b134 80%,
        var(--cci-orange) 100%
    );
}

/* ---- CCI header (logo + language + sign in only, no nav links) ---- */
.cci-header {
    padding: 18px 0;
    background-color: #fff;
}
.cci-header .cci-logo img {
    height: 48px;
    width: auto;
}
.cci-header .navbar-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cci-header .btn-outline-cci {
    border: 1px solid var(--cci-orange);
    color: var(--cci-orange);
    background: transparent;
    white-space: nowrap;
}
.cci-header .btn-outline-cci:hover {
    background-color: var(--cci-orange);
    color: #fff;
}

/* mobile : logo plus petit, pastilles compactes pour tenir sur une demi-largeur d'écran */
@media (max-width: 575.98px) {
    .cci-header .cci-logo img {
        height: 34px;
    }
    .cci-header .cci-lang-pill,
    .cci-header .btn-outline-cci {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    .cci-header .navbar-nav {
        gap: 6px;
    }
}

/* ==== Home 3 page design ==== */

.cci-orange { color: var(--cci-orange) !important; }
.cci-blue { color: var(--cci-blue) !important; }
.cci-orange-bg { background-color: var(--cci-orange) !important; }
.cci-blue-bg { background-color: var(--cci-blue) !important; }
.cci-bg-light { background-color: #f8f9fa !important; }
.cci-bg-blue { background-color: var(--cci-blue) !important; }

.btn-cci-orange {
    background-color: var(--cci-orange) !important;
    border-color: var(--cci-orange) !important;
    color: #ffffff !important;
}
.btn-cci-orange:hover {
    background-color: #5c1a24 !important;
    border-color: #5c1a24 !important;
    color: #ffffff !important;
}
.btn-cci-blue {
    background-color: var(--cci-blue) !important;
    border-color: var(--cci-blue) !important;
    color: #ffffff !important;
}
.btn-cci-blue:hover {
    background-color: #404142 !important;
    border-color: #404142 !important;
    color: #ffffff !important;
}

.text-cci-orange i, .text-cci-orange .fa-check, .text-cci-orange .fa-circle-chevron-down {
    color: var(--cci-orange) !important;
}
.text-cci-blue i, .text-cci-blue .fa-circle-chevron-up {
    color: var(--cci-blue) !important;
}

/* Badge d'en-tête */
.cci-badge {
    display: inline-flex !important;
    align-items: center;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}
.cci-badge img {
    max-height: 30px;
    margin-right: 10px;
}
.cci-badge .badge {
    background-color: var(--cci-orange);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-left: 10px;
}

/* Cartes d'interface */
.interface-card {
    transition: transform 0.2s ease-in-out;
}
.interface-card:hover {
    transform: translateY(-5px);
}

/* Cartes de tarification */
.pricing-card {
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}
.pricing-card:hover {
    box-shadow: 0 1rem 3rem rgba(88, 89, 91, 0.2) !important;
}
.trial-plan-lable {
    position: absolute;
    top: -10px;
    right: 20px;
}
.trial-plan-lable span {
    font-size: 0.75rem;
}

.pricing-plan-list {
    list-style: none;
    padding-left: 0;
}
.pricing-plan-list li {
    border-bottom: 1px solid #eee;
}
.pricing-plan-list li:last-child {
    border-bottom: none;
}
.pricing-plan-list .check-box {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}
.pricing-plan-list .unactive-check .check-box i {
    color: #adb5bd !important;
}
.pricing-plan-list .active-check .check-box i {
    color: var(--cci-orange) !important;
}

/* Bouton de recherche */
.vcard-alias-search input {
    border: 2px solid #dee2e6;
    padding-right: 140px;
}
.vcard-alias-search button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    z-index: 10;
}

/* Section Témoignages — même sélecteur qu'index.css (plus spécifique) pour neutraliser
   les bordures violettes/dimensions d'origine et appliquer le nouveau design carte blanche. */
.testimonial-section .testimonial-slider .testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    border: none;
    margin: 0 15px 40px;
}
.testimonial-section .testimonial-slider .testimonial-card .profile-img {
    position: relative;
    inset: auto;
    bottom: auto;
    right: auto;
    height: 80px;
    min-width: 0;
    width: 80px;
    border: 3px solid var(--cci-orange);
    padding: 0;
    margin: 0 auto 1rem;
}

/* ==== Home 3 "wahou" redesign : header, hero, badges, cartes ==== */

.cci-lang-pill {
    border: 1px solid #e5d7d9;
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    color: var(--cci-blue);
    background: #fff;
}
.cci-lang-pill:hover {
    border-color: var(--cci-orange);
}

.cci-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.cci-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1c2530;
}
.cci-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c2530;
}
@media (max-width: 575.98px) {
    .cci-hero-title {
        font-size: 2.1rem;
    }
    .cci-hero-subtitle {
        font-size: 1rem;
    }
}

.cci-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-size: 1.05rem;
}

.cci-cta-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--cci-orange-light);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.cci-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background-color: var(--cci-orange);
    color: #fff;
    font-size: 1.1rem;
}

.cci-section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.cci-feature-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--cci-orange);
}
.cci-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-size: 1.4rem;
}

/* Cartes de tarification — icône + ruban "Le plus populaire" */
.pricing-card {
    border: 2px solid transparent;
}
.cci-pricing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-size: 1.5rem;
}
.cci-pricing-featured {
    border-color: var(--cci-orange);
}
.cci-pricing-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cci-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 2;
}
/* le badge "Programme d'essai" du thème d'origine chevauchait le ruban ci-dessus : on le
   redescend à l'intérieur de la carte pour qu'ils ne se superposent plus. */
.trial-plan-lable {
    top: 18px !important;
    right: 16px !important;
}

/* FAQ accordéon */
.cci-faq-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}
.cci-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 1.1rem 1.3rem;
    text-align: left;
    cursor: pointer;
}
.cci-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: var(--cci-orange);
    color: #fff;
    font-size: 0.95rem;
}
.cci-faq-question {
    flex: 1;
    font-weight: 700;
    color: #1c2530;
}
.cci-faq-chevron {
    color: var(--cci-orange);
    transition: transform 0.2s ease;
}
.cci-faq-toggle[aria-expanded="true"] .cci-faq-chevron {
    transform: rotate(180deg);
}
.cci-faq-answer {
    padding: 0 1.3rem 1.3rem 74px;
    color: #6b7280;
}

/* Contact : réseaux sociaux + carte de localisation */
.cci-social-row {
    display: flex;
    gap: 10px;
}
.cci-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--cci-orange);
    color: #fff;
}
.cci-social-icon:hover {
    background-color: var(--cci-blue);
    color: #fff;
}
.cci-map-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}
.cci-map-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
}
.cci-map-placeholder {
    height: 220px;
    margin: 0 1.25rem 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--cci-blue-light);
    overflow: hidden;
}
.cci-map-placeholder iframe {
    display: block;
}

/* Bandeau CTA final */
.cci-final-cta {
    background-color: var(--cci-orange);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
}
.cci-final-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.4rem;
}

/* Footer Home 3 */
.cci-footer {
    background-color: var(--cci-blue);
}

/* Maquette smartphone présentant une VCard, hero */
.cci-phone-mockup {
    position: relative;
    width: 280px;
    max-width: 85%;
    background: #1c2530;
    border-radius: 2.4rem;
    padding: 14px;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18);
}
.cci-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #1c2530;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}
.cci-phone-screen {
    background: #fff;
    border-radius: 1.7rem;
    overflow: hidden;
}
.cci-phone-cover {
    height: 70px;
    background: linear-gradient(135deg, var(--cci-orange), var(--cci-blue));
}
.cci-phone-body {
    padding: 0 1.25rem 1.5rem;
    text-align: center;
    margin-top: -38px;
}
.cci-phone-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    color: var(--cci-blue);
    font-size: 2rem;
}
.cci-phone-name {
    font-weight: 700;
    color: #1c2530;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.cci-phone-title {
    color: var(--cci-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.cci-phone-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.1rem;
}
.cci-phone-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-size: 0.75rem;
}
.cci-phone-info {
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #555;
}
.cci-phone-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}
.cci-phone-info i {
    color: var(--cci-orange);
    width: 16px;
    text-align: center;
}
.cci-phone-btn {
    display: block;
    width: 100%;
    background: var(--cci-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.cci-phone-home-indicator {
    width: 80px;
    height: 4px;
    background: #fff;
    opacity: 0.35;
    border-radius: 4px;
    margin: 10px auto 0;
}

/* Composition hero : téléphone entouré de badges flottants (écrans très larges >=1400px uniquement).
   Conteneur large (720px) pour que le téléphone (280px, centré) garde une vraie marge de
   respiration avant que les badges commencent. */
.cci-hero-visual {
    position: relative;
}
.cci-hero-visual .cci-phone-mockup {
    margin: 0 auto;
}
@media (min-width: 1400px) {
    .cci-hero-visual {
        width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding: 110px 0;
        min-height: 820px;
    }
}

.cci-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 50px;
    padding: 10px 16px 10px 10px;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c2530;
    z-index: 2;
    max-width: 175px;
    white-space: normal;
    line-height: 1.15;
}

/* Animation "gravitation" : léger flottement vertical en boucle, désynchronisé par badge
   pour éviter l'effet "tout bouge en même temps". `translate` (propriété indépendante de
   `transform`) est utilisé exprès : certains badges centrés (cci-float-official,
   cci-float-vcard) ont déjà `transform: translateX(-50%)` et les deux se cumulent sans
   s'écraser l'un l'autre. */
@keyframes cci-float-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.cci-float,
.cci-float-group {
    animation: cci-float-bob 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .cci-float,
    .cci-float-group {
        animation: none;
    }
}
.cci-float-official {
    max-width: 260px;
    white-space: nowrap;
}
.cci-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: var(--cci-orange-light);
    color: var(--cci-orange);
    font-size: 0.9rem;
}
.cci-float-icon-gold {
    background-color: #f7e6c4;
    color: #b8860b;
}
.cci-float-icon-green {
    background-color: #dcf5e6;
    color: #25a244;
}
.cci-float-check,
.cci-float-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background-color: var(--cci-orange);
    color: #fff;
    font-size: 0.7rem;
    margin-left: 4px;
}

.cci-float-group {
    position: absolute;
    text-align: center;
    z-index: 2;
}
.cci-float-group .cci-float {
    position: static;
    display: inline-flex;
}
.cci-float-qr {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cci-orange);
    border: 2px solid var(--cci-orange-light);
}
.cci-float-caption {
    display: block;
    margin: 8px auto 0;
    background-color: var(--cci-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Positions ancrées sur .cci-hero-visual (720px de large, téléphone 280px centré → marges de
   220px de chaque côté). Important : les badges de DROITE s'ancrent avec `left` (ils
   s'étirent donc vers la droite, à l'écart du téléphone, quelle que soit la longueur du
   texte) et ceux de GAUCHE avec `right` (ils s'étirent vers la gauche). Ancrer dans le sens
   inverse était le bug précédent : un badge large « repoussait » son propre bord vers le
   téléphone. */
.cci-float-official { top: 0; left: 50%; transform: translateX(-50%); animation-duration: 7s; animation-delay: 0s; }

.cci-float-qr-scan { top: 55px; right: 560px; animation-duration: 5.5s; animation-delay: 0.3s; }
.cci-float-call { top: 200px; right: 560px; animation-duration: 6s; animation-delay: 0.9s; }
.cci-float-whatsapp { top: 265px; right: 560px; animation-duration: 5s; animation-delay: 1.4s; }
.cci-float-mail { top: 330px; right: 560px; animation-duration: 6.5s; animation-delay: 0.6s; }
.cci-float-save { top: 395px; right: 560px; animation-duration: 5.8s; animation-delay: 1.1s; }
.cci-float-share { top: 460px; right: 560px; animation-duration: 6.2s; animation-delay: 0.2s; }

.cci-float-job { top: 55px; left: 560px; animation-duration: 5.4s; animation-delay: 0.8s; }
.cci-float-exp { top: 125px; left: 560px; animation-duration: 6.8s; animation-delay: 0.4s; }
.cci-float-qr-presentation { top: 195px; left: 560px; animation-duration: 5.2s; animation-delay: 1.2s; }
.cci-float-cv { top: 340px; left: 560px; animation-duration: 6.4s; animation-delay: 0.1s; }
.cci-float-cci { top: 400px; left: 560px; animation-duration: 5.6s; animation-delay: 0.7s; }
.cci-float-member { top: 460px; left: 560px; animation-duration: 6.1s; animation-delay: 1.3s; }

.cci-float-vcard { top: 705px; left: 50%; transform: translateX(-50%); animation-duration: 7.2s; animation-delay: 0.5s; }

/* ============ Scroll reveal (home2) ============
   Éléments cachés (opacity 0 + léger décalage) jusqu'à ce qu'ils croisent le viewport ;
   `.is-visible` est ajoutée une seule fois par un IntersectionObserver (voir home2.blade.php).
   `--cci-reveal-i` (posée en inline style sur les éléments répétés d'une boucle) décale
   l'apparition de chaque carte pour un effet en cascade. */
.cci-reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: calc(var(--cci-reveal-i, 0) * 0.12s);
}
.cci-reveal-up { transform: translateY(36px); }
.cci-reveal-left { transform: translateX(-36px); }
.cci-reveal-right { transform: translateX(36px); }
.cci-reveal-zoom { transform: scale(0.94); }
.cci-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .cci-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
