/*
Theme Name: Robocut Studio
Template: twentytwentyfive
Description: Thème Robocut Studio, enfant de Twenty Twenty-Five. Menu vertical, portfolio et bilinguisme via WPML.
Version: 1.3.5
Requires at least: 6.5
Requires PHP: 8.1
Author: Robocut Studio
Text Domain: robocut-studio
*/


/* Polices Calibre (fichiers du thème). Nom unique pour éviter tout conflit avec une police installée sur l'ordinateur. */
@font-face { font-family: 'rc-calibre'; src: url('assets/fonts/calibre-thin.woff') format('woff'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'rc-calibre'; src: url('assets/fonts/calibre-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'rc-calibre'; src: url('assets/fonts/calibre-semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'rc-calibre'; src: url('assets/fonts/calibre-black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }

:root { --rc-sidebar: 240px; --rc-red: var(--wp--preset--color--red); }

/* ---------- Structure : barre latérale + contenu ---------- */
.rc-shell { display: grid; grid-template-columns: var(--rc-sidebar) minmax(0, 1fr); min-height: 100vh; }
.rc-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: var(--wp--preset--color--base); border-right: 1px solid #eee; z-index: 50; }
.rc-sidebar__inner { display: flex; flex-direction: column; align-items: center; padding: 4.5rem 0 2rem; gap: 0; }
.rc-main { min-width: 0; margin-block-start: 0 !important; display: flex; flex-direction: column; }
.rc-main > footer { margin-top: auto; margin-block-start: auto !important; }

/* Marges latérales du contenu, et blocs « pleine largeur » qui vont vraiment d'un bord à l'autre */
.rc-main { --rc-pad: clamp(1rem, 4vw, 3rem); }
.rc-main > .wp-block-post-content { padding-left: var(--rc-pad) !important; padding-right: var(--rc-pad) !important; }
.rc-main > .wp-block-post-content > .alignfull { margin-left: calc(-1 * var(--rc-pad)) !important; margin-right: calc(-1 * var(--rc-pad)) !important; width: auto !important; max-width: none !important; }
.rc-main > .wp-block-post-content > :last-child:not(.alignfull) { margin-bottom: 4rem; }
.rc-sidebar p, .rc-main > .wp-block-shortcode { margin: 0; }

.rc-logo { display: block; width: 110px; margin-bottom: 3.5rem; }
.rc-logo img { display: block; width: 100%; height: auto; }
.rc-logo .rc-logo__r { display: none; }

.rc-nav__list, .rc-lang, .rc-social { list-style: none; margin: 0; padding: 0; }
.rc-sidebar::-webkit-scrollbar { display: none; }
.rc-nav__list, .rc-lang { width: 100%; text-align: center; }
.rc-nav__list a, .rc-lang a {
	display: block; padding: .55rem 1rem .4rem; color: var(--wp--preset--color--contrast);
	font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: background .2s, color .2s;
}
.rc-nav__list a:hover, .rc-nav__list .current-menu-item > a, .rc-nav__list .current_page_item > a { color: var(--rc-red); }
.rc-lang a { background: var(--wp--preset--color--light); }
.rc-lang a:hover { background: var(--rc-red); color: #fff; }
.rc-social { display: flex; gap: .9rem; justify-content: center; margin-top: 3.5rem; }
.rc-social a { color: var(--wp--preset--color--grey); display: block; }
.rc-social a:hover { color: var(--rc-red); }

.rc-burger { display: none; }

/* ---------- Mobile : barre du haut + menu déroulant ---------- */
@media (max-width: 900px) {
	.rc-shell { display: block; }
	.rc-sidebar { position: sticky; height: auto; border-right: 0; border-bottom: 1px solid #eee; }
	.rc-sidebar__inner { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: .6rem 1rem; }
	.rc-logo { width: 42px; margin: 0; }
	.rc-logo .rc-logo__full { display: none; }
	.rc-logo .rc-logo__r { display: block; }
	.rc-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
	.rc-burger span:not(.screen-reader-text) { display: block; height: 3px; background: var(--wp--preset--color--contrast); transition: transform .2s, opacity .2s; }
	.rc-menu-open .rc-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.rc-menu-open .rc-burger span:nth-child(2) { opacity: 0; }
	.rc-menu-open .rc-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.rc-panel { display: none; width: 100%; padding: 1rem 0 1.5rem; }
	.rc-menu-open .rc-panel { display: block; }
	.rc-nav__list, .rc-lang { width: 100%; }
	.rc-social { margin-top: 1.5rem; }
}

/* ---------- Contenu ---------- */
.rc-page-title { margin-top: clamp(2.5rem, 6vw, 5rem) !important; margin-bottom: 2.5rem !important; }
.rc-main > .wp-block-post-content > :first-child:not(.alignfull) { margin-top: 2rem; }

/* Accueil : bandeau vidéo plein écran */
.rc-hero.wp-block-cover { min-height: 100vh; padding: 0; margin-top: 0 !important; }
.rc-hero .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; position: static; color: #fff; }
.rc-hero .wp-block-cover__inner-container > * { position: relative; z-index: 1; margin-inline: 0 !important; max-width: none !important; }
.rc-hero h1 { margin: 0 0 3.5rem !important; line-height: 0; }
.rc-hero h1 img { width: clamp(260px, 30vw, 440px); height: auto; display: inline-block; }
.rc-hero .rc-hero__tagline { font-weight: 600; font-size: clamp(1.2rem, 2.3vw, 2.1rem); letter-spacing: .01em; text-transform: uppercase; border-top: 1px solid var(--rc-red); border-bottom: 1px solid var(--rc-red); padding: 1.1rem 1rem .8rem; margin: 0 !important; }
.rc-hero .rc-hero__down { position: absolute !important; z-index: 2 !important; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 94px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--wp--preset--color--contrast); text-decoration: none; }
.rc-hero .rc-hero__down svg { width: 18px; height: 18px; }
.rc-hero .rc-hero__down:hover { background: var(--rc-red); color: #fff; }

/* Accueil : bandeau rouge */
.rc-statement { font-weight: 900; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.25; }

/* Titres de section avec trait rouge */
.rc-section-title { position: relative; padding-bottom: .9rem; }
.rc-section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 3px; background: var(--rc-red); transform: translateX(-50%); }

/* Liste de services sur l'accueil */
.rc-list-plain { list-style: none; padding: 0; }
.rc-list-plain li { padding: .15rem 0; }

/* Grille d'articles du blogue */
.wp-block-post-template .wp-block-post-title a { color: inherit; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--rc-red); text-decoration: none; }

/* Carte Google */
.rc-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(1); }

/* Sélecteur WPML ajouté dans le menu : on garde seulement le nôtre ([rc_lang]) */
.rc-nav__list .wpml-ls-item, .rc-nav__list .menu-item-language { display: none !important; }

/* Pleine largeur (portfolio) */
.rc-full { padding-inline: 6px !important; }

/* Pied de page */
.rc-footer { padding-top: 1rem; padding-bottom: 1rem; margin-top: 0 !important; }
.rc-footer a { color: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* En-têtes de pages : motif de + rouges */
.rc-header { background: #fcfcfc url('assets/img/plus.svg') repeat -29px -30px / 45px 45px; min-height: 270px; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem !important; margin-top: 0 !important; margin-bottom: 3rem !important; }
.rc-header .rc-page-title, .rc-header h1 { display: inline-block; background: #fcfcfc; padding: .6rem 1.2rem .3rem !important; margin: 0 !important; font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: .12em; max-width: 80%; }

/* Services : texte à gauche sur gris, photo à droite (comme l'original) */
.rc-service.wp-block-media-text { grid-template-columns: 33.33% 1fr !important; background: #e5e5e5; border-top: 2px solid var(--rc-red); margin: 0 !important; min-height: 450px; align-items: stretch !important; }
.rc-service .wp-block-media-text__content { padding: 2rem 2.2rem !important; align-self: start; }
.rc-service h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: .14em; color: #333; margin: 0 0 1.5rem; }
.rc-service p { color: #6f6f6f; font-size: 1rem; line-height: 1.6; }
.rc-service .rc-more-link a { color: var(--rc-red); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.rc-service .wp-block-media-text__media { height: 100%; align-self: stretch; }
.rc-service .wp-block-media-text__media img { width: 100%; height: 100% !important; min-height: 450px; object-fit: cover; display: block; }
.rc-services-intro { color: #6f6f6f; }
@media (max-width: 780px) {
	.rc-service.wp-block-media-text { grid-template-columns: 100% !important; min-height: 0; }
	.rc-service .wp-block-media-text__media { grid-column: 1 !important; grid-row: 1 !important; }
	.rc-service .wp-block-media-text__content { grid-column: 1 !important; grid-row: 2 !important; }
	.rc-service .wp-block-media-text__media img { min-height: 0; height: auto !important; aspect-ratio: 16 / 10; }
}

/* Fabrication numérique */
.rc-fab-icons .wp-block-image img { max-width: 160px; margin-inline: auto; display: block; }
.rc-fab-icons .wp-block-image { text-align: center; }
.rc-fab-icons h3 { margin-top: .5rem; }
.rc-label { font-size: .95rem; color: var(--rc-red); letter-spacing: .08em; margin-top: 1.75rem !important; margin-bottom: .25rem !important; }
[id] { scroll-margin-top: 2rem; }
