/*
Theme Name: Roorle Shortlinks
Theme URI: https://roorle.com
Author: Roorle LLC
Author URI: https://roorle.com
Description: Thème WordPress minimaliste pour une page d'information dédiée au raccourcissement d'URL, proposé par Roorle LLC.
Version: 1.0.0
Requires at least: 6.0
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: roorle-shortlinks
Tags: one-column, custom-colors, accessibility-ready, custom-logo
*/

:root {
    --roorle-accent: #263e74;
    --roorle-accent-hover: #345bba;
    --roorle-bg: #f6f7f9;
    --roorle-text: #202636;
    --roorle-muted: #667085;
    --roorle-border: #e6eaf0;
    --roorle-icon-bg: #eef3ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--roorle-text); background: var(--roorle-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--roorle-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #96b5ff; outline-offset: 4px; }
.screen-reader-text { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; height: 1px; width: 1px; }
.screen-reader-text:focus { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: 12px 16px; width: auto; height: auto; clip: auto; color: #fff; background: var(--roorle-accent); }

.roorle-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 72px 20px 40px; text-align: center; }
.roorle-card { width: 100%; max-width: 480px; padding: 44px 34px 42px; background: #fff; border: 1px solid var(--roorle-border); border-radius: 19px; box-shadow: 0 12px 38px rgba(22, 34, 56, .045); }
.roorle-icon { display: flex; justify-content: center; align-items: center; margin: 0 auto 25px; width: 64px; height: 64px; border-radius: 18px; color: var(--roorle-accent-hover); background: var(--roorle-icon-bg); }
.roorle-card h1 { margin: 0 0 20px; font-size: clamp(23px, 3.6vw, 27px); line-height: 1.32; font-weight: 750; letter-spacing: -.55px; }
.roorle-description { max-width: 370px; margin: 0 auto; color: var(--roorle-muted); font-size: 15px; line-height: 1.8; }
.roorle-divider { border: 0; height: 1px; background: var(--roorle-border); margin: 30px 0 27px; }
.roorle-provider { margin: 0 0 24px; color: var(--roorle-muted); font-size: 14px; line-height: 1.6; }
.roorle-provider strong { color: var(--roorle-text); font-weight: 700; }
.roorle-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; padding: 13px 24px; background: var(--roorle-accent); color: #fff; text-decoration: none; border-radius: 8px; font-size: 15px; line-height: 1.4; font-weight: 650; transition: background .18s ease, transform .18s ease; overflow-wrap: anywhere; }
.roorle-button:hover, .roorle-button:focus-visible { background: var(--roorle-accent-hover); color: #fff; transform: translateY(-1px); }
.roorle-footer { margin-top: 29px; color: #89919d; font-size: 12px; line-height: 1.5; }

/* Pages WordPress classiques, utiles pour les mentions légales ou la confidentialité. */
.roorle-content-card { width: min(100%, 760px); padding: 38px 42px; text-align: left; }
.roorle-content-card h1 { margin-bottom: 22px; }
.roorle-content-card :is(p, ul, ol) { color: #485366; font-size: 16px; line-height: 1.75; }
.roorle-content-card :is(img, video, iframe) { max-width: 100%; height: auto; }
.roorle-content-card :is(h2, h3, h4) { line-height: 1.35; margin-top: 1.5em; }
.roorle-content-card .wp-block-image img { height: auto; }
.roorle-content-card .wp-block-button__link { background: var(--roorle-accent); }
.roorle-back { margin-top: 24px; display: inline-block; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.roorle-post + .roorle-post { border-top: 1px solid var(--roorle-border); margin-top: 26px; padding-top: 26px; }
.roorle-post h2 { margin-top: 0; }
.roorle-post h2 a { text-decoration: none; }

body.admin-bar .roorle-page { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); }
@media (max-width: 600px) {
    .roorle-page { padding: 35px 16px; }
    .roorle-card { padding: 34px 23px; border-radius: 16px; }
    .roorle-icon { width: 60px; height: 60px; margin-bottom: 22px; }
    .roorle-divider { margin: 25px 0; }
    .roorle-content-card { padding: 30px 24px; }
}
@media (max-width: 782px) {
    body.admin-bar .roorle-page { min-height: calc(100vh - 46px); min-height: calc(100svh - 46px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .roorle-button { transition: none; }
}
