/*
Theme Name: PGCF — Plateforme de Gestion de Centre de Formation
Theme URI: https://rc-sarl.com/pgcf
Author: Renaissance Corporation SARL
Author URI: https://rc-sarl.com
Description: Theme WordPress complet pour centre de formation linguistique : site vitrine haut de gamme (banniere video, formations, temoignages, actualites, referencement de base) et plateforme de gestion integree (inscriptions, presences, notes, paiements, attestations, bibliotheque) accessible depuis /plateforme/.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
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: pgcf
Tags: education, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, full-width-template, right-sidebar
*/

/* ===================================================================
   Styles de base WordPress (contenu, alignements, widgets,
   commentaires, accessibilite). La mise en page du site se trouve
   dans assets/css/theme.css.
   =================================================================== */

/* --- Accessibilite --- */
.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: #fff;
    border-radius: 6px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
    clip: auto !important;
    clip-path: none;
    color: var(--pgcf-bleu, #09204f);
    display: block;
    font-size: .95rem;
    font-weight: 700;
    height: auto;
    left: 12px;
    line-height: normal;
    padding: 14px 22px;
    text-decoration: none;
    top: 12px;
    width: auto;
    z-index: 100000;
}

/* --- Alignements de l'editeur --- */
.alignleft {
    float: left;
    margin: .4em 1.6em 1em 0;
}

.alignright {
    float: right;
    margin: .4em 0 1em 1.6em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    margin-left: -60px;
    margin-right: -60px;
    max-width: calc(100% + 120px);
}

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

.entree-contenu::after,
.clearfix::after {
    clear: both;
    content: "";
    display: table;
}

/* --- Medias --- */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    border-radius: 14px;
}

.wp-caption-text,
.wp-block-image figcaption {
    color: #64748b;
    font-size: .86rem;
    font-style: italic;
    text-align: center;
    padding-top: .5em;
}

.gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 1.6em;
}

.gallery-item img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* --- Blocs d'editeur --- */
.wp-block-quote,
blockquote {
    border-left: 4px solid var(--pgcf-or, #ea580c);
    background: #f6f9ff;
    border-radius: 0 14px 14px 0;
    margin: 1.8em 0;
    padding: 18px 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
}

.wp-block-quote cite,
blockquote cite {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .82rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .06em;
    margin-top: .8em;
    text-transform: uppercase;
    color: var(--pgcf-bleu, #09204f);
}

.wp-block-button__link {
    background: linear-gradient(135deg, #fb923c, var(--pgcf-or, #ea580c));
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
}

pre,
.wp-block-code {
    background: #071633;
    border-radius: 14px;
    color: #e2e8f0;
    overflow-x: auto;
    padding: 18px 22px;
    font-size: .9rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.6em;
}

th,
td {
    border-bottom: 1px solid #e1e8f2;
    padding: 10px 12px;
    text-align: left;
}

/* --- Widgets --- */
.widget {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(29, 78, 216, .07);
    margin-bottom: 26px;
    padding: 22px 24px;
}

.widget-titre {
    font-size: 1.05rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pgcf-or, #ea580c);
    display: inline-block;
}

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

.widget li {
    border-bottom: 1px dashed #e1e8f2;
    padding: 8px 0;
}

.widget li:last-child {
    border-bottom: 0;
}

/* --- Commentaires --- */
.zone-commentaires {
    margin-top: 48px;
}

.liste-commentaires {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liste-commentaires .comment-body {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    margin-bottom: 18px;
    padding: 20px 24px;
}

.liste-commentaires .children {
    list-style: none;
    margin-left: 26px;
    padding: 0;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.comment-metadata {
    color: #64748b;
    font-size: .8rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background: #fff;
    border: 1.4px solid #e1e8f2;
    border-radius: 12px;
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

.comment-form .form-submit input {
    background: linear-gradient(135deg, #fb923c, var(--pgcf-or, #ea580c));
    border: 0;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 32px;
}

/* --- Bloc d'administration --- */
.admin-bar .site-entete {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-entete {
        top: 46px;
    }
}
