/*
Theme Name: SavoirChanger restauré
Theme URI: https://savoirchanger.org/
Author: SavoirChanger
Description: Thème indépendant reconstruit à partir de l’archive publique de SavoirChanger. Articles, pages, catégories, menus, logo et couleurs modifiables dans WordPress, sans thème premium ni Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savoirchanger-restaure
*/

:root {
  --scr-background: #1e73be;
  --scr-paper: #fffacd;
  --scr-accent: #ff4c60;
  --scr-ink: #333;
  --scr-text: #353a44;
  --scr-border: rgba(39, 39, 39, .75);
  --scr-radius: 15px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 30px; }
body { margin: 0; background: var(--scr-background); color: var(--scr-text); font-family: Jost, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; text-underline-offset: .18em; transition: color .18s ease; }
a:hover { color: var(--scr-accent); }
button, input, textarea, select { font: inherit; }
button, input[type=submit] { cursor: pointer; }
button { color: var(--scr-ink); }
img { display: block; max-width: 100%; height: auto; }
iframe, video, embed { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { color: var(--scr-ink); font-family: Outfit, Arial, sans-serif; font-weight: 800; line-height: 1.3; margin: 0 0 20px; }
p { margin: 0 0 20px; }
:focus-visible { outline: 3px solid var(--scr-accent); outline-offset: 5px; }
.wrapper { width: calc(100% - 80px); max-width: 1200px; margin-left: auto; margin-right: auto; }
.paper { background: var(--scr-paper); border: 1px solid var(--scr-border); border-radius: var(--scr-radius); }
.screen-reader-text, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100000; left: 12px; top: 12px; width: auto; height: auto; margin: 0; padding: 12px 20px; clip-path: none; background: #fff; color: var(--scr-ink); border-radius: 8px; }
.site-header { padding-top: 60px; }
.header-paper { display: flex; align-items: center; gap: 40px; padding: 20px 55px; border-radius: 100px; background: #fff; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: 170px; max-height: 100px; object-fit: contain; }
.text-logo { color: var(--scr-ink); font-family: Outfit, Arial, sans-serif; font-size: 31px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.logo-dot { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--scr-accent); }
.primary-navigation { margin-left: auto; }
.primary-menu, .primary-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px 23px; }
.primary-menu > li { position: relative; }
.primary-menu a { display: block; padding: 9px 0; font-size: 16px; font-weight: 600; color: var(--scr-ink); }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: var(--scr-accent); }
.primary-menu .sub-menu { position: absolute; z-index: 15; min-width: 190px; padding: 12px 20px; left: 0; top: 100%; border: 1px solid var(--scr-border); border-radius: 10px; background: #fff; display: none; box-shadow: 3px 3px 0 var(--scr-ink); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.menu-toggle { display: none; padding: 7px 15px; border: 1px solid var(--scr-border); border-radius: 24px; background: var(--scr-paper); font-weight: 600; }
.hamburger { margin-right: 5px; }
.site-main { margin-top: 70px; }
.button, .wp-element-button, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 9px 20px; border: 1px solid var(--scr-border); border-radius: 25px; background: #fff; color: var(--scr-ink); font-weight: 600; font-size: 14px; line-height: 1.5; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover, input[type=submit]:hover { color: var(--scr-ink); box-shadow: 2px 2px 0 var(--scr-ink); transform: translate(-1px, -1px); }
.hero-section { position: relative; margin-bottom: 60px; }
.hero-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--scr-radius); }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; min-height: 450px; scroll-snap-align: start; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-meta { position: absolute; display: flex; flex-wrap: wrap; gap: 10px 20px; top: 30px; left: 30px; padding: 8px 16px; border: 1px solid var(--scr-border); border-radius: 25px; background: var(--scr-paper); font-size: 14px; font-weight: 500; }
.hero-title { position: absolute; left: 30px; bottom: 35px; max-width: min(600px, 68%); margin: 0; font-size: clamp(26px, 3vw, 39px); line-height: 1.35; }
.hero-title a { padding: 2px 9px 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; background: var(--scr-paper); color: var(--scr-ink); border-radius: 3px; }
.hero-title a:hover { color: var(--scr-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.hero-read { position: absolute; right: 30px; bottom: 30px; }
.hero-controls { display: none; position: absolute; right: 0; top: -54px; gap: 8px; }
.slider-ready .hero-controls { display: flex; }
.round-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--scr-border); border-radius: 50%; font-size: 22px; line-height: 1; }
.round-button:hover { background: var(--scr-paper); }
.hero-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.hero-dots span { width: 8px; height: 8px; border: 1px solid var(--scr-ink); border-radius: 50%; background: #fff; }
.hero-dots .is-current { background: var(--scr-accent); }
.hero-no-image { background: radial-gradient(circle at 80% 20%, #fed267 0 13%, transparent 13.5%), linear-gradient(140deg, var(--scr-paper), #efdbc9); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 45px 40px; }
.post-card { min-width: 0; padding: 20px 20px 25px; }
.card-visual { position: relative; height: 340px; margin-bottom: 20px; }
.card-image { display: block; height: 100%; border: 1px solid var(--scr-border); border-radius: var(--scr-radius); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-image:hover img { transform: scale(1.035); }
.image-placeholder { display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #f3e4b4, #b9dace); color: var(--scr-accent); }
.image-placeholder span { font-family: Outfit, Arial, sans-serif; font-size: 90px; opacity: .55; }
.card-title { position: absolute; right: 15px; left: 15px; bottom: 15px; margin: 0; font-size: 19px; line-height: 1.5; }
.card-title a { display: block; padding: 5px 10px; background: #fff; color: var(--scr-ink); border: 1px solid var(--scr-border); border-radius: 5px; transition: transform .18s ease, box-shadow .18s ease; }
.card-title a:hover { color: var(--scr-ink); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--scr-ink); }
.category-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card-visual > .category-tags { position: absolute; left: 15px; right: 15px; top: 15px; }
.category-tags a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--scr-border); border-radius: 18px; font-size: 12px; line-height: 1.5; font-weight: 600; background: #fff; }
.category-tags a::before { content: ''; width: 9px; height: 9px; background: var(--scr-accent); border: 1px solid var(--scr-border); border-radius: 3px; transform: rotate(20deg); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.post-meta > * + *::before { content: '•'; margin-right: 14px; color: var(--scr-accent); }
.card-excerpt { margin-top: 17px; font-size: 15px; line-height: 1.65; text-align: center; }
.card-excerpt p { margin-bottom: 22px; }
.card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.card-author { font-size: 13px; font-weight: 600; }
.read-more { padding: 8px 16px; font-size: 12px; }
.pagination { margin: 50px 0; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination .current, .pagination .dots { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 5px 16px; border: 1px solid var(--scr-border); border-radius: 25px; background: #fff; color: var(--scr-ink); font-weight: 600; }
.pagination .current { background: var(--scr-paper); }
.pagination .dots { background: transparent; border-color: transparent; color: #fff; }
.pagination a:hover { background: var(--scr-paper); }
.home-intro { padding: 45px 55px; margin: 65px 0 0; }
.listing-heading { padding: 40px; margin-bottom: 45px; text-align: center; }
.listing-heading h1 { font-size: 36px; margin-bottom: 0; }
.archive-description { margin-top: 20px; }
.archive-description p:last-child { margin-bottom: 0; }
.article-layout { max-width: 990px; margin: 0 auto; }
.article-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 35px; max-width: none; }
.single-article, .page-article { padding: 45px 55px 55px; }
.page-article { max-width: 990px; margin: 0 auto; }
.article-heading { text-align: center; margin-bottom: 35px; }
.article-heading .category-tags { justify-content: center; margin-bottom: 20px; }
.article-heading h1 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.3; margin-bottom: 25px; }
.article-heading .post-meta { font-size: 14px; }
.article-featured { margin: 0 0 35px; }
.article-featured img { width: 100%; max-height: 600px; object-fit: cover; border: 1px solid var(--scr-border); border-radius: var(--scr-radius); }
.entry-content { font-size: 18px; line-height: 1.8; }
.entry-content h1 { font-size: 34px; }
.entry-content h2 { font-size: 29px; margin-top: 36px; }
.entry-content h3 { font-size: 25px; margin-top: 32px; }
.entry-content h4 { font-size: 22px; margin-top: 30px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content a { color: var(--scr-ink); text-decoration: underline; }
.entry-content a:hover { color: var(--scr-accent); }
.entry-content figure { margin: 25px 0; }
.entry-content img { height: auto; border-radius: 10px; }
.entry-content figcaption, .wp-caption-text { margin-top: 10px; font-size: 14px; line-height: 1.5; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 27px; margin-bottom: 24px; }
.entry-content li { margin-bottom: 7px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 15px; border: 1px solid var(--scr-border); text-align: left; vertical-align: top; }
.entry-content th { background: #fff; font-weight: 700; }
.entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.entry-content blockquote { margin: 30px 0; padding: 20px 25px; border-left: 5px solid var(--scr-accent); background: rgba(255,255,255,.55); font-size: 20px; border-radius: 0 8px 8px 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 20px; background: #fff; border: 1px solid var(--scr-border); border-radius: 8px; font-size: 14px; }
.entry-content code { font-size: .85em; }
.entry-content hr { border: 0; border-top: 1px solid var(--scr-border); margin: 35px 0; }
.entry-content .alignleft { float: left; margin: 8px 24px 20px 0; }
.entry-content .alignright { float: right; margin: 8px 0 20px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: 100%; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content .wp-block-button__link { color: var(--scr-ink); background: #fff; border: 1px solid var(--scr-border); border-radius: 25px; font-weight: 600; text-decoration: none; }
.article-tags { border-top: 1px solid var(--scr-border); margin-top: 35px; padding-top: 25px; font-size: 14px; }
.article-tags a { text-decoration: underline; }
.post-navigation { margin-top: 35px; }
.nav-links { display: flex; gap: 25px; }
.nav-previous, .nav-next { width: 50%; padding: 25px; background: var(--scr-paper); border: 1px solid var(--scr-border); border-radius: var(--scr-radius); }
.nav-next { margin-left: auto; text-align: right; }
.nav-links span { display: block; margin-bottom: 10px; font-size: 13px; }
.nav-links strong { font-family: Outfit, Arial, sans-serif; font-size: 18px; font-weight: 700; }
.widget { margin-bottom: 35px; padding: 25px; }
.widget-title { font-size: 22px; margin-bottom: 20px; }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; }
.widget .search-form { flex-wrap: wrap; }
.widget .search-form label { flex-basis: 100%; }
.widget .search-form .button { width: 100%; }
.comments-area { margin-top: 35px; padding: 40px; }
.comments-area h2 { font-size: 26px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 25px; }
.comment-body { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--scr-border); }
.comment-meta { font-size: 13px; margin-bottom: 15px; }
.comment-author { font-weight: 600; }
.comment-content { font-size: 16px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { display: inline-block; margin-top: 15px; font-size: 13px; text-decoration: underline; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 500; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--scr-border); border-radius: 8px; background: #fff; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-size: 14px; }
.comment-form-cookies-consent input { margin-top: 7px; }
.search-form { display: flex; align-items: stretch; gap: 10px; max-width: 650px; margin: 25px auto 0; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; height: 100%; min-height: 44px; padding: 10px 18px; border: 1px solid var(--scr-border); border-radius: 25px; background: #fff; color: var(--scr-ink); }
.empty-state { max-width: 900px; margin: 0 auto; padding: 60px 45px; text-align: center; }
.error-number { display: block; color: var(--scr-accent); font-family: Outfit, Arial, sans-serif; font-size: 100px; font-weight: 800; line-height: 1; margin-bottom: 25px; }
.empty-state > p:last-child { margin-bottom: 0; margin-top: 25px; }
.site-footer { padding: 45px 0; text-align: center; font-size: 14px; }
.footer-menu { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 25px; list-style: none; margin: 0; padding: 0; }
.footer-menu li + li::before { content: '////'; margin-right: 25px; color: #fff; }
.footer-menu a { color: #fff; text-decoration: underline; }
.footer-menu a:hover { color: var(--scr-paper); }

@media (max-width: 1450px) {
  .wrapper { max-width: 1100px; }
  .header-paper { padding-left: 35px; padding-right: 35px; gap: 25px; }
  .primary-menu { gap: 7px 20px; }
  .post-grid { gap: 40px 30px; }
  .card-title { font-size: 17px; }
  .card-author { display: none; }
  .card-footer { justify-content: center; }
}
@media (max-width: 1000px) {
  .wrapper { width: calc(100% - 50px); }
  .site-header { padding-top: 35px; }
  .header-paper { display: block; position: relative; padding: 20px 25px; border-radius: 25px; }
  .site-branding { text-align: center; }
  .custom-logo { width: 160px; max-height: 85px; }
  .primary-menu { justify-content: center; gap: 5px 22px; margin-top: 10px; }
  .site-main { margin-top: 65px; }
  .hero-slide { min-height: 400px; }
  .hero-title { max-width: 70%; font-size: 29px; }
  .hero-read { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 25px; }
  .card-title { font-size: 19px; }
  .article-layout.has-sidebar { display: block; }
  .article-sidebar { margin-top: 35px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .widget { margin-bottom: 0; }
  .single-article, .page-article, .home-intro { padding: 35px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrapper { width: calc(100% - 30px); }
  .site-header { padding-top: 15px; }
  .header-paper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 20px; border-radius: 18px; }
  .site-branding { text-align: left; }
  .custom-logo { width: 125px; max-height: 65px; }
  .text-logo { font-size: 26px; }
  .menu-toggle { display: block; margin-left: auto; font-size: 12px; }
  .primary-navigation { flex: 0 0 100%; margin: 0; }
  .primary-menu { gap: 0 16px; margin-top: 5px; }
  .primary-menu a { font-size: 14px; padding: 7px 0; }
  .primary-navigation:not(.is-open) .primary-menu { display: none; }
  .primary-menu .sub-menu { position: static; min-width: 0; border: 0; box-shadow: none; border-left: 2px solid var(--scr-accent); border-radius: 0; padding: 0 10px; background: transparent; }
  .primary-menu li:focus-within > .sub-menu { display: block; }
  .site-main { margin-top: 55px; }
  .hero-section { margin-bottom: 35px; }
  .hero-slide { min-height: 350px; }
  .hero-meta { top: 15px; left: 15px; right: 15px; width: fit-content; padding: 7px 12px; font-size: 11px; gap: 7px 12px; }
  .hero-title { left: 18px; bottom: 25px; max-width: calc(100% - 36px); font-size: 25px; }
  .hero-title a { padding: 2px 6px 4px; }
  .round-button { width: 35px; height: 35px; }
  .hero-controls { top: -44px; }
  .hero-dots { margin-top: 13px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .post-card { padding: 18px 18px 22px; }
  .card-visual { height: 345px; margin-bottom: 17px; }
  .card-title { left: 12px; right: 12px; bottom: 12px; font-size: 19px; }
  .card-excerpt { font-size: 15px; }
  .card-author { display: inline; }
  .card-footer { justify-content: space-between; }
  .home-intro { margin-top: 35px; padding: 25px; }
  .listing-heading { padding: 25px; margin-bottom: 25px; }
  .listing-heading h1 { font-size: 28px; }
  .single-article, .page-article { padding: 25px 22px; }
  .article-heading { margin-bottom: 25px; }
  .article-heading h1 { font-size: 28px; }
  .article-heading .post-meta { font-size: 12px; gap: 6px 12px; }
  .post-meta > * + *::before { margin-right: 10px; }
  .article-featured { margin-bottom: 25px; }
  .entry-content { font-size: 16px; line-height: 1.8; }
  .entry-content h1 { font-size: 27px; }
  .entry-content h2 { font-size: 24px; }
  .entry-content h3 { font-size: 21px; }
  .entry-content h4 { font-size: 19px; }
  .entry-content th, .entry-content td { padding: 8px; }
  .entry-content blockquote { font-size: 17px; padding: 16px 20px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 20px auto; }
  .article-sidebar { display: block; }
  .widget { margin-bottom: 25px; }
  .comments-area { padding: 25px 22px; }
  .nav-links { flex-direction: column; gap: 20px; }
  .nav-previous, .nav-next { width: 100%; }
  .search-form { flex-wrap: wrap; }
  .search-form label { flex-basis: 100%; }
  .search-form .button { width: 100%; }
  .empty-state { padding: 35px 25px; }
  .pagination { margin: 35px 0; }
  .pagination ul { gap: 8px; }
  .pagination a, .pagination .current { min-width: 35px; height: 35px; padding: 4px 12px; font-size: 13px; }
  .site-footer { padding: 30px 0; font-size: 12px; }
  .footer-menu { gap: 8px 12px; }
  .footer-menu li + li::before { margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Formulaire reconstruit, accessible et adapté aux petits écrans. */
.sc-contact { max-width: 720px; }
.sc-contact label { display: block; font-weight: 600; }
.sc-contact input:not([type=hidden]), .sc-contact textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border-color, #202020); border-radius: 12px; background: #fff; padding: 12px 16px; font: inherit; margin-top: 8px; }
.sc-contact input:focus, .sc-contact textarea:focus { outline: 3px solid var(--accent-color, #FF4C60); outline-offset: 2px; }
.sc-contact button { border: 1px solid #202020; border-radius: 30px; padding: 12px 28px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.archive-missing-image { border-left: 3px solid #FF4C60; padding: 10px 16px; font-size: .9em; opacity: .8; }
