/* =========================================================
   APPRIM — Feuille de style de la page d'accueil (index.html)
   ========================================================= */

:root {
    --navy: #1f1d86;
    --blue: #2851d6;
    --blue-light: #a9bdfa;      /* bleu électrique éclairci, sur fond bleu nuit */
    --light: #f7f6f6;
    --border: #e6e6ee;
    --text: #1f1d86;
    --muted: #55557a;
    --radius: 12px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 3000; }
.skip-link:focus { left: 10px; top: 10px; }
.container { width: 90%; max-width: 1024px; margin: 0 auto; }

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    height: 80px; background: var(--navy); color: #fff;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-wrapper { position: relative; display: flex; align-items: center; }
.logo-link {
    display: flex; align-items: center; gap: 15px;
    text-decoration: none; color: inherit; cursor: pointer;
    width: 270px; padding: 5px; border-radius: 8px; transition: background 0.3s;
    background: none; border: none; font: inherit; text-align: left;
}
.logo-link:hover { background: rgba(255, 255, 255, 0.1); }
.header-logo { height: 50px; width: auto; }
.header-text-group { display: flex; flex-direction: column; }
.header-title { font-size: 0.95rem; font-weight: bold; line-height: 1.8; letter-spacing: 0.05rem; }
.header-subtitle { font-weight: normal; font-size: 0.7rem; line-height: 1.2; }
.cta-header {
    background: #fff; color: var(--navy); padding: 8px 16px; text-decoration: none;
    font-weight: bold; border-radius: 5px; font-size: 0.95rem; white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}
.cta-header:hover { background: #f0f0f0; transform: translateY(-1px); }
.txt-mobile { display: none; }
.txt-desktop { display: inline; }

/* =========================================================
   SECTIONS & TYPOGRAPHIE
   ========================================================= */
.section { padding: 56px 0; }
.section.light { background-color: var(--light); }
h1, .section-title { color: var(--navy); margin-bottom: 20px; font-size: 1.8rem; line-height: 1.35; }
h2 { color: var(--blue); margin-bottom: 15px; font-size: 1.3rem; line-height: 1.3; }
h2.section-title { color: var(--navy); font-size: 1.8rem; }
h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35; }
p { margin-bottom: 15px; }
.lead { font-size: 1.1rem; max-width: 820px; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08rem;
    text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.caps { text-transform: uppercase; letter-spacing: 0.03rem; }

ul.benefits { list-style: none; margin: 0 0 15px; }
ul.benefits li { position: relative; padding-left: 30px; margin-bottom: 12px; }
ul.benefits li::before {
    content: ''; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px;
    border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e3e9fb;
}
.split-img img { width: 100%; max-width: 1024px; border-radius: 20px; display: block; margin: 24px auto 0; height: auto; }
.split-img img.square { max-width: 680px; }

/* Tags & gélules */
.tag {
    display: inline-block; padding: 6px 14px; background-color: var(--blue); color: #fff;
    border-radius: 25px; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05rem;
    font-weight: 500; transition: all 0.3s ease;
}
.tag:hover { background-color: var(--navy); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-static { cursor: default; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06rem; text-transform: uppercase; padding: 5px 12px; }
.tag-static:hover { background-color: var(--blue); }
.pill-row.on-dark .tag-static { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }

/* Cartes */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; display: flex; flex-direction: column;
}
.card p { font-size: 0.95rem; color: var(--muted); }
.card ul.benefits li { font-size: 0.92rem; margin-bottom: 8px; }
.card.featured { border: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(40, 81, 214, 0.12); position: relative; }
.badge {
    display: inline-block; align-self: flex-start; background: var(--blue); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05rem; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Étapes */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step h3 { font-size: 1.05rem; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--blue); }
.step p { font-size: 0.95rem; margin-bottom: 0; color: var(--muted); }

/* FAQ */
.faq-list details { background: #fff; margin-bottom: 12px; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary { list-style: none; display: flex; align-items: center; gap: 12px; font-weight: bold; color: var(--navy); cursor: pointer; }
.faq-list summary::before { content: '▶'; font-size: 0.7rem; transition: transform 0.3s; }
.faq-list details[open] summary::before { transform: rotate(90deg); }
.faq-list p { margin-top: 10px; margin-bottom: 0; color: #555; }

/* CTA formulaire : pleine largeur du contenu */
.button-container { display: flex; justify-content: center; width: 100%; margin-top: 20px; }
.cta-tally-modal {
    width: 100%; background: var(--navy); color: #fff; border: none;
    padding: 16px 10px; border-radius: 8px; cursor: pointer; font-weight: bold;
    font-size: 1.1rem; font-family: inherit; text-align: center;
    transition: background 0.3s, transform 0.2s;
}
.cta-tally-modal:hover { background: var(--blue); transform: translateY(-2px); }
.reassurance { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* =========================================================
   FOOTER COMPACT
   ========================================================= */
.footer { background: var(--navy); color: #d9d9f0; padding: 22px 0 14px; font-size: 0.85rem; }
.footer a { color: #d9d9f0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; padding-bottom: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.footer-brand strong { color: #fff; font-size: 0.95rem; letter-spacing: 0.05rem; }
.footer-brand span { color: var(--blue-light); font-size: 0.8rem; }
.footer-nav, .footer-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; }
.footer-nav li + li::before, .footer-sectors li + li::before { content: '·'; margin: 0 10px; color: rgba(255,255,255,0.35); }
.footer-nav a { color: #fff; font-weight: 600; }
.footer-sectors {
    border-top: 1px solid rgba(255,255,255,0.12); padding: 10px 0;
    font-size: 0.82rem;
}
.footer-sectors .label {
    color: var(--blue-light); font-weight: 700; letter-spacing: 0.06rem; text-transform: uppercase;
    font-size: 0.72rem; margin-right: 12px;
}
.footer-sectors .label::before { content: none !important; }
.footer-sectors .label + li::before { content: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.78rem;
}
.footer-bottom p { margin: 0; }

/* Retour en haut */
#backToTop {
    display: none; position: fixed; bottom: 20px; right: 20px; z-index: 1100;
    width: 45px; height: 45px; background-color: var(--navy); color: white; text-decoration: none;
    border-radius: 50%; justify-content: center; align-items: center; font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s ease;
}
#backToTop.visible { display: flex; }
#backToTop:hover { background-color: var(--blue); transform: translateY(-3px); }

/* =========================================================
   ACCUEIL — menu déroulant
   ========================================================= */
.menu-caret { font-size: 0.7rem; margin-left: auto; transition: transform 0.3s; }
.logo-wrapper.open .menu-caret { transform: rotate(180deg); }
.dropdown-menu {
    display: none; position: absolute; top: 85px; left: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    width: 270px; max-width: 90vw; border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; z-index: 2000;
    flex-direction: column; border: 1px solid var(--blue);
}
.dropdown-menu.active { display: flex; animation: fadeInDown 0.3s ease-out; }
.dropdown-menu a {
    padding: 12px 20px; text-decoration: none; color: var(--navy); font-weight: 500;
    font-size: 0.9rem; border-bottom: 1px solid #f0f0f0; transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover { background-color: var(--light); color: var(--blue); }
.dropdown-menu .menu-highlight { background: #eef1fc; font-weight: 700; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   ACCUEIL — hero
   ========================================================= */
.hero { position: relative; background: var(--navy); }
.hero-portrait { width: 100%; height: 660px; overflow: hidden; background-color: #f0f0f0; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero-content {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 0 36px;
    background: linear-gradient(to top, rgba(20, 19, 90, 0.94) 0%, rgba(20, 19, 90, 0.7) 55%, rgba(20, 19, 90, 0) 100%);
    color: #fff;
}
.hero-content h1 { color: #fff; font-size: 2.2rem; line-height: 1.25; margin-bottom: 12px; max-width: 780px; }
.hero-content p { font-size: 1.05rem; max-width: 820px; margin-bottom: 22px; opacity: 0.95; }
.hero-content p strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: bold;
    text-decoration: none; font-size: 1rem; font-family: inherit; cursor: pointer;
    border: 2px solid transparent; transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eef1fc; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* =========================================================
   ACCUEIL — secteurs (la carte entière est cliquable)
   ========================================================= */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin: 25px 0 0; width: 100%; }
.sector-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.sector-card .tag {
    display: block; padding: 6px 14px; background-color: var(--navy); color: #fff; border-radius: 25px;
    font-size: 0.85rem; font-weight: 500; text-align: center; width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.3s ease;
}
.sector-card:hover .tag, .sector-card:focus-visible .tag { background-color: var(--blue); transform: translateY(-2px); }
.sector-image-wrapper {
    display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
    border: 1px solid #e0e0e0; background-color: var(--light); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sector-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.sector-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.sector-more { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.sector-card:hover .sector-image-wrapper { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.sector-card:hover .sector-image { transform: scale(1.05); }

/* =========================================================
   ACCUEIL — comment ça marche (pictos)
   ========================================================= */
.step-icon { display: block; width: 96px; height: 96px; margin: 0 auto 14px; object-fit: contain; }

/* =========================================================
   ACCUEIL — l'offre (liste + visuel côte à côte)
   ========================================================= */
.offer-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.offer-grid ul.benefits li { margin-bottom: 16px; }
.offer-grid .offer-img img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* =========================================================
   ACCUEIL — bénéfices + bandeau « maquette existante »
   ========================================================= */
.highlight-band {
    background: var(--navy); color: #fff; border-radius: 20px; padding: 32px 36px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
    margin-top: 28px;
}
.highlight-band h3 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.highlight-band p { opacity: 0.95; }
.highlight-band ul.benefits { margin-bottom: 0; }
.highlight-band ul.benefits li { margin-bottom: 8px; }
.highlight-band ul.benefits li::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
.highlight-band .hb-actions { display: flex; flex-direction: column; gap: 12px; }
.highlight-band .btn { text-align: center; }

/* =========================================================
   ACCUEIL — FAQ repliable
   ========================================================= */
.faq-more { margin-top: 0; }
.faq-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 4px; padding: 12px; border-radius: 8px;
    background: #fff; border: 1px dashed var(--blue); color: var(--blue);
    font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.faq-toggle:hover { background: #eef1fc; }
.faq-toggle .chev { display: inline-block; transition: transform 0.3s; }
.faq-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

@media (max-width: 900px) {
    .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .highlight-band { grid-template-columns: 1fr; padding: 28px; }
    .offer-grid { grid-template-columns: 1fr; gap: 20px; }
    .offer-grid .offer-img { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .dropdown-menu { width: 240px; top: 70px; }
    .hero-portrait { height: 180px; }
    .hero-content { position: static; padding: 28px 0 32px; background: var(--navy); }
    .hero-content h1 { font-size: 1.25rem; }
    .hero-content p { font-size: 1rem; }
}
@media (max-width: 480px) {
    .sectors-grid { grid-template-columns: 1fr; gap: 24px; }
    .sector-card .tag { font-size: 0.9rem; padding: 8px 14px; }
    .hero-actions .btn { width: 100%; text-align: center; }
}

/* =========================================================
   RESPONSIVE (commun)
   ========================================================= */
@media (max-width: 1024px) {
    .container { width: 85%; }
    .cta-header { font-size: 0.85rem; padding: 8px 12px; }
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { width: 90%; }
    .logo-link { width: 220px; gap: 10px; }
    .header-subtitle { font-size: 0.65rem; display: block; }
    .header-logo { height: 40px; }
    .header-title { font-size: 0.85rem; }
    .cta-header { font-size: 0.75rem; padding: 6px 10px; }
    .txt-desktop { display: none; }
    .txt-mobile { display: inline; }
    h1, .section-title, h2.section-title { font-size: 1.2rem; }
    .section { padding: 15px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .cards-grid.two { grid-template-columns: 1fr; }
    .footer-top, .footer-bottom { justify-content: center; text-align: center; }
    .footer-nav, .footer-sectors { justify-content: center; gap: 6px 16px; }
    .footer-nav li + li::before, .footer-sectors li + li::before { content: none; }
    .footer-sectors .label { width: 100%; text-align: center; margin: 0 0 2px; }
    .footer-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
