/*============================== CÔTE D'IVOIRE SECURITY PAGE ==============================*/
/* Standalone page at /cote-divoire/. It has its own header (no main-site menu) but reuses
   styles.css + tech.css for the hero, console panels, cards and footer, so the colours match. */

:root{
    --ci-orange: #f77f00;
    --ci-green: #009e60;
}

/*------------------------------ OWN HEADER ------------------------------*/
.ci-header{
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    background: var(--ink);
}

.ci-flag{
    display: flex;
    height: 4px;
}

.ci-flag span{ flex: 1; }
.ci-flag span:nth-child(1){ background: var(--ci-orange); }
.ci-flag span:nth-child(2){ background: #ffffff; }
.ci-flag span:nth-child(3){ background: var(--ci-green); }

.ci-header__inner{
    max-width: 1120px;
    margin: 0 auto;
    padding: .9rem max(1.5rem, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ci-header .brand{ color: #ffffff; }
.ci-header .brand small{
    display: block;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--glow);
    font-weight: 400;
}

.ci-header__links{
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: var(--small-font-size);
}

.ci-header__links a{ color: var(--on-ink-muted); }
.ci-header__links a:hover{ color: #ffffff; }

.ci-header__links .button{
    background: var(--glow);
    color: var(--ink);
    font-weight: var(--font-semi-bold);
    padding: .6rem .9rem;
}

.ci-header__links .button:hover{ background: #ffffff; color: var(--ink); }

@media screen and (max-width: 600px){
    .ci-header__back{ display: none; }
}

/*------------------------------ KEY FIGURES ------------------------------*/
.stats{
    max-width: 1000px;
    margin: 2.5rem auto 0;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.stats .dash__tiles{ gap: 1rem; grid-template-columns: 1fr; margin-bottom: 0; }
.stats .tile__value{ font-size: 1.6rem; }
.stats .tile p{ color: var(--on-ink-muted); font-size: var(--small-font-size); margin-top: .35rem; }
.stats__src{ font-family: var(--mono); font-size: .7rem; color: var(--glow); display: block; margin-top: .5rem; }

.why__intro{
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/*------------------------------ HERO SCORECARD ------------------------------*/
.score{
    margin: 0;
    min-width: 0;
    background: rgba(12, 31, 69, .85);
    border: 1px solid var(--ink-line);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    padding: 1.25rem 1.3rem 1rem;
}

.score__head{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--mono);
    font-size: var(--smaller-font-size);
    color: var(--on-ink-muted);
    border-bottom: 1px solid var(--ink-line);
    padding-bottom: .75rem;
    margin-bottom: 1rem;
}

.score__head b{ color: var(--on-ink); font-weight: 600; }

.score__list{ display: grid; gap: .85rem; }

.score__row{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem 1rem;
    font-size: var(--small-font-size);
    color: var(--on-ink);
}

.score__state{
    font-family: var(--mono);
    font-size: var(--smaller-font-size);
}

.score__state--ok{ color: var(--ok); }
.score__state--warn{ color: var(--warn); }
.score__state--gap{ color: #ff6b6b; }

.score__bar{
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 999px;
    background: var(--ink-line);
    overflow: hidden;
}

.score__bar span{
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--glow);
}

.score__row--ok .score__bar span{ background: var(--ok); }
.score__row--warn .score__bar span{ background: var(--warn); }
.score__row--gap .score__bar span{ background: #ff6b6b; }

.score figcaption{
    margin-top: 1rem;
    font-size: var(--smaller-font-size);
    color: var(--on-ink-muted);
}

/*------------------------------ WHY NOW ------------------------------*/
.why__grid{
    max-width: 1000px;
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    display: grid;
    gap: 1.5rem;
}

.why__item{
    border-left: 4px solid var(--first-color);
    padding: .25rem 0 .25rem 1rem;
}

.why__item h3{ font-size: 1.05rem; margin-bottom: .35rem; }

/*------------------------------ COMMITMENTS ------------------------------*/
.commit__grid{
    max-width: 1000px;
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.commit__num{
    display: block;
    font-family: var(--mono);
    font-size: var(--smaller-font-size);
    color: var(--title-color);
    margin-bottom: .35rem;
}

/*------------------------------ PRINCIPLE / WHO LEADS ------------------------------*/
.principle{ margin-top: 3rem; }

.principle .company__intro p + p{ margin-top: .75rem; }

.principle__note{
    font-size: var(--small-font-size);
    color: var(--second-color);
    border-top: 1px solid rgba(183, 219, 255, .25);
    padding-top: .9rem;
    margin-top: 1.25rem;
    max-width: 32rem;
}

/*------------------------------ CTA ------------------------------*/
.audit__cta{
    text-align: center;
    padding: 3.5rem 1.5rem 1rem;
}

.audit__cta h2{
    font-weight: var(--font-light);
    font-size: 1.7rem;
    margin-bottom: .75rem;
}

.audit__cta p{ max-width: 36rem; margin: 0 auto 1.75rem; }

.audit__cta .hero__cta{ justify-content: center; }

/*------------------------------ RESPONSIVE ------------------------------*/
@media screen and (min-width: 768px){
    .why__grid{ grid-template-columns: repeat(3, 1fr); }
    .commit__grid .cards__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px){
    .stats .dash__tiles{ grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 1024px){
    .commit__grid .cards__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* The header here is sticky, not fixed, so the hero needs less top room than on the home page. */
@media screen and (min-width: 768px){
    .ci-page .hero{ padding-block: 4.5rem 4rem; }
}

/* Hero labels link to the section that explains each framework. */
.ci-page .hero .trust__strip a{
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-bottom: 1px dashed var(--ink-line);
}

.ci-page .hero .trust__strip a:hover,
.ci-page .hero .trust__strip a:focus-visible{ color: #ffffff; border-bottom-color: var(--glow); }


/*============================== VISUAL REVIEW FIXES (3-model review, 2026-11-12) ==============================*/
/* One content width for every section, so left edges line up with the hero and header. */
.ci-page .why__grid,
.ci-page .why__intro,
.ci-page .stats,
.ci-page .commit__grid,
.ci-page .path{ max-width: 1120px; }

/* Even rhythm between sections; titles balanced and sized for phones. */
.ci-page .section{ padding: 3.5rem 0 2.5rem; }
.ci-page .section__title{
    font-size: clamp(1.45rem, 5.5vw, 2rem);
    text-wrap: balance;
    padding-inline: 1.5rem;
    margin-bottom: 1.75rem;
}
.ci-page .section__lead{
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 1.5rem;
    text-wrap: pretty;
}
.ci-page .ci-after{ margin-top: 1.5rem; margin-bottom: 0; }
.ci-page p, .ci-page figcaption, .ci-page .footer__subtitle{ text-wrap: pretty; }

/* Header on phones: keep it on one line. */
.ci-header .brand{ min-width: 0; }
.ci-header__links .button{ white-space: nowrap; }
@media screen and (max-width: 480px){
    .ci-header .brand small{ display: none; }
    .ci-header__links .button{ padding: .5rem .75rem; }
}
.ci-header__back{ padding: .75rem .25rem; }
.ci-page section[id]{ scroll-margin-top: 6rem; }

/* Five commitment cards: 3 + 2 wide on desktop, 2 + 2 + 1 full on tablet. No fake hover lift. */
@media screen and (min-width: 1024px){
    .ci-page .commit__grid .cards__grid{ grid-template-columns: repeat(6, 1fr); }
    .ci-page .commit__grid .card{ grid-column: span 2; }
    .ci-page .commit__grid .card:nth-child(n+4){ grid-column: span 3; }
}
@media screen and (min-width: 768px) and (max-width: 1023px){
    .ci-page .commit__grid .card:last-child{ grid-column: 1 / -1; }
}
.ci-page .card--tech:hover{ transform: none; box-shadow: 0 1px 0 rgba(0, 47, 138, .05); border-color: #d9e2f0; }
.ci-page .card--tech:hover::before{ opacity: 0; }
@media screen and (max-width: 480px){
    .ci-page .card--tech{ padding: 1.5rem 1.25rem; }
}

/* Stat tiles: sources aligned at the bottom, slightly larger small text. */
.stats .tile{ display: flex; flex-direction: column; }
.stats__src{ margin-top: auto; padding-top: .6rem; font-size: .75rem; }
.stats .tile__label{ font-size: .8rem; color: var(--on-ink); }

/* Diagnostic tabs at very small widths. */
@media screen and (max-width: 400px){
    .ci-page .path__steps{ column-gap: 1rem; }
    .ci-page .path__step strong{ font-size: .875rem; overflow-wrap: anywhere; }
}

/* "Notre principe" and CTA headings in line with the rest. */
.ci-page .principle h2{ text-wrap: balance; }
.ci-page .audit__cta h2{ font-size: clamp(1.45rem, 5.5vw, 2rem); text-wrap: balance; }

/* Phones: full-width hero buttons, left-aligned long leads, larger tap targets. */
@media screen and (max-width: 480px){
    .ci-page .hero__cta .button{ flex: 1 1 100%; justify-content: center; text-align: center; }
}
@media screen and (max-width: 767px){
    .ci-page .section__lead.ci-after{ text-align: left; }
    .ci-page .section{ padding: 2.5rem 0 2rem; }
}
.ci-page .hero .trust__strip a{ padding-block: .6rem; }
.ci-page .footer__link{ white-space: nowrap; display: inline-block; padding-block: .6rem; }

/* Visible keyboard focus. */
.ci-page a:focus-visible,
.ci-page .button:focus-visible{ outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 6px; }
.ci-page .section__title + .section__lead{ margin-top: 0; }
/* Very small phones: the hero already has "Nous contacter", so the header keeps only the brand. */
@media screen and (max-width: 380px){
    .ci-header__links .button{ display: none; }
}

/* Contact buttons in the light CTA band use the ink navy. */
.ci-page .audit__cta .button--flex{ background: var(--ink); color: #ffffff; }
.ci-page .audit__cta .button--flex:hover{ background: var(--ink-2); }
.ci-page .audit__cta .button--ghost{ border-color: var(--ink); color: var(--ink); }

/* "Notre principe": no logo, centred heading and text above the four facts, like every other section. */
.ci-page .principle .company__inner{ grid-template-columns: 1fr; gap: 2rem; }
.ci-page .principle .company__intro{ text-align: center; max-width: 46rem; margin: 0 auto; }
.ci-page .principle .company__intro p{ max-width: none; }
.ci-page .principle__note{ max-width: 36rem; margin-left: auto; margin-right: auto; }
@media screen and (min-width: 1024px){
    .ci-page .principle .company__facts{ grid-template-columns: repeat(4, 1fr); }
}

/* Key figures: every tile has the same structure and type: scope, number + unit, one line, source. */
.ci-page .stats .tile__label{ min-height: 1.2em; }
.ci-page .stats .tile__value{
    font-family: var(--body-font);
    font-size: 1.9rem;
    font-weight: var(--font-semi-bold);
    line-height: 1.15;
    margin-top: .35rem;
}
.ci-page .stats .tile__value small{ font-size: .95rem; font-weight: var(--font-regular); color: var(--on-ink-muted); }
.ci-page .stats .tile p{ margin-top: .25rem; }
.ci-page .stats__src{ font-family: var(--body-font); letter-spacing: 0; }
.ci-page .principle h2{ font-weight: var(--font-light); font-size: clamp(1.45rem, 5.5vw, 2rem); }

.ci-page #diagnostic{ background-color: #ffffff; border: 0; }
body.ci-page{ margin-bottom: 0; }

/* "Pourquoi maintenant": centred items and leads, with a short accent line above each item. */
.ci-page .why__item{
    border-left: 0;
    padding: 0;
    text-align: center;
}
.ci-page .why__item::before{
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--first-color);
    margin: 0 auto .85rem;
}

/* "Notre principe": light ivory band like "Pourquoi Ivory Technology" on the home page. */
.ci-page .principle{
    background: var(--ivory);
    border-top: 1px solid #e3eaf4;
    border-bottom: 1px solid #e3eaf4;
}
.ci-page .principle h2, .ci-page .principle .fact h3{ color: var(--title-color); }
.ci-page .principle .company__intro p,
.ci-page .principle .fact p,
.ci-page .principle__note{ color: #3a4a63; }
.ci-page .principle .fact{ background: #ffffff; border-color: #e3eaf4; }
.ci-page .principle__note{ border-top-color: #e3eaf4; }
/* Rhythm: white, ivory (commitments), white (diagnostic), ivory (principle), white (contact), ink footer. */
.ci-page .audit__cta{ background-color: #ffffff; border: 0; padding-bottom: 3.5rem; }
