/*
Theme Name: RYM Créations
Theme URI: https://rym-creations.fr
Author: Farida
Author URI: https://rym-creations.fr
Description: Thème WordPress classique et élégant pour boutique en ligne d'accessoires (bijoux, parfums, sacs). Compatible Elementor et Elementor Pro (WooCommerce Builder). Design sobre, mobile-first, palette ivoire/ocre. Idéal pour marques artisanales et créateurs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rym-creations
Tags: e-commerce, woocommerce, elementor, responsive, custom-colors, custom-menu, custom-logo, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. VARIABLES CSS — Charte graphique RYM Créations
   ========================================================================== */
:root {
    /* Couleurs */
    --color-bg: #FAF7F2;              /* Ivoire crème - fond principal */
    --color-bg-secondary: #F0EAE0;    /* Beige sable - sections alternées */
    --color-text: #1F1F1F;            /* Noir doux - texte principal */
    --color-text-secondary: #4A4A4A;  /* Gris anthracite */
    --color-accent: #C4762D;          /* Ocre du logo - boutons, liens */
    --color-accent-hover: #A85F1E;    /* Ocre foncé - hover */
    --color-border: #E5DFD3;          /* Bordures discrètes */
    --color-white: #FFFFFF;

    /* Typographie */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container-max: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. RESET LÉGER
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--color-accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    padding-left: 1.25em;
}

figure {
    margin: 0;
}

/* Accessibilité — skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-text);
    color: var(--color-white);
    padding: 12px 20px;
    z-index: 9999;
    border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
    left: 0;
}

.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;
    width: 1px;
    word-wrap: normal;
}

/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 0.6em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 500; }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
    margin: 0 0 1.2em;
    color: var(--color-text-secondary);
}

.text-accent { color: var(--color-accent); }
.text-serif  { font-family: var(--font-heading); }

/* ==========================================================================
   4. CONTAINERS ET GRILLES UTILITAIRES
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 60px 0;
}
.section--alt {
    background-color: var(--color-bg-secondary);
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 80px 0; }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 100px 0; }
    .container { padding: 0 40px; }
}

.text-center { text-align: center; }

/* ==========================================================================
   5. BOUTONS
   ========================================================================== */
.btn,
.button,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
}

.btn-primary,
input[type="submit"],
button[type="submit"] {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn + .btn { margin-left: 12px; }

/* ==========================================================================
   6. HEADER SITE
   ========================================================================== */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}
.site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(31,31,31,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 24px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
}
.site-branding .site-title a {
    color: var(--color-text);
}
.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Menu principal */
.main-navigation {
    display: none;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--color-white);
    padding: 12px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 0;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu { display: flex; }
.main-navigation .sub-menu a { padding: 8px 20px; display: block; }

/* Icônes header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-action {
    background: none;
    border: none;
    padding: 8px;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-action:hover { color: var(--color-accent); }
.header-action svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Burger */
.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    display: inline-flex;
    color: var(--color-text);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* Menu mobile */
.mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--color-bg);
    padding: 100px 30px 40px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 90;
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text);
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid var(--color-border);
}

/* Barre annonce */
.top-announcement {
    background: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

@media (min-width: 1024px) {
    .main-navigation { display: block; }
    .menu-toggle { display: none; }
    .mobile-nav { display: none; }
}

/* ==========================================================================
   7. MAIN / CONTENU
   ========================================================================== */
.site-main {
    min-height: 60vh;
}

.entry-header {
    text-align: center;
    padding: 60px 0 30px;
}
.entry-title {
    margin: 0 0 12px;
}
.entry-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

.entry-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
}
.entry-content > * + * { margin-top: 1.2em; }

/* ==========================================================================
   8. HERO ET SECTIONS FRONT-PAGE
   ========================================================================== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}
.hero .hero-title {
    max-width: 900px;
    margin: 0 auto 20px;
}
.hero .hero-subtitle {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 32px;
}
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 4;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); }
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card::after {
    content:'';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.category-card .cat-title {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 0;
    text-align: center;
}

/* Grille produits placeholder */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(31,31,31,0.06);
}
.product-card .product-thumb {
    aspect-ratio: 1 / 1;
    background: var(--color-bg-secondary);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}
.product-card .product-info { padding: 20px; text-align: center; }
.product-card .product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--color-text);
}
.product-card .product-price {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Section réassurance */
.reassurance-item { text-align: center; padding: 20px; }
.reassurance-item svg {
    width: 40px; height: 40px;
    color: var(--color-accent);
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    margin-bottom: 16px;
}
.reassurance-item h4 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: 0.02em; }
.reassurance-item p { font-size: 0.9rem; margin: 0; }

/* Newsletter */
.newsletter-band {
    background: var(--color-text);
    color: var(--color-white);
    padding: 70px 0;
    text-align: center;
}
.newsletter-band h2 { color: var(--color-white); }
.newsletter-band p { color: rgba(255,255,255,0.75); }
.newsletter-form {
    max-width: 500px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.newsletter-form input[type="email"] {
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--color-accent); }
@media (min-width: 640px) {
    .newsletter-form { flex-direction: row; }
    .newsletter-form input[type="email"] { flex: 1; }
}

/* ==========================================================================
   9. ARTICLES / BLOG
   ========================================================================== */
.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,31,31,0.06); }
.post-card .post-thumb img { width: 100%; height: 240px; object-fit: cover; }
.post-card .post-body { padding: 24px; }
.post-card h2 { font-size: 1.4rem; margin: 0 0 10px; }
.post-card h2 a { color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-accent); }
.post-card .post-meta { font-size: 0.8rem; color: var(--color-text-secondary); margin-bottom: 12px; letter-spacing: 0.03em; }
.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.read-more::after { content: ' →'; transition: var(--transition); }
.read-more:hover::after { padding-left: 4px; }

/* Pagination */
.pagination, .navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
}
.pagination a, .pagination span,
.navigation.pagination a, .navigation.pagination span {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}
.pagination .current, .navigation.pagination .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}
.pagination a:hover, .navigation.pagination a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* ==========================================================================
   10. FORMULAIRES
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196,118,45,0.1);
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}
.search-form input[type="search"] { flex: 1; }
.search-form button {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-form button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ==========================================================================
   11. 404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
    max-width: 640px;
    margin: 0 auto;
}
.error-404 .code-404 {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 10rem);
    color: var(--color-accent);
    margin: 0;
    line-height: 1;
}
.error-404 h1 { margin: 20px 0; }
.error-404 .search-form { margin: 30px auto; }

/* ==========================================================================
   12. COMMENTAIRES
   ========================================================================== */
.comments-area { max-width: 780px; margin: 60px auto; padding: 0 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.comment-meta { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 8px; }
.comment-author { font-weight: 600; color: var(--color-text); }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-accent);
}
.rym-comment-form { margin-top: 40px; }
.rym-comment-form p { margin-bottom: 16px; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    padding-top: 70px;
    margin-top: 80px;
    border-top: 1px solid var(--color-border);
}
.footer-widgets {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    padding-bottom: 50px;
}
@media (min-width: 768px) {
    .footer-widgets { grid-template-columns: repeat(3, 1fr); }
}
.footer-widgets h3, .footer-widgets .widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}
.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets li { margin-bottom: 10px; }
.footer-widgets a { color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-widgets a:hover { color: var(--color-accent); }

.footer-newsletter {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}
.footer-newsletter h3 { margin: 0 0 8px; }
.footer-newsletter p { font-size: 0.9rem; margin: 0 0 16px; }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-menu a { color: var(--color-text-secondary); font-size: 0.85rem; }
.footer-credit { color: var(--color-text-secondary); font-size: 0.8rem; opacity: 0.8; }

/* ==========================================================================
   14. ANIMATIONS SCROLL
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   15. ALIGNEMENTS WORDPRESS
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin: 20px auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Fin du fichier style.css */
