/*
Theme Name: Delfe Twenty Eleven
Theme URI: https://lafeerie.ddns.net/delfecreations/
Description: Thème enfant personnalisé basé sur Twenty Eleven pour Delfe Creations. Conserve l'esprit du thème 2011 tout en nettoyant la structure WordPress.com et en ajoutant une présentation Delfe.
Author: Delfe Creations
Template: twentyeleven
Version: 1.0.0
Text Domain: delfe-twentyeleven
*/

/* ==========================================================
   DELFE CREATIONS - SURCHARGES DU THEME TWENTY ELEVEN
   ========================================================== */

:root {
    --delfe-gold: #b88a3b;
    --delfe-gold-light: #d8b56d;
    --delfe-dark: #171411;
    --delfe-dark-soft: #24201b;
    --delfe-cream: #f8f4ed;
    --delfe-text: #332b24;
    --delfe-border: #d9cdbb;
    --delfe-shadow: rgba(35, 25, 15, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--delfe-cream);
    color: var(--delfe-text);
}

#page {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 35px var(--delfe-shadow);
}

#branding {
    position: relative;
    margin-bottom: 0;
    background: #fff;
}

#branding hgroup {
    position: absolute;
    left: -9999px;
}

.delfe-site-header-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.delfe-site-header-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

.delfe-site-title-fallback {
    padding: 38px 40px;
    background: linear-gradient(135deg, #221b14, #4d3924);
    color: #fff;
    text-align: center;
}

.delfe-site-title-fallback h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: .04em;
}

.delfe-site-title-fallback p {
    margin: 10px 0 0;
    color: #ead7b3;
}

#access {
    margin: 0;
    background: var(--delfe-dark);
    border-top: 1px solid #3d342b;
    border-bottom: 3px solid var(--delfe-gold);
    box-shadow: none;
}

#access ul {
    margin: 0;
    padding: 0;
}

#access li {
    border-right: 1px solid rgba(255,255,255,.08);
}

#access a {
    color: #f6f0e7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    padding: 0 17px;
}

#access a:hover,
#access ul ul a:hover,
#access li:hover > a,
#access ul ul :hover > a {
    background: #32281e;
    color: #fff;
}

#access ul ul {
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    background: var(--delfe-dark);
    border-top: 3px solid var(--delfe-gold);
}

#access ul ul a {
    background: var(--delfe-dark);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

#access .menu-item-has-children > a:after,
#access .page_item_has_children > a:after {
    color: var(--delfe-gold-light);
}

#main {
    padding-top: 0;
}

#primary {
    margin: 0;
}

#content {
    margin: 0;
    padding: 42px 54px 55px;
}

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    color: var(--delfe-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.entry-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    margin: 16px auto 0;
    background: var(--delfe-gold);
}

.entry-content,
.entry-summary {
    color: var(--delfe-text);
    font-size: 16px;
    line-height: 1.85;
}

.entry-content p,
.entry-summary p {
    margin-bottom: 1.25em;
}

.entry-content a,
.entry-summary a {
    color: #7c5a26;
}

.entry-content a:hover,
.entry-summary a:hover {
    color: #4d3613;
}

.delfe-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.delfe-intro-lead {
    color: var(--delfe-gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
}

.delfe-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0 12px;
}

.delfe-category-card {
    position: relative;
    min-height: 135px;
    padding: 28px;
    border: 1px solid var(--delfe-border);
    background: linear-gradient(145deg, #fff, #f7f1e7);
    box-shadow: 0 8px 22px rgba(90, 65, 35, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.delfe-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--delfe-gold-light);
    box-shadow: 0 14px 30px rgba(90, 65, 35, .13);
}

.delfe-category-card h3 {
    margin: 0 0 10px;
    color: var(--delfe-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.delfe-category-card p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
}

.delfe-category-card a {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px;
    color: inherit;
    text-decoration: none;
}

.delfe-category-card a:hover {
    color: inherit;
}

.delfe-divider {
    width: 100%;
    height: 1px;
    margin: 42px 0;
    background: linear-gradient(90deg, transparent, var(--delfe-border), transparent);
}

#secondary {
    padding: 35px 30px;
    background: #f4eee4;
}

.widget-title {
    color: var(--delfe-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: .02em;
}

.widget a {
    color: #765421;
}

#colophon {
    margin-top: 0;
    padding: 28px 35px;
    border-top: 3px solid var(--delfe-gold);
    background: var(--delfe-dark);
    color: #ddd4c9;
}

#colophon a {
    color: #ead1a0;
}

#site-generator {
    color: #b8afa5;
    font-size: 13px;
    text-align: center;
}

.delfe-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto 25px;
}

.delfe-footer-widget {
    min-width: 0;
}

.delfe-footer-widget .widget-title {
    color: #f1dfbe;
}

.delfe-footer-widget,
.delfe-footer-widget p,
.delfe-footer-widget li {
    color: #d6cec4;
}

.delfe-footer-widget ul {
    margin: 0;
    padding-left: 18px;
}

input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea {
    border: 1px solid var(--delfe-border);
    background: #fffdf9;
    color: var(--delfe-text);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
textarea:focus {
    border-color: var(--delfe-gold-light);
    box-shadow: 0 0 0 2px rgba(184,138,59,.12);
}

button,
input[type=submit],
input[type=button],
input[type=reset] {
    border: 0;
    border-radius: 2px;
    background: var(--delfe-dark);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

button:hover,
input[type=submit]:hover,
input[type=button]:hover,
input[type=reset]:hover {
    background: #3b2e22;
    transform: translateY(-1px);
}

/* WordPress editor / block content */
.wp-block-image img,
.entry-content img {
    max-width: 100%;
    height: auto;
}

.alignwide {
    margin-left: -30px;
    margin-right: -30px;
}

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

/* Mobile */
@media (max-width: 767px) {
    #page {
        width: 100%;
        box-shadow: none;
    }

    #content {
        padding: 30px 20px 38px;
    }

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

    .entry-content,
    .entry-summary {
        font-size: 15px;
        line-height: 1.75;
    }

    .delfe-category-grid,
    .delfe-footer-widgets {
        grid-template-columns: 1fr;
    }

    #secondary {
        padding: 28px 20px;
    }

    #colophon {
        padding: 25px 20px;
    }

    #access a {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 24px 16px 32px;
    }

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

    .delfe-intro-lead {
        font-size: 1.2rem;
    }

    .delfe-category-card {
        min-height: 120px;
        padding: 22px;
    }

    .delfe-category-card a {
        padding: 22px;
    }
}

/* Preserve accessibility / focus visibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--delfe-gold-light);
    outline-offset: 2px;
}

/* --- Modernisation responsive et performances --- */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
#page { width: min(100%, 1180px); }
.delfe-site-header-image { max-height: 260px; width: 100%; object-fit: contain; }
#branding { overflow: visible; }
#access .delfe-account-item { float: right; border-left: 1px solid rgba(255,255,255,.12); border-right: 0; }
#access .delfe-account-item > a { color: #20180e; background: var(--delfe-gold-light); font-weight: 700; }
#access .delfe-account-item > a:hover,
#access .delfe-account-item > a:focus { color: #171411; background: #f0d69e; }
#content { min-width: 0; }
.entry-content, .entry-summary { overflow-wrap: normal; word-break: normal; }
.delfe-intro { max-width: 720px; text-align: left; }
.delfe-intro-lead { text-align: center; }
.delfe-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 22px; }
.delfe-category-card { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border-radius: 2px; }
.delfe-category-card a { position: static; display: block; height: 100%; padding: 24px; overflow-wrap: normal; word-break: normal; }
.delfe-category-card h3 { margin: 0 0 12px; font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.delfe-category-card p { line-height: 1.65; overflow-wrap: normal; word-break: normal; }
.delfe-category-card:hover { transform: translateY(-2px); }
.delfe-category-card a:focus-visible { outline-offset: -4px; }
.entry-content img { height: auto; }
.entry-content figure, .entry-content .wp-block-image { margin: 1.5em auto; max-width: 100%; }
.entry-content figure img, .entry-content .wp-block-image img { display: block; width: auto; max-width: 100%; max-height: 460px; object-fit: contain; margin-inline: auto; }
.delfe-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.delfe-footer-widget-wrap { min-width: 0; }
:focus-visible { outline: 3px solid var(--delfe-gold-light); outline-offset: 3px; }
@media (max-width: 900px) {
  #content { padding: 34px 30px 42px; }
  .delfe-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #access a { padding-inline: 12px; }
}
@media (max-width: 600px) {
  #page { width: 100%; box-shadow: none; }
  #content { padding: 26px 18px 34px; }
  .delfe-site-header-image { max-height: 180px; }
  .delfe-site-title-fallback { padding: 28px 18px; }
  .delfe-site-title-fallback h1 { font-size: 2rem; }
  .entry-title { font-size: 1.8rem; }
  .entry-content, .entry-summary { font-size: 15px; line-height: 1.75; }
  .delfe-category-grid { grid-template-columns: 1fr; gap: 14px; }
  .delfe-category-card a { padding: 20px; }
  #access .delfe-account-item { float: none; border-left: 0; }
  #access .delfe-account-item > a { color: #f6f0e7; background: transparent; }
  #access .delfe-account-item > a:hover { background: #32281e; color: #fff; }
  .delfe-footer-widgets { grid-template-columns: 1fr; gap: 16px; }
  #colophon { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* --- Espace client Delfe --- */
.delfe-account-wrap { max-width: 960px; margin: 0 auto; }
.delfe-account-heading { max-width: 650px; margin: 0 auto 32px; text-align: center; }
.delfe-account-heading h1 { margin: 0 0 12px; color: var(--delfe-dark); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400; }
.delfe-account-heading > p:last-child { margin: 0; }
.delfe-account-eyebrow { margin: 0 0 10px; color: #94702f; font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.delfe-account-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.delfe-account-panel { min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--delfe-border); border-radius: 4px; background: #fffdfa; box-shadow: 0 10px 28px rgba(45, 31, 15, .06); }
.delfe-account-panel h2 { margin: 0 0 8px; color: var(--delfe-dark); font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; font-weight: 400; }
.delfe-account-panel > p { margin: 0 0 22px; color: #6b6258; }
.delfe-account-panel form p { margin: 0 0 16px; }
.delfe-account-panel label { display: block; margin-bottom: 6px; color: #332b24; font-size: .9rem; font-weight: 600; }
.delfe-account-panel input[type="text"], .delfe-account-panel input[type="email"], .delfe-account-panel input[type="password"] { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d8cdbd; border-radius: 3px; background: #fff; color: #2d261f; font: inherit; box-shadow: none; }
.delfe-account-panel input:focus { border-color: var(--delfe-gold); }
.delfe-account-panel .login-remember { display: flex; align-items: center; gap: 8px; }
.delfe-account-panel .login-remember label { display: inline; margin: 0; font-weight: 400; }
.delfe-account-button, .delfe-account-panel input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1px solid #9d742e; border-radius: 3px; background: #b88a3b; color: #fff !important; font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .2s ease; }
.delfe-account-button:hover, .delfe-account-panel input[type="submit"]:hover { background: #946c28; color: #fff !important; }
.delfe-account-help { display: inline-block; margin-top: 14px; color: #77551e; font-size: .9rem; }
.delfe-account-privacy { color: #766c60; font-size: .78rem; line-height: 1.55; }
.delfe-account-notice, .delfe-account-errors { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #d9cdbb; background: #faf5eb; }
.delfe-account-errors { border-color: #c86b60; background: #fff5f3; }
.delfe-account-errors ul { margin: 0; padding-left: 20px; }
@media (max-width: 680px) { .delfe-account-columns { grid-template-columns: 1fr; } .delfe-account-panel { padding: 22px 18px; } }


/* Homepage account call-to-action */
.delfe-home-account-cta {
    margin: 26px auto 8px;
    padding: 22px 18px;
    max-width: 620px;
    text-align: center;
    border: 1px solid var(--delfe-border, #ded1bd);
    background: #fffdfa;
    border-radius: 4px;
}
.delfe-home-account-cta p { margin: 12px 0 0; color: #6b6258; font-size: .92rem; line-height: 1.6; }
.delfe-home-account-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 12px 24px;
    border: 1px solid #9d742e; border-radius: 3px;
    background: #b88a3b; color: #fff !important;
    font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.delfe-home-account-button:hover, .delfe-home-account-button:focus {
    background: #946c28; color: #fff !important; transform: translateY(-1px);
}
@media (max-width: 480px) { .delfe-home-account-cta { padding: 18px 14px; } .delfe-home-account-button { width: 100%; box-sizing: border-box; } }
