/* ============================================
   PAGE PRODUIT - CRÉATION DE SUPPORTS DE COMMUNICATION
   S'appuie sur creation-site-internet.css (composants csi-*)
   et ajoute uniquement les composants propres à cette page (csp-*).
   ============================================ */

/* ---------- HERO ---------- */
.csp-hero-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 60ch;
}

.csp-hero-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.6;
}

.csp-hero-list li::before {
    content: '✳';
    flex: none;
    color: var(--rouge-tomate);
    font-weight: 700;
}

/* Le CTA du hero est long : on l'autorise à passer à la ligne */
.csi-hero-ctas .btn-large { white-space: normal; text-align: center; }

/* ---------- TEXTES ---------- */
/* creation-site-internet.css passe toutes les .csi-tagline en jaune (règle non
   ciblée l. 640) : illisible sur fond crème. On garde le jaune sur fond vert. */
.csi-tagline { color: var(--rouge-tomate); }
.csi-budget .csi-tagline { color: var(--jaune-oeuf); }

.csp-mt { margin-top: 1.2rem; }

.csp-text-block {
    max-width: 75ch;
    margin: 2.4rem 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.csp-text-block p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #3c4a3c;
}

/* ---------- TITRES H3 (mêmes styles que les h4 des composants csi-*) ---------- */
.csi-menu-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.4;
    color: var(--vert-persil);
    margin: 0 0 0.5rem;
}

.csi-menu-body p + p { margin-top: 0.6rem; }

.csi-timeline-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--noir-olive);
    margin: 0 0 0.45rem;
}

.csi-timeline-step p + p,
.csi-timeline-step ul + p { margin-top: 0.6rem; }

.csi-why-row h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.22rem;
    line-height: 1.3;
    color: var(--vert-persil);
    margin: 0;
}

/* ---------- À QUOI ÇA SERT : grille 2 x 2 ---------- */
.csp-menu-2x2 .csi-menu-line,
.csp-menu-2x2 .csi-menu-line:nth-child(1),
.csp-menu-2x2 .csi-menu-line:nth-child(2) { flex: 1 1 400px; }

/* ---------- ONGLETS TARIFS ---------- */
.csp-tabs {
    display: none; /* affichés seulement quand le JS est prêt */
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.2rem 0 0.4rem;
}

.csp-tabs.csp-tabs-ready { display: flex; }

.csp-tab {
    appearance: none;
    padding: 0.7rem 1.2rem;
    border: 2px solid rgba(255,241,220,0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--creme-fouettee);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.csp-tab:hover { border-color: var(--jaune-oeuf); }

.csp-tab.is-active {
    background: var(--jaune-oeuf);
    border-color: var(--jaune-oeuf);
    color: var(--noir-olive);
}

.csp-tab:focus-visible {
    outline: 2px solid var(--creme-fouettee);
    outline-offset: 3px;
}

.csp-panel { margin-top: 1.8rem; }
.csp-panel[hidden] { display: none; }

.csp-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--jaune-oeuf);
    margin: 0 0 0.4rem;
}

.csp-panel-intro {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255,241,220,0.85);
}

/* Mention complémentaire en bas de carte tarif */
.csp-price-note {
    margin: auto 0 0 !important;
    padding-top: 0.9rem;
}

.csp-price-included {
    font-style: normal;
    font-weight: 700;
    color: var(--jaune-oeuf);
}

/* Bloc « Et si votre support n'est pas dans cette liste ? » */
.csp-hosting-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--noir-olive);
    margin: 0 0 0.35rem;
}

.csp-hosting-cta {
    font-size: 1rem;
    white-space: normal;
}

.csi-budget .csi-budget-footer .csi-paragraph + .csi-paragraph { margin-top: 0.6rem; }

/* ---------- RÉALISATIONS : emplacements visuels ---------- */
.csp-visual-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    background: repeating-linear-gradient(-45deg, #f6ead6 0 14px, #fbf3e6 14px 28px);
    border: 2px dashed #d9c9ad;
    color: #8d8d84;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Une image intégrée remplace le fond rayé */
.csp-visual-placeholder:has(img) {
    padding: 0;
    border: none;
    background: none;
}

.csp-visual-placeholder:has(img) span { display: none; }

.csp-visual-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    box-shadow: none;
}

.csp-visual-duo > div {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(11,11,9,0.12);
}

.csp-visual-duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csi-realisation-card h3 { font-size: 1.2rem; line-height: 1.3; }

/* ---------- ÉTAPES ---------- */
.csp-timeline .csi-timeline-inner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.csp-step-list {
    margin: 0.5rem 0 0;
    padding: 0 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5b6357;
}

.csp-step-list li + li { margin-top: 0.2rem; }

.csp-step-note {
    font-size: 0.82rem !important;
    font-style: italic;
    color: #8d8d84 !important;
}

/* ---------- FAQ : bouton dans un h3 pour la sémantique ---------- */
.csp-faq-heading {
    margin: 0;
    font: inherit;
}

/* ---------- DEVIS ---------- */
.csp-question-list li::before { content: '→'; }

.csi-form-group select {
    width: 100%;
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    border: 2px solid #e8e0d5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B0B09' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.98rem;
    color: var(--noir-olive);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.csi-form-group select:focus {
    outline: none;
    border-color: var(--rouge-tomate);
}

/* La barre collante porte un CTA long : il peut passer sur deux lignes en mobile */
.csi-sticky-bar .btn { white-space: normal; text-align: center; }

/* Boutons longs : passage à la ligne autorisé plutôt que débordement en mobile */
.csi-budget-footer .btn,
.csi-cta-center .btn { white-space: normal; text-align: center; max-width: 100%; }

/* 4 réalisations : grille 2 x 2 plutôt que 3 + 1 */
.csp-realisations-2x2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

@media (min-width: 768px) {
    .csp-tab { font-size: 0.9rem; padding: 0.75rem 1.4rem; }
}

/* 5 étapes : 3 + 2 sur grand écran plutôt que 4 + 1 */
@media (min-width: 1024px) {
    .csp-timeline .csi-timeline-inner { grid-template-columns: repeat(3, 1fr); }
    .csp-timeline .csi-timeline-step:nth-child(3) { background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
    .csp-tab { transition: none; }
}
