/* ==========================================================================
   Commun aux deux thèmes (noir / blanc). Les fichiers stylenoir.css et
   styleblanc.css ne contiennent que les particularités de chaque thème
   (couleurs de fond/texte, adaptation des classes UIkit comme
   .uk-overlay-default, etc). Les classes UIkit elles-mêmes ne sont jamais
   redéfinies ici, seulement complétées.
   ========================================================================== */

/* --- Polices Gill Sans --- */
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Italic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Light.otf") format("opentype");
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Light Italic.otf") format("opentype");
	font-weight: 300;
	font-style: italic;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Medium Italic.otf") format("opentype");
	font-weight: 500;
	font-style: italic;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Bold Italic.otf") format("opentype");
	font-weight: 700;
	font-style: italic;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Heavy.otf") format("opentype");
	font-weight: 800;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans";
	src: url("../polices/Gill Sans Heavy Italic.otf") format("opentype");
	font-weight: 800;
	font-style: italic;
}
@font-face {
	font-family: "Gill Sans Condensed";
	src: url("../polices/GillSans Condensed.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "Gill Sans Condensed";
	src: url("../polices/GillSans Condensed Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
}
@font-face {
	font-family: "Agrandir Narrow";
	src: url("../polices/agrandir-narrow.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "Agrandir Narrow";
	src: url("../polices/agrandir-narrow-thin.ttf") format("truetype");
	font-weight: 100;
	font-style: normal;
}

/*body {
	font-family: "Gill Sans", sans-serif;
	font-weight: 500;
	font-size: 18px;
}*/

body {
  font-family: "Agrandir Narrow", sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-style: normal;
}

h1, h2, h3, h4, h5 {
  font-family: "Agrandir Narrow", sans-serif;
}

.get-circle {
  z-index: 1;
  display: inline-block;
  animation: rotation-infinie 6s linear infinite;
}

@keyframes rotation-infinie {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Texte "expertises" des rubriques 5/6 (voir rubrique.html) --- */
.texte-expertise p {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

/* --- Couleur d'accent commune (jaune), surchargeable par thème --- */
:root {
	--accent: #FFCD1C;
}

/* --- Soulignement d'accent : dernier mot d'un titre (cf filtre |souligner_dernier_mot),
   réutilisable ailleurs (liens, boutons...) --- */
.accent-souligne {
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 5px;
	padding-bottom: 0.05em;
}

/* --- Cartes mots-clés en damier jaune / gris (groupe_mots.html) --- */
.carte-mot-jaune {
	background-color: var(--accent);
}

.carte-mot-grise {
	background-color: #f5f5f5;
}

/* --- Puces personnalisées (image circle.png) pour les listes dans le
   uk-accordion, portées par la class .hellotxt --- */
.hellotxt .uk-accordion-content li {
	list-style: none;
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
}

.hellotxt .uk-accordion-content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 18px;
	height: 18px;
	background: url("../images/circle.png") no-repeat center / contain;
}

/* --- Pastille qui tourne selon le sens du scroll (voir script inline) --- */
.scroll-spinner {
	position: absolute;
	top: 0;
	right: 0;
	width: 250px;
	height: 250px;
	margin-top: 10px;
	margin-right: 50px;
	z-index: 5;
	pointer-events: none;
	will-change: transform;
}

/* --- Cadre à hauteur fixe pour centrer les logos mots-clés (groupe_mots.html) --- */
.logo-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 170px;
}

.logo-frame img {
	max-width: 100%;
	max-height: 100%;
	/*width: auto;*/
	height: auto;
	object-fit: contain;
}

/* --- Sélecteur de langue FR|EN (frame/menu.html) --- */
.lang-switch {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	font-size: 14px;
}

.lang-switch a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lang-switch a.lang-active {
	color: var(--accent);
}

.lang-switch .lang-sep {
	margin: 0 6px;
	opacity: 0.5;
}

/* --- Logos mots-clés en niveaux de gris, couleur au survol --- */
.logo-mot-hover {
	transition: border-color 0.3s ease;
}

.logo-mot-hover:hover {
	border-color: var(--accent);
}

.logo-mot-hover img.spip_logo {
	filter: grayscale(100%);
	transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-mot-hover:hover img.spip_logo {
	filter: grayscale(0%);
	transform: scale(1.05);
}

.listpays {
    font-size: 26px;
    text-transform: uppercase;
    color: #FFF;
}

/* --- PC/tablette : la liste des villes s'étire d'un bord à l'autre de la div --- */
@media (min-width: 640px) {
    .listpays {
        display: block;
        font-size: 34px;
        word-spacing: 0.1em;
        letter-spacing: 0.02em;
    }
}

.uk-card-secondary {
  background-color: #000;
  color: #fff;
}

.uk-button {
    border-radius: 50px;
    text-transform: none;
    font-weight: 700;
    font-size: 18px;
}

/* --- Bloc "Let's work TOGETHER." (frame/letstart.html) --- */
.letstart-title {
    margin: 0;
    line-height: 1;
    font-family: "Agrandir Narrow", sans-serif;
    color: var(--accent);
}

.letstart-title-small {
    display: inline-block;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
}

.letstart-title-big {
    display: inline-block;
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.letstart-btn span[uk-icon] {
    margin-right: 8px;
}

/* --- Démo présentation des partenaires (frame/partenaires.html) --- */
.partenaires-exemple {
    margin-bottom: 60px;
}

.partenaires-exemple:last-child {
    margin-bottom: 0;
}

.partenaires-exemple-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin: 0 0 16px;
}

/* Défilement continu (titres et logos) : le contenu de la piste est
   dupliqué deux fois dans le squelette, on translate de -50% pour une
   boucle parfaitement continue. */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
    .marquee-track-titres {
        animation: marquee-scroll 60s linear infinite;
    }
    .marquee-track-logos {
        animation: marquee-scroll 60s linear infinite;
    }
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-titre {
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 32px);
    padding: 0 30px;
}

.marquee-titre::after {
    content: "•";
    margin-left: 60px;
    opacity: 0.4;
}

.marquee-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 90px;
    padding: 0 40px;
}

.marquee-logo img {
    max-height: 100%;
    width: auto;
}

/* --- Exemple 2 "Ils nous font confiance" : 4 lignes en défilement continu,
   même sens, décalées, tris différents (frame/partenaires.html) --- */
.confiance-section {
    background-color: #000;
    color: #fff;
    padding: 60px 0;
}

.confiance-titre {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin: 0 0 40px;
}

.confiance-marquee {
    margin-bottom: 8px;
}

.confiance-marquee .marquee-titre {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    padding: 0 50px;
}

@media (prefers-reduced-motion: no-preference) {
    /* Vitesses différentes par ligne (pas seulement un décalage) pour que
       les 4 lignes se désynchronisent visiblement et ne semblent jamais
       "identiques", même après un long moment. */
    .confiance-row-1 .marquee-track { animation-duration: 45s; animation-delay: 0s; }
    .confiance-row-2 .marquee-track { animation-duration: 55s; animation-delay: -10s; }
    .confiance-row-3 .marquee-track { animation-duration: 65s; animation-delay: -20s; }
    .confiance-row-4 .marquee-track { animation-duration: 75s; animation-delay: -30s; }
}

.confiance-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    color: #fff;
    text-decoration: none;
}

.confiance-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #000;
    flex-shrink: 0;
}

.confiance-cta-text {
    font-size: 15px;
    font-weight: 600;
}

/* --- Sections plein écran + animation d'entrée au scroll (sommaire.html) ---
   Chaque section porte au minimum la hauteur visible du navigateur au
   chargement, et se révèle (fondu + léger décalage) quand elle entre dans
   la zone visible, pour marquer clairement le changement de section. */
.section-vh {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.section-vh > * {
    width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .section-vh {
        opacity: 0;
        transform: translateY(48px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .section-vh.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Badge "lecture" au centre des vidéos du portfolio (frame/documents.html) --- */
.video-play-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #000;
    pointer-events: none;
}

/* --- Pagination précédent/suivant (modeles/pagination_precedent_suivant.html) ---
   Aux extrémités (première/dernière page), le label est vidé côté squelette ;
   on masque alors entièrement le bouton (plus de fond jaune ni d'espace pris). */
.pagination_precedent_suivant .pagination-item.disabled {
    display: none;
}

/* --- Badge logo statique + titre en cercle (squelettes/rubrique.html, id_rubrique 5/6) --- */
.rubrique-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    max-width: 100%;
}

.rubrique-badge-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotation-infinie 18s linear infinite;
}

.rubrique-badge-path {
    fill: none;
}

.rubrique-badge-text {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    fill: currentColor;
}

.rubrique-badge-logo {
    position: relative;
    z-index: 1;
    max-width: 55%;
    max-height: 55%;
    height: auto;
}

/* --- Titre des cartes réalisations (frame/carte_realisation.html) --- */
.carte-realisation-titre {
    font-size: clamp(20px, 5vw, 26px);
    line-height: 1.2;
    margin: 0 0 6px;
}

/* --- Fond plein écran de contact.html : diaporama 02.png / 02_2.png,
   zoom-out en boucle, menu + intro superposés (menu déjà transparent). --- */
.contact-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #fff;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .contact-hero-bg {
        animation: contact-hero-zoom 16s ease-in-out infinite;
    }

    .contact-hero-bg-1 {
        animation-name: contact-hero-zoom, contact-hero-fade-1;
        animation-duration: 16s, 16s;
    }

    .contact-hero-bg-2 {
        animation-name: contact-hero-zoom, contact-hero-fade-2;
        animation-duration: 16s, 16s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero-bg-1 {
        opacity: 1;
    }
}

/* Chaque image a exactement la même durée visible (6,72s pleine opacité
   sur les 16s du cycle) ; les fenêtres de fondu se chevauchent pour un
   vrai crossfade, sans dépendre d'un animation-delay négatif. */
@keyframes contact-hero-fade-1 {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes contact-hero-fade-2 {
    0%, 42% { opacity: 0; }
    50%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

/* Aller-retour (1.18 → 1 → 1.18) pour boucler sans à-coup, contrairement
   à un simple from/to qui provoquait un saut visible à chaque cycle. */
@keyframes contact-hero-zoom {
    0% { transform: scale(1.18); }
    50% { transform: scale(1); }
    100% { transform: scale(1.18); }
}

@media (min-width: 960px) {
    .carte-realisation-titre {
        font-size: 30px;
    }
}
