/*
Theme Name: Mossab Portfolio (Elementor)
Theme URI: https://example.com/
Description: Thème enfant de Hello Elementor pour le portfolio de Mossab M'hassni. Les 4 pages (Accueil, À propos, Services, Contact) se créent en un clic et se modifient avec Elementor.
Author: Mossab M'hassni
Template: hello-elementor
Version: 1.2.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: mossab-elementor
*/

:root {
	--m-prune: var(--e-global-color-primary, #650575);
	--m-jaune: var(--e-global-color-secondary, #FFC93C);
	--m-nuit: var(--e-global-color-text, #14122B);
	--m-lilas: var(--e-global-color-accent, #F4E9F7);
}

body { background: var(--m-lilas); color: var(--m-nuit); }

/* Mots mis en avant dans les titres */
.m-dot, .m-accent { color: var(--m-prune); }
.m-hl { display: inline-block; background: var(--m-jaune); color: var(--m-nuit); padding: 0 .22em; border-radius: 14px; transform: rotate(-2deg); }

/* Étiquettes */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pill { display: inline-block; padding: 7px 15px; border-radius: 999px; font: 600 14px/1.3 Inter, sans-serif; border: 1.5px solid var(--m-nuit); background: #fff; color: var(--m-nuit); }
.pill--yellow { background: var(--m-jaune); border-color: var(--m-jaune); }

/* Boutons et liens */
.m-btn .elementor-button { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.m-btn .elementor-button:hover { transform: translateY(-3px); }
.m-more, .elementor a.m-more { color: inherit; text-decoration: none; font-weight: 700; }
.m-more:hover { text-decoration: underline; }
.m-nav .elementor-icon-list-icon { display: none; }

/* En-tête / pied de page */
.m-footer { border-top: 1.5px solid #E2CCE9; }
.m-footer a { color: inherit; }

/* Hero : photo penchée + cercle jaune + badge */
.m-hero-visual { position: relative; }
.m-hero-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; background: var(--m-jaune); border-radius: 50%; top: 8%; left: 14%; }
.m-hero-photo { position: relative; z-index: 1; transform: rotate(-3deg); transition: transform .4s ease; }
.m-hero-photo:hover { transform: rotate(0) scale(1.02); }
.elementor-widget.m-badge { position: absolute; z-index: 2; bottom: 6%; left: -12px; width: auto; max-width: 260px; background: #fff; border: 2px solid var(--m-nuit); border-radius: 20px; padding: 14px 20px; box-shadow: 6px 6px 0 var(--m-nuit); }
.m-badge strong { display: block; font: 700 28px/1.1 'Space Grotesk', sans-serif; color: var(--m-nuit); }

/* Bandeau défilant */
.m-marquee { overflow: hidden; padding: 22px 0; }
.m-marquee__track { display: flex; gap: 36px; width: max-content; font: 700 22px/1 'Space Grotesk', sans-serif; color: #fff; white-space: nowrap; animation: m-scroll 28s linear infinite; }
.m-star { color: var(--m-jaune); }
@keyframes m-scroll { to { transform: translateX(-50%); } }

/* Cartes animées au survol */
.m-card { transition: transform .25s ease, box-shadow .25s ease; }
.m-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 10px 10px 0 var(--m-nuit); }

/* Section projets : cercle décoratif */
.m-projects { position: relative; overflow: hidden; }
.m-projects::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--m-jaune); opacity: .18; top: -160px; right: -120px; pointer-events: none; }

/* À propos */
.m-round img { aspect-ratio: 1; border: 3px solid var(--m-nuit); }
.m-timeline { border-top: 1px solid #3A3758; }

/* Services : numéros d'étapes */
.m-step { width: 56px; height: 56px; border-radius: 50%; background: var(--m-jaune); color: var(--m-nuit); display: inline-flex; align-items: center; justify-content: center; }

/* Contact */
.m-contact-item { background: #fff; border: 1.5px solid #E2CCE9; border-radius: 20px; padding: 16px 22px; }
.m-contact-item a { color: var(--m-nuit); text-decoration: none; }
.m-ci-label { display: block; font-size: 13px; font-weight: 400; color: #45425E; }
.m-form label { color: #fff; font-weight: 600; font-size: 14px; display: block; width: 100%; }
.m-form input[type=text], .m-form input[type=email], .m-form input[type=tel], .m-form input[type=url], .m-form select, .m-form textarea {
	width: 100%; box-sizing: border-box; font: 400 16px Inter, sans-serif; margin-top: 8px; padding: 15px 18px; border-radius: 14px; border: 1.5px solid #3A3758; background: #1F1C3A; color: #fff;
}
.m-form input[type=submit] { font: 700 17px Inter, sans-serif; background: var(--m-jaune); color: var(--m-nuit); border: 0; border-radius: 999px; padding: 18px 30px; cursor: pointer; }
.m-form .wpcf7-response-output { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.m-marquee__track { animation: none; }
	.m-card:hover, .m-hero-photo:hover, .m-btn .elementor-button:hover { transform: none; }
}
/* ---------- Responsive ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
.elementor .e-con > .elementor-element { min-width: 0; }
.elementor h1, .elementor h2, .elementor h3, .elementor p, .m-contact-item a { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.elementor img { max-width: 100%; height: auto; }
.m-marquee { width: 100%; max-width: 100%; }

/* Tablette (≤ 1024 px) */
@media (max-width: 1024px) {
	.m-hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
	.m-projects::before { width: 300px; height: 300px; border-width: 44px; }
	.m-marquee__track { font-size: 19px; gap: 28px; }
}

/* Téléphone (≤ 767 px) */
@media (max-width: 767px) {
	.elementor-widget.m-badge { left: 0; bottom: 4%; padding: 10px 14px; max-width: 220px; }
	.m-badge strong { font-size: 22px; }
	.m-hero-photo { transform: rotate(-2deg); }
	.m-hl { border-radius: 10px; }
	.m-card:hover { transform: none; box-shadow: none; }
	.m-marquee { padding: 16px 0; }
	.m-marquee__track { font-size: 17px; gap: 22px; }
	.m-projects::before { width: 200px; height: 200px; border-width: 30px; top: -90px; right: -90px; }
	.m-step { width: 48px; height: 48px; }
	.m-contact-item { padding: 14px 18px; }
	.m-form input[type=submit] { width: 100%; }
	.pill { font-size: 13px; padding: 6px 12px; }
}

/* Très petits téléphones (≤ 380 px) */
@media (max-width: 380px) {
	.m-nav .elementor-icon-list-item { margin-inline: 6px !important; }
	.elementor-widget.m-badge { display: none; }
}
