/* =====================================================================
   OPTITECH : page d'accueil (refonte 2026-11)
   Couleurs et typographie existantes (global.css) : --blue, --darkblue, --yellow
   Toutes les tailles et couleurs sont posées explicitement, car global.css
   impose `* { font-size:16px; color:black }`.
   ===================================================================== */

.acc{
    --acc-bleu: var(--blue, #0249AE);
    --acc-nuit: var(--darkblue, #00173D);
    --acc-jaune: var(--yellow, #FDBD56);
    --acc-doux: #4a5568;
    --acc-fond: #f4f7fc;
    --acc-rayon: 20px;
    display: block;
    overflow-x: clip;
}
.acc *{ transition: none; }
.acc a, .acc button{ transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }

/* ------------------------------------------------------------- boutons */
.acc_btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px; border-radius: 999px;
    font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer;
    border: 2px solid transparent;
}
.acc_btn i{ font-size: 20px; color: inherit; }
.acc_btn_jaune{ background: var(--acc-jaune); color: var(--acc-nuit); box-shadow: 0 8px 24px rgba(253,189,86,.35); }
.acc_btn_jaune:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(253,189,86,.5); }
.acc_btn_contour{ border-color: rgba(255,255,255,.55); color: #fff; }
.acc_btn_contour i{ color: #fff; }
.acc_btn_contour:hover{ background: #fff; color: var(--acc-nuit); }
.acc_btn_contour:hover i{ color: var(--acc-nuit); }
.acc_btn_bleu{ background: var(--acc-bleu); color: #fff; }
.acc_btn_bleu i{ color: #fff; }
.acc_btn_bleu:hover{ background: var(--acc-nuit); transform: translateY(-2px); }
.acc_lien_fleche{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--acc-bleu); font-size: 16px; }
.acc_lien_fleche i{ color: inherit; font-size: 20px; }
.acc_lien_fleche:hover{ gap: 10px; }
.acc_centre{ display: flex; justify-content: center; margin-top: 28px; }
.acc :focus-visible{ outline: 3px solid var(--acc-jaune); outline-offset: 3px; }

/* --------------------------------------------------------------- hero */
.acc_hero{
    position: relative; isolation: isolate;
    width: 95%; margin: 16px auto 0;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px) 0;
    min-height: min(640px, 82dvh);
    border-radius: 24px; overflow: hidden;
    background:
        radial-gradient(circle at 85% 30%, rgba(2,73,174,.9), transparent 55%),
        linear-gradient(120deg, #000b22 0%, var(--acc-nuit) 45%, #02307a 100%);
}
.acc_hero::before{
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
    background: url("../images/pattern_optitech.webp") center/cover no-repeat;
    mix-blend-mode: screen;
}
.acc_hero_texte{ padding-bottom: clamp(32px, 5vw, 64px); min-width: 0; }
.acc_pastille{
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    color: #dbe6ff; font-size: 14px; font-weight: 600;
}
.acc_pastille i{ color: var(--acc-jaune); font-size: 16px; }
.acc_hero h1{
    color: #fff; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; font-weight: 800;
    letter-spacing: -.02em; text-wrap: balance; margin-bottom: 18px;
}
.acc_hero h1 em{ font-style: normal; font-size: inherit; color: var(--acc-jaune); }
.acc_hero_lead{ color: rgba(255,255,255,.84); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 54ch; margin-bottom: 28px; }
.acc_hero_cta{ display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.acc_confiance{ list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.acc_confiance li{ display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-size: 14px; }
.acc_confiance i{ color: var(--acc-jaune); font-size: 18px; }

.acc_hero_visuel{ position: relative; align-self: end; display: flex; justify-content: center; min-width: 0; }
.acc_arche{
    position: relative; width: min(100%, 440px); aspect-ratio: 440 / 520;
    display: flex; align-items: flex-end; justify-content: center;
}
.acc_arche::before{
    content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; top: 10%; z-index: -1;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--acc-jaune) 0%, #f7a823 100%);
    box-shadow: 0 0 0 14px rgba(253,189,86,.12), 0 0 0 30px rgba(253,189,86,.06);
}
.acc_arche img{ width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.acc_flottant{
    position: absolute; display: flex; align-items: center; gap: 10px; max-width: 230px;
    padding: 12px 14px; border-radius: 14px; background: #fff;
    box-shadow: 0 14px 34px rgba(0,10,40,.3);
    animation: acc_flotte 6s ease-in-out infinite;
}
.acc_flottant i{ flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e8f0ff; color: var(--acc-bleu); font-size: 20px; }
.acc_flottant span, .acc_flottant strong{ font-size: 13px; line-height: 1.35; color: #1a2440; }
.acc_flottant strong{ font-weight: 800; color: var(--acc-nuit); }
.acc_flottant_1{ left: -4%; top: 30%; }
.acc_flottant_2{ right: -2%; bottom: 16%; animation-delay: -3s; }
@keyframes acc_flotte{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* ------------------------------------------------------- besoins (Je veux…) */
.acc_besoins{
    position: relative; z-index: 2;
    width: min(95%, 1180px); margin: -34px auto 0;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 18px; background: #fff;
    box-shadow: 0 18px 44px rgba(0,23,61,.14);
}
.acc_besoins_titre{ flex: none; font-weight: 800; color: var(--acc-nuit); font-size: 16px; }
.acc_besoins_liste{ list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; }
.acc_besoins_liste::-webkit-scrollbar{ display: none; }
.acc_besoins_liste a, .acc_besoin_bot{
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 10px 14px; border-radius: 999px; border: 1px solid #dbe4f3; background: #f6f9ff;
    font-size: 14px; font-weight: 600; color: var(--acc-nuit); cursor: pointer; font-family: inherit;
}
.acc_besoins_liste i{ color: var(--acc-bleu); font-size: 18px; }
.acc_besoins_liste a:hover, .acc_besoin_bot:hover{ border-color: var(--acc-bleu); background: #e8f0ff; }
.acc_besoin_bot{ background: var(--acc-nuit); border-color: var(--acc-nuit); color: #fff; }
.acc_besoin_bot i{ color: var(--acc-jaune); }
.acc_besoin_bot:hover{ background: var(--acc-bleu); color: #fff; }

/* -------------------------------------------------------------- chiffres */
.acc_chiffres{
    width: min(95%, 1180px); margin: 40px auto 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.acc_chiffres > div{ text-align: center; padding: 18px 8px; border-radius: 16px; background: var(--acc-fond); }
.acc_chiffres strong{ display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--acc-bleu); line-height: 1.1; }
.acc_chiffres span{ font-size: 14px; color: var(--acc-doux); }

/* ------------------------------------------------------------- sections */
.acc_section{ width: min(95%, 1240px); margin: 72px auto 0; padding: 0; }
.acc_intro{ max-width: 62ch; margin: 0 auto 24px; text-align: center; color: var(--acc-doux); font-size: 17px; line-height: 1.6; }
.acc_surtitre{ color: var(--acc-bleu); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 8px; }
.acc_chips{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.acc_chip{ padding: 8px 14px; border-radius: 999px; border: 1px solid #dbe4f3; font-size: 14px; font-weight: 600; color: var(--acc-nuit); background: #fff; }
.acc_chip small{ font-size: 12px; color: var(--acc-doux); margin-left: 4px; }
.acc_chip:hover, .acc_chip_actif{ background: var(--acc-bleu); border-color: var(--acc-bleu); color: #fff; }
.acc_chip:hover small, .acc_chip_actif small{ color: #dbe6ff; }
.acc_grille_services{ margin-top: 8px; }

/* -------------------------------------------------------------- méthode */
.acc_methode{ padding: 48px clamp(16px, 4vw, 48px); border-radius: 24px; background: var(--acc-fond); }
.acc_etapes{ list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: etape; }
.acc_etape{ position: relative; padding: 26px 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(0,23,61,.06); }
.acc_etape_num{ position: absolute; top: 14px; right: 16px; font-size: 40px; font-weight: 800; color: rgba(2,73,174,.1); line-height: 1; }
.acc_etape i{ display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--acc-jaune); color: var(--acc-nuit); font-size: 24px; }
.acc_etape h3{ font-size: 18px; font-weight: 800; color: var(--acc-nuit); margin-bottom: 6px; }
.acc_etape p{ font-size: 15px; line-height: 1.55; color: var(--acc-doux); }

/* ------------------------------------------------------- travaux (portfolio) */
.acc_rangee_tete{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.acc_rangee_tete h3{ font-size: 20px; font-weight: 800; color: var(--acc-nuit); }
.acc_rangee_tete a{ display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--acc-bleu); font-size: 15px; }
.acc_rangee_tete a i{ color: inherit; }
.acc_defilement{
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin;
}
.acc_travail{ scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0,23,61,.08); }
.acc_travail:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,23,61,.14); }
.acc_travail_img{ display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--acc-fond); }
.acc_travail_img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acc_travail:hover .acc_travail_img img{ transform: scale(1.05); }
.acc_travail_info{ display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.acc_travail_info small{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc-bleu); }
.acc_travail_info strong{ font-size: 17px; font-weight: 800; color: var(--acc-nuit); }
.acc_travail_lien{ display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--acc-bleu); }
.acc_travail_lien i{ color: inherit; }

/* ------------------------------------------------------------- pourquoi */
.acc_pourquoi_tete{ text-align: center; margin-bottom: 26px; }
.acc_pourquoi_tete h2{ font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--acc-nuit); line-height: 1.15; margin-bottom: 10px; text-wrap: balance; }
.acc_valeurs{ list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acc_valeurs li{ padding: 24px 20px; border-radius: 18px; border: 1px solid #e3eaf6; background: #fff; }
.acc_valeurs li:hover{ border-color: var(--acc-bleu); box-shadow: 0 12px 28px rgba(0,23,61,.08); }
.acc_valeurs i{ display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 50%; background: #e8f0ff; color: var(--acc-bleu); font-size: 22px; }
.acc_valeurs h3{ font-size: 17px; font-weight: 800; color: var(--acc-nuit); margin-bottom: 6px; }
.acc_valeurs p{ font-size: 15px; line-height: 1.55; color: var(--acc-doux); }

/* ------------------------------------------------- carrousels intégrés */
.acc_section_carrousel .container_caroussel{ width: 100%; }
.acc_section_carrousel.acc_vide{ display: none; }

/* ------------------------------------------------------------- CTA final */
.acc_cta{
    width: min(95%, 1240px); margin: 72px auto 0;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 48px); border-radius: 24px;
    background: linear-gradient(120deg, var(--acc-nuit), var(--acc-bleu));
}
.acc_cta h2{ font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 8px; }
.acc_cta h2 em{ font-style: normal; font-size: inherit; color: var(--acc-jaune); }
.acc_cta p{ color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.5; max-width: 52ch; }
.acc_cta_btns{ display: flex; flex-wrap: wrap; gap: 10px; }
.acc_newsletter{ margin-top: 56px; }

/* =========================================================== responsive */
@media (max-width: 1024px){
    .acc_etapes, .acc_valeurs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc_flottant_1{ left: -2%; }
}
@media (max-width: 820px){
    .acc_hero{ grid-template-columns: minmax(0, 1fr); text-align: left; min-height: 0; gap: 0; padding-top: 28px; }
    .acc_hero_texte{ padding-bottom: 8px; }
    .acc_hero_visuel{ justify-content: center; }
    .acc_arche{ width: min(78%, 330px); }
    .acc_flottant{ max-width: 190px; padding: 10px 12px; }
    .acc_flottant i{ width: 32px; height: 32px; font-size: 17px; }
    .acc_flottant span, .acc_flottant strong{ font-size: 12px; }
    .acc_flottant_1{ left: 0; top: 26%; }
    .acc_flottant_2{ right: 0; bottom: 12%; }
    .acc_besoins{ flex-direction: column; align-items: stretch; gap: 10px; margin-top: -24px; padding: 14px; }
    .acc_besoins_liste{ margin: 0 -14px; padding: 2px 14px; }
    .acc_chiffres{ grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
    .acc_section, .acc_cta{ margin-top: 52px; }
}
@media (max-width: 560px){
    .acc_hero{ width: calc(100% - 20px); margin-top: 10px; border-radius: 20px; padding-left: 18px; padding-right: 18px; }
    .acc_hero_cta{ flex-direction: column; }
    .acc_hero_cta .acc_btn{ width: 100%; }
    .acc_confiance{ gap: 8px 16px; }
    .acc_etapes, .acc_valeurs{ grid-template-columns: minmax(0, 1fr); }
    .acc_methode{ padding: 32px 14px; border-radius: 20px; }
    .acc_defilement{ grid-auto-columns: 82%; }
    .acc_cta_btns{ width: 100%; }
    .acc_cta_btns .acc_btn{ flex: 1 1 100%; }
    .acc_intro{ font-size: 16px; }
}
@media (prefers-reduced-motion: reduce){
    .acc_flottant{ animation: none; }
    .acc a, .acc button, .acc_travail_img img{ transition: none; }
}

/* une seule carte ne s'étire plus sur toute la largeur */
@media (min-width: 561px){
    .acc_defilement{ grid-auto-columns: minmax(260px, 360px); }
}
