@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700&display=swap");

/*
Theme Name: WPNarraV2
Theme URI: https://example.com/wpnarrav2
Author: Olivier Bloch
Author URI: https://example.com
Description: A clean, secure, and minimal WordPress starter theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpnarrav2
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
    color: #333;
    background-color: #fff;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden;
}

body strong {
    font-weight: 800;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
    /* font-family: "Montserrat", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
    font-family: "Funnel Display", "Montserrat", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 700;
}

h1 {
    text-align: center;
    font-size: 52px;
    width: 80%;
    margin: 30px auto;
    font-weight: 700;
    background: linear-gradient(180deg, #161616 0%, #604752 111.61%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.68px;
}

.wp-block-heading {
    font-size: 52px;
    line-height: 1.2;
}

@media screen and (max-width: 768px) {
    .wp-block-heading {
        font-size: 32px;
    }
}

h2 {
    font-size: 60px;
    line-height: 100%;
    /* 56px */
    letter-spacing: -1.68px;
}

h3 {
    font-size: 38px;
    line-height: 100%;
    /* 56px */
    letter-spacing: -0.68px;
    font-weight: 600;
}


h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #005177;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0 0 1.5em;
}

/* ===== Layout ===== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}


.site-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0.25rem 0 0;
}


/* ===== Posts & Pages ===== */
.entry-header {
    margin-bottom: 1.5rem;
}

/* .entry-title {
    font-size: 2rem;
} */

.entry-title a {
    text-decoration: none;
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-footer {
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 2rem;
}

article.post,
article.page {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

article.post:last-child,
article.page:last-child {
    border-bottom: none;
}

/* ===== Sidebar ===== */
.widget-area {
    padding: 1.5rem 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.25rem 0;
}


/* ===== Comments ===== */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.comment-meta {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.comment-reply-link {
    font-size: 0.8125rem;
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* ===== Pagination ===== */
.pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: #f0f0f0;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
}

/* ===== Alignments (WordPress) ===== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
}

/* ===== Accessibility ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 999999;
}

.skip-link:focus {
    top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-content {
        padding: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
    }

    h1 {}

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    /* Boutons avec padding réduit sur mobile */
    .home-heading__top-btn .btn--top,
    .multi-articles__top-btn,
    .block-bouton-titre,
    .single.bouton_titre .btn_top {
        padding: 3px 10px !important;
    }
}

/* ===== WordPress Core Styles ===== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    padding-top: 0.5rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5em;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 0.5rem);
}

.gallery-caption {
    font-size: 0.8125rem;
}

.sticky .entry-title::before {
    content: "★ ";
    color: #0073aa;
}

.bypostauthor .comment-body {
    border-left: 3px solid #0073aa;
}

/* ===== ACF Blocks ===== */
.block-icon-title .icon-title__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
}


.block-icon-title .icon-title__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.block-icon-title .icon-title__text {
    margin: 0;
    font-weight: 700;
}

/* section comment ça marche */

.howitworks {
    background: linear-gradient(108deg, rgba(243, 244, 249, 0.30) 6.35%, rgba(244, 218, 243, 0.30) 97.03%);
    border-radius: 30px;
    padding: 6rem 4rem 4rem 0rem;
}

@media screen and (max-width: 768px) {
    .howitworks {
        padding: 4rem 2rem;
    }
}

body.theme-dark .howitworks {
    background: linear-gradient(108deg, rgba(100, 90, 140, 0.40) 6.35%, rgba(150, 100, 120, 0.40) 97.03%);
}

.howitworks h2 {
    font-size: 35px;
    font-weight: 600;
}

.howitworks .wp-block-column .wp-block-image img {
    margin: auto;

}


/* section bloc color  */

.bloc_color {
    transform: translateY(1.5%);
    padding: 7rem 2rem;
    color: #fff;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(136deg, #6C5FA6 22.02%, #C98D8A 177.47%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.bloc_color .wp-block-group__inner-container {
    max-width: 1200px;
    margin: auto;
}

.bloc_color h2,
.bloc_color h3 {
    color: #fff;
}

.bloc_color h2 {
    font-size: 41px;
    font-weight: 500;
}

.bloc_color p {
    font-size: 16px;
    font-weight: 300;
}

.bloc_color img {
    border-radius: 20px;
    ;
}

.bloc_color .block-bouton-titre {
    background: #fff;
    color: #000;
    text-align: left;
    padding-left: 40px;
    padding-right: 40px;
    margin: 15px 0 5px 0;
}

/* ===== Block Home Heading - Full Width ===== */
.block-home-heading {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

article.page:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-content {
    padding-bottom: 0;
}

.entry-content {
    margin: 0 4rem;
}

@media screen and (max-width: 768px) {
    .entry-content {
        margin: 0 1rem;
    }
}

/* Style général du formulaire */
.nf-form-cont {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, sans-serif;
    animation: fadeIn 0.5s ease-out;
}

/* Titre du formulaire */
.nf-form-cont .nf-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

/* Style des champs */
.nf-form-cont .nf-field-container {
    margin-bottom: 20px;
}

.nf-form-cont .nf-field-label label {
    display: block;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.nf-form-cont .nf-field-element input[type="text"],
.nf-form-cont .nf-field-element input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.nf-form-cont .nf-field-element input[type="text"]:focus,
.nf-form-cont .nf-field-element input[type="email"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* Style des checkboxes */
.nf-form-cont .nf-field-element ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nf-form-cont .nf-field-element li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.nf-form-cont .nf-field-element input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #4a90e2;
    margin-top: 2px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.nf-form-cont .nf-field-element label {
    font-weight: 400;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.nf-form-cont .nf-field-element li:hover label {
    color: #2c3e50;
}

/* Style pour les cases à cocher obligatoires */
.nf-form-cont .nf-field-label .ninja-forms-req-symbol {
    color: #e74c3c;
    font-size: 14px;
}

/* Style pour les listes de cases à cocher */
.nf-form-cont .nf-field-label span.nf-label-span {
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

/* Animation subtile pour les cases à cocher */
.nf-form-cont .nf-field-element input[type="checkbox"] {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.nf-form-cont .nf-field-element input[type="checkbox"]:checked {
    transform: scale(1.05);
    border-color: #4a90e2;
}

/* Style du bouton d'envoi */
.nf-form-cont input[type="submit"] {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: auto;
    display: block;
    margin: 20px auto 0;
}

.nf-form-cont input[type="submit"]:hover {
    background: #357ab8;
    transform: translateY(-2px);
}

/* Style des messages d'erreur */
.nf-form-cont .nf-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

/* Style des champs obligatoires */
.nf-form-cont .ninja-forms-req-symbol {
    color: #e74c3c;
}

/* Animation subtile au chargement */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nf-form-cont .nf-cell {
        width: 100% !important;
    }
}
