/* ---------------------------------------------------------------------- */
/* Structure commune des sections                                         */
/* ---------------------------------------------------------------------- */

.section {
    padding-block: 5rem;
    background-color: var(--color-surface-page);
}

.section--tinted {
    background: linear-gradient(180deg, rgba(23, 167, 127, 0.05), rgba(23, 167, 127, 0.01));
    border-block: 1px solid var(--color-border);
}

.section-header {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-overline { color: var(--color-brand-ink); }
.section-title { color: var(--color-ink); text-wrap: balance; }

.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-ink-muted);
}

.check-list svg {
    flex-shrink: 0;
    color: var(--color-brand-ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 639px) {
    .section { padding-block: 3.5rem; }
    .text-display-xl { font-size: 42px; line-height: 46px; }
    .text-display-lg { font-size: 30px; line-height: 36px; }
}

/* ---------------------------------------------------------------------- */
/* Héros                                                                  */
/* ---------------------------------------------------------------------- */

.hero-section {
    padding-block: 4rem;
    background-color: rgba(17, 185, 136, 0.08);
    background-image: url('../img/green_background.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

[data-theme='dark'] .hero-section {
    background-image: none;
    background-color: var(--color-surface-page);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .hero-section {
        background-image: none;
        background-color: var(--color-surface-page);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .hero-section { padding-block: 5rem; }
    .hero-layout { grid-template-columns: minmax(0, 1.8fr) 560px; }
}

.hero-copy { max-width: 640px; }

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--color-ink);
}

.hero-title-sub {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-brand-ink);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}

.hero-checks { margin-top: 2.5rem; font-size: 14px; }

.hero-visual {
    position: relative;
    height: 520px;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

@media (max-width: 639px) {
    .hero-visual { display: none; }
}

.floating-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 35px rgba(8, 20, 17, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: rotate(var(--ro, 0deg));
    animation: floatCard 8s ease-in-out infinite;
}

.card-top-left    { left: 12px;  top: 28px;  width: 228px; height: 150px; animation-delay: 0.2s; z-index: 2; }
.card-bottom-left { left: 24px;  top: 208px; width: 238px; height: 162px; animation-delay: 1.2s; z-index: 1; }
.card-promo       { right: 22px; top: 112px; width: 292px; height: 104px; animation-delay: 1.6s; z-index: 3; }
.card-school      { right: 12px; top: 238px; width: 280px; height: 98px;  animation-delay: 2.2s; z-index: 4; }
.card-bank        { right: 34px; top: 8px;   width: 250px; height: 90px;  animation-delay: 2.7s; z-index: 5; }

.promo-sender {
    font-size: 14px;
    color: rgba(26, 47, 45, 0.8);
}

.promo-title {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    color: #1a2f2d;
}

.promo-highlight { color: #0f7a5c; }

/* ---------------------------------------------------------------------- */
/* À propos                                                               */
/* ---------------------------------------------------------------------- */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .about-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; }
}

.about-visual {
    overflow: hidden;
    border-radius: 28px;
}

.about-visual img {
    display: block;
    width: 100%;
    height: auto;
    animation: aboutFloat 7s ease-in-out infinite;
}

/* ---------------------------------------------------------------------- */
/* Chiffres clés                                                          */
/* ---------------------------------------------------------------------- */

.stats-band {
    padding-block: 3rem;
    background-color: var(--color-surface-page);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    text-align: center;
}

.stats-grid > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
}

.stats-grid dd { margin: 0; }

@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------- */
/* Produits                                                               */
/* ---------------------------------------------------------------------- */

.product-list {
    display: grid;
    gap: 2rem;
}

.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface-card);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .product-card { padding: 1.5rem; }
}

@media (min-width: 1024px) {
    .product-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
    .product-card--reverse .product-media { order: 2; }
}

.product-media {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface-sunken);
}

.product-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-body { padding: 0.5rem; }

@media (min-width: 1024px) {
    .product-body { padding: 1.5rem; }
}

.product-title {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.product-text {
    margin-top: 1rem;
    font-size: 17px;
    line-height: 28px;
    color: var(--color-ink-muted);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background-color: var(--color-brand-soft);
    color: var(--color-ink-muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.feature-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 999px;
    background-color: var(--color-brand-ink);
}

/* ---------------------------------------------------------------------- */
/* Questions fréquentes                                                   */
/* ---------------------------------------------------------------------- */

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface-card);
}

.faq-item[open] { border-color: var(--color-brand-ink); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-ink);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-brand-ink);
}

.faq-item[open] .faq-question::after { content: "−"; }

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-ink-muted);
    line-height: 1.65;
}

/* ---------------------------------------------------------------------- */
/* Appel à l'action                                                       */
/* ---------------------------------------------------------------------- */

.cta-section {
    padding: 2rem 0 2.5rem;
    background-color: var(--color-surface-page);
}

.cta-banner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.75rem;
    border-radius: 32px;
    border: 1px solid var(--color-border);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(1, 212, 105, 0.18), transparent 60%),
        linear-gradient(135deg, var(--color-brand-soft), var(--color-surface-card));
    box-shadow: 0 24px 48px rgba(8, 20, 17, 0.08);
    text-align: center;
}

.cta-copy { max-width: 40rem; margin: 0 auto; }

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cta-banner { padding: 3rem; }
    .cta-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 3.5rem;
        text-align: left;
    }
    .cta-copy { margin: 0; }
    .cta-actions { flex-direction: column; flex-shrink: 0; }
}

/* ---------------------------------------------------------------------- */
/* Contact                                                                */
/* ---------------------------------------------------------------------- */

.contact-section {
    padding: 2.5rem 0 5rem;
    background-color: var(--color-surface-page);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 4rem;
    }
}

.contact-points {
    flex-direction: column;
    margin-top: 1.75rem;
}

.contact-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface-card);
    box-shadow: 0 18px 40px rgba(8, 20, 17, 0.06);
    font-style: normal;
}

@media (min-width: 640px) {
    .contact-card { padding: 1.75rem; }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    color: var(--color-ink);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.contact-item:hover {
    border-color: var(--color-brand-ink);
    background-color: var(--color-brand-soft);
}

.contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: var(--color-brand-soft);
    color: var(--color-brand-ink);
}

.contact-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-ink-subtle);
}

.contact-value {
    display: block;
    margin-top: 0.125rem;
    font-size: 1.0625rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------------------- */
/* Animations                                                             */
/* ---------------------------------------------------------------------- */

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(var(--ro, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--ro, 0deg)); }
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-11px) rotate(-1.2deg); }
}
