/*
 Shared stylesheet of www.vlstack.fr, yumeo.vlstack.fr, logeo.vlstack.fr and decleo.vlstack.fr.
 The file is copied as is on each site: only the "Site colors" block changes.
*/

/* Site colors (decleo.vlstack.fr) */
:root
{
 --accent:#127082;
 --highlight:#127082;
 --icon-color:#127082;
 --yumeo:#73C794;
 --logeo:#9c38cc;
 --decleo:#127082
}

/* Shared colors and sizes */
:root
{
 color-scheme:light;
 --text:#1d1d1f;
 --text-secondary:#515154;
 --text-muted:#6e6e73;
 --background:#ffffff;
 --surface:#f5f5f7;
 --border:#e5e5ea;
 --content-width:800px;
 --gutter:1.5rem
}

*,
*::before,
*::after
{
 margin:0;
 padding:0;
 box-sizing:border-box
}

body
{
 font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
 font-size:1rem;
 line-height:1.5;
 color:var(--text);
 background-color:var(--background);
 -webkit-text-size-adjust:100%
}

img { max-width:100%; height:auto; vertical-align:middle }

a { color:var(--accent) }
a:hover { text-decoration:none }
a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px }

.yourdatayourchoicesyourrules { white-space:nowrap }
strong.underline { font-weight:normal; text-decoration:underline }

/* Centered column: the content never takes the whole width of the browser */
.wrap
{
 max-width:var(--content-width);
 margin:0 auto;
 padding:0 var(--gutter)
}

/* App icon: the logos are light, they sit on a colored rounded square */
.icon
{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:0 0 auto;
 width:2.5rem;
 height:2.5rem;
 padding:0.45rem;
 border-radius:22%;
 background-color:var(--icon-color)
}

.icon img { width:100%; height:100%; object-fit:contain }

/* Header */
.site-header { border-bottom:1px solid var(--border) }

.site-header .wrap
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:0.75rem 1.5rem;
 padding-block:1rem
}

.brand
{
 display:flex;
 align-items:center;
 gap:0.75rem;
 font-size:1.25rem;
 font-weight:600;
 color:var(--text);
 text-decoration:none
}

.site-nav
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:0.5rem 1.25rem;
 font-size:0.95rem
}

.site-nav a { color:var(--text-secondary); text-decoration:none }
.site-nav a:hover { color:var(--accent) }

.languages
{
 display:flex;
 gap:0.75rem;
 padding-left:1.25rem;
 border-left:1px solid var(--border)
}

.languages a[aria-current] { color:var(--text); font-weight:600 }

/* Hero */
.hero
{
 padding-block:3rem 2rem;
 text-align:center
}

.hero h1
{
 font-size:2rem;
 font-weight:600;
 line-height:1.2
}

.hero h1::after
{
 content:"";
 display:block;
 width:3rem;
 height:4px;
 margin:1rem auto 0;
 border-radius:2px;
 background-color:var(--highlight)
}

.hero p
{
 max-width:34rem;
 margin:1rem auto 0;
 font-size:1.1rem;
 color:var(--text-secondary)
}

.store-badge { display:inline-block; margin-top:1.5rem }
.store-badge img { height:40px; width:auto }

/* App cards (www.vlstack.fr) */
.app-cards
{
 display:grid;
 grid-template-columns:repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
 gap:1.5rem;
 padding-bottom:3rem
}

/*
 Each card spans 5 rows of the parent grid (header, tagline, description, screens, footer)
 and shares them through subgrid: the same part of each card starts at the same height.
*/
.app-card
{
 display:grid;
 grid-row:span 5;
 grid-template-rows:subgrid;
 row-gap:1rem;
 padding:1.25rem;
 border:1px solid var(--border);
 border-radius:1rem
}

.app-card.yumeo { --icon-color:var(--yumeo) }
.app-card.logeo { --icon-color:var(--logeo) }
.app-card.decleo { --icon-color:var(--decleo) }

.app-card header
{
 display:flex;
 align-items:center;
 gap:0.75rem
}

.app-card h2 { font-size:1.25rem; font-weight:600 }
.app-card h2 a { color:var(--text); text-decoration:none }
.app-card h2 a:hover { color:var(--accent) }

.app-card .tagline
{
 font-size:1.1rem;
 font-weight:600;
 line-height:1.3
}

.app-card .description { color:var(--text-secondary) }

.screens
{
 display:grid;
 grid-template-columns:repeat(3, 1fr);
 align-items:start;
 gap:0.5rem
}

.screens img { width:100%; border-radius:0.5rem }

.app-card footer
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:0.75rem;
 align-self:end
}

.app-card footer img { height:40px; width:auto }

/* Screenshots of an app site: one row on a computer, two columns on an iPhone */
.gallery
{
 --gallery-columns:5;
 --gallery-gap:0.75rem;
 display:flex;
 flex-wrap:wrap;
 justify-content:center;
 gap:var(--gallery-gap);
 padding-bottom:3rem
}

.gallery img
{
 width:calc((100% - (var(--gallery-columns) - 1) * var(--gallery-gap)) / var(--gallery-columns));
 border-radius:0.75rem
}

/* Gallery of an app site with 4 or 6 screenshots instead of 5 */
.gallery-4 { --gallery-columns:4 }
.gallery-6 { --gallery-columns:6 }

/* Features of an app site */
.features { padding-bottom:3rem }

.feature-cards
{
 display:grid;
 grid-template-columns:repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
 gap:1rem
}

.feature-card
{
 padding:1.25rem;
 border:1px solid var(--border);
 border-radius:1rem
}

.feature-card h3
{
 margin-bottom:0.4rem;
 font-size:1.05rem;
 font-weight:600;
 line-height:1.3
}

.feature-card p { color:var(--text-secondary) }

.features .note
{
 max-width:40rem;
 margin:2rem auto 0;
 text-align:center;
 color:var(--text-secondary)
}

/* Terms of use and privacy policy of an app site */
.legal
{
 padding-block:3rem;
 background-color:var(--surface)
}

.legal-documents
{
 display:flex;
 flex-direction:column;
 gap:1.5rem
}

.legal-document
{
 padding:1.5rem;
 border-radius:1rem;
 background-color:var(--background);
 font-size:0.95rem;
 color:var(--text-secondary)
}

.legal-document h2
{
 font-size:1.35rem;
 font-weight:600;
 color:var(--text)
}

.legal-document .updated
{
 margin-top:0.25rem;
 font-size:0.85rem;
 color:var(--text-muted)
}

.legal-document h3
{
 margin:1.5rem 0 0.4rem;
 font-size:1rem;
 font-weight:600;
 color:var(--text)
}

.legal-document section > p { margin-top:0.75rem }
.legal-document section > h3 + p { margin-top:0 }
.legal-document ul { margin-top:0.5rem; padding-left:1.25rem }
.legal-document li + li { margin-top:0.35rem }

/* Sources of an app site: link and detail on two lines, items further apart */
.legal-document .sources li + li { margin-top:0.75rem }

/* Label and value lines of the legal notice (www.vlstack.fr) */
.legal-document .legal-rows { list-style:none; padding-left:0 }
.legal-rows strong { font-weight:600; color:var(--text) }

/* Footer: legal notice, privacy policy and contact */
.site-footer
{
 padding-block:2.5rem;
 border-top:1px solid var(--border);
 background-color:var(--surface);
 font-size:0.9rem;
 color:var(--text-secondary)
}

.footer-grid
{
 display:grid;
 grid-template-columns:repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
 gap:2rem
}

.site-footer h2
{
 margin-bottom:0.75rem;
 font-size:1rem;
 font-weight:600;
 color:var(--text)
}

.site-footer h3
{
 margin:1rem 0 0.5rem;
 font-size:0.9rem;
 font-weight:600;
 color:var(--text)
}

.site-footer h2 + h3 { margin-top:0 }

.site-footer ul { list-style:none }
.site-footer li + li { margin-top:0.5rem }
.site-footer p + p { margin-top:0.75rem }
.site-footer strong { font-weight:600; color:var(--text) }

/* Small screens (iPhone) */
@media only screen and (max-width:768px)
{
 :root { --gutter:1rem }

 .hero { padding-block:2rem 1.5rem }
 .hero h1 { font-size:1.6rem }
 .hero p { font-size:1rem }

 .languages { padding-left:0; border-left:0 }

 .app-cards { gap:1rem; padding-bottom:2rem }
 .app-card { padding:1rem }

 .gallery { --gallery-columns:2; padding-bottom:2rem }

 .features { padding-bottom:2rem }
 .feature-card { padding:1rem }

 .legal { padding-block:2rem }
 .legal-document { padding:1.25rem 1rem }

 .site-footer { padding-block:2rem }
 .footer-grid { gap:1.5rem }
}
